telnyx 6.46.0 → 6.48.0
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.
- package/CHANGELOG.md +16 -0
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +2 -2
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +2 -2
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +162 -322
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +162 -322
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/index.d.mts +1 -1
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +1 -1
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +6 -214
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +6 -214
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/index.d.mts +1 -1
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +1 -1
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/calls/actions.d.mts +52 -4
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +52 -4
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/conferences/actions.d.mts +13 -1
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +13 -1
- package/resources/conferences/actions.d.ts.map +1 -1
- package/src/resources/ai/ai.ts +12 -0
- package/src/resources/ai/assistants/assistants.ts +197 -375
- package/src/resources/ai/assistants/index.ts +6 -0
- package/src/resources/ai/assistants/versions.ts +6 -250
- package/src/resources/ai/index.ts +6 -0
- package/src/resources/calls/actions.ts +64 -4
- package/src/resources/conferences/actions.ts +16 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -146,9 +146,9 @@ export interface UpdateAssistant {
|
|
|
146
146
|
|
|
147
147
|
enabled_features?: Array<AssistantsAPI.EnabledFeatures>;
|
|
148
148
|
|
|
149
|
-
external_llm?:
|
|
149
|
+
external_llm?: AssistantsAPI.ExternalLlmReq;
|
|
150
150
|
|
|
151
|
-
fallback_config?:
|
|
151
|
+
fallback_config?: AssistantsAPI.FallbackConfigReq;
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
154
|
* Text that the assistant will use to start the conversation. This may be
|
|
@@ -225,7 +225,7 @@ export interface UpdateAssistant {
|
|
|
225
225
|
* Telephony-control tools (e.g. hangup, transfer) are unavailable
|
|
226
226
|
* post-conversation. Beta feature.
|
|
227
227
|
*/
|
|
228
|
-
post_conversation_settings?:
|
|
228
|
+
post_conversation_settings?: AssistantsAPI.PostConversationSettingsReq;
|
|
229
229
|
|
|
230
230
|
privacy_settings?: AssistantsAPI.PrivacySettings;
|
|
231
231
|
|
|
@@ -266,111 +266,6 @@ export interface UpdateAssistant {
|
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
export namespace UpdateAssistant {
|
|
269
|
-
export interface ExternalLlm {
|
|
270
|
-
/**
|
|
271
|
-
* Base URL for the external LLM endpoint.
|
|
272
|
-
*/
|
|
273
|
-
base_url: string;
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Model identifier to use with the external LLM endpoint.
|
|
277
|
-
*/
|
|
278
|
-
model: string;
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Authentication method used when connecting to the external LLM endpoint.
|
|
282
|
-
*/
|
|
283
|
-
authentication_method?: 'token' | 'certificate';
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Integration secret identifier for the client certificate used with certificate
|
|
287
|
-
* authentication.
|
|
288
|
-
*/
|
|
289
|
-
certificate_ref?: string;
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* When `true`, Telnyx forwards the assistant's dynamic variables to the external
|
|
293
|
-
* LLM endpoint as a top-level `extra_metadata` object on the chat completion
|
|
294
|
-
* request body. Defaults to `false`. Example payload sent to the external
|
|
295
|
-
* endpoint:
|
|
296
|
-
* `{"extra_metadata": {"customer_name": "Jane", "account_id": "acct_789", "telnyx_agent_target": "+13125550100", "telnyx_end_user_target": "+13125550123"}}`.
|
|
297
|
-
* Distinct from OpenAI's native `metadata` field, which has its own size and type
|
|
298
|
-
* limits.
|
|
299
|
-
*/
|
|
300
|
-
forward_metadata?: boolean;
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Integration secret identifier for the external LLM API key.
|
|
304
|
-
*/
|
|
305
|
-
llm_api_key_ref?: string;
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* URL used to retrieve an access token when certificate authentication is enabled.
|
|
309
|
-
*/
|
|
310
|
-
token_retrieval_url?: string;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
export interface FallbackConfig {
|
|
314
|
-
external_llm?: FallbackConfig.ExternalLlm;
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Integration secret identifier for the fallback model API key.
|
|
318
|
-
*/
|
|
319
|
-
llm_api_key_ref?: string;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Fallback Telnyx-hosted model to use when the primary LLM provider is
|
|
323
|
-
* unavailable.
|
|
324
|
-
*/
|
|
325
|
-
model?: string;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
export namespace FallbackConfig {
|
|
329
|
-
export interface ExternalLlm {
|
|
330
|
-
/**
|
|
331
|
-
* Base URL for the external LLM endpoint.
|
|
332
|
-
*/
|
|
333
|
-
base_url: string;
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* Model identifier to use with the external LLM endpoint.
|
|
337
|
-
*/
|
|
338
|
-
model: string;
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* Authentication method used when connecting to the external LLM endpoint.
|
|
342
|
-
*/
|
|
343
|
-
authentication_method?: 'token' | 'certificate';
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Integration secret identifier for the client certificate used with certificate
|
|
347
|
-
* authentication.
|
|
348
|
-
*/
|
|
349
|
-
certificate_ref?: string;
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* When `true`, Telnyx forwards the assistant's dynamic variables to the external
|
|
353
|
-
* LLM endpoint as a top-level `extra_metadata` object on the chat completion
|
|
354
|
-
* request body. Defaults to `false`. Example payload sent to the external
|
|
355
|
-
* endpoint:
|
|
356
|
-
* `{"extra_metadata": {"customer_name": "Jane", "account_id": "acct_789", "telnyx_agent_target": "+13125550100", "telnyx_end_user_target": "+13125550123"}}`.
|
|
357
|
-
* Distinct from OpenAI's native `metadata` field, which has its own size and type
|
|
358
|
-
* limits.
|
|
359
|
-
*/
|
|
360
|
-
forward_metadata?: boolean;
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Integration secret identifier for the external LLM API key.
|
|
364
|
-
*/
|
|
365
|
-
llm_api_key_ref?: string;
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* URL used to retrieve an access token when certificate authentication is enabled.
|
|
369
|
-
*/
|
|
370
|
-
token_retrieval_url?: string;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
|
|
374
269
|
/**
|
|
375
270
|
* Reference to a connected integration attached to an assistant. Discover
|
|
376
271
|
* available integrations with `/ai/integrations` and connected integrations with
|
|
@@ -482,23 +377,6 @@ export namespace UpdateAssistant {
|
|
|
482
377
|
*/
|
|
483
378
|
allowed_tools?: Array<string>;
|
|
484
379
|
}
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* Configuration for post-conversation processing. When enabled, the assistant
|
|
488
|
-
* receives one additional LLM turn after the conversation ends, allowing it to
|
|
489
|
-
* execute tool calls such as logging to a CRM or sending a summary. The assistant
|
|
490
|
-
* can execute multiple parallel or sequential tools during this phase.
|
|
491
|
-
* Telephony-control tools (e.g. hangup, transfer) are unavailable
|
|
492
|
-
* post-conversation. Beta feature.
|
|
493
|
-
*/
|
|
494
|
-
export interface PostConversationSettings {
|
|
495
|
-
/**
|
|
496
|
-
* Whether post-conversation processing is enabled. When true, the assistant will
|
|
497
|
-
* be invoked after the conversation ends to perform any final tool calls. Defaults
|
|
498
|
-
* to false.
|
|
499
|
-
*/
|
|
500
|
-
enabled?: boolean;
|
|
501
|
-
}
|
|
502
380
|
}
|
|
503
381
|
|
|
504
382
|
export interface VersionRetrieveParams {
|
|
@@ -557,12 +435,12 @@ export interface VersionUpdateParams {
|
|
|
557
435
|
/**
|
|
558
436
|
* Body param
|
|
559
437
|
*/
|
|
560
|
-
external_llm?:
|
|
438
|
+
external_llm?: AssistantsAPI.ExternalLlmReq;
|
|
561
439
|
|
|
562
440
|
/**
|
|
563
441
|
* Body param
|
|
564
442
|
*/
|
|
565
|
-
fallback_config?:
|
|
443
|
+
fallback_config?: AssistantsAPI.FallbackConfigReq;
|
|
566
444
|
|
|
567
445
|
/**
|
|
568
446
|
* Body param: Text that the assistant will use to start the conversation. This may
|
|
@@ -652,7 +530,7 @@ export interface VersionUpdateParams {
|
|
|
652
530
|
* Telephony-control tools (e.g. hangup, transfer) are unavailable
|
|
653
531
|
* post-conversation. Beta feature.
|
|
654
532
|
*/
|
|
655
|
-
post_conversation_settings?:
|
|
533
|
+
post_conversation_settings?: AssistantsAPI.PostConversationSettingsReq;
|
|
656
534
|
|
|
657
535
|
/**
|
|
658
536
|
* Body param
|
|
@@ -705,111 +583,6 @@ export interface VersionUpdateParams {
|
|
|
705
583
|
}
|
|
706
584
|
|
|
707
585
|
export namespace VersionUpdateParams {
|
|
708
|
-
export interface ExternalLlm {
|
|
709
|
-
/**
|
|
710
|
-
* Base URL for the external LLM endpoint.
|
|
711
|
-
*/
|
|
712
|
-
base_url: string;
|
|
713
|
-
|
|
714
|
-
/**
|
|
715
|
-
* Model identifier to use with the external LLM endpoint.
|
|
716
|
-
*/
|
|
717
|
-
model: string;
|
|
718
|
-
|
|
719
|
-
/**
|
|
720
|
-
* Authentication method used when connecting to the external LLM endpoint.
|
|
721
|
-
*/
|
|
722
|
-
authentication_method?: 'token' | 'certificate';
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* Integration secret identifier for the client certificate used with certificate
|
|
726
|
-
* authentication.
|
|
727
|
-
*/
|
|
728
|
-
certificate_ref?: string;
|
|
729
|
-
|
|
730
|
-
/**
|
|
731
|
-
* When `true`, Telnyx forwards the assistant's dynamic variables to the external
|
|
732
|
-
* LLM endpoint as a top-level `extra_metadata` object on the chat completion
|
|
733
|
-
* request body. Defaults to `false`. Example payload sent to the external
|
|
734
|
-
* endpoint:
|
|
735
|
-
* `{"extra_metadata": {"customer_name": "Jane", "account_id": "acct_789", "telnyx_agent_target": "+13125550100", "telnyx_end_user_target": "+13125550123"}}`.
|
|
736
|
-
* Distinct from OpenAI's native `metadata` field, which has its own size and type
|
|
737
|
-
* limits.
|
|
738
|
-
*/
|
|
739
|
-
forward_metadata?: boolean;
|
|
740
|
-
|
|
741
|
-
/**
|
|
742
|
-
* Integration secret identifier for the external LLM API key.
|
|
743
|
-
*/
|
|
744
|
-
llm_api_key_ref?: string;
|
|
745
|
-
|
|
746
|
-
/**
|
|
747
|
-
* URL used to retrieve an access token when certificate authentication is enabled.
|
|
748
|
-
*/
|
|
749
|
-
token_retrieval_url?: string;
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
export interface FallbackConfig {
|
|
753
|
-
external_llm?: FallbackConfig.ExternalLlm;
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
* Integration secret identifier for the fallback model API key.
|
|
757
|
-
*/
|
|
758
|
-
llm_api_key_ref?: string;
|
|
759
|
-
|
|
760
|
-
/**
|
|
761
|
-
* Fallback Telnyx-hosted model to use when the primary LLM provider is
|
|
762
|
-
* unavailable.
|
|
763
|
-
*/
|
|
764
|
-
model?: string;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
export namespace FallbackConfig {
|
|
768
|
-
export interface ExternalLlm {
|
|
769
|
-
/**
|
|
770
|
-
* Base URL for the external LLM endpoint.
|
|
771
|
-
*/
|
|
772
|
-
base_url: string;
|
|
773
|
-
|
|
774
|
-
/**
|
|
775
|
-
* Model identifier to use with the external LLM endpoint.
|
|
776
|
-
*/
|
|
777
|
-
model: string;
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
* Authentication method used when connecting to the external LLM endpoint.
|
|
781
|
-
*/
|
|
782
|
-
authentication_method?: 'token' | 'certificate';
|
|
783
|
-
|
|
784
|
-
/**
|
|
785
|
-
* Integration secret identifier for the client certificate used with certificate
|
|
786
|
-
* authentication.
|
|
787
|
-
*/
|
|
788
|
-
certificate_ref?: string;
|
|
789
|
-
|
|
790
|
-
/**
|
|
791
|
-
* When `true`, Telnyx forwards the assistant's dynamic variables to the external
|
|
792
|
-
* LLM endpoint as a top-level `extra_metadata` object on the chat completion
|
|
793
|
-
* request body. Defaults to `false`. Example payload sent to the external
|
|
794
|
-
* endpoint:
|
|
795
|
-
* `{"extra_metadata": {"customer_name": "Jane", "account_id": "acct_789", "telnyx_agent_target": "+13125550100", "telnyx_end_user_target": "+13125550123"}}`.
|
|
796
|
-
* Distinct from OpenAI's native `metadata` field, which has its own size and type
|
|
797
|
-
* limits.
|
|
798
|
-
*/
|
|
799
|
-
forward_metadata?: boolean;
|
|
800
|
-
|
|
801
|
-
/**
|
|
802
|
-
* Integration secret identifier for the external LLM API key.
|
|
803
|
-
*/
|
|
804
|
-
llm_api_key_ref?: string;
|
|
805
|
-
|
|
806
|
-
/**
|
|
807
|
-
* URL used to retrieve an access token when certificate authentication is enabled.
|
|
808
|
-
*/
|
|
809
|
-
token_retrieval_url?: string;
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
|
|
813
586
|
/**
|
|
814
587
|
* Reference to a connected integration attached to an assistant. Discover
|
|
815
588
|
* available integrations with `/ai/integrations` and connected integrations with
|
|
@@ -921,23 +694,6 @@ export namespace VersionUpdateParams {
|
|
|
921
694
|
*/
|
|
922
695
|
allowed_tools?: Array<string>;
|
|
923
696
|
}
|
|
924
|
-
|
|
925
|
-
/**
|
|
926
|
-
* Configuration for post-conversation processing. When enabled, the assistant
|
|
927
|
-
* receives one additional LLM turn after the conversation ends, allowing it to
|
|
928
|
-
* execute tool calls such as logging to a CRM or sending a summary. The assistant
|
|
929
|
-
* can execute multiple parallel or sequential tools during this phase.
|
|
930
|
-
* Telephony-control tools (e.g. hangup, transfer) are unavailable
|
|
931
|
-
* post-conversation. Beta feature.
|
|
932
|
-
*/
|
|
933
|
-
export interface PostConversationSettings {
|
|
934
|
-
/**
|
|
935
|
-
* Whether post-conversation processing is enabled. When true, the assistant will
|
|
936
|
-
* be invoked after the conversation ends to perform any final tool calls. Defaults
|
|
937
|
-
* to false.
|
|
938
|
-
*/
|
|
939
|
-
enabled?: boolean;
|
|
940
|
-
}
|
|
941
697
|
}
|
|
942
698
|
|
|
943
699
|
export interface VersionDeleteParams {
|
|
@@ -8,6 +8,10 @@ export {
|
|
|
8
8
|
type AssistantsList,
|
|
9
9
|
type AudioVisualizerConfig,
|
|
10
10
|
type EnabledFeatures,
|
|
11
|
+
type ExternalLlm,
|
|
12
|
+
type ExternalLlmReq,
|
|
13
|
+
type FallbackConfig,
|
|
14
|
+
type FallbackConfigReq,
|
|
11
15
|
type HangupTool,
|
|
12
16
|
type HangupToolParams,
|
|
13
17
|
type ImportMetadata,
|
|
@@ -17,6 +21,8 @@ export {
|
|
|
17
21
|
type MessagingSettings,
|
|
18
22
|
type Observability,
|
|
19
23
|
type ObservabilityReq,
|
|
24
|
+
type PostConversationSettings,
|
|
25
|
+
type PostConversationSettingsReq,
|
|
20
26
|
type PrivacySettings,
|
|
21
27
|
type RetrievalTool,
|
|
22
28
|
type TelephonySettings,
|
|
@@ -2673,6 +2673,8 @@ export interface ActionGatherUsingAIParams {
|
|
|
2673
2673
|
* - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
2674
2674
|
* - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
2675
2675
|
* `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
2676
|
+
* - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
2677
|
+
* `ara`, `rex`, `sal`, `leo`.
|
|
2676
2678
|
*/
|
|
2677
2679
|
voice?: string;
|
|
2678
2680
|
|
|
@@ -2685,7 +2687,8 @@ export interface ActionGatherUsingAIParams {
|
|
|
2685
2687
|
| AwsVoiceSettings
|
|
2686
2688
|
| Shared.AzureVoiceSettings
|
|
2687
2689
|
| Shared.RimeVoiceSettings
|
|
2688
|
-
| Shared.ResembleVoiceSettings
|
|
2690
|
+
| Shared.ResembleVoiceSettings
|
|
2691
|
+
| ActionGatherUsingAIParams.XaiVoiceSettings;
|
|
2689
2692
|
}
|
|
2690
2693
|
|
|
2691
2694
|
export namespace ActionGatherUsingAIParams {
|
|
@@ -2700,6 +2703,18 @@ export namespace ActionGatherUsingAIParams {
|
|
|
2700
2703
|
*/
|
|
2701
2704
|
role?: 'assistant' | 'user';
|
|
2702
2705
|
}
|
|
2706
|
+
|
|
2707
|
+
export interface XaiVoiceSettings {
|
|
2708
|
+
/**
|
|
2709
|
+
* Voice settings provider type
|
|
2710
|
+
*/
|
|
2711
|
+
type: 'xai';
|
|
2712
|
+
|
|
2713
|
+
/**
|
|
2714
|
+
* Language code, or `auto` to detect automatically.
|
|
2715
|
+
*/
|
|
2716
|
+
language?: string;
|
|
2717
|
+
}
|
|
2703
2718
|
}
|
|
2704
2719
|
|
|
2705
2720
|
export interface ActionGatherUsingAudioParams {
|
|
@@ -2832,6 +2847,8 @@ export interface ActionGatherUsingSpeakParams {
|
|
|
2832
2847
|
* `voice_settings` to configure precision, sample_rate, and format.
|
|
2833
2848
|
* - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
2834
2849
|
* `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
2850
|
+
* - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
2851
|
+
* `ara`, `rex`, `sal`, `leo`.
|
|
2835
2852
|
*
|
|
2836
2853
|
* For service_level basic, you may define the gender of the speaker (male or
|
|
2837
2854
|
* female).
|
|
@@ -2954,7 +2971,8 @@ export interface ActionGatherUsingSpeakParams {
|
|
|
2954
2971
|
| Shared.AzureVoiceSettings
|
|
2955
2972
|
| Shared.RimeVoiceSettings
|
|
2956
2973
|
| Shared.ResembleVoiceSettings
|
|
2957
|
-
| ActionGatherUsingSpeakParams.InworldVoiceSettings
|
|
2974
|
+
| ActionGatherUsingSpeakParams.InworldVoiceSettings
|
|
2975
|
+
| ActionGatherUsingSpeakParams.XaiVoiceSettings;
|
|
2958
2976
|
}
|
|
2959
2977
|
|
|
2960
2978
|
export namespace ActionGatherUsingSpeakParams {
|
|
@@ -2964,6 +2982,18 @@ export namespace ActionGatherUsingSpeakParams {
|
|
|
2964
2982
|
*/
|
|
2965
2983
|
type: 'inworld';
|
|
2966
2984
|
}
|
|
2985
|
+
|
|
2986
|
+
export interface XaiVoiceSettings {
|
|
2987
|
+
/**
|
|
2988
|
+
* Voice settings provider type
|
|
2989
|
+
*/
|
|
2990
|
+
type: 'xai';
|
|
2991
|
+
|
|
2992
|
+
/**
|
|
2993
|
+
* Language code, or `auto` to detect automatically.
|
|
2994
|
+
*/
|
|
2995
|
+
language?: string;
|
|
2996
|
+
}
|
|
2967
2997
|
}
|
|
2968
2998
|
|
|
2969
2999
|
export interface ActionHangupParams {
|
|
@@ -3239,6 +3269,8 @@ export interface ActionSpeakParams {
|
|
|
3239
3269
|
* `voice_settings` to configure precision, sample_rate, and format.
|
|
3240
3270
|
* - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
3241
3271
|
* `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
3272
|
+
* - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
3273
|
+
* `ara`, `rex`, `sal`, `leo`.
|
|
3242
3274
|
*
|
|
3243
3275
|
* For service_level basic, you may define the gender of the speaker (male or
|
|
3244
3276
|
* female).
|
|
@@ -3334,7 +3366,8 @@ export interface ActionSpeakParams {
|
|
|
3334
3366
|
| Shared.AzureVoiceSettings
|
|
3335
3367
|
| Shared.RimeVoiceSettings
|
|
3336
3368
|
| Shared.ResembleVoiceSettings
|
|
3337
|
-
| ActionSpeakParams.InworldVoiceSettings
|
|
3369
|
+
| ActionSpeakParams.InworldVoiceSettings
|
|
3370
|
+
| ActionSpeakParams.XaiVoiceSettings;
|
|
3338
3371
|
}
|
|
3339
3372
|
|
|
3340
3373
|
export namespace ActionSpeakParams {
|
|
@@ -3344,6 +3377,18 @@ export namespace ActionSpeakParams {
|
|
|
3344
3377
|
*/
|
|
3345
3378
|
type: 'inworld';
|
|
3346
3379
|
}
|
|
3380
|
+
|
|
3381
|
+
export interface XaiVoiceSettings {
|
|
3382
|
+
/**
|
|
3383
|
+
* Voice settings provider type
|
|
3384
|
+
*/
|
|
3385
|
+
type: 'xai';
|
|
3386
|
+
|
|
3387
|
+
/**
|
|
3388
|
+
* Language code, or `auto` to detect automatically.
|
|
3389
|
+
*/
|
|
3390
|
+
language?: string;
|
|
3391
|
+
}
|
|
3347
3392
|
}
|
|
3348
3393
|
|
|
3349
3394
|
export interface ActionStartAIAssistantParams {
|
|
@@ -3434,6 +3479,8 @@ export interface ActionStartAIAssistantParams {
|
|
|
3434
3479
|
* - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
3435
3480
|
* - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
3436
3481
|
* `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
3482
|
+
* - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
3483
|
+
* `ara`, `rex`, `sal`, `leo`.
|
|
3437
3484
|
*/
|
|
3438
3485
|
voice?: string;
|
|
3439
3486
|
|
|
@@ -3446,7 +3493,8 @@ export interface ActionStartAIAssistantParams {
|
|
|
3446
3493
|
| AwsVoiceSettings
|
|
3447
3494
|
| Shared.AzureVoiceSettings
|
|
3448
3495
|
| Shared.RimeVoiceSettings
|
|
3449
|
-
| Shared.ResembleVoiceSettings
|
|
3496
|
+
| Shared.ResembleVoiceSettings
|
|
3497
|
+
| ActionStartAIAssistantParams.XaiVoiceSettings;
|
|
3450
3498
|
}
|
|
3451
3499
|
|
|
3452
3500
|
export namespace ActionStartAIAssistantParams {
|
|
@@ -3614,6 +3662,18 @@ export namespace ActionStartAIAssistantParams {
|
|
|
3614
3662
|
*/
|
|
3615
3663
|
on_hangup?: 'continue_conversation' | 'end_conversation';
|
|
3616
3664
|
}
|
|
3665
|
+
|
|
3666
|
+
export interface XaiVoiceSettings {
|
|
3667
|
+
/**
|
|
3668
|
+
* Voice settings provider type
|
|
3669
|
+
*/
|
|
3670
|
+
type: 'xai';
|
|
3671
|
+
|
|
3672
|
+
/**
|
|
3673
|
+
* Language code, or `auto` to detect automatically.
|
|
3674
|
+
*/
|
|
3675
|
+
language?: string;
|
|
3676
|
+
}
|
|
3617
3677
|
}
|
|
3618
3678
|
|
|
3619
3679
|
export interface ActionStartForkingParams {
|
|
@@ -940,6 +940,8 @@ export interface ActionSpeakParams {
|
|
|
940
940
|
* `voice_settings` to configure precision, sample_rate, and format.
|
|
941
941
|
* - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
942
942
|
* `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
943
|
+
* - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
944
|
+
* `ara`, `rex`, `sal`, `leo`.
|
|
943
945
|
*
|
|
944
946
|
* For service_level basic, you may define the gender of the speaker (male or
|
|
945
947
|
* female).
|
|
@@ -1017,7 +1019,8 @@ export interface ActionSpeakParams {
|
|
|
1017
1019
|
| Shared.AzureVoiceSettings
|
|
1018
1020
|
| Shared.RimeVoiceSettings
|
|
1019
1021
|
| Shared.ResembleVoiceSettings
|
|
1020
|
-
| ActionSpeakParams.InworldVoiceSettings
|
|
1022
|
+
| ActionSpeakParams.InworldVoiceSettings
|
|
1023
|
+
| ActionSpeakParams.XaiVoiceSettings;
|
|
1021
1024
|
}
|
|
1022
1025
|
|
|
1023
1026
|
export namespace ActionSpeakParams {
|
|
@@ -1027,6 +1030,18 @@ export namespace ActionSpeakParams {
|
|
|
1027
1030
|
*/
|
|
1028
1031
|
type: 'inworld';
|
|
1029
1032
|
}
|
|
1033
|
+
|
|
1034
|
+
export interface XaiVoiceSettings {
|
|
1035
|
+
/**
|
|
1036
|
+
* Voice settings provider type
|
|
1037
|
+
*/
|
|
1038
|
+
type: 'xai';
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* Language code, or `auto` to detect automatically.
|
|
1042
|
+
*/
|
|
1043
|
+
language?: string;
|
|
1044
|
+
}
|
|
1030
1045
|
}
|
|
1031
1046
|
|
|
1032
1047
|
export interface ActionStopParams {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.48.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.48.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.48.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.48.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|