@gravity-rail/sdk 0.22.0 → 0.33.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 (55) hide show
  1. package/README.md +57 -8
  2. package/dist/agui.d.cts +1 -1
  3. package/dist/agui.d.ts +1 -1
  4. package/dist/audio.d.cts +1 -1
  5. package/dist/audio.d.ts +1 -1
  6. package/dist/{client-C10qSd6b.d.ts → chat-interaction-DJ9-Qtg2.d.cts} +8016 -3571
  7. package/dist/{client-Ct0soeip.d.cts → chat-interaction-dd6F3uT4.d.ts} +8016 -3571
  8. package/dist/{chunk-3HAV5XUJ.js → chunk-HRUMZ46V.js} +1 -1
  9. package/dist/chunk-HRUMZ46V.js.map +1 -0
  10. package/dist/{chunk-7OLBLLV7.js → chunk-P2E6LU7I.js} +57 -7
  11. package/dist/chunk-P2E6LU7I.js.map +1 -0
  12. package/dist/{chunk-WMA6YCAS.js → chunk-WDYHAQDY.js} +1364 -216
  13. package/dist/chunk-WDYHAQDY.js.map +1 -0
  14. package/dist/helpers.cjs +54 -1
  15. package/dist/helpers.cjs.map +1 -1
  16. package/dist/helpers.d.cts +3 -2
  17. package/dist/helpers.d.ts +3 -2
  18. package/dist/helpers.js +11 -3
  19. package/dist/helpers.js.map +1 -1
  20. package/dist/index.cjs +2414 -149
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +550 -6
  23. package/dist/index.d.ts +550 -6
  24. package/dist/index.js +1037 -23
  25. package/dist/index.js.map +1 -1
  26. package/dist/internal.cjs +1456 -235
  27. package/dist/internal.cjs.map +1 -1
  28. package/dist/internal.d.cts +33 -49
  29. package/dist/internal.d.ts +33 -49
  30. package/dist/internal.js +77 -33
  31. package/dist/internal.js.map +1 -1
  32. package/dist/realtime.cjs +279 -14
  33. package/dist/realtime.cjs.map +1 -1
  34. package/dist/realtime.d.cts +169 -17
  35. package/dist/realtime.d.ts +169 -17
  36. package/dist/realtime.js +264 -13
  37. package/dist/realtime.js.map +1 -1
  38. package/dist/{revision-state-C6aM-PHu.d.ts → revision-state-BD39fW5X.d.ts} +236 -5
  39. package/dist/{revision-state-CCPTiW-i.d.cts → revision-state-Cgmy_Cds.d.cts} +236 -5
  40. package/dist/schemas.cjs +35 -10
  41. package/dist/schemas.cjs.map +1 -1
  42. package/dist/schemas.d.cts +54 -33
  43. package/dist/schemas.d.ts +54 -33
  44. package/dist/schemas.js +35 -10
  45. package/dist/schemas.js.map +1 -1
  46. package/dist/{tasks-WH_VfzMv.d.cts → tasks-B-31JPuq.d.cts} +298 -114
  47. package/dist/{tasks-WH_VfzMv.d.ts → tasks-B-31JPuq.d.ts} +298 -114
  48. package/dist/types-0c6_NGU4.d.cts +90 -0
  49. package/dist/types-0c6_NGU4.d.ts +90 -0
  50. package/package.json +3 -3
  51. package/dist/chunk-3HAV5XUJ.js.map +0 -1
  52. package/dist/chunk-7OLBLLV7.js.map +0 -1
  53. package/dist/chunk-WMA6YCAS.js.map +0 -1
  54. package/dist/types-DkYyrvoC.d.cts +0 -19
  55. package/dist/types-DkYyrvoC.d.ts +0 -19
package/dist/schemas.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { ae as CalendarScheduleAvailabilityType, ag as CalendarScheduleRecurrence, a6 as CalendarEventStatus, F as AttendeeResponseStatus, D as DataFieldType, ba as DataTypeRecordScope, b4 as DataSensitivity, aQ as DataCategory, bS as IndexStatus } from './tasks-WH_VfzMv.js';
3
- export { fX as AbilityData, fY as AbilityDataSchema, fZ as AnonymousInquiryFormSchema, f_ as ArchiveTaskInput, f$ as ArchiveTaskSchema, g0 as ChildTaskFormData, g1 as ChildTaskFormDataSchema, g2 as CreateInquiryInput, g3 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 TaskFormData, gl as TaskFormDataSchema, gm as UnarchiveTaskInput, gn as UnarchiveTaskSchema, go as UpdateInquiryInput, gp as UpdateInquiryRequestSchema, gq as UpdateInquirySchema, gr as UpdateTaskInput, gs as UpdateTaskSchema } from './tasks-WH_VfzMv.js';
2
+ import { ae as CalendarScheduleAvailabilityType, ag as CalendarScheduleRecurrence, a6 as CalendarEventStatus, F as AttendeeResponseStatus, D as DataFieldType, ba as DataTypeRecordScope, b4 as DataSensitivity, aQ as DataCategory, bU as IndexStatus } from './tasks-B-31JPuq.js';
3
+ export { g0 as AbilityData, g1 as AbilityDataSchema, g2 as AnonymousInquiryFormSchema, g3 as ArchiveTaskInput, g4 as ArchiveTaskSchema, g5 as ChildTaskFormData, g6 as ChildTaskFormDataSchema, g7 as CreateInquiryInput, g8 as CreateInquirySchema, g9 as CreateTaskInput, ga as CreateTaskSchema, gb as DeleteInquiryInput, gc as DeleteInquirySchema, gd as DeleteTaskInput, ge as DeleteTaskSchema, gf as EnrichInquiryInput, gg as EnrichInquirySchema, gh as GetInquiryInput, gi as GetInquirySchema, gj as GetTaskInput, gk as GetTaskSchema, gl as ListInquiriesInput, gm as ListInquiriesSchema, gn as ListTasksInput, go as ListTasksSchema, gp as TaskFormData, gq as TaskFormDataSchema, gr as UnarchiveTaskInput, gs as UnarchiveTaskSchema, gt as UpdateInquiryInput, gu as UpdateInquiryRequestSchema, gv as UpdateInquirySchema, gw as UpdateTaskInput, gx as UpdateTaskSchema } from './tasks-B-31JPuq.js';
4
4
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
5
5
 
6
6
  declare const AccountFormDataSchema: z.ZodObject<{
@@ -505,10 +505,10 @@ declare const MessageRoleEnum: z.ZodEnum<{
505
505
  }>;
506
506
  declare const ChatFilterObjectTypeEnum: z.ZodEnum<{
507
507
  title: "title";
508
+ owner: "owner";
508
509
  participant: "participant";
509
510
  mode: "mode";
510
511
  channel: "channel";
511
- owner: "owner";
512
512
  needsResponse: "needsResponse";
513
513
  paused: "paused";
514
514
  messageCount: "messageCount";
@@ -517,14 +517,20 @@ declare const ChatFilterObjectTypeEnum: z.ZodEnum<{
517
517
  declare const ChatFilterFilterTypeEnum: z.ZodEnum<{
518
518
  any: "any";
519
519
  all: "all";
520
- active: "active";
521
520
  none: "none";
521
+ active: "active";
522
522
  partial: "partial";
523
523
  exact: "exact";
524
524
  equals: "equals";
525
525
  notEquals: "notEquals";
526
526
  onlyMine: "onlyMine";
527
527
  }>;
528
+ declare const ChatMuteReasonEnum: z.ZodEnum<{
529
+ working: "working";
530
+ waiting_on_person: "waiting_on_person";
531
+ resolved_elsewhere: "resolved_elsewhere";
532
+ not_mine: "not_mine";
533
+ }>;
528
534
  declare const TruncationReasonEnum: z.ZodEnum<{
529
535
  error: "error";
530
536
  barge_in: "barge_in";
@@ -584,6 +590,15 @@ declare const ChatFormDataSchema: z.ZodObject<{
584
590
  workflowRevisionUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
585
591
  phoneNumberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
586
592
  siteId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
593
+ browserChannel: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
594
+ "web-chat": "web-chat";
595
+ "web-voice": "web-voice";
596
+ }>>>;
597
+ interactionMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
598
+ text: "text";
599
+ push_to_talk: "push_to_talk";
600
+ realtime: "realtime";
601
+ }>>>;
587
602
  memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
588
603
  participants: z.ZodArray<z.ZodObject<{
589
604
  memberId: z.ZodOptional<z.ZodNumber>;
@@ -605,7 +620,6 @@ declare const ChatFormDataSchema: z.ZodObject<{
605
620
  assistantRealtimeModelConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
606
621
  paused: z.ZodOptional<z.ZodBoolean>;
607
622
  muted: z.ZodOptional<z.ZodBoolean>;
608
- needsResponse: z.ZodOptional<z.ZodBoolean>;
609
623
  initialMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
610
624
  }, z.core.$strip>;
611
625
  declare const ChatFiltersSchema: z.ZodObject<{
@@ -664,6 +678,15 @@ declare const CreateChatSchema: z.ZodObject<{
664
678
  workflowRevisionUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
665
679
  phoneNumberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
666
680
  siteId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
681
+ browserChannel: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
682
+ "web-chat": "web-chat";
683
+ "web-voice": "web-voice";
684
+ }>>>;
685
+ interactionMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
686
+ text: "text";
687
+ push_to_talk: "push_to_talk";
688
+ realtime: "realtime";
689
+ }>>>;
667
690
  memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
668
691
  participants: z.ZodArray<z.ZodObject<{
669
692
  memberId: z.ZodOptional<z.ZodNumber>;
@@ -685,22 +708,22 @@ declare const CreateChatSchema: z.ZodObject<{
685
708
  assistantRealtimeModelConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
686
709
  paused: z.ZodOptional<z.ZodBoolean>;
687
710
  muted: z.ZodOptional<z.ZodBoolean>;
688
- needsResponse: z.ZodOptional<z.ZodBoolean>;
689
711
  initialMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
690
712
  }, z.core.$strip>;
691
713
  declare const UpdateChatSchema: z.ZodObject<{
692
714
  wid: z.ZodString;
693
715
  chatId: z.ZodNumber;
694
716
  id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
717
+ memberId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
695
718
  title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
696
- channel: z.ZodOptional<z.ZodString>;
697
719
  workflowId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
698
- workflowUuid: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
699
720
  workflowRevisionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
721
+ channel: z.ZodOptional<z.ZodString>;
722
+ paused: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
723
+ workflowUuid: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
700
724
  workflowRevisionUuid: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
701
725
  phoneNumberId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
702
726
  siteId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
703
- memberId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
704
727
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
705
728
  memberId: z.ZodOptional<z.ZodNumber>;
706
729
  role: z.ZodOptional<z.ZodString>;
@@ -719,9 +742,6 @@ declare const UpdateChatSchema: z.ZodObject<{
719
742
  assistantChatModelConfig: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
720
743
  assistantRealtimeModelId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
721
744
  assistantRealtimeModelConfig: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
722
- paused: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
723
- muted: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
724
- needsResponse: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
725
745
  initialMessage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
726
746
  }, z.core.$strip>;
727
747
  declare const DeleteChatSchema: z.ZodObject<{
@@ -740,11 +760,13 @@ declare const UpdateChatMuteSchema: z.ZodObject<{
740
760
  wid: z.ZodString;
741
761
  chatId: z.ZodNumber;
742
762
  muted: z.ZodBoolean;
743
- }, z.core.$strip>;
744
- declare const UpdateChatNeedsResponseSchema: z.ZodObject<{
745
- wid: z.ZodString;
746
- chatId: z.ZodNumber;
747
- needsResponse: z.ZodBoolean;
763
+ muteReason: z.ZodOptional<z.ZodEnum<{
764
+ working: "working";
765
+ waiting_on_person: "waiting_on_person";
766
+ resolved_elsewhere: "resolved_elsewhere";
767
+ not_mine: "not_mine";
768
+ }>>;
769
+ muteExpiresOnInbound: z.ZodOptional<z.ZodBoolean>;
748
770
  }, z.core.$strip>;
749
771
  declare const GetChatsNeedsResponseSchema: z.ZodObject<{
750
772
  wid: z.ZodString;
@@ -805,7 +827,6 @@ declare const ChatSchema: z.ZodObject<{
805
827
  id: z.ZodNumber;
806
828
  archived: z.ZodBoolean;
807
829
  muted: z.ZodBoolean;
808
- needsResponse: z.ZodBoolean;
809
830
  channel: z.ZodEnum<{
810
831
  email: "email";
811
832
  routine: "routine";
@@ -864,10 +885,10 @@ declare const ChatSchema: z.ZodObject<{
864
885
  declare const ChatFilterRuleSchema: z.ZodObject<{
865
886
  objectType: z.ZodEnum<{
866
887
  title: "title";
888
+ owner: "owner";
867
889
  participant: "participant";
868
890
  mode: "mode";
869
891
  channel: "channel";
870
- owner: "owner";
871
892
  needsResponse: "needsResponse";
872
893
  paused: "paused";
873
894
  messageCount: "messageCount";
@@ -876,8 +897,8 @@ declare const ChatFilterRuleSchema: z.ZodObject<{
876
897
  filterType: z.ZodEnum<{
877
898
  any: "any";
878
899
  all: "all";
879
- active: "active";
880
900
  none: "none";
901
+ active: "active";
881
902
  partial: "partial";
882
903
  exact: "exact";
883
904
  equals: "equals";
@@ -890,10 +911,10 @@ declare const ChatFilterRuleSchema: z.ZodObject<{
890
911
  declare const ChatFilterRuleFormDataSchema: z.ZodObject<{
891
912
  objectType: z.ZodEnum<{
892
913
  title: "title";
914
+ owner: "owner";
893
915
  participant: "participant";
894
916
  mode: "mode";
895
917
  channel: "channel";
896
- owner: "owner";
897
918
  needsResponse: "needsResponse";
898
919
  paused: "paused";
899
920
  messageCount: "messageCount";
@@ -902,8 +923,8 @@ declare const ChatFilterRuleFormDataSchema: z.ZodObject<{
902
923
  filterType: z.ZodEnum<{
903
924
  any: "any";
904
925
  all: "all";
905
- active: "active";
906
926
  none: "none";
927
+ active: "active";
907
928
  partial: "partial";
908
929
  exact: "exact";
909
930
  equals: "equals";
@@ -1256,6 +1277,7 @@ type MessageRole = z.infer<typeof MessageRoleEnum>;
1256
1277
  type ChatFilterObjectType = z.infer<typeof ChatFilterObjectTypeEnum>;
1257
1278
  type ChatFilterFilterType = z.infer<typeof ChatFilterFilterTypeEnum>;
1258
1279
  type TruncationReason = z.infer<typeof TruncationReasonEnum>;
1280
+ type ChatMuteReasonValue = z.infer<typeof ChatMuteReasonEnum>;
1259
1281
  type MessageOrigin = z.infer<typeof MessageOriginEnum>;
1260
1282
  type MessageAudience = z.infer<typeof MessageAudienceEnum>;
1261
1283
  type ChatParticipantFormData = z.infer<typeof ChatParticipantFormDataSchema>;
@@ -1288,7 +1310,6 @@ type DeleteChatInput = z.infer<typeof DeleteChatSchema>;
1288
1310
  type ArchiveChatInput = z.infer<typeof ArchiveChatSchema>;
1289
1311
  type UnarchiveChatInput = z.infer<typeof UnarchiveChatSchema>;
1290
1312
  type UpdateChatMuteInput = z.infer<typeof UpdateChatMuteSchema>;
1291
- type UpdateChatNeedsResponseInput = z.infer<typeof UpdateChatNeedsResponseSchema>;
1292
1313
  type GetChatsNeedsResponseInput = z.infer<typeof GetChatsNeedsResponseSchema>;
1293
1314
  type GetChatMessagesInput = z.infer<typeof GetChatMessagesSchema>;
1294
1315
  type SendChatMessageInput = z.infer<typeof SendChatMessageSchema>;
@@ -1838,9 +1859,9 @@ declare const InboxRuleSchema: z.ZodObject<{
1838
1859
  }>;
1839
1860
  operator: z.ZodEnum<{
1840
1861
  equals: "equals";
1841
- contains: "contains";
1842
1862
  regex: "regex";
1843
1863
  ends_with: "ends_with";
1864
+ contains: "contains";
1844
1865
  ip_in_range: "ip_in_range";
1845
1866
  }>;
1846
1867
  value: z.ZodString;
@@ -1872,9 +1893,9 @@ declare const InboxRulesConfigSchema: z.ZodObject<{
1872
1893
  }>;
1873
1894
  operator: z.ZodEnum<{
1874
1895
  equals: "equals";
1875
- contains: "contains";
1876
1896
  regex: "regex";
1877
1897
  ends_with: "ends_with";
1898
+ contains: "contains";
1878
1899
  ip_in_range: "ip_in_range";
1879
1900
  }>;
1880
1901
  value: z.ZodString;
@@ -1886,9 +1907,9 @@ declare const InboxRulesConfigSchema: z.ZodObject<{
1886
1907
  }>;
1887
1908
  operator: z.ZodEnum<{
1888
1909
  equals: "equals";
1889
- contains: "contains";
1890
1910
  regex: "regex";
1891
1911
  ends_with: "ends_with";
1912
+ contains: "contains";
1892
1913
  ip_in_range: "ip_in_range";
1893
1914
  }>;
1894
1915
  value: z.ZodString;
@@ -1925,9 +1946,9 @@ declare const InboxFormDataSchema: z.ZodObject<{
1925
1946
  }>;
1926
1947
  operator: z.ZodEnum<{
1927
1948
  equals: "equals";
1928
- contains: "contains";
1929
1949
  regex: "regex";
1930
1950
  ends_with: "ends_with";
1951
+ contains: "contains";
1931
1952
  ip_in_range: "ip_in_range";
1932
1953
  }>;
1933
1954
  value: z.ZodString;
@@ -1939,9 +1960,9 @@ declare const InboxFormDataSchema: z.ZodObject<{
1939
1960
  }>;
1940
1961
  operator: z.ZodEnum<{
1941
1962
  equals: "equals";
1942
- contains: "contains";
1943
1963
  regex: "regex";
1944
1964
  ends_with: "ends_with";
1965
+ contains: "contains";
1945
1966
  ip_in_range: "ip_in_range";
1946
1967
  }>;
1947
1968
  value: z.ZodString;
@@ -1999,9 +2020,9 @@ declare const CreateInboxSchema: z.ZodObject<{
1999
2020
  }>;
2000
2021
  operator: z.ZodEnum<{
2001
2022
  equals: "equals";
2002
- contains: "contains";
2003
2023
  regex: "regex";
2004
2024
  ends_with: "ends_with";
2025
+ contains: "contains";
2005
2026
  ip_in_range: "ip_in_range";
2006
2027
  }>;
2007
2028
  value: z.ZodString;
@@ -2013,9 +2034,9 @@ declare const CreateInboxSchema: z.ZodObject<{
2013
2034
  }>;
2014
2035
  operator: z.ZodEnum<{
2015
2036
  equals: "equals";
2016
- contains: "contains";
2017
2037
  regex: "regex";
2018
2038
  ends_with: "ends_with";
2039
+ contains: "contains";
2019
2040
  ip_in_range: "ip_in_range";
2020
2041
  }>;
2021
2042
  value: z.ZodString;
@@ -2062,9 +2083,9 @@ declare const UpdateInboxSchema: z.ZodObject<{
2062
2083
  }>;
2063
2084
  operator: z.ZodEnum<{
2064
2085
  equals: "equals";
2065
- contains: "contains";
2066
2086
  regex: "regex";
2067
2087
  ends_with: "ends_with";
2088
+ contains: "contains";
2068
2089
  ip_in_range: "ip_in_range";
2069
2090
  }>;
2070
2091
  value: z.ZodString;
@@ -2076,9 +2097,9 @@ declare const UpdateInboxSchema: z.ZodObject<{
2076
2097
  }>;
2077
2098
  operator: z.ZodEnum<{
2078
2099
  equals: "equals";
2079
- contains: "contains";
2080
2100
  regex: "regex";
2081
2101
  ends_with: "ends_with";
2102
+ contains: "contains";
2082
2103
  ip_in_range: "ip_in_range";
2083
2104
  }>;
2084
2105
  value: z.ZodString;
@@ -3034,4 +3055,4 @@ declare function zodToMcpSchema(schema: any): any;
3034
3055
  */
3035
3056
  declare function createTool(name: string, description: string, schema: z.ZodSchema<any>): Tool;
3036
3057
 
3037
- 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, EMPTY_SCHEMA_SENSITIVITY, 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 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 };
3058
+ 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, ChatMuteReasonEnum, type ChatMuteReasonValue, 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, EMPTY_SCHEMA_SENSITIVITY, 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 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, 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-3HAV5XUJ.js";
11
+ } from "./chunk-HRUMZ46V.js";
12
12
 
13
13
  // src/schemas/accounts.ts
14
14
  import { z } from "zod";
@@ -542,6 +542,12 @@ var ChatFilterFilterTypeEnum = z4.enum([
542
542
  "onlyMine",
543
543
  "active"
544
544
  ]);
545
+ var ChatMuteReasonEnum = z4.enum([
546
+ "working",
547
+ "waiting_on_person",
548
+ "resolved_elsewhere",
549
+ "not_mine"
550
+ ]);
545
551
  var TruncationReasonEnum = z4.enum([
546
552
  "barge_in",
547
553
  // User interrupted the assistant mid-response (voice)
@@ -616,6 +622,8 @@ var ChatFormDataSchema = z4.object({
616
622
  workflowRevisionUuid: z4.string().nullable().optional(),
617
623
  phoneNumberId: z4.number().nullable().optional(),
618
624
  siteId: z4.number().nullable().optional(),
625
+ browserChannel: z4.enum(["web-chat", "web-voice"]).nullable().optional(),
626
+ interactionMode: z4.enum(["text", "push_to_talk", "realtime"]).nullable().optional(),
619
627
  memberId: z4.number().nullable().optional(),
620
628
  participants: z4.array(ChatParticipantFormDataSchema),
621
629
  // Who answers. The explicit successor to `agentEnabled` — see ChatFormData.
@@ -637,7 +645,6 @@ var ChatFormDataSchema = z4.object({
637
645
  assistantRealtimeModelConfig: z4.record(z4.string(), z4.unknown()).nullable().optional(),
638
646
  paused: z4.boolean().optional(),
639
647
  muted: z4.boolean().optional(),
640
- needsResponse: z4.boolean().optional(),
641
648
  // Human-typed initial SMS/email body. Optional, request-body only.
642
649
  // Backend dispatches via the existing initial-message path when the
643
650
  // Agent is disabled. Treat as PHI client-side.
@@ -662,7 +669,14 @@ var GetChatSchema = WorkspaceIdSchema.extend({
662
669
  var CreateChatSchema = WorkspaceIdSchema.merge(ChatFormDataSchema);
663
670
  var UpdateChatSchema = WorkspaceIdSchema.extend({
664
671
  chatId: z4.number().describe("Chat ID")
665
- }).merge(ChatFormDataSchema.partial());
672
+ // `muted` is deliberately absent: the generic update endpoint does not
673
+ // carry mute state at all (GRA-8353 — a mute without a reason mints
674
+ // exactly the anonymous state the reason vocabulary exists to prevent),
675
+ // so its request model forbids the field. Mute state goes through the
676
+ // dedicated mute schema below, the only writer of the decision fields.
677
+ }).merge(
678
+ ChatFormDataSchema.omit({ browserChannel: true, interactionMode: true, muted: true }).partial()
679
+ );
666
680
  var DeleteChatSchema = WorkspaceIdSchema.extend({
667
681
  chatId: z4.number().describe("Chat ID to delete")
668
682
  });
@@ -674,11 +688,23 @@ var UnarchiveChatSchema = WorkspaceIdSchema.extend({
674
688
  });
675
689
  var UpdateChatMuteSchema = WorkspaceIdSchema.extend({
676
690
  chatId: z4.number().describe("Chat ID"),
677
- muted: z4.boolean().describe("Mute status")
678
- });
679
- var UpdateChatNeedsResponseSchema = WorkspaceIdSchema.extend({
680
- chatId: z4.number().describe("Chat ID"),
681
- needsResponse: z4.boolean().describe("Needs response status")
691
+ muted: z4.boolean().describe("Mute status"),
692
+ muteReason: ChatMuteReasonEnum.optional().describe(
693
+ "Why the chat is muted (required when muting)"
694
+ ),
695
+ muteExpiresOnInbound: z4.boolean().optional().describe("Lapse the mute when the member sends a new inbound message")
696
+ // Runtime mirror of the backend request model's validator
697
+ // (`UpdateChatMuteRequest._muting_requires_reason`): muting without a
698
+ // reason is a 422 at the API, so it is a parse failure here — a bare
699
+ // boolean cannot reach the endpoint as an anonymous mute.
700
+ }).superRefine((data, ctx) => {
701
+ if (data.muted && data.muteReason === void 0) {
702
+ ctx.addIssue({
703
+ code: z4.ZodIssueCode.custom,
704
+ path: ["muteReason"],
705
+ message: "Muting a chat requires a muteReason from the closed vocabulary: working, waiting_on_person, resolved_elsewhere, not_mine."
706
+ });
707
+ }
682
708
  });
683
709
  var GetChatsNeedsResponseSchema = WorkspaceIdSchema;
684
710
  var GetChatMessagesSchema = WorkspaceIdSchema.extend({
@@ -739,7 +765,6 @@ var ChatSchema = z4.object({
739
765
  id: z4.number(),
740
766
  archived: z4.boolean(),
741
767
  muted: z4.boolean(),
742
- needsResponse: z4.boolean(),
743
768
  channel: ChannelEnum,
744
769
  chatType: z4.string(),
745
770
  paused: z4.boolean(),
@@ -1935,6 +1960,7 @@ export {
1935
1960
  ChatMessageObjectSchema,
1936
1961
  ChatMessageSchema,
1937
1962
  ChatMessageUISchema,
1963
+ ChatMuteReasonEnum,
1938
1964
  ChatParticipantFormDataSchema,
1939
1965
  ChatSchema,
1940
1966
  CheckAvailabilitySchema,
@@ -2124,7 +2150,6 @@ export {
2124
2150
  UpdateCalendarEventSchema,
2125
2151
  UpdateCalendarSchema,
2126
2152
  UpdateChatMuteSchema,
2127
- UpdateChatNeedsResponseSchema,
2128
2153
  UpdateChatSchema,
2129
2154
  UpdateCurrentMemberSchema,
2130
2155
  UpdateDataFieldSchema,