@squidcloud/twilio-client 1.0.498 → 1.0.499

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.
@@ -421,7 +421,7 @@ export interface IntegrationModelSpec {
421
421
  */
422
422
  export type AiChatModelSelection = AiChatModelName | IntegrationModelSpec;
423
423
  /**
424
- * Lets a routing model pick which of several vendor models answers an `ask` request. The routing model
424
+ * Lets a routing model pick which of several vendor models answers an `ask` or `chat` request. The routing model
425
425
  * sees the question, the agent's instructions and a card per candidate (price, tier, reasoning,
426
426
  * context window) and names the one that should answer; that model then serves the request.
427
427
  * @category AI
@@ -433,12 +433,27 @@ export interface AiModelRoutingOptions {
433
433
  routingModel: VendorAiChatModelName;
434
434
  }
435
435
  /**
436
- * The model of an `ask` request: a concrete model, or a set of models a routing model chooses from.
436
+ * The model of an `ask` or `chat` request: a concrete model, or a set of models a routing model chooses from.
437
437
  * @category AI
438
438
  */
439
439
  export type AiAskModelSelection = AiChatModelSelection | AiModelRoutingOptions;
440
440
  /**
441
- * How an `ask` request whose `model` was an {@link AiModelRoutingOptions} was routed.
441
+ * What a `chat` job resolves to once its stream has ended; read it with `squid.jobs().awaitJob(jobId)`.
442
+ * @category AI
443
+ */
444
+ export interface AiChatJobResult {
445
+ /** Set when `model` was an {@link AiModelRoutingOptions}: which model answered and what routing cost. */
446
+ routing?: AiModelRoutingResult;
447
+ }
448
+ /**
449
+ * Chat options as a request carries them: the model may also be a routing choice between several models.
450
+ * @category AI
451
+ */
452
+ export type AiChatRequestOptions = Omit<AllAiAgentChatOptions, 'model'> & {
453
+ model?: AiAskModelSelection;
454
+ };
455
+ /**
456
+ * How a request whose `model` was an {@link AiModelRoutingOptions} was routed.
442
457
  * @category AI
443
458
  */
444
459
  export interface AiModelRoutingResult {
@@ -783,7 +798,7 @@ export type AiVerbosityLevel = 'low' | 'medium' | 'high';
783
798
  * **Example:**
784
799
  * ```typescript
785
800
  * {
786
- * model: 'claude-sonnet-5',
801
+ * model: 'claude-sonnet-5-5',
787
802
  * responseFormat: {
788
803
  * type: 'json_schema',
789
804
  * schema: {
@@ -61,12 +61,12 @@ export declare const GROK_CHAT_MODEL_NAMES: readonly ["grok-4.6", "grok-4-1-fast
61
61
  * Public Anthropic chat model names (active models only).
62
62
  * @category AI
63
63
  */
64
- export declare const ANTHROPIC_CHAT_MODEL_NAMES: readonly ["claude-fable-5", "claude-fable-5-1", "claude-haiku-4-5-20251001", "claude-opus-5-5", "claude-sonnet-5"];
64
+ export declare const ANTHROPIC_CHAT_MODEL_NAMES: readonly ["claude-fable-5", "claude-fable-5-1", "claude-haiku-4-5-20251001", "claude-opus-5-5", "claude-sonnet-5-5"];
65
65
  /**
66
66
  * The supported AI model names.
67
67
  * @category AI
68
68
  */
69
- export declare const VENDOR_AI_CHAT_MODEL_NAMES: readonly ["gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna", "gpt-6-astra", "gpt-6-luna", "gpt-6.1-sol", "claude-fable-5", "claude-fable-5-1", "claude-haiku-4-5-20251001", "claude-opus-5-5", "claude-sonnet-5", "gemini-3.1-pro", "gemini-3.8-flash", "gemini-3.5-flash-lite", "grok-4.6", "grok-4-1-fast-reasoning", "grok-4-1-fast-non-reasoning"];
69
+ export declare const VENDOR_AI_CHAT_MODEL_NAMES: readonly ["gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna", "gpt-6-astra", "gpt-6-luna", "gpt-6.1-sol", "claude-fable-5", "claude-fable-5-1", "claude-haiku-4-5-20251001", "claude-opus-5-5", "claude-sonnet-5-5", "gemini-3.1-pro", "gemini-3.8-flash", "gemini-3.5-flash-lite", "grok-4.6", "grok-4-1-fast-reasoning", "grok-4-1-fast-non-reasoning"];
70
70
  /** Checks if the given model name is a global AI chat model name. */
71
71
  export declare function isVendorAiChatModelName(modelName: unknown): modelName is VendorAiChatModelName;
72
72
  /**
@@ -1977,7 +1977,8 @@ export interface BulkIngestionJobStatusCounts {
1977
1977
  * cross it under load. So do `'SOURCE_UNREACHABLE'` (the provider could not fetch the source, which a
1978
1978
  * fresh link can fix) and `'PROVIDER_ACCESS_DENIED'` (the provider refused the credential or its quota is
1979
1979
  * spent, a fault of the environment). `'JOB_FULL'`: the job's request ceiling had no room left for this
1980
- * file, so re-submit it in a fresh job; a file that alone exceeds the ceiling fails this way in every job.
1980
+ * file when it was admitted — before any paid stage ran — so re-submit it in a fresh job; a file that
1981
+ * alone exceeds the ceiling fails this way in every job.
1981
1982
  * @category AI
1982
1983
  */
1983
1984
  export type BulkIngestionFileErrorCode = 'CONTENT_TOO_LARGE' | 'DUPLICATE_CONTENT' | 'ENCRYPTED_DOCUMENT' | 'EXTRACTION_TIMED_OUT' | 'IMAGE_OVER_PROVIDER_LIMIT' | 'JOB_FULL' | 'NO_EMBEDDABLE_CONTENT' | 'PROVIDER_ACCESS_DENIED' | 'SOURCE_OVER_PROVIDER_LIMIT' | 'SOURCE_UNREACHABLE' | 'UNREADABLE_DOCUMENT' | 'UNREADABLE_WORKBOOK' | 'UNSUPPORTED_FILE_TYPE';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/twilio-client",
3
- "version": "1.0.498",
3
+ "version": "1.0.499",
4
4
  "description": "Squid Twilio Client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/connectors/twilio/twilio-client/src/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "author": "",
18
18
  "license": "ISC",
19
19
  "dependencies": {
20
- "@squidcloud/client": "^1.0.498"
20
+ "@squidcloud/client": "^1.0.499"
21
21
  },
22
22
  "engines": {
23
23
  "node": ">=20.0.0"