@squidcloud/twilio-client 1.0.493 → 1.0.494

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -124,6 +124,10 @@ export interface TwilioSmsEvent {
124
124
  /** A phone call handled by the connector, stored in the `twilio_calls` collection under its call id. */
125
125
  export interface TwilioCallRecord {
126
126
  callSid: CallSid;
127
+ channel?: 'phone' | 'web';
128
+ webCallerKey?: string;
129
+ humanHandoffId?: string | null;
130
+ humanHandoffConfirmed?: boolean;
127
131
  integrationId: IntegrationId;
128
132
  /** The agent on the call. */
129
133
  agentId?: string;
@@ -153,6 +157,38 @@ export interface TwilioCallTranscriptEntry {
153
157
  text: string;
154
158
  at: Date;
155
159
  }
160
+ /** Requests an outgoing-only browser credential for one authorized agent. */
161
+ export interface CreateTwilioCustomerVoiceTokenRequest {
162
+ integrationId: IntegrationId;
163
+ agentId: string;
164
+ webCallerKey: string;
165
+ }
166
+ export interface CreateTwilioCustomerVoiceTokenResponse {
167
+ token: string;
168
+ identity: string;
169
+ expiresAt: string;
170
+ }
171
+ export interface GetTwilioCustomerVoiceCallRequest {
172
+ integrationId: IntegrationId;
173
+ identity: string;
174
+ }
175
+ export interface GetTwilioCustomerVoiceCallResponse {
176
+ callSid?: CallSid;
177
+ webCallerKey: string;
178
+ status?: string;
179
+ }
180
+ /** Controls ownership of an existing customer call during a human handoff. */
181
+ export interface SetTwilioHumanHandoffRequest {
182
+ integrationId: IntegrationId;
183
+ callSid: CallSid;
184
+ handoffId: string;
185
+ action?: 'claim' | 'confirm' | 'release';
186
+ handoffUrl?: string;
187
+ }
188
+ export interface SetTwilioHumanHandoffResponse {
189
+ handoffId: string | null;
190
+ confirmed: boolean;
191
+ }
156
192
  /** Request for the `sendSms` executable. */
157
193
  export interface SendTwilioSmsRequest {
158
194
  integrationId: IntegrationId;
@@ -781,6 +781,19 @@ export type AiChatOptions<T extends AiChatModelSelection | undefined = undefined
781
781
  export type AllAiAgentChatOptions = {
782
782
  [K in keyof BaseAiChatOptions | keyof GeminiChatOptions | keyof GrokChatOptions | keyof OpenAiChatOptions | keyof AnthropicChatOptions]?: (K extends keyof BaseAiChatOptions ? BaseAiChatOptions[K] : never) | (K extends keyof GeminiChatOptions ? GeminiChatOptions[K] : never) | (K extends keyof GrokChatOptions ? GrokChatOptions[K] : never) | (K extends keyof OpenAiChatOptions ? OpenAiChatOptions[K] : never) | (K extends keyof AnthropicChatOptions ? AnthropicChatOptions[K] : never);
783
783
  };
784
+ /**
785
+ * Credentials a caller sends with one chat request. The client sends them in the `x-squid-integration-access-tokens`
786
+ * request header rather than with the options, so they reach only the tools that run with them and are never stored
787
+ * with the agent.
788
+ * @category AI
789
+ */
790
+ export interface AiChatRequestCredentials {
791
+ /**
792
+ * Access tokens keyed by integration ID. The integration's tools run with its token for this request when the
793
+ * integration type supports it; other types ignore it.
794
+ */
795
+ integrationAccessTokens?: Record<IntegrationId, string>;
796
+ }
784
797
  /**
785
798
  * Configuration for exposing an AI agent as an MCP server at `/mcp/<agentId>`.
786
799
  * @category AI
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/twilio-client",
3
- "version": "1.0.493",
3
+ "version": "1.0.494",
4
4
  "description": "Squid Twilio Client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/client/src/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "author": "",
18
18
  "license": "ISC",
19
19
  "dependencies": {
20
- "@squidcloud/client": "^1.0.493"
20
+ "@squidcloud/client": "^1.0.494"
21
21
  },
22
22
  "engines": {
23
23
  "node": ">=20.0.0"