@gravity-rail/sdk 10.0.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -32
- package/dist/{account-DEA-f-I9.d.cts → account-D4dzqsFS.d.cts} +0 -2
- package/dist/{account-DEA-f-I9.d.ts → account-D4dzqsFS.d.ts} +0 -2
- package/dist/{agent_team-Baa7AvKF.d.ts → bot_team-BEgHb3ol.d.ts} +163 -149
- package/dist/{agent_team-EdLmOQDL.d.cts → bot_team-C5AAy5t7.d.cts} +163 -149
- package/dist/{chunk-MWTQXZGB.js → chunk-3X5E3PWB.js} +1 -1
- package/dist/chunk-3X5E3PWB.js.map +1 -0
- package/dist/{chunk-XTB2HFSI.js → chunk-5DZ53RQ5.js} +190 -245
- package/dist/chunk-5DZ53RQ5.js.map +1 -0
- package/dist/{client-Cb9pM31S.d.cts → client-5uu0OE60.d.ts} +684 -976
- package/dist/{client-BaF3v-ux.d.ts → client-Bhqh4jc_.d.cts} +684 -976
- package/dist/helpers.d.cts +3 -3
- package/dist/helpers.d.ts +3 -3
- package/dist/index.cjs +205 -258
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -8
- package/dist/index.d.ts +11 -8
- package/dist/index.js +18 -17
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +198 -245
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +124 -66
- package/dist/internal.d.ts +124 -66
- package/dist/internal.js +10 -4
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-Bq_eC7gx.d.ts → member-import-BqEl0RkU.d.ts} +2 -2
- package/dist/{member-import-_zu58M9w.d.cts → member-import-LgqWctZq.d.cts} +2 -2
- package/dist/realtime.cjs +25 -11
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +28 -9
- package/dist/realtime.d.ts +28 -9
- package/dist/realtime.js +23 -10
- package/dist/realtime.js.map +1 -1
- package/dist/schemas.cjs +8 -66
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +15 -90
- package/dist/schemas.d.ts +15 -90
- package/dist/schemas.js +9 -59
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-DssYoZDt.d.ts → tasks-D1YbBzy6.d.cts} +50 -91
- package/dist/{tasks-yScacy3c.d.cts → tasks-DZ1IFEms.d.ts} +50 -91
- package/package.json +1 -1
- package/dist/chunk-MWTQXZGB.js.map +0 -1
- package/dist/chunk-XTB2HFSI.js.map +0 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { b as DataFieldType, aN as DataTypeRecordScope, aJ as DataSensitivity, av as DataCategory, bu as IndexStatus,
|
|
2
|
+
import { b as DataFieldType, aN as DataTypeRecordScope, aJ as DataSensitivity, av as DataCategory, bu as IndexStatus, fK as TipTapDocumentInput } from './tasks-DZ1IFEms.js';
|
|
3
3
|
import { CalendarScheduleAvailabilityType, CalendarScheduleRecurrence, CalendarEventStatus, AttendeeResponseStatus } from './index.js';
|
|
4
|
-
export {
|
|
4
|
+
export { fV as AbilityData, fW as AbilityDataSchema, fX as AnonymousInquiryFormSchema, fY as ArchiveTaskInput, fZ as ArchiveTaskSchema, f_ as ChatTaskConfigurationPatchSchema, f$ as ChildTaskFormData, g0 as ChildTaskFormDataSchema, g1 as CreateInquiryInput, fN as CreateInquirySchema, g2 as CreateTaskInput, g3 as CreateTaskSchema, g4 as DeleteInquiryInput, g5 as DeleteInquirySchema, g6 as DeleteTaskInput, g7 as DeleteTaskSchema, g8 as EnrichInquiryInput, g9 as EnrichInquirySchema, ga as GetInquiryInput, gb as GetInquirySchema, gc as GetTaskInput, gd as GetTaskSchema, ge as ListInquiriesInput, gf as ListInquiriesSchema, gg as ListTasksInput, gh as ListTasksSchema, gi as OutcomeTaskRoutingSchema, gj as TaskFormData, gk as TaskFormDataSchema, gl as UnarchiveTaskInput, gm as UnarchiveTaskSchema, gn as UpdateInquiryInput, fO as UpdateInquiryRequestSchema, go as UpdateInquirySchema, gp as UpdateTaskInput, gq as UpdateTaskSchema } from './tasks-DZ1IFEms.js';
|
|
5
5
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
6
|
-
import './account-
|
|
6
|
+
import './account-D4dzqsFS.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* What a data type with no schema fields derives.
|
|
@@ -743,16 +743,12 @@ declare const UpdateOrganizationRequestSchema: z.ZodObject<{
|
|
|
743
743
|
declare const AdminAccountMembershipSchema: z.ZodObject<{
|
|
744
744
|
workspaceUuid: z.ZodString;
|
|
745
745
|
workspaceName: z.ZodString;
|
|
746
|
-
role: z.ZodString;
|
|
747
746
|
createdAt: z.ZodString;
|
|
748
747
|
tosAccepted: z.ZodBoolean;
|
|
749
|
-
memberRoleId: z.ZodNullable<z.ZodNumber>;
|
|
750
748
|
memberId: z.ZodNumber;
|
|
751
749
|
}, z.core.$strip>;
|
|
752
750
|
declare const AdminWorkspaceMemberFormDataSchema: z.ZodObject<{
|
|
753
751
|
tosAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
754
|
-
role: z.ZodOptional<z.ZodString>;
|
|
755
|
-
memberRoleId: z.ZodOptional<z.ZodNumber>;
|
|
756
752
|
}, z.core.$strip>;
|
|
757
753
|
declare const AccountReportItemSchema: z.ZodObject<{
|
|
758
754
|
id: z.ZodNumber;
|
|
@@ -1252,6 +1248,7 @@ declare const ChatFormDataSchema: z.ZodObject<{
|
|
|
1252
1248
|
userMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1253
1249
|
agentEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1254
1250
|
assistantMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1251
|
+
assistantTeammateId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1255
1252
|
assistantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1256
1253
|
assistantChatModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1257
1254
|
assistantChatModelConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -1339,6 +1336,7 @@ declare const CreateChatSchema: z.ZodObject<{
|
|
|
1339
1336
|
userMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1340
1337
|
agentEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1341
1338
|
assistantMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1339
|
+
assistantTeammateId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1342
1340
|
assistantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1343
1341
|
assistantChatModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1344
1342
|
assistantChatModelConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -2663,7 +2661,6 @@ declare const CreateWorkspaceMemberRequestSchema: z.ZodObject<{
|
|
|
2663
2661
|
description: z.ZodOptional<z.ZodString>;
|
|
2664
2662
|
externalId: z.ZodOptional<z.ZodString>;
|
|
2665
2663
|
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
2666
|
-
memberRoleId: z.ZodNumber;
|
|
2667
2664
|
notifySms: z.ZodOptional<z.ZodBoolean>;
|
|
2668
2665
|
notifyEmail: z.ZodOptional<z.ZodBoolean>;
|
|
2669
2666
|
notifyVoice: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2687,7 +2684,6 @@ declare const UpdateWorkspaceMemberRequestSchema: z.ZodObject<{
|
|
|
2687
2684
|
email: z.ZodOptional<z.ZodString>;
|
|
2688
2685
|
externalId: z.ZodOptional<z.ZodString>;
|
|
2689
2686
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2690
|
-
memberRoleId: z.ZodOptional<z.ZodNumber>;
|
|
2691
2687
|
labelIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
2692
2688
|
notifySms: z.ZodOptional<z.ZodBoolean>;
|
|
2693
2689
|
notifyEmail: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2705,7 +2701,6 @@ declare const UpdateWorkspaceMemberRequestSchema: z.ZodObject<{
|
|
|
2705
2701
|
}, z.core.$strip>;
|
|
2706
2702
|
declare const MemberFormDataSchema: z.ZodObject<{
|
|
2707
2703
|
tosAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
2708
|
-
memberRoleId: z.ZodOptional<z.ZodNumber>;
|
|
2709
2704
|
notifySms: z.ZodOptional<z.ZodBoolean>;
|
|
2710
2705
|
notifyEmail: z.ZodOptional<z.ZodBoolean>;
|
|
2711
2706
|
notifyVoice: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2719,19 +2714,6 @@ declare const MemberFormDataSchema: z.ZodObject<{
|
|
|
2719
2714
|
externalId: z.ZodOptional<z.ZodString>;
|
|
2720
2715
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2721
2716
|
}, z.core.$strip>;
|
|
2722
|
-
declare const MemberRoleTaskAccessSchema: z.ZodObject<{
|
|
2723
|
-
taskId: z.ZodNumber;
|
|
2724
|
-
accessMode: z.ZodNumber;
|
|
2725
|
-
}, z.core.$strip>;
|
|
2726
|
-
declare const MemberRoleFormDataSchema: z.ZodObject<{
|
|
2727
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2728
|
-
dailyCreditLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2729
|
-
taskAccess: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2730
|
-
taskId: z.ZodNumber;
|
|
2731
|
-
accessMode: z.ZodNumber;
|
|
2732
|
-
}, z.core.$strip>>>;
|
|
2733
|
-
siteAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2734
|
-
}, z.core.$strip>;
|
|
2735
2717
|
declare const GetCurrentMemberSchema: z.ZodObject<{
|
|
2736
2718
|
wid: z.ZodString;
|
|
2737
2719
|
}, z.core.$strip>;
|
|
@@ -2749,7 +2731,6 @@ declare const ListWorkspaceMembersSchema: z.ZodObject<{
|
|
|
2749
2731
|
query: z.ZodOptional<z.ZodString>;
|
|
2750
2732
|
page: z.ZodOptional<z.ZodNumber>;
|
|
2751
2733
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
2752
|
-
role: z.ZodOptional<z.ZodString>;
|
|
2753
2734
|
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
2754
2735
|
email: "email";
|
|
2755
2736
|
name: "name";
|
|
@@ -2779,7 +2760,6 @@ declare const AddWorkspaceMemberSchema: z.ZodObject<{
|
|
|
2779
2760
|
description: z.ZodOptional<z.ZodString>;
|
|
2780
2761
|
externalId: z.ZodOptional<z.ZodString>;
|
|
2781
2762
|
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
2782
|
-
memberRoleId: z.ZodNumber;
|
|
2783
2763
|
notifySms: z.ZodOptional<z.ZodBoolean>;
|
|
2784
2764
|
notifyEmail: z.ZodOptional<z.ZodBoolean>;
|
|
2785
2765
|
notifyVoice: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2805,7 +2785,6 @@ declare const UpdateWorkspaceMemberSchema: z.ZodObject<{
|
|
|
2805
2785
|
email: z.ZodOptional<z.ZodString>;
|
|
2806
2786
|
externalId: z.ZodOptional<z.ZodString>;
|
|
2807
2787
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2808
|
-
memberRoleId: z.ZodOptional<z.ZodNumber>;
|
|
2809
2788
|
labelIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
2810
2789
|
notifySms: z.ZodOptional<z.ZodBoolean>;
|
|
2811
2790
|
notifyEmail: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2831,38 +2810,6 @@ declare const SendSmsToMemberSchema: z.ZodObject<{
|
|
|
2831
2810
|
message: z.ZodString;
|
|
2832
2811
|
phoneNumberId: z.ZodOptional<z.ZodNumber>;
|
|
2833
2812
|
}, z.core.$strip>;
|
|
2834
|
-
declare const ListMemberRolesSchema: z.ZodObject<{
|
|
2835
|
-
wid: z.ZodString;
|
|
2836
|
-
}, z.core.$strip>;
|
|
2837
|
-
declare const GetMemberRoleSchema: z.ZodObject<{
|
|
2838
|
-
wid: z.ZodString;
|
|
2839
|
-
memberRoleId: z.ZodNumber;
|
|
2840
|
-
}, z.core.$strip>;
|
|
2841
|
-
declare const CreateMemberRoleSchema: z.ZodObject<{
|
|
2842
|
-
wid: z.ZodString;
|
|
2843
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2844
|
-
dailyCreditLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2845
|
-
taskAccess: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2846
|
-
taskId: z.ZodNumber;
|
|
2847
|
-
accessMode: z.ZodNumber;
|
|
2848
|
-
}, z.core.$strip>>>;
|
|
2849
|
-
siteAudience: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2850
|
-
}, z.core.$strip>;
|
|
2851
|
-
declare const UpdateMemberRoleSchema: z.ZodObject<{
|
|
2852
|
-
wid: z.ZodString;
|
|
2853
|
-
memberRoleId: z.ZodNumber;
|
|
2854
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2855
|
-
dailyCreditLimit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
2856
|
-
taskAccess: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2857
|
-
taskId: z.ZodNumber;
|
|
2858
|
-
accessMode: z.ZodNumber;
|
|
2859
|
-
}, z.core.$strip>>>>;
|
|
2860
|
-
siteAudience: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2861
|
-
}, z.core.$strip>;
|
|
2862
|
-
declare const DeleteMemberRoleSchema: z.ZodObject<{
|
|
2863
|
-
wid: z.ZodString;
|
|
2864
|
-
memberRoleId: z.ZodNumber;
|
|
2865
|
-
}, z.core.$strip>;
|
|
2866
2813
|
declare const MemberLabelSchema: z.ZodObject<{
|
|
2867
2814
|
id: z.ZodNumber;
|
|
2868
2815
|
uuid: z.ZodString;
|
|
@@ -2891,22 +2838,9 @@ declare const MemberFilterFormDataSchema: z.ZodObject<{
|
|
|
2891
2838
|
description: z.ZodOptional<z.ZodString>;
|
|
2892
2839
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
2893
2840
|
}, z.core.$strip>;
|
|
2894
|
-
declare const MemberRoleSchema: z.ZodObject<{
|
|
2895
|
-
id: z.ZodNumber;
|
|
2896
|
-
name: z.ZodString;
|
|
2897
|
-
dailyCreditLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2898
|
-
taskAccess: z.ZodArray<z.ZodObject<{
|
|
2899
|
-
taskId: z.ZodNumber;
|
|
2900
|
-
accessMode: z.ZodNumber;
|
|
2901
|
-
}, z.core.$strip>>;
|
|
2902
|
-
siteAudience: z.ZodArray<z.ZodString>;
|
|
2903
|
-
createdAt: z.ZodString;
|
|
2904
|
-
updatedAt: z.ZodString;
|
|
2905
|
-
}, z.core.$strip>;
|
|
2906
2841
|
declare const MemberSchema: z.ZodObject<{
|
|
2907
2842
|
id: z.ZodNumber;
|
|
2908
2843
|
accountUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2909
|
-
memberRoleId: z.ZodNumber;
|
|
2910
2844
|
name: z.ZodOptional<z.ZodString>;
|
|
2911
2845
|
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2912
2846
|
middleName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2919,7 +2853,6 @@ declare const MemberSchema: z.ZodObject<{
|
|
|
2919
2853
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2920
2854
|
tosAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
2921
2855
|
accountTosAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
2922
|
-
memberRoleName: z.ZodOptional<z.ZodString>;
|
|
2923
2856
|
notifySms: z.ZodOptional<z.ZodBoolean>;
|
|
2924
2857
|
notifyEmail: z.ZodOptional<z.ZodBoolean>;
|
|
2925
2858
|
notifyVoice: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2950,9 +2883,6 @@ type MemberLabel = z.infer<typeof MemberLabelSchema>;
|
|
|
2950
2883
|
type MemberLabelFormData = z.infer<typeof MemberLabelFormDataSchema>;
|
|
2951
2884
|
type MemberFilter = z.infer<typeof MemberFilterSchema>;
|
|
2952
2885
|
type MemberFilterFormData = z.infer<typeof MemberFilterFormDataSchema>;
|
|
2953
|
-
type MemberRoleTaskAccess = z.infer<typeof MemberRoleTaskAccessSchema>;
|
|
2954
|
-
type MemberRole = z.infer<typeof MemberRoleSchema>;
|
|
2955
|
-
type MemberRoleFormData = z.infer<typeof MemberRoleFormDataSchema>;
|
|
2956
2886
|
type Member = z.infer<typeof MemberSchema>;
|
|
2957
2887
|
type MemberFormData = z.infer<typeof MemberFormDataSchema>;
|
|
2958
2888
|
type CreateWorkspaceMemberRequest = z.infer<typeof CreateWorkspaceMemberRequestSchema>;
|
|
@@ -2965,14 +2895,10 @@ type AddWorkspaceMemberInput = z.infer<typeof AddWorkspaceMemberSchema>;
|
|
|
2965
2895
|
type UpdateWorkspaceMemberInput = z.infer<typeof UpdateWorkspaceMemberSchema>;
|
|
2966
2896
|
type RemoveWorkspaceMemberInput = z.infer<typeof RemoveWorkspaceMemberSchema>;
|
|
2967
2897
|
type SendSmsToMemberInput = z.infer<typeof SendSmsToMemberSchema>;
|
|
2968
|
-
type ListMemberRolesInput = z.infer<typeof ListMemberRolesSchema>;
|
|
2969
|
-
type GetMemberRoleInput = z.infer<typeof GetMemberRoleSchema>;
|
|
2970
|
-
type CreateMemberRoleInput = z.infer<typeof CreateMemberRoleSchema>;
|
|
2971
|
-
type UpdateMemberRoleInput = z.infer<typeof UpdateMemberRoleSchema>;
|
|
2972
|
-
type DeleteMemberRoleInput = z.infer<typeof DeleteMemberRoleSchema>;
|
|
2973
2898
|
|
|
2974
2899
|
declare const PhoneNumberFormDataSchema: z.ZodObject<{
|
|
2975
2900
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2901
|
+
directTeammateId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2976
2902
|
directMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2977
2903
|
enableSms: z.ZodOptional<z.ZodBoolean>;
|
|
2978
2904
|
enableVoice: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2994,6 +2920,7 @@ declare const GetPhoneNumberSchema: z.ZodObject<{
|
|
|
2994
2920
|
declare const CreatePhoneNumberSchema: z.ZodObject<{
|
|
2995
2921
|
wid: z.ZodString;
|
|
2996
2922
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2923
|
+
directTeammateId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2997
2924
|
directMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2998
2925
|
enableSms: z.ZodOptional<z.ZodBoolean>;
|
|
2999
2926
|
enableVoice: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3009,6 +2936,7 @@ declare const UpdatePhoneNumberSchema: z.ZodObject<{
|
|
|
3009
2936
|
wid: z.ZodString;
|
|
3010
2937
|
phoneNumberId: z.ZodNumber;
|
|
3011
2938
|
name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
2939
|
+
directTeammateId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
3012
2940
|
directMemberId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
3013
2941
|
enableSms: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3014
2942
|
enableVoice: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -3065,7 +2993,6 @@ declare const SiteFormDataSchema: z.ZodObject<{
|
|
|
3065
2993
|
customDomain: z.ZodOptional<z.ZodString>;
|
|
3066
2994
|
redirectUrl: z.ZodOptional<z.ZodString>;
|
|
3067
2995
|
allowSignup: z.ZodOptional<z.ZodBoolean>;
|
|
3068
|
-
signupMemberRoleId: z.ZodOptional<z.ZodNumber>;
|
|
3069
2996
|
content: z.ZodOptional<z.ZodString>;
|
|
3070
2997
|
isReseller: z.ZodOptional<z.ZodBoolean>;
|
|
3071
2998
|
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3125,7 +3052,6 @@ declare const CreateSiteSchema: z.ZodObject<{
|
|
|
3125
3052
|
customDomain: z.ZodOptional<z.ZodString>;
|
|
3126
3053
|
redirectUrl: z.ZodOptional<z.ZodString>;
|
|
3127
3054
|
allowSignup: z.ZodOptional<z.ZodBoolean>;
|
|
3128
|
-
signupMemberRoleId: z.ZodOptional<z.ZodNumber>;
|
|
3129
3055
|
content: z.ZodOptional<z.ZodString>;
|
|
3130
3056
|
isReseller: z.ZodOptional<z.ZodBoolean>;
|
|
3131
3057
|
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3151,7 +3077,6 @@ declare const UpdateSiteSchema: z.ZodObject<{
|
|
|
3151
3077
|
customDomain: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3152
3078
|
redirectUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3153
3079
|
allowSignup: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3154
|
-
signupMemberRoleId: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
3155
3080
|
content: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3156
3081
|
isReseller: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3157
3082
|
isPublic: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -3348,7 +3273,7 @@ declare const WorkflowCreateFormDataSchema: z.ZodObject<{
|
|
|
3348
3273
|
manualToolCondition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3349
3274
|
}, z.core.$strict>>>;
|
|
3350
3275
|
escalationRouting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3351
|
-
|
|
3276
|
+
priorityTeammateIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3352
3277
|
operatorGroupIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3353
3278
|
}, z.core.$strict>>>;
|
|
3354
3279
|
agentBehavior: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -3429,7 +3354,7 @@ declare const WorkflowFormDataSchema: z.ZodObject<{
|
|
|
3429
3354
|
manualToolCondition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3430
3355
|
}, z.core.$strict>>>;
|
|
3431
3356
|
escalationRouting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3432
|
-
|
|
3357
|
+
priorityTeammateIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3433
3358
|
operatorGroupIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3434
3359
|
}, z.core.$strict>>>;
|
|
3435
3360
|
agentBehavior: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -3506,7 +3431,7 @@ declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
3506
3431
|
manualToolCondition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3507
3432
|
}, z.core.$strict>>>;
|
|
3508
3433
|
escalationRouting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3509
|
-
|
|
3434
|
+
priorityTeammateIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3510
3435
|
operatorGroupIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3511
3436
|
}, z.core.$strict>>>;
|
|
3512
3437
|
agentBehavior: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -3572,7 +3497,7 @@ declare const UpdateWorkflowSchema: z.ZodObject<{
|
|
|
3572
3497
|
manualToolCondition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3573
3498
|
}, z.core.$strict>>>>;
|
|
3574
3499
|
escalationRouting: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3575
|
-
|
|
3500
|
+
priorityTeammateIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3576
3501
|
operatorGroupIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3577
3502
|
}, z.core.$strict>>>>;
|
|
3578
3503
|
agentBehavior: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -3658,7 +3583,7 @@ declare const WorkflowEscalationPolicySchema: z.ZodObject<{
|
|
|
3658
3583
|
manualToolCondition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3659
3584
|
}, z.core.$strict>;
|
|
3660
3585
|
declare const WorkflowEscalationRoutingSchema: z.ZodObject<{
|
|
3661
|
-
|
|
3586
|
+
priorityTeammateIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3662
3587
|
operatorGroupIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3663
3588
|
}, z.core.$strict>;
|
|
3664
3589
|
|
|
@@ -3745,5 +3670,5 @@ declare const PublicDemoFormRequestSchema: z.ZodObject<{
|
|
|
3745
3670
|
fieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3746
3671
|
}, z.core.$strict>;
|
|
3747
3672
|
|
|
3748
|
-
export { AccountFormDataSchema, AccountReportItemSchema, AccountSchema, AddDataFieldSchema, AddWorkspaceMemberSchema, AdminAccountFormDataSchema, AdminAccountMembershipSchema, AdminOrganizationSchema, AdminWorkspaceMemberFormDataSchema, ApiKeyCreatedSchema, ApiKeyFormDataSchema, ApiKeySchema, ApiKeyScopeSchema, ApiKeyScopesResponseSchema, ArchiveChatSchema, ArchivePhoneNumberSchema, AssistantChatParticipantSchema, CallActivityLabelSchema, CancelCalendarEventSchema, ChannelEnum, ChatCompletionMessageSchema, ChatFilterFilterTypeEnum, ChatFilterObjectTypeEnum, ChatFilterRuleFormDataSchema, ChatFilterRuleSchema, ChatFiltersSchema, ChatFormDataSchema, ChatMessageAPIResponseSchema, ChatMessageChunkSchema, ChatMessageObjectSchema, ChatMessageSchema, ChatMessageUISchema, ChatMuteReasonEnum, ChatParticipantFormDataSchema, ChatSchema, CheckAvailabilitySchema, CloneWorkflowSchema, ContributorChatParticipantSchema, CreateAccountSchema, CreateCalendarEventSchema, CreateCalendarSchema, CreateChatCompletionSchema, CreateChatForWorkflowSchema, CreateChatSchema, CreateDataRecordSchema, CreateDataTypeSchema, CreateEventTypeSchema, CreateInboxSchema,
|
|
3749
|
-
export type { Account, AccountFormData, AccountReportItem, AddDataFieldInput, AddWorkspaceMemberInput, AdminAccountFormData, AdminAccountMembership, AdminOrganization, AdminWorkspaceMemberFormData, ApiKey, ApiKeyCreated, ApiKeyFormData, ApiKeyScope, ApiKeyScopesResponse, ArchiveChatInput, ArchivePhoneNumberInput, AssistantChatParticipant, CancelCalendarEventInput, Channel, Chat, ChatCompletionMessage, ChatFilterFilterType, ChatFilterObjectType, ChatFilterRule, ChatFilterRuleFormData, ChatFormData, ChatMessage, ChatMessageAPIResponse, ChatMessageChunk, ChatMessageObject, ChatMessageUI, ChatMuteReasonValue, ChatParticipantFormData, CheckAvailabilityInput, CloneWorkflowInput, ContributorChatParticipant, CreateAccountInput, CreateCalendarEventInput, CreateCalendarInput, CreateChatCompletionInput, CreateChatForWorkflowInput, CreateChatInput, CreateDataRecordInput, CreateDataTypeInput, CreateEventTypeInput, CreateInboxInput,
|
|
3673
|
+
export { AccountFormDataSchema, AccountReportItemSchema, AccountSchema, AddDataFieldSchema, AddWorkspaceMemberSchema, AdminAccountFormDataSchema, AdminAccountMembershipSchema, AdminOrganizationSchema, AdminWorkspaceMemberFormDataSchema, ApiKeyCreatedSchema, ApiKeyFormDataSchema, ApiKeySchema, ApiKeyScopeSchema, ApiKeyScopesResponseSchema, ArchiveChatSchema, ArchivePhoneNumberSchema, AssistantChatParticipantSchema, CallActivityLabelSchema, CancelCalendarEventSchema, ChannelEnum, ChatCompletionMessageSchema, ChatFilterFilterTypeEnum, ChatFilterObjectTypeEnum, ChatFilterRuleFormDataSchema, ChatFilterRuleSchema, ChatFiltersSchema, ChatFormDataSchema, ChatMessageAPIResponseSchema, ChatMessageChunkSchema, ChatMessageObjectSchema, ChatMessageSchema, ChatMessageUISchema, ChatMuteReasonEnum, ChatParticipantFormDataSchema, ChatSchema, CheckAvailabilitySchema, CloneWorkflowSchema, ContributorChatParticipantSchema, CreateAccountSchema, CreateCalendarEventSchema, CreateCalendarSchema, CreateChatCompletionSchema, CreateChatForWorkflowSchema, CreateChatSchema, CreateDataRecordSchema, CreateDataTypeSchema, CreateEventTypeSchema, CreateInboxSchema, CreateMenuItemSchema, CreateOrganizationRequestSchema, CreatePhoneNumberSchema, CreateScheduleSchema, CreateSitePageSchema, CreateSiteSchema, CreateWorkflowSchema, CreateWorkspaceMemberRequestSchema, CreateWorkspaceSchema, DataCategory, DataFieldFormDataSchema, DataFieldSchema, DataFieldType, DataIntegrityReportItemSchema, DataRecordAssociationFormDataSchema, DataRecordFiltersSchema, DataRecordFormDataSchema, DataRecordReportItemSchema, DataRecordRetirementSchema, DataRecordSchema, DataRecordWithAccessModeSchema, DataRecordsPaginatedResponseSchema, DataSensitivity, DataTypeExportItemSchema, DataTypeFormDataSchema, DataTypeRecordScope, DataTypeSchema, DeleteCalendarEventSchema, DeleteCalendarSchema, DeleteChatSchema, DeleteDataRecordSchema, DeleteDataTypeSchema, DeleteEventTypeSchema, DeleteInboxSchema, DeleteMenuItemSchema, DeleteScheduleSchema, DeleteSitePageSchema, DeleteSiteSchema, DeleteWorkflowSchema, DeleteWorkspaceSchema, DuplicateAccountInfoSchema, EMPTY_SCHEMA_SENSITIVITY, ErrorResponseSchema, FunctionToolSchema, GenerateICalTokenSchema, GetAvailableSlotsSchema, GetAvailableWorkspaceFeaturesSchema, GetCalendarEventSchema, GetCalendarSchema, GetChatMessagesSchema, GetChatSchema, GetChatsNeedsResponseSchema, GetCurrentMemberSchema, GetDataRecordSchema, GetDataTypeBySlugSchema, GetDataTypeSchema, GetEventTypeSchema, GetFieldIndexStatusSchema, GetICalUrlSchema, GetInboxEmailSchema, GetInboxSchema, GetPhoneNumberSchema, GetProductSchema, GetProductsSchema, GetRecentInboxMessagesSchema, GetRecentSmsMessagesSchema, GetResellerWorkspacesSchema, GetSiteCountsSchema, GetSiteMenuSchema, GetSitePageBySlugSchema, GetSitePageSchema, GetSiteSchema, GetWorkflowSchema, GetWorkspaceDefaultsSchema, GetWorkspaceMemberSchema, GetWorkspaceSchema, HumanChatParticipantSchema, ImageUrlContentSchema, InboxEmailFiltersSchema, InboxFormDataSchema, InboxRuleSchema, InboxRulesConfigSchema, IndexStatus, InitiateOutboundCallSchema, KnowledgeEntrySchema, ListCalendarEventsSchema, ListCalendarsSchema, ListChatsSchema, ListDataRecordsSchema, ListDataTypesSchema, ListEventTypesSchema, ListInboxEmailsSchema, ListInboxesSchema, ListMenuItemsSchema, ListPhoneCallsSchema, ListPhoneNumbersSchema, ListPhoneSmsMessagesSchema, ListSchedulesSchema, ListSitePagesSchema, ListSitesSchema, ListWorkflowsSchema, ListWorkspaceMembersSchema, ListWorkspacesSchema, LoginRequestSchema, LoginResponseSchema, MarkEmailReadSchema, MarkEmailUnreadSchema, MemberFilterFormDataSchema, MemberFilterSchema, MemberFormDataSchema, MemberLabelFormDataSchema, MemberLabelSchema, MemberSchema, MenuItemFormDataSchema, MessageAudienceEnum, MessageContentPartSchema, MessageOriginEnum, MessageRoleEnum, MissingMembershipItemSchema, OrganizationSchema, PhoneNumberFormDataSchema, PublicDemoFormRequestSchema, PublicDemoMessageRequestSchema, RateLimitAllowlistEntrySchema, RateLimitOverrideSchema, RateMessageSchema, RecordAccessScopeSchema, RemoveDataFieldSchema, RemoveWorkspaceMemberSchema, ReorderMenuItemsRequestSchema, ReorderMenuItemsSchema, RevokeICalTokenSchema, SMSLoginResponseSchema, SchemaFieldFormDataSchema, SchemaFieldSchema, SendAssistantMessageSchema, SendChatMessageSchema, SendSmsToMemberSchema, SiteFormDataSchema, SitePageFormDataSchema, StartPublicDemoRequestSchema, SupervisorChatParticipantSchema, TaskExportDataTypeRelationSchema, TextContentSchema, ToggleFieldIndexSchema, ToolCallFunctionSchema, ToolCallSchema, ToolResultSchema, TruncationReasonEnum, UnarchiveChatSchema, UpdateAttendeeResponseSchema, UpdateCalendarEventSchema, UpdateCalendarSchema, UpdateChatMuteSchema, UpdateChatSchema, UpdateCurrentMemberSchema, UpdateDataFieldSchema, UpdateDataRecordSchema, UpdateDataTypeSchema, UpdateEventTypeSchema, UpdateInboxSchema, UpdateMenuItemSchema, UpdateOrganizationRequestSchema, UpdatePhoneNumberSchema, UpdateScheduleSchema, UpdateSitePageSchema, UpdateSiteSchema, UpdateWorkflowSchema, UpdateWorkspaceMemberRequestSchema, UpdateWorkspaceMemberSchema, UpdateWorkspaceSchema, UpsertDataRecordSchema, VerifyCodeRequestSchema, VerifyCodeResponseSchema, WorkflowAgentBehaviorSchema, WorkflowCreateFormDataSchema, WorkflowEscalationPolicySchema, WorkflowEscalationRoutingSchema, WorkflowFormDataSchema, WorkspaceFormDataSchema, WorkspaceIdSchema, createTool, zodToMcpSchema };
|
|
3674
|
+
export type { Account, AccountFormData, AccountReportItem, AddDataFieldInput, AddWorkspaceMemberInput, AdminAccountFormData, AdminAccountMembership, AdminOrganization, AdminWorkspaceMemberFormData, ApiKey, ApiKeyCreated, ApiKeyFormData, ApiKeyScope, ApiKeyScopesResponse, ArchiveChatInput, ArchivePhoneNumberInput, AssistantChatParticipant, CancelCalendarEventInput, Channel, Chat, ChatCompletionMessage, ChatFilterFilterType, ChatFilterObjectType, ChatFilterRule, ChatFilterRuleFormData, ChatFormData, ChatMessage, ChatMessageAPIResponse, ChatMessageChunk, ChatMessageObject, ChatMessageUI, ChatMuteReasonValue, ChatParticipantFormData, CheckAvailabilityInput, CloneWorkflowInput, ContributorChatParticipant, CreateAccountInput, CreateCalendarEventInput, CreateCalendarInput, CreateChatCompletionInput, CreateChatForWorkflowInput, CreateChatInput, CreateDataRecordInput, CreateDataTypeInput, CreateEventTypeInput, CreateInboxInput, CreateMenuItemInput, CreateOrganizationRequest, CreatePhoneNumberInput, CreateScheduleInput, CreateSiteInput, CreateSitePageInput, CreateWorkflowInput, CreateWorkspaceInput, CreateWorkspaceMemberRequest, DataField, DataFieldFormData, DataIntegrityReportItem, DataRecord, DataRecordAssociationFormData, DataRecordFilters, DataRecordFormData, DataRecordReportItem, DataRecordRetirement, DataRecordWithAccessMode, DataRecordsPaginatedResponse, DataType, DataTypeExportItem, DataTypeFormData, DeleteCalendarEventInput, DeleteCalendarInput, DeleteChatInput, DeleteDataRecordInput, DeleteDataTypeInput, DeleteEventTypeInput, DeleteInboxInput, DeleteMenuItemInput, DeleteScheduleInput, DeleteSiteInput, DeleteSitePageInput, DeleteWorkflowInput, DeleteWorkspaceInput, DuplicateAccountInfo, ErrorResponse, FunctionTool, GenerateICalTokenInput, GetAvailableSlotsInput, GetAvailableWorkspaceFeaturesInput, GetCalendarEventInput, GetCalendarInput, GetChatInput, GetChatMessagesInput, GetChatsNeedsResponseInput, GetCurrentMemberInput, GetDataRecordInput, GetDataTypeBySlugInput, GetDataTypeInput, GetEventTypeInput, GetFieldIndexStatusInput, GetICalUrlInput, GetInboxEmailInput, GetInboxInput, GetPhoneNumberInput, GetProductInput, GetProductsInput, GetRecentInboxMessagesInput, GetRecentSmsMessagesInput, GetResellerWorkspacesInput, GetSiteCountsInput, GetSiteInput, GetSiteMenuInput, GetSitePageBySlugInput, GetSitePageInput, GetWorkflowInput, GetWorkspaceDefaultsInput, GetWorkspaceInput, GetWorkspaceMemberInput, HumanChatParticipant, ImageUrlContent, InboxEmailFilters, InboxFormData, InboxRule, InboxRulesConfig, InitiateOutboundCallInput, ListCalendarEventsInput, ListCalendarsInput, ListChatsInput, ListDataRecordsInput, ListDataTypesInput, ListEventTypesInput, ListInboxEmailsInput, ListInboxesInput, ListMenuItemsInput, ListPhoneCallsInput, ListPhoneNumbersInput, ListPhoneSmsMessagesInput, ListSchedulesInput, ListSitePagesInput, ListSitesInput, ListWorkflowsInput, ListWorkspaceMembersInput, ListWorkspacesInput, LoginRequest, LoginResponse, MarkEmailReadInput, MarkEmailUnreadInput, Member, MemberFilter, MemberFilterFormData, MemberFormData, MemberLabel, MemberLabelFormData, MenuItemFormData, MessageAudience, MessageContentPart, MessageOrigin, MessageRole, MissingMembershipItem, Organization, PhoneNumberFormData, RateLimitAllowlistEntry, RateLimitOverride, RateMessageInput, RemoveDataFieldInput, RemoveWorkspaceMemberInput, ReorderMenuItems, ReorderMenuItemsInput, RevokeICalTokenInput, SMSLoginResponse, SchemaField, SchemaFieldFormData, SendAssistantMessageInput, SendChatMessageInput, SendSmsToMemberInput, SiteFormData, SitePageFormData, SupervisorChatParticipant, TaskExportDataTypeRelation, TextContent, ToggleFieldIndexInput, ToolCall, ToolCallFunction, ToolResult, TruncationReason, UnarchiveChatInput, UpdateAttendeeResponseInput, UpdateCalendarEventInput, UpdateCalendarInput, UpdateChatInput, UpdateChatMuteInput, UpdateCurrentMemberInput, UpdateDataFieldInput, UpdateDataRecordInput, UpdateDataTypeInput, UpdateEventTypeInput, UpdateInboxInput, UpdateMenuItemInput, UpdateOrganizationRequest, UpdatePhoneNumberInput, UpdateScheduleInput, UpdateSiteInput, UpdateSitePageInput, UpdateWorkflowInput, UpdateWorkspaceInput, UpdateWorkspaceMemberInput, UpdateWorkspaceMemberRequest, UpsertDataRecordInput, VerifyCodeRequest, VerifyCodeResponse, WorkflowCreateFormData, WorkflowFormData, WorkspaceFormData };
|
package/dist/schemas.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
DataTypeRecordScope,
|
|
13
13
|
IndexStatus,
|
|
14
14
|
ResponseLength
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3X5E3PWB.js";
|
|
16
16
|
|
|
17
17
|
// src/schemas/accounts.ts
|
|
18
18
|
import { z } from "zod";
|
|
@@ -174,16 +174,12 @@ var UpdateOrganizationRequestSchema = z.object({
|
|
|
174
174
|
var AdminAccountMembershipSchema = z.object({
|
|
175
175
|
workspaceUuid: z.string(),
|
|
176
176
|
workspaceName: z.string(),
|
|
177
|
-
role: z.string(),
|
|
178
177
|
createdAt: z.string(),
|
|
179
178
|
tosAccepted: z.boolean(),
|
|
180
|
-
memberRoleId: z.number().nullable(),
|
|
181
179
|
memberId: z.number()
|
|
182
180
|
});
|
|
183
181
|
var AdminWorkspaceMemberFormDataSchema = z.object({
|
|
184
|
-
tosAccepted: z.boolean().optional()
|
|
185
|
-
role: z.string().optional(),
|
|
186
|
-
memberRoleId: z.number().optional()
|
|
182
|
+
tosAccepted: z.boolean().optional()
|
|
187
183
|
});
|
|
188
184
|
var AccountReportItemSchema = z.object({
|
|
189
185
|
id: z.number(),
|
|
@@ -652,6 +648,7 @@ var ChatFormDataSchema = z4.object({
|
|
|
652
648
|
// Deprecated alias for `assistantKind`; false ⇒ 'human'.
|
|
653
649
|
agentEnabled: z4.boolean().optional(),
|
|
654
650
|
assistantMemberId: z4.number().nullable().optional(),
|
|
651
|
+
assistantTeammateId: z4.number().nullable().optional(),
|
|
655
652
|
assistantName: z4.string().nullable().optional(),
|
|
656
653
|
// Per-chat assistant model override (snapshotted onto the assistant
|
|
657
654
|
// participant). Set from the Create-Chat assistant-override dialog.
|
|
@@ -1557,8 +1554,6 @@ var CreateWorkspaceMemberRequestSchema = z8.object({
|
|
|
1557
1554
|
externalId: z8.string().optional(),
|
|
1558
1555
|
dateOfBirth: z8.string().optional(),
|
|
1559
1556
|
// ISO 8601 date (YYYY-MM-DD)
|
|
1560
|
-
// Role and permissions
|
|
1561
|
-
memberRoleId: z8.number(),
|
|
1562
1557
|
// Notification preferences
|
|
1563
1558
|
notifySms: z8.boolean().optional(),
|
|
1564
1559
|
notifyEmail: z8.boolean().optional(),
|
|
@@ -1587,8 +1582,6 @@ var UpdateWorkspaceMemberRequestSchema = z8.object({
|
|
|
1587
1582
|
externalId: z8.string().optional(),
|
|
1588
1583
|
dateOfBirth: z8.string().nullable().optional(),
|
|
1589
1584
|
// ISO 8601 date (YYYY-MM-DD)
|
|
1590
|
-
// Role and permissions
|
|
1591
|
-
memberRoleId: z8.number().optional(),
|
|
1592
1585
|
labelIds: z8.array(z8.number()).optional(),
|
|
1593
1586
|
// Notification preferences
|
|
1594
1587
|
notifySms: z8.boolean().optional(),
|
|
@@ -1606,7 +1599,6 @@ var UpdateWorkspaceMemberRequestSchema = z8.object({
|
|
|
1606
1599
|
});
|
|
1607
1600
|
var MemberFormDataSchema = z8.object({
|
|
1608
1601
|
tosAccepted: z8.boolean().optional(),
|
|
1609
|
-
memberRoleId: z8.number().optional(),
|
|
1610
1602
|
notifySms: z8.boolean().optional(),
|
|
1611
1603
|
notifyEmail: z8.boolean().optional(),
|
|
1612
1604
|
notifyVoice: z8.boolean().optional(),
|
|
@@ -1624,18 +1616,6 @@ var MemberFormDataSchema = z8.object({
|
|
|
1624
1616
|
externalId: z8.string().optional(),
|
|
1625
1617
|
dateOfBirth: z8.string().nullable().optional()
|
|
1626
1618
|
});
|
|
1627
|
-
var MemberRoleTaskAccessSchema = z8.object({
|
|
1628
|
-
taskId: z8.number(),
|
|
1629
|
-
accessMode: z8.number()
|
|
1630
|
-
});
|
|
1631
|
-
var MemberRoleFormDataSchema = z8.object({
|
|
1632
|
-
name: z8.string().optional(),
|
|
1633
|
-
dailyCreditLimit: z8.number().int().nonnegative().nullable().optional().describe(
|
|
1634
|
-
"Per-Member daily credit cap for this role; null = no cap, 0 = no new metered usage"
|
|
1635
|
-
),
|
|
1636
|
-
taskAccess: z8.array(MemberRoleTaskAccessSchema).optional(),
|
|
1637
|
-
siteAudience: z8.array(z8.string()).optional().describe("UUIDs of the Sites this role can sign in through")
|
|
1638
|
-
});
|
|
1639
1619
|
var GetCurrentMemberSchema = WorkspaceIdSchema;
|
|
1640
1620
|
var UpdateCurrentMemberSchema = WorkspaceIdSchema.extend({
|
|
1641
1621
|
name: z8.string().optional().describe("New member name"),
|
|
@@ -1649,7 +1629,6 @@ var ListWorkspaceMembersSchema = WorkspaceIdSchema.extend({
|
|
|
1649
1629
|
query: z8.string().optional().describe("Search query (name, email, or phone)"),
|
|
1650
1630
|
page: z8.number().optional().describe("Page number"),
|
|
1651
1631
|
pageSize: z8.number().optional().describe("Items per page"),
|
|
1652
|
-
role: z8.string().optional().describe("Filter by member role"),
|
|
1653
1632
|
sortBy: z8.enum(["createdAt", "updatedAt", "name", "email"]).optional().describe("Sort field"),
|
|
1654
1633
|
sortOrder: z8.enum(["asc", "desc"]).optional().describe("Sort order"),
|
|
1655
1634
|
isTest: z8.boolean().optional().describe("Filter by test member status (defaults to false)"),
|
|
@@ -1670,17 +1649,6 @@ var SendSmsToMemberSchema = WorkspaceIdSchema.extend({
|
|
|
1670
1649
|
message: z8.string().describe("SMS message content"),
|
|
1671
1650
|
phoneNumberId: z8.number().optional().describe("Phone number ID to send from")
|
|
1672
1651
|
});
|
|
1673
|
-
var ListMemberRolesSchema = WorkspaceIdSchema;
|
|
1674
|
-
var GetMemberRoleSchema = WorkspaceIdSchema.extend({
|
|
1675
|
-
memberRoleId: z8.number().describe("Member role ID")
|
|
1676
|
-
});
|
|
1677
|
-
var CreateMemberRoleSchema = WorkspaceIdSchema.merge(MemberRoleFormDataSchema);
|
|
1678
|
-
var UpdateMemberRoleSchema = WorkspaceIdSchema.extend({
|
|
1679
|
-
memberRoleId: z8.number().describe("Member role ID")
|
|
1680
|
-
}).merge(MemberRoleFormDataSchema.partial());
|
|
1681
|
-
var DeleteMemberRoleSchema = WorkspaceIdSchema.extend({
|
|
1682
|
-
memberRoleId: z8.number().describe("Member role ID to delete")
|
|
1683
|
-
});
|
|
1684
1652
|
var MemberLabelSchema = z8.object({
|
|
1685
1653
|
id: z8.number(),
|
|
1686
1654
|
uuid: z8.string(),
|
|
@@ -1709,20 +1677,10 @@ var MemberFilterFormDataSchema = z8.object({
|
|
|
1709
1677
|
description: z8.string().optional(),
|
|
1710
1678
|
pinned: z8.boolean().optional()
|
|
1711
1679
|
});
|
|
1712
|
-
var MemberRoleSchema = z8.object({
|
|
1713
|
-
id: z8.number(),
|
|
1714
|
-
name: z8.string(),
|
|
1715
|
-
dailyCreditLimit: z8.number().nullable().optional(),
|
|
1716
|
-
taskAccess: z8.array(MemberRoleTaskAccessSchema),
|
|
1717
|
-
siteAudience: z8.array(z8.string()),
|
|
1718
|
-
createdAt: z8.string(),
|
|
1719
|
-
updatedAt: z8.string()
|
|
1720
|
-
});
|
|
1721
1680
|
var MemberSchema = z8.object({
|
|
1722
1681
|
id: z8.number(),
|
|
1723
1682
|
// Absent for a Business, an Agent, a test Member and an anonymous Member.
|
|
1724
1683
|
accountUuid: z8.string().nullable().optional(),
|
|
1725
|
-
memberRoleId: z8.number(),
|
|
1726
1684
|
// Consolidated member fields (from personas consolidation migration)
|
|
1727
1685
|
name: z8.string().optional(),
|
|
1728
1686
|
// Structured name, in the order it composes the full name. Sending any
|
|
@@ -1739,7 +1697,6 @@ var MemberSchema = z8.object({
|
|
|
1739
1697
|
dateOfBirth: z8.string().nullable().optional(),
|
|
1740
1698
|
tosAccepted: z8.boolean().optional(),
|
|
1741
1699
|
accountTosAccepted: z8.boolean().optional(),
|
|
1742
|
-
memberRoleName: z8.string().optional(),
|
|
1743
1700
|
notifySms: z8.boolean().optional(),
|
|
1744
1701
|
notifyEmail: z8.boolean().optional(),
|
|
1745
1702
|
notifyVoice: z8.boolean().optional(),
|
|
@@ -1761,11 +1718,13 @@ var MemberSchema = z8.object({
|
|
|
1761
1718
|
import { z as z9 } from "zod";
|
|
1762
1719
|
var PhoneNumberFormDataSchema = z9.object({
|
|
1763
1720
|
name: z9.string().nullable().optional(),
|
|
1721
|
+
// The owner seat. A person is a teammate (`directTeammateId`); a
|
|
1722
|
+
// workspace Agent that answers as the AI is `directMemberId`. Send one.
|
|
1723
|
+
directTeammateId: z9.number().int().positive().nullable().optional(),
|
|
1764
1724
|
directMemberId: z9.number().int().positive().nullable().optional(),
|
|
1765
1725
|
// Routing Rules own every inbound destination, so the fields that named one
|
|
1766
|
-
// (defaultWorkflowId / voiceWorkflowId / operatorGroupId
|
|
1767
|
-
//
|
|
1768
|
-
// restartDelay) are not part of this resource. A payload still carrying one
|
|
1726
|
+
// (defaultWorkflowId / voiceWorkflowId / operatorGroupId) and the AI's
|
|
1727
|
+
// restart option (restartPrompt / restartDelay) are not part of this resource. A payload still carrying one
|
|
1769
1728
|
// is accepted and the value dropped.
|
|
1770
1729
|
enableSms: z9.boolean().optional(),
|
|
1771
1730
|
enableVoice: z9.boolean().optional(),
|
|
@@ -1813,7 +1772,6 @@ var SiteFormDataSchema = z10.object({
|
|
|
1813
1772
|
customDomain: z10.string().optional(),
|
|
1814
1773
|
redirectUrl: z10.string().optional(),
|
|
1815
1774
|
allowSignup: z10.boolean().optional(),
|
|
1816
|
-
signupMemberRoleId: z10.number().optional(),
|
|
1817
1775
|
content: z10.string().optional(),
|
|
1818
1776
|
isReseller: z10.boolean().optional(),
|
|
1819
1777
|
isPublic: z10.boolean().optional(),
|
|
@@ -2050,7 +2008,7 @@ var WorkflowEscalationPolicySchema = z12.object({
|
|
|
2050
2008
|
manualToolCondition: z12.string().nullable().optional()
|
|
2051
2009
|
}).strict();
|
|
2052
2010
|
var WorkflowEscalationRoutingSchema = z12.object({
|
|
2053
|
-
|
|
2011
|
+
priorityTeammateIds: z12.array(z12.number().int()).optional(),
|
|
2054
2012
|
operatorGroupIds: z12.array(z12.number().int()).optional()
|
|
2055
2013
|
}).strict();
|
|
2056
2014
|
|
|
@@ -2209,7 +2167,6 @@ export {
|
|
|
2209
2167
|
CreateEventTypeSchema,
|
|
2210
2168
|
CreateInboxSchema,
|
|
2211
2169
|
CreateInquirySchema,
|
|
2212
|
-
CreateMemberRoleSchema,
|
|
2213
2170
|
CreateMenuItemSchema,
|
|
2214
2171
|
CreateOrganizationRequestSchema,
|
|
2215
2172
|
CreatePhoneNumberSchema,
|
|
@@ -2246,7 +2203,6 @@ export {
|
|
|
2246
2203
|
DeleteEventTypeSchema,
|
|
2247
2204
|
DeleteInboxSchema,
|
|
2248
2205
|
DeleteInquirySchema,
|
|
2249
|
-
DeleteMemberRoleSchema,
|
|
2250
2206
|
DeleteMenuItemSchema,
|
|
2251
2207
|
DeleteScheduleSchema,
|
|
2252
2208
|
DeleteSitePageSchema,
|
|
@@ -2277,7 +2233,6 @@ export {
|
|
|
2277
2233
|
GetInboxEmailSchema,
|
|
2278
2234
|
GetInboxSchema,
|
|
2279
2235
|
GetInquirySchema,
|
|
2280
|
-
GetMemberRoleSchema,
|
|
2281
2236
|
GetPhoneNumberSchema,
|
|
2282
2237
|
GetProductSchema,
|
|
2283
2238
|
GetProductsSchema,
|
|
@@ -2312,7 +2267,6 @@ export {
|
|
|
2312
2267
|
ListInboxEmailsSchema,
|
|
2313
2268
|
ListInboxesSchema,
|
|
2314
2269
|
ListInquiriesSchema,
|
|
2315
|
-
ListMemberRolesSchema,
|
|
2316
2270
|
ListMenuItemsSchema,
|
|
2317
2271
|
ListPhoneCallsSchema,
|
|
2318
2272
|
ListPhoneNumbersSchema,
|
|
@@ -2333,9 +2287,6 @@ export {
|
|
|
2333
2287
|
MemberFormDataSchema,
|
|
2334
2288
|
MemberLabelFormDataSchema,
|
|
2335
2289
|
MemberLabelSchema,
|
|
2336
|
-
MemberRoleFormDataSchema,
|
|
2337
|
-
MemberRoleSchema,
|
|
2338
|
-
MemberRoleTaskAccessSchema,
|
|
2339
2290
|
MemberSchema,
|
|
2340
2291
|
MenuItemFormDataSchema,
|
|
2341
2292
|
MessageAudienceEnum,
|
|
@@ -2390,7 +2341,6 @@ export {
|
|
|
2390
2341
|
UpdateInboxSchema,
|
|
2391
2342
|
UpdateInquiryRequestSchema,
|
|
2392
2343
|
UpdateInquirySchema,
|
|
2393
|
-
UpdateMemberRoleSchema,
|
|
2394
2344
|
UpdateMenuItemSchema,
|
|
2395
2345
|
UpdateOrganizationRequestSchema,
|
|
2396
2346
|
UpdatePhoneNumberSchema,
|