@gravity-rail/sdk 7.0.0 → 8.1.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-DVHim0Te.d.ts → agent_standing_job-CaD7wjGr.d.cts} +20 -263
- package/dist/{agent_standing_job-8aO5bEFa.d.cts → agent_standing_job-DMLbDOjP.d.ts} +20 -263
- package/dist/{chat-interaction-B_d8hxyU.d.cts → chat-interaction-_mKOHRYc.d.cts} +498 -32
- package/dist/{chat-interaction-D5I0hKyc.d.ts → chat-interaction-exmrd2jl.d.ts} +498 -32
- package/dist/{chunk-T26HRHRS.js → chunk-IIIRXFKG.js} +3 -2
- package/dist/chunk-IIIRXFKG.js.map +1 -0
- package/dist/{chunk-M77YVSBD.js → chunk-MVWCWWRQ.js} +38 -14
- package/dist/chunk-MVWCWWRQ.js.map +1 -0
- package/dist/helpers.d.cts +2 -2
- package/dist/helpers.d.ts +2 -2
- package/dist/index.cjs +40 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +62 -14
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +435 -175
- package/dist/internal.d.ts +435 -175
- package/dist/internal.js +24 -2
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-Dy-kcTfi.d.cts → member-import-4VSE3yYo.d.cts} +1 -1
- package/dist/{member-import-BFicp3ce.d.ts → member-import-BQDFoSyf.d.ts} +1 -1
- 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 +23 -17
- package/dist/schemas.d.ts +23 -17
- package/dist/schemas.js +21 -4
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-DW2dTbAJ.d.ts → tasks-2LhXIwL8.d.ts} +16 -8
- package/dist/{tasks-DHvGDkhw.d.cts → tasks-BTURuIlD.d.cts} +16 -8
- package/package.json +1 -1
- package/dist/chunk-M77YVSBD.js.map +0 -1
- package/dist/chunk-T26HRHRS.js.map +0 -1
package/dist/schemas.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { b as DataFieldType, a_ as DataTypeRecordScope, aW as DataSensitivity, aH as DataCategory, bJ as IndexStatus, gl as TipTapDocumentInput } from './tasks-
|
|
2
|
+
import { b as DataFieldType, a_ as DataTypeRecordScope, aW as DataSensitivity, aH as DataCategory, bJ as IndexStatus, gl as TipTapDocumentInput } from './tasks-BTURuIlD.cjs';
|
|
3
3
|
import { CalendarScheduleAvailabilityType, CalendarScheduleRecurrence, CalendarEventStatus, AttendeeResponseStatus } from './index.cjs';
|
|
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-BTURuIlD.cjs';
|
|
5
5
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import './account-DLwJWX9b.cjs';
|
|
7
7
|
|
|
@@ -1096,8 +1096,8 @@ 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";
|
|
1100
|
+
discord: "discord";
|
|
1101
1101
|
email: "email";
|
|
1102
1102
|
cli: "cli";
|
|
1103
1103
|
frame: "frame";
|
|
@@ -1114,9 +1114,9 @@ declare const ChannelEnum: z.ZodEnum<{
|
|
|
1114
1114
|
}>;
|
|
1115
1115
|
declare const MessageRoleEnum: z.ZodEnum<{
|
|
1116
1116
|
function: "function";
|
|
1117
|
-
assistant: "assistant";
|
|
1118
1117
|
user: "user";
|
|
1119
1118
|
system: "system";
|
|
1119
|
+
assistant: "assistant";
|
|
1120
1120
|
tool: "tool";
|
|
1121
1121
|
}>;
|
|
1122
1122
|
declare const ChatFilterObjectTypeEnum: z.ZodEnum<{
|
|
@@ -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";
|
|
@@ -1154,8 +1155,8 @@ declare const TruncationReasonEnum: z.ZodEnum<{
|
|
|
1154
1155
|
user_cancel: "user_cancel";
|
|
1155
1156
|
}>;
|
|
1156
1157
|
declare const MessageOriginEnum: z.ZodEnum<{
|
|
1157
|
-
operator: "operator";
|
|
1158
1158
|
agent: "agent";
|
|
1159
|
+
operator: "operator";
|
|
1159
1160
|
member: "member";
|
|
1160
1161
|
platform: "platform";
|
|
1161
1162
|
tool: "tool";
|
|
@@ -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,8 +1425,8 @@ 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";
|
|
1429
|
+
discord: "discord";
|
|
1427
1430
|
email: "email";
|
|
1428
1431
|
cli: "cli";
|
|
1429
1432
|
frame: "frame";
|
|
@@ -1640,9 +1643,9 @@ declare const MessageContentPartSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1640
1643
|
declare const ChatMessageObjectSchema: z.ZodObject<{
|
|
1641
1644
|
role: z.ZodEnum<{
|
|
1642
1645
|
function: "function";
|
|
1643
|
-
assistant: "assistant";
|
|
1644
1646
|
user: "user";
|
|
1645
1647
|
system: "system";
|
|
1648
|
+
assistant: "assistant";
|
|
1646
1649
|
tool: "tool";
|
|
1647
1650
|
}>;
|
|
1648
1651
|
content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1745,18 +1748,18 @@ declare const ChatMessageAPIResponseSchema: z.ZodObject<{
|
|
|
1745
1748
|
chatId: z.ZodNumber;
|
|
1746
1749
|
participantRole: z.ZodEnum<{
|
|
1747
1750
|
function: "function";
|
|
1748
|
-
assistant: "assistant";
|
|
1749
1751
|
user: "user";
|
|
1750
1752
|
system: "system";
|
|
1753
|
+
assistant: "assistant";
|
|
1751
1754
|
tool: "tool";
|
|
1752
1755
|
}>;
|
|
1753
1756
|
participantName: z.ZodString;
|
|
1754
1757
|
participantId: z.ZodNullable<z.ZodNumber>;
|
|
1755
1758
|
role: z.ZodEnum<{
|
|
1756
1759
|
function: "function";
|
|
1757
|
-
assistant: "assistant";
|
|
1758
1760
|
user: "user";
|
|
1759
1761
|
system: "system";
|
|
1762
|
+
assistant: "assistant";
|
|
1760
1763
|
tool: "tool";
|
|
1761
1764
|
}>;
|
|
1762
1765
|
content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1880,8 +1883,8 @@ declare const ChatMessageAPIResponseSchema: z.ZodObject<{
|
|
|
1880
1883
|
smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1881
1884
|
smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1882
1885
|
origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1883
|
-
operator: "operator";
|
|
1884
1886
|
agent: "agent";
|
|
1887
|
+
operator: "operator";
|
|
1885
1888
|
member: "member";
|
|
1886
1889
|
platform: "platform";
|
|
1887
1890
|
tool: "tool";
|
|
@@ -1899,9 +1902,9 @@ declare const ChatMessageAPIResponseSchema: z.ZodObject<{
|
|
|
1899
1902
|
declare const ChatCompletionMessageSchema: z.ZodObject<{
|
|
1900
1903
|
id: z.ZodOptional<z.ZodString>;
|
|
1901
1904
|
role: z.ZodEnum<{
|
|
1902
|
-
assistant: "assistant";
|
|
1903
1905
|
user: "user";
|
|
1904
1906
|
system: "system";
|
|
1907
|
+
assistant: "assistant";
|
|
1905
1908
|
}>;
|
|
1906
1909
|
content: z.ZodString;
|
|
1907
1910
|
}, z.core.$strip>;
|
|
@@ -1911,18 +1914,18 @@ declare const ChatMessageUISchema: z.ZodObject<{
|
|
|
1911
1914
|
chatId: z.ZodNumber;
|
|
1912
1915
|
participantRole: z.ZodEnum<{
|
|
1913
1916
|
function: "function";
|
|
1914
|
-
assistant: "assistant";
|
|
1915
1917
|
user: "user";
|
|
1916
1918
|
system: "system";
|
|
1919
|
+
assistant: "assistant";
|
|
1917
1920
|
tool: "tool";
|
|
1918
1921
|
}>;
|
|
1919
1922
|
participantName: z.ZodString;
|
|
1920
1923
|
participantId: z.ZodNullable<z.ZodNumber>;
|
|
1921
1924
|
role: z.ZodEnum<{
|
|
1922
1925
|
function: "function";
|
|
1923
|
-
assistant: "assistant";
|
|
1924
1926
|
user: "user";
|
|
1925
1927
|
system: "system";
|
|
1928
|
+
assistant: "assistant";
|
|
1926
1929
|
tool: "tool";
|
|
1927
1930
|
}>;
|
|
1928
1931
|
content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2046,8 +2049,8 @@ declare const ChatMessageUISchema: z.ZodObject<{
|
|
|
2046
2049
|
smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2047
2050
|
smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2048
2051
|
origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2049
|
-
operator: "operator";
|
|
2050
2052
|
agent: "agent";
|
|
2053
|
+
operator: "operator";
|
|
2051
2054
|
member: "member";
|
|
2052
2055
|
platform: "platform";
|
|
2053
2056
|
tool: "tool";
|
|
@@ -2085,18 +2088,18 @@ declare const ChatMessageSchema: z.ZodObject<{
|
|
|
2085
2088
|
chatId: z.ZodNumber;
|
|
2086
2089
|
participantRole: z.ZodEnum<{
|
|
2087
2090
|
function: "function";
|
|
2088
|
-
assistant: "assistant";
|
|
2089
2091
|
user: "user";
|
|
2090
2092
|
system: "system";
|
|
2093
|
+
assistant: "assistant";
|
|
2091
2094
|
tool: "tool";
|
|
2092
2095
|
}>;
|
|
2093
2096
|
participantName: z.ZodString;
|
|
2094
2097
|
participantId: z.ZodNullable<z.ZodNumber>;
|
|
2095
2098
|
role: z.ZodEnum<{
|
|
2096
2099
|
function: "function";
|
|
2097
|
-
assistant: "assistant";
|
|
2098
2100
|
user: "user";
|
|
2099
2101
|
system: "system";
|
|
2102
|
+
assistant: "assistant";
|
|
2100
2103
|
tool: "tool";
|
|
2101
2104
|
}>;
|
|
2102
2105
|
content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2220,8 +2223,8 @@ declare const ChatMessageSchema: z.ZodObject<{
|
|
|
2220
2223
|
smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2221
2224
|
smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2222
2225
|
origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2223
|
-
operator: "operator";
|
|
2224
2226
|
agent: "agent";
|
|
2227
|
+
operator: "operator";
|
|
2225
2228
|
member: "member";
|
|
2226
2229
|
platform: "platform";
|
|
2227
2230
|
tool: "tool";
|
|
@@ -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<{
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { b as DataFieldType, a_ as DataTypeRecordScope, aW as DataSensitivity, aH as DataCategory, bJ as IndexStatus, gl as TipTapDocumentInput } from './tasks-
|
|
2
|
+
import { b as DataFieldType, a_ as DataTypeRecordScope, aW as DataSensitivity, aH as DataCategory, bJ as IndexStatus, gl as TipTapDocumentInput } from './tasks-2LhXIwL8.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-2LhXIwL8.js';
|
|
5
5
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import './account-DLwJWX9b.js';
|
|
7
7
|
|
|
@@ -1096,8 +1096,8 @@ 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";
|
|
1100
|
+
discord: "discord";
|
|
1101
1101
|
email: "email";
|
|
1102
1102
|
cli: "cli";
|
|
1103
1103
|
frame: "frame";
|
|
@@ -1114,9 +1114,9 @@ declare const ChannelEnum: z.ZodEnum<{
|
|
|
1114
1114
|
}>;
|
|
1115
1115
|
declare const MessageRoleEnum: z.ZodEnum<{
|
|
1116
1116
|
function: "function";
|
|
1117
|
-
assistant: "assistant";
|
|
1118
1117
|
user: "user";
|
|
1119
1118
|
system: "system";
|
|
1119
|
+
assistant: "assistant";
|
|
1120
1120
|
tool: "tool";
|
|
1121
1121
|
}>;
|
|
1122
1122
|
declare const ChatFilterObjectTypeEnum: z.ZodEnum<{
|
|
@@ -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";
|
|
@@ -1154,8 +1155,8 @@ declare const TruncationReasonEnum: z.ZodEnum<{
|
|
|
1154
1155
|
user_cancel: "user_cancel";
|
|
1155
1156
|
}>;
|
|
1156
1157
|
declare const MessageOriginEnum: z.ZodEnum<{
|
|
1157
|
-
operator: "operator";
|
|
1158
1158
|
agent: "agent";
|
|
1159
|
+
operator: "operator";
|
|
1159
1160
|
member: "member";
|
|
1160
1161
|
platform: "platform";
|
|
1161
1162
|
tool: "tool";
|
|
@@ -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,8 +1425,8 @@ 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";
|
|
1429
|
+
discord: "discord";
|
|
1427
1430
|
email: "email";
|
|
1428
1431
|
cli: "cli";
|
|
1429
1432
|
frame: "frame";
|
|
@@ -1640,9 +1643,9 @@ declare const MessageContentPartSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1640
1643
|
declare const ChatMessageObjectSchema: z.ZodObject<{
|
|
1641
1644
|
role: z.ZodEnum<{
|
|
1642
1645
|
function: "function";
|
|
1643
|
-
assistant: "assistant";
|
|
1644
1646
|
user: "user";
|
|
1645
1647
|
system: "system";
|
|
1648
|
+
assistant: "assistant";
|
|
1646
1649
|
tool: "tool";
|
|
1647
1650
|
}>;
|
|
1648
1651
|
content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1745,18 +1748,18 @@ declare const ChatMessageAPIResponseSchema: z.ZodObject<{
|
|
|
1745
1748
|
chatId: z.ZodNumber;
|
|
1746
1749
|
participantRole: z.ZodEnum<{
|
|
1747
1750
|
function: "function";
|
|
1748
|
-
assistant: "assistant";
|
|
1749
1751
|
user: "user";
|
|
1750
1752
|
system: "system";
|
|
1753
|
+
assistant: "assistant";
|
|
1751
1754
|
tool: "tool";
|
|
1752
1755
|
}>;
|
|
1753
1756
|
participantName: z.ZodString;
|
|
1754
1757
|
participantId: z.ZodNullable<z.ZodNumber>;
|
|
1755
1758
|
role: z.ZodEnum<{
|
|
1756
1759
|
function: "function";
|
|
1757
|
-
assistant: "assistant";
|
|
1758
1760
|
user: "user";
|
|
1759
1761
|
system: "system";
|
|
1762
|
+
assistant: "assistant";
|
|
1760
1763
|
tool: "tool";
|
|
1761
1764
|
}>;
|
|
1762
1765
|
content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1880,8 +1883,8 @@ declare const ChatMessageAPIResponseSchema: z.ZodObject<{
|
|
|
1880
1883
|
smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1881
1884
|
smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1882
1885
|
origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1883
|
-
operator: "operator";
|
|
1884
1886
|
agent: "agent";
|
|
1887
|
+
operator: "operator";
|
|
1885
1888
|
member: "member";
|
|
1886
1889
|
platform: "platform";
|
|
1887
1890
|
tool: "tool";
|
|
@@ -1899,9 +1902,9 @@ declare const ChatMessageAPIResponseSchema: z.ZodObject<{
|
|
|
1899
1902
|
declare const ChatCompletionMessageSchema: z.ZodObject<{
|
|
1900
1903
|
id: z.ZodOptional<z.ZodString>;
|
|
1901
1904
|
role: z.ZodEnum<{
|
|
1902
|
-
assistant: "assistant";
|
|
1903
1905
|
user: "user";
|
|
1904
1906
|
system: "system";
|
|
1907
|
+
assistant: "assistant";
|
|
1905
1908
|
}>;
|
|
1906
1909
|
content: z.ZodString;
|
|
1907
1910
|
}, z.core.$strip>;
|
|
@@ -1911,18 +1914,18 @@ declare const ChatMessageUISchema: z.ZodObject<{
|
|
|
1911
1914
|
chatId: z.ZodNumber;
|
|
1912
1915
|
participantRole: z.ZodEnum<{
|
|
1913
1916
|
function: "function";
|
|
1914
|
-
assistant: "assistant";
|
|
1915
1917
|
user: "user";
|
|
1916
1918
|
system: "system";
|
|
1919
|
+
assistant: "assistant";
|
|
1917
1920
|
tool: "tool";
|
|
1918
1921
|
}>;
|
|
1919
1922
|
participantName: z.ZodString;
|
|
1920
1923
|
participantId: z.ZodNullable<z.ZodNumber>;
|
|
1921
1924
|
role: z.ZodEnum<{
|
|
1922
1925
|
function: "function";
|
|
1923
|
-
assistant: "assistant";
|
|
1924
1926
|
user: "user";
|
|
1925
1927
|
system: "system";
|
|
1928
|
+
assistant: "assistant";
|
|
1926
1929
|
tool: "tool";
|
|
1927
1930
|
}>;
|
|
1928
1931
|
content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2046,8 +2049,8 @@ declare const ChatMessageUISchema: z.ZodObject<{
|
|
|
2046
2049
|
smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2047
2050
|
smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2048
2051
|
origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2049
|
-
operator: "operator";
|
|
2050
2052
|
agent: "agent";
|
|
2053
|
+
operator: "operator";
|
|
2051
2054
|
member: "member";
|
|
2052
2055
|
platform: "platform";
|
|
2053
2056
|
tool: "tool";
|
|
@@ -2085,18 +2088,18 @@ declare const ChatMessageSchema: z.ZodObject<{
|
|
|
2085
2088
|
chatId: z.ZodNumber;
|
|
2086
2089
|
participantRole: z.ZodEnum<{
|
|
2087
2090
|
function: "function";
|
|
2088
|
-
assistant: "assistant";
|
|
2089
2091
|
user: "user";
|
|
2090
2092
|
system: "system";
|
|
2093
|
+
assistant: "assistant";
|
|
2091
2094
|
tool: "tool";
|
|
2092
2095
|
}>;
|
|
2093
2096
|
participantName: z.ZodString;
|
|
2094
2097
|
participantId: z.ZodNullable<z.ZodNumber>;
|
|
2095
2098
|
role: z.ZodEnum<{
|
|
2096
2099
|
function: "function";
|
|
2097
|
-
assistant: "assistant";
|
|
2098
2100
|
user: "user";
|
|
2099
2101
|
system: "system";
|
|
2102
|
+
assistant: "assistant";
|
|
2100
2103
|
tool: "tool";
|
|
2101
2104
|
}>;
|
|
2102
2105
|
content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2220,8 +2223,8 @@ declare const ChatMessageSchema: z.ZodObject<{
|
|
|
2220
2223
|
smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2221
2224
|
smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2222
2225
|
origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2223
|
-
operator: "operator";
|
|
2224
2226
|
agent: "agent";
|
|
2227
|
+
operator: "operator";
|
|
2225
2228
|
member: "member";
|
|
2226
2229
|
platform: "platform";
|
|
2227
2230
|
tool: "tool";
|
|
@@ -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<{
|
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;
|