@gravity-rail/sdk 0.50.0 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/schemas.d.ts CHANGED
@@ -1,1842 +1,1842 @@
1
1
  import { z } from 'zod';
2
- import { ad as CalendarScheduleAvailabilityType, af as CalendarScheduleRecurrence, a5 as CalendarEventStatus, C as AttendeeResponseStatus, D as DataFieldType, b8 as DataTypeRecordScope, b4 as DataSensitivity, aQ as DataCategory, bT as IndexStatus } from './tasks-DsNsbco5.js';
3
- export { fS as AbilityData, fT as AbilityDataSchema, fU as AnonymousInquiryFormSchema, fV as ArchiveTaskInput, fW as ArchiveTaskSchema, fX as ChildTaskFormData, fY as ChildTaskFormDataSchema, fZ as CreateInquiryInput, f_ as CreateInquirySchema, f$ as CreateTaskInput, g0 as CreateTaskSchema, g1 as DeleteInquiryInput, g2 as DeleteInquirySchema, g3 as DeleteTaskInput, g4 as DeleteTaskSchema, g5 as EnrichInquiryInput, g6 as EnrichInquirySchema, g7 as GetInquiryInput, g8 as GetInquirySchema, g9 as GetTaskInput, ga as GetTaskSchema, gb as ListInquiriesInput, gc as ListInquiriesSchema, gd as ListTasksInput, ge as ListTasksSchema, gf as OutcomeTaskRoutingSchema, gg as TaskFormData, gh as TaskFormDataSchema, gi as UnarchiveTaskInput, gj as UnarchiveTaskSchema, gk as UpdateInquiryInput, gl as UpdateInquiryRequestSchema, gm as UpdateInquirySchema, gn as UpdateTaskInput, go as UpdateTaskSchema } from './tasks-DsNsbco5.js';
2
+ import { D as DataFieldType, b8 as DataTypeRecordScope, b4 as DataSensitivity, aQ as DataCategory, bT as IndexStatus, ad as CalendarScheduleAvailabilityType, af as CalendarScheduleRecurrence, a5 as CalendarEventStatus, C as AttendeeResponseStatus } from './tasks-CKBDY-Ok.js';
3
+ export { fS as AbilityData, fT as AbilityDataSchema, fU as AnonymousInquiryFormSchema, fV as ArchiveTaskInput, fW as ArchiveTaskSchema, fX as ChatTaskConfigurationPatchSchema, fY as ChildTaskFormData, fZ as ChildTaskFormDataSchema, f_ as CreateInquiryInput, f$ as CreateInquirySchema, g0 as CreateTaskInput, g1 as CreateTaskSchema, g2 as DeleteInquiryInput, g3 as DeleteInquirySchema, g4 as DeleteTaskInput, g5 as DeleteTaskSchema, g6 as EnrichInquiryInput, g7 as EnrichInquirySchema, g8 as GetInquiryInput, g9 as GetInquirySchema, ga as GetTaskInput, gb as GetTaskSchema, gc as ListInquiriesInput, gd as ListInquiriesSchema, ge as ListTasksInput, gf as ListTasksSchema, gg as OutcomeTaskRoutingSchema, gh as TaskFormData, gi as TaskFormDataSchema, gj as UnarchiveTaskInput, gk as UnarchiveTaskSchema, gl as UpdateInquiryInput, gm as UpdateInquiryRequestSchema, gn as UpdateInquirySchema, go as UpdateTaskInput, gp as UpdateTaskSchema } from './tasks-CKBDY-Ok.js';
4
4
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
5
5
 
6
- declare const AccountFormDataSchema: z.ZodObject<{
7
- name: z.ZodOptional<z.ZodString>;
8
- tosAccepted: z.ZodOptional<z.ZodBoolean>;
9
- optedOut: z.ZodOptional<z.ZodBoolean>;
10
- locale: z.ZodOptional<z.ZodString>;
11
- timezone: z.ZodOptional<z.ZodString>;
12
- }, z.core.$strip>;
13
- declare const AdminAccountFormDataSchema: z.ZodObject<{
14
- name: z.ZodOptional<z.ZodString>;
15
- tosAccepted: z.ZodOptional<z.ZodBoolean>;
16
- optedOut: z.ZodOptional<z.ZodBoolean>;
17
- locale: z.ZodOptional<z.ZodString>;
18
- timezone: z.ZodOptional<z.ZodString>;
19
- email: z.ZodOptional<z.ZodString>;
20
- phone: z.ZodOptional<z.ZodString>;
21
- isSuperuser: z.ZodOptional<z.ZodBoolean>;
22
- enabled: z.ZodOptional<z.ZodBoolean>;
23
- orgOwner: z.ZodOptional<z.ZodBoolean>;
24
- organizationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
- stripeCustomerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
- }, z.core.$strip>;
27
- declare const AccountSchema: z.ZodObject<{
28
- id: z.ZodNumber;
29
- loggedIn: z.ZodBoolean;
30
- avatarUrl: z.ZodNullable<z.ZodString>;
31
- email: z.ZodNullable<z.ZodString>;
32
- phone: z.ZodNullable<z.ZodString>;
33
- name: z.ZodNullable<z.ZodString>;
34
- uuid: z.ZodString;
35
- createdAt: z.ZodString;
36
- isSuperuser: z.ZodBoolean;
37
- orgOwner: z.ZodBoolean;
38
- enabled: z.ZodBoolean;
39
- tosAccepted: z.ZodBoolean;
40
- optedOut: z.ZodBoolean;
41
- signupWorkspaceId: z.ZodNullable<z.ZodNumber>;
42
- stripeCustomerId: z.ZodNullable<z.ZodString>;
43
- organizationId: z.ZodNullable<z.ZodNumber>;
44
- organizationName: z.ZodNullable<z.ZodString>;
45
- locale: z.ZodNullable<z.ZodString>;
46
- }, z.core.$strip>;
47
- declare const LoginRequestSchema: z.ZodObject<{
48
- phoneNumber: z.ZodString;
49
- organizationId: z.ZodOptional<z.ZodNumber>;
50
- isSignUp: z.ZodOptional<z.ZodBoolean>;
51
- }, z.core.$strip>;
52
- declare const VerifyCodeRequestSchema: z.ZodObject<{
53
- phoneNumber: z.ZodString;
54
- code: z.ZodString;
55
- isSignUp: z.ZodOptional<z.ZodBoolean>;
56
- }, z.core.$strip>;
57
- declare const VerifyCodeResponseSchema: z.ZodObject<{
58
- success: z.ZodBoolean;
59
- token: z.ZodOptional<z.ZodString>;
60
- requiresTwoFactor: z.ZodOptional<z.ZodBoolean>;
61
- availableTwoFactorMethods: z.ZodOptional<z.ZodArray<z.ZodAny>>;
62
- }, z.core.$strip>;
63
- declare const LoginResponseSchema: z.ZodObject<{
64
- token: z.ZodOptional<z.ZodString>;
65
- accountId: z.ZodOptional<z.ZodNumber>;
66
- }, z.core.$strip>;
67
- declare const SMSLoginResponseSchema: z.ZodObject<{
68
- success: z.ZodBoolean;
69
- message: z.ZodOptional<z.ZodString>;
70
- }, z.core.$strip>;
71
- declare const ErrorResponseSchema: z.ZodObject<{
72
- detail: z.ZodString;
73
- }, z.core.$strip>;
74
- declare const ApiKeySchema: z.ZodObject<{
75
- id: z.ZodNumber;
76
- uuid: z.ZodString;
6
+ /**
7
+ * What a data type with no schema fields derives.
8
+ *
9
+ * Mirrors `EMPTY_SCHEMA_SENSITIVITY` in `lib/models/workspace/data_policy.py`.
10
+ * An empty schema carries no labels to read, which is an absence of information
11
+ * rather than a claim that the records are public — and deriving Public made
12
+ * zero fields more permissive than one unlabeled field, which defaults to
13
+ * Confidential.
14
+ */
15
+ declare const EMPTY_SCHEMA_SENSITIVITY: DataSensitivity;
16
+ declare const DataFieldSchema: z.ZodObject<{
17
+ id: z.ZodOptional<z.ZodNumber>;
77
18
  name: z.ZodString;
78
- keyPrefix: z.ZodString;
19
+ slug: z.ZodString;
20
+ description: z.ZodOptional<z.ZodString>;
21
+ required: z.ZodBoolean;
22
+ fieldType: z.ZodEnum<typeof DataFieldType>;
23
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
24
+ label: z.ZodString;
25
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
26
+ visibleWhen: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>>>;
28
+ referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ referencedTypeId: z.ZodOptional<z.ZodNumber>;
30
+ shouldIndex: z.ZodOptional<z.ZodBoolean>;
31
+ indexStatus: z.ZodOptional<z.ZodEnum<typeof IndexStatus>>;
32
+ adminOnly: z.ZodOptional<z.ZodBoolean>;
79
33
  createdAt: z.ZodString;
80
- expiresAt: z.ZodNullable<z.ZodString>;
81
- lastUsedAt: z.ZodNullable<z.ZodString>;
82
- enabled: z.ZodBoolean;
83
- scopes: z.ZodArray<z.ZodString>;
84
- appId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ updatedAt: z.ZodString;
85
35
  }, z.core.$strip>;
86
- declare const ApiKeyCreatedSchema: z.ZodObject<{
87
- id: z.ZodNumber;
88
- uuid: z.ZodString;
36
+ declare const DataFieldFormDataSchema: z.ZodObject<{
89
37
  name: z.ZodString;
90
- keyPrefix: z.ZodString;
91
- createdAt: z.ZodString;
92
- expiresAt: z.ZodNullable<z.ZodString>;
93
- lastUsedAt: z.ZodNullable<z.ZodString>;
94
- enabled: z.ZodBoolean;
95
- scopes: z.ZodArray<z.ZodString>;
96
- appId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
97
- key: z.ZodString;
38
+ slug: z.ZodString;
39
+ description: z.ZodOptional<z.ZodString>;
40
+ required: z.ZodBoolean;
41
+ fieldType: z.ZodEnum<typeof DataFieldType>;
42
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
43
+ label: z.ZodString;
44
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
45
+ visibleWhen: z.ZodOptional<z.ZodString>;
46
+ }, z.core.$strip>>>;
47
+ referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
48
+ referencedTypeId: z.ZodOptional<z.ZodNumber>;
49
+ shouldIndex: z.ZodOptional<z.ZodBoolean>;
50
+ indexStatus: z.ZodOptional<z.ZodEnum<typeof IndexStatus>>;
51
+ adminOnly: z.ZodOptional<z.ZodBoolean>;
98
52
  }, z.core.$strip>;
99
- declare const ApiKeyFormDataSchema: z.ZodObject<{
53
+ declare const SchemaFieldSchema: z.ZodObject<{
54
+ slug: z.ZodString;
100
55
  name: z.ZodString;
101
- expiresInDays: z.ZodNumber;
102
- scopes: z.ZodArray<z.ZodString>;
56
+ description: z.ZodOptional<z.ZodString>;
57
+ fieldType: z.ZodEnum<typeof DataFieldType>;
58
+ required: z.ZodBoolean;
59
+ order: z.ZodOptional<z.ZodNumber>;
60
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
61
+ label: z.ZodString;
62
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
63
+ visibleWhen: z.ZodOptional<z.ZodString>;
64
+ }, z.core.$strip>>>;
65
+ referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
66
+ referencedTypeId: z.ZodOptional<z.ZodNumber>;
67
+ shouldIndex: z.ZodOptional<z.ZodBoolean>;
68
+ adminOnly: z.ZodOptional<z.ZodBoolean>;
69
+ defaultValue: z.ZodOptional<z.ZodAny>;
70
+ sensitivity: z.ZodOptional<z.ZodEnum<typeof DataSensitivity>>;
71
+ categories: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof DataCategory>>>;
72
+ celFunction: z.ZodOptional<z.ZodString>;
73
+ validateCel: z.ZodOptional<z.ZodString>;
103
74
  }, z.core.$strip>;
104
- declare const ApiKeyScopeSchema: z.ZodObject<{
75
+ declare const SchemaFieldFormDataSchema: z.ZodObject<{
76
+ slug: z.ZodString;
105
77
  name: z.ZodString;
106
- description: z.ZodString;
107
- value: z.ZodNumber;
108
- }, z.core.$strip>;
109
- declare const ApiKeyScopesResponseSchema: z.ZodObject<{
110
- scopes: z.ZodArray<z.ZodObject<{
111
- name: z.ZodString;
112
- description: z.ZodString;
113
- value: z.ZodNumber;
114
- }, z.core.$strip>>;
78
+ description: z.ZodOptional<z.ZodString>;
79
+ fieldType: z.ZodEnum<typeof DataFieldType>;
80
+ required: z.ZodBoolean;
81
+ order: z.ZodOptional<z.ZodNumber>;
82
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
83
+ label: z.ZodString;
84
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
85
+ visibleWhen: z.ZodOptional<z.ZodString>;
86
+ }, z.core.$strip>>>;
87
+ referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
88
+ referencedTypeId: z.ZodOptional<z.ZodNumber>;
89
+ shouldIndex: z.ZodOptional<z.ZodBoolean>;
90
+ adminOnly: z.ZodOptional<z.ZodBoolean>;
91
+ defaultValue: z.ZodOptional<z.ZodAny>;
92
+ sensitivity: z.ZodOptional<z.ZodEnum<typeof DataSensitivity>>;
93
+ categories: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof DataCategory>>>;
94
+ celFunction: z.ZodOptional<z.ZodString>;
95
+ validateCel: z.ZodOptional<z.ZodString>;
115
96
  }, z.core.$strip>;
116
- declare const OrganizationSchema: z.ZodObject<{
97
+ declare const DataTypeSchema: z.ZodObject<{
117
98
  id: z.ZodNumber;
118
- uuid: z.ZodString;
119
99
  name: z.ZodString;
120
100
  slug: z.ZodString;
121
- authMode: z.ZodEnum<{
122
- open: "open";
123
- ssoForDomain: "ssoForDomain";
124
- ssoOnly: "ssoOnly";
125
- }>;
126
- contactEmail: z.ZodOptional<z.ZodString>;
127
- contactPhone: z.ZodOptional<z.ZodString>;
128
- createdAt: z.ZodString;
129
- creatorId: z.ZodNumber;
130
- creatorName: z.ZodOptional<z.ZodString>;
131
- }, z.core.$strip>;
132
- declare const AdminOrganizationSchema: z.ZodObject<{
133
- id: z.ZodNumber;
134
101
  uuid: z.ZodString;
135
- name: z.ZodString;
136
- slug: z.ZodString;
137
- authMode: z.ZodEnum<{
138
- open: "open";
139
- ssoForDomain: "ssoForDomain";
140
- ssoOnly: "ssoOnly";
141
- }>;
142
- contactEmail: z.ZodOptional<z.ZodString>;
143
- contactPhone: z.ZodOptional<z.ZodString>;
102
+ description: z.ZodOptional<z.ZodString>;
103
+ prompt: z.ZodOptional<z.ZodString>;
104
+ isCollection: z.ZodBoolean;
105
+ pinned: z.ZodOptional<z.ZodBoolean>;
106
+ archived: z.ZodOptional<z.ZodBoolean>;
107
+ ownerId: z.ZodNullable<z.ZodNumber>;
108
+ recordScope: z.ZodEnum<typeof DataTypeRecordScope>;
109
+ adminOnly: z.ZodOptional<z.ZodBoolean>;
110
+ sensitivity: z.ZodEnum<typeof DataSensitivity>;
111
+ categories: z.ZodArray<z.ZodEnum<typeof DataCategory>>;
144
112
  createdAt: z.ZodString;
145
- creatorId: z.ZodNumber;
146
- creatorName: z.ZodOptional<z.ZodString>;
147
- accountCount: z.ZodNumber;
148
- workspaceCount: z.ZodNumber;
149
- enforceCreditLimit: z.ZodBoolean;
150
- maxPhoneNumbers: z.ZodNumber;
151
- maxA2pBrands: z.ZodNumber;
152
- securityContactEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
- securityContactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
- defaultSecurityContactEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
- defaultSecurityContactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ updatedAt: z.ZodString;
114
+ fields: z.ZodArray<z.ZodObject<{
115
+ slug: z.ZodString;
116
+ name: z.ZodString;
117
+ description: z.ZodOptional<z.ZodString>;
118
+ fieldType: z.ZodEnum<typeof DataFieldType>;
119
+ required: z.ZodBoolean;
120
+ order: z.ZodOptional<z.ZodNumber>;
121
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
122
+ label: z.ZodString;
123
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
124
+ visibleWhen: z.ZodOptional<z.ZodString>;
125
+ }, z.core.$strip>>>;
126
+ referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
127
+ referencedTypeId: z.ZodOptional<z.ZodNumber>;
128
+ shouldIndex: z.ZodOptional<z.ZodBoolean>;
129
+ adminOnly: z.ZodOptional<z.ZodBoolean>;
130
+ defaultValue: z.ZodOptional<z.ZodAny>;
131
+ sensitivity: z.ZodOptional<z.ZodEnum<typeof DataSensitivity>>;
132
+ categories: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof DataCategory>>>;
133
+ celFunction: z.ZodOptional<z.ZodString>;
134
+ validateCel: z.ZodOptional<z.ZodString>;
135
+ }, z.core.$strip>>;
156
136
  }, z.core.$strip>;
157
- declare const CreateOrganizationRequestSchema: z.ZodObject<{
137
+ declare const DataTypeFormDataSchema: z.ZodObject<{
158
138
  name: z.ZodString;
159
- contactEmail: z.ZodOptional<z.ZodString>;
160
- contactPhone: z.ZodOptional<z.ZodString>;
161
- logo: z.ZodOptional<z.ZodString>;
162
- logoMimeType: z.ZodOptional<z.ZodString>;
163
- securityContactEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
- securityContactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
- }, z.core.$strip>;
166
- declare const UpdateOrganizationRequestSchema: z.ZodObject<{
167
- name: z.ZodOptional<z.ZodString>;
168
- slug: z.ZodOptional<z.ZodString>;
169
- contactEmail: z.ZodOptional<z.ZodString>;
170
- contactPhone: z.ZodOptional<z.ZodString>;
171
- authMode: z.ZodOptional<z.ZodEnum<{
172
- open: "open";
173
- ssoForDomain: "ssoForDomain";
174
- ssoOnly: "ssoOnly";
175
- }>>;
176
- ssoProvider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
- ssoDomain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
- ssoAutoProvision: z.ZodOptional<z.ZodBoolean>;
179
- ssoOidc: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
180
- logo: z.ZodOptional<z.ZodString>;
181
- logoMimeType: z.ZodOptional<z.ZodString>;
182
- twilioSubAccountSid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
- enforceCreditLimit: z.ZodOptional<z.ZodBoolean>;
184
- maxPhoneNumbers: z.ZodOptional<z.ZodNumber>;
185
- maxA2pBrands: z.ZodOptional<z.ZodNumber>;
186
- securityContactEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
187
- securityContactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
188
- }, z.core.$strip>;
189
- declare const AdminAccountMembershipSchema: z.ZodObject<{
190
- workspaceUuid: z.ZodString;
191
- workspaceName: z.ZodString;
192
- role: z.ZodString;
193
- createdAt: z.ZodString;
194
- tosAccepted: z.ZodBoolean;
195
- memberRoleId: z.ZodNullable<z.ZodNumber>;
196
- memberId: z.ZodNumber;
197
- }, z.core.$strip>;
198
- declare const AdminWorkspaceMemberFormDataSchema: z.ZodObject<{
199
- tosAccepted: z.ZodOptional<z.ZodBoolean>;
200
- role: z.ZodOptional<z.ZodString>;
201
- memberRoleId: z.ZodOptional<z.ZodNumber>;
202
- }, z.core.$strip>;
203
- declare const AccountReportItemSchema: z.ZodObject<{
204
- id: z.ZodNumber;
205
- uuid: z.ZodString;
206
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
207
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
208
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
209
- created_at: z.ZodString;
210
- organization_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
211
- }, z.core.$strip>;
212
- declare const DuplicateAccountInfoSchema: z.ZodObject<{
213
- id: z.ZodNumber;
214
- name: z.ZodNullable<z.ZodString>;
215
- email: z.ZodNullable<z.ZodString>;
216
- phone: z.ZodNullable<z.ZodString>;
217
- organizationId: z.ZodNullable<z.ZodNumber>;
218
- organizationName: z.ZodNullable<z.ZodString>;
219
- createdAt: z.ZodString;
220
- }, z.core.$strip>;
221
- declare const MissingMembershipItemSchema: z.ZodObject<{
222
- member_id: z.ZodNumber;
223
- member_name: z.ZodString;
224
- account_id: z.ZodNumber;
225
- account_uuid: z.ZodString;
139
+ slug: z.ZodString;
140
+ description: z.ZodOptional<z.ZodString>;
141
+ prompt: z.ZodOptional<z.ZodString>;
142
+ isCollection: z.ZodBoolean;
143
+ pinned: z.ZodOptional<z.ZodBoolean>;
144
+ webhookEventsEnabled: z.ZodOptional<z.ZodBoolean>;
145
+ recordScope: z.ZodOptional<z.ZodEnum<typeof DataTypeRecordScope>>;
146
+ adminOnly: z.ZodOptional<z.ZodBoolean>;
147
+ fields: z.ZodArray<z.ZodObject<{
148
+ slug: z.ZodString;
149
+ name: z.ZodString;
150
+ description: z.ZodOptional<z.ZodString>;
151
+ fieldType: z.ZodEnum<typeof DataFieldType>;
152
+ required: z.ZodBoolean;
153
+ order: z.ZodOptional<z.ZodNumber>;
154
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
155
+ label: z.ZodString;
156
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
157
+ visibleWhen: z.ZodOptional<z.ZodString>;
158
+ }, z.core.$strip>>>;
159
+ referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
160
+ referencedTypeId: z.ZodOptional<z.ZodNumber>;
161
+ shouldIndex: z.ZodOptional<z.ZodBoolean>;
162
+ adminOnly: z.ZodOptional<z.ZodBoolean>;
163
+ defaultValue: z.ZodOptional<z.ZodAny>;
164
+ sensitivity: z.ZodOptional<z.ZodEnum<typeof DataSensitivity>>;
165
+ categories: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof DataCategory>>>;
166
+ celFunction: z.ZodOptional<z.ZodString>;
167
+ validateCel: z.ZodOptional<z.ZodString>;
168
+ }, z.core.$strip>>;
169
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
170
+ }, z.core.$strict>;
171
+ declare const DataRecordFiltersSchema: z.ZodObject<{
172
+ page: z.ZodOptional<z.ZodNumber>;
173
+ pageSize: z.ZodOptional<z.ZodNumber>;
174
+ search: z.ZodOptional<z.ZodString>;
175
+ searchField: z.ZodOptional<z.ZodString>;
176
+ memberId: z.ZodOptional<z.ZodNumber>;
226
177
  }, z.core.$strip>;
227
- declare const CreateAccountSchema: z.ZodObject<{
228
- name: z.ZodString;
229
- email: z.ZodOptional<z.ZodString>;
230
- phone: z.ZodOptional<z.ZodString>;
178
+ declare const ListDataTypesSchema: z.ZodObject<{
179
+ wid: z.ZodString;
231
180
  }, z.core.$strip>;
232
- type Account = z.infer<typeof AccountSchema>;
233
- type AccountFormData = z.infer<typeof AccountFormDataSchema>;
234
- type AdminAccountFormData = z.infer<typeof AdminAccountFormDataSchema>;
235
- type LoginRequest = z.infer<typeof LoginRequestSchema>;
236
- type VerifyCodeRequest = z.infer<typeof VerifyCodeRequestSchema>;
237
- type VerifyCodeResponse = z.infer<typeof VerifyCodeResponseSchema>;
238
- type LoginResponse = z.infer<typeof LoginResponseSchema>;
239
- type SMSLoginResponse = z.infer<typeof SMSLoginResponseSchema>;
240
- type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
241
- type ApiKey = z.infer<typeof ApiKeySchema>;
242
- type ApiKeyCreated = z.infer<typeof ApiKeyCreatedSchema>;
243
- type ApiKeyFormData = z.infer<typeof ApiKeyFormDataSchema>;
244
- type ApiKeyScope = z.infer<typeof ApiKeyScopeSchema>;
245
- type ApiKeyScopesResponse = z.infer<typeof ApiKeyScopesResponseSchema>;
246
- type Organization = z.infer<typeof OrganizationSchema>;
247
- type AdminOrganization = z.infer<typeof AdminOrganizationSchema>;
248
- type CreateOrganizationRequest = z.infer<typeof CreateOrganizationRequestSchema>;
249
- type UpdateOrganizationRequest = z.infer<typeof UpdateOrganizationRequestSchema>;
250
- type AdminAccountMembership = z.infer<typeof AdminAccountMembershipSchema>;
251
- type AdminWorkspaceMemberFormData = z.infer<typeof AdminWorkspaceMemberFormDataSchema>;
252
- type AccountReportItem = z.infer<typeof AccountReportItemSchema>;
253
- type DuplicateAccountInfo = z.infer<typeof DuplicateAccountInfoSchema>;
254
- type MissingMembershipItem = z.infer<typeof MissingMembershipItemSchema>;
255
- type CreateAccountInput = z.infer<typeof CreateAccountSchema>;
256
-
257
- declare const ListCalendarsSchema: z.ZodObject<{
181
+ declare const GetDataTypeSchema: z.ZodObject<{
258
182
  wid: z.ZodString;
259
- page: z.ZodOptional<z.ZodNumber>;
260
- pageSize: z.ZodOptional<z.ZodNumber>;
261
- includeSchedules: z.ZodOptional<z.ZodBoolean>;
183
+ dataTypeId: z.ZodNumber;
262
184
  }, z.core.$strip>;
263
- declare const GetCalendarSchema: z.ZodObject<{
185
+ declare const GetDataTypeBySlugSchema: z.ZodObject<{
264
186
  wid: z.ZodString;
265
- calendarId: z.ZodNumber;
266
- includeSchedules: z.ZodOptional<z.ZodBoolean>;
187
+ slug: z.ZodString;
267
188
  }, z.core.$strip>;
268
- declare const CreateCalendarSchema: z.ZodObject<{
189
+ declare const CreateDataTypeSchema: z.ZodObject<{
269
190
  wid: z.ZodString;
270
191
  name: z.ZodString;
271
- slug: z.ZodOptional<z.ZodString>;
192
+ slug: z.ZodString;
272
193
  description: z.ZodOptional<z.ZodString>;
273
- timezone: z.ZodOptional<z.ZodString>;
274
- color: z.ZodOptional<z.ZodString>;
275
- isPublic: z.ZodOptional<z.ZodBoolean>;
276
- }, z.core.$strip>;
277
- declare const UpdateCalendarSchema: z.ZodObject<{
194
+ prompt: z.ZodOptional<z.ZodString>;
195
+ isCollection: z.ZodBoolean;
196
+ pinned: z.ZodOptional<z.ZodBoolean>;
197
+ webhookEventsEnabled: z.ZodOptional<z.ZodBoolean>;
198
+ recordScope: z.ZodOptional<z.ZodEnum<typeof DataTypeRecordScope>>;
199
+ adminOnly: z.ZodOptional<z.ZodBoolean>;
200
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
201
+ fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
202
+ slug: z.ZodString;
203
+ name: z.ZodString;
204
+ description: z.ZodOptional<z.ZodString>;
205
+ fieldType: z.ZodEnum<typeof DataFieldType>;
206
+ required: z.ZodBoolean;
207
+ order: z.ZodOptional<z.ZodNumber>;
208
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
209
+ label: z.ZodString;
210
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
211
+ visibleWhen: z.ZodOptional<z.ZodString>;
212
+ }, z.core.$strip>>>;
213
+ referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
214
+ referencedTypeId: z.ZodOptional<z.ZodNumber>;
215
+ shouldIndex: z.ZodOptional<z.ZodBoolean>;
216
+ adminOnly: z.ZodOptional<z.ZodBoolean>;
217
+ defaultValue: z.ZodOptional<z.ZodAny>;
218
+ sensitivity: z.ZodOptional<z.ZodEnum<typeof DataSensitivity>>;
219
+ categories: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof DataCategory>>>;
220
+ celFunction: z.ZodOptional<z.ZodString>;
221
+ validateCel: z.ZodOptional<z.ZodString>;
222
+ }, z.core.$strip>>>;
223
+ }, z.core.$strict>;
224
+ declare const UpdateDataTypeSchema: z.ZodObject<{
278
225
  wid: z.ZodString;
279
- calendarId: z.ZodNumber;
226
+ dataTypeId: z.ZodNumber;
280
227
  name: z.ZodOptional<z.ZodString>;
281
228
  slug: z.ZodOptional<z.ZodString>;
282
- description: z.ZodOptional<z.ZodString>;
283
- timezone: z.ZodOptional<z.ZodString>;
284
- color: z.ZodOptional<z.ZodString>;
285
- isPublic: z.ZodOptional<z.ZodBoolean>;
229
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
230
+ prompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
231
+ isCollection: z.ZodOptional<z.ZodBoolean>;
232
+ pinned: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
233
+ webhookEventsEnabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
234
+ recordScope: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof DataTypeRecordScope>>>;
235
+ adminOnly: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
236
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
237
+ slug: z.ZodString;
238
+ name: z.ZodString;
239
+ description: z.ZodOptional<z.ZodString>;
240
+ fieldType: z.ZodEnum<typeof DataFieldType>;
241
+ required: z.ZodBoolean;
242
+ order: z.ZodOptional<z.ZodNumber>;
243
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
244
+ label: z.ZodString;
245
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
246
+ visibleWhen: z.ZodOptional<z.ZodString>;
247
+ }, z.core.$strip>>>;
248
+ referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
249
+ referencedTypeId: z.ZodOptional<z.ZodNumber>;
250
+ shouldIndex: z.ZodOptional<z.ZodBoolean>;
251
+ adminOnly: z.ZodOptional<z.ZodBoolean>;
252
+ defaultValue: z.ZodOptional<z.ZodAny>;
253
+ sensitivity: z.ZodOptional<z.ZodEnum<typeof DataSensitivity>>;
254
+ categories: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof DataCategory>>>;
255
+ celFunction: z.ZodOptional<z.ZodString>;
256
+ validateCel: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strip>>>;
258
+ ownerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
259
+ }, z.core.$strict>;
260
+ declare const DeleteDataTypeSchema: z.ZodObject<{
261
+ wid: z.ZodString;
262
+ dataTypeId: z.ZodNumber;
286
263
  }, z.core.$strip>;
287
- declare const DeleteCalendarSchema: z.ZodObject<{
264
+ declare const ListDataRecordsSchema: z.ZodObject<{
288
265
  wid: z.ZodString;
289
- calendarId: z.ZodNumber;
266
+ dataTypeId: z.ZodNumber;
267
+ page: z.ZodOptional<z.ZodNumber>;
268
+ pageSize: z.ZodOptional<z.ZodNumber>;
269
+ search: z.ZodOptional<z.ZodString>;
270
+ searchField: z.ZodOptional<z.ZodString>;
271
+ memberId: z.ZodOptional<z.ZodNumber>;
290
272
  }, z.core.$strip>;
291
- declare const ListSchedulesSchema: z.ZodObject<{
273
+ declare const GetDataRecordSchema: z.ZodObject<{
292
274
  wid: z.ZodString;
293
- calendarId: z.ZodNumber;
275
+ recordId: z.ZodNumber;
294
276
  }, z.core.$strip>;
295
- declare const CreateScheduleSchema: z.ZodObject<{
277
+ declare const CreateDataRecordSchema: z.ZodObject<{
296
278
  wid: z.ZodString;
297
- calendarId: z.ZodNumber;
298
- name: z.ZodString;
299
- description: z.ZodOptional<z.ZodString>;
300
- availabilityType: z.ZodEnum<typeof CalendarScheduleAvailabilityType>;
301
- recurrenceType: z.ZodEnum<typeof CalendarScheduleRecurrence>;
302
- startTime: z.ZodString;
303
- endTime: z.ZodString;
304
- daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodEnum<{
305
- MONDAY: "MONDAY";
306
- TUESDAY: "TUESDAY";
307
- WEDNESDAY: "WEDNESDAY";
308
- THURSDAY: "THURSDAY";
309
- FRIDAY: "FRIDAY";
310
- SATURDAY: "SATURDAY";
311
- SUNDAY: "SUNDAY";
312
- }>>>;
313
- recurrenceRule: z.ZodOptional<z.ZodString>;
314
- recurrenceEndDate: z.ZodOptional<z.ZodString>;
315
- priority: z.ZodOptional<z.ZodNumber>;
316
- eventTypeIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
279
+ dataTypeId: z.ZodNumber;
280
+ memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
281
+ memberExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
282
+ fieldValues: z.ZodRecord<z.ZodString, z.ZodAny>;
283
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
284
+ assignmentTaskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
317
285
  }, z.core.$strip>;
318
- declare const UpdateScheduleSchema: z.ZodObject<{
286
+ declare const UpdateDataRecordSchema: z.ZodObject<{
319
287
  wid: z.ZodString;
320
- calendarId: z.ZodNumber;
321
- scheduleId: z.ZodNumber;
322
- name: z.ZodOptional<z.ZodString>;
323
- description: z.ZodOptional<z.ZodString>;
324
- availabilityType: z.ZodOptional<z.ZodEnum<typeof CalendarScheduleAvailabilityType>>;
325
- recurrenceType: z.ZodOptional<z.ZodEnum<typeof CalendarScheduleRecurrence>>;
326
- startTime: z.ZodOptional<z.ZodString>;
327
- endTime: z.ZodOptional<z.ZodString>;
328
- daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodEnum<{
329
- MONDAY: "MONDAY";
330
- TUESDAY: "TUESDAY";
331
- WEDNESDAY: "WEDNESDAY";
332
- THURSDAY: "THURSDAY";
333
- FRIDAY: "FRIDAY";
334
- SATURDAY: "SATURDAY";
335
- SUNDAY: "SUNDAY";
336
- }>>>;
337
- recurrenceRule: z.ZodOptional<z.ZodString>;
338
- recurrenceEndDate: z.ZodOptional<z.ZodString>;
339
- priority: z.ZodOptional<z.ZodNumber>;
340
- eventTypeIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
288
+ dataTypeId: z.ZodNumber;
289
+ recordId: z.ZodNumber;
290
+ fieldValues: z.ZodRecord<z.ZodString, z.ZodAny>;
291
+ memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
292
+ memberExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
294
+ assignmentTaskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
341
295
  }, z.core.$strip>;
342
- declare const DeleteScheduleSchema: z.ZodObject<{
296
+ declare const DeleteDataRecordSchema: z.ZodObject<{
343
297
  wid: z.ZodString;
344
- calendarId: z.ZodNumber;
345
- scheduleId: z.ZodNumber;
298
+ dataTypeId: z.ZodNumber;
299
+ recordId: z.ZodNumber;
346
300
  }, z.core.$strip>;
347
- declare const ListEventTypesSchema: z.ZodObject<{
301
+ declare const UpsertDataRecordSchema: z.ZodObject<{
348
302
  wid: z.ZodString;
303
+ dataTypeId: z.ZodNumber;
304
+ externalId: z.ZodString;
305
+ fieldValues: z.ZodRecord<z.ZodString, z.ZodAny>;
306
+ memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
307
+ memberExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
308
  }, z.core.$strip>;
350
- declare const GetEventTypeSchema: z.ZodObject<{
309
+ declare const ToggleFieldIndexSchema: z.ZodObject<{
351
310
  wid: z.ZodString;
352
- eventTypeId: z.ZodNumber;
311
+ dataTypeId: z.ZodNumber;
312
+ fieldSlug: z.ZodString;
313
+ shouldIndex: z.ZodBoolean;
353
314
  }, z.core.$strip>;
354
- declare const CreateEventTypeSchema: z.ZodObject<{
315
+ declare const GetFieldIndexStatusSchema: z.ZodObject<{
355
316
  wid: z.ZodString;
356
- name: z.ZodString;
357
- description: z.ZodOptional<z.ZodString>;
358
- defaultDurationMinutes: z.ZodNumber;
359
- bufferBeforeMinutes: z.ZodOptional<z.ZodNumber>;
360
- bufferAfterMinutes: z.ZodOptional<z.ZodNumber>;
361
- minAttendees: z.ZodOptional<z.ZodNumber>;
362
- maxAttendees: z.ZodOptional<z.ZodNumber>;
363
- color: z.ZodOptional<z.ZodString>;
364
- active: z.ZodOptional<z.ZodBoolean>;
317
+ dataTypeId: z.ZodNumber;
318
+ fieldSlug: z.ZodString;
365
319
  }, z.core.$strip>;
366
- declare const UpdateEventTypeSchema: z.ZodObject<{
320
+ declare const AddDataFieldSchema: z.ZodObject<{
367
321
  wid: z.ZodString;
368
- eventTypeId: z.ZodNumber;
369
- name: z.ZodOptional<z.ZodString>;
322
+ dataTypeId: z.ZodNumber;
323
+ name: z.ZodString;
324
+ slug: z.ZodString;
370
325
  description: z.ZodOptional<z.ZodString>;
371
- defaultDurationMinutes: z.ZodOptional<z.ZodNumber>;
372
- bufferBeforeMinutes: z.ZodOptional<z.ZodNumber>;
373
- bufferAfterMinutes: z.ZodOptional<z.ZodNumber>;
374
- minAttendees: z.ZodOptional<z.ZodNumber>;
375
- maxAttendees: z.ZodOptional<z.ZodNumber>;
376
- color: z.ZodOptional<z.ZodString>;
377
- active: z.ZodOptional<z.ZodBoolean>;
378
- }, z.core.$strip>;
379
- declare const DeleteEventTypeSchema: z.ZodObject<{
380
- wid: z.ZodString;
381
- eventTypeId: z.ZodNumber;
382
- }, z.core.$strip>;
383
- declare const ListCalendarEventsSchema: z.ZodObject<{
384
- wid: z.ZodString;
385
- calendarId: z.ZodOptional<z.ZodNumber>;
386
- startDate: z.ZodOptional<z.ZodString>;
387
- endDate: z.ZodOptional<z.ZodString>;
388
- status: z.ZodOptional<z.ZodEnum<typeof CalendarEventStatus>>;
389
- memberId: z.ZodOptional<z.ZodNumber>;
390
- limit: z.ZodOptional<z.ZodNumber>;
391
- offset: z.ZodOptional<z.ZodNumber>;
326
+ required: z.ZodDefault<z.ZodBoolean>;
327
+ fieldType: z.ZodEnum<typeof DataFieldType>;
328
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
329
+ label: z.ZodString;
330
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
331
+ visibleWhen: z.ZodOptional<z.ZodString>;
332
+ }, z.core.$strip>>>;
333
+ referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
334
+ referencedTypeId: z.ZodOptional<z.ZodNumber>;
335
+ shouldIndex: z.ZodOptional<z.ZodBoolean>;
336
+ adminOnly: z.ZodOptional<z.ZodBoolean>;
392
337
  }, z.core.$strip>;
393
- declare const GetCalendarEventSchema: z.ZodObject<{
338
+ declare const RemoveDataFieldSchema: z.ZodObject<{
394
339
  wid: z.ZodString;
395
- eventId: z.ZodNumber;
340
+ dataTypeId: z.ZodNumber;
341
+ fieldId: z.ZodNumber;
396
342
  }, z.core.$strip>;
397
- declare const CreateCalendarEventSchema: z.ZodObject<{
343
+ declare const UpdateDataFieldSchema: z.ZodObject<{
398
344
  wid: z.ZodString;
399
- calendarId: z.ZodNumber;
400
- eventTypeId: z.ZodNumber;
401
- title: z.ZodString;
402
- startTime: z.ZodString;
403
- attendeeIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
404
- workflowId: z.ZodOptional<z.ZodNumber>;
405
- workflowRevisionId: z.ZodOptional<z.ZodNumber>;
406
- taskId: z.ZodOptional<z.ZodNumber>;
345
+ dataTypeId: z.ZodNumber;
346
+ fieldId: z.ZodNumber;
347
+ name: z.ZodOptional<z.ZodString>;
348
+ slug: z.ZodOptional<z.ZodString>;
407
349
  description: z.ZodOptional<z.ZodString>;
408
- location: z.ZodOptional<z.ZodString>;
350
+ required: z.ZodOptional<z.ZodBoolean>;
351
+ fieldType: z.ZodOptional<z.ZodEnum<typeof DataFieldType>>;
352
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
353
+ label: z.ZodString;
354
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
355
+ visibleWhen: z.ZodOptional<z.ZodString>;
356
+ }, z.core.$strip>>>;
357
+ referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
358
+ referencedTypeId: z.ZodOptional<z.ZodNumber>;
359
+ shouldIndex: z.ZodOptional<z.ZodBoolean>;
360
+ adminOnly: z.ZodOptional<z.ZodBoolean>;
409
361
  }, z.core.$strip>;
410
- declare const UpdateCalendarEventSchema: z.ZodObject<{
411
- wid: z.ZodString;
412
- eventId: z.ZodNumber;
413
- title: z.ZodOptional<z.ZodString>;
414
- description: z.ZodOptional<z.ZodString>;
415
- location: z.ZodOptional<z.ZodString>;
416
- startTime: z.ZodOptional<z.ZodString>;
362
+ declare const DataRecordRetirementSchema: z.ZodObject<{
363
+ status: z.ZodLiteral<"retired">;
364
+ reason: z.ZodEnum<{
365
+ monday_item_archived: "monday_item_archived";
366
+ monday_item_deleted: "monday_item_deleted";
367
+ }>;
368
+ source: z.ZodLiteral<"monday">;
417
369
  }, z.core.$strip>;
418
- declare const CancelCalendarEventSchema: z.ZodObject<{
419
- wid: z.ZodString;
420
- eventId: z.ZodNumber;
421
- cancellationReason: z.ZodOptional<z.ZodString>;
370
+ declare const DataRecordSchema: z.ZodObject<{
371
+ id: z.ZodNumber;
372
+ uuid: z.ZodString;
373
+ dataTypeId: z.ZodNumber;
374
+ memberId: z.ZodNullable<z.ZodNumber>;
375
+ fieldValues: z.ZodRecord<z.ZodString, z.ZodAny>;
376
+ externalId: z.ZodOptional<z.ZodString>;
377
+ assignmentTaskId: z.ZodOptional<z.ZodNumber>;
378
+ createdAt: z.ZodString;
379
+ updatedAt: z.ZodString;
380
+ retirement: z.ZodOptional<z.ZodNullable<z.ZodObject<{
381
+ status: z.ZodLiteral<"retired">;
382
+ reason: z.ZodEnum<{
383
+ monday_item_archived: "monday_item_archived";
384
+ monday_item_deleted: "monday_item_deleted";
385
+ }>;
386
+ source: z.ZodLiteral<"monday">;
387
+ }, z.core.$strip>>>;
422
388
  }, z.core.$strip>;
423
- declare const DeleteCalendarEventSchema: z.ZodObject<{
424
- wid: z.ZodString;
425
- eventId: z.ZodNumber;
389
+ declare const DataRecordFormDataSchema: z.ZodObject<{
390
+ memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
391
+ memberExternalId: z.ZodOptional<z.ZodString>;
392
+ fieldValues: z.ZodRecord<z.ZodString, z.ZodAny>;
393
+ externalId: z.ZodOptional<z.ZodString>;
394
+ assignmentTaskId: z.ZodOptional<z.ZodNumber>;
426
395
  }, z.core.$strip>;
427
- declare const CheckAvailabilitySchema: z.ZodObject<{
428
- wid: z.ZodString;
429
- calendarId: z.ZodNumber;
430
- eventTypeId: z.ZodNumber;
431
- startTime: z.ZodString;
432
- endTime: z.ZodString;
396
+ declare const DataRecordsPaginatedResponseSchema: z.ZodObject<{
397
+ items: z.ZodArray<z.ZodObject<{
398
+ id: z.ZodNumber;
399
+ uuid: z.ZodString;
400
+ dataTypeId: z.ZodNumber;
401
+ memberId: z.ZodNullable<z.ZodNumber>;
402
+ fieldValues: z.ZodRecord<z.ZodString, z.ZodAny>;
403
+ externalId: z.ZodOptional<z.ZodString>;
404
+ assignmentTaskId: z.ZodOptional<z.ZodNumber>;
405
+ createdAt: z.ZodString;
406
+ updatedAt: z.ZodString;
407
+ retirement: z.ZodOptional<z.ZodNullable<z.ZodObject<{
408
+ status: z.ZodLiteral<"retired">;
409
+ reason: z.ZodEnum<{
410
+ monday_item_archived: "monday_item_archived";
411
+ monday_item_deleted: "monday_item_deleted";
412
+ }>;
413
+ source: z.ZodLiteral<"monday">;
414
+ }, z.core.$strip>>>;
415
+ }, z.core.$strip>>;
416
+ total: z.ZodNumber;
417
+ page: z.ZodNumber;
418
+ pageSize: z.ZodNumber;
419
+ totalPages: z.ZodNumber;
433
420
  }, z.core.$strip>;
434
- declare const GetAvailableSlotsSchema: z.ZodObject<{
435
- wid: z.ZodString;
436
- calendarId: z.ZodNumber;
437
- eventTypeId: z.ZodNumber;
438
- startDate: z.ZodString;
439
- endDate: z.ZodString;
440
- slotIntervalMinutes: z.ZodOptional<z.ZodNumber>;
421
+ declare const DataRecordWithAccessModeSchema: z.ZodObject<{
422
+ id: z.ZodNumber;
423
+ uuid: z.ZodString;
424
+ dataTypeId: z.ZodNumber;
425
+ memberId: z.ZodNullable<z.ZodNumber>;
426
+ fieldValues: z.ZodRecord<z.ZodString, z.ZodAny>;
427
+ externalId: z.ZodOptional<z.ZodString>;
428
+ assignmentTaskId: z.ZodOptional<z.ZodNumber>;
429
+ createdAt: z.ZodString;
430
+ updatedAt: z.ZodString;
431
+ retirement: z.ZodOptional<z.ZodNullable<z.ZodObject<{
432
+ status: z.ZodLiteral<"retired">;
433
+ reason: z.ZodEnum<{
434
+ monday_item_archived: "monday_item_archived";
435
+ monday_item_deleted: "monday_item_deleted";
436
+ }>;
437
+ source: z.ZodLiteral<"monday">;
438
+ }, z.core.$strip>>>;
439
+ accessMode: z.ZodNumber;
441
440
  }, z.core.$strip>;
442
- declare const UpdateAttendeeResponseSchema: z.ZodObject<{
443
- wid: z.ZodString;
444
- eventId: z.ZodNumber;
445
- memberId: z.ZodNumber;
446
- responseStatus: z.ZodEnum<typeof AttendeeResponseStatus>;
447
- note: z.ZodOptional<z.ZodString>;
441
+ declare const DataRecordAssociationFormDataSchema: z.ZodObject<{
442
+ id: z.ZodNumber;
443
+ accessMode: z.ZodNumber;
448
444
  }, z.core.$strip>;
449
- declare const GenerateICalTokenSchema: z.ZodObject<{
450
- wid: z.ZodString;
451
- calendarId: z.ZodNumber;
452
- regenerate: z.ZodOptional<z.ZodBoolean>;
445
+ declare const DataRecordReportItemSchema: z.ZodObject<{
446
+ id: z.ZodNumber;
447
+ data_type_id: z.ZodNumber;
448
+ data_type_name: z.ZodString;
449
+ data_type_slug: z.ZodString;
450
+ values: z.ZodRecord<z.ZodString, z.ZodAny>;
451
+ created_at: z.ZodString;
452
+ updated_at: z.ZodString;
453
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
453
454
  }, z.core.$strip>;
454
- declare const RevokeICalTokenSchema: z.ZodObject<{
455
- wid: z.ZodString;
456
- calendarId: z.ZodNumber;
455
+ declare const DataIntegrityReportItemSchema: z.ZodObject<{
456
+ issue_type: z.ZodString;
457
+ data_type_id: z.ZodOptional<z.ZodNumber>;
458
+ data_type_name: z.ZodOptional<z.ZodString>;
459
+ record_id: z.ZodOptional<z.ZodNumber>;
460
+ field_name: z.ZodOptional<z.ZodString>;
461
+ details: z.ZodString;
457
462
  }, z.core.$strip>;
458
- declare const GetICalUrlSchema: z.ZodObject<{
459
- wid: z.ZodString;
460
- calendarId: z.ZodNumber;
463
+ declare const DataTypeExportItemSchema: z.ZodObject<{
464
+ uuid: z.ZodString;
465
+ templateUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
466
+ name: z.ZodString;
467
+ slug: z.ZodString;
468
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
+ prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
+ isCollection: z.ZodBoolean;
471
+ recordScope: z.ZodEnum<typeof DataTypeRecordScope>;
472
+ fields: z.ZodArray<z.ZodObject<{
473
+ slug: z.ZodString;
474
+ name: z.ZodString;
475
+ description: z.ZodOptional<z.ZodString>;
476
+ fieldType: z.ZodEnum<typeof DataFieldType>;
477
+ required: z.ZodBoolean;
478
+ order: z.ZodOptional<z.ZodNumber>;
479
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
480
+ label: z.ZodString;
481
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
482
+ visibleWhen: z.ZodOptional<z.ZodString>;
483
+ }, z.core.$strip>>>;
484
+ referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
485
+ referencedTypeId: z.ZodOptional<z.ZodNumber>;
486
+ shouldIndex: z.ZodOptional<z.ZodBoolean>;
487
+ adminOnly: z.ZodOptional<z.ZodBoolean>;
488
+ defaultValue: z.ZodOptional<z.ZodAny>;
489
+ sensitivity: z.ZodOptional<z.ZodEnum<typeof DataSensitivity>>;
490
+ categories: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof DataCategory>>>;
491
+ celFunction: z.ZodOptional<z.ZodString>;
492
+ validateCel: z.ZodOptional<z.ZodString>;
493
+ }, z.core.$strip>>;
461
494
  }, z.core.$strip>;
462
- type ListCalendarsInput = z.infer<typeof ListCalendarsSchema>;
463
- type GetCalendarInput = z.infer<typeof GetCalendarSchema>;
464
- type CreateCalendarInput = z.infer<typeof CreateCalendarSchema>;
465
- type UpdateCalendarInput = z.infer<typeof UpdateCalendarSchema>;
466
- type DeleteCalendarInput = z.infer<typeof DeleteCalendarSchema>;
467
- type ListSchedulesInput = z.infer<typeof ListSchedulesSchema>;
468
- type CreateScheduleInput = z.infer<typeof CreateScheduleSchema>;
469
- type UpdateScheduleInput = z.infer<typeof UpdateScheduleSchema>;
470
- type DeleteScheduleInput = z.infer<typeof DeleteScheduleSchema>;
471
- type ListEventTypesInput = z.infer<typeof ListEventTypesSchema>;
472
- type GetEventTypeInput = z.infer<typeof GetEventTypeSchema>;
473
- type CreateEventTypeInput = z.infer<typeof CreateEventTypeSchema>;
474
- type UpdateEventTypeInput = z.infer<typeof UpdateEventTypeSchema>;
475
- type DeleteEventTypeInput = z.infer<typeof DeleteEventTypeSchema>;
476
- type ListCalendarEventsInput = z.infer<typeof ListCalendarEventsSchema>;
477
- type GetCalendarEventInput = z.infer<typeof GetCalendarEventSchema>;
478
- type CreateCalendarEventInput = z.infer<typeof CreateCalendarEventSchema>;
479
- type UpdateCalendarEventInput = z.infer<typeof UpdateCalendarEventSchema>;
480
- type CancelCalendarEventInput = z.infer<typeof CancelCalendarEventSchema>;
481
- type DeleteCalendarEventInput = z.infer<typeof DeleteCalendarEventSchema>;
482
- type CheckAvailabilityInput = z.infer<typeof CheckAvailabilitySchema>;
483
- type GetAvailableSlotsInput = z.infer<typeof GetAvailableSlotsSchema>;
484
- type UpdateAttendeeResponseInput = z.infer<typeof UpdateAttendeeResponseSchema>;
485
- type GenerateICalTokenInput = z.infer<typeof GenerateICalTokenSchema>;
486
- type RevokeICalTokenInput = z.infer<typeof RevokeICalTokenSchema>;
487
- type GetICalUrlInput = z.infer<typeof GetICalUrlSchema>;
495
+ declare const TaskExportDataTypeRelationSchema: z.ZodObject<{
496
+ dataTypeUuid: z.ZodString;
497
+ accessMode: z.ZodNumber;
498
+ }, z.core.$strip>;
499
+ type DataField = z.infer<typeof DataFieldSchema>;
500
+ type DataFieldFormData = z.infer<typeof DataFieldFormDataSchema>;
501
+ type SchemaField = z.infer<typeof SchemaFieldSchema>;
502
+ type SchemaFieldFormData = z.infer<typeof SchemaFieldFormDataSchema>;
503
+ type DataType = z.infer<typeof DataTypeSchema>;
504
+ type DataTypeFormData = z.infer<typeof DataTypeFormDataSchema>;
505
+ type DataRecord = z.infer<typeof DataRecordSchema>;
506
+ type DataRecordRetirement = z.infer<typeof DataRecordRetirementSchema>;
507
+ type DataRecordFormData = z.infer<typeof DataRecordFormDataSchema>;
508
+ type DataRecordsPaginatedResponse = z.infer<typeof DataRecordsPaginatedResponseSchema>;
509
+ type DataRecordWithAccessMode = z.infer<typeof DataRecordWithAccessModeSchema>;
510
+ type DataRecordAssociationFormData = z.infer<typeof DataRecordAssociationFormDataSchema>;
511
+ type DataRecordReportItem = z.infer<typeof DataRecordReportItemSchema>;
512
+ type DataIntegrityReportItem = z.infer<typeof DataIntegrityReportItemSchema>;
513
+ type DataTypeExportItem = z.infer<typeof DataTypeExportItemSchema>;
514
+ type TaskExportDataTypeRelation = z.infer<typeof TaskExportDataTypeRelationSchema>;
515
+ type DataRecordFilters = z.infer<typeof DataRecordFiltersSchema>;
516
+ type ListDataTypesInput = z.infer<typeof ListDataTypesSchema>;
517
+ type GetDataTypeInput = z.infer<typeof GetDataTypeSchema>;
518
+ type GetDataTypeBySlugInput = z.infer<typeof GetDataTypeBySlugSchema>;
519
+ type CreateDataTypeInput = z.infer<typeof CreateDataTypeSchema>;
520
+ type UpdateDataTypeInput = z.infer<typeof UpdateDataTypeSchema>;
521
+ type DeleteDataTypeInput = z.infer<typeof DeleteDataTypeSchema>;
522
+ type ListDataRecordsInput = z.infer<typeof ListDataRecordsSchema>;
523
+ type GetDataRecordInput = z.infer<typeof GetDataRecordSchema>;
524
+ type CreateDataRecordInput = z.infer<typeof CreateDataRecordSchema>;
525
+ type UpdateDataRecordInput = z.infer<typeof UpdateDataRecordSchema>;
526
+ type DeleteDataRecordInput = z.infer<typeof DeleteDataRecordSchema>;
527
+ type UpsertDataRecordInput = z.infer<typeof UpsertDataRecordSchema>;
528
+ type ToggleFieldIndexInput = z.infer<typeof ToggleFieldIndexSchema>;
529
+ type GetFieldIndexStatusInput = z.infer<typeof GetFieldIndexStatusSchema>;
530
+ type AddDataFieldInput = z.infer<typeof AddDataFieldSchema>;
531
+ type RemoveDataFieldInput = z.infer<typeof RemoveDataFieldSchema>;
532
+ type UpdateDataFieldInput = z.infer<typeof UpdateDataFieldSchema>;
488
533
 
489
- declare const ChannelEnum: z.ZodEnum<{
490
- email: "email";
491
- routine: "routine";
492
- fax: "fax";
493
- cli: "cli";
494
- frame: "frame";
495
- "phone-sms": "phone-sms";
496
- "phone-voice": "phone-voice";
497
- "phone-whatsapp": "phone-whatsapp";
498
- background: "background";
499
- "web-chat": "web-chat";
500
- "web-voice": "web-voice";
501
- discord: "discord";
502
- slack: "slack";
503
- teams: "teams";
504
- "direct-message": "direct-message";
505
- a2a: "a2a";
506
- }>;
507
- declare const MessageRoleEnum: z.ZodEnum<{
508
- function: "function";
509
- system: "system";
510
- user: "user";
511
- assistant: "assistant";
512
- tool: "tool";
513
- }>;
514
- declare const ChatFilterObjectTypeEnum: z.ZodEnum<{
515
- title: "title";
516
- owner: "owner";
517
- participant: "participant";
518
- mode: "mode";
519
- channel: "channel";
520
- needsResponse: "needsResponse";
521
- paused: "paused";
522
- messageCount: "messageCount";
523
- toolCall: "toolCall";
524
- }>;
525
- declare const ChatFilterFilterTypeEnum: z.ZodEnum<{
526
- any: "any";
527
- none: "none";
528
- active: "active";
529
- all: "all";
530
- partial: "partial";
531
- exact: "exact";
532
- equals: "equals";
533
- notEquals: "notEquals";
534
- onlyMine: "onlyMine";
535
- }>;
536
- declare const ChatMuteReasonEnum: z.ZodEnum<{
537
- working: "working";
538
- waiting_on_person: "waiting_on_person";
539
- resolved_elsewhere: "resolved_elsewhere";
540
- not_mine: "not_mine";
541
- }>;
542
- declare const TruncationReasonEnum: z.ZodEnum<{
543
- error: "error";
544
- barge_in: "barge_in";
545
- client_interrupt: "client_interrupt";
546
- user_cancel: "user_cancel";
547
- }>;
548
- declare const MessageOriginEnum: z.ZodEnum<{
549
- member: "member";
550
- workflow: "workflow";
551
- tool: "tool";
552
- agent: "agent";
553
- operator: "operator";
554
- engine_action: "engine_action";
555
- background_run: "background_run";
556
- platform: "platform";
557
- }>;
558
- declare const MessageAudienceEnum: z.ZodEnum<{
559
- conversation: "conversation";
560
- agent_only: "agent_only";
561
- }>;
562
- declare const ChatParticipantFormDataSchema: z.ZodObject<{
563
- memberId: z.ZodOptional<z.ZodNumber>;
564
- role: z.ZodOptional<z.ZodString>;
565
- additionalInstructions: z.ZodOptional<z.ZodString>;
534
+ declare const AccountFormDataSchema: z.ZodObject<{
535
+ name: z.ZodOptional<z.ZodString>;
536
+ tosAccepted: z.ZodOptional<z.ZodBoolean>;
537
+ optedOut: z.ZodOptional<z.ZodBoolean>;
538
+ locale: z.ZodOptional<z.ZodString>;
539
+ timezone: z.ZodOptional<z.ZodString>;
566
540
  }, z.core.$strip>;
567
- declare const HumanChatParticipantSchema: z.ZodObject<{
568
- name: z.ZodString;
569
- role: z.ZodLiteral<"user">;
570
- memberId: z.ZodNumber;
541
+ declare const AdminAccountFormDataSchema: z.ZodObject<{
542
+ name: z.ZodOptional<z.ZodString>;
543
+ tosAccepted: z.ZodOptional<z.ZodBoolean>;
544
+ optedOut: z.ZodOptional<z.ZodBoolean>;
545
+ locale: z.ZodOptional<z.ZodString>;
546
+ timezone: z.ZodOptional<z.ZodString>;
547
+ email: z.ZodOptional<z.ZodString>;
548
+ phone: z.ZodOptional<z.ZodString>;
549
+ isSuperuser: z.ZodOptional<z.ZodBoolean>;
550
+ enabled: z.ZodOptional<z.ZodBoolean>;
551
+ orgOwner: z.ZodOptional<z.ZodBoolean>;
552
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
553
+ stripeCustomerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
571
554
  }, z.core.$strip>;
572
- declare const AssistantChatParticipantSchema: z.ZodObject<{
573
- name: z.ZodString;
574
- memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
575
- memberType: z.ZodOptional<z.ZodString>;
576
- role: z.ZodLiteral<"assistant">;
577
- additionalInstructions: z.ZodOptional<z.ZodString>;
555
+ declare const AccountSchema: z.ZodObject<{
556
+ id: z.ZodNumber;
557
+ loggedIn: z.ZodBoolean;
558
+ avatarUrl: z.ZodNullable<z.ZodString>;
559
+ email: z.ZodNullable<z.ZodString>;
560
+ phone: z.ZodNullable<z.ZodString>;
561
+ name: z.ZodNullable<z.ZodString>;
562
+ uuid: z.ZodString;
563
+ createdAt: z.ZodString;
564
+ isSuperuser: z.ZodBoolean;
565
+ orgOwner: z.ZodBoolean;
566
+ enabled: z.ZodBoolean;
567
+ tosAccepted: z.ZodBoolean;
568
+ optedOut: z.ZodBoolean;
569
+ signupWorkspaceId: z.ZodNullable<z.ZodNumber>;
570
+ stripeCustomerId: z.ZodNullable<z.ZodString>;
571
+ organizationId: z.ZodNullable<z.ZodNumber>;
572
+ organizationName: z.ZodNullable<z.ZodString>;
573
+ locale: z.ZodNullable<z.ZodString>;
578
574
  }, z.core.$strip>;
579
- declare const ContributorChatParticipantSchema: z.ZodObject<{
580
- name: z.ZodString;
581
- memberId: z.ZodNumber;
582
- memberType: z.ZodOptional<z.ZodString>;
583
- role: z.ZodLiteral<"contributor">;
584
- additionalInstructions: z.ZodOptional<z.ZodString>;
575
+ declare const LoginRequestSchema: z.ZodObject<{
576
+ phoneNumber: z.ZodString;
577
+ organizationId: z.ZodOptional<z.ZodNumber>;
578
+ isSignUp: z.ZodOptional<z.ZodBoolean>;
585
579
  }, z.core.$strip>;
586
- declare const SupervisorChatParticipantSchema: z.ZodObject<{
587
- name: z.ZodString;
588
- memberId: z.ZodNumber;
589
- memberType: z.ZodOptional<z.ZodString>;
590
- role: z.ZodLiteral<"supervisor">;
591
- }, z.core.$strip>;
592
- declare const ChatFormDataSchema: z.ZodObject<{
593
- id: z.ZodOptional<z.ZodNumber>;
594
- title: z.ZodOptional<z.ZodString>;
595
- channel: z.ZodString;
596
- workflowId: z.ZodNullable<z.ZodNumber>;
597
- workflowUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
598
- workflowRevisionId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
599
- workflowRevisionUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
600
- phoneNumberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
601
- siteId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
602
- browserChannel: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
603
- "web-chat": "web-chat";
604
- "web-voice": "web-voice";
605
- }>>>;
606
- interactionMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
607
- text: "text";
608
- push_to_talk: "push_to_talk";
609
- realtime: "realtime";
610
- }>>>;
611
- memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
612
- participants: z.ZodArray<z.ZodObject<{
613
- memberId: z.ZodOptional<z.ZodNumber>;
614
- role: z.ZodOptional<z.ZodString>;
615
- additionalInstructions: z.ZodOptional<z.ZodString>;
616
- }, z.core.$strip>>;
617
- assistantKind: z.ZodOptional<z.ZodEnum<{
618
- ai: "ai";
619
- human: "human";
620
- }>>;
621
- userMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
622
- agentEnabled: z.ZodOptional<z.ZodBoolean>;
623
- assistantMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
624
- assistantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
625
- agentMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
626
- assistantChatModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
627
- assistantChatModelConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
628
- assistantRealtimeModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
629
- assistantRealtimeModelConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
630
- paused: z.ZodOptional<z.ZodBoolean>;
631
- muted: z.ZodOptional<z.ZodBoolean>;
632
- initialMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
580
+ declare const VerifyCodeRequestSchema: z.ZodObject<{
581
+ phoneNumber: z.ZodString;
582
+ code: z.ZodString;
583
+ isSignUp: z.ZodOptional<z.ZodBoolean>;
633
584
  }, z.core.$strip>;
634
- declare const ChatFiltersSchema: z.ZodObject<{
635
- page: z.ZodOptional<z.ZodNumber>;
636
- pageSize: z.ZodOptional<z.ZodNumber>;
637
- sortBy: z.ZodOptional<z.ZodString>;
638
- sortOrder: z.ZodOptional<z.ZodEnum<{
639
- asc: "asc";
640
- desc: "desc";
641
- }>>;
642
- mine: z.ZodOptional<z.ZodBoolean>;
643
- needsResponse: z.ZodOptional<z.ZodBoolean>;
644
- paused: z.ZodOptional<z.ZodBoolean>;
645
- archived: z.ZodOptional<z.ZodBoolean>;
646
- channel: z.ZodOptional<z.ZodString>;
647
- chatType: z.ZodOptional<z.ZodEnum<{
648
- contributor: "contributor";
649
- assignment: "assignment";
650
- manager: "manager";
651
- dm: "dm";
652
- }>>;
585
+ declare const VerifyCodeResponseSchema: z.ZodObject<{
586
+ success: z.ZodBoolean;
587
+ token: z.ZodOptional<z.ZodString>;
588
+ requiresTwoFactor: z.ZodOptional<z.ZodBoolean>;
589
+ availableTwoFactorMethods: z.ZodOptional<z.ZodArray<z.ZodAny>>;
653
590
  }, z.core.$strip>;
654
- declare const ListChatsSchema: z.ZodObject<{
655
- wid: z.ZodString;
656
- page: z.ZodOptional<z.ZodNumber>;
657
- pageSize: z.ZodOptional<z.ZodNumber>;
658
- sortBy: z.ZodOptional<z.ZodString>;
659
- sortOrder: z.ZodOptional<z.ZodEnum<{
660
- asc: "asc";
661
- desc: "desc";
662
- }>>;
663
- mine: z.ZodOptional<z.ZodBoolean>;
664
- needsResponse: z.ZodOptional<z.ZodBoolean>;
665
- paused: z.ZodOptional<z.ZodBoolean>;
666
- archived: z.ZodOptional<z.ZodBoolean>;
667
- channel: z.ZodOptional<z.ZodString>;
668
- chatType: z.ZodOptional<z.ZodEnum<{
669
- contributor: "contributor";
670
- assignment: "assignment";
671
- manager: "manager";
672
- dm: "dm";
673
- }>>;
591
+ declare const LoginResponseSchema: z.ZodObject<{
592
+ token: z.ZodOptional<z.ZodString>;
593
+ accountId: z.ZodOptional<z.ZodNumber>;
674
594
  }, z.core.$strip>;
675
- declare const GetChatSchema: z.ZodObject<{
676
- wid: z.ZodString;
677
- chatId: z.ZodNumber;
595
+ declare const SMSLoginResponseSchema: z.ZodObject<{
596
+ success: z.ZodBoolean;
597
+ message: z.ZodOptional<z.ZodString>;
678
598
  }, z.core.$strip>;
679
- declare const CreateChatSchema: z.ZodObject<{
680
- wid: z.ZodString;
681
- id: z.ZodOptional<z.ZodNumber>;
682
- title: z.ZodOptional<z.ZodString>;
683
- channel: z.ZodString;
684
- workflowId: z.ZodNullable<z.ZodNumber>;
685
- workflowUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
686
- workflowRevisionId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
687
- workflowRevisionUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
688
- phoneNumberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
689
- siteId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
690
- browserChannel: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
691
- "web-chat": "web-chat";
692
- "web-voice": "web-voice";
693
- }>>>;
694
- interactionMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
695
- text: "text";
696
- push_to_talk: "push_to_talk";
697
- realtime: "realtime";
698
- }>>>;
699
- memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
700
- participants: z.ZodArray<z.ZodObject<{
701
- memberId: z.ZodOptional<z.ZodNumber>;
702
- role: z.ZodOptional<z.ZodString>;
703
- additionalInstructions: z.ZodOptional<z.ZodString>;
704
- }, z.core.$strip>>;
705
- assistantKind: z.ZodOptional<z.ZodEnum<{
706
- ai: "ai";
707
- human: "human";
708
- }>>;
709
- userMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
710
- agentEnabled: z.ZodOptional<z.ZodBoolean>;
711
- assistantMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
712
- assistantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
713
- agentMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
714
- assistantChatModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
715
- assistantChatModelConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
716
- assistantRealtimeModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
717
- assistantRealtimeModelConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
718
- paused: z.ZodOptional<z.ZodBoolean>;
719
- muted: z.ZodOptional<z.ZodBoolean>;
720
- initialMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
599
+ declare const ErrorResponseSchema: z.ZodObject<{
600
+ detail: z.ZodString;
721
601
  }, z.core.$strip>;
722
- declare const UpdateChatSchema: z.ZodObject<{
723
- wid: z.ZodString;
724
- chatId: z.ZodNumber;
725
- title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
726
- assignmentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
727
- phoneNumberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
728
- inboxId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
729
- paused: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
730
- labelIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
602
+ declare const ApiKeySchema: z.ZodObject<{
603
+ id: z.ZodNumber;
604
+ uuid: z.ZodString;
605
+ name: z.ZodString;
606
+ keyPrefix: z.ZodString;
607
+ createdAt: z.ZodString;
608
+ expiresAt: z.ZodNullable<z.ZodString>;
609
+ lastUsedAt: z.ZodNullable<z.ZodString>;
610
+ enabled: z.ZodBoolean;
611
+ scopes: z.ZodArray<z.ZodString>;
612
+ appId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
731
613
  }, z.core.$strip>;
732
- declare const DeleteChatSchema: z.ZodObject<{
733
- wid: z.ZodString;
734
- chatId: z.ZodNumber;
614
+ declare const ApiKeyCreatedSchema: z.ZodObject<{
615
+ id: z.ZodNumber;
616
+ uuid: z.ZodString;
617
+ name: z.ZodString;
618
+ keyPrefix: z.ZodString;
619
+ createdAt: z.ZodString;
620
+ expiresAt: z.ZodNullable<z.ZodString>;
621
+ lastUsedAt: z.ZodNullable<z.ZodString>;
622
+ enabled: z.ZodBoolean;
623
+ scopes: z.ZodArray<z.ZodString>;
624
+ appId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
625
+ key: z.ZodString;
735
626
  }, z.core.$strip>;
736
- declare const ArchiveChatSchema: z.ZodObject<{
737
- wid: z.ZodString;
738
- chatId: z.ZodNumber;
627
+ declare const ApiKeyFormDataSchema: z.ZodObject<{
628
+ name: z.ZodString;
629
+ expiresInDays: z.ZodNumber;
630
+ scopes: z.ZodArray<z.ZodString>;
739
631
  }, z.core.$strip>;
740
- declare const UnarchiveChatSchema: z.ZodObject<{
741
- wid: z.ZodString;
742
- chatId: z.ZodNumber;
632
+ declare const ApiKeyScopeSchema: z.ZodObject<{
633
+ name: z.ZodString;
634
+ description: z.ZodString;
635
+ value: z.ZodNumber;
743
636
  }, z.core.$strip>;
744
- declare const UpdateChatMuteSchema: z.ZodObject<{
745
- wid: z.ZodString;
746
- chatId: z.ZodNumber;
747
- muted: z.ZodBoolean;
748
- muteReason: z.ZodOptional<z.ZodEnum<{
749
- working: "working";
750
- waiting_on_person: "waiting_on_person";
751
- resolved_elsewhere: "resolved_elsewhere";
752
- not_mine: "not_mine";
753
- }>>;
754
- muteExpiresOnInbound: z.ZodOptional<z.ZodBoolean>;
637
+ declare const ApiKeyScopesResponseSchema: z.ZodObject<{
638
+ scopes: z.ZodArray<z.ZodObject<{
639
+ name: z.ZodString;
640
+ description: z.ZodString;
641
+ value: z.ZodNumber;
642
+ }, z.core.$strip>>;
755
643
  }, z.core.$strip>;
756
- declare const GetChatsNeedsResponseSchema: z.ZodObject<{
757
- wid: z.ZodString;
644
+ declare const OrganizationSchema: z.ZodObject<{
645
+ id: z.ZodNumber;
646
+ uuid: z.ZodString;
647
+ name: z.ZodString;
648
+ slug: z.ZodString;
649
+ authMode: z.ZodEnum<{
650
+ open: "open";
651
+ ssoForDomain: "ssoForDomain";
652
+ ssoOnly: "ssoOnly";
653
+ }>;
654
+ contactEmail: z.ZodOptional<z.ZodString>;
655
+ contactPhone: z.ZodOptional<z.ZodString>;
656
+ createdAt: z.ZodString;
657
+ creatorId: z.ZodNumber;
658
+ creatorName: z.ZodOptional<z.ZodString>;
758
659
  }, z.core.$strip>;
759
- declare const GetChatMessagesSchema: z.ZodObject<{
760
- wid: z.ZodString;
761
- chatId: z.ZodNumber;
762
- limit: z.ZodOptional<z.ZodNumber>;
660
+ declare const AdminOrganizationSchema: z.ZodObject<{
661
+ id: z.ZodNumber;
662
+ uuid: z.ZodString;
663
+ name: z.ZodString;
664
+ slug: z.ZodString;
665
+ authMode: z.ZodEnum<{
666
+ open: "open";
667
+ ssoForDomain: "ssoForDomain";
668
+ ssoOnly: "ssoOnly";
669
+ }>;
670
+ contactEmail: z.ZodOptional<z.ZodString>;
671
+ contactPhone: z.ZodOptional<z.ZodString>;
672
+ createdAt: z.ZodString;
673
+ creatorId: z.ZodNumber;
674
+ creatorName: z.ZodOptional<z.ZodString>;
675
+ accountCount: z.ZodNumber;
676
+ workspaceCount: z.ZodNumber;
677
+ enforceCreditLimit: z.ZodBoolean;
678
+ maxPhoneNumbers: z.ZodNumber;
679
+ maxA2pBrands: z.ZodNumber;
680
+ securityContactEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
681
+ securityContactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
682
+ defaultSecurityContactEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
683
+ defaultSecurityContactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
763
684
  }, z.core.$strip>;
764
- declare const SendChatMessageSchema: z.ZodObject<{
765
- wid: z.ZodString;
766
- chatId: z.ZodNumber;
767
- message: z.ZodString;
768
- model: z.ZodOptional<z.ZodString>;
769
- }, z.core.$strip>;
770
- declare const SendAssistantMessageSchema: z.ZodObject<{
771
- wid: z.ZodString;
772
- chatId: z.ZodNumber;
773
- message: z.ZodString;
774
- }, z.core.$strip>;
775
- declare const InitiateOutboundCallSchema: z.ZodObject<{
776
- wid: z.ZodString;
777
- chatId: z.ZodNumber;
778
- phoneNumberId: z.ZodNumber;
685
+ declare const CreateOrganizationRequestSchema: z.ZodObject<{
686
+ name: z.ZodString;
687
+ contactEmail: z.ZodOptional<z.ZodString>;
688
+ contactPhone: z.ZodOptional<z.ZodString>;
689
+ logo: z.ZodOptional<z.ZodString>;
690
+ logoMimeType: z.ZodOptional<z.ZodString>;
691
+ securityContactEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
692
+ securityContactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
779
693
  }, z.core.$strip>;
780
- declare const RateMessageSchema: z.ZodObject<{
781
- wid: z.ZodString;
782
- chatId: z.ZodNumber;
783
- messageUuid: z.ZodString;
784
- rating: z.ZodNumber;
694
+ declare const UpdateOrganizationRequestSchema: z.ZodObject<{
695
+ name: z.ZodOptional<z.ZodString>;
696
+ slug: z.ZodOptional<z.ZodString>;
697
+ contactEmail: z.ZodOptional<z.ZodString>;
698
+ contactPhone: z.ZodOptional<z.ZodString>;
699
+ authMode: z.ZodOptional<z.ZodEnum<{
700
+ open: "open";
701
+ ssoForDomain: "ssoForDomain";
702
+ ssoOnly: "ssoOnly";
703
+ }>>;
704
+ ssoProvider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
705
+ ssoDomain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
706
+ ssoAutoProvision: z.ZodOptional<z.ZodBoolean>;
707
+ ssoOidc: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
708
+ logo: z.ZodOptional<z.ZodString>;
709
+ logoMimeType: z.ZodOptional<z.ZodString>;
710
+ twilioSubAccountSid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
711
+ enforceCreditLimit: z.ZodOptional<z.ZodBoolean>;
712
+ maxPhoneNumbers: z.ZodOptional<z.ZodNumber>;
713
+ maxA2pBrands: z.ZodOptional<z.ZodNumber>;
714
+ securityContactEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
715
+ securityContactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
785
716
  }, z.core.$strip>;
786
- declare const CreateChatForWorkflowSchema: z.ZodObject<{
787
- wid: z.ZodString;
788
- workflowId: z.ZodNumber;
717
+ declare const AdminAccountMembershipSchema: z.ZodObject<{
718
+ workspaceUuid: z.ZodString;
719
+ workspaceName: z.ZodString;
720
+ role: z.ZodString;
721
+ createdAt: z.ZodString;
722
+ tosAccepted: z.ZodBoolean;
723
+ memberRoleId: z.ZodNullable<z.ZodNumber>;
789
724
  memberId: z.ZodNumber;
790
- agentId: z.ZodOptional<z.ZodNumber>;
791
- chatTitle: z.ZodOptional<z.ZodString>;
792
725
  }, z.core.$strip>;
793
- declare const CreateChatCompletionSchema: z.ZodObject<{
794
- wid: z.ZodString;
795
- chatId: z.ZodNumber;
796
- model: z.ZodOptional<z.ZodString>;
797
- messages: z.ZodArray<z.ZodObject<{
798
- id: z.ZodOptional<z.ZodString>;
799
- role: z.ZodString;
800
- content: z.ZodString;
801
- }, z.core.$strip>>;
726
+ declare const AdminWorkspaceMemberFormDataSchema: z.ZodObject<{
727
+ tosAccepted: z.ZodOptional<z.ZodBoolean>;
728
+ role: z.ZodOptional<z.ZodString>;
729
+ memberRoleId: z.ZodOptional<z.ZodNumber>;
802
730
  }, z.core.$strip>;
803
- declare const FunctionToolSchema: z.ZodObject<{
804
- type: z.ZodLiteral<"function">;
805
- function: z.ZodObject<{
806
- name: z.ZodString;
807
- description: z.ZodString;
808
- parameters: z.ZodRecord<z.ZodString, z.ZodAny>;
809
- }, z.core.$strip>;
731
+ declare const AccountReportItemSchema: z.ZodObject<{
732
+ id: z.ZodNumber;
733
+ uuid: z.ZodString;
734
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
735
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
736
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
737
+ created_at: z.ZodString;
738
+ organization_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
810
739
  }, z.core.$strip>;
811
- declare const ChatSchema: z.ZodObject<{
740
+ declare const DuplicateAccountInfoSchema: z.ZodObject<{
812
741
  id: z.ZodNumber;
813
- archived: z.ZodBoolean;
814
- muted: z.ZodBoolean;
815
- channel: z.ZodEnum<{
816
- email: "email";
817
- routine: "routine";
818
- fax: "fax";
819
- cli: "cli";
820
- frame: "frame";
821
- "phone-sms": "phone-sms";
822
- "phone-voice": "phone-voice";
823
- "phone-whatsapp": "phone-whatsapp";
824
- background: "background";
825
- "web-chat": "web-chat";
826
- "web-voice": "web-voice";
827
- discord: "discord";
828
- slack: "slack";
829
- teams: "teams";
830
- "direct-message": "direct-message";
831
- a2a: "a2a";
832
- }>;
833
- chatType: z.ZodString;
834
- paused: z.ZodBoolean;
835
- assignmentId: z.ZodNullable<z.ZodNumber>;
836
- workflowId: z.ZodNullable<z.ZodNumber>;
837
- phoneNumberId: z.ZodNullable<z.ZodNumber>;
838
- inboxId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
839
- siteId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
840
- folderId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
841
- fromMessageId: z.ZodNullable<z.ZodNumber>;
742
+ name: z.ZodNullable<z.ZodString>;
743
+ email: z.ZodNullable<z.ZodString>;
744
+ phone: z.ZodNullable<z.ZodString>;
745
+ organizationId: z.ZodNullable<z.ZodNumber>;
746
+ organizationName: z.ZodNullable<z.ZodString>;
842
747
  createdAt: z.ZodString;
843
- updatedAt: z.ZodString;
844
- title: z.ZodString;
845
- summary: z.ZodNullable<z.ZodString>;
846
- participants: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
847
- name: z.ZodString;
848
- role: z.ZodLiteral<"user">;
849
- memberId: z.ZodNumber;
850
- }, z.core.$strip>, z.ZodObject<{
851
- name: z.ZodString;
852
- memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
853
- memberType: z.ZodOptional<z.ZodString>;
854
- role: z.ZodLiteral<"assistant">;
855
- additionalInstructions: z.ZodOptional<z.ZodString>;
856
- }, z.core.$strip>, z.ZodObject<{
857
- name: z.ZodString;
858
- memberId: z.ZodNumber;
859
- memberType: z.ZodOptional<z.ZodString>;
860
- role: z.ZodLiteral<"contributor">;
861
- additionalInstructions: z.ZodOptional<z.ZodString>;
862
- }, z.core.$strip>, z.ZodObject<{
863
- name: z.ZodString;
864
- memberId: z.ZodNumber;
865
- memberType: z.ZodOptional<z.ZodString>;
866
- role: z.ZodLiteral<"supervisor">;
867
- }, z.core.$strip>]>>;
868
- canSendAsAssistant: z.ZodOptional<z.ZodBoolean>;
869
- }, z.core.$strip>;
870
- declare const ChatFilterRuleSchema: z.ZodObject<{
871
- objectType: z.ZodEnum<{
872
- title: "title";
873
- owner: "owner";
874
- participant: "participant";
875
- mode: "mode";
876
- channel: "channel";
877
- needsResponse: "needsResponse";
878
- paused: "paused";
879
- messageCount: "messageCount";
880
- toolCall: "toolCall";
881
- }>;
882
- filterType: z.ZodEnum<{
883
- any: "any";
884
- none: "none";
885
- active: "active";
886
- all: "all";
887
- partial: "partial";
888
- exact: "exact";
889
- equals: "equals";
890
- notEquals: "notEquals";
891
- onlyMine: "onlyMine";
892
- }>;
893
- objectIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
894
- query: z.ZodOptional<z.ZodString>;
895
748
  }, z.core.$strip>;
896
- declare const ChatFilterRuleFormDataSchema: z.ZodObject<{
897
- objectType: z.ZodEnum<{
898
- title: "title";
899
- owner: "owner";
900
- participant: "participant";
901
- mode: "mode";
902
- channel: "channel";
903
- needsResponse: "needsResponse";
904
- paused: "paused";
905
- messageCount: "messageCount";
906
- toolCall: "toolCall";
907
- }>;
908
- filterType: z.ZodEnum<{
909
- any: "any";
910
- none: "none";
911
- active: "active";
912
- all: "all";
913
- partial: "partial";
914
- exact: "exact";
915
- equals: "equals";
916
- notEquals: "notEquals";
917
- onlyMine: "onlyMine";
918
- }>;
919
- objectIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
920
- query: z.ZodOptional<z.ZodString>;
749
+ declare const MissingMembershipItemSchema: z.ZodObject<{
750
+ member_id: z.ZodNumber;
751
+ member_name: z.ZodString;
752
+ account_id: z.ZodNumber;
753
+ account_uuid: z.ZodString;
921
754
  }, z.core.$strip>;
922
- declare const ToolCallFunctionSchema: z.ZodObject<{
755
+ declare const CreateAccountSchema: z.ZodObject<{
923
756
  name: z.ZodString;
924
- arguments: z.ZodString;
757
+ email: z.ZodOptional<z.ZodString>;
758
+ phone: z.ZodOptional<z.ZodString>;
925
759
  }, z.core.$strip>;
926
- declare const ToolCallSchema: z.ZodObject<{
927
- id: z.ZodString;
928
- type: z.ZodLiteral<"function">;
929
- function: z.ZodObject<{
930
- name: z.ZodString;
931
- arguments: z.ZodString;
932
- }, z.core.$strip>;
760
+ type Account = z.infer<typeof AccountSchema>;
761
+ type AccountFormData = z.infer<typeof AccountFormDataSchema>;
762
+ type AdminAccountFormData = z.infer<typeof AdminAccountFormDataSchema>;
763
+ type LoginRequest = z.infer<typeof LoginRequestSchema>;
764
+ type VerifyCodeRequest = z.infer<typeof VerifyCodeRequestSchema>;
765
+ type VerifyCodeResponse = z.infer<typeof VerifyCodeResponseSchema>;
766
+ type LoginResponse = z.infer<typeof LoginResponseSchema>;
767
+ type SMSLoginResponse = z.infer<typeof SMSLoginResponseSchema>;
768
+ type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
769
+ type ApiKey = z.infer<typeof ApiKeySchema>;
770
+ type ApiKeyCreated = z.infer<typeof ApiKeyCreatedSchema>;
771
+ type ApiKeyFormData = z.infer<typeof ApiKeyFormDataSchema>;
772
+ type ApiKeyScope = z.infer<typeof ApiKeyScopeSchema>;
773
+ type ApiKeyScopesResponse = z.infer<typeof ApiKeyScopesResponseSchema>;
774
+ type Organization = z.infer<typeof OrganizationSchema>;
775
+ type AdminOrganization = z.infer<typeof AdminOrganizationSchema>;
776
+ type CreateOrganizationRequest = z.infer<typeof CreateOrganizationRequestSchema>;
777
+ type UpdateOrganizationRequest = z.infer<typeof UpdateOrganizationRequestSchema>;
778
+ type AdminAccountMembership = z.infer<typeof AdminAccountMembershipSchema>;
779
+ type AdminWorkspaceMemberFormData = z.infer<typeof AdminWorkspaceMemberFormDataSchema>;
780
+ type AccountReportItem = z.infer<typeof AccountReportItemSchema>;
781
+ type DuplicateAccountInfo = z.infer<typeof DuplicateAccountInfoSchema>;
782
+ type MissingMembershipItem = z.infer<typeof MissingMembershipItemSchema>;
783
+ type CreateAccountInput = z.infer<typeof CreateAccountSchema>;
784
+
785
+ declare const ListCalendarsSchema: z.ZodObject<{
786
+ wid: z.ZodString;
787
+ page: z.ZodOptional<z.ZodNumber>;
788
+ pageSize: z.ZodOptional<z.ZodNumber>;
789
+ includeSchedules: z.ZodOptional<z.ZodBoolean>;
933
790
  }, z.core.$strip>;
934
- declare const ToolResultSchema: z.ZodObject<{
935
- tool_call_id: z.ZodString;
936
- content: z.ZodString;
791
+ declare const GetCalendarSchema: z.ZodObject<{
792
+ wid: z.ZodString;
793
+ calendarId: z.ZodNumber;
794
+ includeSchedules: z.ZodOptional<z.ZodBoolean>;
937
795
  }, z.core.$strip>;
938
- declare const TextContentSchema: z.ZodObject<{
939
- type: z.ZodLiteral<"text">;
940
- text: z.ZodString;
796
+ declare const CreateCalendarSchema: z.ZodObject<{
797
+ wid: z.ZodString;
798
+ name: z.ZodString;
799
+ slug: z.ZodOptional<z.ZodString>;
800
+ description: z.ZodOptional<z.ZodString>;
801
+ timezone: z.ZodOptional<z.ZodString>;
802
+ color: z.ZodOptional<z.ZodString>;
803
+ isPublic: z.ZodOptional<z.ZodBoolean>;
941
804
  }, z.core.$strip>;
942
- declare const ImageUrlContentSchema: z.ZodObject<{
943
- type: z.ZodLiteral<"image_url">;
944
- image_url: z.ZodObject<{
945
- url: z.ZodString;
946
- }, z.core.$strip>;
805
+ declare const UpdateCalendarSchema: z.ZodObject<{
806
+ wid: z.ZodString;
807
+ calendarId: z.ZodNumber;
808
+ name: z.ZodOptional<z.ZodString>;
809
+ slug: z.ZodOptional<z.ZodString>;
810
+ description: z.ZodOptional<z.ZodString>;
811
+ timezone: z.ZodOptional<z.ZodString>;
812
+ color: z.ZodOptional<z.ZodString>;
813
+ isPublic: z.ZodOptional<z.ZodBoolean>;
947
814
  }, z.core.$strip>;
948
- declare const MessageContentPartSchema: z.ZodUnion<readonly [z.ZodObject<{
949
- type: z.ZodLiteral<"text">;
950
- text: z.ZodString;
951
- }, z.core.$strip>, z.ZodObject<{
952
- type: z.ZodLiteral<"image_url">;
953
- image_url: z.ZodObject<{
954
- url: z.ZodString;
955
- }, z.core.$strip>;
956
- }, z.core.$strip>]>;
957
- declare const ChatMessageObjectSchema: z.ZodObject<{
958
- role: z.ZodEnum<{
959
- function: "function";
960
- system: "system";
961
- user: "user";
962
- assistant: "assistant";
963
- tool: "tool";
964
- }>;
965
- content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
966
- type: z.ZodLiteral<"text">;
967
- text: z.ZodString;
968
- }, z.core.$strip>, z.ZodObject<{
969
- type: z.ZodLiteral<"image_url">;
970
- image_url: z.ZodObject<{
971
- url: z.ZodString;
972
- }, z.core.$strip>;
973
- }, z.core.$strip>]>>]>>>;
974
- tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
975
- id: z.ZodString;
976
- type: z.ZodLiteral<"function">;
977
- function: z.ZodObject<{
978
- name: z.ZodString;
979
- arguments: z.ZodString;
980
- }, z.core.$strip>;
981
- }, z.core.$strip>>>;
982
- tool_call_id: z.ZodOptional<z.ZodString>;
815
+ declare const DeleteCalendarSchema: z.ZodObject<{
816
+ wid: z.ZodString;
817
+ calendarId: z.ZodNumber;
983
818
  }, z.core.$strip>;
984
- declare const ChatMessageAPIResponseSchema: z.ZodObject<{
985
- uuid: z.ZodString;
986
- id: z.ZodOptional<z.ZodString>;
987
- chatId: z.ZodNumber;
988
- participantRole: z.ZodEnum<{
989
- function: "function";
990
- system: "system";
991
- user: "user";
992
- assistant: "assistant";
993
- tool: "tool";
994
- }>;
995
- participantName: z.ZodString;
996
- participantId: z.ZodNullable<z.ZodNumber>;
997
- role: z.ZodEnum<{
998
- function: "function";
999
- system: "system";
1000
- user: "user";
1001
- assistant: "assistant";
1002
- tool: "tool";
1003
- }>;
1004
- content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1005
- type: z.ZodLiteral<"text">;
1006
- text: z.ZodString;
1007
- }, z.core.$strip>, z.ZodObject<{
1008
- type: z.ZodLiteral<"image_url">;
1009
- image_url: z.ZodObject<{
1010
- url: z.ZodString;
1011
- }, z.core.$strip>;
1012
- }, z.core.$strip>]>>]>>>;
1013
- originalContent: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1014
- type: z.ZodLiteral<"text">;
1015
- text: z.ZodString;
1016
- }, z.core.$strip>, z.ZodObject<{
1017
- type: z.ZodLiteral<"image_url">;
1018
- image_url: z.ZodObject<{
1019
- url: z.ZodString;
1020
- }, z.core.$strip>;
1021
- }, z.core.$strip>]>>]>>>;
1022
- truncationReason: z.ZodOptional<z.ZodEnum<{
1023
- error: "error";
1024
- barge_in: "barge_in";
1025
- client_interrupt: "client_interrupt";
1026
- user_cancel: "user_cancel";
1027
- }>>;
1028
- truncatedAtMs: z.ZodOptional<z.ZodNumber>;
1029
- reasoning_content: z.ZodOptional<z.ZodString>;
1030
- failed: z.ZodBoolean;
1031
- tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1032
- id: z.ZodString;
1033
- type: z.ZodLiteral<"function">;
1034
- function: z.ZodObject<{
1035
- name: z.ZodString;
1036
- arguments: z.ZodString;
1037
- }, z.core.$strip>;
1038
- }, z.core.$strip>>>;
1039
- tool_call_id: z.ZodOptional<z.ZodString>;
1040
- error_details: z.ZodOptional<z.ZodAny>;
1041
- createdAt: z.ZodString;
1042
- email_id: z.ZodOptional<z.ZodNumber>;
1043
- inbox_id: z.ZodOptional<z.ZodNumber>;
1044
- taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1045
- smsDeliveryStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1046
- smsDeliveryErrorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1047
- smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1048
- smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1049
- origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1050
- member: "member";
1051
- workflow: "workflow";
1052
- tool: "tool";
1053
- agent: "agent";
1054
- operator: "operator";
1055
- engine_action: "engine_action";
1056
- background_run: "background_run";
1057
- platform: "platform";
819
+ declare const ListSchedulesSchema: z.ZodObject<{
820
+ wid: z.ZodString;
821
+ calendarId: z.ZodNumber;
822
+ }, z.core.$strip>;
823
+ declare const CreateScheduleSchema: z.ZodObject<{
824
+ wid: z.ZodString;
825
+ calendarId: z.ZodNumber;
826
+ name: z.ZodString;
827
+ description: z.ZodOptional<z.ZodString>;
828
+ availabilityType: z.ZodEnum<typeof CalendarScheduleAvailabilityType>;
829
+ recurrenceType: z.ZodEnum<typeof CalendarScheduleRecurrence>;
830
+ startTime: z.ZodString;
831
+ endTime: z.ZodString;
832
+ daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodEnum<{
833
+ MONDAY: "MONDAY";
834
+ TUESDAY: "TUESDAY";
835
+ WEDNESDAY: "WEDNESDAY";
836
+ THURSDAY: "THURSDAY";
837
+ FRIDAY: "FRIDAY";
838
+ SATURDAY: "SATURDAY";
839
+ SUNDAY: "SUNDAY";
1058
840
  }>>>;
1059
- audience: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1060
- conversation: "conversation";
1061
- agent_only: "agent_only";
841
+ recurrenceRule: z.ZodOptional<z.ZodString>;
842
+ recurrenceEndDate: z.ZodOptional<z.ZodString>;
843
+ priority: z.ZodOptional<z.ZodNumber>;
844
+ eventTypeIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
845
+ }, z.core.$strip>;
846
+ declare const UpdateScheduleSchema: z.ZodObject<{
847
+ wid: z.ZodString;
848
+ calendarId: z.ZodNumber;
849
+ scheduleId: z.ZodNumber;
850
+ name: z.ZodOptional<z.ZodString>;
851
+ description: z.ZodOptional<z.ZodString>;
852
+ availabilityType: z.ZodOptional<z.ZodEnum<typeof CalendarScheduleAvailabilityType>>;
853
+ recurrenceType: z.ZodOptional<z.ZodEnum<typeof CalendarScheduleRecurrence>>;
854
+ startTime: z.ZodOptional<z.ZodString>;
855
+ endTime: z.ZodOptional<z.ZodString>;
856
+ daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodEnum<{
857
+ MONDAY: "MONDAY";
858
+ TUESDAY: "TUESDAY";
859
+ WEDNESDAY: "WEDNESDAY";
860
+ THURSDAY: "THURSDAY";
861
+ FRIDAY: "FRIDAY";
862
+ SATURDAY: "SATURDAY";
863
+ SUNDAY: "SUNDAY";
1062
864
  }>>>;
1063
- toolStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1064
- childMessageCount: z.ZodOptional<z.ZodNumber>;
1065
- parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
865
+ recurrenceRule: z.ZodOptional<z.ZodString>;
866
+ recurrenceEndDate: z.ZodOptional<z.ZodString>;
867
+ priority: z.ZodOptional<z.ZodNumber>;
868
+ eventTypeIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1066
869
  }, z.core.$strip>;
1067
- declare const ChatCompletionMessageSchema: z.ZodObject<{
1068
- id: z.ZodOptional<z.ZodString>;
1069
- role: z.ZodEnum<{
1070
- system: "system";
1071
- user: "user";
1072
- assistant: "assistant";
1073
- }>;
1074
- content: z.ZodString;
870
+ declare const DeleteScheduleSchema: z.ZodObject<{
871
+ wid: z.ZodString;
872
+ calendarId: z.ZodNumber;
873
+ scheduleId: z.ZodNumber;
1075
874
  }, z.core.$strip>;
1076
- declare const ChatMessageUISchema: z.ZodObject<{
1077
- uuid: z.ZodString;
1078
- id: z.ZodOptional<z.ZodString>;
1079
- chatId: z.ZodNumber;
1080
- participantRole: z.ZodEnum<{
1081
- function: "function";
1082
- system: "system";
1083
- user: "user";
1084
- assistant: "assistant";
1085
- tool: "tool";
1086
- }>;
1087
- participantName: z.ZodString;
1088
- participantId: z.ZodNullable<z.ZodNumber>;
1089
- role: z.ZodEnum<{
1090
- function: "function";
1091
- system: "system";
1092
- user: "user";
1093
- assistant: "assistant";
1094
- tool: "tool";
1095
- }>;
1096
- content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1097
- type: z.ZodLiteral<"text">;
1098
- text: z.ZodString;
1099
- }, z.core.$strip>, z.ZodObject<{
1100
- type: z.ZodLiteral<"image_url">;
1101
- image_url: z.ZodObject<{
1102
- url: z.ZodString;
1103
- }, z.core.$strip>;
1104
- }, z.core.$strip>]>>]>>>;
1105
- originalContent: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1106
- type: z.ZodLiteral<"text">;
1107
- text: z.ZodString;
1108
- }, z.core.$strip>, z.ZodObject<{
1109
- type: z.ZodLiteral<"image_url">;
1110
- image_url: z.ZodObject<{
1111
- url: z.ZodString;
1112
- }, z.core.$strip>;
1113
- }, z.core.$strip>]>>]>>>;
1114
- truncationReason: z.ZodOptional<z.ZodEnum<{
1115
- error: "error";
1116
- barge_in: "barge_in";
1117
- client_interrupt: "client_interrupt";
1118
- user_cancel: "user_cancel";
1119
- }>>;
1120
- truncatedAtMs: z.ZodOptional<z.ZodNumber>;
1121
- reasoning_content: z.ZodOptional<z.ZodString>;
1122
- failed: z.ZodBoolean;
1123
- tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1124
- id: z.ZodString;
1125
- type: z.ZodLiteral<"function">;
1126
- function: z.ZodObject<{
1127
- name: z.ZodString;
1128
- arguments: z.ZodString;
1129
- }, z.core.$strip>;
1130
- }, z.core.$strip>>>;
1131
- tool_call_id: z.ZodOptional<z.ZodString>;
1132
- error_details: z.ZodOptional<z.ZodAny>;
1133
- createdAt: z.ZodString;
1134
- email_id: z.ZodOptional<z.ZodNumber>;
1135
- inbox_id: z.ZodOptional<z.ZodNumber>;
1136
- taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1137
- smsDeliveryStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1138
- smsDeliveryErrorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1139
- smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1140
- smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1141
- origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1142
- member: "member";
1143
- workflow: "workflow";
1144
- tool: "tool";
1145
- agent: "agent";
1146
- operator: "operator";
1147
- engine_action: "engine_action";
1148
- background_run: "background_run";
1149
- platform: "platform";
1150
- }>>>;
1151
- audience: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1152
- conversation: "conversation";
1153
- agent_only: "agent_only";
1154
- }>>>;
1155
- toolStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1156
- childMessageCount: z.ZodOptional<z.ZodNumber>;
1157
- parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1158
- error: z.ZodOptional<z.ZodObject<{
1159
- code: z.ZodString;
1160
- message: z.ZodString;
1161
- }, z.core.$strip>>;
1162
- suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1163
- sendAsAssistant: z.ZodOptional<z.ZodBoolean>;
875
+ declare const ListEventTypesSchema: z.ZodObject<{
876
+ wid: z.ZodString;
1164
877
  }, z.core.$strip>;
1165
- declare const ChatMessageSchema: z.ZodObject<{
1166
- uuid: z.ZodString;
1167
- id: z.ZodOptional<z.ZodString>;
1168
- chatId: z.ZodNumber;
1169
- participantRole: z.ZodEnum<{
1170
- function: "function";
1171
- system: "system";
1172
- user: "user";
1173
- assistant: "assistant";
1174
- tool: "tool";
1175
- }>;
1176
- participantName: z.ZodString;
1177
- participantId: z.ZodNullable<z.ZodNumber>;
1178
- role: z.ZodEnum<{
1179
- function: "function";
1180
- system: "system";
1181
- user: "user";
1182
- assistant: "assistant";
1183
- tool: "tool";
1184
- }>;
1185
- content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1186
- type: z.ZodLiteral<"text">;
1187
- text: z.ZodString;
1188
- }, z.core.$strip>, z.ZodObject<{
1189
- type: z.ZodLiteral<"image_url">;
1190
- image_url: z.ZodObject<{
1191
- url: z.ZodString;
1192
- }, z.core.$strip>;
1193
- }, z.core.$strip>]>>]>>>;
1194
- originalContent: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1195
- type: z.ZodLiteral<"text">;
1196
- text: z.ZodString;
1197
- }, z.core.$strip>, z.ZodObject<{
1198
- type: z.ZodLiteral<"image_url">;
1199
- image_url: z.ZodObject<{
1200
- url: z.ZodString;
1201
- }, z.core.$strip>;
1202
- }, z.core.$strip>]>>]>>>;
1203
- truncationReason: z.ZodOptional<z.ZodEnum<{
1204
- error: "error";
1205
- barge_in: "barge_in";
1206
- client_interrupt: "client_interrupt";
1207
- user_cancel: "user_cancel";
1208
- }>>;
1209
- truncatedAtMs: z.ZodOptional<z.ZodNumber>;
1210
- reasoning_content: z.ZodOptional<z.ZodString>;
1211
- failed: z.ZodBoolean;
1212
- tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1213
- id: z.ZodString;
1214
- type: z.ZodLiteral<"function">;
1215
- function: z.ZodObject<{
1216
- name: z.ZodString;
1217
- arguments: z.ZodString;
1218
- }, z.core.$strip>;
1219
- }, z.core.$strip>>>;
1220
- tool_call_id: z.ZodOptional<z.ZodString>;
1221
- error_details: z.ZodOptional<z.ZodAny>;
1222
- createdAt: z.ZodString;
1223
- email_id: z.ZodOptional<z.ZodNumber>;
1224
- inbox_id: z.ZodOptional<z.ZodNumber>;
1225
- taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1226
- smsDeliveryStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1227
- smsDeliveryErrorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1228
- smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1229
- smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1230
- origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1231
- member: "member";
1232
- workflow: "workflow";
1233
- tool: "tool";
1234
- agent: "agent";
1235
- operator: "operator";
1236
- engine_action: "engine_action";
1237
- background_run: "background_run";
1238
- platform: "platform";
1239
- }>>>;
1240
- audience: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1241
- conversation: "conversation";
1242
- agent_only: "agent_only";
1243
- }>>>;
1244
- toolStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1245
- childMessageCount: z.ZodOptional<z.ZodNumber>;
1246
- parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1247
- error: z.ZodOptional<z.ZodObject<{
1248
- code: z.ZodString;
1249
- message: z.ZodString;
1250
- }, z.core.$strip>>;
1251
- suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1252
- sendAsAssistant: z.ZodOptional<z.ZodBoolean>;
878
+ declare const GetEventTypeSchema: z.ZodObject<{
879
+ wid: z.ZodString;
880
+ eventTypeId: z.ZodNumber;
1253
881
  }, z.core.$strip>;
1254
- declare const ChatMessageChunkSchema: z.ZodObject<{
1255
- type: z.ZodEnum<{
1256
- error: "error";
1257
- toolCall: "toolCall";
1258
- content: "content";
1259
- }>;
1260
- content: z.ZodOptional<z.ZodString>;
1261
- toolCallId: z.ZodOptional<z.ZodString>;
1262
- toolCallName: z.ZodOptional<z.ZodString>;
1263
- toolCallArguments: z.ZodOptional<z.ZodString>;
1264
- error: z.ZodOptional<z.ZodString>;
882
+ declare const CreateEventTypeSchema: z.ZodObject<{
883
+ wid: z.ZodString;
884
+ name: z.ZodString;
885
+ description: z.ZodOptional<z.ZodString>;
886
+ defaultDurationMinutes: z.ZodNumber;
887
+ bufferBeforeMinutes: z.ZodOptional<z.ZodNumber>;
888
+ bufferAfterMinutes: z.ZodOptional<z.ZodNumber>;
889
+ minAttendees: z.ZodOptional<z.ZodNumber>;
890
+ maxAttendees: z.ZodOptional<z.ZodNumber>;
891
+ color: z.ZodOptional<z.ZodString>;
892
+ active: z.ZodOptional<z.ZodBoolean>;
1265
893
  }, z.core.$strip>;
1266
- type Channel = z.infer<typeof ChannelEnum>;
1267
- type MessageRole = z.infer<typeof MessageRoleEnum>;
1268
- type ChatFilterObjectType = z.infer<typeof ChatFilterObjectTypeEnum>;
1269
- type ChatFilterFilterType = z.infer<typeof ChatFilterFilterTypeEnum>;
1270
- type TruncationReason = z.infer<typeof TruncationReasonEnum>;
1271
- type ChatMuteReasonValue = z.infer<typeof ChatMuteReasonEnum>;
1272
- type MessageOrigin = z.infer<typeof MessageOriginEnum>;
1273
- type MessageAudience = z.infer<typeof MessageAudienceEnum>;
1274
- type ChatParticipantFormData = z.infer<typeof ChatParticipantFormDataSchema>;
1275
- type HumanChatParticipant = z.infer<typeof HumanChatParticipantSchema>;
1276
- type AssistantChatParticipant = z.infer<typeof AssistantChatParticipantSchema>;
1277
- type ContributorChatParticipant = z.infer<typeof ContributorChatParticipantSchema>;
1278
- type SupervisorChatParticipant = z.infer<typeof SupervisorChatParticipantSchema>;
1279
- type ChatFormData = z.infer<typeof ChatFormDataSchema>;
1280
- type FunctionTool = z.infer<typeof FunctionToolSchema>;
1281
- type Chat = z.infer<typeof ChatSchema>;
1282
- type ChatFilterRule = z.infer<typeof ChatFilterRuleSchema>;
1283
- type ChatFilterRuleFormData = z.infer<typeof ChatFilterRuleFormDataSchema>;
1284
- type ToolCallFunction = z.infer<typeof ToolCallFunctionSchema>;
1285
- type ToolCall = z.infer<typeof ToolCallSchema>;
1286
- type ToolResult = z.infer<typeof ToolResultSchema>;
1287
- type TextContent = z.infer<typeof TextContentSchema>;
1288
- type ImageUrlContent = z.infer<typeof ImageUrlContentSchema>;
1289
- type MessageContentPart = z.infer<typeof MessageContentPartSchema>;
1290
- type ChatMessageObject = z.infer<typeof ChatMessageObjectSchema>;
1291
- type ChatMessageAPIResponse = z.infer<typeof ChatMessageAPIResponseSchema>;
1292
- type ChatCompletionMessage = z.infer<typeof ChatCompletionMessageSchema>;
1293
- type ChatMessageUI = z.infer<typeof ChatMessageUISchema>;
1294
- type ChatMessage = z.infer<typeof ChatMessageSchema>;
1295
- type ChatMessageChunk = z.infer<typeof ChatMessageChunkSchema>;
1296
- type ListChatsInput = z.infer<typeof ListChatsSchema>;
1297
- type GetChatInput = z.infer<typeof GetChatSchema>;
1298
- type CreateChatInput = z.infer<typeof CreateChatSchema>;
1299
- type UpdateChatInput = z.infer<typeof UpdateChatSchema>;
1300
- type DeleteChatInput = z.infer<typeof DeleteChatSchema>;
1301
- type ArchiveChatInput = z.infer<typeof ArchiveChatSchema>;
1302
- type UnarchiveChatInput = z.infer<typeof UnarchiveChatSchema>;
1303
- type UpdateChatMuteInput = z.infer<typeof UpdateChatMuteSchema>;
1304
- type GetChatsNeedsResponseInput = z.infer<typeof GetChatsNeedsResponseSchema>;
1305
- type GetChatMessagesInput = z.infer<typeof GetChatMessagesSchema>;
1306
- type SendChatMessageInput = z.infer<typeof SendChatMessageSchema>;
1307
- type SendAssistantMessageInput = z.infer<typeof SendAssistantMessageSchema>;
1308
- type InitiateOutboundCallInput = z.infer<typeof InitiateOutboundCallSchema>;
1309
- type RateMessageInput = z.infer<typeof RateMessageSchema>;
1310
- type CreateChatForWorkflowInput = z.infer<typeof CreateChatForWorkflowSchema>;
1311
- type CreateChatCompletionInput = z.infer<typeof CreateChatCompletionSchema>;
894
+ declare const UpdateEventTypeSchema: z.ZodObject<{
895
+ wid: z.ZodString;
896
+ eventTypeId: z.ZodNumber;
897
+ name: z.ZodOptional<z.ZodString>;
898
+ description: z.ZodOptional<z.ZodString>;
899
+ defaultDurationMinutes: z.ZodOptional<z.ZodNumber>;
900
+ bufferBeforeMinutes: z.ZodOptional<z.ZodNumber>;
901
+ bufferAfterMinutes: z.ZodOptional<z.ZodNumber>;
902
+ minAttendees: z.ZodOptional<z.ZodNumber>;
903
+ maxAttendees: z.ZodOptional<z.ZodNumber>;
904
+ color: z.ZodOptional<z.ZodString>;
905
+ active: z.ZodOptional<z.ZodBoolean>;
906
+ }, z.core.$strip>;
907
+ declare const DeleteEventTypeSchema: z.ZodObject<{
908
+ wid: z.ZodString;
909
+ eventTypeId: z.ZodNumber;
910
+ }, z.core.$strip>;
911
+ declare const ListCalendarEventsSchema: z.ZodObject<{
912
+ wid: z.ZodString;
913
+ calendarId: z.ZodOptional<z.ZodNumber>;
914
+ startDate: z.ZodOptional<z.ZodString>;
915
+ endDate: z.ZodOptional<z.ZodString>;
916
+ status: z.ZodOptional<z.ZodEnum<typeof CalendarEventStatus>>;
917
+ memberId: z.ZodOptional<z.ZodNumber>;
918
+ limit: z.ZodOptional<z.ZodNumber>;
919
+ offset: z.ZodOptional<z.ZodNumber>;
920
+ }, z.core.$strip>;
921
+ declare const GetCalendarEventSchema: z.ZodObject<{
922
+ wid: z.ZodString;
923
+ eventId: z.ZodNumber;
924
+ }, z.core.$strip>;
925
+ declare const CreateCalendarEventSchema: z.ZodObject<{
926
+ wid: z.ZodString;
927
+ calendarId: z.ZodNumber;
928
+ eventTypeId: z.ZodNumber;
929
+ title: z.ZodString;
930
+ startTime: z.ZodString;
931
+ attendeeIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
932
+ workflowId: z.ZodOptional<z.ZodNumber>;
933
+ workflowRevisionId: z.ZodOptional<z.ZodNumber>;
934
+ taskId: z.ZodOptional<z.ZodNumber>;
935
+ description: z.ZodOptional<z.ZodString>;
936
+ location: z.ZodOptional<z.ZodString>;
937
+ }, z.core.$strip>;
938
+ declare const UpdateCalendarEventSchema: z.ZodObject<{
939
+ wid: z.ZodString;
940
+ eventId: z.ZodNumber;
941
+ title: z.ZodOptional<z.ZodString>;
942
+ description: z.ZodOptional<z.ZodString>;
943
+ location: z.ZodOptional<z.ZodString>;
944
+ startTime: z.ZodOptional<z.ZodString>;
945
+ }, z.core.$strip>;
946
+ declare const CancelCalendarEventSchema: z.ZodObject<{
947
+ wid: z.ZodString;
948
+ eventId: z.ZodNumber;
949
+ cancellationReason: z.ZodOptional<z.ZodString>;
950
+ }, z.core.$strip>;
951
+ declare const DeleteCalendarEventSchema: z.ZodObject<{
952
+ wid: z.ZodString;
953
+ eventId: z.ZodNumber;
954
+ }, z.core.$strip>;
955
+ declare const CheckAvailabilitySchema: z.ZodObject<{
956
+ wid: z.ZodString;
957
+ calendarId: z.ZodNumber;
958
+ eventTypeId: z.ZodNumber;
959
+ startTime: z.ZodString;
960
+ endTime: z.ZodString;
961
+ }, z.core.$strip>;
962
+ declare const GetAvailableSlotsSchema: z.ZodObject<{
963
+ wid: z.ZodString;
964
+ calendarId: z.ZodNumber;
965
+ eventTypeId: z.ZodNumber;
966
+ startDate: z.ZodString;
967
+ endDate: z.ZodString;
968
+ slotIntervalMinutes: z.ZodOptional<z.ZodNumber>;
969
+ }, z.core.$strip>;
970
+ declare const UpdateAttendeeResponseSchema: z.ZodObject<{
971
+ wid: z.ZodString;
972
+ eventId: z.ZodNumber;
973
+ memberId: z.ZodNumber;
974
+ responseStatus: z.ZodEnum<typeof AttendeeResponseStatus>;
975
+ note: z.ZodOptional<z.ZodString>;
976
+ }, z.core.$strip>;
977
+ declare const GenerateICalTokenSchema: z.ZodObject<{
978
+ wid: z.ZodString;
979
+ calendarId: z.ZodNumber;
980
+ regenerate: z.ZodOptional<z.ZodBoolean>;
981
+ }, z.core.$strip>;
982
+ declare const RevokeICalTokenSchema: z.ZodObject<{
983
+ wid: z.ZodString;
984
+ calendarId: z.ZodNumber;
985
+ }, z.core.$strip>;
986
+ declare const GetICalUrlSchema: z.ZodObject<{
987
+ wid: z.ZodString;
988
+ calendarId: z.ZodNumber;
989
+ }, z.core.$strip>;
990
+ type ListCalendarsInput = z.infer<typeof ListCalendarsSchema>;
991
+ type GetCalendarInput = z.infer<typeof GetCalendarSchema>;
992
+ type CreateCalendarInput = z.infer<typeof CreateCalendarSchema>;
993
+ type UpdateCalendarInput = z.infer<typeof UpdateCalendarSchema>;
994
+ type DeleteCalendarInput = z.infer<typeof DeleteCalendarSchema>;
995
+ type ListSchedulesInput = z.infer<typeof ListSchedulesSchema>;
996
+ type CreateScheduleInput = z.infer<typeof CreateScheduleSchema>;
997
+ type UpdateScheduleInput = z.infer<typeof UpdateScheduleSchema>;
998
+ type DeleteScheduleInput = z.infer<typeof DeleteScheduleSchema>;
999
+ type ListEventTypesInput = z.infer<typeof ListEventTypesSchema>;
1000
+ type GetEventTypeInput = z.infer<typeof GetEventTypeSchema>;
1001
+ type CreateEventTypeInput = z.infer<typeof CreateEventTypeSchema>;
1002
+ type UpdateEventTypeInput = z.infer<typeof UpdateEventTypeSchema>;
1003
+ type DeleteEventTypeInput = z.infer<typeof DeleteEventTypeSchema>;
1004
+ type ListCalendarEventsInput = z.infer<typeof ListCalendarEventsSchema>;
1005
+ type GetCalendarEventInput = z.infer<typeof GetCalendarEventSchema>;
1006
+ type CreateCalendarEventInput = z.infer<typeof CreateCalendarEventSchema>;
1007
+ type UpdateCalendarEventInput = z.infer<typeof UpdateCalendarEventSchema>;
1008
+ type CancelCalendarEventInput = z.infer<typeof CancelCalendarEventSchema>;
1009
+ type DeleteCalendarEventInput = z.infer<typeof DeleteCalendarEventSchema>;
1010
+ type CheckAvailabilityInput = z.infer<typeof CheckAvailabilitySchema>;
1011
+ type GetAvailableSlotsInput = z.infer<typeof GetAvailableSlotsSchema>;
1012
+ type UpdateAttendeeResponseInput = z.infer<typeof UpdateAttendeeResponseSchema>;
1013
+ type GenerateICalTokenInput = z.infer<typeof GenerateICalTokenSchema>;
1014
+ type RevokeICalTokenInput = z.infer<typeof RevokeICalTokenSchema>;
1015
+ type GetICalUrlInput = z.infer<typeof GetICalUrlSchema>;
1312
1016
 
1313
- /**
1314
- * What a data type with no schema fields derives.
1315
- *
1316
- * Mirrors `EMPTY_SCHEMA_SENSITIVITY` in `lib/models/workspace/data_policy.py`.
1317
- * An empty schema carries no labels to read, which is an absence of information
1318
- * rather than a claim that the records are public — and deriving Public made
1319
- * zero fields more permissive than one unlabeled field, which defaults to
1320
- * Confidential.
1321
- */
1322
- declare const EMPTY_SCHEMA_SENSITIVITY: DataSensitivity;
1323
- declare const DataFieldSchema: z.ZodObject<{
1324
- id: z.ZodOptional<z.ZodNumber>;
1017
+ declare const ChannelEnum: z.ZodEnum<{
1018
+ email: "email";
1019
+ routine: "routine";
1020
+ fax: "fax";
1021
+ cli: "cli";
1022
+ frame: "frame";
1023
+ "phone-sms": "phone-sms";
1024
+ "phone-voice": "phone-voice";
1025
+ "phone-whatsapp": "phone-whatsapp";
1026
+ background: "background";
1027
+ "web-chat": "web-chat";
1028
+ "web-voice": "web-voice";
1029
+ discord: "discord";
1030
+ slack: "slack";
1031
+ teams: "teams";
1032
+ "direct-message": "direct-message";
1033
+ a2a: "a2a";
1034
+ }>;
1035
+ declare const MessageRoleEnum: z.ZodEnum<{
1036
+ function: "function";
1037
+ system: "system";
1038
+ user: "user";
1039
+ assistant: "assistant";
1040
+ tool: "tool";
1041
+ }>;
1042
+ declare const ChatFilterObjectTypeEnum: z.ZodEnum<{
1043
+ title: "title";
1044
+ owner: "owner";
1045
+ participant: "participant";
1046
+ mode: "mode";
1047
+ channel: "channel";
1048
+ needsResponse: "needsResponse";
1049
+ paused: "paused";
1050
+ messageCount: "messageCount";
1051
+ toolCall: "toolCall";
1052
+ }>;
1053
+ declare const ChatFilterFilterTypeEnum: z.ZodEnum<{
1054
+ any: "any";
1055
+ none: "none";
1056
+ active: "active";
1057
+ all: "all";
1058
+ partial: "partial";
1059
+ exact: "exact";
1060
+ equals: "equals";
1061
+ notEquals: "notEquals";
1062
+ onlyMine: "onlyMine";
1063
+ }>;
1064
+ declare const ChatMuteReasonEnum: z.ZodEnum<{
1065
+ working: "working";
1066
+ waiting_on_person: "waiting_on_person";
1067
+ resolved_elsewhere: "resolved_elsewhere";
1068
+ not_mine: "not_mine";
1069
+ }>;
1070
+ declare const TruncationReasonEnum: z.ZodEnum<{
1071
+ error: "error";
1072
+ barge_in: "barge_in";
1073
+ client_interrupt: "client_interrupt";
1074
+ user_cancel: "user_cancel";
1075
+ }>;
1076
+ declare const MessageOriginEnum: z.ZodEnum<{
1077
+ member: "member";
1078
+ workflow: "workflow";
1079
+ tool: "tool";
1080
+ agent: "agent";
1081
+ operator: "operator";
1082
+ engine_action: "engine_action";
1083
+ background_run: "background_run";
1084
+ platform: "platform";
1085
+ }>;
1086
+ declare const MessageAudienceEnum: z.ZodEnum<{
1087
+ conversation: "conversation";
1088
+ agent_only: "agent_only";
1089
+ }>;
1090
+ declare const ChatParticipantFormDataSchema: z.ZodObject<{
1091
+ memberId: z.ZodOptional<z.ZodNumber>;
1092
+ role: z.ZodOptional<z.ZodString>;
1093
+ additionalInstructions: z.ZodOptional<z.ZodString>;
1094
+ }, z.core.$strip>;
1095
+ declare const HumanChatParticipantSchema: z.ZodObject<{
1325
1096
  name: z.ZodString;
1326
- slug: z.ZodString;
1327
- description: z.ZodOptional<z.ZodString>;
1328
- required: z.ZodBoolean;
1329
- fieldType: z.ZodEnum<typeof DataFieldType>;
1330
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1331
- label: z.ZodString;
1332
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1333
- visibleWhen: z.ZodOptional<z.ZodString>;
1334
- }, z.core.$strip>>>;
1335
- referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1336
- referencedTypeId: z.ZodOptional<z.ZodNumber>;
1337
- shouldIndex: z.ZodOptional<z.ZodBoolean>;
1338
- indexStatus: z.ZodOptional<z.ZodEnum<typeof IndexStatus>>;
1339
- adminOnly: z.ZodOptional<z.ZodBoolean>;
1340
- createdAt: z.ZodString;
1341
- updatedAt: z.ZodString;
1097
+ role: z.ZodLiteral<"user">;
1098
+ memberId: z.ZodNumber;
1342
1099
  }, z.core.$strip>;
1343
- declare const DataFieldFormDataSchema: z.ZodObject<{
1100
+ declare const AssistantChatParticipantSchema: z.ZodObject<{
1344
1101
  name: z.ZodString;
1345
- slug: z.ZodString;
1346
- description: z.ZodOptional<z.ZodString>;
1347
- required: z.ZodBoolean;
1348
- fieldType: z.ZodEnum<typeof DataFieldType>;
1349
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1350
- label: z.ZodString;
1351
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1352
- visibleWhen: z.ZodOptional<z.ZodString>;
1353
- }, z.core.$strip>>>;
1354
- referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1355
- referencedTypeId: z.ZodOptional<z.ZodNumber>;
1356
- shouldIndex: z.ZodOptional<z.ZodBoolean>;
1357
- indexStatus: z.ZodOptional<z.ZodEnum<typeof IndexStatus>>;
1358
- adminOnly: z.ZodOptional<z.ZodBoolean>;
1102
+ memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1103
+ memberType: z.ZodOptional<z.ZodString>;
1104
+ role: z.ZodLiteral<"assistant">;
1105
+ additionalInstructions: z.ZodOptional<z.ZodString>;
1359
1106
  }, z.core.$strip>;
1360
- declare const SchemaFieldSchema: z.ZodObject<{
1361
- slug: z.ZodString;
1107
+ declare const ContributorChatParticipantSchema: z.ZodObject<{
1362
1108
  name: z.ZodString;
1363
- description: z.ZodOptional<z.ZodString>;
1364
- fieldType: z.ZodEnum<typeof DataFieldType>;
1365
- required: z.ZodBoolean;
1366
- order: z.ZodOptional<z.ZodNumber>;
1367
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1368
- label: z.ZodString;
1369
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1370
- visibleWhen: z.ZodOptional<z.ZodString>;
1371
- }, z.core.$strip>>>;
1372
- referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1373
- referencedTypeId: z.ZodOptional<z.ZodNumber>;
1374
- shouldIndex: z.ZodOptional<z.ZodBoolean>;
1375
- adminOnly: z.ZodOptional<z.ZodBoolean>;
1376
- defaultValue: z.ZodOptional<z.ZodAny>;
1377
- sensitivity: z.ZodOptional<z.ZodEnum<typeof DataSensitivity>>;
1378
- categories: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof DataCategory>>>;
1379
- celFunction: z.ZodOptional<z.ZodString>;
1380
- validateCel: z.ZodOptional<z.ZodString>;
1109
+ memberId: z.ZodNumber;
1110
+ memberType: z.ZodOptional<z.ZodString>;
1111
+ role: z.ZodLiteral<"contributor">;
1112
+ additionalInstructions: z.ZodOptional<z.ZodString>;
1381
1113
  }, z.core.$strip>;
1382
- declare const SchemaFieldFormDataSchema: z.ZodObject<{
1383
- slug: z.ZodString;
1114
+ declare const SupervisorChatParticipantSchema: z.ZodObject<{
1384
1115
  name: z.ZodString;
1385
- description: z.ZodOptional<z.ZodString>;
1386
- fieldType: z.ZodEnum<typeof DataFieldType>;
1387
- required: z.ZodBoolean;
1388
- order: z.ZodOptional<z.ZodNumber>;
1389
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1390
- label: z.ZodString;
1391
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1392
- visibleWhen: z.ZodOptional<z.ZodString>;
1393
- }, z.core.$strip>>>;
1394
- referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1395
- referencedTypeId: z.ZodOptional<z.ZodNumber>;
1396
- shouldIndex: z.ZodOptional<z.ZodBoolean>;
1397
- adminOnly: z.ZodOptional<z.ZodBoolean>;
1398
- defaultValue: z.ZodOptional<z.ZodAny>;
1399
- sensitivity: z.ZodOptional<z.ZodEnum<typeof DataSensitivity>>;
1400
- categories: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof DataCategory>>>;
1401
- celFunction: z.ZodOptional<z.ZodString>;
1402
- validateCel: z.ZodOptional<z.ZodString>;
1116
+ memberId: z.ZodNumber;
1117
+ memberType: z.ZodOptional<z.ZodString>;
1118
+ role: z.ZodLiteral<"supervisor">;
1119
+ }, z.core.$strip>;
1120
+ declare const ChatFormDataSchema: z.ZodObject<{
1121
+ id: z.ZodOptional<z.ZodNumber>;
1122
+ title: z.ZodOptional<z.ZodString>;
1123
+ channel: z.ZodString;
1124
+ workflowId: z.ZodNullable<z.ZodNumber>;
1125
+ workflowUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1126
+ workflowRevisionId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1127
+ workflowRevisionUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1128
+ phoneNumberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1129
+ siteId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1130
+ browserChannel: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1131
+ "web-chat": "web-chat";
1132
+ "web-voice": "web-voice";
1133
+ }>>>;
1134
+ interactionMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1135
+ text: "text";
1136
+ push_to_talk: "push_to_talk";
1137
+ realtime: "realtime";
1138
+ }>>>;
1139
+ memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1140
+ participants: z.ZodArray<z.ZodObject<{
1141
+ memberId: z.ZodOptional<z.ZodNumber>;
1142
+ role: z.ZodOptional<z.ZodString>;
1143
+ additionalInstructions: z.ZodOptional<z.ZodString>;
1144
+ }, z.core.$strip>>;
1145
+ assistantKind: z.ZodOptional<z.ZodEnum<{
1146
+ ai: "ai";
1147
+ human: "human";
1148
+ }>>;
1149
+ userMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1150
+ agentEnabled: z.ZodOptional<z.ZodBoolean>;
1151
+ assistantMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1152
+ assistantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1153
+ agentMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1154
+ assistantChatModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1155
+ assistantChatModelConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1156
+ assistantRealtimeModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1157
+ assistantRealtimeModelConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1158
+ paused: z.ZodOptional<z.ZodBoolean>;
1159
+ muted: z.ZodOptional<z.ZodBoolean>;
1160
+ initialMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1403
1161
  }, z.core.$strip>;
1404
- declare const DataTypeSchema: z.ZodObject<{
1405
- id: z.ZodNumber;
1406
- name: z.ZodString;
1407
- slug: z.ZodString;
1408
- uuid: z.ZodString;
1409
- description: z.ZodOptional<z.ZodString>;
1410
- prompt: z.ZodOptional<z.ZodString>;
1411
- isCollection: z.ZodBoolean;
1412
- pinned: z.ZodOptional<z.ZodBoolean>;
1162
+ declare const ChatFiltersSchema: z.ZodObject<{
1163
+ page: z.ZodOptional<z.ZodNumber>;
1164
+ pageSize: z.ZodOptional<z.ZodNumber>;
1165
+ sortBy: z.ZodOptional<z.ZodString>;
1166
+ sortOrder: z.ZodOptional<z.ZodEnum<{
1167
+ asc: "asc";
1168
+ desc: "desc";
1169
+ }>>;
1170
+ mine: z.ZodOptional<z.ZodBoolean>;
1171
+ needsResponse: z.ZodOptional<z.ZodBoolean>;
1172
+ paused: z.ZodOptional<z.ZodBoolean>;
1413
1173
  archived: z.ZodOptional<z.ZodBoolean>;
1414
- ownerId: z.ZodNullable<z.ZodNumber>;
1415
- recordScope: z.ZodEnum<typeof DataTypeRecordScope>;
1416
- adminOnly: z.ZodOptional<z.ZodBoolean>;
1417
- sensitivity: z.ZodEnum<typeof DataSensitivity>;
1418
- categories: z.ZodArray<z.ZodEnum<typeof DataCategory>>;
1419
- createdAt: z.ZodString;
1420
- updatedAt: z.ZodString;
1421
- fields: z.ZodArray<z.ZodObject<{
1422
- slug: z.ZodString;
1423
- name: z.ZodString;
1424
- description: z.ZodOptional<z.ZodString>;
1425
- fieldType: z.ZodEnum<typeof DataFieldType>;
1426
- required: z.ZodBoolean;
1427
- order: z.ZodOptional<z.ZodNumber>;
1428
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1429
- label: z.ZodString;
1430
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1431
- visibleWhen: z.ZodOptional<z.ZodString>;
1432
- }, z.core.$strip>>>;
1433
- referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1434
- referencedTypeId: z.ZodOptional<z.ZodNumber>;
1435
- shouldIndex: z.ZodOptional<z.ZodBoolean>;
1436
- adminOnly: z.ZodOptional<z.ZodBoolean>;
1437
- defaultValue: z.ZodOptional<z.ZodAny>;
1438
- sensitivity: z.ZodOptional<z.ZodEnum<typeof DataSensitivity>>;
1439
- categories: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof DataCategory>>>;
1440
- celFunction: z.ZodOptional<z.ZodString>;
1441
- validateCel: z.ZodOptional<z.ZodString>;
1442
- }, z.core.$strip>>;
1174
+ channel: z.ZodOptional<z.ZodString>;
1175
+ chatType: z.ZodOptional<z.ZodEnum<{
1176
+ contributor: "contributor";
1177
+ assignment: "assignment";
1178
+ manager: "manager";
1179
+ dm: "dm";
1180
+ }>>;
1443
1181
  }, z.core.$strip>;
1444
- declare const DataTypeFormDataSchema: z.ZodObject<{
1445
- name: z.ZodString;
1446
- slug: z.ZodString;
1447
- description: z.ZodOptional<z.ZodString>;
1448
- prompt: z.ZodOptional<z.ZodString>;
1449
- isCollection: z.ZodBoolean;
1450
- pinned: z.ZodOptional<z.ZodBoolean>;
1451
- webhookEventsEnabled: z.ZodOptional<z.ZodBoolean>;
1452
- recordScope: z.ZodOptional<z.ZodEnum<typeof DataTypeRecordScope>>;
1453
- adminOnly: z.ZodOptional<z.ZodBoolean>;
1454
- fields: z.ZodArray<z.ZodObject<{
1455
- slug: z.ZodString;
1456
- name: z.ZodString;
1457
- description: z.ZodOptional<z.ZodString>;
1458
- fieldType: z.ZodEnum<typeof DataFieldType>;
1459
- required: z.ZodBoolean;
1460
- order: z.ZodOptional<z.ZodNumber>;
1461
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1462
- label: z.ZodString;
1463
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1464
- visibleWhen: z.ZodOptional<z.ZodString>;
1465
- }, z.core.$strip>>>;
1466
- referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1467
- referencedTypeId: z.ZodOptional<z.ZodNumber>;
1468
- shouldIndex: z.ZodOptional<z.ZodBoolean>;
1469
- adminOnly: z.ZodOptional<z.ZodBoolean>;
1470
- defaultValue: z.ZodOptional<z.ZodAny>;
1471
- sensitivity: z.ZodOptional<z.ZodEnum<typeof DataSensitivity>>;
1472
- categories: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof DataCategory>>>;
1473
- celFunction: z.ZodOptional<z.ZodString>;
1474
- validateCel: z.ZodOptional<z.ZodString>;
1475
- }, z.core.$strip>>;
1476
- ownerId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1477
- }, z.core.$strict>;
1478
- declare const DataRecordFiltersSchema: z.ZodObject<{
1182
+ declare const ListChatsSchema: z.ZodObject<{
1183
+ wid: z.ZodString;
1479
1184
  page: z.ZodOptional<z.ZodNumber>;
1480
1185
  pageSize: z.ZodOptional<z.ZodNumber>;
1481
- search: z.ZodOptional<z.ZodString>;
1482
- searchField: z.ZodOptional<z.ZodString>;
1483
- memberId: z.ZodOptional<z.ZodNumber>;
1186
+ sortBy: z.ZodOptional<z.ZodString>;
1187
+ sortOrder: z.ZodOptional<z.ZodEnum<{
1188
+ asc: "asc";
1189
+ desc: "desc";
1190
+ }>>;
1191
+ mine: z.ZodOptional<z.ZodBoolean>;
1192
+ needsResponse: z.ZodOptional<z.ZodBoolean>;
1193
+ paused: z.ZodOptional<z.ZodBoolean>;
1194
+ archived: z.ZodOptional<z.ZodBoolean>;
1195
+ channel: z.ZodOptional<z.ZodString>;
1196
+ chatType: z.ZodOptional<z.ZodEnum<{
1197
+ contributor: "contributor";
1198
+ assignment: "assignment";
1199
+ manager: "manager";
1200
+ dm: "dm";
1201
+ }>>;
1484
1202
  }, z.core.$strip>;
1485
- declare const ListDataTypesSchema: z.ZodObject<{
1203
+ declare const GetChatSchema: z.ZodObject<{
1486
1204
  wid: z.ZodString;
1205
+ chatId: z.ZodNumber;
1487
1206
  }, z.core.$strip>;
1488
- declare const GetDataTypeSchema: z.ZodObject<{
1207
+ declare const CreateChatSchema: z.ZodObject<{
1489
1208
  wid: z.ZodString;
1490
- dataTypeId: z.ZodNumber;
1209
+ id: z.ZodOptional<z.ZodNumber>;
1210
+ title: z.ZodOptional<z.ZodString>;
1211
+ channel: z.ZodString;
1212
+ workflowId: z.ZodNullable<z.ZodNumber>;
1213
+ workflowUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1214
+ workflowRevisionId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1215
+ workflowRevisionUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1216
+ phoneNumberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1217
+ siteId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1218
+ browserChannel: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1219
+ "web-chat": "web-chat";
1220
+ "web-voice": "web-voice";
1221
+ }>>>;
1222
+ interactionMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1223
+ text: "text";
1224
+ push_to_talk: "push_to_talk";
1225
+ realtime: "realtime";
1226
+ }>>>;
1227
+ memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1228
+ participants: z.ZodArray<z.ZodObject<{
1229
+ memberId: z.ZodOptional<z.ZodNumber>;
1230
+ role: z.ZodOptional<z.ZodString>;
1231
+ additionalInstructions: z.ZodOptional<z.ZodString>;
1232
+ }, z.core.$strip>>;
1233
+ assistantKind: z.ZodOptional<z.ZodEnum<{
1234
+ ai: "ai";
1235
+ human: "human";
1236
+ }>>;
1237
+ userMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1238
+ agentEnabled: z.ZodOptional<z.ZodBoolean>;
1239
+ assistantMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1240
+ assistantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1241
+ agentMemberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1242
+ assistantChatModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1243
+ assistantChatModelConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1244
+ assistantRealtimeModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1245
+ assistantRealtimeModelConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1246
+ paused: z.ZodOptional<z.ZodBoolean>;
1247
+ muted: z.ZodOptional<z.ZodBoolean>;
1248
+ initialMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1491
1249
  }, z.core.$strip>;
1492
- declare const GetDataTypeBySlugSchema: z.ZodObject<{
1250
+ declare const UpdateChatSchema: z.ZodObject<{
1493
1251
  wid: z.ZodString;
1494
- slug: z.ZodString;
1252
+ chatId: z.ZodNumber;
1253
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1254
+ assignmentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1255
+ phoneNumberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1256
+ inboxId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1257
+ paused: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1258
+ labelIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1495
1259
  }, z.core.$strip>;
1496
- declare const CreateDataTypeSchema: z.ZodObject<{
1260
+ declare const DeleteChatSchema: z.ZodObject<{
1497
1261
  wid: z.ZodString;
1498
- name: z.ZodString;
1499
- slug: z.ZodString;
1500
- description: z.ZodOptional<z.ZodString>;
1501
- prompt: z.ZodOptional<z.ZodString>;
1502
- isCollection: z.ZodBoolean;
1503
- pinned: z.ZodOptional<z.ZodBoolean>;
1504
- webhookEventsEnabled: z.ZodOptional<z.ZodBoolean>;
1505
- recordScope: z.ZodOptional<z.ZodEnum<typeof DataTypeRecordScope>>;
1506
- adminOnly: z.ZodOptional<z.ZodBoolean>;
1507
- ownerId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1508
- fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
1509
- slug: z.ZodString;
1510
- name: z.ZodString;
1511
- description: z.ZodOptional<z.ZodString>;
1512
- fieldType: z.ZodEnum<typeof DataFieldType>;
1513
- required: z.ZodBoolean;
1514
- order: z.ZodOptional<z.ZodNumber>;
1515
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1516
- label: z.ZodString;
1517
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1518
- visibleWhen: z.ZodOptional<z.ZodString>;
1519
- }, z.core.$strip>>>;
1520
- referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1521
- referencedTypeId: z.ZodOptional<z.ZodNumber>;
1522
- shouldIndex: z.ZodOptional<z.ZodBoolean>;
1523
- adminOnly: z.ZodOptional<z.ZodBoolean>;
1524
- defaultValue: z.ZodOptional<z.ZodAny>;
1525
- sensitivity: z.ZodOptional<z.ZodEnum<typeof DataSensitivity>>;
1526
- categories: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof DataCategory>>>;
1527
- celFunction: z.ZodOptional<z.ZodString>;
1528
- validateCel: z.ZodOptional<z.ZodString>;
1529
- }, z.core.$strip>>>;
1530
- }, z.core.$strict>;
1531
- declare const UpdateDataTypeSchema: z.ZodObject<{
1262
+ chatId: z.ZodNumber;
1263
+ }, z.core.$strip>;
1264
+ declare const ArchiveChatSchema: z.ZodObject<{
1532
1265
  wid: z.ZodString;
1533
- dataTypeId: z.ZodNumber;
1534
- name: z.ZodOptional<z.ZodString>;
1535
- slug: z.ZodOptional<z.ZodString>;
1536
- description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1537
- prompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1538
- isCollection: z.ZodOptional<z.ZodBoolean>;
1539
- pinned: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1540
- webhookEventsEnabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1541
- recordScope: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof DataTypeRecordScope>>>;
1542
- adminOnly: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1543
- fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1544
- slug: z.ZodString;
1545
- name: z.ZodString;
1546
- description: z.ZodOptional<z.ZodString>;
1547
- fieldType: z.ZodEnum<typeof DataFieldType>;
1548
- required: z.ZodBoolean;
1549
- order: z.ZodOptional<z.ZodNumber>;
1550
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1551
- label: z.ZodString;
1552
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1553
- visibleWhen: z.ZodOptional<z.ZodString>;
1554
- }, z.core.$strip>>>;
1555
- referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1556
- referencedTypeId: z.ZodOptional<z.ZodNumber>;
1557
- shouldIndex: z.ZodOptional<z.ZodBoolean>;
1558
- adminOnly: z.ZodOptional<z.ZodBoolean>;
1559
- defaultValue: z.ZodOptional<z.ZodAny>;
1560
- sensitivity: z.ZodOptional<z.ZodEnum<typeof DataSensitivity>>;
1561
- categories: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof DataCategory>>>;
1562
- celFunction: z.ZodOptional<z.ZodString>;
1563
- validateCel: z.ZodOptional<z.ZodString>;
1564
- }, z.core.$strip>>>;
1565
- ownerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1566
- }, z.core.$strict>;
1567
- declare const DeleteDataTypeSchema: z.ZodObject<{
1266
+ chatId: z.ZodNumber;
1267
+ }, z.core.$strip>;
1268
+ declare const UnarchiveChatSchema: z.ZodObject<{
1568
1269
  wid: z.ZodString;
1569
- dataTypeId: z.ZodNumber;
1270
+ chatId: z.ZodNumber;
1271
+ }, z.core.$strip>;
1272
+ declare const UpdateChatMuteSchema: z.ZodObject<{
1273
+ wid: z.ZodString;
1274
+ chatId: z.ZodNumber;
1275
+ muted: z.ZodBoolean;
1276
+ muteReason: z.ZodOptional<z.ZodEnum<{
1277
+ working: "working";
1278
+ waiting_on_person: "waiting_on_person";
1279
+ resolved_elsewhere: "resolved_elsewhere";
1280
+ not_mine: "not_mine";
1281
+ }>>;
1282
+ muteExpiresOnInbound: z.ZodOptional<z.ZodBoolean>;
1570
1283
  }, z.core.$strip>;
1571
- declare const ListDataRecordsSchema: z.ZodObject<{
1284
+ declare const GetChatsNeedsResponseSchema: z.ZodObject<{
1572
1285
  wid: z.ZodString;
1573
- dataTypeId: z.ZodNumber;
1574
- page: z.ZodOptional<z.ZodNumber>;
1575
- pageSize: z.ZodOptional<z.ZodNumber>;
1576
- search: z.ZodOptional<z.ZodString>;
1577
- searchField: z.ZodOptional<z.ZodString>;
1578
- memberId: z.ZodOptional<z.ZodNumber>;
1579
1286
  }, z.core.$strip>;
1580
- declare const GetDataRecordSchema: z.ZodObject<{
1287
+ declare const GetChatMessagesSchema: z.ZodObject<{
1581
1288
  wid: z.ZodString;
1582
- recordId: z.ZodNumber;
1289
+ chatId: z.ZodNumber;
1290
+ limit: z.ZodOptional<z.ZodNumber>;
1583
1291
  }, z.core.$strip>;
1584
- declare const CreateDataRecordSchema: z.ZodObject<{
1292
+ declare const SendChatMessageSchema: z.ZodObject<{
1585
1293
  wid: z.ZodString;
1586
- dataTypeId: z.ZodNumber;
1587
- memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1588
- memberExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1589
- fieldValues: z.ZodRecord<z.ZodString, z.ZodAny>;
1590
- externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1591
- assignmentTaskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1294
+ chatId: z.ZodNumber;
1295
+ message: z.ZodString;
1296
+ model: z.ZodOptional<z.ZodString>;
1592
1297
  }, z.core.$strip>;
1593
- declare const UpdateDataRecordSchema: z.ZodObject<{
1298
+ declare const SendAssistantMessageSchema: z.ZodObject<{
1594
1299
  wid: z.ZodString;
1595
- dataTypeId: z.ZodNumber;
1596
- recordId: z.ZodNumber;
1597
- fieldValues: z.ZodRecord<z.ZodString, z.ZodAny>;
1598
- memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1599
- memberExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1600
- externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1601
- assignmentTaskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1300
+ chatId: z.ZodNumber;
1301
+ message: z.ZodString;
1602
1302
  }, z.core.$strip>;
1603
- declare const DeleteDataRecordSchema: z.ZodObject<{
1303
+ declare const InitiateOutboundCallSchema: z.ZodObject<{
1604
1304
  wid: z.ZodString;
1605
- dataTypeId: z.ZodNumber;
1606
- recordId: z.ZodNumber;
1305
+ chatId: z.ZodNumber;
1306
+ phoneNumberId: z.ZodNumber;
1607
1307
  }, z.core.$strip>;
1608
- declare const UpsertDataRecordSchema: z.ZodObject<{
1308
+ declare const RateMessageSchema: z.ZodObject<{
1609
1309
  wid: z.ZodString;
1610
- dataTypeId: z.ZodNumber;
1611
- externalId: z.ZodString;
1612
- fieldValues: z.ZodRecord<z.ZodString, z.ZodAny>;
1613
- memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1614
- memberExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1310
+ chatId: z.ZodNumber;
1311
+ messageUuid: z.ZodString;
1312
+ rating: z.ZodNumber;
1615
1313
  }, z.core.$strip>;
1616
- declare const ToggleFieldIndexSchema: z.ZodObject<{
1314
+ declare const CreateChatForWorkflowSchema: z.ZodObject<{
1617
1315
  wid: z.ZodString;
1618
- dataTypeId: z.ZodNumber;
1619
- fieldSlug: z.ZodString;
1620
- shouldIndex: z.ZodBoolean;
1316
+ workflowId: z.ZodNumber;
1317
+ memberId: z.ZodNumber;
1318
+ agentId: z.ZodOptional<z.ZodNumber>;
1319
+ chatTitle: z.ZodOptional<z.ZodString>;
1621
1320
  }, z.core.$strip>;
1622
- declare const GetFieldIndexStatusSchema: z.ZodObject<{
1321
+ declare const CreateChatCompletionSchema: z.ZodObject<{
1623
1322
  wid: z.ZodString;
1624
- dataTypeId: z.ZodNumber;
1625
- fieldSlug: z.ZodString;
1323
+ chatId: z.ZodNumber;
1324
+ model: z.ZodOptional<z.ZodString>;
1325
+ messages: z.ZodArray<z.ZodObject<{
1326
+ id: z.ZodOptional<z.ZodString>;
1327
+ role: z.ZodString;
1328
+ content: z.ZodString;
1329
+ }, z.core.$strip>>;
1626
1330
  }, z.core.$strip>;
1627
- declare const AddDataFieldSchema: z.ZodObject<{
1628
- wid: z.ZodString;
1629
- dataTypeId: z.ZodNumber;
1331
+ declare const FunctionToolSchema: z.ZodObject<{
1332
+ type: z.ZodLiteral<"function">;
1333
+ function: z.ZodObject<{
1334
+ name: z.ZodString;
1335
+ description: z.ZodString;
1336
+ parameters: z.ZodRecord<z.ZodString, z.ZodAny>;
1337
+ }, z.core.$strip>;
1338
+ }, z.core.$strip>;
1339
+ declare const ChatSchema: z.ZodObject<{
1340
+ id: z.ZodNumber;
1341
+ archived: z.ZodBoolean;
1342
+ muted: z.ZodBoolean;
1343
+ channel: z.ZodEnum<{
1344
+ email: "email";
1345
+ routine: "routine";
1346
+ fax: "fax";
1347
+ cli: "cli";
1348
+ frame: "frame";
1349
+ "phone-sms": "phone-sms";
1350
+ "phone-voice": "phone-voice";
1351
+ "phone-whatsapp": "phone-whatsapp";
1352
+ background: "background";
1353
+ "web-chat": "web-chat";
1354
+ "web-voice": "web-voice";
1355
+ discord: "discord";
1356
+ slack: "slack";
1357
+ teams: "teams";
1358
+ "direct-message": "direct-message";
1359
+ a2a: "a2a";
1360
+ }>;
1361
+ chatType: z.ZodString;
1362
+ paused: z.ZodBoolean;
1363
+ assignmentId: z.ZodNullable<z.ZodNumber>;
1364
+ workflowId: z.ZodNullable<z.ZodNumber>;
1365
+ phoneNumberId: z.ZodNullable<z.ZodNumber>;
1366
+ inboxId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1367
+ siteId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1368
+ folderId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1369
+ fromMessageId: z.ZodNullable<z.ZodNumber>;
1370
+ createdAt: z.ZodString;
1371
+ updatedAt: z.ZodString;
1372
+ title: z.ZodString;
1373
+ summary: z.ZodNullable<z.ZodString>;
1374
+ participants: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1375
+ name: z.ZodString;
1376
+ role: z.ZodLiteral<"user">;
1377
+ memberId: z.ZodNumber;
1378
+ }, z.core.$strip>, z.ZodObject<{
1379
+ name: z.ZodString;
1380
+ memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1381
+ memberType: z.ZodOptional<z.ZodString>;
1382
+ role: z.ZodLiteral<"assistant">;
1383
+ additionalInstructions: z.ZodOptional<z.ZodString>;
1384
+ }, z.core.$strip>, z.ZodObject<{
1385
+ name: z.ZodString;
1386
+ memberId: z.ZodNumber;
1387
+ memberType: z.ZodOptional<z.ZodString>;
1388
+ role: z.ZodLiteral<"contributor">;
1389
+ additionalInstructions: z.ZodOptional<z.ZodString>;
1390
+ }, z.core.$strip>, z.ZodObject<{
1391
+ name: z.ZodString;
1392
+ memberId: z.ZodNumber;
1393
+ memberType: z.ZodOptional<z.ZodString>;
1394
+ role: z.ZodLiteral<"supervisor">;
1395
+ }, z.core.$strip>]>>;
1396
+ canSendAsAssistant: z.ZodOptional<z.ZodBoolean>;
1397
+ }, z.core.$strip>;
1398
+ declare const ChatFilterRuleSchema: z.ZodObject<{
1399
+ objectType: z.ZodEnum<{
1400
+ title: "title";
1401
+ owner: "owner";
1402
+ participant: "participant";
1403
+ mode: "mode";
1404
+ channel: "channel";
1405
+ needsResponse: "needsResponse";
1406
+ paused: "paused";
1407
+ messageCount: "messageCount";
1408
+ toolCall: "toolCall";
1409
+ }>;
1410
+ filterType: z.ZodEnum<{
1411
+ any: "any";
1412
+ none: "none";
1413
+ active: "active";
1414
+ all: "all";
1415
+ partial: "partial";
1416
+ exact: "exact";
1417
+ equals: "equals";
1418
+ notEquals: "notEquals";
1419
+ onlyMine: "onlyMine";
1420
+ }>;
1421
+ objectIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1422
+ query: z.ZodOptional<z.ZodString>;
1423
+ }, z.core.$strip>;
1424
+ declare const ChatFilterRuleFormDataSchema: z.ZodObject<{
1425
+ objectType: z.ZodEnum<{
1426
+ title: "title";
1427
+ owner: "owner";
1428
+ participant: "participant";
1429
+ mode: "mode";
1430
+ channel: "channel";
1431
+ needsResponse: "needsResponse";
1432
+ paused: "paused";
1433
+ messageCount: "messageCount";
1434
+ toolCall: "toolCall";
1435
+ }>;
1436
+ filterType: z.ZodEnum<{
1437
+ any: "any";
1438
+ none: "none";
1439
+ active: "active";
1440
+ all: "all";
1441
+ partial: "partial";
1442
+ exact: "exact";
1443
+ equals: "equals";
1444
+ notEquals: "notEquals";
1445
+ onlyMine: "onlyMine";
1446
+ }>;
1447
+ objectIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1448
+ query: z.ZodOptional<z.ZodString>;
1449
+ }, z.core.$strip>;
1450
+ declare const ToolCallFunctionSchema: z.ZodObject<{
1630
1451
  name: z.ZodString;
1631
- slug: z.ZodString;
1632
- description: z.ZodOptional<z.ZodString>;
1633
- required: z.ZodDefault<z.ZodBoolean>;
1634
- fieldType: z.ZodEnum<typeof DataFieldType>;
1635
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1636
- label: z.ZodString;
1637
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1638
- visibleWhen: z.ZodOptional<z.ZodString>;
1452
+ arguments: z.ZodString;
1453
+ }, z.core.$strip>;
1454
+ declare const ToolCallSchema: z.ZodObject<{
1455
+ id: z.ZodString;
1456
+ type: z.ZodLiteral<"function">;
1457
+ function: z.ZodObject<{
1458
+ name: z.ZodString;
1459
+ arguments: z.ZodString;
1460
+ }, z.core.$strip>;
1461
+ }, z.core.$strip>;
1462
+ declare const ToolResultSchema: z.ZodObject<{
1463
+ tool_call_id: z.ZodString;
1464
+ content: z.ZodString;
1465
+ }, z.core.$strip>;
1466
+ declare const TextContentSchema: z.ZodObject<{
1467
+ type: z.ZodLiteral<"text">;
1468
+ text: z.ZodString;
1469
+ }, z.core.$strip>;
1470
+ declare const ImageUrlContentSchema: z.ZodObject<{
1471
+ type: z.ZodLiteral<"image_url">;
1472
+ image_url: z.ZodObject<{
1473
+ url: z.ZodString;
1474
+ }, z.core.$strip>;
1475
+ }, z.core.$strip>;
1476
+ declare const MessageContentPartSchema: z.ZodUnion<readonly [z.ZodObject<{
1477
+ type: z.ZodLiteral<"text">;
1478
+ text: z.ZodString;
1479
+ }, z.core.$strip>, z.ZodObject<{
1480
+ type: z.ZodLiteral<"image_url">;
1481
+ image_url: z.ZodObject<{
1482
+ url: z.ZodString;
1483
+ }, z.core.$strip>;
1484
+ }, z.core.$strip>]>;
1485
+ declare const ChatMessageObjectSchema: z.ZodObject<{
1486
+ role: z.ZodEnum<{
1487
+ function: "function";
1488
+ system: "system";
1489
+ user: "user";
1490
+ assistant: "assistant";
1491
+ tool: "tool";
1492
+ }>;
1493
+ content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1494
+ type: z.ZodLiteral<"text">;
1495
+ text: z.ZodString;
1496
+ }, z.core.$strip>, z.ZodObject<{
1497
+ type: z.ZodLiteral<"image_url">;
1498
+ image_url: z.ZodObject<{
1499
+ url: z.ZodString;
1500
+ }, z.core.$strip>;
1501
+ }, z.core.$strip>]>>]>>>;
1502
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1503
+ id: z.ZodString;
1504
+ type: z.ZodLiteral<"function">;
1505
+ function: z.ZodObject<{
1506
+ name: z.ZodString;
1507
+ arguments: z.ZodString;
1508
+ }, z.core.$strip>;
1639
1509
  }, z.core.$strip>>>;
1640
- referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1641
- referencedTypeId: z.ZodOptional<z.ZodNumber>;
1642
- shouldIndex: z.ZodOptional<z.ZodBoolean>;
1643
- adminOnly: z.ZodOptional<z.ZodBoolean>;
1644
- }, z.core.$strip>;
1645
- declare const RemoveDataFieldSchema: z.ZodObject<{
1646
- wid: z.ZodString;
1647
- dataTypeId: z.ZodNumber;
1648
- fieldId: z.ZodNumber;
1510
+ tool_call_id: z.ZodOptional<z.ZodString>;
1649
1511
  }, z.core.$strip>;
1650
- declare const UpdateDataFieldSchema: z.ZodObject<{
1651
- wid: z.ZodString;
1652
- dataTypeId: z.ZodNumber;
1653
- fieldId: z.ZodNumber;
1654
- name: z.ZodOptional<z.ZodString>;
1655
- slug: z.ZodOptional<z.ZodString>;
1656
- description: z.ZodOptional<z.ZodString>;
1657
- required: z.ZodOptional<z.ZodBoolean>;
1658
- fieldType: z.ZodOptional<z.ZodEnum<typeof DataFieldType>>;
1659
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1660
- label: z.ZodString;
1661
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1662
- visibleWhen: z.ZodOptional<z.ZodString>;
1512
+ declare const ChatMessageAPIResponseSchema: z.ZodObject<{
1513
+ uuid: z.ZodString;
1514
+ id: z.ZodOptional<z.ZodString>;
1515
+ chatId: z.ZodNumber;
1516
+ participantRole: z.ZodEnum<{
1517
+ function: "function";
1518
+ system: "system";
1519
+ user: "user";
1520
+ assistant: "assistant";
1521
+ tool: "tool";
1522
+ }>;
1523
+ participantName: z.ZodString;
1524
+ participantId: z.ZodNullable<z.ZodNumber>;
1525
+ role: z.ZodEnum<{
1526
+ function: "function";
1527
+ system: "system";
1528
+ user: "user";
1529
+ assistant: "assistant";
1530
+ tool: "tool";
1531
+ }>;
1532
+ content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1533
+ type: z.ZodLiteral<"text">;
1534
+ text: z.ZodString;
1535
+ }, z.core.$strip>, z.ZodObject<{
1536
+ type: z.ZodLiteral<"image_url">;
1537
+ image_url: z.ZodObject<{
1538
+ url: z.ZodString;
1539
+ }, z.core.$strip>;
1540
+ }, z.core.$strip>]>>]>>>;
1541
+ originalContent: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1542
+ type: z.ZodLiteral<"text">;
1543
+ text: z.ZodString;
1544
+ }, z.core.$strip>, z.ZodObject<{
1545
+ type: z.ZodLiteral<"image_url">;
1546
+ image_url: z.ZodObject<{
1547
+ url: z.ZodString;
1548
+ }, z.core.$strip>;
1549
+ }, z.core.$strip>]>>]>>>;
1550
+ truncationReason: z.ZodOptional<z.ZodEnum<{
1551
+ error: "error";
1552
+ barge_in: "barge_in";
1553
+ client_interrupt: "client_interrupt";
1554
+ user_cancel: "user_cancel";
1555
+ }>>;
1556
+ truncatedAtMs: z.ZodOptional<z.ZodNumber>;
1557
+ reasoning_content: z.ZodOptional<z.ZodString>;
1558
+ failed: z.ZodBoolean;
1559
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1560
+ id: z.ZodString;
1561
+ type: z.ZodLiteral<"function">;
1562
+ function: z.ZodObject<{
1563
+ name: z.ZodString;
1564
+ arguments: z.ZodString;
1565
+ }, z.core.$strip>;
1663
1566
  }, z.core.$strip>>>;
1664
- referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1665
- referencedTypeId: z.ZodOptional<z.ZodNumber>;
1666
- shouldIndex: z.ZodOptional<z.ZodBoolean>;
1667
- adminOnly: z.ZodOptional<z.ZodBoolean>;
1567
+ tool_call_id: z.ZodOptional<z.ZodString>;
1568
+ error_details: z.ZodOptional<z.ZodAny>;
1569
+ createdAt: z.ZodString;
1570
+ email_id: z.ZodOptional<z.ZodNumber>;
1571
+ inbox_id: z.ZodOptional<z.ZodNumber>;
1572
+ taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1573
+ smsDeliveryStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1574
+ smsDeliveryErrorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1575
+ smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1576
+ smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1577
+ origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1578
+ member: "member";
1579
+ workflow: "workflow";
1580
+ tool: "tool";
1581
+ agent: "agent";
1582
+ operator: "operator";
1583
+ engine_action: "engine_action";
1584
+ background_run: "background_run";
1585
+ platform: "platform";
1586
+ }>>>;
1587
+ audience: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1588
+ conversation: "conversation";
1589
+ agent_only: "agent_only";
1590
+ }>>>;
1591
+ toolStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1592
+ childMessageCount: z.ZodOptional<z.ZodNumber>;
1593
+ parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1668
1594
  }, z.core.$strip>;
1669
- declare const DataRecordRetirementSchema: z.ZodObject<{
1670
- status: z.ZodLiteral<"retired">;
1671
- reason: z.ZodEnum<{
1672
- monday_item_archived: "monday_item_archived";
1673
- monday_item_deleted: "monday_item_deleted";
1595
+ declare const ChatCompletionMessageSchema: z.ZodObject<{
1596
+ id: z.ZodOptional<z.ZodString>;
1597
+ role: z.ZodEnum<{
1598
+ system: "system";
1599
+ user: "user";
1600
+ assistant: "assistant";
1674
1601
  }>;
1675
- source: z.ZodLiteral<"monday">;
1602
+ content: z.ZodString;
1676
1603
  }, z.core.$strip>;
1677
- declare const DataRecordSchema: z.ZodObject<{
1678
- id: z.ZodNumber;
1604
+ declare const ChatMessageUISchema: z.ZodObject<{
1679
1605
  uuid: z.ZodString;
1680
- dataTypeId: z.ZodNumber;
1681
- memberId: z.ZodNullable<z.ZodNumber>;
1682
- fieldValues: z.ZodRecord<z.ZodString, z.ZodAny>;
1683
- externalId: z.ZodOptional<z.ZodString>;
1684
- assignmentTaskId: z.ZodOptional<z.ZodNumber>;
1685
- createdAt: z.ZodString;
1686
- updatedAt: z.ZodString;
1687
- retirement: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1688
- status: z.ZodLiteral<"retired">;
1689
- reason: z.ZodEnum<{
1690
- monday_item_archived: "monday_item_archived";
1691
- monday_item_deleted: "monday_item_deleted";
1692
- }>;
1693
- source: z.ZodLiteral<"monday">;
1606
+ id: z.ZodOptional<z.ZodString>;
1607
+ chatId: z.ZodNumber;
1608
+ participantRole: z.ZodEnum<{
1609
+ function: "function";
1610
+ system: "system";
1611
+ user: "user";
1612
+ assistant: "assistant";
1613
+ tool: "tool";
1614
+ }>;
1615
+ participantName: z.ZodString;
1616
+ participantId: z.ZodNullable<z.ZodNumber>;
1617
+ role: z.ZodEnum<{
1618
+ function: "function";
1619
+ system: "system";
1620
+ user: "user";
1621
+ assistant: "assistant";
1622
+ tool: "tool";
1623
+ }>;
1624
+ content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1625
+ type: z.ZodLiteral<"text">;
1626
+ text: z.ZodString;
1627
+ }, z.core.$strip>, z.ZodObject<{
1628
+ type: z.ZodLiteral<"image_url">;
1629
+ image_url: z.ZodObject<{
1630
+ url: z.ZodString;
1631
+ }, z.core.$strip>;
1632
+ }, z.core.$strip>]>>]>>>;
1633
+ originalContent: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1634
+ type: z.ZodLiteral<"text">;
1635
+ text: z.ZodString;
1636
+ }, z.core.$strip>, z.ZodObject<{
1637
+ type: z.ZodLiteral<"image_url">;
1638
+ image_url: z.ZodObject<{
1639
+ url: z.ZodString;
1640
+ }, z.core.$strip>;
1641
+ }, z.core.$strip>]>>]>>>;
1642
+ truncationReason: z.ZodOptional<z.ZodEnum<{
1643
+ error: "error";
1644
+ barge_in: "barge_in";
1645
+ client_interrupt: "client_interrupt";
1646
+ user_cancel: "user_cancel";
1647
+ }>>;
1648
+ truncatedAtMs: z.ZodOptional<z.ZodNumber>;
1649
+ reasoning_content: z.ZodOptional<z.ZodString>;
1650
+ failed: z.ZodBoolean;
1651
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1652
+ id: z.ZodString;
1653
+ type: z.ZodLiteral<"function">;
1654
+ function: z.ZodObject<{
1655
+ name: z.ZodString;
1656
+ arguments: z.ZodString;
1657
+ }, z.core.$strip>;
1694
1658
  }, z.core.$strip>>>;
1695
- }, z.core.$strip>;
1696
- declare const DataRecordFormDataSchema: z.ZodObject<{
1697
- memberId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1698
- memberExternalId: z.ZodOptional<z.ZodString>;
1699
- fieldValues: z.ZodRecord<z.ZodString, z.ZodAny>;
1700
- externalId: z.ZodOptional<z.ZodString>;
1701
- assignmentTaskId: z.ZodOptional<z.ZodNumber>;
1702
- }, z.core.$strip>;
1703
- declare const DataRecordsPaginatedResponseSchema: z.ZodObject<{
1704
- items: z.ZodArray<z.ZodObject<{
1705
- id: z.ZodNumber;
1706
- uuid: z.ZodString;
1707
- dataTypeId: z.ZodNumber;
1708
- memberId: z.ZodNullable<z.ZodNumber>;
1709
- fieldValues: z.ZodRecord<z.ZodString, z.ZodAny>;
1710
- externalId: z.ZodOptional<z.ZodString>;
1711
- assignmentTaskId: z.ZodOptional<z.ZodNumber>;
1712
- createdAt: z.ZodString;
1713
- updatedAt: z.ZodString;
1714
- retirement: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1715
- status: z.ZodLiteral<"retired">;
1716
- reason: z.ZodEnum<{
1717
- monday_item_archived: "monday_item_archived";
1718
- monday_item_deleted: "monday_item_deleted";
1719
- }>;
1720
- source: z.ZodLiteral<"monday">;
1721
- }, z.core.$strip>>>;
1659
+ tool_call_id: z.ZodOptional<z.ZodString>;
1660
+ error_details: z.ZodOptional<z.ZodAny>;
1661
+ createdAt: z.ZodString;
1662
+ email_id: z.ZodOptional<z.ZodNumber>;
1663
+ inbox_id: z.ZodOptional<z.ZodNumber>;
1664
+ taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1665
+ smsDeliveryStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1666
+ smsDeliveryErrorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1667
+ smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1668
+ smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1669
+ origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1670
+ member: "member";
1671
+ workflow: "workflow";
1672
+ tool: "tool";
1673
+ agent: "agent";
1674
+ operator: "operator";
1675
+ engine_action: "engine_action";
1676
+ background_run: "background_run";
1677
+ platform: "platform";
1678
+ }>>>;
1679
+ audience: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1680
+ conversation: "conversation";
1681
+ agent_only: "agent_only";
1682
+ }>>>;
1683
+ toolStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1684
+ childMessageCount: z.ZodOptional<z.ZodNumber>;
1685
+ parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1686
+ error: z.ZodOptional<z.ZodObject<{
1687
+ code: z.ZodString;
1688
+ message: z.ZodString;
1722
1689
  }, z.core.$strip>>;
1723
- total: z.ZodNumber;
1724
- page: z.ZodNumber;
1725
- pageSize: z.ZodNumber;
1726
- totalPages: z.ZodNumber;
1690
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1691
+ sendAsAssistant: z.ZodOptional<z.ZodBoolean>;
1727
1692
  }, z.core.$strip>;
1728
- declare const DataRecordWithAccessModeSchema: z.ZodObject<{
1729
- id: z.ZodNumber;
1693
+ declare const ChatMessageSchema: z.ZodObject<{
1730
1694
  uuid: z.ZodString;
1731
- dataTypeId: z.ZodNumber;
1732
- memberId: z.ZodNullable<z.ZodNumber>;
1733
- fieldValues: z.ZodRecord<z.ZodString, z.ZodAny>;
1734
- externalId: z.ZodOptional<z.ZodString>;
1735
- assignmentTaskId: z.ZodOptional<z.ZodNumber>;
1736
- createdAt: z.ZodString;
1737
- updatedAt: z.ZodString;
1738
- retirement: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1739
- status: z.ZodLiteral<"retired">;
1740
- reason: z.ZodEnum<{
1741
- monday_item_archived: "monday_item_archived";
1742
- monday_item_deleted: "monday_item_deleted";
1743
- }>;
1744
- source: z.ZodLiteral<"monday">;
1695
+ id: z.ZodOptional<z.ZodString>;
1696
+ chatId: z.ZodNumber;
1697
+ participantRole: z.ZodEnum<{
1698
+ function: "function";
1699
+ system: "system";
1700
+ user: "user";
1701
+ assistant: "assistant";
1702
+ tool: "tool";
1703
+ }>;
1704
+ participantName: z.ZodString;
1705
+ participantId: z.ZodNullable<z.ZodNumber>;
1706
+ role: z.ZodEnum<{
1707
+ function: "function";
1708
+ system: "system";
1709
+ user: "user";
1710
+ assistant: "assistant";
1711
+ tool: "tool";
1712
+ }>;
1713
+ content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1714
+ type: z.ZodLiteral<"text">;
1715
+ text: z.ZodString;
1716
+ }, z.core.$strip>, z.ZodObject<{
1717
+ type: z.ZodLiteral<"image_url">;
1718
+ image_url: z.ZodObject<{
1719
+ url: z.ZodString;
1720
+ }, z.core.$strip>;
1721
+ }, z.core.$strip>]>>]>>>;
1722
+ originalContent: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1723
+ type: z.ZodLiteral<"text">;
1724
+ text: z.ZodString;
1725
+ }, z.core.$strip>, z.ZodObject<{
1726
+ type: z.ZodLiteral<"image_url">;
1727
+ image_url: z.ZodObject<{
1728
+ url: z.ZodString;
1729
+ }, z.core.$strip>;
1730
+ }, z.core.$strip>]>>]>>>;
1731
+ truncationReason: z.ZodOptional<z.ZodEnum<{
1732
+ error: "error";
1733
+ barge_in: "barge_in";
1734
+ client_interrupt: "client_interrupt";
1735
+ user_cancel: "user_cancel";
1736
+ }>>;
1737
+ truncatedAtMs: z.ZodOptional<z.ZodNumber>;
1738
+ reasoning_content: z.ZodOptional<z.ZodString>;
1739
+ failed: z.ZodBoolean;
1740
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1741
+ id: z.ZodString;
1742
+ type: z.ZodLiteral<"function">;
1743
+ function: z.ZodObject<{
1744
+ name: z.ZodString;
1745
+ arguments: z.ZodString;
1746
+ }, z.core.$strip>;
1745
1747
  }, z.core.$strip>>>;
1746
- accessMode: z.ZodNumber;
1747
- }, z.core.$strip>;
1748
- declare const DataRecordAssociationFormDataSchema: z.ZodObject<{
1749
- id: z.ZodNumber;
1750
- accessMode: z.ZodNumber;
1751
- }, z.core.$strip>;
1752
- declare const DataRecordReportItemSchema: z.ZodObject<{
1753
- id: z.ZodNumber;
1754
- data_type_id: z.ZodNumber;
1755
- data_type_name: z.ZodString;
1756
- data_type_slug: z.ZodString;
1757
- values: z.ZodRecord<z.ZodString, z.ZodAny>;
1758
- created_at: z.ZodString;
1759
- updated_at: z.ZodString;
1760
- external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1761
- }, z.core.$strip>;
1762
- declare const DataIntegrityReportItemSchema: z.ZodObject<{
1763
- issue_type: z.ZodString;
1764
- data_type_id: z.ZodOptional<z.ZodNumber>;
1765
- data_type_name: z.ZodOptional<z.ZodString>;
1766
- record_id: z.ZodOptional<z.ZodNumber>;
1767
- field_name: z.ZodOptional<z.ZodString>;
1768
- details: z.ZodString;
1769
- }, z.core.$strip>;
1770
- declare const DataTypeExportItemSchema: z.ZodObject<{
1771
- uuid: z.ZodString;
1772
- templateUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1773
- name: z.ZodString;
1774
- slug: z.ZodString;
1775
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1776
- prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1777
- isCollection: z.ZodBoolean;
1778
- recordScope: z.ZodEnum<typeof DataTypeRecordScope>;
1779
- fields: z.ZodArray<z.ZodObject<{
1780
- slug: z.ZodString;
1781
- name: z.ZodString;
1782
- description: z.ZodOptional<z.ZodString>;
1783
- fieldType: z.ZodEnum<typeof DataFieldType>;
1784
- required: z.ZodBoolean;
1785
- order: z.ZodOptional<z.ZodNumber>;
1786
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1787
- label: z.ZodString;
1788
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1789
- visibleWhen: z.ZodOptional<z.ZodString>;
1790
- }, z.core.$strip>>>;
1791
- referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1792
- referencedTypeId: z.ZodOptional<z.ZodNumber>;
1793
- shouldIndex: z.ZodOptional<z.ZodBoolean>;
1794
- adminOnly: z.ZodOptional<z.ZodBoolean>;
1795
- defaultValue: z.ZodOptional<z.ZodAny>;
1796
- sensitivity: z.ZodOptional<z.ZodEnum<typeof DataSensitivity>>;
1797
- categories: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof DataCategory>>>;
1798
- celFunction: z.ZodOptional<z.ZodString>;
1799
- validateCel: z.ZodOptional<z.ZodString>;
1748
+ tool_call_id: z.ZodOptional<z.ZodString>;
1749
+ error_details: z.ZodOptional<z.ZodAny>;
1750
+ createdAt: z.ZodString;
1751
+ email_id: z.ZodOptional<z.ZodNumber>;
1752
+ inbox_id: z.ZodOptional<z.ZodNumber>;
1753
+ taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1754
+ smsDeliveryStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1755
+ smsDeliveryErrorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1756
+ smsDeliveryUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1757
+ smsDeliveryFailureReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1758
+ origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1759
+ member: "member";
1760
+ workflow: "workflow";
1761
+ tool: "tool";
1762
+ agent: "agent";
1763
+ operator: "operator";
1764
+ engine_action: "engine_action";
1765
+ background_run: "background_run";
1766
+ platform: "platform";
1767
+ }>>>;
1768
+ audience: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1769
+ conversation: "conversation";
1770
+ agent_only: "agent_only";
1771
+ }>>>;
1772
+ toolStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1773
+ childMessageCount: z.ZodOptional<z.ZodNumber>;
1774
+ parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1775
+ error: z.ZodOptional<z.ZodObject<{
1776
+ code: z.ZodString;
1777
+ message: z.ZodString;
1800
1778
  }, z.core.$strip>>;
1779
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1780
+ sendAsAssistant: z.ZodOptional<z.ZodBoolean>;
1801
1781
  }, z.core.$strip>;
1802
- declare const TaskExportDataTypeRelationSchema: z.ZodObject<{
1803
- dataTypeUuid: z.ZodString;
1804
- accessMode: z.ZodNumber;
1782
+ declare const ChatMessageChunkSchema: z.ZodObject<{
1783
+ type: z.ZodEnum<{
1784
+ error: "error";
1785
+ toolCall: "toolCall";
1786
+ content: "content";
1787
+ }>;
1788
+ content: z.ZodOptional<z.ZodString>;
1789
+ toolCallId: z.ZodOptional<z.ZodString>;
1790
+ toolCallName: z.ZodOptional<z.ZodString>;
1791
+ toolCallArguments: z.ZodOptional<z.ZodString>;
1792
+ error: z.ZodOptional<z.ZodString>;
1805
1793
  }, z.core.$strip>;
1806
- type DataField = z.infer<typeof DataFieldSchema>;
1807
- type DataFieldFormData = z.infer<typeof DataFieldFormDataSchema>;
1808
- type SchemaField = z.infer<typeof SchemaFieldSchema>;
1809
- type SchemaFieldFormData = z.infer<typeof SchemaFieldFormDataSchema>;
1810
- type DataType = z.infer<typeof DataTypeSchema>;
1811
- type DataTypeFormData = z.infer<typeof DataTypeFormDataSchema>;
1812
- type DataRecord = z.infer<typeof DataRecordSchema>;
1813
- type DataRecordRetirement = z.infer<typeof DataRecordRetirementSchema>;
1814
- type DataRecordFormData = z.infer<typeof DataRecordFormDataSchema>;
1815
- type DataRecordsPaginatedResponse = z.infer<typeof DataRecordsPaginatedResponseSchema>;
1816
- type DataRecordWithAccessMode = z.infer<typeof DataRecordWithAccessModeSchema>;
1817
- type DataRecordAssociationFormData = z.infer<typeof DataRecordAssociationFormDataSchema>;
1818
- type DataRecordReportItem = z.infer<typeof DataRecordReportItemSchema>;
1819
- type DataIntegrityReportItem = z.infer<typeof DataIntegrityReportItemSchema>;
1820
- type DataTypeExportItem = z.infer<typeof DataTypeExportItemSchema>;
1821
- type TaskExportDataTypeRelation = z.infer<typeof TaskExportDataTypeRelationSchema>;
1822
- type DataRecordFilters = z.infer<typeof DataRecordFiltersSchema>;
1823
- type ListDataTypesInput = z.infer<typeof ListDataTypesSchema>;
1824
- type GetDataTypeInput = z.infer<typeof GetDataTypeSchema>;
1825
- type GetDataTypeBySlugInput = z.infer<typeof GetDataTypeBySlugSchema>;
1826
- type CreateDataTypeInput = z.infer<typeof CreateDataTypeSchema>;
1827
- type UpdateDataTypeInput = z.infer<typeof UpdateDataTypeSchema>;
1828
- type DeleteDataTypeInput = z.infer<typeof DeleteDataTypeSchema>;
1829
- type ListDataRecordsInput = z.infer<typeof ListDataRecordsSchema>;
1830
- type GetDataRecordInput = z.infer<typeof GetDataRecordSchema>;
1831
- type CreateDataRecordInput = z.infer<typeof CreateDataRecordSchema>;
1832
- type UpdateDataRecordInput = z.infer<typeof UpdateDataRecordSchema>;
1833
- type DeleteDataRecordInput = z.infer<typeof DeleteDataRecordSchema>;
1834
- type UpsertDataRecordInput = z.infer<typeof UpsertDataRecordSchema>;
1835
- type ToggleFieldIndexInput = z.infer<typeof ToggleFieldIndexSchema>;
1836
- type GetFieldIndexStatusInput = z.infer<typeof GetFieldIndexStatusSchema>;
1837
- type AddDataFieldInput = z.infer<typeof AddDataFieldSchema>;
1838
- type RemoveDataFieldInput = z.infer<typeof RemoveDataFieldSchema>;
1839
- type UpdateDataFieldInput = z.infer<typeof UpdateDataFieldSchema>;
1794
+ type Channel = z.infer<typeof ChannelEnum>;
1795
+ type MessageRole = z.infer<typeof MessageRoleEnum>;
1796
+ type ChatFilterObjectType = z.infer<typeof ChatFilterObjectTypeEnum>;
1797
+ type ChatFilterFilterType = z.infer<typeof ChatFilterFilterTypeEnum>;
1798
+ type TruncationReason = z.infer<typeof TruncationReasonEnum>;
1799
+ type ChatMuteReasonValue = z.infer<typeof ChatMuteReasonEnum>;
1800
+ type MessageOrigin = z.infer<typeof MessageOriginEnum>;
1801
+ type MessageAudience = z.infer<typeof MessageAudienceEnum>;
1802
+ type ChatParticipantFormData = z.infer<typeof ChatParticipantFormDataSchema>;
1803
+ type HumanChatParticipant = z.infer<typeof HumanChatParticipantSchema>;
1804
+ type AssistantChatParticipant = z.infer<typeof AssistantChatParticipantSchema>;
1805
+ type ContributorChatParticipant = z.infer<typeof ContributorChatParticipantSchema>;
1806
+ type SupervisorChatParticipant = z.infer<typeof SupervisorChatParticipantSchema>;
1807
+ type ChatFormData = z.infer<typeof ChatFormDataSchema>;
1808
+ type FunctionTool = z.infer<typeof FunctionToolSchema>;
1809
+ type Chat = z.infer<typeof ChatSchema>;
1810
+ type ChatFilterRule = z.infer<typeof ChatFilterRuleSchema>;
1811
+ type ChatFilterRuleFormData = z.infer<typeof ChatFilterRuleFormDataSchema>;
1812
+ type ToolCallFunction = z.infer<typeof ToolCallFunctionSchema>;
1813
+ type ToolCall = z.infer<typeof ToolCallSchema>;
1814
+ type ToolResult = z.infer<typeof ToolResultSchema>;
1815
+ type TextContent = z.infer<typeof TextContentSchema>;
1816
+ type ImageUrlContent = z.infer<typeof ImageUrlContentSchema>;
1817
+ type MessageContentPart = z.infer<typeof MessageContentPartSchema>;
1818
+ type ChatMessageObject = z.infer<typeof ChatMessageObjectSchema>;
1819
+ type ChatMessageAPIResponse = z.infer<typeof ChatMessageAPIResponseSchema>;
1820
+ type ChatCompletionMessage = z.infer<typeof ChatCompletionMessageSchema>;
1821
+ type ChatMessageUI = z.infer<typeof ChatMessageUISchema>;
1822
+ type ChatMessage = z.infer<typeof ChatMessageSchema>;
1823
+ type ChatMessageChunk = z.infer<typeof ChatMessageChunkSchema>;
1824
+ type ListChatsInput = z.infer<typeof ListChatsSchema>;
1825
+ type GetChatInput = z.infer<typeof GetChatSchema>;
1826
+ type CreateChatInput = z.infer<typeof CreateChatSchema>;
1827
+ type UpdateChatInput = z.infer<typeof UpdateChatSchema>;
1828
+ type DeleteChatInput = z.infer<typeof DeleteChatSchema>;
1829
+ type ArchiveChatInput = z.infer<typeof ArchiveChatSchema>;
1830
+ type UnarchiveChatInput = z.infer<typeof UnarchiveChatSchema>;
1831
+ type UpdateChatMuteInput = z.infer<typeof UpdateChatMuteSchema>;
1832
+ type GetChatsNeedsResponseInput = z.infer<typeof GetChatsNeedsResponseSchema>;
1833
+ type GetChatMessagesInput = z.infer<typeof GetChatMessagesSchema>;
1834
+ type SendChatMessageInput = z.infer<typeof SendChatMessageSchema>;
1835
+ type SendAssistantMessageInput = z.infer<typeof SendAssistantMessageSchema>;
1836
+ type InitiateOutboundCallInput = z.infer<typeof InitiateOutboundCallSchema>;
1837
+ type RateMessageInput = z.infer<typeof RateMessageSchema>;
1838
+ type CreateChatForWorkflowInput = z.infer<typeof CreateChatForWorkflowSchema>;
1839
+ type CreateChatCompletionInput = z.infer<typeof CreateChatCompletionSchema>;
1840
1840
 
1841
1841
  declare const InboxRuleSchema: z.ZodObject<{
1842
1842
  field: z.ZodEnum<{