@gravity-rail/sdk 0.13.1 → 0.15.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.
Files changed (38) hide show
  1. package/dist/{chunk-V7ZKEH4V.js → chunk-2YLKG4TT.js} +1 -1
  2. package/dist/chunk-2YLKG4TT.js.map +1 -0
  3. package/dist/{chunk-FSSXKQR5.js → chunk-GP6ICMWF.js} +2 -1
  4. package/dist/chunk-GP6ICMWF.js.map +1 -0
  5. package/dist/{chunk-YRIBZ3RM.js → chunk-QTJQTTIR.js} +366 -27
  6. package/dist/chunk-QTJQTTIR.js.map +1 -0
  7. package/dist/{client-DjyYhpnv.d.ts → client-BLuz00Qr.d.cts} +904 -54
  8. package/dist/{client-eet1pTc_.d.cts → client-CefA5Mxe.d.ts} +904 -54
  9. package/dist/helpers.cjs.map +1 -1
  10. package/dist/helpers.d.cts +2 -2
  11. package/dist/helpers.d.ts +2 -2
  12. package/dist/helpers.js +1 -1
  13. package/dist/index.cjs +379 -32
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +6 -7
  16. package/dist/index.d.ts +6 -7
  17. package/dist/index.js +26 -11
  18. package/dist/index.js.map +1 -1
  19. package/dist/internal.cjs +364 -25
  20. package/dist/internal.cjs.map +1 -1
  21. package/dist/internal.d.cts +411 -142
  22. package/dist/internal.d.ts +411 -142
  23. package/dist/internal.js +18 -4
  24. package/dist/internal.js.map +1 -1
  25. package/dist/{revision-state-CC1svrGE.d.ts → revision-state-DL1ViZ57.d.ts} +28 -5
  26. package/dist/{revision-state-DFWcu6wD.d.cts → revision-state-axZ62kJk.d.cts} +28 -5
  27. package/dist/schemas.cjs +71 -21
  28. package/dist/schemas.cjs.map +1 -1
  29. package/dist/schemas.d.cts +112 -21
  30. package/dist/schemas.d.ts +112 -21
  31. package/dist/schemas.js +67 -21
  32. package/dist/schemas.js.map +1 -1
  33. package/dist/{tasks-Dl1Dzgkf.d.cts → tasks-Boi6AxGp.d.cts} +108 -9
  34. package/dist/{tasks-Dl1Dzgkf.d.ts → tasks-Boi6AxGp.d.ts} +108 -9
  35. package/package.json +1 -1
  36. package/dist/chunk-FSSXKQR5.js.map +0 -1
  37. package/dist/chunk-V7ZKEH4V.js.map +0 -1
  38. package/dist/chunk-YRIBZ3RM.js.map +0 -1
package/dist/schemas.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { a9 as CalendarScheduleAvailabilityType, ab as CalendarScheduleRecurrence, a1 as CalendarEventStatus, z as AttendeeResponseStatus, D as DataFieldType, b1 as DataTypeRecordScope, aX as DataSensitivity, aH as DataCategory, bF as IndexStatus } from './tasks-Dl1Dzgkf.js';
3
- export { fa as AbilityData, fb as AbilityDataSchema, fc as AnonymousInquiryFormSchema, fd as ArchiveTaskInput, fe as ArchiveTaskSchema, ff as ChildTaskFormData, fg as ChildTaskFormDataSchema, fh as CreateInquiryInput, fi as CreateInquirySchema, fj as CreateMilestoneInput, fk as CreateMilestoneSchema, fl as CreateTaskInput, fm as CreateTaskSchema, fn as DeleteInquiryInput, fo as DeleteInquirySchema, fp as DeleteMilestoneInput, fq as DeleteMilestoneSchema, fr as DeleteTaskInput, fs as DeleteTaskSchema, ft as EnrichInquiryInput, fu as EnrichInquirySchema, fv as GetInquiryInput, fw as GetInquirySchema, fx as GetMilestoneInput, fy as GetMilestoneSchema, fz as GetTaskInput, fA as GetTaskSchema, fB as ListInquiriesInput, fC as ListInquiriesSchema, fD as ListMilestonesInput, fE as ListMilestonesSchema, fF as ListTasksInput, fG as ListTasksSchema, fH as MilestoneFormData, fI as MilestoneFormDataSchema, fJ as MilestoneGoalFormDataSchema, fK as TaskFormData, fL as TaskFormDataSchema, fM as UnarchiveTaskInput, fN as UnarchiveTaskSchema, fO as UpdateInquiryInput, fP as UpdateInquiryRequestSchema, fQ as UpdateInquirySchema, fR as UpdateMilestoneInput, fS as UpdateMilestoneSchema, fT as UpdateTaskInput, fU as UpdateTaskSchema } from './tasks-Dl1Dzgkf.js';
2
+ import { a9 as CalendarScheduleAvailabilityType, ab as CalendarScheduleRecurrence, a1 as CalendarEventStatus, z as AttendeeResponseStatus, D as DataFieldType, b1 as DataTypeRecordScope, aX as DataSensitivity, aH as DataCategory, bF as IndexStatus } from './tasks-Boi6AxGp.js';
3
+ export { fg as AbilityData, fh as AbilityDataSchema, fi as AnonymousInquiryFormSchema, fj as ArchiveTaskInput, fk as ArchiveTaskSchema, fl as ChildTaskFormData, fm as ChildTaskFormDataSchema, fn as CreateInquiryInput, fo as CreateInquirySchema, fp as CreateMilestoneInput, fq as CreateMilestoneSchema, fr as CreateTaskInput, fs as CreateTaskSchema, ft as DeleteInquiryInput, fu as DeleteInquirySchema, fv as DeleteMilestoneInput, fw as DeleteMilestoneSchema, fx as DeleteTaskInput, fy as DeleteTaskSchema, fz as EnrichInquiryInput, fA as EnrichInquirySchema, fB as GetInquiryInput, fC as GetInquirySchema, fD as GetMilestoneInput, fE as GetMilestoneSchema, fF as GetTaskInput, fG as GetTaskSchema, fH as ListInquiriesInput, fI as ListInquiriesSchema, fJ as ListMilestonesInput, fK as ListMilestonesSchema, fL as ListTasksInput, fM as ListTasksSchema, fN as MilestoneFormData, fO as MilestoneFormDataSchema, fP as MilestoneGoalFormDataSchema, fQ as TaskFormData, fR as TaskFormDataSchema, fS as UnarchiveTaskInput, fT as UnarchiveTaskSchema, fU as UpdateInquiryInput, fV as UpdateInquiryRequestSchema, fW as UpdateInquirySchema, fX as UpdateMilestoneInput, fY as UpdateMilestoneSchema, fZ as UpdateTaskInput, f_ as UpdateTaskSchema } from './tasks-Boi6AxGp.js';
4
4
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
5
5
 
6
6
  declare const AccountFormDataSchema: z.ZodObject<{
@@ -478,11 +478,11 @@ type GetICalUrlInput = z.infer<typeof GetICalUrlSchema>;
478
478
  declare const ChannelEnum: z.ZodEnum<{
479
479
  email: "email";
480
480
  routine: "routine";
481
+ fax: "fax";
481
482
  cli: "cli";
482
483
  frame: "frame";
483
484
  "phone-sms": "phone-sms";
484
485
  "phone-voice": "phone-voice";
485
- fax: "fax";
486
486
  "phone-whatsapp": "phone-whatsapp";
487
487
  background: "background";
488
488
  "web-chat": "web-chat";
@@ -499,7 +499,6 @@ declare const MessageRoleEnum: z.ZodEnum<{
499
499
  assistant: "assistant";
500
500
  system: "system";
501
501
  tool: "tool";
502
- operator: "operator";
503
502
  }>;
504
503
  declare const ChatFilterObjectTypeEnum: z.ZodEnum<{
505
504
  title: "title";
@@ -529,6 +528,19 @@ declare const TruncationReasonEnum: z.ZodEnum<{
529
528
  client_interrupt: "client_interrupt";
530
529
  user_cancel: "user_cancel";
531
530
  }>;
531
+ declare const MessageOriginEnum: z.ZodEnum<{
532
+ member: "member";
533
+ workflow: "workflow";
534
+ tool: "tool";
535
+ agent: "agent";
536
+ operator: "operator";
537
+ background_run: "background_run";
538
+ platform: "platform";
539
+ }>;
540
+ declare const MessageAudienceEnum: z.ZodEnum<{
541
+ conversation: "conversation";
542
+ agent_only: "agent_only";
543
+ }>;
532
544
  declare const ChatParticipantFormDataSchema: z.ZodObject<{
533
545
  memberId: z.ZodOptional<z.ZodNumber>;
534
546
  role: z.ZodOptional<z.ZodString>;
@@ -539,10 +551,25 @@ declare const HumanChatParticipantSchema: z.ZodObject<{
539
551
  role: z.ZodLiteral<"user">;
540
552
  memberId: z.ZodNumber;
541
553
  }, z.core.$strip>;
542
- declare const OperatorChatParticipantSchema: z.ZodObject<{
554
+ declare const AssistantChatParticipantSchema: z.ZodObject<{
555
+ name: z.ZodString;
556
+ memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
557
+ memberType: z.ZodOptional<z.ZodString>;
558
+ role: z.ZodLiteral<"assistant">;
559
+ additionalInstructions: z.ZodOptional<z.ZodString>;
560
+ }, z.core.$strip>;
561
+ declare const ContributorChatParticipantSchema: z.ZodObject<{
562
+ name: z.ZodString;
563
+ memberId: z.ZodNumber;
564
+ memberType: z.ZodOptional<z.ZodString>;
565
+ role: z.ZodLiteral<"contributor">;
566
+ additionalInstructions: z.ZodOptional<z.ZodString>;
567
+ }, z.core.$strip>;
568
+ declare const SupervisorChatParticipantSchema: z.ZodObject<{
543
569
  name: z.ZodString;
544
570
  memberId: z.ZodNumber;
545
- role: z.ZodLiteral<"operator">;
571
+ memberType: z.ZodOptional<z.ZodString>;
572
+ role: z.ZodLiteral<"supervisor">;
546
573
  }, z.core.$strip>;
547
574
  declare const ChatFormDataSchema: z.ZodObject<{
548
575
  id: z.ZodOptional<z.ZodNumber>;
@@ -560,6 +587,11 @@ declare const ChatFormDataSchema: z.ZodObject<{
560
587
  role: z.ZodOptional<z.ZodString>;
561
588
  additionalInstructions: z.ZodOptional<z.ZodString>;
562
589
  }, z.core.$strip>>;
590
+ assistantKind: z.ZodOptional<z.ZodEnum<{
591
+ ai: "ai";
592
+ human: "human";
593
+ }>>;
594
+ userMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
563
595
  agentEnabled: z.ZodOptional<z.ZodBoolean>;
564
596
  assistantMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
565
597
  assistantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -587,10 +619,10 @@ declare const ChatFiltersSchema: z.ZodObject<{
587
619
  archived: z.ZodOptional<z.ZodBoolean>;
588
620
  channel: z.ZodOptional<z.ZodString>;
589
621
  chatType: z.ZodOptional<z.ZodEnum<{
622
+ contributor: "contributor";
590
623
  assignment: "assignment";
591
624
  manager: "manager";
592
625
  dm: "dm";
593
- contributor: "contributor";
594
626
  }>>;
595
627
  }, z.core.$strip>;
596
628
  declare const ListChatsSchema: z.ZodObject<{
@@ -608,10 +640,10 @@ declare const ListChatsSchema: z.ZodObject<{
608
640
  archived: z.ZodOptional<z.ZodBoolean>;
609
641
  channel: z.ZodOptional<z.ZodString>;
610
642
  chatType: z.ZodOptional<z.ZodEnum<{
643
+ contributor: "contributor";
611
644
  assignment: "assignment";
612
645
  manager: "manager";
613
646
  dm: "dm";
614
- contributor: "contributor";
615
647
  }>>;
616
648
  }, z.core.$strip>;
617
649
  declare const GetChatSchema: z.ZodObject<{
@@ -635,6 +667,11 @@ declare const CreateChatSchema: z.ZodObject<{
635
667
  role: z.ZodOptional<z.ZodString>;
636
668
  additionalInstructions: z.ZodOptional<z.ZodString>;
637
669
  }, z.core.$strip>>;
670
+ assistantKind: z.ZodOptional<z.ZodEnum<{
671
+ ai: "ai";
672
+ human: "human";
673
+ }>>;
674
+ userMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
638
675
  agentEnabled: z.ZodOptional<z.ZodBoolean>;
639
676
  assistantMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
640
677
  assistantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -666,6 +703,11 @@ declare const UpdateChatSchema: z.ZodObject<{
666
703
  role: z.ZodOptional<z.ZodString>;
667
704
  additionalInstructions: z.ZodOptional<z.ZodString>;
668
705
  }, z.core.$strip>>>;
706
+ assistantKind: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
707
+ ai: "ai";
708
+ human: "human";
709
+ }>>>;
710
+ userMemberId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
669
711
  agentEnabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
670
712
  assistantMemberId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
671
713
  assistantName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -764,11 +806,11 @@ declare const ChatSchema: z.ZodObject<{
764
806
  channel: z.ZodEnum<{
765
807
  email: "email";
766
808
  routine: "routine";
809
+ fax: "fax";
767
810
  cli: "cli";
768
811
  frame: "frame";
769
812
  "phone-sms": "phone-sms";
770
813
  "phone-voice": "phone-voice";
771
- fax: "fax";
772
814
  "phone-whatsapp": "phone-whatsapp";
773
815
  background: "background";
774
816
  "web-chat": "web-chat";
@@ -798,14 +840,21 @@ declare const ChatSchema: z.ZodObject<{
798
840
  memberId: z.ZodNumber;
799
841
  }, z.core.$strip>, z.ZodObject<{
800
842
  name: z.ZodString;
801
- memberId: z.ZodNumber;
802
- role: z.ZodLiteral<"operator">;
843
+ memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
844
+ memberType: z.ZodOptional<z.ZodString>;
845
+ role: z.ZodLiteral<"assistant">;
846
+ additionalInstructions: z.ZodOptional<z.ZodString>;
803
847
  }, z.core.$strip>, z.ZodObject<{
804
848
  name: z.ZodString;
805
849
  memberId: z.ZodNumber;
806
850
  memberType: z.ZodOptional<z.ZodString>;
807
- role: z.ZodLiteral<"assistant">;
851
+ role: z.ZodLiteral<"contributor">;
808
852
  additionalInstructions: z.ZodOptional<z.ZodString>;
853
+ }, z.core.$strip>, z.ZodObject<{
854
+ name: z.ZodString;
855
+ memberId: z.ZodNumber;
856
+ memberType: z.ZodOptional<z.ZodString>;
857
+ role: z.ZodLiteral<"supervisor">;
809
858
  }, z.core.$strip>]>>;
810
859
  canSendAsAssistant: z.ZodOptional<z.ZodBoolean>;
811
860
  }, z.core.$strip>;
@@ -903,7 +952,6 @@ declare const ChatMessageObjectSchema: z.ZodObject<{
903
952
  assistant: "assistant";
904
953
  system: "system";
905
954
  tool: "tool";
906
- operator: "operator";
907
955
  }>;
908
956
  content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
909
957
  type: z.ZodLiteral<"text">;
@@ -934,7 +982,6 @@ declare const ChatMessageAPIResponseSchema: z.ZodObject<{
934
982
  assistant: "assistant";
935
983
  system: "system";
936
984
  tool: "tool";
937
- operator: "operator";
938
985
  }>;
939
986
  participantName: z.ZodString;
940
987
  participantId: z.ZodNullable<z.ZodNumber>;
@@ -944,7 +991,6 @@ declare const ChatMessageAPIResponseSchema: z.ZodObject<{
944
991
  assistant: "assistant";
945
992
  system: "system";
946
993
  tool: "tool";
947
- operator: "operator";
948
994
  }>;
949
995
  content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
950
996
  type: z.ZodLiteral<"text">;
@@ -991,6 +1037,21 @@ declare const ChatMessageAPIResponseSchema: z.ZodObject<{
991
1037
  smsDeliveryErrorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
992
1038
  smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
993
1039
  smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1040
+ origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1041
+ member: "member";
1042
+ workflow: "workflow";
1043
+ tool: "tool";
1044
+ agent: "agent";
1045
+ operator: "operator";
1046
+ background_run: "background_run";
1047
+ platform: "platform";
1048
+ }>>>;
1049
+ audience: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1050
+ conversation: "conversation";
1051
+ agent_only: "agent_only";
1052
+ }>>>;
1053
+ childMessageCount: z.ZodOptional<z.ZodNumber>;
1054
+ parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
994
1055
  }, z.core.$strip>;
995
1056
  declare const ChatCompletionMessageSchema: z.ZodObject<{
996
1057
  id: z.ZodOptional<z.ZodString>;
@@ -1011,7 +1072,6 @@ declare const ChatMessageUISchema: z.ZodObject<{
1011
1072
  assistant: "assistant";
1012
1073
  system: "system";
1013
1074
  tool: "tool";
1014
- operator: "operator";
1015
1075
  }>;
1016
1076
  participantName: z.ZodString;
1017
1077
  participantId: z.ZodNullable<z.ZodNumber>;
@@ -1021,7 +1081,6 @@ declare const ChatMessageUISchema: z.ZodObject<{
1021
1081
  assistant: "assistant";
1022
1082
  system: "system";
1023
1083
  tool: "tool";
1024
- operator: "operator";
1025
1084
  }>;
1026
1085
  content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1027
1086
  type: z.ZodLiteral<"text">;
@@ -1068,6 +1127,21 @@ declare const ChatMessageUISchema: z.ZodObject<{
1068
1127
  smsDeliveryErrorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1069
1128
  smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1070
1129
  smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1130
+ origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1131
+ member: "member";
1132
+ workflow: "workflow";
1133
+ tool: "tool";
1134
+ agent: "agent";
1135
+ operator: "operator";
1136
+ background_run: "background_run";
1137
+ platform: "platform";
1138
+ }>>>;
1139
+ audience: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1140
+ conversation: "conversation";
1141
+ agent_only: "agent_only";
1142
+ }>>>;
1143
+ childMessageCount: z.ZodOptional<z.ZodNumber>;
1144
+ parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1071
1145
  error: z.ZodOptional<z.ZodObject<{
1072
1146
  code: z.ZodString;
1073
1147
  message: z.ZodString;
@@ -1085,7 +1159,6 @@ declare const ChatMessageSchema: z.ZodObject<{
1085
1159
  assistant: "assistant";
1086
1160
  system: "system";
1087
1161
  tool: "tool";
1088
- operator: "operator";
1089
1162
  }>;
1090
1163
  participantName: z.ZodString;
1091
1164
  participantId: z.ZodNullable<z.ZodNumber>;
@@ -1095,7 +1168,6 @@ declare const ChatMessageSchema: z.ZodObject<{
1095
1168
  assistant: "assistant";
1096
1169
  system: "system";
1097
1170
  tool: "tool";
1098
- operator: "operator";
1099
1171
  }>;
1100
1172
  content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1101
1173
  type: z.ZodLiteral<"text">;
@@ -1142,6 +1214,21 @@ declare const ChatMessageSchema: z.ZodObject<{
1142
1214
  smsDeliveryErrorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1143
1215
  smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1144
1216
  smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1217
+ origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1218
+ member: "member";
1219
+ workflow: "workflow";
1220
+ tool: "tool";
1221
+ agent: "agent";
1222
+ operator: "operator";
1223
+ background_run: "background_run";
1224
+ platform: "platform";
1225
+ }>>>;
1226
+ audience: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1227
+ conversation: "conversation";
1228
+ agent_only: "agent_only";
1229
+ }>>>;
1230
+ childMessageCount: z.ZodOptional<z.ZodNumber>;
1231
+ parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1145
1232
  error: z.ZodOptional<z.ZodObject<{
1146
1233
  code: z.ZodString;
1147
1234
  message: z.ZodString;
@@ -1166,9 +1253,13 @@ type MessageRole = z.infer<typeof MessageRoleEnum>;
1166
1253
  type ChatFilterObjectType = z.infer<typeof ChatFilterObjectTypeEnum>;
1167
1254
  type ChatFilterFilterType = z.infer<typeof ChatFilterFilterTypeEnum>;
1168
1255
  type TruncationReason = z.infer<typeof TruncationReasonEnum>;
1256
+ type MessageOrigin = z.infer<typeof MessageOriginEnum>;
1257
+ type MessageAudience = z.infer<typeof MessageAudienceEnum>;
1169
1258
  type ChatParticipantFormData = z.infer<typeof ChatParticipantFormDataSchema>;
1170
1259
  type HumanChatParticipant = z.infer<typeof HumanChatParticipantSchema>;
1171
- type OperatorChatParticipant = z.infer<typeof OperatorChatParticipantSchema>;
1260
+ type AssistantChatParticipant = z.infer<typeof AssistantChatParticipantSchema>;
1261
+ type ContributorChatParticipant = z.infer<typeof ContributorChatParticipantSchema>;
1262
+ type SupervisorChatParticipant = z.infer<typeof SupervisorChatParticipantSchema>;
1172
1263
  type ChatFormData = z.infer<typeof ChatFormDataSchema>;
1173
1264
  type FunctionTool = z.infer<typeof FunctionToolSchema>;
1174
1265
  type Chat = z.infer<typeof ChatSchema>;
@@ -2941,4 +3032,4 @@ declare function zodToMcpSchema(schema: any): any;
2941
3032
  */
2942
3033
  declare function createTool(name: string, description: string, schema: z.ZodSchema<any>): Tool;
2943
3034
 
2944
- export { type Account, type AccountFormData, AccountFormDataSchema, type AccountReportItem, AccountReportItemSchema, AccountSchema, type AddDataFieldInput, AddDataFieldSchema, type AddWorkspaceMemberInput, AddWorkspaceMemberSchema, type AdminAccountFormData, AdminAccountFormDataSchema, type AdminAccountMembership, AdminAccountMembershipSchema, type AdminOrganization, AdminOrganizationSchema, type AdminWorkspaceMemberFormData, AdminWorkspaceMemberFormDataSchema, type ApiKey, type ApiKeyCreated, ApiKeyCreatedSchema, type ApiKeyFormData, ApiKeyFormDataSchema, ApiKeySchema, type ApiKeyScope, ApiKeyScopeSchema, type ApiKeyScopesResponse, ApiKeyScopesResponseSchema, type ArchiveChatInput, ArchiveChatSchema, type ArchivePhoneNumberInput, ArchivePhoneNumberSchema, type CancelCalendarEventInput, CancelCalendarEventSchema, type Channel, ChannelEnum, type Chat, type ChatCompletionMessage, ChatCompletionMessageSchema, type ChatFilterFilterType, ChatFilterFilterTypeEnum, type ChatFilterObjectType, ChatFilterObjectTypeEnum, type ChatFilterRule, type ChatFilterRuleFormData, ChatFilterRuleFormDataSchema, ChatFilterRuleSchema, ChatFiltersSchema, type ChatFormData, ChatFormDataSchema, type ChatMessage, type ChatMessageAPIResponse, ChatMessageAPIResponseSchema, type ChatMessageChunk, ChatMessageChunkSchema, type ChatMessageObject, ChatMessageObjectSchema, ChatMessageSchema, type ChatMessageUI, ChatMessageUISchema, type ChatParticipantFormData, ChatParticipantFormDataSchema, ChatSchema, type CheckAvailabilityInput, CheckAvailabilitySchema, type CloneWorkflowInput, CloneWorkflowSchema, type CreateAccountInput, CreateAccountSchema, type CreateCalendarEventInput, CreateCalendarEventSchema, type CreateCalendarInput, CreateCalendarSchema, type CreateChatCompletionInput, CreateChatCompletionSchema, type CreateChatForWorkflowInput, CreateChatForWorkflowSchema, type CreateChatInput, CreateChatSchema, type CreateDataRecordInput, CreateDataRecordSchema, type CreateDataTypeInput, CreateDataTypeSchema, type CreateEventTypeInput, CreateEventTypeSchema, type CreateInboxInput, CreateInboxSchema, type CreateMemberRoleInput, CreateMemberRoleSchema, type CreateMenuItemInput, CreateMenuItemSchema, type CreateOrganizationRequest, CreateOrganizationRequestSchema, type CreatePhoneNumberInput, CreatePhoneNumberSchema, type CreateScheduleInput, CreateScheduleSchema, type CreateSiteInput, type CreateSitePageInput, CreateSitePageSchema, CreateSiteSchema, type CreateWorkflowInput, CreateWorkflowSchema, type CreateWorkspaceInput, type CreateWorkspaceMemberRequest, CreateWorkspaceMemberRequestSchema, CreateWorkspaceSchema, DataCategory, type DataField, type DataFieldFormData, DataFieldFormDataSchema, DataFieldSchema, DataFieldType, type DataIntegrityReportItem, DataIntegrityReportItemSchema, type DataRecord, type DataRecordAssociationFormData, DataRecordAssociationFormDataSchema, type DataRecordFilters, DataRecordFiltersSchema, type DataRecordFormData, DataRecordFormDataSchema, type DataRecordReportItem, DataRecordReportItemSchema, type DataRecordRetirement, DataRecordRetirementSchema, DataRecordSchema, type DataRecordWithAccessMode, DataRecordWithAccessModeSchema, type DataRecordsPaginatedResponse, DataRecordsPaginatedResponseSchema, DataSensitivity, type DataType, type DataTypeExportItem, DataTypeExportItemSchema, type DataTypeFormData, DataTypeFormDataSchema, DataTypeMemberRoleAccessInputSchema, DataTypeMemberRoleAccessResponseSchema, DataTypeRecordScope, DataTypeSchema, type DeleteCalendarEventInput, DeleteCalendarEventSchema, type DeleteCalendarInput, DeleteCalendarSchema, type DeleteChatInput, DeleteChatSchema, type DeleteDataRecordInput, DeleteDataRecordSchema, type DeleteDataTypeInput, DeleteDataTypeSchema, type DeleteEventTypeInput, DeleteEventTypeSchema, type DeleteInboxInput, DeleteInboxSchema, type DeleteMemberRoleInput, DeleteMemberRoleSchema, type DeleteMenuItemInput, DeleteMenuItemSchema, type DeleteScheduleInput, DeleteScheduleSchema, type DeleteSiteInput, type DeleteSitePageInput, DeleteSitePageSchema, DeleteSiteSchema, type DeleteWorkflowInput, DeleteWorkflowSchema, type DeleteWorkspaceInput, DeleteWorkspaceSchema, type DuplicateAccountInfo, DuplicateAccountInfoSchema, type ErrorResponse, ErrorResponseSchema, type FunctionTool, FunctionToolSchema, type GenerateICalTokenInput, GenerateICalTokenSchema, type GetAvailableSlotsInput, GetAvailableSlotsSchema, type GetAvailableWorkspaceFeaturesInput, GetAvailableWorkspaceFeaturesSchema, type GetCalendarEventInput, GetCalendarEventSchema, type GetCalendarInput, GetCalendarSchema, type GetChatInput, type GetChatMessagesInput, GetChatMessagesSchema, GetChatSchema, type GetChatsNeedsResponseInput, GetChatsNeedsResponseSchema, type GetCurrentMemberInput, GetCurrentMemberSchema, type GetDataRecordInput, GetDataRecordSchema, type GetDataTypeBySlugInput, GetDataTypeBySlugSchema, type GetDataTypeInput, GetDataTypeSchema, type GetEventTypeInput, GetEventTypeSchema, type GetFieldIndexStatusInput, GetFieldIndexStatusSchema, type GetICalUrlInput, GetICalUrlSchema, type GetInboxEmailInput, GetInboxEmailSchema, type GetInboxInput, GetInboxSchema, type GetMemberRoleInput, GetMemberRoleSchema, type GetPhoneNumberInput, GetPhoneNumberSchema, type GetProductInput, GetProductSchema, type GetProductsInput, GetProductsSchema, type GetRecentInboxMessagesInput, GetRecentInboxMessagesSchema, type GetRecentSmsMessagesInput, GetRecentSmsMessagesSchema, type GetResellerWorkspacesInput, GetResellerWorkspacesSchema, type GetSiteCountsInput, GetSiteCountsSchema, type GetSiteInput, type GetSiteMenuInput, GetSiteMenuSchema, type GetSitePageBySlugInput, GetSitePageBySlugSchema, type GetSitePageInput, GetSitePageSchema, GetSiteSchema, type GetWorkflowInput, GetWorkflowSchema, type GetWorkspaceDefaultsInput, GetWorkspaceDefaultsSchema, type GetWorkspaceInput, type GetWorkspaceMemberInput, GetWorkspaceMemberSchema, GetWorkspaceSchema, type HumanChatParticipant, HumanChatParticipantSchema, type ImageUrlContent, ImageUrlContentSchema, type InboxEmailFilters, InboxEmailFiltersSchema, type InboxFormData, InboxFormDataSchema, type InboxRule, InboxRuleSchema, type InboxRulesConfig, InboxRulesConfigSchema, IndexStatus, type InitiateOutboundCallInput, InitiateOutboundCallSchema, type ListCalendarEventsInput, ListCalendarEventsSchema, type ListCalendarsInput, ListCalendarsSchema, type ListChatsInput, ListChatsSchema, type ListDataRecordsInput, ListDataRecordsSchema, type ListDataTypesInput, ListDataTypesSchema, type ListEventTypesInput, ListEventTypesSchema, type ListInboxEmailsInput, ListInboxEmailsSchema, type ListInboxesInput, ListInboxesSchema, type ListMemberRolesInput, ListMemberRolesSchema, type ListMenuItemsInput, ListMenuItemsSchema, type ListPhoneCallsInput, ListPhoneCallsSchema, type ListPhoneNumbersInput, ListPhoneNumbersSchema, type ListPhoneSmsMessagesInput, ListPhoneSmsMessagesSchema, type ListSchedulesInput, ListSchedulesSchema, type ListSitePagesInput, ListSitePagesSchema, type ListSitesInput, ListSitesSchema, type ListWorkflowsInput, ListWorkflowsSchema, type ListWorkspaceMembersInput, ListWorkspaceMembersSchema, type ListWorkspacesInput, ListWorkspacesSchema, type LoginRequest, LoginRequestSchema, type LoginResponse, LoginResponseSchema, type MarkEmailReadInput, MarkEmailReadSchema, type MarkEmailUnreadInput, MarkEmailUnreadSchema, type Member, type MemberFilter, type MemberFilterFormData, MemberFilterFormDataSchema, MemberFilterSchema, type MemberFormData, MemberFormDataSchema, type MemberLabel, type MemberLabelFormData, MemberLabelFormDataSchema, MemberLabelSchema, type MemberRole, type MemberRoleDataTypeAccess, MemberRoleDataTypeAccessSchema, type MemberRoleFormData, MemberRoleFormDataSchema, type MemberRoleInboxAccess, MemberRoleInboxAccessSchema, MemberRoleSchema, type MemberRoleSiteAccess, MemberRoleSiteAccessSchema, type MemberRoleTaskAccess, MemberRoleTaskAccessSchema, type MemberRoleWorkflowAccess, MemberRoleWorkflowAccessSchema, MemberSchema, type MenuItemFormData, MenuItemFormDataSchema, type MessageContentPart, MessageContentPartSchema, type MessageRole, MessageRoleEnum, type MissingMembershipItem, MissingMembershipItemSchema, type OperatorChatParticipant, OperatorChatParticipantSchema, type Organization, OrganizationSchema, type PhoneNumberFormData, PhoneNumberFormDataSchema, type RateLimitAllowlistEntry, RateLimitAllowlistEntrySchema, type RateLimitOverride, RateLimitOverrideSchema, type RateMessageInput, RateMessageSchema, type RemoveDataFieldInput, RemoveDataFieldSchema, type RemoveWorkspaceMemberInput, RemoveWorkspaceMemberSchema, type ReorderMenuItems, type ReorderMenuItemsInput, ReorderMenuItemsRequestSchema, ReorderMenuItemsSchema, type RevokeICalTokenInput, RevokeICalTokenSchema, type SMSLoginResponse, SMSLoginResponseSchema, type SchemaField, type SchemaFieldFormData, SchemaFieldFormDataSchema, SchemaFieldSchema, type SendAssistantMessageInput, SendAssistantMessageSchema, type SendChatMessageInput, SendChatMessageSchema, type SendSmsToMemberInput, SendSmsToMemberSchema, type SiteFormData, SiteFormDataSchema, type SitePageFormData, SitePageFormDataSchema, type StartSiteCrawlInput, StartSiteCrawlSchema, type TaskExportDataTypeRelation, TaskExportDataTypeRelationSchema, type TextContent, TextContentSchema, type ToggleFieldIndexInput, ToggleFieldIndexSchema, type ToolCall, type ToolCallFunction, ToolCallFunctionSchema, ToolCallSchema, type ToolResult, ToolResultSchema, type TruncationReason, TruncationReasonEnum, type UnarchiveChatInput, UnarchiveChatSchema, type UpdateAttendeeResponseInput, UpdateAttendeeResponseSchema, type UpdateCalendarEventInput, UpdateCalendarEventSchema, type UpdateCalendarInput, UpdateCalendarSchema, type UpdateChatInput, type UpdateChatMuteInput, UpdateChatMuteSchema, type UpdateChatNeedsResponseInput, UpdateChatNeedsResponseSchema, UpdateChatSchema, type UpdateCurrentMemberInput, UpdateCurrentMemberSchema, type UpdateDataFieldInput, UpdateDataFieldSchema, type UpdateDataRecordInput, UpdateDataRecordSchema, type UpdateDataTypeInput, UpdateDataTypeSchema, type UpdateEventTypeInput, UpdateEventTypeSchema, type UpdateInboxInput, UpdateInboxSchema, type UpdateMemberRoleInput, UpdateMemberRoleSchema, type UpdateMenuItemInput, UpdateMenuItemSchema, type UpdateOrganizationRequest, UpdateOrganizationRequestSchema, type UpdatePhoneNumberInput, UpdatePhoneNumberSchema, type UpdateScheduleInput, UpdateScheduleSchema, type UpdateSiteInput, type UpdateSitePageInput, UpdateSitePageSchema, UpdateSiteSchema, type UpdateWorkflowInput, UpdateWorkflowSchema, type UpdateWorkspaceInput, type UpdateWorkspaceMemberInput, type UpdateWorkspaceMemberRequest, UpdateWorkspaceMemberRequestSchema, UpdateWorkspaceMemberSchema, UpdateWorkspaceSchema, type UpsertDataRecordInput, UpsertDataRecordSchema, type VerifyCodeRequest, VerifyCodeRequestSchema, type VerifyCodeResponse, VerifyCodeResponseSchema, type WorkflowCreateFormData, WorkflowCreateFormDataSchema, type WorkflowFormData, WorkflowFormDataSchema, type WorkspaceFormData, WorkspaceFormDataSchema, WorkspaceIdSchema, createTool, zodToMcpSchema };
3035
+ export { type Account, type AccountFormData, AccountFormDataSchema, type AccountReportItem, AccountReportItemSchema, AccountSchema, type AddDataFieldInput, AddDataFieldSchema, type AddWorkspaceMemberInput, AddWorkspaceMemberSchema, type AdminAccountFormData, AdminAccountFormDataSchema, type AdminAccountMembership, AdminAccountMembershipSchema, type AdminOrganization, AdminOrganizationSchema, type AdminWorkspaceMemberFormData, AdminWorkspaceMemberFormDataSchema, type ApiKey, type ApiKeyCreated, ApiKeyCreatedSchema, type ApiKeyFormData, ApiKeyFormDataSchema, ApiKeySchema, type ApiKeyScope, ApiKeyScopeSchema, type ApiKeyScopesResponse, ApiKeyScopesResponseSchema, type ArchiveChatInput, ArchiveChatSchema, type ArchivePhoneNumberInput, ArchivePhoneNumberSchema, type AssistantChatParticipant, AssistantChatParticipantSchema, type CancelCalendarEventInput, CancelCalendarEventSchema, type Channel, ChannelEnum, type Chat, type ChatCompletionMessage, ChatCompletionMessageSchema, type ChatFilterFilterType, ChatFilterFilterTypeEnum, type ChatFilterObjectType, ChatFilterObjectTypeEnum, type ChatFilterRule, type ChatFilterRuleFormData, ChatFilterRuleFormDataSchema, ChatFilterRuleSchema, ChatFiltersSchema, type ChatFormData, ChatFormDataSchema, type ChatMessage, type ChatMessageAPIResponse, ChatMessageAPIResponseSchema, type ChatMessageChunk, ChatMessageChunkSchema, type ChatMessageObject, ChatMessageObjectSchema, ChatMessageSchema, type ChatMessageUI, ChatMessageUISchema, type ChatParticipantFormData, ChatParticipantFormDataSchema, ChatSchema, type CheckAvailabilityInput, CheckAvailabilitySchema, type CloneWorkflowInput, CloneWorkflowSchema, type ContributorChatParticipant, ContributorChatParticipantSchema, type CreateAccountInput, CreateAccountSchema, type CreateCalendarEventInput, CreateCalendarEventSchema, type CreateCalendarInput, CreateCalendarSchema, type CreateChatCompletionInput, CreateChatCompletionSchema, type CreateChatForWorkflowInput, CreateChatForWorkflowSchema, type CreateChatInput, CreateChatSchema, type CreateDataRecordInput, CreateDataRecordSchema, type CreateDataTypeInput, CreateDataTypeSchema, type CreateEventTypeInput, CreateEventTypeSchema, type CreateInboxInput, CreateInboxSchema, type CreateMemberRoleInput, CreateMemberRoleSchema, type CreateMenuItemInput, CreateMenuItemSchema, type CreateOrganizationRequest, CreateOrganizationRequestSchema, type CreatePhoneNumberInput, CreatePhoneNumberSchema, type CreateScheduleInput, CreateScheduleSchema, type CreateSiteInput, type CreateSitePageInput, CreateSitePageSchema, CreateSiteSchema, type CreateWorkflowInput, CreateWorkflowSchema, type CreateWorkspaceInput, type CreateWorkspaceMemberRequest, CreateWorkspaceMemberRequestSchema, CreateWorkspaceSchema, DataCategory, type DataField, type DataFieldFormData, DataFieldFormDataSchema, DataFieldSchema, DataFieldType, type DataIntegrityReportItem, DataIntegrityReportItemSchema, type DataRecord, type DataRecordAssociationFormData, DataRecordAssociationFormDataSchema, type DataRecordFilters, DataRecordFiltersSchema, type DataRecordFormData, DataRecordFormDataSchema, type DataRecordReportItem, DataRecordReportItemSchema, type DataRecordRetirement, DataRecordRetirementSchema, DataRecordSchema, type DataRecordWithAccessMode, DataRecordWithAccessModeSchema, type DataRecordsPaginatedResponse, DataRecordsPaginatedResponseSchema, DataSensitivity, type DataType, type DataTypeExportItem, DataTypeExportItemSchema, type DataTypeFormData, DataTypeFormDataSchema, DataTypeMemberRoleAccessInputSchema, DataTypeMemberRoleAccessResponseSchema, DataTypeRecordScope, DataTypeSchema, type DeleteCalendarEventInput, DeleteCalendarEventSchema, type DeleteCalendarInput, DeleteCalendarSchema, type DeleteChatInput, DeleteChatSchema, type DeleteDataRecordInput, DeleteDataRecordSchema, type DeleteDataTypeInput, DeleteDataTypeSchema, type DeleteEventTypeInput, DeleteEventTypeSchema, type DeleteInboxInput, DeleteInboxSchema, type DeleteMemberRoleInput, DeleteMemberRoleSchema, type DeleteMenuItemInput, DeleteMenuItemSchema, type DeleteScheduleInput, DeleteScheduleSchema, type DeleteSiteInput, type DeleteSitePageInput, DeleteSitePageSchema, DeleteSiteSchema, type DeleteWorkflowInput, DeleteWorkflowSchema, type DeleteWorkspaceInput, DeleteWorkspaceSchema, type DuplicateAccountInfo, DuplicateAccountInfoSchema, type ErrorResponse, ErrorResponseSchema, type FunctionTool, FunctionToolSchema, type GenerateICalTokenInput, GenerateICalTokenSchema, type GetAvailableSlotsInput, GetAvailableSlotsSchema, type GetAvailableWorkspaceFeaturesInput, GetAvailableWorkspaceFeaturesSchema, type GetCalendarEventInput, GetCalendarEventSchema, type GetCalendarInput, GetCalendarSchema, type GetChatInput, type GetChatMessagesInput, GetChatMessagesSchema, GetChatSchema, type GetChatsNeedsResponseInput, GetChatsNeedsResponseSchema, type GetCurrentMemberInput, GetCurrentMemberSchema, type GetDataRecordInput, GetDataRecordSchema, type GetDataTypeBySlugInput, GetDataTypeBySlugSchema, type GetDataTypeInput, GetDataTypeSchema, type GetEventTypeInput, GetEventTypeSchema, type GetFieldIndexStatusInput, GetFieldIndexStatusSchema, type GetICalUrlInput, GetICalUrlSchema, type GetInboxEmailInput, GetInboxEmailSchema, type GetInboxInput, GetInboxSchema, type GetMemberRoleInput, GetMemberRoleSchema, type GetPhoneNumberInput, GetPhoneNumberSchema, type GetProductInput, GetProductSchema, type GetProductsInput, GetProductsSchema, type GetRecentInboxMessagesInput, GetRecentInboxMessagesSchema, type GetRecentSmsMessagesInput, GetRecentSmsMessagesSchema, type GetResellerWorkspacesInput, GetResellerWorkspacesSchema, type GetSiteCountsInput, GetSiteCountsSchema, type GetSiteInput, type GetSiteMenuInput, GetSiteMenuSchema, type GetSitePageBySlugInput, GetSitePageBySlugSchema, type GetSitePageInput, GetSitePageSchema, GetSiteSchema, type GetWorkflowInput, GetWorkflowSchema, type GetWorkspaceDefaultsInput, GetWorkspaceDefaultsSchema, type GetWorkspaceInput, type GetWorkspaceMemberInput, GetWorkspaceMemberSchema, GetWorkspaceSchema, type HumanChatParticipant, HumanChatParticipantSchema, type ImageUrlContent, ImageUrlContentSchema, type InboxEmailFilters, InboxEmailFiltersSchema, type InboxFormData, InboxFormDataSchema, type InboxRule, InboxRuleSchema, type InboxRulesConfig, InboxRulesConfigSchema, IndexStatus, type InitiateOutboundCallInput, InitiateOutboundCallSchema, type ListCalendarEventsInput, ListCalendarEventsSchema, type ListCalendarsInput, ListCalendarsSchema, type ListChatsInput, ListChatsSchema, type ListDataRecordsInput, ListDataRecordsSchema, type ListDataTypesInput, ListDataTypesSchema, type ListEventTypesInput, ListEventTypesSchema, type ListInboxEmailsInput, ListInboxEmailsSchema, type ListInboxesInput, ListInboxesSchema, type ListMemberRolesInput, ListMemberRolesSchema, type ListMenuItemsInput, ListMenuItemsSchema, type ListPhoneCallsInput, ListPhoneCallsSchema, type ListPhoneNumbersInput, ListPhoneNumbersSchema, type ListPhoneSmsMessagesInput, ListPhoneSmsMessagesSchema, type ListSchedulesInput, ListSchedulesSchema, type ListSitePagesInput, ListSitePagesSchema, type ListSitesInput, ListSitesSchema, type ListWorkflowsInput, ListWorkflowsSchema, type ListWorkspaceMembersInput, ListWorkspaceMembersSchema, type ListWorkspacesInput, ListWorkspacesSchema, type LoginRequest, LoginRequestSchema, type LoginResponse, LoginResponseSchema, type MarkEmailReadInput, MarkEmailReadSchema, type MarkEmailUnreadInput, MarkEmailUnreadSchema, type Member, type MemberFilter, type MemberFilterFormData, MemberFilterFormDataSchema, MemberFilterSchema, type MemberFormData, MemberFormDataSchema, type MemberLabel, type MemberLabelFormData, MemberLabelFormDataSchema, MemberLabelSchema, type MemberRole, type MemberRoleDataTypeAccess, MemberRoleDataTypeAccessSchema, type MemberRoleFormData, MemberRoleFormDataSchema, type MemberRoleInboxAccess, MemberRoleInboxAccessSchema, MemberRoleSchema, type MemberRoleSiteAccess, MemberRoleSiteAccessSchema, type MemberRoleTaskAccess, MemberRoleTaskAccessSchema, type MemberRoleWorkflowAccess, MemberRoleWorkflowAccessSchema, MemberSchema, type MenuItemFormData, MenuItemFormDataSchema, type MessageAudience, MessageAudienceEnum, type MessageContentPart, MessageContentPartSchema, type MessageOrigin, MessageOriginEnum, type MessageRole, MessageRoleEnum, type MissingMembershipItem, MissingMembershipItemSchema, type Organization, OrganizationSchema, type PhoneNumberFormData, PhoneNumberFormDataSchema, type RateLimitAllowlistEntry, RateLimitAllowlistEntrySchema, type RateLimitOverride, RateLimitOverrideSchema, type RateMessageInput, RateMessageSchema, type RemoveDataFieldInput, RemoveDataFieldSchema, type RemoveWorkspaceMemberInput, RemoveWorkspaceMemberSchema, type ReorderMenuItems, type ReorderMenuItemsInput, ReorderMenuItemsRequestSchema, ReorderMenuItemsSchema, type RevokeICalTokenInput, RevokeICalTokenSchema, type SMSLoginResponse, SMSLoginResponseSchema, type SchemaField, type SchemaFieldFormData, SchemaFieldFormDataSchema, SchemaFieldSchema, type SendAssistantMessageInput, SendAssistantMessageSchema, type SendChatMessageInput, SendChatMessageSchema, type SendSmsToMemberInput, SendSmsToMemberSchema, type SiteFormData, SiteFormDataSchema, type SitePageFormData, SitePageFormDataSchema, type StartSiteCrawlInput, StartSiteCrawlSchema, type SupervisorChatParticipant, SupervisorChatParticipantSchema, type TaskExportDataTypeRelation, TaskExportDataTypeRelationSchema, type TextContent, TextContentSchema, type ToggleFieldIndexInput, ToggleFieldIndexSchema, type ToolCall, type ToolCallFunction, ToolCallFunctionSchema, ToolCallSchema, type ToolResult, ToolResultSchema, type TruncationReason, TruncationReasonEnum, type UnarchiveChatInput, UnarchiveChatSchema, type UpdateAttendeeResponseInput, UpdateAttendeeResponseSchema, type UpdateCalendarEventInput, UpdateCalendarEventSchema, type UpdateCalendarInput, UpdateCalendarSchema, type UpdateChatInput, type UpdateChatMuteInput, UpdateChatMuteSchema, type UpdateChatNeedsResponseInput, UpdateChatNeedsResponseSchema, UpdateChatSchema, type UpdateCurrentMemberInput, UpdateCurrentMemberSchema, type UpdateDataFieldInput, UpdateDataFieldSchema, type UpdateDataRecordInput, UpdateDataRecordSchema, type UpdateDataTypeInput, UpdateDataTypeSchema, type UpdateEventTypeInput, UpdateEventTypeSchema, type UpdateInboxInput, UpdateInboxSchema, type UpdateMemberRoleInput, UpdateMemberRoleSchema, type UpdateMenuItemInput, UpdateMenuItemSchema, type UpdateOrganizationRequest, UpdateOrganizationRequestSchema, type UpdatePhoneNumberInput, UpdatePhoneNumberSchema, type UpdateScheduleInput, UpdateScheduleSchema, type UpdateSiteInput, type UpdateSitePageInput, UpdateSitePageSchema, UpdateSiteSchema, type UpdateWorkflowInput, UpdateWorkflowSchema, type UpdateWorkspaceInput, type UpdateWorkspaceMemberInput, type UpdateWorkspaceMemberRequest, UpdateWorkspaceMemberRequestSchema, UpdateWorkspaceMemberSchema, UpdateWorkspaceSchema, type UpsertDataRecordInput, UpsertDataRecordSchema, type VerifyCodeRequest, VerifyCodeRequestSchema, type VerifyCodeResponse, VerifyCodeResponseSchema, type WorkflowCreateFormData, WorkflowCreateFormDataSchema, type WorkflowFormData, WorkflowFormDataSchema, type WorkspaceFormData, WorkspaceFormDataSchema, WorkspaceIdSchema, createTool, zodToMcpSchema };
package/dist/schemas.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  DataSensitivity,
9
9
  DataTypeRecordScope,
10
10
  IndexStatus
11
- } from "./chunk-V7ZKEH4V.js";
11
+ } from "./chunk-2YLKG4TT.js";
12
12
 
13
13
  // src/schemas/accounts.ts
14
14
  import { z } from "zod";
@@ -512,14 +512,7 @@ var ChannelEnum = z4.enum([
512
512
  "a2a",
513
513
  "routine"
514
514
  ]);
515
- var MessageRoleEnum = z4.enum([
516
- "user",
517
- "assistant",
518
- "system",
519
- "tool",
520
- "function",
521
- "operator"
522
- ]);
515
+ var MessageRoleEnum = z4.enum(["user", "assistant", "system", "tool", "function"]);
523
516
  var ChatFilterObjectTypeEnum = z4.enum([
524
517
  "title",
525
518
  "participant",
@@ -552,6 +545,28 @@ var TruncationReasonEnum = z4.enum([
552
545
  "error"
553
546
  // Error occurred during generation
554
547
  ]);
548
+ var MessageOriginEnum = z4.enum([
549
+ "member",
550
+ // a human member of the workspace
551
+ "agent",
552
+ // the AI assistant's own output
553
+ "operator",
554
+ // a human operator acting in the conversation
555
+ "tool",
556
+ // tool / function output
557
+ "workflow",
558
+ // orchestration machinery (task guidance, routing notes)
559
+ "background_run",
560
+ // a detached background trajectory of the agent
561
+ "platform"
562
+ // Gravity Rail itself (notices, system events)
563
+ ]);
564
+ var MessageAudienceEnum = z4.enum([
565
+ "conversation",
566
+ // participates in the member-facing transcript
567
+ "agent_only"
568
+ // context the member never said; never render as speech
569
+ ]);
555
570
  var ChatParticipantFormDataSchema = z4.object({
556
571
  memberId: z4.number().optional(),
557
572
  role: z4.string().optional(),
@@ -562,10 +577,27 @@ var HumanChatParticipantSchema = z4.object({
562
577
  role: z4.literal("user"),
563
578
  memberId: z4.number()
564
579
  });
565
- var OperatorChatParticipantSchema = z4.object({
580
+ var AssistantChatParticipantSchema = z4.object({
581
+ name: z4.string(),
582
+ // A revision-backed assistant has no Member row at all, so the backend
583
+ // serves `memberId: null` here — it is NOT a required number.
584
+ memberId: z4.number().nullable().optional(),
585
+ memberType: z4.string().optional(),
586
+ role: z4.literal("assistant"),
587
+ additionalInstructions: z4.string().optional()
588
+ });
589
+ var ContributorChatParticipantSchema = z4.object({
590
+ name: z4.string(),
591
+ memberId: z4.number(),
592
+ memberType: z4.string().optional(),
593
+ role: z4.literal("contributor"),
594
+ additionalInstructions: z4.string().optional()
595
+ });
596
+ var SupervisorChatParticipantSchema = z4.object({
566
597
  name: z4.string(),
567
598
  memberId: z4.number(),
568
- role: z4.literal("operator")
599
+ memberType: z4.string().optional(),
600
+ role: z4.literal("supervisor")
569
601
  });
570
602
  var ChatFormDataSchema = z4.object({
571
603
  id: z4.number().optional(),
@@ -579,6 +611,12 @@ var ChatFormDataSchema = z4.object({
579
611
  siteId: z4.number().nullable().optional(),
580
612
  memberId: z4.number().nullable().optional(),
581
613
  participants: z4.array(ChatParticipantFormDataSchema),
614
+ // Who answers. The explicit successor to `agentEnabled` — see ChatFormData.
615
+ assistantKind: z4.enum(["ai", "human"]).optional(),
616
+ // The chat's user participant, named without the "unless it's the caller"
617
+ // caveat that `memberId` carries.
618
+ userMemberId: z4.number().nullable().optional(),
619
+ // Deprecated alias for `assistantKind`; false ⇒ 'human'.
582
620
  agentEnabled: z4.boolean().optional(),
583
621
  assistantMemberId: z4.number().nullable().optional(),
584
622
  assistantName: z4.string().nullable().optional(),
@@ -712,14 +750,9 @@ var ChatSchema = z4.object({
712
750
  participants: z4.array(
713
751
  z4.union([
714
752
  HumanChatParticipantSchema,
715
- OperatorChatParticipantSchema,
716
- z4.object({
717
- name: z4.string(),
718
- memberId: z4.number(),
719
- memberType: z4.string().optional(),
720
- role: z4.literal("assistant"),
721
- additionalInstructions: z4.string().optional()
722
- })
753
+ AssistantChatParticipantSchema,
754
+ ContributorChatParticipantSchema,
755
+ SupervisorChatParticipantSchema
723
756
  ])
724
757
  ),
725
758
  canSendAsAssistant: z4.boolean().optional()
@@ -796,7 +829,16 @@ var ChatMessageAPIResponseSchema = z4.object({
796
829
  smsDeliveryErrorCode: z4.string().nullable().optional(),
797
830
  smsDeliveryUpdatedAt: z4.string().nullable().optional(),
798
831
  // Friendly failure reason — only set when smsDeliveryStatus is failed/undelivered.
799
- smsDeliveryFailureReason: z4.string().nullable().optional()
832
+ smsDeliveryFailureReason: z4.string().nullable().optional(),
833
+ // ADR-11 provenance. Null on rows written before the columns existed —
834
+ // clients fall back to `role`.
835
+ origin: MessageOriginEnum.nullable().optional(),
836
+ audience: MessageAudienceEnum.nullable().optional(),
837
+ // Forked-trajectory "show work" affordance: how many messages hang off this
838
+ // one as a detached background thread, and the fork point this message
839
+ // itself hangs off (the PARENT's uuid, so it joins against `id`).
840
+ childMessageCount: z4.number().optional(),
841
+ parentMessageId: z4.string().nullable().optional()
800
842
  });
801
843
  var ChatCompletionMessageSchema = z4.object({
802
844
  id: z4.string().optional(),
@@ -1888,6 +1930,7 @@ export {
1888
1930
  ArchiveChatSchema,
1889
1931
  ArchivePhoneNumberSchema,
1890
1932
  ArchiveTaskSchema,
1933
+ AssistantChatParticipantSchema,
1891
1934
  CancelCalendarEventSchema,
1892
1935
  ChannelEnum,
1893
1936
  ChatCompletionMessageSchema,
@@ -1907,6 +1950,7 @@ export {
1907
1950
  CheckAvailabilitySchema,
1908
1951
  ChildTaskFormDataSchema,
1909
1952
  CloneWorkflowSchema,
1953
+ ContributorChatParticipantSchema,
1910
1954
  CreateAccountSchema,
1911
1955
  CreateCalendarEventSchema,
1912
1956
  CreateCalendarSchema,
@@ -2055,12 +2099,13 @@ export {
2055
2099
  MemberRoleWorkflowAccessSchema,
2056
2100
  MemberSchema,
2057
2101
  MenuItemFormDataSchema,
2102
+ MessageAudienceEnum,
2058
2103
  MessageContentPartSchema,
2104
+ MessageOriginEnum,
2059
2105
  MessageRoleEnum,
2060
2106
  MilestoneFormDataSchema,
2061
2107
  MilestoneGoalFormDataSchema,
2062
2108
  MissingMembershipItemSchema,
2063
- OperatorChatParticipantSchema,
2064
2109
  OrganizationSchema,
2065
2110
  PhoneNumberFormDataSchema,
2066
2111
  RateLimitAllowlistEntrySchema,
@@ -2080,6 +2125,7 @@ export {
2080
2125
  SiteFormDataSchema,
2081
2126
  SitePageFormDataSchema,
2082
2127
  StartSiteCrawlSchema,
2128
+ SupervisorChatParticipantSchema,
2083
2129
  TaskExportDataTypeRelationSchema,
2084
2130
  TaskFormDataSchema,
2085
2131
  TextContentSchema,