@gravity-rail/sdk 8.0.0 → 8.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/dist/{agent_standing_job-CnfyOUHF.d.ts → agent_standing_job-CQqd8LDQ.d.ts} +1 -1
- package/dist/{agent_standing_job-DMtlKqoo.d.cts → agent_standing_job-DfjwGfg_.d.cts} +1 -1
- package/dist/{chunk-RKIR4UNS.js → chunk-IIIRXFKG.js} +3 -2
- package/dist/chunk-IIIRXFKG.js.map +1 -0
- package/dist/{chunk-FWDDHKTM.js → chunk-U2U5X3LY.js} +287 -264
- package/dist/chunk-U2U5X3LY.js.map +1 -0
- package/dist/{chat-interaction-KOe9pGEM.d.cts → client-BGGgZhKg.d.cts} +623 -267
- package/dist/{chat-interaction-DTbOs4jH.d.ts → client-Bd-zXY42.d.ts} +623 -267
- package/dist/helpers.d.cts +1 -1
- package/dist/helpers.d.ts +1 -1
- package/dist/index.cjs +287 -263
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +2 -2
- package/dist/internal.cjs +289 -265
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +78 -5
- package/dist/internal.d.ts +78 -5
- package/dist/internal.js +4 -4
- package/dist/realtime.cjs +6 -0
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.js +6 -0
- package/dist/realtime.js.map +1 -1
- package/dist/schemas.cjs +20 -3
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +21 -15
- package/dist/schemas.d.ts +21 -15
- package/dist/schemas.js +21 -4
- package/dist/schemas.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-FWDDHKTM.js.map +0 -1
- package/dist/chunk-RKIR4UNS.js.map +0 -1
package/dist/schemas.d.cts
CHANGED
|
@@ -1096,15 +1096,15 @@ declare const CallActivityLabelSchema: z.ZodObject<{
|
|
|
1096
1096
|
}, z.core.$strict>;
|
|
1097
1097
|
declare const ChannelEnum: z.ZodEnum<{
|
|
1098
1098
|
slack: "slack";
|
|
1099
|
-
discord: "discord";
|
|
1100
1099
|
teams: "teams";
|
|
1101
|
-
|
|
1100
|
+
discord: "discord";
|
|
1102
1101
|
cli: "cli";
|
|
1103
1102
|
frame: "frame";
|
|
1104
1103
|
"phone-sms": "phone-sms";
|
|
1105
1104
|
"phone-voice": "phone-voice";
|
|
1106
1105
|
fax: "fax";
|
|
1107
1106
|
"phone-whatsapp": "phone-whatsapp";
|
|
1107
|
+
email: "email";
|
|
1108
1108
|
background: "background";
|
|
1109
1109
|
"web-chat": "web-chat";
|
|
1110
1110
|
"web-voice": "web-voice";
|
|
@@ -1120,12 +1120,12 @@ declare const MessageRoleEnum: z.ZodEnum<{
|
|
|
1120
1120
|
tool: "tool";
|
|
1121
1121
|
}>;
|
|
1122
1122
|
declare const ChatFilterObjectTypeEnum: z.ZodEnum<{
|
|
1123
|
-
channel: "channel";
|
|
1124
1123
|
paused: "paused";
|
|
1124
|
+
channel: "channel";
|
|
1125
|
+
owner: "owner";
|
|
1125
1126
|
title: "title";
|
|
1126
1127
|
participant: "participant";
|
|
1127
1128
|
mode: "mode";
|
|
1128
|
-
owner: "owner";
|
|
1129
1129
|
needsResponse: "needsResponse";
|
|
1130
1130
|
messageCount: "messageCount";
|
|
1131
1131
|
toolCall: "toolCall";
|
|
@@ -1146,6 +1146,7 @@ declare const ChatMuteReasonEnum: z.ZodEnum<{
|
|
|
1146
1146
|
waiting_on_person: "waiting_on_person";
|
|
1147
1147
|
resolved_elsewhere: "resolved_elsewhere";
|
|
1148
1148
|
not_mine: "not_mine";
|
|
1149
|
+
no_response_needed: "no_response_needed";
|
|
1149
1150
|
}>;
|
|
1150
1151
|
declare const TruncationReasonEnum: z.ZodEnum<{
|
|
1151
1152
|
error: "error";
|
|
@@ -1358,8 +1359,10 @@ declare const UpdateChatMuteSchema: z.ZodObject<{
|
|
|
1358
1359
|
waiting_on_person: "waiting_on_person";
|
|
1359
1360
|
resolved_elsewhere: "resolved_elsewhere";
|
|
1360
1361
|
not_mine: "not_mine";
|
|
1362
|
+
no_response_needed: "no_response_needed";
|
|
1361
1363
|
}>>;
|
|
1362
1364
|
muteExpiresOnInbound: z.ZodOptional<z.ZodBoolean>;
|
|
1365
|
+
dismissInboundMessageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1363
1366
|
}, z.core.$strip>;
|
|
1364
1367
|
declare const GetChatsNeedsResponseSchema: z.ZodObject<{
|
|
1365
1368
|
wid: z.ZodString;
|
|
@@ -1422,15 +1425,15 @@ declare const ChatSchema: z.ZodObject<{
|
|
|
1422
1425
|
muted: z.ZodBoolean;
|
|
1423
1426
|
channel: z.ZodEnum<{
|
|
1424
1427
|
slack: "slack";
|
|
1425
|
-
discord: "discord";
|
|
1426
1428
|
teams: "teams";
|
|
1427
|
-
|
|
1429
|
+
discord: "discord";
|
|
1428
1430
|
cli: "cli";
|
|
1429
1431
|
frame: "frame";
|
|
1430
1432
|
"phone-sms": "phone-sms";
|
|
1431
1433
|
"phone-voice": "phone-voice";
|
|
1432
1434
|
fax: "fax";
|
|
1433
1435
|
"phone-whatsapp": "phone-whatsapp";
|
|
1436
|
+
email: "email";
|
|
1434
1437
|
background: "background";
|
|
1435
1438
|
"web-chat": "web-chat";
|
|
1436
1439
|
"web-voice": "web-voice";
|
|
@@ -1477,12 +1480,12 @@ declare const ChatSchema: z.ZodObject<{
|
|
|
1477
1480
|
}, z.core.$strip>;
|
|
1478
1481
|
declare const ChatFilterRuleSchema: z.ZodObject<{
|
|
1479
1482
|
objectType: z.ZodEnum<{
|
|
1480
|
-
channel: "channel";
|
|
1481
1483
|
paused: "paused";
|
|
1484
|
+
channel: "channel";
|
|
1485
|
+
owner: "owner";
|
|
1482
1486
|
title: "title";
|
|
1483
1487
|
participant: "participant";
|
|
1484
1488
|
mode: "mode";
|
|
1485
|
-
owner: "owner";
|
|
1486
1489
|
needsResponse: "needsResponse";
|
|
1487
1490
|
messageCount: "messageCount";
|
|
1488
1491
|
toolCall: "toolCall";
|
|
@@ -1503,12 +1506,12 @@ declare const ChatFilterRuleSchema: z.ZodObject<{
|
|
|
1503
1506
|
}, z.core.$strip>;
|
|
1504
1507
|
declare const ChatFilterRuleFormDataSchema: z.ZodObject<{
|
|
1505
1508
|
objectType: z.ZodEnum<{
|
|
1506
|
-
channel: "channel";
|
|
1507
1509
|
paused: "paused";
|
|
1510
|
+
channel: "channel";
|
|
1511
|
+
owner: "owner";
|
|
1508
1512
|
title: "title";
|
|
1509
1513
|
participant: "participant";
|
|
1510
1514
|
mode: "mode";
|
|
1511
|
-
owner: "owner";
|
|
1512
1515
|
needsResponse: "needsResponse";
|
|
1513
1516
|
messageCount: "messageCount";
|
|
1514
1517
|
toolCall: "toolCall";
|
|
@@ -2960,6 +2963,7 @@ declare const PhoneNumberFormDataSchema: z.ZodObject<{
|
|
|
2960
2963
|
fax: "fax";
|
|
2961
2964
|
}>>;
|
|
2962
2965
|
voiceUnavailableMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2966
|
+
holdMusicFileId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2963
2967
|
providerPhoneUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2964
2968
|
}, z.core.$strip>;
|
|
2965
2969
|
declare const ListPhoneNumbersSchema: z.ZodObject<{
|
|
@@ -2980,6 +2984,7 @@ declare const CreatePhoneNumberSchema: z.ZodObject<{
|
|
|
2980
2984
|
fax: "fax";
|
|
2981
2985
|
}>>;
|
|
2982
2986
|
voiceUnavailableMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2987
|
+
holdMusicFileId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2983
2988
|
providerPhoneUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2984
2989
|
}, z.core.$strip>;
|
|
2985
2990
|
declare const UpdatePhoneNumberSchema: z.ZodObject<{
|
|
@@ -2994,6 +2999,7 @@ declare const UpdatePhoneNumberSchema: z.ZodObject<{
|
|
|
2994
2999
|
fax: "fax";
|
|
2995
3000
|
}>>>;
|
|
2996
3001
|
voiceUnavailableMessage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3002
|
+
holdMusicFileId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
2997
3003
|
providerPhoneUuid: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
2998
3004
|
}, z.core.$strip>;
|
|
2999
3005
|
declare const ArchivePhoneNumberSchema: z.ZodObject<{
|
|
@@ -3316,8 +3322,8 @@ declare const WorkflowCreateFormDataSchema: z.ZodObject<{
|
|
|
3316
3322
|
offlineMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3317
3323
|
pauseOnEscalate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3318
3324
|
routingMode: z.ZodOptional<z.ZodEnum<{
|
|
3319
|
-
custom: "custom";
|
|
3320
3325
|
workspace: "workspace";
|
|
3326
|
+
custom: "custom";
|
|
3321
3327
|
}>>;
|
|
3322
3328
|
includeWorkspaceRules: z.ZodOptional<z.ZodBoolean>;
|
|
3323
3329
|
manualToolEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3398,8 +3404,8 @@ declare const WorkflowFormDataSchema: z.ZodObject<{
|
|
|
3398
3404
|
offlineMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3399
3405
|
pauseOnEscalate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3400
3406
|
routingMode: z.ZodOptional<z.ZodEnum<{
|
|
3401
|
-
custom: "custom";
|
|
3402
3407
|
workspace: "workspace";
|
|
3408
|
+
custom: "custom";
|
|
3403
3409
|
}>>;
|
|
3404
3410
|
includeWorkspaceRules: z.ZodOptional<z.ZodBoolean>;
|
|
3405
3411
|
manualToolEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3476,8 +3482,8 @@ declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
3476
3482
|
offlineMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3477
3483
|
pauseOnEscalate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3478
3484
|
routingMode: z.ZodOptional<z.ZodEnum<{
|
|
3479
|
-
custom: "custom";
|
|
3480
3485
|
workspace: "workspace";
|
|
3486
|
+
custom: "custom";
|
|
3481
3487
|
}>>;
|
|
3482
3488
|
includeWorkspaceRules: z.ZodOptional<z.ZodBoolean>;
|
|
3483
3489
|
manualToolEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3543,8 +3549,8 @@ declare const UpdateWorkflowSchema: z.ZodObject<{
|
|
|
3543
3549
|
offlineMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3544
3550
|
pauseOnEscalate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3545
3551
|
routingMode: z.ZodOptional<z.ZodEnum<{
|
|
3546
|
-
custom: "custom";
|
|
3547
3552
|
workspace: "workspace";
|
|
3553
|
+
custom: "custom";
|
|
3548
3554
|
}>>;
|
|
3549
3555
|
includeWorkspaceRules: z.ZodOptional<z.ZodBoolean>;
|
|
3550
3556
|
manualToolEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3630,8 +3636,8 @@ declare const WorkflowEscalationPolicySchema: z.ZodObject<{
|
|
|
3630
3636
|
offlineMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3631
3637
|
pauseOnEscalate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3632
3638
|
routingMode: z.ZodOptional<z.ZodEnum<{
|
|
3633
|
-
custom: "custom";
|
|
3634
3639
|
workspace: "workspace";
|
|
3640
|
+
custom: "custom";
|
|
3635
3641
|
}>>;
|
|
3636
3642
|
includeWorkspaceRules: z.ZodOptional<z.ZodBoolean>;
|
|
3637
3643
|
manualToolEnabled: z.ZodOptional<z.ZodBoolean>;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1096,15 +1096,15 @@ declare const CallActivityLabelSchema: z.ZodObject<{
|
|
|
1096
1096
|
}, z.core.$strict>;
|
|
1097
1097
|
declare const ChannelEnum: z.ZodEnum<{
|
|
1098
1098
|
slack: "slack";
|
|
1099
|
-
discord: "discord";
|
|
1100
1099
|
teams: "teams";
|
|
1101
|
-
|
|
1100
|
+
discord: "discord";
|
|
1102
1101
|
cli: "cli";
|
|
1103
1102
|
frame: "frame";
|
|
1104
1103
|
"phone-sms": "phone-sms";
|
|
1105
1104
|
"phone-voice": "phone-voice";
|
|
1106
1105
|
fax: "fax";
|
|
1107
1106
|
"phone-whatsapp": "phone-whatsapp";
|
|
1107
|
+
email: "email";
|
|
1108
1108
|
background: "background";
|
|
1109
1109
|
"web-chat": "web-chat";
|
|
1110
1110
|
"web-voice": "web-voice";
|
|
@@ -1120,12 +1120,12 @@ declare const MessageRoleEnum: z.ZodEnum<{
|
|
|
1120
1120
|
tool: "tool";
|
|
1121
1121
|
}>;
|
|
1122
1122
|
declare const ChatFilterObjectTypeEnum: z.ZodEnum<{
|
|
1123
|
-
channel: "channel";
|
|
1124
1123
|
paused: "paused";
|
|
1124
|
+
channel: "channel";
|
|
1125
|
+
owner: "owner";
|
|
1125
1126
|
title: "title";
|
|
1126
1127
|
participant: "participant";
|
|
1127
1128
|
mode: "mode";
|
|
1128
|
-
owner: "owner";
|
|
1129
1129
|
needsResponse: "needsResponse";
|
|
1130
1130
|
messageCount: "messageCount";
|
|
1131
1131
|
toolCall: "toolCall";
|
|
@@ -1146,6 +1146,7 @@ declare const ChatMuteReasonEnum: z.ZodEnum<{
|
|
|
1146
1146
|
waiting_on_person: "waiting_on_person";
|
|
1147
1147
|
resolved_elsewhere: "resolved_elsewhere";
|
|
1148
1148
|
not_mine: "not_mine";
|
|
1149
|
+
no_response_needed: "no_response_needed";
|
|
1149
1150
|
}>;
|
|
1150
1151
|
declare const TruncationReasonEnum: z.ZodEnum<{
|
|
1151
1152
|
error: "error";
|
|
@@ -1358,8 +1359,10 @@ declare const UpdateChatMuteSchema: z.ZodObject<{
|
|
|
1358
1359
|
waiting_on_person: "waiting_on_person";
|
|
1359
1360
|
resolved_elsewhere: "resolved_elsewhere";
|
|
1360
1361
|
not_mine: "not_mine";
|
|
1362
|
+
no_response_needed: "no_response_needed";
|
|
1361
1363
|
}>>;
|
|
1362
1364
|
muteExpiresOnInbound: z.ZodOptional<z.ZodBoolean>;
|
|
1365
|
+
dismissInboundMessageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1363
1366
|
}, z.core.$strip>;
|
|
1364
1367
|
declare const GetChatsNeedsResponseSchema: z.ZodObject<{
|
|
1365
1368
|
wid: z.ZodString;
|
|
@@ -1422,15 +1425,15 @@ declare const ChatSchema: z.ZodObject<{
|
|
|
1422
1425
|
muted: z.ZodBoolean;
|
|
1423
1426
|
channel: z.ZodEnum<{
|
|
1424
1427
|
slack: "slack";
|
|
1425
|
-
discord: "discord";
|
|
1426
1428
|
teams: "teams";
|
|
1427
|
-
|
|
1429
|
+
discord: "discord";
|
|
1428
1430
|
cli: "cli";
|
|
1429
1431
|
frame: "frame";
|
|
1430
1432
|
"phone-sms": "phone-sms";
|
|
1431
1433
|
"phone-voice": "phone-voice";
|
|
1432
1434
|
fax: "fax";
|
|
1433
1435
|
"phone-whatsapp": "phone-whatsapp";
|
|
1436
|
+
email: "email";
|
|
1434
1437
|
background: "background";
|
|
1435
1438
|
"web-chat": "web-chat";
|
|
1436
1439
|
"web-voice": "web-voice";
|
|
@@ -1477,12 +1480,12 @@ declare const ChatSchema: z.ZodObject<{
|
|
|
1477
1480
|
}, z.core.$strip>;
|
|
1478
1481
|
declare const ChatFilterRuleSchema: z.ZodObject<{
|
|
1479
1482
|
objectType: z.ZodEnum<{
|
|
1480
|
-
channel: "channel";
|
|
1481
1483
|
paused: "paused";
|
|
1484
|
+
channel: "channel";
|
|
1485
|
+
owner: "owner";
|
|
1482
1486
|
title: "title";
|
|
1483
1487
|
participant: "participant";
|
|
1484
1488
|
mode: "mode";
|
|
1485
|
-
owner: "owner";
|
|
1486
1489
|
needsResponse: "needsResponse";
|
|
1487
1490
|
messageCount: "messageCount";
|
|
1488
1491
|
toolCall: "toolCall";
|
|
@@ -1503,12 +1506,12 @@ declare const ChatFilterRuleSchema: z.ZodObject<{
|
|
|
1503
1506
|
}, z.core.$strip>;
|
|
1504
1507
|
declare const ChatFilterRuleFormDataSchema: z.ZodObject<{
|
|
1505
1508
|
objectType: z.ZodEnum<{
|
|
1506
|
-
channel: "channel";
|
|
1507
1509
|
paused: "paused";
|
|
1510
|
+
channel: "channel";
|
|
1511
|
+
owner: "owner";
|
|
1508
1512
|
title: "title";
|
|
1509
1513
|
participant: "participant";
|
|
1510
1514
|
mode: "mode";
|
|
1511
|
-
owner: "owner";
|
|
1512
1515
|
needsResponse: "needsResponse";
|
|
1513
1516
|
messageCount: "messageCount";
|
|
1514
1517
|
toolCall: "toolCall";
|
|
@@ -2960,6 +2963,7 @@ declare const PhoneNumberFormDataSchema: z.ZodObject<{
|
|
|
2960
2963
|
fax: "fax";
|
|
2961
2964
|
}>>;
|
|
2962
2965
|
voiceUnavailableMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2966
|
+
holdMusicFileId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2963
2967
|
providerPhoneUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2964
2968
|
}, z.core.$strip>;
|
|
2965
2969
|
declare const ListPhoneNumbersSchema: z.ZodObject<{
|
|
@@ -2980,6 +2984,7 @@ declare const CreatePhoneNumberSchema: z.ZodObject<{
|
|
|
2980
2984
|
fax: "fax";
|
|
2981
2985
|
}>>;
|
|
2982
2986
|
voiceUnavailableMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2987
|
+
holdMusicFileId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2983
2988
|
providerPhoneUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2984
2989
|
}, z.core.$strip>;
|
|
2985
2990
|
declare const UpdatePhoneNumberSchema: z.ZodObject<{
|
|
@@ -2994,6 +2999,7 @@ declare const UpdatePhoneNumberSchema: z.ZodObject<{
|
|
|
2994
2999
|
fax: "fax";
|
|
2995
3000
|
}>>>;
|
|
2996
3001
|
voiceUnavailableMessage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3002
|
+
holdMusicFileId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
2997
3003
|
providerPhoneUuid: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
2998
3004
|
}, z.core.$strip>;
|
|
2999
3005
|
declare const ArchivePhoneNumberSchema: z.ZodObject<{
|
|
@@ -3316,8 +3322,8 @@ declare const WorkflowCreateFormDataSchema: z.ZodObject<{
|
|
|
3316
3322
|
offlineMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3317
3323
|
pauseOnEscalate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3318
3324
|
routingMode: z.ZodOptional<z.ZodEnum<{
|
|
3319
|
-
custom: "custom";
|
|
3320
3325
|
workspace: "workspace";
|
|
3326
|
+
custom: "custom";
|
|
3321
3327
|
}>>;
|
|
3322
3328
|
includeWorkspaceRules: z.ZodOptional<z.ZodBoolean>;
|
|
3323
3329
|
manualToolEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3398,8 +3404,8 @@ declare const WorkflowFormDataSchema: z.ZodObject<{
|
|
|
3398
3404
|
offlineMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3399
3405
|
pauseOnEscalate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3400
3406
|
routingMode: z.ZodOptional<z.ZodEnum<{
|
|
3401
|
-
custom: "custom";
|
|
3402
3407
|
workspace: "workspace";
|
|
3408
|
+
custom: "custom";
|
|
3403
3409
|
}>>;
|
|
3404
3410
|
includeWorkspaceRules: z.ZodOptional<z.ZodBoolean>;
|
|
3405
3411
|
manualToolEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3476,8 +3482,8 @@ declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
3476
3482
|
offlineMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3477
3483
|
pauseOnEscalate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3478
3484
|
routingMode: z.ZodOptional<z.ZodEnum<{
|
|
3479
|
-
custom: "custom";
|
|
3480
3485
|
workspace: "workspace";
|
|
3486
|
+
custom: "custom";
|
|
3481
3487
|
}>>;
|
|
3482
3488
|
includeWorkspaceRules: z.ZodOptional<z.ZodBoolean>;
|
|
3483
3489
|
manualToolEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3543,8 +3549,8 @@ declare const UpdateWorkflowSchema: z.ZodObject<{
|
|
|
3543
3549
|
offlineMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3544
3550
|
pauseOnEscalate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3545
3551
|
routingMode: z.ZodOptional<z.ZodEnum<{
|
|
3546
|
-
custom: "custom";
|
|
3547
3552
|
workspace: "workspace";
|
|
3553
|
+
custom: "custom";
|
|
3548
3554
|
}>>;
|
|
3549
3555
|
includeWorkspaceRules: z.ZodOptional<z.ZodBoolean>;
|
|
3550
3556
|
manualToolEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3630,8 +3636,8 @@ declare const WorkflowEscalationPolicySchema: z.ZodObject<{
|
|
|
3630
3636
|
offlineMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3631
3637
|
pauseOnEscalate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3632
3638
|
routingMode: z.ZodOptional<z.ZodEnum<{
|
|
3633
|
-
custom: "custom";
|
|
3634
3639
|
workspace: "workspace";
|
|
3640
|
+
custom: "custom";
|
|
3635
3641
|
}>>;
|
|
3636
3642
|
includeWorkspaceRules: z.ZodOptional<z.ZodBoolean>;
|
|
3637
3643
|
manualToolEnabled: z.ZodOptional<z.ZodBoolean>;
|
package/dist/schemas.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
DataTypeRecordScope,
|
|
13
13
|
IndexStatus,
|
|
14
14
|
ResponseLength
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IIIRXFKG.js";
|
|
16
16
|
|
|
17
17
|
// src/schemas/accounts.ts
|
|
18
18
|
import { z } from "zod";
|
|
@@ -561,7 +561,8 @@ var ChatMuteReasonEnum = z4.enum([
|
|
|
561
561
|
"working",
|
|
562
562
|
"waiting_on_person",
|
|
563
563
|
"resolved_elsewhere",
|
|
564
|
-
"not_mine"
|
|
564
|
+
"not_mine",
|
|
565
|
+
"no_response_needed"
|
|
565
566
|
]);
|
|
566
567
|
var TruncationReasonEnum = z4.enum([
|
|
567
568
|
"barge_in",
|
|
@@ -708,7 +709,8 @@ var UpdateChatMuteSchema = WorkspaceIdSchema.extend({
|
|
|
708
709
|
muteReason: ChatMuteReasonEnum.optional().describe(
|
|
709
710
|
"Why the chat is muted (required when muting)"
|
|
710
711
|
),
|
|
711
|
-
muteExpiresOnInbound: z4.boolean().optional().describe("Lapse the mute when the member sends a new inbound message")
|
|
712
|
+
muteExpiresOnInbound: z4.boolean().optional().describe("Lapse the mute when the member sends a new inbound message"),
|
|
713
|
+
dismissInboundMessageId: z4.number().int().positive().nullish()
|
|
712
714
|
// Runtime mirror of the backend request model's validator
|
|
713
715
|
// (`UpdateChatMuteRequest._muting_requires_reason`): muting without a
|
|
714
716
|
// reason is a 422 at the API, so it is a parse failure here — a bare
|
|
@@ -718,7 +720,21 @@ var UpdateChatMuteSchema = WorkspaceIdSchema.extend({
|
|
|
718
720
|
ctx.addIssue({
|
|
719
721
|
code: z4.ZodIssueCode.custom,
|
|
720
722
|
path: ["muteReason"],
|
|
721
|
-
message: "Muting a chat requires a muteReason from the closed vocabulary: working, waiting_on_person, resolved_elsewhere, not_mine."
|
|
723
|
+
message: "Muting a chat requires a muteReason from the closed vocabulary: working, waiting_on_person, resolved_elsewhere, not_mine, no_response_needed."
|
|
724
|
+
});
|
|
725
|
+
}
|
|
726
|
+
if (data.muted && data.muteReason === "no_response_needed" && data.muteExpiresOnInbound === false) {
|
|
727
|
+
ctx.addIssue({
|
|
728
|
+
code: z4.ZodIssueCode.custom,
|
|
729
|
+
path: ["muteExpiresOnInbound"],
|
|
730
|
+
message: "Dismissing a response must expire on the next inbound."
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
if (data.muted && data.muteReason === "no_response_needed" && !data.dismissInboundMessageId) {
|
|
734
|
+
ctx.addIssue({
|
|
735
|
+
code: z4.ZodIssueCode.custom,
|
|
736
|
+
path: ["dismissInboundMessageId"],
|
|
737
|
+
message: "Dismissing a response requires the observed inbound message ID."
|
|
722
738
|
});
|
|
723
739
|
}
|
|
724
740
|
});
|
|
@@ -1739,6 +1755,7 @@ var PhoneNumberFormDataSchema = z9.object({
|
|
|
1739
1755
|
// Device mode only. Routing Rules own inbound destinations.
|
|
1740
1756
|
inboundCallHandling: z9.enum(["agent", "fax"]).optional(),
|
|
1741
1757
|
voiceUnavailableMessage: z9.string().nullable().optional(),
|
|
1758
|
+
holdMusicFileId: z9.number().int().positive().nullable().optional(),
|
|
1742
1759
|
providerPhoneUuid: z9.string().nullable().optional()
|
|
1743
1760
|
});
|
|
1744
1761
|
var ListPhoneNumbersSchema = WorkspaceIdSchema;
|