phonic
Version:
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPhonic-Co%2Fphonic-node) [ • 1.25 kB
JavaScript
// This file was auto-generated by Fern from our API Definition.
export var ToolParameter;
(function (ToolParameter) {
/** The parameter type. */
ToolParameter.Type = {
String: "string",
Integer: "integer",
Number: "number",
Boolean: "boolean",
Array: "array",
};
/** Required only when type is "array". The type of items in the array. */
ToolParameter.ItemType = {
String: "string",
Integer: "integer",
Number: "number",
Boolean: "boolean",
};
/**
* Only applicable for `custom_webhook` tools. Specifies where the parameter should be sent in the webhook request.
* - For GET webhooks: defaults to `"query_string"` and `"request_body"` is not allowed.
* - For POST webhooks: required, can be either `"request_body"` or `"query_string"`.
* - Not allowed for `custom_websocket`, `built_in_transfer_to_phone_number`, or `built_in_transfer_to_agent` tools.
* When updating a tool's type or endpoint_method, all parameters must include explicit `location` values.
*/
ToolParameter.Location = {
RequestBody: "request_body",
QueryString: "query_string",
};
})(ToolParameter || (ToolParameter = {}));