@gravity-rail/sdk 3.0.1 → 3.2.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/README.md +9 -0
- package/dist/{chat-interaction-BPqj_KMO.d.cts → chat-interaction-Cc9hQNyx.d.ts} +97 -5
- package/dist/{chat-interaction-CDlei6KK.d.ts → chat-interaction-CoHsIqyX.d.cts} +97 -5
- package/dist/{chunk-LWRMGN4Z.js → chunk-MAPAZORN.js} +49 -2
- package/dist/chunk-MAPAZORN.js.map +1 -0
- package/dist/helpers.d.cts +2 -2
- package/dist/helpers.d.ts +2 -2
- package/dist/index.cjs +48 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/internal.cjs +48 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +5 -5
- package/dist/internal.d.ts +5 -5
- package/dist/internal.js +1 -1
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-DxBggQLc.d.cts → member-import-9h52_4KO.d.cts} +1 -1
- package/dist/{member-import-BbWJzHSV.d.ts → member-import-BWyl88Qx.d.ts} +1 -1
- package/dist/{path-bqfiH1XI.d.cts → path-CXnjBalr.d.cts} +4 -2
- package/dist/{path-5DteJvEx.d.ts → path-ChuuGGLG.d.ts} +4 -2
- package/dist/schemas.d.cts +22 -22
- package/dist/schemas.d.ts +22 -22
- package/dist/{tasks-fAwwBZIX.d.cts → tasks-B7tIHQcS.d.cts} +6 -3
- package/dist/{tasks-fAwwBZIX.d.ts → tasks-B7tIHQcS.d.ts} +6 -3
- package/package.json +1 -1
- package/dist/chunk-LWRMGN4Z.js.map +0 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { b as DataFieldType, b8 as DataTypeRecordScope, b4 as DataSensitivity, aR as DataCategory, bR as IndexStatus } from './tasks-
|
|
2
|
+
import { b as DataFieldType, b8 as DataTypeRecordScope, b4 as DataSensitivity, aR as DataCategory, bR as IndexStatus } from './tasks-B7tIHQcS.js';
|
|
3
3
|
import { CalendarScheduleAvailabilityType, CalendarScheduleRecurrence, CalendarEventStatus, AttendeeResponseStatus } from './index.js';
|
|
4
|
-
export { gy as AbilityData, gz as AbilityDataSchema, gA as AnonymousInquiryFormSchema, gB as ArchiveTaskInput, gC as ArchiveTaskSchema, gD as ChatTaskConfigurationPatchSchema, gE as ChildTaskFormData, gF as ChildTaskFormDataSchema, gG as CreateInquiryInput, gq as CreateInquirySchema, gH as CreateTaskInput, gI as CreateTaskSchema, gJ as DeleteInquiryInput, gK as DeleteInquirySchema, gL as DeleteTaskInput, gM as DeleteTaskSchema, gN as EnrichInquiryInput, gO as EnrichInquirySchema, gP as GetInquiryInput, gQ as GetInquirySchema, gR as GetTaskInput, gS as GetTaskSchema, gT as ListInquiriesInput, gU as ListInquiriesSchema, gV as ListTasksInput, gW as ListTasksSchema, gX as OutcomeTaskRoutingSchema, gY as TaskFormData, gZ as TaskFormDataSchema, g_ as UnarchiveTaskInput, g$ as UnarchiveTaskSchema, h0 as UpdateInquiryInput, gr as UpdateInquiryRequestSchema, h1 as UpdateInquirySchema, h2 as UpdateTaskInput, h3 as UpdateTaskSchema } from './tasks-
|
|
4
|
+
export { gy as AbilityData, gz as AbilityDataSchema, gA as AnonymousInquiryFormSchema, gB as ArchiveTaskInput, gC as ArchiveTaskSchema, gD as ChatTaskConfigurationPatchSchema, gE as ChildTaskFormData, gF as ChildTaskFormDataSchema, gG as CreateInquiryInput, gq as CreateInquirySchema, gH as CreateTaskInput, gI as CreateTaskSchema, gJ as DeleteInquiryInput, gK as DeleteInquirySchema, gL as DeleteTaskInput, gM as DeleteTaskSchema, gN as EnrichInquiryInput, gO as EnrichInquirySchema, gP as GetInquiryInput, gQ as GetInquirySchema, gR as GetTaskInput, gS as GetTaskSchema, gT as ListInquiriesInput, gU as ListInquiriesSchema, gV as ListTasksInput, gW as ListTasksSchema, gX as OutcomeTaskRoutingSchema, gY as TaskFormData, gZ as TaskFormDataSchema, g_ as UnarchiveTaskInput, g$ as UnarchiveTaskSchema, h0 as UpdateInquiryInput, gr as UpdateInquiryRequestSchema, h1 as UpdateInquirySchema, h2 as UpdateTaskInput, h3 as UpdateTaskSchema } from './tasks-B7tIHQcS.js';
|
|
5
5
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1016,13 +1016,13 @@ type RevokeICalTokenInput = z.infer<typeof RevokeICalTokenSchema>;
|
|
|
1016
1016
|
type GetICalUrlInput = z.infer<typeof GetICalUrlSchema>;
|
|
1017
1017
|
|
|
1018
1018
|
declare const ChannelEnum: z.ZodEnum<{
|
|
1019
|
-
email: "email";
|
|
1020
1019
|
cli: "cli";
|
|
1021
1020
|
frame: "frame";
|
|
1022
1021
|
"phone-sms": "phone-sms";
|
|
1023
1022
|
"phone-voice": "phone-voice";
|
|
1024
1023
|
fax: "fax";
|
|
1025
1024
|
"phone-whatsapp": "phone-whatsapp";
|
|
1025
|
+
email: "email";
|
|
1026
1026
|
background: "background";
|
|
1027
1027
|
"web-chat": "web-chat";
|
|
1028
1028
|
"web-voice": "web-voice";
|
|
@@ -1041,19 +1041,19 @@ declare const MessageRoleEnum: z.ZodEnum<{
|
|
|
1041
1041
|
tool: "tool";
|
|
1042
1042
|
}>;
|
|
1043
1043
|
declare const ChatFilterObjectTypeEnum: z.ZodEnum<{
|
|
1044
|
+
paused: "paused";
|
|
1045
|
+
owner: "owner";
|
|
1044
1046
|
title: "title";
|
|
1045
1047
|
participant: "participant";
|
|
1046
1048
|
mode: "mode";
|
|
1047
1049
|
channel: "channel";
|
|
1048
|
-
owner: "owner";
|
|
1049
1050
|
needsResponse: "needsResponse";
|
|
1050
|
-
paused: "paused";
|
|
1051
1051
|
messageCount: "messageCount";
|
|
1052
1052
|
toolCall: "toolCall";
|
|
1053
1053
|
}>;
|
|
1054
1054
|
declare const ChatFilterFilterTypeEnum: z.ZodEnum<{
|
|
1055
|
-
any: "any";
|
|
1056
1055
|
active: "active";
|
|
1056
|
+
any: "any";
|
|
1057
1057
|
all: "all";
|
|
1058
1058
|
none: "none";
|
|
1059
1059
|
partial: "partial";
|
|
@@ -1075,8 +1075,8 @@ declare const TruncationReasonEnum: z.ZodEnum<{
|
|
|
1075
1075
|
user_cancel: "user_cancel";
|
|
1076
1076
|
}>;
|
|
1077
1077
|
declare const MessageOriginEnum: z.ZodEnum<{
|
|
1078
|
-
tool: "tool";
|
|
1079
1078
|
member: "member";
|
|
1079
|
+
tool: "tool";
|
|
1080
1080
|
agent: "agent";
|
|
1081
1081
|
operator: "operator";
|
|
1082
1082
|
workflow: "workflow";
|
|
@@ -1342,13 +1342,13 @@ declare const ChatSchema: z.ZodObject<{
|
|
|
1342
1342
|
archived: z.ZodBoolean;
|
|
1343
1343
|
muted: z.ZodBoolean;
|
|
1344
1344
|
channel: z.ZodEnum<{
|
|
1345
|
-
email: "email";
|
|
1346
1345
|
cli: "cli";
|
|
1347
1346
|
frame: "frame";
|
|
1348
1347
|
"phone-sms": "phone-sms";
|
|
1349
1348
|
"phone-voice": "phone-voice";
|
|
1350
1349
|
fax: "fax";
|
|
1351
1350
|
"phone-whatsapp": "phone-whatsapp";
|
|
1351
|
+
email: "email";
|
|
1352
1352
|
background: "background";
|
|
1353
1353
|
"web-chat": "web-chat";
|
|
1354
1354
|
"web-voice": "web-voice";
|
|
@@ -1398,19 +1398,19 @@ declare const ChatSchema: z.ZodObject<{
|
|
|
1398
1398
|
}, z.core.$strip>;
|
|
1399
1399
|
declare const ChatFilterRuleSchema: z.ZodObject<{
|
|
1400
1400
|
objectType: z.ZodEnum<{
|
|
1401
|
+
paused: "paused";
|
|
1402
|
+
owner: "owner";
|
|
1401
1403
|
title: "title";
|
|
1402
1404
|
participant: "participant";
|
|
1403
1405
|
mode: "mode";
|
|
1404
1406
|
channel: "channel";
|
|
1405
|
-
owner: "owner";
|
|
1406
1407
|
needsResponse: "needsResponse";
|
|
1407
|
-
paused: "paused";
|
|
1408
1408
|
messageCount: "messageCount";
|
|
1409
1409
|
toolCall: "toolCall";
|
|
1410
1410
|
}>;
|
|
1411
1411
|
filterType: z.ZodEnum<{
|
|
1412
|
-
any: "any";
|
|
1413
1412
|
active: "active";
|
|
1413
|
+
any: "any";
|
|
1414
1414
|
all: "all";
|
|
1415
1415
|
none: "none";
|
|
1416
1416
|
partial: "partial";
|
|
@@ -1424,19 +1424,19 @@ declare const ChatFilterRuleSchema: z.ZodObject<{
|
|
|
1424
1424
|
}, z.core.$strip>;
|
|
1425
1425
|
declare const ChatFilterRuleFormDataSchema: z.ZodObject<{
|
|
1426
1426
|
objectType: z.ZodEnum<{
|
|
1427
|
+
paused: "paused";
|
|
1428
|
+
owner: "owner";
|
|
1427
1429
|
title: "title";
|
|
1428
1430
|
participant: "participant";
|
|
1429
1431
|
mode: "mode";
|
|
1430
1432
|
channel: "channel";
|
|
1431
|
-
owner: "owner";
|
|
1432
1433
|
needsResponse: "needsResponse";
|
|
1433
|
-
paused: "paused";
|
|
1434
1434
|
messageCount: "messageCount";
|
|
1435
1435
|
toolCall: "toolCall";
|
|
1436
1436
|
}>;
|
|
1437
1437
|
filterType: z.ZodEnum<{
|
|
1438
|
-
any: "any";
|
|
1439
1438
|
active: "active";
|
|
1439
|
+
any: "any";
|
|
1440
1440
|
all: "all";
|
|
1441
1441
|
none: "none";
|
|
1442
1442
|
partial: "partial";
|
|
@@ -1576,8 +1576,8 @@ declare const ChatMessageAPIResponseSchema: z.ZodObject<{
|
|
|
1576
1576
|
smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1577
1577
|
smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1578
1578
|
origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1579
|
-
tool: "tool";
|
|
1580
1579
|
member: "member";
|
|
1580
|
+
tool: "tool";
|
|
1581
1581
|
agent: "agent";
|
|
1582
1582
|
operator: "operator";
|
|
1583
1583
|
workflow: "workflow";
|
|
@@ -1667,8 +1667,8 @@ declare const ChatMessageUISchema: z.ZodObject<{
|
|
|
1667
1667
|
smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1668
1668
|
smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1669
1669
|
origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1670
|
-
tool: "tool";
|
|
1671
1670
|
member: "member";
|
|
1671
|
+
tool: "tool";
|
|
1672
1672
|
agent: "agent";
|
|
1673
1673
|
operator: "operator";
|
|
1674
1674
|
workflow: "workflow";
|
|
@@ -1755,8 +1755,8 @@ declare const ChatMessageSchema: z.ZodObject<{
|
|
|
1755
1755
|
smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1756
1756
|
smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1757
1757
|
origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1758
|
-
tool: "tool";
|
|
1759
1758
|
member: "member";
|
|
1759
|
+
tool: "tool";
|
|
1760
1760
|
agent: "agent";
|
|
1761
1761
|
operator: "operator";
|
|
1762
1762
|
workflow: "workflow";
|
|
@@ -2810,8 +2810,8 @@ declare const WorkflowCreateFormDataSchema: z.ZodObject<{
|
|
|
2810
2810
|
offlineMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2811
2811
|
pauseOnEscalate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2812
2812
|
routingMode: z.ZodOptional<z.ZodEnum<{
|
|
2813
|
-
custom: "custom";
|
|
2814
2813
|
workspace: "workspace";
|
|
2814
|
+
custom: "custom";
|
|
2815
2815
|
}>>;
|
|
2816
2816
|
includeWorkspaceRules: z.ZodOptional<z.ZodBoolean>;
|
|
2817
2817
|
manualToolEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2880,8 +2880,8 @@ declare const WorkflowFormDataSchema: z.ZodObject<{
|
|
|
2880
2880
|
offlineMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2881
2881
|
pauseOnEscalate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2882
2882
|
routingMode: z.ZodOptional<z.ZodEnum<{
|
|
2883
|
-
custom: "custom";
|
|
2884
2883
|
workspace: "workspace";
|
|
2884
|
+
custom: "custom";
|
|
2885
2885
|
}>>;
|
|
2886
2886
|
includeWorkspaceRules: z.ZodOptional<z.ZodBoolean>;
|
|
2887
2887
|
manualToolEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2946,8 +2946,8 @@ declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
2946
2946
|
offlineMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2947
2947
|
pauseOnEscalate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2948
2948
|
routingMode: z.ZodOptional<z.ZodEnum<{
|
|
2949
|
-
custom: "custom";
|
|
2950
2949
|
workspace: "workspace";
|
|
2950
|
+
custom: "custom";
|
|
2951
2951
|
}>>;
|
|
2952
2952
|
includeWorkspaceRules: z.ZodOptional<z.ZodBoolean>;
|
|
2953
2953
|
manualToolEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3001,8 +3001,8 @@ declare const UpdateWorkflowSchema: z.ZodObject<{
|
|
|
3001
3001
|
offlineMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3002
3002
|
pauseOnEscalate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3003
3003
|
routingMode: z.ZodOptional<z.ZodEnum<{
|
|
3004
|
-
custom: "custom";
|
|
3005
3004
|
workspace: "workspace";
|
|
3005
|
+
custom: "custom";
|
|
3006
3006
|
}>>;
|
|
3007
3007
|
includeWorkspaceRules: z.ZodOptional<z.ZodBoolean>;
|
|
3008
3008
|
manualToolEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3076,8 +3076,8 @@ declare const WorkflowEscalationPolicySchema: z.ZodObject<{
|
|
|
3076
3076
|
offlineMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3077
3077
|
pauseOnEscalate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3078
3078
|
routingMode: z.ZodOptional<z.ZodEnum<{
|
|
3079
|
-
custom: "custom";
|
|
3080
3079
|
workspace: "workspace";
|
|
3080
|
+
custom: "custom";
|
|
3081
3081
|
}>>;
|
|
3082
3082
|
includeWorkspaceRules: z.ZodOptional<z.ZodBoolean>;
|
|
3083
3083
|
manualToolEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -98,6 +98,7 @@ declare const EventRuleActionType$1: {
|
|
|
98
98
|
readonly 'journey:enroll': "journey:enroll";
|
|
99
99
|
readonly 'connection:sync': "connection:sync";
|
|
100
100
|
readonly 'connector:operation': "connector:operation";
|
|
101
|
+
readonly 'hubspot:create_deal_from_booking': "hubspot:create_deal_from_booking";
|
|
101
102
|
readonly 'ecw:refresh_member_encounters': "ecw:refresh_member_encounters";
|
|
102
103
|
readonly 'audio:play': "audio:play";
|
|
103
104
|
readonly 'charleston:send_pmd_page': "charleston:send_pmd_page";
|
|
@@ -3047,6 +3048,7 @@ declare enum EventRuleActionType {
|
|
|
3047
3048
|
INVOKE_CUSTOM_TOOL = "custom_tool:invoke",
|
|
3048
3049
|
MONDAY_UPSERT_ITEM = "monday:upsert_item",
|
|
3049
3050
|
MONDAY_REFRESH = "monday:refresh",
|
|
3051
|
+
HUBSPOT_CREATE_DEAL_FROM_BOOKING = "hubspot:create_deal_from_booking",
|
|
3050
3052
|
ASSIGNMENT_CONCLUDE = "assignment:conclude",
|
|
3051
3053
|
JOURNEY_ENROLL = "journey:enroll",
|
|
3052
3054
|
SMS_SEND = "sms:send",
|
|
@@ -4699,8 +4701,9 @@ declare const XAIRealtimeModelConfigVoiceModel: {
|
|
|
4699
4701
|
* READ THIS BEFORE SETTING ANY FIELD HERE. A configured ``turnDetection``
|
|
4700
4702
|
* REPLACES xAI's default block wholesale — it is not merged with
|
|
4701
4703
|
* ``XAIRealtimeSocketManager._build_default_turn_detection()``. Setting
|
|
4702
|
-
* ``idle_timeout_ms`` alone therefore also drops the
|
|
4703
|
-
* ``threshold`` (0.
|
|
4704
|
+
* ``idle_timeout_ms`` alone therefore also drops the provider-resolved
|
|
4705
|
+
* ``threshold`` (0.85 for μ-law phone legs resolved to PCM16/24 kHz;
|
|
4706
|
+
* 0.6 for direct G.711/A-law) and ``prefix_padding_ms`` (333) back to this
|
|
4704
4707
|
* schema's OpenAI-shaped defaults (0.5 / 300). Carry the values you want
|
|
4705
4708
|
* explicitly in the same block.
|
|
4706
4709
|
*/
|
|
@@ -4717,7 +4720,7 @@ interface XAIServerVADTurnDetection$1 {
|
|
|
4717
4720
|
create_response?: boolean | null;
|
|
4718
4721
|
/** Allow user to interrupt the response */
|
|
4719
4722
|
interrupt_response?: boolean | null;
|
|
4720
|
-
/** How long xAI waits through caller silence before speaking again unprompted. Unset — the default — leaves re-engagement off. There is deliberately NO platform default: whether an agent should break a silence, and after how long, is a per-workflow decision made from eval evidence. xAI CLAMPS THIS UP TO ITS OWN FLOOR: an acceptance spike against grok-voice-think-fast-2.0 sent 3000 and `session.updated` echoed back 5000, so read the echoed session rather than this field when the exact wait matters.
|
|
4723
|
+
/** How long xAI waits through caller silence before speaking again unprompted. Unset — the default — leaves re-engagement off. There is deliberately NO platform default: whether an agent should break a silence, and after how long, is a per-workflow decision made from eval evidence. xAI CLAMPS THIS UP TO ITS OWN FLOOR: an acceptance spike against grok-voice-think-fast-2.0 sent 3000 and `session.updated` echoed back 5000, so read the echoed session rather than this field when the exact wait matters. A synthetic Grok Voice 3 PCM16/24 kHz probe observed idle audio responses with threshold 0.85 and an 8000 ms timeout; live caller delivery still needs call evidence. On native resume, this also enables one short platform liveness prompt at the configured interval when ordinary handoff turn recovery does not apply. Either side speaking cancels it. */
|
|
4721
4724
|
idle_timeout_ms?: number | null;
|
|
4722
4725
|
}
|
|
4723
4726
|
|
|
@@ -98,6 +98,7 @@ declare const EventRuleActionType$1: {
|
|
|
98
98
|
readonly 'journey:enroll': "journey:enroll";
|
|
99
99
|
readonly 'connection:sync': "connection:sync";
|
|
100
100
|
readonly 'connector:operation': "connector:operation";
|
|
101
|
+
readonly 'hubspot:create_deal_from_booking': "hubspot:create_deal_from_booking";
|
|
101
102
|
readonly 'ecw:refresh_member_encounters': "ecw:refresh_member_encounters";
|
|
102
103
|
readonly 'audio:play': "audio:play";
|
|
103
104
|
readonly 'charleston:send_pmd_page': "charleston:send_pmd_page";
|
|
@@ -3047,6 +3048,7 @@ declare enum EventRuleActionType {
|
|
|
3047
3048
|
INVOKE_CUSTOM_TOOL = "custom_tool:invoke",
|
|
3048
3049
|
MONDAY_UPSERT_ITEM = "monday:upsert_item",
|
|
3049
3050
|
MONDAY_REFRESH = "monday:refresh",
|
|
3051
|
+
HUBSPOT_CREATE_DEAL_FROM_BOOKING = "hubspot:create_deal_from_booking",
|
|
3050
3052
|
ASSIGNMENT_CONCLUDE = "assignment:conclude",
|
|
3051
3053
|
JOURNEY_ENROLL = "journey:enroll",
|
|
3052
3054
|
SMS_SEND = "sms:send",
|
|
@@ -4699,8 +4701,9 @@ declare const XAIRealtimeModelConfigVoiceModel: {
|
|
|
4699
4701
|
* READ THIS BEFORE SETTING ANY FIELD HERE. A configured ``turnDetection``
|
|
4700
4702
|
* REPLACES xAI's default block wholesale — it is not merged with
|
|
4701
4703
|
* ``XAIRealtimeSocketManager._build_default_turn_detection()``. Setting
|
|
4702
|
-
* ``idle_timeout_ms`` alone therefore also drops the
|
|
4703
|
-
* ``threshold`` (0.
|
|
4704
|
+
* ``idle_timeout_ms`` alone therefore also drops the provider-resolved
|
|
4705
|
+
* ``threshold`` (0.85 for μ-law phone legs resolved to PCM16/24 kHz;
|
|
4706
|
+
* 0.6 for direct G.711/A-law) and ``prefix_padding_ms`` (333) back to this
|
|
4704
4707
|
* schema's OpenAI-shaped defaults (0.5 / 300). Carry the values you want
|
|
4705
4708
|
* explicitly in the same block.
|
|
4706
4709
|
*/
|
|
@@ -4717,7 +4720,7 @@ interface XAIServerVADTurnDetection$1 {
|
|
|
4717
4720
|
create_response?: boolean | null;
|
|
4718
4721
|
/** Allow user to interrupt the response */
|
|
4719
4722
|
interrupt_response?: boolean | null;
|
|
4720
|
-
/** How long xAI waits through caller silence before speaking again unprompted. Unset — the default — leaves re-engagement off. There is deliberately NO platform default: whether an agent should break a silence, and after how long, is a per-workflow decision made from eval evidence. xAI CLAMPS THIS UP TO ITS OWN FLOOR: an acceptance spike against grok-voice-think-fast-2.0 sent 3000 and `session.updated` echoed back 5000, so read the echoed session rather than this field when the exact wait matters.
|
|
4723
|
+
/** How long xAI waits through caller silence before speaking again unprompted. Unset — the default — leaves re-engagement off. There is deliberately NO platform default: whether an agent should break a silence, and after how long, is a per-workflow decision made from eval evidence. xAI CLAMPS THIS UP TO ITS OWN FLOOR: an acceptance spike against grok-voice-think-fast-2.0 sent 3000 and `session.updated` echoed back 5000, so read the echoed session rather than this field when the exact wait matters. A synthetic Grok Voice 3 PCM16/24 kHz probe observed idle audio responses with threshold 0.85 and an 8000 ms timeout; live caller delivery still needs call evidence. On native resume, this also enables one short platform liveness prompt at the configured interval when ordinary handoff turn recovery does not apply. Either side speaking cancels it. */
|
|
4721
4724
|
idle_timeout_ms?: number | null;
|
|
4722
4725
|
}
|
|
4723
4726
|
|