@gravity-rail/sdk 8.1.0 → 9.0.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 +2 -3
- package/dist/{agent_standing_job-CaD7wjGr.d.cts → agent_team-CeErHy0t.d.ts} +846 -110
- package/dist/{agent_standing_job-DMLbDOjP.d.ts → agent_team-J0TyZPkg.d.cts} +846 -110
- package/dist/{chunk-MVWCWWRQ.js → chunk-AMJ2MMBM.js} +504 -477
- package/dist/chunk-AMJ2MMBM.js.map +1 -0
- package/dist/{chunk-IIIRXFKG.js → chunk-MWTQXZGB.js} +1 -1
- package/dist/chunk-MWTQXZGB.js.map +1 -0
- package/dist/{chunk-6KPGCPGW.js → chunk-ZJJDZUAK.js} +40 -1
- package/dist/chunk-ZJJDZUAK.js.map +1 -0
- package/dist/{chat-interaction-_mKOHRYc.d.cts → client-CO1hYs43.d.cts} +2732 -1354
- package/dist/{chat-interaction-exmrd2jl.d.ts → client-xtsG-YOi.d.ts} +2732 -1354
- package/dist/helpers.cjs +41 -0
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +2 -2
- package/dist/helpers.d.ts +2 -2
- package/dist/helpers.js +5 -1
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +548 -555
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -23
- package/dist/index.d.ts +7 -23
- package/dist/index.js +14 -84
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +512 -482
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +775 -927
- package/dist/internal.d.ts +775 -927
- package/dist/internal.js +14 -11
- package/dist/internal.js.map +1 -1
- package/dist/member-import-CzGVMtgv.d.cts +92 -0
- package/dist/member-import-q5-fCvfV.d.ts +92 -0
- package/dist/realtime.cjs +109 -54
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +7 -2
- package/dist/realtime.d.ts +7 -2
- package/dist/realtime.js +109 -54
- package/dist/realtime.js.map +1 -1
- package/dist/schemas.cjs +24 -6
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +54 -40
- package/dist/schemas.d.ts +54 -40
- package/dist/schemas.js +24 -7
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-BTURuIlD.d.cts → tasks-BM3pb5W6.d.cts} +67 -904
- package/dist/{tasks-2LhXIwL8.d.ts → tasks-Dc89D2Gu.d.ts} +67 -904
- package/package.json +3 -3
- package/dist/chunk-6KPGCPGW.js.map +0 -1
- package/dist/chunk-IIIRXFKG.js.map +0 -1
- package/dist/chunk-MVWCWWRQ.js.map +0 -1
- package/dist/member-import-4VSE3yYo.d.cts +0 -46
- package/dist/member-import-BQDFoSyf.d.ts +0 -46
package/dist/schemas.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { b as DataFieldType,
|
|
2
|
+
import { b as DataFieldType, aN as DataTypeRecordScope, aJ as DataSensitivity, av as DataCategory, bu as IndexStatus, fM as TipTapDocumentInput } from './tasks-Dc89D2Gu.js';
|
|
3
3
|
import { CalendarScheduleAvailabilityType, CalendarScheduleRecurrence, CalendarEventStatus, AttendeeResponseStatus } from './index.js';
|
|
4
|
-
export {
|
|
4
|
+
export { fX as AbilityData, fY as AbilityDataSchema, fZ as AnonymousInquiryFormSchema, f_ as ArchiveTaskInput, f$ as ArchiveTaskSchema, g0 as ChatTaskConfigurationPatchSchema, g1 as ChildTaskFormData, g2 as ChildTaskFormDataSchema, g3 as CreateInquiryInput, fP as CreateInquirySchema, g4 as CreateTaskInput, g5 as CreateTaskSchema, g6 as DeleteInquiryInput, g7 as DeleteInquirySchema, g8 as DeleteTaskInput, g9 as DeleteTaskSchema, ga as EnrichInquiryInput, gb as EnrichInquirySchema, gc as GetInquiryInput, gd as GetInquirySchema, ge as GetTaskInput, gf as GetTaskSchema, gg as ListInquiriesInput, gh as ListInquiriesSchema, gi as ListTasksInput, gj as ListTasksSchema, gk as OutcomeTaskRoutingSchema, gl as TaskFormData, gm as TaskFormDataSchema, gn as UnarchiveTaskInput, go as UnarchiveTaskSchema, gp as UpdateInquiryInput, fQ as UpdateInquiryRequestSchema, gq as UpdateInquirySchema, gr as UpdateTaskInput, gs as UpdateTaskSchema } from './tasks-Dc89D2Gu.js';
|
|
5
5
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import './account-DLwJWX9b.js';
|
|
7
7
|
|
|
@@ -64,6 +64,8 @@ declare const SchemaFieldSchema: z.ZodObject<{
|
|
|
64
64
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
65
65
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
66
66
|
}, z.core.$strip>>>;
|
|
67
|
+
fieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
68
|
+
fieldUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
69
|
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
68
70
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
69
71
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -86,6 +88,8 @@ declare const SchemaFieldFormDataSchema: z.ZodObject<{
|
|
|
86
88
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
87
89
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
88
90
|
}, z.core.$strip>>>;
|
|
91
|
+
fieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
92
|
+
fieldUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
93
|
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
90
94
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
91
95
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -125,6 +129,8 @@ declare const DataTypeSchema: z.ZodObject<{
|
|
|
125
129
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
126
130
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
127
131
|
}, z.core.$strip>>>;
|
|
132
|
+
fieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
133
|
+
fieldUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
134
|
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
129
135
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
130
136
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -158,6 +164,8 @@ declare const DataTypeFormDataSchema: z.ZodObject<{
|
|
|
158
164
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
159
165
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
160
166
|
}, z.core.$strip>>>;
|
|
167
|
+
fieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
168
|
+
fieldUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
169
|
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
162
170
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
163
171
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -212,6 +220,8 @@ declare const CreateDataTypeSchema: z.ZodObject<{
|
|
|
212
220
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
213
221
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
214
222
|
}, z.core.$strip>>>;
|
|
223
|
+
fieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
224
|
+
fieldUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
215
225
|
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
216
226
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
217
227
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -247,6 +257,8 @@ declare const UpdateDataTypeSchema: z.ZodObject<{
|
|
|
247
257
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
248
258
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
249
259
|
}, z.core.$strip>>>;
|
|
260
|
+
fieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
261
|
+
fieldUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
262
|
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
251
263
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
252
264
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -396,6 +408,10 @@ declare const DataRecordFormDataSchema: z.ZodObject<{
|
|
|
396
408
|
externalId: z.ZodOptional<z.ZodString>;
|
|
397
409
|
assignmentTaskId: z.ZodOptional<z.ZodNumber>;
|
|
398
410
|
}, z.core.$strip>;
|
|
411
|
+
declare const RecordAccessScopeSchema: z.ZodEnum<{
|
|
412
|
+
all: "all";
|
|
413
|
+
restricted: "restricted";
|
|
414
|
+
}>;
|
|
399
415
|
declare const DataRecordsPaginatedResponseSchema: z.ZodObject<{
|
|
400
416
|
items: z.ZodArray<z.ZodObject<{
|
|
401
417
|
id: z.ZodNumber;
|
|
@@ -421,6 +437,10 @@ declare const DataRecordsPaginatedResponseSchema: z.ZodObject<{
|
|
|
421
437
|
page: z.ZodNumber;
|
|
422
438
|
pageSize: z.ZodNumber;
|
|
423
439
|
totalPages: z.ZodNumber;
|
|
440
|
+
accessScope: z.ZodEnum<{
|
|
441
|
+
all: "all";
|
|
442
|
+
restricted: "restricted";
|
|
443
|
+
}>;
|
|
424
444
|
}, z.core.$strip>;
|
|
425
445
|
declare const DataRecordWithAccessModeSchema: z.ZodObject<{
|
|
426
446
|
id: z.ZodNumber;
|
|
@@ -486,6 +506,8 @@ declare const DataTypeExportItemSchema: z.ZodObject<{
|
|
|
486
506
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
487
507
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
488
508
|
}, z.core.$strip>>>;
|
|
509
|
+
fieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
510
|
+
fieldUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
489
511
|
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
490
512
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
491
513
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1095,10 +1117,11 @@ declare const CallActivityLabelSchema: z.ZodObject<{
|
|
|
1095
1117
|
}>;
|
|
1096
1118
|
}, z.core.$strict>;
|
|
1097
1119
|
declare const ChannelEnum: z.ZodEnum<{
|
|
1120
|
+
"web-chat": "web-chat";
|
|
1121
|
+
email: "email";
|
|
1098
1122
|
slack: "slack";
|
|
1099
1123
|
teams: "teams";
|
|
1100
1124
|
discord: "discord";
|
|
1101
|
-
email: "email";
|
|
1102
1125
|
cli: "cli";
|
|
1103
1126
|
frame: "frame";
|
|
1104
1127
|
"phone-sms": "phone-sms";
|
|
@@ -1106,7 +1129,6 @@ declare const ChannelEnum: z.ZodEnum<{
|
|
|
1106
1129
|
fax: "fax";
|
|
1107
1130
|
"phone-whatsapp": "phone-whatsapp";
|
|
1108
1131
|
background: "background";
|
|
1109
|
-
"web-chat": "web-chat";
|
|
1110
1132
|
"web-voice": "web-voice";
|
|
1111
1133
|
"direct-message": "direct-message";
|
|
1112
1134
|
a2a: "a2a";
|
|
@@ -1114,9 +1136,9 @@ declare const ChannelEnum: z.ZodEnum<{
|
|
|
1114
1136
|
}>;
|
|
1115
1137
|
declare const MessageRoleEnum: z.ZodEnum<{
|
|
1116
1138
|
function: "function";
|
|
1117
|
-
user: "user";
|
|
1118
|
-
system: "system";
|
|
1119
1139
|
assistant: "assistant";
|
|
1140
|
+
system: "system";
|
|
1141
|
+
user: "user";
|
|
1120
1142
|
tool: "tool";
|
|
1121
1143
|
}>;
|
|
1122
1144
|
declare const ChatFilterObjectTypeEnum: z.ZodEnum<{
|
|
@@ -1155,8 +1177,8 @@ declare const TruncationReasonEnum: z.ZodEnum<{
|
|
|
1155
1177
|
user_cancel: "user_cancel";
|
|
1156
1178
|
}>;
|
|
1157
1179
|
declare const MessageOriginEnum: z.ZodEnum<{
|
|
1158
|
-
agent: "agent";
|
|
1159
1180
|
operator: "operator";
|
|
1181
|
+
agent: "agent";
|
|
1160
1182
|
member: "member";
|
|
1161
1183
|
platform: "platform";
|
|
1162
1184
|
tool: "tool";
|
|
@@ -1231,7 +1253,6 @@ declare const ChatFormDataSchema: z.ZodObject<{
|
|
|
1231
1253
|
agentEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1232
1254
|
assistantMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1233
1255
|
assistantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1234
|
-
agentMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1235
1256
|
assistantChatModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1236
1257
|
assistantChatModelConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1237
1258
|
assistantRealtimeModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1254,10 +1275,10 @@ declare const ChatFiltersSchema: z.ZodObject<{
|
|
|
1254
1275
|
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1255
1276
|
channel: z.ZodOptional<z.ZodString>;
|
|
1256
1277
|
chatType: z.ZodOptional<z.ZodEnum<{
|
|
1278
|
+
dm: "dm";
|
|
1257
1279
|
contributor: "contributor";
|
|
1258
1280
|
assignment: "assignment";
|
|
1259
1281
|
manager: "manager";
|
|
1260
|
-
dm: "dm";
|
|
1261
1282
|
}>>;
|
|
1262
1283
|
}, z.core.$strip>;
|
|
1263
1284
|
declare const ListChatsSchema: z.ZodObject<{
|
|
@@ -1275,10 +1296,10 @@ declare const ListChatsSchema: z.ZodObject<{
|
|
|
1275
1296
|
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1276
1297
|
channel: z.ZodOptional<z.ZodString>;
|
|
1277
1298
|
chatType: z.ZodOptional<z.ZodEnum<{
|
|
1299
|
+
dm: "dm";
|
|
1278
1300
|
contributor: "contributor";
|
|
1279
1301
|
assignment: "assignment";
|
|
1280
1302
|
manager: "manager";
|
|
1281
|
-
dm: "dm";
|
|
1282
1303
|
}>>;
|
|
1283
1304
|
}, z.core.$strip>;
|
|
1284
1305
|
declare const GetChatSchema: z.ZodObject<{
|
|
@@ -1319,7 +1340,6 @@ declare const CreateChatSchema: z.ZodObject<{
|
|
|
1319
1340
|
agentEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1320
1341
|
assistantMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1321
1342
|
assistantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1322
|
-
agentMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1323
1343
|
assistantChatModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1324
1344
|
assistantChatModelConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1325
1345
|
assistantRealtimeModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1398,7 +1418,6 @@ declare const CreateChatForWorkflowSchema: z.ZodObject<{
|
|
|
1398
1418
|
wid: z.ZodString;
|
|
1399
1419
|
workflowId: z.ZodNumber;
|
|
1400
1420
|
memberId: z.ZodNumber;
|
|
1401
|
-
agentId: z.ZodOptional<z.ZodNumber>;
|
|
1402
1421
|
chatTitle: z.ZodOptional<z.ZodString>;
|
|
1403
1422
|
}, z.core.$strip>;
|
|
1404
1423
|
declare const CreateChatCompletionSchema: z.ZodObject<{
|
|
@@ -1424,10 +1443,11 @@ declare const ChatSchema: z.ZodObject<{
|
|
|
1424
1443
|
archived: z.ZodBoolean;
|
|
1425
1444
|
muted: z.ZodBoolean;
|
|
1426
1445
|
channel: z.ZodEnum<{
|
|
1446
|
+
"web-chat": "web-chat";
|
|
1447
|
+
email: "email";
|
|
1427
1448
|
slack: "slack";
|
|
1428
1449
|
teams: "teams";
|
|
1429
1450
|
discord: "discord";
|
|
1430
|
-
email: "email";
|
|
1431
1451
|
cli: "cli";
|
|
1432
1452
|
frame: "frame";
|
|
1433
1453
|
"phone-sms": "phone-sms";
|
|
@@ -1435,7 +1455,6 @@ declare const ChatSchema: z.ZodObject<{
|
|
|
1435
1455
|
fax: "fax";
|
|
1436
1456
|
"phone-whatsapp": "phone-whatsapp";
|
|
1437
1457
|
background: "background";
|
|
1438
|
-
"web-chat": "web-chat";
|
|
1439
1458
|
"web-voice": "web-voice";
|
|
1440
1459
|
"direct-message": "direct-message";
|
|
1441
1460
|
a2a: "a2a";
|
|
@@ -1643,9 +1662,9 @@ declare const MessageContentPartSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1643
1662
|
declare const ChatMessageObjectSchema: z.ZodObject<{
|
|
1644
1663
|
role: z.ZodEnum<{
|
|
1645
1664
|
function: "function";
|
|
1646
|
-
user: "user";
|
|
1647
|
-
system: "system";
|
|
1648
1665
|
assistant: "assistant";
|
|
1666
|
+
system: "system";
|
|
1667
|
+
user: "user";
|
|
1649
1668
|
tool: "tool";
|
|
1650
1669
|
}>;
|
|
1651
1670
|
content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1748,18 +1767,18 @@ declare const ChatMessageAPIResponseSchema: z.ZodObject<{
|
|
|
1748
1767
|
chatId: z.ZodNumber;
|
|
1749
1768
|
participantRole: z.ZodEnum<{
|
|
1750
1769
|
function: "function";
|
|
1751
|
-
user: "user";
|
|
1752
|
-
system: "system";
|
|
1753
1770
|
assistant: "assistant";
|
|
1771
|
+
system: "system";
|
|
1772
|
+
user: "user";
|
|
1754
1773
|
tool: "tool";
|
|
1755
1774
|
}>;
|
|
1756
1775
|
participantName: z.ZodString;
|
|
1757
1776
|
participantId: z.ZodNullable<z.ZodNumber>;
|
|
1758
1777
|
role: z.ZodEnum<{
|
|
1759
1778
|
function: "function";
|
|
1760
|
-
user: "user";
|
|
1761
|
-
system: "system";
|
|
1762
1779
|
assistant: "assistant";
|
|
1780
|
+
system: "system";
|
|
1781
|
+
user: "user";
|
|
1763
1782
|
tool: "tool";
|
|
1764
1783
|
}>;
|
|
1765
1784
|
content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1883,8 +1902,8 @@ declare const ChatMessageAPIResponseSchema: z.ZodObject<{
|
|
|
1883
1902
|
smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1884
1903
|
smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1885
1904
|
origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1886
|
-
agent: "agent";
|
|
1887
1905
|
operator: "operator";
|
|
1906
|
+
agent: "agent";
|
|
1888
1907
|
member: "member";
|
|
1889
1908
|
platform: "platform";
|
|
1890
1909
|
tool: "tool";
|
|
@@ -1902,9 +1921,9 @@ declare const ChatMessageAPIResponseSchema: z.ZodObject<{
|
|
|
1902
1921
|
declare const ChatCompletionMessageSchema: z.ZodObject<{
|
|
1903
1922
|
id: z.ZodOptional<z.ZodString>;
|
|
1904
1923
|
role: z.ZodEnum<{
|
|
1905
|
-
user: "user";
|
|
1906
|
-
system: "system";
|
|
1907
1924
|
assistant: "assistant";
|
|
1925
|
+
system: "system";
|
|
1926
|
+
user: "user";
|
|
1908
1927
|
}>;
|
|
1909
1928
|
content: z.ZodString;
|
|
1910
1929
|
}, z.core.$strip>;
|
|
@@ -1914,18 +1933,18 @@ declare const ChatMessageUISchema: z.ZodObject<{
|
|
|
1914
1933
|
chatId: z.ZodNumber;
|
|
1915
1934
|
participantRole: z.ZodEnum<{
|
|
1916
1935
|
function: "function";
|
|
1917
|
-
user: "user";
|
|
1918
|
-
system: "system";
|
|
1919
1936
|
assistant: "assistant";
|
|
1937
|
+
system: "system";
|
|
1938
|
+
user: "user";
|
|
1920
1939
|
tool: "tool";
|
|
1921
1940
|
}>;
|
|
1922
1941
|
participantName: z.ZodString;
|
|
1923
1942
|
participantId: z.ZodNullable<z.ZodNumber>;
|
|
1924
1943
|
role: z.ZodEnum<{
|
|
1925
1944
|
function: "function";
|
|
1926
|
-
user: "user";
|
|
1927
|
-
system: "system";
|
|
1928
1945
|
assistant: "assistant";
|
|
1946
|
+
system: "system";
|
|
1947
|
+
user: "user";
|
|
1929
1948
|
tool: "tool";
|
|
1930
1949
|
}>;
|
|
1931
1950
|
content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2049,8 +2068,8 @@ declare const ChatMessageUISchema: z.ZodObject<{
|
|
|
2049
2068
|
smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2050
2069
|
smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2051
2070
|
origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2052
|
-
agent: "agent";
|
|
2053
2071
|
operator: "operator";
|
|
2072
|
+
agent: "agent";
|
|
2054
2073
|
member: "member";
|
|
2055
2074
|
platform: "platform";
|
|
2056
2075
|
tool: "tool";
|
|
@@ -2088,18 +2107,18 @@ declare const ChatMessageSchema: z.ZodObject<{
|
|
|
2088
2107
|
chatId: z.ZodNumber;
|
|
2089
2108
|
participantRole: z.ZodEnum<{
|
|
2090
2109
|
function: "function";
|
|
2091
|
-
user: "user";
|
|
2092
|
-
system: "system";
|
|
2093
2110
|
assistant: "assistant";
|
|
2111
|
+
system: "system";
|
|
2112
|
+
user: "user";
|
|
2094
2113
|
tool: "tool";
|
|
2095
2114
|
}>;
|
|
2096
2115
|
participantName: z.ZodString;
|
|
2097
2116
|
participantId: z.ZodNullable<z.ZodNumber>;
|
|
2098
2117
|
role: z.ZodEnum<{
|
|
2099
2118
|
function: "function";
|
|
2100
|
-
user: "user";
|
|
2101
|
-
system: "system";
|
|
2102
2119
|
assistant: "assistant";
|
|
2120
|
+
system: "system";
|
|
2121
|
+
user: "user";
|
|
2103
2122
|
tool: "tool";
|
|
2104
2123
|
}>;
|
|
2105
2124
|
content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2223,8 +2242,8 @@ declare const ChatMessageSchema: z.ZodObject<{
|
|
|
2223
2242
|
smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2224
2243
|
smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2225
2244
|
origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2226
|
-
agent: "agent";
|
|
2227
2245
|
operator: "operator";
|
|
2246
|
+
agent: "agent";
|
|
2228
2247
|
member: "member";
|
|
2229
2248
|
platform: "platform";
|
|
2230
2249
|
tool: "tool";
|
|
@@ -2732,8 +2751,8 @@ declare const ListWorkspaceMembersSchema: z.ZodObject<{
|
|
|
2732
2751
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
2733
2752
|
role: z.ZodOptional<z.ZodString>;
|
|
2734
2753
|
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
2735
|
-
name: "name";
|
|
2736
2754
|
email: "email";
|
|
2755
|
+
name: "name";
|
|
2737
2756
|
createdAt: "createdAt";
|
|
2738
2757
|
updatedAt: "updatedAt";
|
|
2739
2758
|
}>>;
|
|
@@ -2910,7 +2929,6 @@ declare const MemberSchema: z.ZodObject<{
|
|
|
2910
2929
|
locale: z.ZodOptional<z.ZodString>;
|
|
2911
2930
|
timezone: z.ZodOptional<z.ZodString>;
|
|
2912
2931
|
memberType: z.ZodOptional<z.ZodEnum<{
|
|
2913
|
-
agent: "agent";
|
|
2914
2932
|
member: "member";
|
|
2915
2933
|
test: "test";
|
|
2916
2934
|
business: "business";
|
|
@@ -3349,7 +3367,6 @@ declare const WorkflowCreateFormDataSchema: z.ZodObject<{
|
|
|
3349
3367
|
description: z.ZodOptional<z.ZodString>;
|
|
3350
3368
|
prompt: z.ZodOptional<z.ZodString>;
|
|
3351
3369
|
ownerId: z.ZodOptional<z.ZodNumber>;
|
|
3352
|
-
copyFromAgentId: z.ZodOptional<z.ZodNumber>;
|
|
3353
3370
|
copyFromWorkflowRevisionId: z.ZodOptional<z.ZodNumber>;
|
|
3354
3371
|
copySourceDigest: z.ZodOptional<z.ZodString>;
|
|
3355
3372
|
assistantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3431,7 +3448,6 @@ declare const WorkflowFormDataSchema: z.ZodObject<{
|
|
|
3431
3448
|
description: z.ZodOptional<z.ZodString>;
|
|
3432
3449
|
prompt: z.ZodOptional<z.ZodString>;
|
|
3433
3450
|
ownerId: z.ZodOptional<z.ZodNumber>;
|
|
3434
|
-
copyFromAgentId: z.ZodOptional<z.ZodNumber>;
|
|
3435
3451
|
copyFromWorkflowRevisionId: z.ZodOptional<z.ZodNumber>;
|
|
3436
3452
|
copySourceDigest: z.ZodOptional<z.ZodString>;
|
|
3437
3453
|
assistantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3509,7 +3525,6 @@ declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
3509
3525
|
description: z.ZodOptional<z.ZodString>;
|
|
3510
3526
|
prompt: z.ZodOptional<z.ZodString>;
|
|
3511
3527
|
ownerId: z.ZodOptional<z.ZodNumber>;
|
|
3512
|
-
copyFromAgentId: z.ZodOptional<z.ZodNumber>;
|
|
3513
3528
|
copyFromWorkflowRevisionId: z.ZodOptional<z.ZodNumber>;
|
|
3514
3529
|
copySourceDigest: z.ZodOptional<z.ZodString>;
|
|
3515
3530
|
assistantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3576,7 +3591,6 @@ declare const UpdateWorkflowSchema: z.ZodObject<{
|
|
|
3576
3591
|
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3577
3592
|
prompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3578
3593
|
ownerId: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
3579
|
-
copyFromAgentId: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
3580
3594
|
copyFromWorkflowRevisionId: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
3581
3595
|
copySourceDigest: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3582
3596
|
assistantName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -3731,5 +3745,5 @@ declare const PublicDemoFormRequestSchema: z.ZodObject<{
|
|
|
3731
3745
|
fieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3732
3746
|
}, z.core.$strict>;
|
|
3733
3747
|
|
|
3734
|
-
export { AccountFormDataSchema, AccountReportItemSchema, AccountSchema, AddDataFieldSchema, AddWorkspaceMemberSchema, AdminAccountFormDataSchema, AdminAccountMembershipSchema, AdminOrganizationSchema, AdminWorkspaceMemberFormDataSchema, ApiKeyCreatedSchema, ApiKeyFormDataSchema, ApiKeySchema, ApiKeyScopeSchema, ApiKeyScopesResponseSchema, ArchiveChatSchema, ArchivePhoneNumberSchema, AssistantChatParticipantSchema, CallActivityLabelSchema, CancelCalendarEventSchema, ChannelEnum, ChatCompletionMessageSchema, ChatFilterFilterTypeEnum, ChatFilterObjectTypeEnum, ChatFilterRuleFormDataSchema, ChatFilterRuleSchema, ChatFiltersSchema, ChatFormDataSchema, ChatMessageAPIResponseSchema, ChatMessageChunkSchema, ChatMessageObjectSchema, ChatMessageSchema, ChatMessageUISchema, ChatMuteReasonEnum, ChatParticipantFormDataSchema, ChatSchema, CheckAvailabilitySchema, CloneWorkflowSchema, ContributorChatParticipantSchema, CreateAccountSchema, CreateCalendarEventSchema, CreateCalendarSchema, CreateChatCompletionSchema, CreateChatForWorkflowSchema, CreateChatSchema, CreateDataRecordSchema, CreateDataTypeSchema, CreateEventTypeSchema, CreateInboxSchema, CreateMemberRoleSchema, CreateMenuItemSchema, CreateOrganizationRequestSchema, CreatePhoneNumberSchema, CreateScheduleSchema, CreateSitePageSchema, CreateSiteSchema, CreateWorkflowSchema, CreateWorkspaceMemberRequestSchema, CreateWorkspaceSchema, DataCategory, DataFieldFormDataSchema, DataFieldSchema, DataFieldType, DataIntegrityReportItemSchema, DataRecordAssociationFormDataSchema, DataRecordFiltersSchema, DataRecordFormDataSchema, DataRecordReportItemSchema, DataRecordRetirementSchema, DataRecordSchema, DataRecordWithAccessModeSchema, DataRecordsPaginatedResponseSchema, DataSensitivity, DataTypeExportItemSchema, DataTypeFormDataSchema, DataTypeRecordScope, DataTypeSchema, DeleteCalendarEventSchema, DeleteCalendarSchema, DeleteChatSchema, DeleteDataRecordSchema, DeleteDataTypeSchema, DeleteEventTypeSchema, DeleteInboxSchema, DeleteMemberRoleSchema, DeleteMenuItemSchema, DeleteScheduleSchema, DeleteSitePageSchema, DeleteSiteSchema, DeleteWorkflowSchema, DeleteWorkspaceSchema, DuplicateAccountInfoSchema, EMPTY_SCHEMA_SENSITIVITY, ErrorResponseSchema, FunctionToolSchema, GenerateICalTokenSchema, GetAvailableSlotsSchema, GetAvailableWorkspaceFeaturesSchema, GetCalendarEventSchema, GetCalendarSchema, GetChatMessagesSchema, GetChatSchema, GetChatsNeedsResponseSchema, GetCurrentMemberSchema, GetDataRecordSchema, GetDataTypeBySlugSchema, GetDataTypeSchema, GetEventTypeSchema, GetFieldIndexStatusSchema, GetICalUrlSchema, GetInboxEmailSchema, GetInboxSchema, GetMemberRoleSchema, GetPhoneNumberSchema, GetProductSchema, GetProductsSchema, GetRecentInboxMessagesSchema, GetRecentSmsMessagesSchema, GetResellerWorkspacesSchema, GetSiteCountsSchema, GetSiteMenuSchema, GetSitePageBySlugSchema, GetSitePageSchema, GetSiteSchema, GetWorkflowSchema, GetWorkspaceDefaultsSchema, GetWorkspaceMemberSchema, GetWorkspaceSchema, HumanChatParticipantSchema, ImageUrlContentSchema, InboxEmailFiltersSchema, InboxFormDataSchema, InboxRuleSchema, InboxRulesConfigSchema, IndexStatus, InitiateOutboundCallSchema, KnowledgeEntrySchema, ListCalendarEventsSchema, ListCalendarsSchema, ListChatsSchema, ListDataRecordsSchema, ListDataTypesSchema, ListEventTypesSchema, ListInboxEmailsSchema, ListInboxesSchema, ListMemberRolesSchema, ListMenuItemsSchema, ListPhoneCallsSchema, ListPhoneNumbersSchema, ListPhoneSmsMessagesSchema, ListSchedulesSchema, ListSitePagesSchema, ListSitesSchema, ListWorkflowsSchema, ListWorkspaceMembersSchema, ListWorkspacesSchema, LoginRequestSchema, LoginResponseSchema, MarkEmailReadSchema, MarkEmailUnreadSchema, MemberFilterFormDataSchema, MemberFilterSchema, MemberFormDataSchema, MemberLabelFormDataSchema, MemberLabelSchema, MemberRoleFormDataSchema, MemberRoleSchema, MemberRoleTaskAccessSchema, MemberSchema, MenuItemFormDataSchema, MessageAudienceEnum, MessageContentPartSchema, MessageOriginEnum, MessageRoleEnum, MissingMembershipItemSchema, OrganizationSchema, PhoneNumberFormDataSchema, PublicDemoFormRequestSchema, PublicDemoMessageRequestSchema, RateLimitAllowlistEntrySchema, RateLimitOverrideSchema, RateMessageSchema, RemoveDataFieldSchema, RemoveWorkspaceMemberSchema, ReorderMenuItemsRequestSchema, ReorderMenuItemsSchema, RevokeICalTokenSchema, SMSLoginResponseSchema, SchemaFieldFormDataSchema, SchemaFieldSchema, SendAssistantMessageSchema, SendChatMessageSchema, SendSmsToMemberSchema, SiteFormDataSchema, SitePageFormDataSchema, StartPublicDemoRequestSchema, SupervisorChatParticipantSchema, TaskExportDataTypeRelationSchema, TextContentSchema, ToggleFieldIndexSchema, ToolCallFunctionSchema, ToolCallSchema, ToolResultSchema, TruncationReasonEnum, UnarchiveChatSchema, UpdateAttendeeResponseSchema, UpdateCalendarEventSchema, UpdateCalendarSchema, UpdateChatMuteSchema, UpdateChatSchema, UpdateCurrentMemberSchema, UpdateDataFieldSchema, UpdateDataRecordSchema, UpdateDataTypeSchema, UpdateEventTypeSchema, UpdateInboxSchema, UpdateMemberRoleSchema, UpdateMenuItemSchema, UpdateOrganizationRequestSchema, UpdatePhoneNumberSchema, UpdateScheduleSchema, UpdateSitePageSchema, UpdateSiteSchema, UpdateWorkflowSchema, UpdateWorkspaceMemberRequestSchema, UpdateWorkspaceMemberSchema, UpdateWorkspaceSchema, UpsertDataRecordSchema, VerifyCodeRequestSchema, VerifyCodeResponseSchema, WorkflowAgentBehaviorSchema, WorkflowCreateFormDataSchema, WorkflowEscalationPolicySchema, WorkflowEscalationRoutingSchema, WorkflowFormDataSchema, WorkspaceFormDataSchema, WorkspaceIdSchema, createTool, zodToMcpSchema };
|
|
3748
|
+
export { AccountFormDataSchema, AccountReportItemSchema, AccountSchema, AddDataFieldSchema, AddWorkspaceMemberSchema, AdminAccountFormDataSchema, AdminAccountMembershipSchema, AdminOrganizationSchema, AdminWorkspaceMemberFormDataSchema, ApiKeyCreatedSchema, ApiKeyFormDataSchema, ApiKeySchema, ApiKeyScopeSchema, ApiKeyScopesResponseSchema, ArchiveChatSchema, ArchivePhoneNumberSchema, AssistantChatParticipantSchema, CallActivityLabelSchema, CancelCalendarEventSchema, ChannelEnum, ChatCompletionMessageSchema, ChatFilterFilterTypeEnum, ChatFilterObjectTypeEnum, ChatFilterRuleFormDataSchema, ChatFilterRuleSchema, ChatFiltersSchema, ChatFormDataSchema, ChatMessageAPIResponseSchema, ChatMessageChunkSchema, ChatMessageObjectSchema, ChatMessageSchema, ChatMessageUISchema, ChatMuteReasonEnum, ChatParticipantFormDataSchema, ChatSchema, CheckAvailabilitySchema, CloneWorkflowSchema, ContributorChatParticipantSchema, CreateAccountSchema, CreateCalendarEventSchema, CreateCalendarSchema, CreateChatCompletionSchema, CreateChatForWorkflowSchema, CreateChatSchema, CreateDataRecordSchema, CreateDataTypeSchema, CreateEventTypeSchema, CreateInboxSchema, CreateMemberRoleSchema, CreateMenuItemSchema, CreateOrganizationRequestSchema, CreatePhoneNumberSchema, CreateScheduleSchema, CreateSitePageSchema, CreateSiteSchema, CreateWorkflowSchema, CreateWorkspaceMemberRequestSchema, CreateWorkspaceSchema, DataCategory, DataFieldFormDataSchema, DataFieldSchema, DataFieldType, DataIntegrityReportItemSchema, DataRecordAssociationFormDataSchema, DataRecordFiltersSchema, DataRecordFormDataSchema, DataRecordReportItemSchema, DataRecordRetirementSchema, DataRecordSchema, DataRecordWithAccessModeSchema, DataRecordsPaginatedResponseSchema, DataSensitivity, DataTypeExportItemSchema, DataTypeFormDataSchema, DataTypeRecordScope, DataTypeSchema, DeleteCalendarEventSchema, DeleteCalendarSchema, DeleteChatSchema, DeleteDataRecordSchema, DeleteDataTypeSchema, DeleteEventTypeSchema, DeleteInboxSchema, DeleteMemberRoleSchema, DeleteMenuItemSchema, DeleteScheduleSchema, DeleteSitePageSchema, DeleteSiteSchema, DeleteWorkflowSchema, DeleteWorkspaceSchema, DuplicateAccountInfoSchema, EMPTY_SCHEMA_SENSITIVITY, ErrorResponseSchema, FunctionToolSchema, GenerateICalTokenSchema, GetAvailableSlotsSchema, GetAvailableWorkspaceFeaturesSchema, GetCalendarEventSchema, GetCalendarSchema, GetChatMessagesSchema, GetChatSchema, GetChatsNeedsResponseSchema, GetCurrentMemberSchema, GetDataRecordSchema, GetDataTypeBySlugSchema, GetDataTypeSchema, GetEventTypeSchema, GetFieldIndexStatusSchema, GetICalUrlSchema, GetInboxEmailSchema, GetInboxSchema, GetMemberRoleSchema, GetPhoneNumberSchema, GetProductSchema, GetProductsSchema, GetRecentInboxMessagesSchema, GetRecentSmsMessagesSchema, GetResellerWorkspacesSchema, GetSiteCountsSchema, GetSiteMenuSchema, GetSitePageBySlugSchema, GetSitePageSchema, GetSiteSchema, GetWorkflowSchema, GetWorkspaceDefaultsSchema, GetWorkspaceMemberSchema, GetWorkspaceSchema, HumanChatParticipantSchema, ImageUrlContentSchema, InboxEmailFiltersSchema, InboxFormDataSchema, InboxRuleSchema, InboxRulesConfigSchema, IndexStatus, InitiateOutboundCallSchema, KnowledgeEntrySchema, ListCalendarEventsSchema, ListCalendarsSchema, ListChatsSchema, ListDataRecordsSchema, ListDataTypesSchema, ListEventTypesSchema, ListInboxEmailsSchema, ListInboxesSchema, ListMemberRolesSchema, ListMenuItemsSchema, ListPhoneCallsSchema, ListPhoneNumbersSchema, ListPhoneSmsMessagesSchema, ListSchedulesSchema, ListSitePagesSchema, ListSitesSchema, ListWorkflowsSchema, ListWorkspaceMembersSchema, ListWorkspacesSchema, LoginRequestSchema, LoginResponseSchema, MarkEmailReadSchema, MarkEmailUnreadSchema, MemberFilterFormDataSchema, MemberFilterSchema, MemberFormDataSchema, MemberLabelFormDataSchema, MemberLabelSchema, MemberRoleFormDataSchema, MemberRoleSchema, MemberRoleTaskAccessSchema, MemberSchema, MenuItemFormDataSchema, MessageAudienceEnum, MessageContentPartSchema, MessageOriginEnum, MessageRoleEnum, MissingMembershipItemSchema, OrganizationSchema, PhoneNumberFormDataSchema, PublicDemoFormRequestSchema, PublicDemoMessageRequestSchema, RateLimitAllowlistEntrySchema, RateLimitOverrideSchema, RateMessageSchema, RecordAccessScopeSchema, RemoveDataFieldSchema, RemoveWorkspaceMemberSchema, ReorderMenuItemsRequestSchema, ReorderMenuItemsSchema, RevokeICalTokenSchema, SMSLoginResponseSchema, SchemaFieldFormDataSchema, SchemaFieldSchema, SendAssistantMessageSchema, SendChatMessageSchema, SendSmsToMemberSchema, SiteFormDataSchema, SitePageFormDataSchema, StartPublicDemoRequestSchema, SupervisorChatParticipantSchema, TaskExportDataTypeRelationSchema, TextContentSchema, ToggleFieldIndexSchema, ToolCallFunctionSchema, ToolCallSchema, ToolResultSchema, TruncationReasonEnum, UnarchiveChatSchema, UpdateAttendeeResponseSchema, UpdateCalendarEventSchema, UpdateCalendarSchema, UpdateChatMuteSchema, UpdateChatSchema, UpdateCurrentMemberSchema, UpdateDataFieldSchema, UpdateDataRecordSchema, UpdateDataTypeSchema, UpdateEventTypeSchema, UpdateInboxSchema, UpdateMemberRoleSchema, UpdateMenuItemSchema, UpdateOrganizationRequestSchema, UpdatePhoneNumberSchema, UpdateScheduleSchema, UpdateSitePageSchema, UpdateSiteSchema, UpdateWorkflowSchema, UpdateWorkspaceMemberRequestSchema, UpdateWorkspaceMemberSchema, UpdateWorkspaceSchema, UpsertDataRecordSchema, VerifyCodeRequestSchema, VerifyCodeResponseSchema, WorkflowAgentBehaviorSchema, WorkflowCreateFormDataSchema, WorkflowEscalationPolicySchema, WorkflowEscalationRoutingSchema, WorkflowFormDataSchema, WorkspaceFormDataSchema, WorkspaceIdSchema, createTool, zodToMcpSchema };
|
|
3735
3749
|
export type { Account, AccountFormData, AccountReportItem, AddDataFieldInput, AddWorkspaceMemberInput, AdminAccountFormData, AdminAccountMembership, AdminOrganization, AdminWorkspaceMemberFormData, ApiKey, ApiKeyCreated, ApiKeyFormData, ApiKeyScope, ApiKeyScopesResponse, ArchiveChatInput, ArchivePhoneNumberInput, AssistantChatParticipant, CancelCalendarEventInput, Channel, Chat, ChatCompletionMessage, ChatFilterFilterType, ChatFilterObjectType, ChatFilterRule, ChatFilterRuleFormData, ChatFormData, ChatMessage, ChatMessageAPIResponse, ChatMessageChunk, ChatMessageObject, ChatMessageUI, ChatMuteReasonValue, ChatParticipantFormData, CheckAvailabilityInput, CloneWorkflowInput, ContributorChatParticipant, CreateAccountInput, CreateCalendarEventInput, CreateCalendarInput, CreateChatCompletionInput, CreateChatForWorkflowInput, CreateChatInput, CreateDataRecordInput, CreateDataTypeInput, CreateEventTypeInput, CreateInboxInput, CreateMemberRoleInput, CreateMenuItemInput, CreateOrganizationRequest, CreatePhoneNumberInput, CreateScheduleInput, CreateSiteInput, CreateSitePageInput, CreateWorkflowInput, CreateWorkspaceInput, CreateWorkspaceMemberRequest, DataField, DataFieldFormData, DataIntegrityReportItem, DataRecord, DataRecordAssociationFormData, DataRecordFilters, DataRecordFormData, DataRecordReportItem, DataRecordRetirement, DataRecordWithAccessMode, DataRecordsPaginatedResponse, DataType, DataTypeExportItem, DataTypeFormData, DeleteCalendarEventInput, DeleteCalendarInput, DeleteChatInput, DeleteDataRecordInput, DeleteDataTypeInput, DeleteEventTypeInput, DeleteInboxInput, DeleteMemberRoleInput, DeleteMenuItemInput, DeleteScheduleInput, DeleteSiteInput, DeleteSitePageInput, DeleteWorkflowInput, DeleteWorkspaceInput, DuplicateAccountInfo, ErrorResponse, FunctionTool, GenerateICalTokenInput, GetAvailableSlotsInput, GetAvailableWorkspaceFeaturesInput, GetCalendarEventInput, GetCalendarInput, GetChatInput, GetChatMessagesInput, GetChatsNeedsResponseInput, GetCurrentMemberInput, GetDataRecordInput, GetDataTypeBySlugInput, GetDataTypeInput, GetEventTypeInput, GetFieldIndexStatusInput, GetICalUrlInput, GetInboxEmailInput, GetInboxInput, GetMemberRoleInput, GetPhoneNumberInput, GetProductInput, GetProductsInput, GetRecentInboxMessagesInput, GetRecentSmsMessagesInput, GetResellerWorkspacesInput, GetSiteCountsInput, GetSiteInput, GetSiteMenuInput, GetSitePageBySlugInput, GetSitePageInput, GetWorkflowInput, GetWorkspaceDefaultsInput, GetWorkspaceInput, GetWorkspaceMemberInput, HumanChatParticipant, ImageUrlContent, InboxEmailFilters, InboxFormData, InboxRule, InboxRulesConfig, InitiateOutboundCallInput, ListCalendarEventsInput, ListCalendarsInput, ListChatsInput, ListDataRecordsInput, ListDataTypesInput, ListEventTypesInput, ListInboxEmailsInput, ListInboxesInput, ListMemberRolesInput, ListMenuItemsInput, ListPhoneCallsInput, ListPhoneNumbersInput, ListPhoneSmsMessagesInput, ListSchedulesInput, ListSitePagesInput, ListSitesInput, ListWorkflowsInput, ListWorkspaceMembersInput, ListWorkspacesInput, LoginRequest, LoginResponse, MarkEmailReadInput, MarkEmailUnreadInput, Member, MemberFilter, MemberFilterFormData, MemberFormData, MemberLabel, MemberLabelFormData, MemberRole, MemberRoleFormData, MemberRoleTaskAccess, MenuItemFormData, MessageAudience, MessageContentPart, MessageOrigin, MessageRole, MissingMembershipItem, Organization, PhoneNumberFormData, RateLimitAllowlistEntry, RateLimitOverride, RateMessageInput, RemoveDataFieldInput, RemoveWorkspaceMemberInput, ReorderMenuItems, ReorderMenuItemsInput, RevokeICalTokenInput, SMSLoginResponse, SchemaField, SchemaFieldFormData, SendAssistantMessageInput, SendChatMessageInput, SendSmsToMemberInput, SiteFormData, SitePageFormData, SupervisorChatParticipant, TaskExportDataTypeRelation, TextContent, ToggleFieldIndexInput, ToolCall, ToolCallFunction, ToolResult, TruncationReason, UnarchiveChatInput, UpdateAttendeeResponseInput, UpdateCalendarEventInput, UpdateCalendarInput, UpdateChatInput, UpdateChatMuteInput, UpdateCurrentMemberInput, UpdateDataFieldInput, UpdateDataRecordInput, UpdateDataTypeInput, UpdateEventTypeInput, UpdateInboxInput, UpdateMemberRoleInput, UpdateMenuItemInput, UpdateOrganizationRequest, UpdatePhoneNumberInput, UpdateScheduleInput, UpdateSiteInput, UpdateSitePageInput, UpdateWorkflowInput, UpdateWorkspaceInput, UpdateWorkspaceMemberInput, UpdateWorkspaceMemberRequest, UpsertDataRecordInput, VerifyCodeRequest, VerifyCodeResponse, WorkflowCreateFormData, WorkflowFormData, WorkspaceFormData };
|
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-MWTQXZGB.js";
|
|
16
16
|
|
|
17
17
|
// src/schemas/accounts.ts
|
|
18
18
|
import { z } from "zod";
|
|
@@ -653,8 +653,6 @@ var ChatFormDataSchema = z4.object({
|
|
|
653
653
|
agentEnabled: z4.boolean().optional(),
|
|
654
654
|
assistantMemberId: z4.number().nullable().optional(),
|
|
655
655
|
assistantName: z4.string().nullable().optional(),
|
|
656
|
-
// Legacy client-side alias. ChatsApi serializes it as assistantMemberId.
|
|
657
|
-
agentMemberId: z4.number().nullable().optional(),
|
|
658
656
|
// Per-chat assistant model override (snapshotted onto the assistant
|
|
659
657
|
// participant). Set from the Create-Chat assistant-override dialog.
|
|
660
658
|
assistantChatModelId: z4.string().nullable().optional(),
|
|
@@ -764,7 +762,6 @@ var RateMessageSchema = WorkspaceIdSchema.extend({
|
|
|
764
762
|
var CreateChatForWorkflowSchema = WorkspaceIdSchema.extend({
|
|
765
763
|
workflowId: z4.number().describe("Workflow ID to start chat for"),
|
|
766
764
|
memberId: z4.number().describe("User member ID"),
|
|
767
|
-
agentId: z4.number().optional().describe("Agent ID (optional, uses workspace default if not provided)"),
|
|
768
765
|
chatTitle: z4.string().optional().describe("Chat title (optional)")
|
|
769
766
|
});
|
|
770
767
|
var CreateChatCompletionSchema = WorkspaceIdSchema.extend({
|
|
@@ -992,6 +989,20 @@ function validateReferenceField(field, ctx) {
|
|
|
992
989
|
message: "Record reference requires a target Form"
|
|
993
990
|
});
|
|
994
991
|
}
|
|
992
|
+
if (field.fieldType === "reference" /* REFERENCE */ && field.fieldId != null) {
|
|
993
|
+
ctx.addIssue({
|
|
994
|
+
code: z5.ZodIssueCode.custom,
|
|
995
|
+
path: ["fieldId"],
|
|
996
|
+
message: "Record reference fields cannot carry a scalar field identity"
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
if (field.fieldType === "reference" /* REFERENCE */ && field.fieldUuid != null) {
|
|
1000
|
+
ctx.addIssue({
|
|
1001
|
+
code: z5.ZodIssueCode.custom,
|
|
1002
|
+
path: ["fieldUuid"],
|
|
1003
|
+
message: "Record reference fields cannot carry a scalar field UUID"
|
|
1004
|
+
});
|
|
1005
|
+
}
|
|
995
1006
|
validateReferenceFieldUpdate(field, ctx);
|
|
996
1007
|
}
|
|
997
1008
|
function validateReferenceFieldUpdate(field, ctx) {
|
|
@@ -1093,6 +1104,8 @@ var SchemaFieldSchema = z5.object({
|
|
|
1093
1104
|
order: z5.number().optional(),
|
|
1094
1105
|
// Deprecated: use array position for ordering
|
|
1095
1106
|
options: OptionsSchema,
|
|
1107
|
+
fieldId: z5.number().int().positive().nullish(),
|
|
1108
|
+
fieldUuid: z5.string().uuid().nullish(),
|
|
1096
1109
|
referenceFieldId: z5.number().int().positive().nullish(),
|
|
1097
1110
|
referencedTypeId: z5.number().int().positive().optional(),
|
|
1098
1111
|
shouldIndex: z5.boolean().optional(),
|
|
@@ -1111,6 +1124,8 @@ var SchemaFieldFormDataSchema = z5.object({
|
|
|
1111
1124
|
required: z5.boolean(),
|
|
1112
1125
|
order: z5.number().optional(),
|
|
1113
1126
|
options: OptionsSchema,
|
|
1127
|
+
fieldId: z5.number().int().positive().nullish(),
|
|
1128
|
+
fieldUuid: z5.string().uuid().nullish(),
|
|
1114
1129
|
referenceFieldId: z5.number().int().positive().nullish(),
|
|
1115
1130
|
referencedTypeId: z5.number().int().positive().optional(),
|
|
1116
1131
|
shouldIndex: z5.boolean().optional(),
|
|
@@ -1303,12 +1318,14 @@ var DataRecordFormDataSchema = z5.object({
|
|
|
1303
1318
|
externalId: z5.string().optional(),
|
|
1304
1319
|
assignmentTaskId: z5.number().optional()
|
|
1305
1320
|
});
|
|
1321
|
+
var RecordAccessScopeSchema = z5.enum(["all", "restricted"]);
|
|
1306
1322
|
var DataRecordsPaginatedResponseSchema = z5.object({
|
|
1307
1323
|
items: z5.array(DataRecordSchema),
|
|
1308
1324
|
total: z5.number(),
|
|
1309
1325
|
page: z5.number(),
|
|
1310
1326
|
pageSize: z5.number(),
|
|
1311
|
-
totalPages: z5.number()
|
|
1327
|
+
totalPages: z5.number(),
|
|
1328
|
+
accessScope: RecordAccessScopeSchema
|
|
1312
1329
|
});
|
|
1313
1330
|
var DataRecordWithAccessModeSchema = DataRecordSchema.extend({
|
|
1314
1331
|
accessMode: z5.number()
|
|
@@ -1731,7 +1748,7 @@ var MemberSchema = z8.object({
|
|
|
1731
1748
|
isSuperuser: z8.boolean().optional(),
|
|
1732
1749
|
locale: z8.string().optional(),
|
|
1733
1750
|
timezone: z8.string().optional(),
|
|
1734
|
-
memberType: z8.enum(["member", "test", "anonymous", "
|
|
1751
|
+
memberType: z8.enum(["member", "test", "anonymous", "business"]).optional(),
|
|
1735
1752
|
isArchived: z8.boolean().optional(),
|
|
1736
1753
|
// Timestamps
|
|
1737
1754
|
createdAt: z8.string().optional(),
|
|
@@ -2052,7 +2069,6 @@ var WorkflowSharedFormDataSchema = z13.object({
|
|
|
2052
2069
|
description: z13.string().optional(),
|
|
2053
2070
|
prompt: z13.string().optional(),
|
|
2054
2071
|
ownerId: z13.number().optional(),
|
|
2055
|
-
copyFromAgentId: z13.number().optional(),
|
|
2056
2072
|
copyFromWorkflowRevisionId: z13.number().optional(),
|
|
2057
2073
|
copySourceDigest: z13.string().optional(),
|
|
2058
2074
|
assistantName: z13.string().nullable().optional(),
|
|
@@ -2335,6 +2351,7 @@ export {
|
|
|
2335
2351
|
RateLimitAllowlistEntrySchema,
|
|
2336
2352
|
RateLimitOverrideSchema,
|
|
2337
2353
|
RateMessageSchema,
|
|
2354
|
+
RecordAccessScopeSchema,
|
|
2338
2355
|
RemoveDataFieldSchema,
|
|
2339
2356
|
RemoveWorkspaceMemberSchema,
|
|
2340
2357
|
ReorderMenuItemsRequestSchema,
|