UNPKG

phonic

Version:

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPhonic-Co%2Fphonic-node) [![npm shield](htt

59 lines (58 loc) 2.48 kB
/** * This file was auto-generated by Fern from our API Definition. */ export interface ToolParameter { /** The parameter type. */ type: ToolParameter.Type; /** Required only when type is "array". The type of items in the array. */ item_type?: ToolParameter.ItemType; /** The parameter name. */ name: string; /** Description of the parameter. */ description: string; /** Whether the parameter is required. */ is_required: 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. */ location?: ToolParameter.Location; } export declare namespace ToolParameter { /** * The parameter type. */ type Type = "string" | "integer" | "number" | "boolean" | "array"; const Type: { readonly String: "string"; readonly Integer: "integer"; readonly Number: "number"; readonly Boolean: "boolean"; readonly Array: "array"; }; /** * Required only when type is "array". The type of items in the array. */ type ItemType = "string" | "integer" | "number" | "boolean"; const ItemType: { readonly String: "string"; readonly Integer: "integer"; readonly Number: "number"; readonly 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. */ type Location = "request_body" | "query_string"; const Location: { readonly RequestBody: "request_body"; readonly QueryString: "query_string"; }; }