@gravity-rail/sdk 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/dist/{chunk-MFEEPNXO.js → chunk-QS6ZRQUZ.js} +37 -11
- package/dist/chunk-QS6ZRQUZ.js.map +1 -0
- package/dist/{chunk-DNTCSBEW.js → chunk-QZC4QPP2.js} +996 -161
- package/dist/chunk-QZC4QPP2.js.map +1 -0
- package/dist/{index-BK6BH83l.d.ts → index-CIwgGcAm.d.ts} +7600 -5388
- package/dist/{index-CafthMIC.d.cts → index-DNxSoo5S.d.cts} +7600 -5388
- package/dist/index.cjs +1047 -168
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +52 -2
- package/dist/inquiries-DiTDrTG2.d.cts +3536 -0
- package/dist/inquiries-DiTDrTG2.d.ts +3536 -0
- package/dist/internal.cjs +1063 -172
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +109 -91
- package/dist/internal.d.ts +109 -91
- package/dist/internal.js +60 -6
- package/dist/schemas.cjs +322 -50
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +339 -66
- package/dist/schemas.d.ts +339 -66
- package/dist/schemas.js +284 -40
- package/dist/schemas.js.map +1 -1
- package/package.json +10 -5
- package/dist/chunk-DNTCSBEW.js.map +0 -1
- package/dist/chunk-MFEEPNXO.js.map +0 -1
- package/dist/inquiries-8Tb9lh4a.d.cts +0 -1803
- package/dist/inquiries-8Tb9lh4a.d.ts +0 -1803
|
@@ -1,1803 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
interface PaginatedResponse<T> {
|
|
4
|
-
items: T[];
|
|
5
|
-
total: number;
|
|
6
|
-
page: number;
|
|
7
|
-
pageSize: number;
|
|
8
|
-
totalPages: number;
|
|
9
|
-
}
|
|
10
|
-
interface CursorPaginatedResponse<T> {
|
|
11
|
-
items: T[];
|
|
12
|
-
nextCursor: string | null;
|
|
13
|
-
hasMore: boolean;
|
|
14
|
-
pageSize: number;
|
|
15
|
-
}
|
|
16
|
-
type SortOrder = 'asc' | 'desc';
|
|
17
|
-
declare enum AccessLevel {
|
|
18
|
-
PRIVATE = "private",
|
|
19
|
-
PUBLIC = "public",
|
|
20
|
-
WORKSPACE = "workspace"
|
|
21
|
-
}
|
|
22
|
-
declare const PERMISSION_NONE = 0;
|
|
23
|
-
declare const PERMISSION_USE = 1;
|
|
24
|
-
declare const PERMISSION_EDIT = 2;
|
|
25
|
-
declare const PERMISSION_CREATE = 4;
|
|
26
|
-
declare const PERMISSION_LIST = 8;
|
|
27
|
-
declare const PERMISSION_ADMIN = 16;
|
|
28
|
-
declare const PERMISSION_VERIFY = 32;
|
|
29
|
-
declare const PERMISSION_GEOLOCATE = 128;
|
|
30
|
-
declare const PERMISSION_LIST_ALL = 256;
|
|
31
|
-
declare const PERMISSION_DELETE = 512;
|
|
32
|
-
interface ObjectPermissionFlags {
|
|
33
|
-
use: boolean;
|
|
34
|
-
edit: boolean;
|
|
35
|
-
create: boolean;
|
|
36
|
-
list: boolean;
|
|
37
|
-
verify: boolean;
|
|
38
|
-
geolocate: boolean;
|
|
39
|
-
listAll: boolean;
|
|
40
|
-
delete: boolean;
|
|
41
|
-
}
|
|
42
|
-
declare function decodePermissions(accessMode: number): ObjectPermissionFlags;
|
|
43
|
-
declare function encodePermissions(permissions: ObjectPermissionFlags): number;
|
|
44
|
-
type ObjectPermission = 'use' | 'edit' | 'create' | 'list' | 'verify' | 'geolocate' | 'listAll' | 'delete';
|
|
45
|
-
/**
|
|
46
|
-
* Permission scopes for workspace access control.
|
|
47
|
-
* Maps to lib/context/scopes.py - keep in sync.
|
|
48
|
-
*
|
|
49
|
-
* Naming convention: NAMESPACE_ACTION
|
|
50
|
-
* Actions: READ, WRITE, ADMIN
|
|
51
|
-
*/
|
|
52
|
-
declare enum Scope {
|
|
53
|
-
WORKSPACE_READ = "workspace:read",
|
|
54
|
-
WORKSPACE_WRITE = "workspace:write",
|
|
55
|
-
WORKSPACE_ADMIN = "workspace:admin",
|
|
56
|
-
MEMBERS_READ = "members:read",
|
|
57
|
-
MEMBERS_WRITE = "members:write",
|
|
58
|
-
MEMBERS_ADMIN = "members:admin",
|
|
59
|
-
MEMBER_ROLES_READ = "member_roles:read",
|
|
60
|
-
MEMBER_ROLES_WRITE = "member_roles:write",
|
|
61
|
-
MEMBER_ROLES_ADMIN = "member_roles:admin",
|
|
62
|
-
CHATS_READ = "chats:read",
|
|
63
|
-
CHATS_WRITE = "chats:write",
|
|
64
|
-
CHATS_ADMIN = "chats:admin",
|
|
65
|
-
DIRECT_MESSAGES_READ = "dm:read",
|
|
66
|
-
DIRECT_MESSAGES_WRITE = "dm:write",
|
|
67
|
-
DIRECT_MESSAGES_ADMIN = "dm:admin",
|
|
68
|
-
JOURNEYS_READ = "journeys:read",
|
|
69
|
-
JOURNEYS_WRITE = "journeys:write",
|
|
70
|
-
JOURNEYS_ADMIN = "journeys:admin",
|
|
71
|
-
WORKFLOWS_READ = "workflows:read",
|
|
72
|
-
WORKFLOWS_WRITE = "workflows:write",
|
|
73
|
-
WORKFLOWS_ADMIN = "workflows:admin",
|
|
74
|
-
ASSIGNMENTS_READ = "assignments:read",
|
|
75
|
-
ASSIGNMENTS_WRITE = "assignments:write",
|
|
76
|
-
ASSIGNMENTS_ADMIN = "assignments:admin",
|
|
77
|
-
AUTOMATIONS_READ = "automations:read",
|
|
78
|
-
AUTOMATIONS_WRITE = "automations:write",
|
|
79
|
-
AUTOMATIONS_ADMIN = "automations:admin",
|
|
80
|
-
DATATYPES_READ = "datatypes:read",
|
|
81
|
-
DATATYPES_WRITE = "datatypes:write",
|
|
82
|
-
DATATYPES_ADMIN = "datatypes:admin",
|
|
83
|
-
RECORDS_READ = "records:read",
|
|
84
|
-
RECORDS_WRITE = "records:write",
|
|
85
|
-
RECORDS_ADMIN = "records:admin",
|
|
86
|
-
FILES_READ = "files:read",
|
|
87
|
-
FILES_WRITE = "files:write",
|
|
88
|
-
FILES_ADMIN = "files:admin",
|
|
89
|
-
SITES_READ = "sites:read",
|
|
90
|
-
SITES_WRITE = "sites:write",
|
|
91
|
-
SITES_ADMIN = "sites:admin",
|
|
92
|
-
AGENTS_READ = "agents:read",
|
|
93
|
-
AGENTS_WRITE = "agents:write",
|
|
94
|
-
AGENTS_ADMIN = "agents:admin",
|
|
95
|
-
CALENDARS_READ = "calendars:read",
|
|
96
|
-
CALENDARS_WRITE = "calendars:write",
|
|
97
|
-
CALENDARS_ADMIN = "calendars:admin",
|
|
98
|
-
INBOXES_READ = "inboxes:read",
|
|
99
|
-
INBOXES_WRITE = "inboxes:write",
|
|
100
|
-
INBOXES_ADMIN = "inboxes:admin",
|
|
101
|
-
PHONES_READ = "phones:read",
|
|
102
|
-
PHONES_WRITE = "phones:write",
|
|
103
|
-
PHONES_ADMIN = "phones:admin",
|
|
104
|
-
WEBHOOKS_READ = "webhooks:read",
|
|
105
|
-
WEBHOOKS_WRITE = "webhooks:write",
|
|
106
|
-
WEBHOOKS_ADMIN = "webhooks:admin",
|
|
107
|
-
WEBHOOKS_RAW = "webhooks:raw",// Access to raw webhook payloads
|
|
108
|
-
APPS_READ = "apps:read",
|
|
109
|
-
APPS_WRITE = "apps:write",
|
|
110
|
-
APPS_ADMIN = "apps:admin",
|
|
111
|
-
LABELS_READ = "labels:read",
|
|
112
|
-
/** @deprecated Use parent resource write scope (MEMBERS_WRITE, CHATS_WRITE, FILES_WRITE) */
|
|
113
|
-
LABELS_WRITE = "labels:write",
|
|
114
|
-
ANALYTICS_READ = "analytics:read",
|
|
115
|
-
OPERATOR_READ = "operator:read",
|
|
116
|
-
OPERATOR_WRITE = "operator:write",
|
|
117
|
-
ORG_INFO = "org:info",
|
|
118
|
-
ORG_READ = "org:read",
|
|
119
|
-
ORG_WRITE = "org:write",
|
|
120
|
-
ORG_ADMIN = "org:admin",
|
|
121
|
-
ORG_BILLING = "org:billing",
|
|
122
|
-
ORG_DELETE = "org:delete"
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
type ChatSortField = 'createdAt' | 'updatedAt' | 'title' | 'mostRecentMessage';
|
|
126
|
-
type AssignmentSortField = 'createdAt' | 'updatedAt';
|
|
127
|
-
type MemberSortField = 'createdAt' | 'updatedAt' | 'name' | 'email';
|
|
128
|
-
type SiteSortField = 'createdAt' | 'updatedAt' | 'name';
|
|
129
|
-
type FileSortField = 'createdAt' | 'updatedAt' | 'name';
|
|
130
|
-
type PageSortField = 'createdAt' | 'updatedAt' | 'title';
|
|
131
|
-
type WebhookLogSortField = 'createdAt';
|
|
132
|
-
type RuleExecutionSortField = 'createdAt' | 'completedAt' | 'durationMs' | 'status';
|
|
133
|
-
type RoutineSortField = 'createdAt' | 'updatedAt' | 'name' | 'scheduledTime';
|
|
134
|
-
type EventRunSortField = 'createdAt';
|
|
135
|
-
type MilestoneSortField = 'name' | 'createdAt' | 'updatedAt' | 'targetDate';
|
|
136
|
-
type AccountSortField = 'createdAt' | 'updatedAt' | 'name' | 'email';
|
|
137
|
-
type WorkspaceSortField = 'createdAt' | 'updatedAt' | 'name';
|
|
138
|
-
type AdminWorkspaceSortField = 'name' | 'slug' | 'createdAt';
|
|
139
|
-
type BotSortField = 'createdAt' | 'updatedAt' | 'name';
|
|
140
|
-
type AgentSortField = 'createdAt' | 'updatedAt' | 'name';
|
|
141
|
-
type WorkflowSortField = 'name' | 'updatedAt' | 'createdAt';
|
|
142
|
-
type TaskSortField = 'name' | 'createdAt' | 'workflowId';
|
|
143
|
-
type QualificationSortField = 'name' | 'createdAt';
|
|
144
|
-
type JourneySortField = 'name' | 'createdAt';
|
|
145
|
-
type McpServerSortField = 'name' | 'createdAt' | 'state';
|
|
146
|
-
type DataTypeSortField = 'name' | 'createdAt';
|
|
147
|
-
type CalendarEventSortField = 'startTime' | 'createdAt';
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Account interface.
|
|
151
|
-
*
|
|
152
|
-
* Note: With Verified Credential Architecture, if email/phone is set, it's verified
|
|
153
|
-
* by construction. Credentials are IMMUTABLE once set. The *VerifiedAt timestamps
|
|
154
|
-
* record when verification occurred.
|
|
155
|
-
*/
|
|
156
|
-
interface Account {
|
|
157
|
-
id: number;
|
|
158
|
-
loggedIn: boolean;
|
|
159
|
-
avatarUrl: string | null;
|
|
160
|
-
email: string | null;
|
|
161
|
-
phone: string | null;
|
|
162
|
-
emailVerifiedAt: string | null;
|
|
163
|
-
phoneVerifiedAt: string | null;
|
|
164
|
-
name: string | null;
|
|
165
|
-
uuid: string;
|
|
166
|
-
createdAt: string;
|
|
167
|
-
isSuperuser: boolean;
|
|
168
|
-
enabled: boolean;
|
|
169
|
-
tosAccepted: boolean;
|
|
170
|
-
optedOut: boolean;
|
|
171
|
-
signupWorkspaceId: number | null;
|
|
172
|
-
stripeCustomerId: string | null;
|
|
173
|
-
locale: string | null;
|
|
174
|
-
timezone: string | null;
|
|
175
|
-
}
|
|
176
|
-
interface AccountFormData {
|
|
177
|
-
name?: string;
|
|
178
|
-
tosAccepted?: boolean;
|
|
179
|
-
optedOut?: boolean;
|
|
180
|
-
locale?: string;
|
|
181
|
-
timezone?: string;
|
|
182
|
-
}
|
|
183
|
-
interface AdminAccountFormData extends AccountFormData {
|
|
184
|
-
email?: string;
|
|
185
|
-
phone?: string;
|
|
186
|
-
isSuperuser?: boolean;
|
|
187
|
-
enabled?: boolean;
|
|
188
|
-
stripeCustomerId?: string | null;
|
|
189
|
-
}
|
|
190
|
-
interface AdminAccount extends Account {
|
|
191
|
-
workspaceUuids: string[];
|
|
192
|
-
tosAccepted: boolean;
|
|
193
|
-
optedOut: boolean;
|
|
194
|
-
customerId: number | null;
|
|
195
|
-
customerName: string | null;
|
|
196
|
-
pendingDeletion?: boolean;
|
|
197
|
-
deletionRequestedAt?: string | null;
|
|
198
|
-
}
|
|
199
|
-
interface DetailedAccount extends AdminAccount {
|
|
200
|
-
}
|
|
201
|
-
interface AccountState {
|
|
202
|
-
items: Account[];
|
|
203
|
-
total: number;
|
|
204
|
-
page: number;
|
|
205
|
-
pageSize: number;
|
|
206
|
-
totalPages: number;
|
|
207
|
-
sortBy: AccountSortField;
|
|
208
|
-
sortOrder: SortOrder;
|
|
209
|
-
}
|
|
210
|
-
interface LoginRequest {
|
|
211
|
-
phoneNumber: string;
|
|
212
|
-
organizationUuid?: string;
|
|
213
|
-
}
|
|
214
|
-
interface VerifyCodeRequest {
|
|
215
|
-
phoneNumber: string;
|
|
216
|
-
code: string;
|
|
217
|
-
organizationUuid?: string;
|
|
218
|
-
}
|
|
219
|
-
interface VerifyCodeResponse {
|
|
220
|
-
token: string;
|
|
221
|
-
accountId: number;
|
|
222
|
-
accountName?: string | null;
|
|
223
|
-
accountUuid?: string | null;
|
|
224
|
-
requiresTwoFactor?: boolean;
|
|
225
|
-
availableTwoFactorMethods?: any[];
|
|
226
|
-
}
|
|
227
|
-
interface LoginResponse {
|
|
228
|
-
token?: string;
|
|
229
|
-
accountId?: number;
|
|
230
|
-
}
|
|
231
|
-
interface SMSLoginResponse {
|
|
232
|
-
success: boolean;
|
|
233
|
-
message?: string;
|
|
234
|
-
}
|
|
235
|
-
interface SendEmailVerificationRequest {
|
|
236
|
-
email: string;
|
|
237
|
-
organizationUuid?: string;
|
|
238
|
-
}
|
|
239
|
-
interface VerifyEmailRequest {
|
|
240
|
-
email: string;
|
|
241
|
-
code: string;
|
|
242
|
-
organizationUuid?: string;
|
|
243
|
-
}
|
|
244
|
-
interface ErrorResponse {
|
|
245
|
-
detail: string;
|
|
246
|
-
}
|
|
247
|
-
interface RequestMagicLinkRequest {
|
|
248
|
-
email: string;
|
|
249
|
-
organizationUuid?: string;
|
|
250
|
-
redirectUrl?: string;
|
|
251
|
-
}
|
|
252
|
-
interface RequestMagicLinkResponse {
|
|
253
|
-
success: boolean;
|
|
254
|
-
message: string;
|
|
255
|
-
token?: string;
|
|
256
|
-
magicLinkUrl?: string;
|
|
257
|
-
}
|
|
258
|
-
interface ValidateMagicLinkRequest {
|
|
259
|
-
token: string;
|
|
260
|
-
otp?: string;
|
|
261
|
-
}
|
|
262
|
-
interface ValidateMagicLinkResponse extends VerifyCodeResponse {
|
|
263
|
-
success: boolean;
|
|
264
|
-
requiresOtp?: boolean;
|
|
265
|
-
otpAttemptsRemaining?: number;
|
|
266
|
-
redirectUrl?: string;
|
|
267
|
-
}
|
|
268
|
-
interface ApiKey {
|
|
269
|
-
id: number;
|
|
270
|
-
uuid: string;
|
|
271
|
-
name: string;
|
|
272
|
-
keyPrefix: string;
|
|
273
|
-
createdAt: string;
|
|
274
|
-
expiresAt: string | null;
|
|
275
|
-
lastUsedAt: string | null;
|
|
276
|
-
enabled: boolean;
|
|
277
|
-
scopes: string[];
|
|
278
|
-
appId?: number | null;
|
|
279
|
-
}
|
|
280
|
-
interface ApiKeyCreated extends ApiKey {
|
|
281
|
-
key: string;
|
|
282
|
-
}
|
|
283
|
-
interface ApiKeyFormData {
|
|
284
|
-
name: string;
|
|
285
|
-
expiresInDays: number;
|
|
286
|
-
scopes: string[];
|
|
287
|
-
}
|
|
288
|
-
interface ApiKeyScope {
|
|
289
|
-
name: string;
|
|
290
|
-
description: string;
|
|
291
|
-
value: number;
|
|
292
|
-
}
|
|
293
|
-
interface ApiKeyScopesResponse {
|
|
294
|
-
scopes: ApiKeyScope[];
|
|
295
|
-
}
|
|
296
|
-
interface SSOConfigData {
|
|
297
|
-
providerType?: string | null;
|
|
298
|
-
autoProvision?: boolean;
|
|
299
|
-
roleMapping?: Record<string, string> | null;
|
|
300
|
-
}
|
|
301
|
-
interface SSOConfig {
|
|
302
|
-
provider: string | null;
|
|
303
|
-
domain: string | null;
|
|
304
|
-
required: boolean;
|
|
305
|
-
enabledAt: string | null;
|
|
306
|
-
config: SSOConfigData | null;
|
|
307
|
-
}
|
|
308
|
-
interface Organization {
|
|
309
|
-
id: number;
|
|
310
|
-
uuid: string;
|
|
311
|
-
name: string;
|
|
312
|
-
slug: string;
|
|
313
|
-
primary: boolean;
|
|
314
|
-
logoUrl?: string;
|
|
315
|
-
contactEmail?: string;
|
|
316
|
-
contactPhone?: string;
|
|
317
|
-
createdAt: string;
|
|
318
|
-
creatorId: number;
|
|
319
|
-
creatorName?: string;
|
|
320
|
-
resellerWorkspaceId?: number;
|
|
321
|
-
resellerWorkspaceUuid?: string;
|
|
322
|
-
sso?: SSOConfig | null;
|
|
323
|
-
}
|
|
324
|
-
interface AdminOrganization extends Organization {
|
|
325
|
-
viewType: 'admin';
|
|
326
|
-
accountCount: number;
|
|
327
|
-
workspaceCount: number;
|
|
328
|
-
phoneNumberCount: number;
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* Workspace info for member view
|
|
332
|
-
*/
|
|
333
|
-
interface MemberWorkspaceInfo {
|
|
334
|
-
uuid: string;
|
|
335
|
-
name: string;
|
|
336
|
-
slug: string;
|
|
337
|
-
}
|
|
338
|
-
/**
|
|
339
|
-
* Organization info for non-admin members
|
|
340
|
-
* Shows basic org info and user's workspace memberships
|
|
341
|
-
*/
|
|
342
|
-
interface MemberOrgView {
|
|
343
|
-
viewType: 'member';
|
|
344
|
-
id: number;
|
|
345
|
-
uuid: string;
|
|
346
|
-
name: string;
|
|
347
|
-
slug: string | null;
|
|
348
|
-
logoUrl: string | null;
|
|
349
|
-
role: string;
|
|
350
|
-
workspaces: MemberWorkspaceInfo[];
|
|
351
|
-
}
|
|
352
|
-
interface CreateOrganizationRequest {
|
|
353
|
-
name: string;
|
|
354
|
-
slug?: string;
|
|
355
|
-
primary?: boolean;
|
|
356
|
-
contactEmail?: string;
|
|
357
|
-
contactPhone?: string;
|
|
358
|
-
logo?: string;
|
|
359
|
-
logoMimeType?: string;
|
|
360
|
-
}
|
|
361
|
-
interface UpdateOrganizationRequest {
|
|
362
|
-
name?: string;
|
|
363
|
-
slug?: string;
|
|
364
|
-
primary?: boolean;
|
|
365
|
-
logoUrl?: string;
|
|
366
|
-
contactEmail?: string;
|
|
367
|
-
contactPhone?: string;
|
|
368
|
-
logo?: string;
|
|
369
|
-
logoMimeType?: string;
|
|
370
|
-
ssoProvider?: string | null;
|
|
371
|
-
ssoDomain?: string | null;
|
|
372
|
-
ssoRequired?: boolean;
|
|
373
|
-
ssoAutoProvision?: boolean;
|
|
374
|
-
twilioSubAccountSid?: string | null;
|
|
375
|
-
}
|
|
376
|
-
interface LogoUploadRequest {
|
|
377
|
-
contentType: string;
|
|
378
|
-
fileExtension: string;
|
|
379
|
-
}
|
|
380
|
-
interface LogoUploadResponse {
|
|
381
|
-
uploadUrl: string;
|
|
382
|
-
fields: Record<string, string>;
|
|
383
|
-
fileUrl: string;
|
|
384
|
-
}
|
|
385
|
-
interface AdminAccountMembership {
|
|
386
|
-
workspaceUuid: string;
|
|
387
|
-
workspaceName: string;
|
|
388
|
-
workspaceSlug?: string | null;
|
|
389
|
-
role: string;
|
|
390
|
-
memberRoleName?: string | null;
|
|
391
|
-
createdAt: string;
|
|
392
|
-
tosAccepted: boolean;
|
|
393
|
-
memberRoleId: number | null;
|
|
394
|
-
memberId: number;
|
|
395
|
-
}
|
|
396
|
-
interface AdminWorkspaceMemberFormData {
|
|
397
|
-
tosAccepted?: boolean;
|
|
398
|
-
role?: string;
|
|
399
|
-
memberRoleId?: number;
|
|
400
|
-
}
|
|
401
|
-
interface AdminAccountOrgMembership {
|
|
402
|
-
organizationId: number;
|
|
403
|
-
organizationUuid: string;
|
|
404
|
-
organizationName: string;
|
|
405
|
-
organizationSlug: string;
|
|
406
|
-
organizationLogoUrl: string | null;
|
|
407
|
-
role: string;
|
|
408
|
-
name: string | null;
|
|
409
|
-
accountName: string | null;
|
|
410
|
-
externalId: string | null;
|
|
411
|
-
createdAt: string;
|
|
412
|
-
updatedAt: string;
|
|
413
|
-
}
|
|
414
|
-
interface AccountReportItem {
|
|
415
|
-
id: number;
|
|
416
|
-
uuid: string;
|
|
417
|
-
email?: string | null;
|
|
418
|
-
phone?: string | null;
|
|
419
|
-
name?: string | null;
|
|
420
|
-
created_at: string;
|
|
421
|
-
organization_id?: number | null;
|
|
422
|
-
}
|
|
423
|
-
interface DuplicateAccountInfo {
|
|
424
|
-
id: number;
|
|
425
|
-
name: string | null;
|
|
426
|
-
email: string | null;
|
|
427
|
-
phone: string | null;
|
|
428
|
-
organizationId: number | null;
|
|
429
|
-
organizationName: string | null;
|
|
430
|
-
createdAt: string;
|
|
431
|
-
}
|
|
432
|
-
interface TwoFactorMethod {
|
|
433
|
-
id: number;
|
|
434
|
-
methodType: 'TOTP' | 'WEBAUTHN';
|
|
435
|
-
name: string;
|
|
436
|
-
enabled: boolean;
|
|
437
|
-
createdAt: string;
|
|
438
|
-
lastUsedAt?: string;
|
|
439
|
-
}
|
|
440
|
-
interface TwoFactorStatus {
|
|
441
|
-
enabled: boolean;
|
|
442
|
-
methods: TwoFactorMethod[];
|
|
443
|
-
recoveryCodesCount: number;
|
|
444
|
-
lastRecoveryCodesGenerated?: string;
|
|
445
|
-
}
|
|
446
|
-
interface TOTPSetupResponse {
|
|
447
|
-
setupId: string;
|
|
448
|
-
secret: string;
|
|
449
|
-
qrCodeUrl: string;
|
|
450
|
-
manualEntryKey: string;
|
|
451
|
-
issuer: string;
|
|
452
|
-
}
|
|
453
|
-
interface RecoveryCodesResponse {
|
|
454
|
-
codes: string[];
|
|
455
|
-
generatedAt: string;
|
|
456
|
-
warning: string;
|
|
457
|
-
}
|
|
458
|
-
interface TwoFactorOperationResponse {
|
|
459
|
-
success: boolean;
|
|
460
|
-
message: string;
|
|
461
|
-
methodId?: number;
|
|
462
|
-
}
|
|
463
|
-
interface SetupTOTPRequest {
|
|
464
|
-
name: string;
|
|
465
|
-
}
|
|
466
|
-
interface VerifyTOTPSetupRequest {
|
|
467
|
-
setupId: string;
|
|
468
|
-
code: string;
|
|
469
|
-
name: string;
|
|
470
|
-
}
|
|
471
|
-
interface SetupWebAuthnRequest {
|
|
472
|
-
name: string;
|
|
473
|
-
}
|
|
474
|
-
interface VerifyWebAuthnSetupRequest {
|
|
475
|
-
setupId: string;
|
|
476
|
-
credentialResponse: any;
|
|
477
|
-
name: string;
|
|
478
|
-
}
|
|
479
|
-
interface GenerateRecoveryCodesRequest {
|
|
480
|
-
regenerate?: boolean;
|
|
481
|
-
}
|
|
482
|
-
interface UpdateTwoFactorMethodRequest {
|
|
483
|
-
methodId: number;
|
|
484
|
-
name?: string;
|
|
485
|
-
}
|
|
486
|
-
interface MissingMembershipItem {
|
|
487
|
-
member_id: number;
|
|
488
|
-
member_name: string;
|
|
489
|
-
account_id: number;
|
|
490
|
-
account_uuid: string;
|
|
491
|
-
}
|
|
492
|
-
type OrgMemberRole = 'member' | 'admin' | 'owner';
|
|
493
|
-
interface OrgMember {
|
|
494
|
-
id: number;
|
|
495
|
-
accountId: number;
|
|
496
|
-
organizationId: number;
|
|
497
|
-
role: OrgMemberRole;
|
|
498
|
-
name?: string | null;
|
|
499
|
-
externalId?: string | null;
|
|
500
|
-
createdAt: string;
|
|
501
|
-
updatedAt: string;
|
|
502
|
-
accountName?: string | null;
|
|
503
|
-
accountEmail?: string | null;
|
|
504
|
-
accountPhone?: string | null;
|
|
505
|
-
accountUuid?: string | null;
|
|
506
|
-
}
|
|
507
|
-
/**
|
|
508
|
-
* Response for the current user's org membership (/me endpoint).
|
|
509
|
-
* Extends OrgMember with scopes - the effective permissions
|
|
510
|
-
* the API honors for this user in this organization context.
|
|
511
|
-
*/
|
|
512
|
-
interface CurrentOrgMember extends OrgMember {
|
|
513
|
-
scopes: string[];
|
|
514
|
-
}
|
|
515
|
-
interface OrgMemberListResponse {
|
|
516
|
-
items: OrgMember[];
|
|
517
|
-
total: number;
|
|
518
|
-
page: number;
|
|
519
|
-
pageSize: number;
|
|
520
|
-
}
|
|
521
|
-
interface AddAccountToOrgRequest {
|
|
522
|
-
email?: string;
|
|
523
|
-
phone?: string;
|
|
524
|
-
name?: string;
|
|
525
|
-
role?: OrgMemberRole;
|
|
526
|
-
}
|
|
527
|
-
interface UpdateOrgMemberRequest {
|
|
528
|
-
role: OrgMemberRole;
|
|
529
|
-
}
|
|
530
|
-
interface AccountLookupResponse {
|
|
531
|
-
found: boolean;
|
|
532
|
-
accountId?: number;
|
|
533
|
-
accountUuid?: string;
|
|
534
|
-
name?: string | null;
|
|
535
|
-
}
|
|
536
|
-
interface CreateAccountOrgMembershipRequest {
|
|
537
|
-
organizationId: number;
|
|
538
|
-
role: OrgMemberRole;
|
|
539
|
-
}
|
|
540
|
-
interface CreateAccountOrgMembershipResponse {
|
|
541
|
-
accountId: number;
|
|
542
|
-
organizationId: number;
|
|
543
|
-
organizationUuid: string;
|
|
544
|
-
organizationName: string;
|
|
545
|
-
role: string;
|
|
546
|
-
message: string;
|
|
547
|
-
}
|
|
548
|
-
interface DeleteAccountOrgMembershipResponse {
|
|
549
|
-
status: string;
|
|
550
|
-
message: string;
|
|
551
|
-
workspaceMembershipsRemoved: number;
|
|
552
|
-
}
|
|
553
|
-
type CredentialType = 'email' | 'phone';
|
|
554
|
-
interface RequestCredentialChangeRequest {
|
|
555
|
-
credentialType: CredentialType;
|
|
556
|
-
newValue: string;
|
|
557
|
-
}
|
|
558
|
-
interface CredentialChangeRequestResponse {
|
|
559
|
-
id: number;
|
|
560
|
-
credentialType: CredentialType;
|
|
561
|
-
expiresAt: string;
|
|
562
|
-
message: string;
|
|
563
|
-
}
|
|
564
|
-
interface VerifyCredentialChangeRequest {
|
|
565
|
-
requestId: number;
|
|
566
|
-
otpCode: string;
|
|
567
|
-
}
|
|
568
|
-
interface CredentialChangeVerifyResponse {
|
|
569
|
-
success: boolean;
|
|
570
|
-
message: string;
|
|
571
|
-
credentialType?: CredentialType;
|
|
572
|
-
}
|
|
573
|
-
interface PendingCredentialChange {
|
|
574
|
-
id: number;
|
|
575
|
-
credentialType: CredentialType;
|
|
576
|
-
maskedNewValue: string;
|
|
577
|
-
createdAt: string;
|
|
578
|
-
expiresAt: string;
|
|
579
|
-
isExpired: boolean;
|
|
580
|
-
attempts: number;
|
|
581
|
-
}
|
|
582
|
-
interface CancelCredentialChangeResponse {
|
|
583
|
-
success: boolean;
|
|
584
|
-
message: string;
|
|
585
|
-
}
|
|
586
|
-
interface CreateCredentialChangeInviteRequest {
|
|
587
|
-
credentialType: CredentialType;
|
|
588
|
-
newValue: string;
|
|
589
|
-
}
|
|
590
|
-
interface CredentialChangeInviteResponse {
|
|
591
|
-
id: number;
|
|
592
|
-
credentialType: CredentialType;
|
|
593
|
-
maskedNewValue: string;
|
|
594
|
-
expiresAt: string;
|
|
595
|
-
message: string;
|
|
596
|
-
}
|
|
597
|
-
interface CredentialChangeInviteDetails {
|
|
598
|
-
id: number;
|
|
599
|
-
credentialType: CredentialType;
|
|
600
|
-
newValue: string;
|
|
601
|
-
workspaceName: string;
|
|
602
|
-
workspaceUuid: string;
|
|
603
|
-
initiatedByName: string | null;
|
|
604
|
-
createdAt: string;
|
|
605
|
-
expiresAt: string;
|
|
606
|
-
isExpired: boolean;
|
|
607
|
-
isValid: boolean;
|
|
608
|
-
}
|
|
609
|
-
interface CredentialChangeInviteConfirmResponse {
|
|
610
|
-
success: boolean;
|
|
611
|
-
message: string;
|
|
612
|
-
credentialType?: CredentialType;
|
|
613
|
-
}
|
|
614
|
-
interface PendingCredentialChangeInvite {
|
|
615
|
-
id: number;
|
|
616
|
-
credentialType: CredentialType;
|
|
617
|
-
maskedNewValue: string;
|
|
618
|
-
workspaceName: string;
|
|
619
|
-
initiatedByName: string | null;
|
|
620
|
-
createdAt: string;
|
|
621
|
-
expiresAt: string;
|
|
622
|
-
isExpired: boolean;
|
|
623
|
-
status: string;
|
|
624
|
-
}
|
|
625
|
-
interface CancelCredentialChangeInviteResponse {
|
|
626
|
-
success: boolean;
|
|
627
|
-
message: string;
|
|
628
|
-
}
|
|
629
|
-
interface AccountDataExport {
|
|
630
|
-
uuid: string;
|
|
631
|
-
name: string | null;
|
|
632
|
-
email: string | null;
|
|
633
|
-
phone: string | null;
|
|
634
|
-
gender: string | null;
|
|
635
|
-
timezone: string | null;
|
|
636
|
-
locale: string | null;
|
|
637
|
-
createdAt: string;
|
|
638
|
-
}
|
|
639
|
-
interface WorkspaceMembershipExport {
|
|
640
|
-
workspaceName: string;
|
|
641
|
-
workspaceUuid: string;
|
|
642
|
-
joinedAt: string;
|
|
643
|
-
}
|
|
644
|
-
interface OrgMembershipExport {
|
|
645
|
-
orgName: string;
|
|
646
|
-
role: string;
|
|
647
|
-
}
|
|
648
|
-
interface ConsentRecordExport {
|
|
649
|
-
consentType: string;
|
|
650
|
-
granted: boolean;
|
|
651
|
-
recordedAt: string;
|
|
652
|
-
policyVersion: string | null;
|
|
653
|
-
}
|
|
654
|
-
interface DataExportResponse {
|
|
655
|
-
exportedAt: string;
|
|
656
|
-
account: AccountDataExport;
|
|
657
|
-
workspaceMemberships: WorkspaceMembershipExport[];
|
|
658
|
-
orgMemberships: OrgMembershipExport[];
|
|
659
|
-
consentRecords: ConsentRecordExport[];
|
|
660
|
-
oauthProviders: string[];
|
|
661
|
-
}
|
|
662
|
-
interface DeletionRequestResponse {
|
|
663
|
-
status: string;
|
|
664
|
-
deletionScheduledFor: string;
|
|
665
|
-
message: string;
|
|
666
|
-
}
|
|
667
|
-
interface DeletionCancelResponse {
|
|
668
|
-
status: string;
|
|
669
|
-
message: string;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
declare const MilestoneGoalFormDataSchema: z.ZodObject<{
|
|
673
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
674
|
-
name: z.ZodString;
|
|
675
|
-
description: z.ZodOptional<z.ZodString>;
|
|
676
|
-
memberFilterId: z.ZodNumber;
|
|
677
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
678
|
-
}, z.core.$strip>;
|
|
679
|
-
declare const MilestoneFormDataSchema: z.ZodObject<{
|
|
680
|
-
name: z.ZodString;
|
|
681
|
-
description: z.ZodOptional<z.ZodString>;
|
|
682
|
-
targetDate: z.ZodString;
|
|
683
|
-
goals: z.ZodArray<z.ZodObject<{
|
|
684
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
685
|
-
name: z.ZodString;
|
|
686
|
-
description: z.ZodOptional<z.ZodString>;
|
|
687
|
-
memberFilterId: z.ZodNumber;
|
|
688
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
689
|
-
}, z.core.$strip>>;
|
|
690
|
-
}, z.core.$strip>;
|
|
691
|
-
declare const ListMilestonesSchema: z.ZodObject<{
|
|
692
|
-
wid: z.ZodString;
|
|
693
|
-
page: z.ZodOptional<z.ZodNumber>;
|
|
694
|
-
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
695
|
-
sortBy: z.ZodOptional<z.ZodString>;
|
|
696
|
-
sortOrder: z.ZodOptional<z.ZodEnum<{
|
|
697
|
-
asc: "asc";
|
|
698
|
-
desc: "desc";
|
|
699
|
-
}>>;
|
|
700
|
-
}, z.core.$strip>;
|
|
701
|
-
declare const GetMilestoneSchema: z.ZodObject<{
|
|
702
|
-
wid: z.ZodString;
|
|
703
|
-
milestoneId: z.ZodNumber;
|
|
704
|
-
}, z.core.$strip>;
|
|
705
|
-
declare const CreateMilestoneSchema: z.ZodObject<{
|
|
706
|
-
wid: z.ZodString;
|
|
707
|
-
name: z.ZodString;
|
|
708
|
-
description: z.ZodOptional<z.ZodString>;
|
|
709
|
-
targetDate: z.ZodString;
|
|
710
|
-
goals: z.ZodArray<z.ZodObject<{
|
|
711
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
712
|
-
name: z.ZodString;
|
|
713
|
-
description: z.ZodOptional<z.ZodString>;
|
|
714
|
-
memberFilterId: z.ZodNumber;
|
|
715
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
716
|
-
}, z.core.$strip>>;
|
|
717
|
-
}, z.core.$strip>;
|
|
718
|
-
declare const UpdateMilestoneSchema: z.ZodObject<{
|
|
719
|
-
wid: z.ZodString;
|
|
720
|
-
milestoneId: z.ZodNumber;
|
|
721
|
-
name: z.ZodOptional<z.ZodString>;
|
|
722
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
723
|
-
targetDate: z.ZodOptional<z.ZodString>;
|
|
724
|
-
goals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
725
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
726
|
-
name: z.ZodString;
|
|
727
|
-
description: z.ZodOptional<z.ZodString>;
|
|
728
|
-
memberFilterId: z.ZodNumber;
|
|
729
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
730
|
-
}, z.core.$strip>>>;
|
|
731
|
-
}, z.core.$strip>;
|
|
732
|
-
declare const DeleteMilestoneSchema: z.ZodObject<{
|
|
733
|
-
wid: z.ZodString;
|
|
734
|
-
milestoneId: z.ZodNumber;
|
|
735
|
-
}, z.core.$strip>;
|
|
736
|
-
type MilestoneFormData = z.infer<typeof MilestoneFormDataSchema>;
|
|
737
|
-
type ListMilestonesInput = z.infer<typeof ListMilestonesSchema>;
|
|
738
|
-
type GetMilestoneInput = z.infer<typeof GetMilestoneSchema>;
|
|
739
|
-
type CreateMilestoneInput = z.infer<typeof CreateMilestoneSchema>;
|
|
740
|
-
type UpdateMilestoneInput = z.infer<typeof UpdateMilestoneSchema>;
|
|
741
|
-
type DeleteMilestoneInput = z.infer<typeof DeleteMilestoneSchema>;
|
|
742
|
-
|
|
743
|
-
/**
|
|
744
|
-
* Member lifecycle states with increasing levels of permanence.
|
|
745
|
-
* Matches the Python MemberType enum in lib/constants.py
|
|
746
|
-
*/
|
|
747
|
-
declare enum MemberType {
|
|
748
|
-
/** Temporary, unverified caller (e.g., unknown phone number). Does not require an account. */
|
|
749
|
-
ANONYMOUS = "anonymous",
|
|
750
|
-
/** Sandbox account for testing. Does not require an account. Excluded from billing/analytics. */
|
|
751
|
-
TEST = "test",
|
|
752
|
-
/** Real, verified user. Requires an account. Counted in billing and analytics. */
|
|
753
|
-
MEMBER = "member",
|
|
754
|
-
/** AI agent that can communicate via DMs, email, SMS, voice. Has an AgentConfig. */
|
|
755
|
-
AGENT = "agent"
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
type MemoryStrategyType = 'preferences' | 'semantic' | 'summaries' | 'episodic';
|
|
759
|
-
interface MemoryItem {
|
|
760
|
-
key: string;
|
|
761
|
-
strategy: string;
|
|
762
|
-
content: string;
|
|
763
|
-
createdAt: string | null;
|
|
764
|
-
updatedAt: string | null;
|
|
765
|
-
}
|
|
766
|
-
interface MemberMemoriesResponse {
|
|
767
|
-
items: MemoryItem[];
|
|
768
|
-
total: number;
|
|
769
|
-
}
|
|
770
|
-
/** Configuration for AgentCore long-term memory on Agent members. */
|
|
771
|
-
interface AgentMemoryConfig {
|
|
772
|
-
/** Whether memory is enabled (default: false) */
|
|
773
|
-
enabled?: boolean;
|
|
774
|
-
/** Retrieve relevant memories and inject into prompt (default: true) */
|
|
775
|
-
read?: boolean;
|
|
776
|
-
/** Store conversational events for memory extraction (default: true) */
|
|
777
|
-
write?: boolean;
|
|
778
|
-
/** Search user preference memories (default: true) */
|
|
779
|
-
preferences?: boolean;
|
|
780
|
-
/** Search semantic fact memories (default: true) */
|
|
781
|
-
semantic?: boolean;
|
|
782
|
-
/** Search conversation summary memories (default: true) */
|
|
783
|
-
summaries?: boolean;
|
|
784
|
-
/** Search episodic memories — interaction sequences, troubleshooting flows (default: false) */
|
|
785
|
-
episodic?: boolean;
|
|
786
|
-
}
|
|
787
|
-
/**
|
|
788
|
-
* Agent-specific configuration for members with member_type='agent'.
|
|
789
|
-
* Stores AI model configuration and behavior settings.
|
|
790
|
-
*/
|
|
791
|
-
interface AgentConfig {
|
|
792
|
-
id: number;
|
|
793
|
-
memberId: number;
|
|
794
|
-
chatModelId: string;
|
|
795
|
-
chatModelConfig?: Record<string, unknown>;
|
|
796
|
-
realtimeModelId?: string;
|
|
797
|
-
realtimeModelConfig?: Record<string, unknown>;
|
|
798
|
-
systemPrompt: string;
|
|
799
|
-
maxDailyActions?: number;
|
|
800
|
-
tools?: string[];
|
|
801
|
-
codeInterpreterEnabled?: boolean;
|
|
802
|
-
memoryConfig?: AgentMemoryConfig;
|
|
803
|
-
createdAt: string;
|
|
804
|
-
updatedAt: string;
|
|
805
|
-
}
|
|
806
|
-
interface AgentConfigFormData {
|
|
807
|
-
chatModelId: string;
|
|
808
|
-
chatModelConfig?: Record<string, unknown>;
|
|
809
|
-
realtimeModelId?: string;
|
|
810
|
-
realtimeModelConfig?: Record<string, unknown>;
|
|
811
|
-
systemPrompt: string;
|
|
812
|
-
maxDailyActions?: number;
|
|
813
|
-
tools?: string[];
|
|
814
|
-
codeInterpreterEnabled?: boolean;
|
|
815
|
-
memoryConfig?: AgentMemoryConfig;
|
|
816
|
-
}
|
|
817
|
-
interface MemberLabel {
|
|
818
|
-
id: number;
|
|
819
|
-
uuid: string;
|
|
820
|
-
name: string;
|
|
821
|
-
slug: string;
|
|
822
|
-
color: string;
|
|
823
|
-
description?: string;
|
|
824
|
-
}
|
|
825
|
-
interface MemberLabelFormData {
|
|
826
|
-
name: string;
|
|
827
|
-
slug?: string;
|
|
828
|
-
description?: string;
|
|
829
|
-
color: string;
|
|
830
|
-
}
|
|
831
|
-
type MemberFilterObjectType = 'label' | 'dataType' | 'member' | 'memberRole' | 'name' | 'email' | 'phone' | 'phoneType' | 'workflow' | 'tosAccepted' | 'notifySms' | 'notifyEmail' | 'notifyVoice' | 'calendarEvent' | 'chatEngagement' | 'lastMessageActivity' | 'memberCreated' | 'isDefault' | 'memberType' | 'memberField' | 'journey';
|
|
832
|
-
type MemberFilterFilterType = 'any' | 'all' | 'none' | 'partial' | 'notPartial' | 'exact' | 'equals' | 'notEquals' | 'notContains' | 'atLeast' | 'atMost' | 'field' | 'dateFilter' | 'greaterThan' | 'greaterThanOrEqual' | 'lessThan' | 'lessThanOrEqual' | 'within' | 'olderThan' | 'never' | 'isEmpty' | 'notEmpty' | 'before' | 'after' | 'between' | 'daysAgo' | 'lessThanDaysAgo' | 'daysUntil' | 'hasKey' | 'hasKeyValue';
|
|
833
|
-
interface MemberFilterRule {
|
|
834
|
-
id: number;
|
|
835
|
-
uuid: string;
|
|
836
|
-
objectType: MemberFilterObjectType;
|
|
837
|
-
filterType: MemberFilterFilterType;
|
|
838
|
-
objectIds?: number[];
|
|
839
|
-
query?: string;
|
|
840
|
-
}
|
|
841
|
-
interface MemberFilterRuleFormData {
|
|
842
|
-
objectType: MemberFilterObjectType;
|
|
843
|
-
filterType: MemberFilterFilterType;
|
|
844
|
-
objectIds?: number[];
|
|
845
|
-
query?: string;
|
|
846
|
-
}
|
|
847
|
-
interface MemberFilter {
|
|
848
|
-
id: number;
|
|
849
|
-
name: string;
|
|
850
|
-
uuid: string;
|
|
851
|
-
description?: string;
|
|
852
|
-
pinned?: boolean;
|
|
853
|
-
createdAt: string;
|
|
854
|
-
updatedAt: string;
|
|
855
|
-
rules: MemberFilterRule[];
|
|
856
|
-
}
|
|
857
|
-
interface MemberFilterFormData {
|
|
858
|
-
name: string;
|
|
859
|
-
description?: string;
|
|
860
|
-
pinned?: boolean;
|
|
861
|
-
rules: MemberFilterRuleFormData[];
|
|
862
|
-
}
|
|
863
|
-
interface MemberRoleTaskAccess {
|
|
864
|
-
taskId: number;
|
|
865
|
-
accessMode: number;
|
|
866
|
-
}
|
|
867
|
-
interface MemberRoleSiteAccess {
|
|
868
|
-
siteId: number;
|
|
869
|
-
accessMode: number;
|
|
870
|
-
}
|
|
871
|
-
interface MemberRoleDataTypeAccess {
|
|
872
|
-
dataTypeId: number;
|
|
873
|
-
accessMode: number;
|
|
874
|
-
}
|
|
875
|
-
interface MemberRoleWorkflowAccess {
|
|
876
|
-
workflowId: number;
|
|
877
|
-
accessMode: number;
|
|
878
|
-
}
|
|
879
|
-
interface MemberRoleInboxAccess {
|
|
880
|
-
inboxId: number;
|
|
881
|
-
accessMode: number;
|
|
882
|
-
}
|
|
883
|
-
interface MemberRoleFileAccess {
|
|
884
|
-
fileId: number;
|
|
885
|
-
accessMode: number;
|
|
886
|
-
}
|
|
887
|
-
interface MemberRoleFolderAccess {
|
|
888
|
-
folderId: number;
|
|
889
|
-
accessMode: number;
|
|
890
|
-
}
|
|
891
|
-
interface MemberRoleCalendarAccess {
|
|
892
|
-
calendarId: number;
|
|
893
|
-
accessMode: number;
|
|
894
|
-
}
|
|
895
|
-
interface MemberRole {
|
|
896
|
-
id: number;
|
|
897
|
-
uuid: string;
|
|
898
|
-
name: string;
|
|
899
|
-
grantedScopes: string[];
|
|
900
|
-
taskAccess: MemberRoleTaskAccess[];
|
|
901
|
-
siteAccess: MemberRoleSiteAccess[];
|
|
902
|
-
dataTypeAccess: MemberRoleDataTypeAccess[];
|
|
903
|
-
workflowAccess: MemberRoleWorkflowAccess[];
|
|
904
|
-
inboxAccess: MemberRoleInboxAccess[];
|
|
905
|
-
fileAccess: MemberRoleFileAccess[];
|
|
906
|
-
folderAccess: MemberRoleFolderAccess[];
|
|
907
|
-
calendarAccess: MemberRoleCalendarAccess[];
|
|
908
|
-
memberCount: number;
|
|
909
|
-
createdAt: string;
|
|
910
|
-
updatedAt: string;
|
|
911
|
-
}
|
|
912
|
-
interface MemberRoleFormData {
|
|
913
|
-
name?: string;
|
|
914
|
-
grantedScopes?: string[];
|
|
915
|
-
taskAccess?: MemberRoleTaskAccess[];
|
|
916
|
-
siteAccess?: MemberRoleSiteAccess[];
|
|
917
|
-
dataTypeAccess?: MemberRoleDataTypeAccess[];
|
|
918
|
-
workflowAccess?: MemberRoleWorkflowAccess[];
|
|
919
|
-
inboxAccess?: MemberRoleInboxAccess[];
|
|
920
|
-
fileAccess?: MemberRoleFileAccess[];
|
|
921
|
-
folderAccess?: MemberRoleFolderAccess[];
|
|
922
|
-
calendarAccess?: MemberRoleCalendarAccess[];
|
|
923
|
-
}
|
|
924
|
-
interface Member {
|
|
925
|
-
id: number;
|
|
926
|
-
uuid: string;
|
|
927
|
-
accountUuid?: string | null;
|
|
928
|
-
memberRoleId: number;
|
|
929
|
-
homeFolderId?: number | null;
|
|
930
|
-
name?: string;
|
|
931
|
-
description?: string;
|
|
932
|
-
phone?: string;
|
|
933
|
-
phoneType?: string;
|
|
934
|
-
email?: string;
|
|
935
|
-
externalId?: string;
|
|
936
|
-
emailTrusted?: boolean;
|
|
937
|
-
phoneTrusted?: boolean;
|
|
938
|
-
tosAccepted?: boolean;
|
|
939
|
-
accountTosAccepted?: boolean;
|
|
940
|
-
memberRoleName?: string;
|
|
941
|
-
notifySms?: boolean;
|
|
942
|
-
notifyEmail?: boolean;
|
|
943
|
-
notifyVoice?: boolean;
|
|
944
|
-
notifyWhatsapp?: boolean;
|
|
945
|
-
accountEnabled?: boolean;
|
|
946
|
-
isOrgOwner?: boolean;
|
|
947
|
-
isSuperuser?: boolean;
|
|
948
|
-
orgRole?: 'owner' | 'admin' | 'member' | null;
|
|
949
|
-
memberType?: MemberType;
|
|
950
|
-
isArchived?: boolean;
|
|
951
|
-
agentConfig?: AgentConfig | null;
|
|
952
|
-
ownerId?: number | null;
|
|
953
|
-
ownerName?: string | null;
|
|
954
|
-
canLogin?: boolean;
|
|
955
|
-
locale: string | null;
|
|
956
|
-
timezone?: string;
|
|
957
|
-
createdAt?: string;
|
|
958
|
-
updatedAt?: string;
|
|
959
|
-
labels?: MemberLabel[];
|
|
960
|
-
}
|
|
961
|
-
/**
|
|
962
|
-
* Response for the current user's member profile (/me endpoint).
|
|
963
|
-
* Extends Member with scopes and org role - the effective permissions the API honors.
|
|
964
|
-
*/
|
|
965
|
-
interface CurrentMember extends Member {
|
|
966
|
-
scopes: string[];
|
|
967
|
-
orgRole: 'owner' | 'admin' | 'member' | null;
|
|
968
|
-
}
|
|
969
|
-
interface MemberFormData {
|
|
970
|
-
tosAccepted?: boolean;
|
|
971
|
-
memberRoleId?: number;
|
|
972
|
-
notifySms?: boolean;
|
|
973
|
-
notifyEmail?: boolean;
|
|
974
|
-
notifyVoice?: boolean;
|
|
975
|
-
notifyWhatsapp?: boolean;
|
|
976
|
-
name?: string;
|
|
977
|
-
description?: string;
|
|
978
|
-
phone?: string;
|
|
979
|
-
email?: string;
|
|
980
|
-
externalId?: string;
|
|
981
|
-
}
|
|
982
|
-
interface CreateWorkspaceMemberRequest {
|
|
983
|
-
email?: string;
|
|
984
|
-
phone?: string;
|
|
985
|
-
accountUuid?: string;
|
|
986
|
-
emailTrusted?: boolean;
|
|
987
|
-
phoneTrusted?: boolean;
|
|
988
|
-
name?: string;
|
|
989
|
-
description?: string;
|
|
990
|
-
externalId?: string;
|
|
991
|
-
memberRoleId: number;
|
|
992
|
-
notifySms?: boolean;
|
|
993
|
-
notifyEmail?: boolean;
|
|
994
|
-
notifyVoice?: boolean;
|
|
995
|
-
notifyWhatsapp?: boolean;
|
|
996
|
-
locale?: string;
|
|
997
|
-
timezone?: string;
|
|
998
|
-
labelIds?: number[];
|
|
999
|
-
tosAccepted?: boolean;
|
|
1000
|
-
accountEnabled?: boolean;
|
|
1001
|
-
isOrgOwner?: boolean;
|
|
1002
|
-
accountTosAccepted?: boolean;
|
|
1003
|
-
memberType?: MemberType;
|
|
1004
|
-
ownerId?: number;
|
|
1005
|
-
}
|
|
1006
|
-
interface UpdateWorkspaceMemberRequest {
|
|
1007
|
-
name?: string | null;
|
|
1008
|
-
description?: string | null;
|
|
1009
|
-
phone?: string | null;
|
|
1010
|
-
email?: string | null;
|
|
1011
|
-
externalId?: string | null;
|
|
1012
|
-
memberRoleId?: number;
|
|
1013
|
-
labelIds?: number[];
|
|
1014
|
-
notifySms?: boolean;
|
|
1015
|
-
notifyEmail?: boolean;
|
|
1016
|
-
notifyVoice?: boolean;
|
|
1017
|
-
notifyWhatsapp?: boolean;
|
|
1018
|
-
emailTrusted?: boolean;
|
|
1019
|
-
phoneTrusted?: boolean;
|
|
1020
|
-
locale?: string | null;
|
|
1021
|
-
timezone?: string | null;
|
|
1022
|
-
tosAccepted?: boolean;
|
|
1023
|
-
accountEnabled?: boolean;
|
|
1024
|
-
isOrgOwner?: boolean;
|
|
1025
|
-
isSuperuser?: boolean;
|
|
1026
|
-
accountTosAccepted?: boolean;
|
|
1027
|
-
memberType?: MemberType;
|
|
1028
|
-
}
|
|
1029
|
-
interface MergeMembersRequest {
|
|
1030
|
-
targetMemberId: number;
|
|
1031
|
-
sourceMemberIds: number[];
|
|
1032
|
-
}
|
|
1033
|
-
interface MergeMembersResponse {
|
|
1034
|
-
member: Member;
|
|
1035
|
-
mergedCount: number;
|
|
1036
|
-
dataRecordsTransferred: number;
|
|
1037
|
-
}
|
|
1038
|
-
interface NormalizeMemberRequest {
|
|
1039
|
-
memberId: number;
|
|
1040
|
-
}
|
|
1041
|
-
interface NormalizeMemberResponse {
|
|
1042
|
-
member: Member;
|
|
1043
|
-
changes: Record<string, {
|
|
1044
|
-
old: string;
|
|
1045
|
-
new: string;
|
|
1046
|
-
}>;
|
|
1047
|
-
}
|
|
1048
|
-
interface MemberReportItem {
|
|
1049
|
-
id: number;
|
|
1050
|
-
account_uuid: string;
|
|
1051
|
-
email?: string | null;
|
|
1052
|
-
phone?: string | null;
|
|
1053
|
-
name?: string | null;
|
|
1054
|
-
external_id?: string | null;
|
|
1055
|
-
created_at: string;
|
|
1056
|
-
updated_at: string;
|
|
1057
|
-
member_role_id: number;
|
|
1058
|
-
member_role_name: string;
|
|
1059
|
-
}
|
|
1060
|
-
interface SignupMemberResponse {
|
|
1061
|
-
id: number;
|
|
1062
|
-
name?: string;
|
|
1063
|
-
description?: string;
|
|
1064
|
-
phone?: string;
|
|
1065
|
-
email?: string;
|
|
1066
|
-
labels: string[];
|
|
1067
|
-
externalId?: string;
|
|
1068
|
-
memberRoleId: number;
|
|
1069
|
-
createdAt: string;
|
|
1070
|
-
tosAccepted: boolean;
|
|
1071
|
-
}
|
|
1072
|
-
interface SignupAccountResponse {
|
|
1073
|
-
id: number;
|
|
1074
|
-
uuid: string;
|
|
1075
|
-
email?: string;
|
|
1076
|
-
phone?: string;
|
|
1077
|
-
name?: string;
|
|
1078
|
-
createdAt: Date;
|
|
1079
|
-
}
|
|
1080
|
-
interface CreateSignupResponse {
|
|
1081
|
-
token: string;
|
|
1082
|
-
account: SignupAccountResponse;
|
|
1083
|
-
member: SignupMemberResponse;
|
|
1084
|
-
wasCreated: boolean;
|
|
1085
|
-
}
|
|
1086
|
-
interface MembersQueryParams {
|
|
1087
|
-
page?: number;
|
|
1088
|
-
pageSize?: number;
|
|
1089
|
-
sortBy?: MemberSortField;
|
|
1090
|
-
sortOrder?: SortOrder;
|
|
1091
|
-
search?: string;
|
|
1092
|
-
labelIds?: number[];
|
|
1093
|
-
memberRoleId?: number;
|
|
1094
|
-
memberType?: string;
|
|
1095
|
-
hasAccount?: boolean;
|
|
1096
|
-
}
|
|
1097
|
-
interface MemberMessageActivity {
|
|
1098
|
-
[memberId: number]: number[];
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
type AnonymousMemberResolutionStatus = 'pending' | 'resolved' | 'expired';
|
|
1102
|
-
/** Summary of the anonymous member's interaction (usually a single call). */
|
|
1103
|
-
interface AnonymousInteraction {
|
|
1104
|
-
chatId?: number;
|
|
1105
|
-
chatTitle?: string;
|
|
1106
|
-
chatSummary?: string;
|
|
1107
|
-
callId?: number;
|
|
1108
|
-
callStatus?: string;
|
|
1109
|
-
callCreatedAt?: string;
|
|
1110
|
-
callDurationSeconds?: number;
|
|
1111
|
-
}
|
|
1112
|
-
interface AnonymousMemberResolution {
|
|
1113
|
-
id: number;
|
|
1114
|
-
anonymousMemberId?: number;
|
|
1115
|
-
anonymousMemberName?: string;
|
|
1116
|
-
identifierType: string;
|
|
1117
|
-
identifierValue: string;
|
|
1118
|
-
status: AnonymousMemberResolutionStatus;
|
|
1119
|
-
resolvedToMemberId?: number;
|
|
1120
|
-
resolvedToMemberName?: string;
|
|
1121
|
-
resolvedByMemberId?: number;
|
|
1122
|
-
resolvedByMemberName?: string;
|
|
1123
|
-
resolutionNotes?: string;
|
|
1124
|
-
createdAt: string;
|
|
1125
|
-
resolvedAt?: string;
|
|
1126
|
-
/** The call/chat that created this anonymous member */
|
|
1127
|
-
interaction?: AnonymousInteraction;
|
|
1128
|
-
}
|
|
1129
|
-
interface ResolveAnonymousMemberRequest {
|
|
1130
|
-
targetMemberId: number;
|
|
1131
|
-
notes?: string;
|
|
1132
|
-
}
|
|
1133
|
-
interface ExpireAnonymousMemberRequest {
|
|
1134
|
-
notes?: string;
|
|
1135
|
-
}
|
|
1136
|
-
interface CreateAnonymousMemberRequest {
|
|
1137
|
-
identifierType: string;
|
|
1138
|
-
identifierValue: string;
|
|
1139
|
-
name?: string;
|
|
1140
|
-
memberRoleId?: number;
|
|
1141
|
-
}
|
|
1142
|
-
interface PendingAnonymousMembersResponse {
|
|
1143
|
-
items: AnonymousMemberResolution[];
|
|
1144
|
-
total: number;
|
|
1145
|
-
}
|
|
1146
|
-
/**
|
|
1147
|
-
* Agent response model - represents a Member with member_type='agent' and its AgentConfig.
|
|
1148
|
-
* Agents are AI personas that can communicate via DMs, email, SMS, and voice.
|
|
1149
|
-
*/
|
|
1150
|
-
interface Agent {
|
|
1151
|
-
id: number;
|
|
1152
|
-
uuid: string;
|
|
1153
|
-
name?: string;
|
|
1154
|
-
description?: string;
|
|
1155
|
-
email?: string;
|
|
1156
|
-
phone?: string;
|
|
1157
|
-
externalId?: string;
|
|
1158
|
-
memberRoleId: number;
|
|
1159
|
-
memberRoleName: string;
|
|
1160
|
-
memberType: MemberType.AGENT;
|
|
1161
|
-
isArchived: boolean;
|
|
1162
|
-
ownerId?: number | null;
|
|
1163
|
-
ownerName?: string | null;
|
|
1164
|
-
createdAt: string;
|
|
1165
|
-
updatedAt: string;
|
|
1166
|
-
labels: MemberLabel[];
|
|
1167
|
-
config: AgentConfig;
|
|
1168
|
-
}
|
|
1169
|
-
interface CreateAgentRequest {
|
|
1170
|
-
name: string;
|
|
1171
|
-
description?: string;
|
|
1172
|
-
email?: string;
|
|
1173
|
-
phone?: string;
|
|
1174
|
-
externalId?: string;
|
|
1175
|
-
memberRoleId: number;
|
|
1176
|
-
labelIds?: number[];
|
|
1177
|
-
ownerId?: number;
|
|
1178
|
-
chatModelId: string;
|
|
1179
|
-
chatModelConfig?: Record<string, unknown>;
|
|
1180
|
-
realtimeModelId?: string;
|
|
1181
|
-
realtimeModelConfig?: Record<string, unknown>;
|
|
1182
|
-
systemPrompt: string;
|
|
1183
|
-
maxDailyActions?: number;
|
|
1184
|
-
tools?: string[];
|
|
1185
|
-
codeInterpreterEnabled?: boolean;
|
|
1186
|
-
memoryConfig?: AgentMemoryConfig;
|
|
1187
|
-
}
|
|
1188
|
-
interface UpdateAgentRequest {
|
|
1189
|
-
name?: string;
|
|
1190
|
-
description?: string;
|
|
1191
|
-
email?: string;
|
|
1192
|
-
phone?: string;
|
|
1193
|
-
externalId?: string;
|
|
1194
|
-
memberRoleId?: number;
|
|
1195
|
-
labelIds?: number[];
|
|
1196
|
-
archived?: boolean;
|
|
1197
|
-
chatModelId?: string;
|
|
1198
|
-
chatModelConfig?: Record<string, unknown>;
|
|
1199
|
-
realtimeModelId?: string;
|
|
1200
|
-
realtimeModelConfig?: Record<string, unknown>;
|
|
1201
|
-
systemPrompt?: string;
|
|
1202
|
-
maxDailyActions?: number;
|
|
1203
|
-
tools?: string[];
|
|
1204
|
-
codeInterpreterEnabled?: boolean;
|
|
1205
|
-
memoryConfig?: AgentMemoryConfig;
|
|
1206
|
-
}
|
|
1207
|
-
interface BulkMemberItem {
|
|
1208
|
-
email?: string;
|
|
1209
|
-
phone?: string;
|
|
1210
|
-
name?: string;
|
|
1211
|
-
description?: string;
|
|
1212
|
-
externalId?: string;
|
|
1213
|
-
memberRoleId?: number;
|
|
1214
|
-
labels?: string[];
|
|
1215
|
-
notifySms?: boolean;
|
|
1216
|
-
notifyEmail?: boolean;
|
|
1217
|
-
notifyVoice?: boolean;
|
|
1218
|
-
notifyWhatsapp?: boolean;
|
|
1219
|
-
locale?: string;
|
|
1220
|
-
timezone?: string;
|
|
1221
|
-
}
|
|
1222
|
-
interface BulkMemberResult {
|
|
1223
|
-
index: number;
|
|
1224
|
-
status: 'created' | 'updated' | 'failed';
|
|
1225
|
-
memberId?: number;
|
|
1226
|
-
externalId?: string;
|
|
1227
|
-
error?: string;
|
|
1228
|
-
}
|
|
1229
|
-
interface BulkCreateMembersRequest {
|
|
1230
|
-
members: BulkMemberItem[];
|
|
1231
|
-
upsert?: boolean;
|
|
1232
|
-
}
|
|
1233
|
-
interface BulkCreateMembersResponse {
|
|
1234
|
-
importedCount: number;
|
|
1235
|
-
totalCount: number;
|
|
1236
|
-
success: boolean;
|
|
1237
|
-
results: BulkMemberResult[];
|
|
1238
|
-
errors?: string[];
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
declare enum DataFieldType {
|
|
1242
|
-
ENUM = "enum",
|
|
1243
|
-
EMAIL = "email",
|
|
1244
|
-
PHONE = "phone",
|
|
1245
|
-
TEXT = "text",
|
|
1246
|
-
LONGTEXT = "longtext",
|
|
1247
|
-
NUMBER = "number",
|
|
1248
|
-
DATE = "date",
|
|
1249
|
-
DATETIME = "datetime",
|
|
1250
|
-
TIME_OF_DAY = "time_of_day",
|
|
1251
|
-
US_ZIP_CODE = "us_zip_code",
|
|
1252
|
-
INTEGER = "integer",
|
|
1253
|
-
BOOLEAN = "boolean",
|
|
1254
|
-
ARRAY = "array",
|
|
1255
|
-
OBJECT = "object",
|
|
1256
|
-
FUNCTION = "function"
|
|
1257
|
-
}
|
|
1258
|
-
declare enum IndexStatus {
|
|
1259
|
-
NONE = "none",
|
|
1260
|
-
PENDING = "pending",
|
|
1261
|
-
CREATING = "creating",
|
|
1262
|
-
REMOVING = "removing",
|
|
1263
|
-
READY = "ready",
|
|
1264
|
-
ERROR = "error"
|
|
1265
|
-
}
|
|
1266
|
-
interface DataField {
|
|
1267
|
-
id?: number;
|
|
1268
|
-
name: string;
|
|
1269
|
-
slug: string;
|
|
1270
|
-
description?: string;
|
|
1271
|
-
required: boolean;
|
|
1272
|
-
fieldType: DataFieldType;
|
|
1273
|
-
options?: EnumOption[];
|
|
1274
|
-
referencedTypeId?: number;
|
|
1275
|
-
shouldIndex?: boolean;
|
|
1276
|
-
indexStatus?: IndexStatus;
|
|
1277
|
-
adminOnly?: boolean;
|
|
1278
|
-
defaultValue?: any;
|
|
1279
|
-
order: number;
|
|
1280
|
-
createdAt: string;
|
|
1281
|
-
updatedAt: string;
|
|
1282
|
-
}
|
|
1283
|
-
interface DataFieldFormData {
|
|
1284
|
-
name: string;
|
|
1285
|
-
slug: string;
|
|
1286
|
-
description?: string;
|
|
1287
|
-
required: boolean;
|
|
1288
|
-
fieldType: DataFieldType;
|
|
1289
|
-
options?: EnumOption[];
|
|
1290
|
-
referencedTypeId?: number;
|
|
1291
|
-
shouldIndex?: boolean;
|
|
1292
|
-
indexStatus?: IndexStatus;
|
|
1293
|
-
adminOnly?: boolean;
|
|
1294
|
-
defaultValue?: any;
|
|
1295
|
-
}
|
|
1296
|
-
/**
|
|
1297
|
-
* Label-value pair for enum field options.
|
|
1298
|
-
* Allows enum fields to have user-friendly labels while storing clean values
|
|
1299
|
-
* (e.g., numbers for scoring calculations in CEL expressions).
|
|
1300
|
-
*/
|
|
1301
|
-
interface EnumOption {
|
|
1302
|
-
/** Display label shown to users */
|
|
1303
|
-
label: string;
|
|
1304
|
-
/** Stored value (can be string or number) */
|
|
1305
|
-
value: string | number;
|
|
1306
|
-
/**
|
|
1307
|
-
* CEL expression that must return true for this option to be visible.
|
|
1308
|
-
* Uses record.data.<field_slug> syntax to reference other field values.
|
|
1309
|
-
* CONSTRAINT: Can only reference non-FUNCTION fields.
|
|
1310
|
-
*/
|
|
1311
|
-
visibleWhen?: string;
|
|
1312
|
-
}
|
|
1313
|
-
/**
|
|
1314
|
-
* SchemaField is the canonical representation of a data type field.
|
|
1315
|
-
* This is the type returned by the API and stored in the database.
|
|
1316
|
-
* Display order is determined by array position, not the order field.
|
|
1317
|
-
*/
|
|
1318
|
-
interface SchemaField {
|
|
1319
|
-
/** Unique field identifier */
|
|
1320
|
-
slug: string;
|
|
1321
|
-
/** Display name for the field */
|
|
1322
|
-
name: string;
|
|
1323
|
-
/** Optional field description */
|
|
1324
|
-
description?: string;
|
|
1325
|
-
/** Field type (text, email, enum, etc.) */
|
|
1326
|
-
fieldType: DataFieldType;
|
|
1327
|
-
/** Whether field is required */
|
|
1328
|
-
required: boolean;
|
|
1329
|
-
/** @deprecated Display order is now determined by array position */
|
|
1330
|
-
order?: number;
|
|
1331
|
-
/** Options for enum fields as {label, value} objects. */
|
|
1332
|
-
options?: EnumOption[];
|
|
1333
|
-
/** Referenced DataType ID for reference fields */
|
|
1334
|
-
referencedTypeId?: number;
|
|
1335
|
-
/** Whether to index this field */
|
|
1336
|
-
shouldIndex?: boolean;
|
|
1337
|
-
/** Whether only admins can see this field */
|
|
1338
|
-
adminOnly?: boolean;
|
|
1339
|
-
/** Default value for the field */
|
|
1340
|
-
defaultValue?: any;
|
|
1341
|
-
/** CEL expression that computes this field's value from other fields */
|
|
1342
|
-
celFunction?: string;
|
|
1343
|
-
/**
|
|
1344
|
-
* CEL expression for cross-field validation.
|
|
1345
|
-
* Context: 'value' (current field value), 'record.data.<field_slug>' (other fields).
|
|
1346
|
-
* Returns: true if valid, or a string error message if invalid.
|
|
1347
|
-
* CONSTRAINT: Can only reference non-FUNCTION fields.
|
|
1348
|
-
*/
|
|
1349
|
-
validateCel?: string;
|
|
1350
|
-
}
|
|
1351
|
-
interface DataType {
|
|
1352
|
-
id: number;
|
|
1353
|
-
name: string;
|
|
1354
|
-
slug: string;
|
|
1355
|
-
uuid: string;
|
|
1356
|
-
description?: string;
|
|
1357
|
-
prompt?: string;
|
|
1358
|
-
isCollection: boolean;
|
|
1359
|
-
pinned?: boolean;
|
|
1360
|
-
archived: boolean;
|
|
1361
|
-
ownerId: number | null;
|
|
1362
|
-
createdAt: string;
|
|
1363
|
-
updatedAt: string;
|
|
1364
|
-
/** Typed field definitions */
|
|
1365
|
-
fields: SchemaField[];
|
|
1366
|
-
}
|
|
1367
|
-
interface DataTypeFormData {
|
|
1368
|
-
name: string;
|
|
1369
|
-
slug: string;
|
|
1370
|
-
description?: string;
|
|
1371
|
-
prompt?: string;
|
|
1372
|
-
isCollection: boolean;
|
|
1373
|
-
pinned?: boolean;
|
|
1374
|
-
/** Typed field definitions */
|
|
1375
|
-
fields: SchemaField[];
|
|
1376
|
-
ownerId?: number | null;
|
|
1377
|
-
}
|
|
1378
|
-
interface DataRecord {
|
|
1379
|
-
id: number;
|
|
1380
|
-
dataTypeId: number;
|
|
1381
|
-
memberId: number;
|
|
1382
|
-
fieldValues: Record<string, any>;
|
|
1383
|
-
externalId?: string;
|
|
1384
|
-
assignmentTaskId?: number;
|
|
1385
|
-
createdAt: string;
|
|
1386
|
-
updatedAt: string;
|
|
1387
|
-
}
|
|
1388
|
-
interface DataRecordFormData {
|
|
1389
|
-
memberId?: number;
|
|
1390
|
-
/** Member external ID (alternative to memberId). Cannot be used with memberId. */
|
|
1391
|
-
memberExternalId?: string;
|
|
1392
|
-
fieldValues: Record<string, any>;
|
|
1393
|
-
externalId?: string;
|
|
1394
|
-
assignmentTaskId?: number;
|
|
1395
|
-
}
|
|
1396
|
-
interface DataRecordUpdate {
|
|
1397
|
-
id: number;
|
|
1398
|
-
dataRecordId: number;
|
|
1399
|
-
memberId: number;
|
|
1400
|
-
fieldName: string;
|
|
1401
|
-
oldValue?: string | null;
|
|
1402
|
-
newValue?: string | null;
|
|
1403
|
-
createdAt: string;
|
|
1404
|
-
updatedAt: string;
|
|
1405
|
-
assignmentTaskId?: number | null;
|
|
1406
|
-
memberName?: string | null;
|
|
1407
|
-
}
|
|
1408
|
-
interface DataRecordsPaginatedResponse {
|
|
1409
|
-
items: DataRecord[];
|
|
1410
|
-
total: number;
|
|
1411
|
-
page: number;
|
|
1412
|
-
pageSize: number;
|
|
1413
|
-
totalPages: number;
|
|
1414
|
-
}
|
|
1415
|
-
interface DataRecordWithAccessMode extends DataRecord {
|
|
1416
|
-
accessMode: number;
|
|
1417
|
-
}
|
|
1418
|
-
interface DataRecordAssociationFormData {
|
|
1419
|
-
id: number;
|
|
1420
|
-
accessMode: number;
|
|
1421
|
-
}
|
|
1422
|
-
interface DataRecordReportItem {
|
|
1423
|
-
id: number;
|
|
1424
|
-
data_type_id: number;
|
|
1425
|
-
data_type_name: string;
|
|
1426
|
-
data_type_slug: string;
|
|
1427
|
-
values: Record<string, any>;
|
|
1428
|
-
created_at: string;
|
|
1429
|
-
updated_at: string;
|
|
1430
|
-
external_id?: string | null;
|
|
1431
|
-
}
|
|
1432
|
-
interface DataIntegrityReportItem {
|
|
1433
|
-
member: MemberReportItem;
|
|
1434
|
-
account: AccountReportItem;
|
|
1435
|
-
data_records: DataRecordReportItem[];
|
|
1436
|
-
possible_matches: DataIntegrityReportItem[];
|
|
1437
|
-
issues: string[];
|
|
1438
|
-
normalized_phone?: string | null;
|
|
1439
|
-
}
|
|
1440
|
-
interface DataTypeExportItem {
|
|
1441
|
-
uuid: string;
|
|
1442
|
-
name: string;
|
|
1443
|
-
description: string | null;
|
|
1444
|
-
}
|
|
1445
|
-
interface TaskExportDataTypeRelation {
|
|
1446
|
-
taskUuid: string;
|
|
1447
|
-
dataTypeUuid: string;
|
|
1448
|
-
accessMode: number;
|
|
1449
|
-
}
|
|
1450
|
-
/**
|
|
1451
|
-
* Result for a single record in a bulk import operation.
|
|
1452
|
-
*/
|
|
1453
|
-
interface BulkRecordResult {
|
|
1454
|
-
index: number;
|
|
1455
|
-
status: 'created' | 'updated' | 'failed';
|
|
1456
|
-
recordId?: number | null;
|
|
1457
|
-
externalId?: string | null;
|
|
1458
|
-
error?: string | null;
|
|
1459
|
-
}
|
|
1460
|
-
/**
|
|
1461
|
-
* Response for bulk create data records operation.
|
|
1462
|
-
*/
|
|
1463
|
-
interface BulkCreateDataRecordResponse {
|
|
1464
|
-
importedCount: number;
|
|
1465
|
-
totalCount: number;
|
|
1466
|
-
success: boolean;
|
|
1467
|
-
results: BulkRecordResult[];
|
|
1468
|
-
errors?: string[] | null;
|
|
1469
|
-
}
|
|
1470
|
-
/**
|
|
1471
|
-
* Request body for bulk create data records.
|
|
1472
|
-
*/
|
|
1473
|
-
interface BulkCreateDataRecordRequest {
|
|
1474
|
-
records: DataRecordFormData[];
|
|
1475
|
-
upsert?: boolean;
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
/**
|
|
1479
|
-
* Calendar-related types for the Gravity Rail calendar and appointment booking system.
|
|
1480
|
-
*/
|
|
1481
|
-
declare enum CalendarPermissionType {
|
|
1482
|
-
NONE = "NONE",
|
|
1483
|
-
FREE_BUSY = "FREE_BUSY",
|
|
1484
|
-
READ = "READ",
|
|
1485
|
-
WRITE = "WRITE",
|
|
1486
|
-
ADMIN = "ADMIN"
|
|
1487
|
-
}
|
|
1488
|
-
declare enum CalendarSource {
|
|
1489
|
-
INTERNAL = "internal",
|
|
1490
|
-
GOOGLE = "google",
|
|
1491
|
-
OUTLOOK = "outlook"
|
|
1492
|
-
}
|
|
1493
|
-
interface Calendar {
|
|
1494
|
-
id: number;
|
|
1495
|
-
uuid: string;
|
|
1496
|
-
templateUuid: string | null;
|
|
1497
|
-
name: string;
|
|
1498
|
-
slug: string;
|
|
1499
|
-
description: string | null;
|
|
1500
|
-
timezone: string;
|
|
1501
|
-
color: string | null;
|
|
1502
|
-
isPublic: boolean;
|
|
1503
|
-
ownerId: number;
|
|
1504
|
-
ownerName: string | null;
|
|
1505
|
-
remoteCalendarId?: string | null;
|
|
1506
|
-
syncStatus?: string | null;
|
|
1507
|
-
syncError?: string | null;
|
|
1508
|
-
lastSyncedAt?: string | null;
|
|
1509
|
-
calendarSource: CalendarSource;
|
|
1510
|
-
eventTypeIds: number[];
|
|
1511
|
-
schedules: CalendarSchedule[];
|
|
1512
|
-
createdAt: string;
|
|
1513
|
-
updatedAt: string;
|
|
1514
|
-
}
|
|
1515
|
-
interface CalendarFormData {
|
|
1516
|
-
name: string;
|
|
1517
|
-
slug?: string;
|
|
1518
|
-
description?: string | null;
|
|
1519
|
-
timezone?: string;
|
|
1520
|
-
color?: string | null;
|
|
1521
|
-
isPublic?: boolean;
|
|
1522
|
-
eventTypeIds?: number[];
|
|
1523
|
-
}
|
|
1524
|
-
interface CalendarSchedule {
|
|
1525
|
-
id: number;
|
|
1526
|
-
uuid: string;
|
|
1527
|
-
name: string;
|
|
1528
|
-
description: string | null;
|
|
1529
|
-
availabilityType: CalendarScheduleAvailabilityType;
|
|
1530
|
-
recurrenceType: CalendarScheduleRecurrence;
|
|
1531
|
-
startTime: string;
|
|
1532
|
-
endTime: string;
|
|
1533
|
-
recurrenceRule: Record<string, any> | null;
|
|
1534
|
-
recurrenceEndDate: string | null;
|
|
1535
|
-
daysOfWeek: string[] | null;
|
|
1536
|
-
priority: number;
|
|
1537
|
-
eventTypeIds: number[];
|
|
1538
|
-
createdAt: string;
|
|
1539
|
-
updatedAt: string;
|
|
1540
|
-
}
|
|
1541
|
-
interface CalendarScheduleFormData {
|
|
1542
|
-
name: string;
|
|
1543
|
-
description?: string | null;
|
|
1544
|
-
availabilityType: CalendarScheduleAvailabilityType;
|
|
1545
|
-
recurrenceType: CalendarScheduleRecurrence;
|
|
1546
|
-
startTime: string;
|
|
1547
|
-
endTime: string;
|
|
1548
|
-
recurrenceRule?: Record<string, any> | null;
|
|
1549
|
-
recurrenceEndDate?: string | null;
|
|
1550
|
-
daysOfWeek?: string[] | null;
|
|
1551
|
-
priority?: number;
|
|
1552
|
-
eventTypeIds?: number[] | null;
|
|
1553
|
-
}
|
|
1554
|
-
declare enum CalendarScheduleRecurrence {
|
|
1555
|
-
ONCE = "ONCE",
|
|
1556
|
-
DAILY = "DAILY",
|
|
1557
|
-
WEEKLY = "WEEKLY",
|
|
1558
|
-
MONTHLY = "MONTHLY",
|
|
1559
|
-
CUSTOM = "CUSTOM"
|
|
1560
|
-
}
|
|
1561
|
-
declare enum CalendarScheduleAvailabilityType {
|
|
1562
|
-
AVAILABLE = "AVAILABLE",
|
|
1563
|
-
UNAVAILABLE = "UNAVAILABLE"
|
|
1564
|
-
}
|
|
1565
|
-
interface CalendarEventType {
|
|
1566
|
-
id: number;
|
|
1567
|
-
uuid: string;
|
|
1568
|
-
templateUuid: string | null;
|
|
1569
|
-
name: string;
|
|
1570
|
-
slug: string;
|
|
1571
|
-
description: string | null;
|
|
1572
|
-
defaultDurationMinutes: number;
|
|
1573
|
-
bufferBeforeMinutes: number;
|
|
1574
|
-
bufferAfterMinutes: number;
|
|
1575
|
-
minAttendees: number;
|
|
1576
|
-
maxAttendees: number | null;
|
|
1577
|
-
color: string | null;
|
|
1578
|
-
active: boolean;
|
|
1579
|
-
createdAt: string;
|
|
1580
|
-
updatedAt: string;
|
|
1581
|
-
}
|
|
1582
|
-
interface CalendarEventTypeFormData {
|
|
1583
|
-
name: string;
|
|
1584
|
-
slug?: string;
|
|
1585
|
-
description?: string | null;
|
|
1586
|
-
defaultDurationMinutes: number;
|
|
1587
|
-
bufferBeforeMinutes?: number;
|
|
1588
|
-
bufferAfterMinutes?: number;
|
|
1589
|
-
minAttendees?: number;
|
|
1590
|
-
maxAttendees?: number | null;
|
|
1591
|
-
color?: string | null;
|
|
1592
|
-
active?: boolean;
|
|
1593
|
-
}
|
|
1594
|
-
interface CalendarEvent {
|
|
1595
|
-
id: number;
|
|
1596
|
-
uuid: string;
|
|
1597
|
-
calendarId: number;
|
|
1598
|
-
calendarName: string;
|
|
1599
|
-
eventTypeId: number;
|
|
1600
|
-
eventTypeName: string;
|
|
1601
|
-
eventTypeColor: string | null;
|
|
1602
|
-
title: string;
|
|
1603
|
-
description: string | null;
|
|
1604
|
-
location: string | null;
|
|
1605
|
-
startTime: string;
|
|
1606
|
-
endTime: string;
|
|
1607
|
-
status: CalendarEventStatus;
|
|
1608
|
-
creatorMemberId: number | null;
|
|
1609
|
-
workflowId: number | null;
|
|
1610
|
-
taskId: number | null;
|
|
1611
|
-
assignmentId: number | null;
|
|
1612
|
-
chatId: number | null;
|
|
1613
|
-
messageId: number | null;
|
|
1614
|
-
cancelledAt: string | null;
|
|
1615
|
-
cancelledByMemberId: number | null;
|
|
1616
|
-
cancellationReason: string | null;
|
|
1617
|
-
recurrenceRule: string | null;
|
|
1618
|
-
recurringEventId: string | null;
|
|
1619
|
-
isRecurringInstance: boolean;
|
|
1620
|
-
originalStartTime: string | null;
|
|
1621
|
-
remoteEventId: string | null;
|
|
1622
|
-
attendees: CalendarEventAttendee[];
|
|
1623
|
-
createdAt: string;
|
|
1624
|
-
updatedAt: string;
|
|
1625
|
-
}
|
|
1626
|
-
interface CalendarEventFormData {
|
|
1627
|
-
calendarId: number;
|
|
1628
|
-
eventTypeId: number;
|
|
1629
|
-
title: string;
|
|
1630
|
-
description?: string | null;
|
|
1631
|
-
location?: string | null;
|
|
1632
|
-
startTime: string;
|
|
1633
|
-
attendeeIds: number[];
|
|
1634
|
-
workflowId?: number | null;
|
|
1635
|
-
taskId?: number | null;
|
|
1636
|
-
assignmentId?: number | null;
|
|
1637
|
-
}
|
|
1638
|
-
declare enum CalendarEventStatus {
|
|
1639
|
-
TENTATIVE = "TENTATIVE",
|
|
1640
|
-
CONFIRMED = "CONFIRMED",
|
|
1641
|
-
CANCELLED = "CANCELLED",
|
|
1642
|
-
NO_SHOW = "NO_SHOW",
|
|
1643
|
-
COMPLETED = "COMPLETED"
|
|
1644
|
-
}
|
|
1645
|
-
interface CalendarEventAttendee {
|
|
1646
|
-
id: number;
|
|
1647
|
-
memberId: number;
|
|
1648
|
-
status: AttendeeStatus;
|
|
1649
|
-
responseStatus: AttendeeResponseStatus;
|
|
1650
|
-
responseAt: string | null;
|
|
1651
|
-
note: string | null;
|
|
1652
|
-
}
|
|
1653
|
-
declare enum AttendeeStatus {
|
|
1654
|
-
REQUIRED = "REQUIRED",
|
|
1655
|
-
OPTIONAL = "OPTIONAL"
|
|
1656
|
-
}
|
|
1657
|
-
declare enum AttendeeResponseStatus {
|
|
1658
|
-
PENDING = "PENDING",
|
|
1659
|
-
ACCEPTED = "ACCEPTED",
|
|
1660
|
-
DECLINED = "DECLINED",
|
|
1661
|
-
TENTATIVE = "TENTATIVE"
|
|
1662
|
-
}
|
|
1663
|
-
interface ICalFeedTokenResponse {
|
|
1664
|
-
feedUrl: string;
|
|
1665
|
-
tokenGeneratedAt: string;
|
|
1666
|
-
calendarId: number;
|
|
1667
|
-
calendarUuid: string;
|
|
1668
|
-
}
|
|
1669
|
-
interface ICalFeedUrlResponse {
|
|
1670
|
-
feedUrl: string | null;
|
|
1671
|
-
hasToken: boolean;
|
|
1672
|
-
tokenGeneratedAt: string | null;
|
|
1673
|
-
}
|
|
1674
|
-
interface UpdateAttendeeRequest {
|
|
1675
|
-
responseStatus: AttendeeResponseStatus;
|
|
1676
|
-
note?: string | null;
|
|
1677
|
-
}
|
|
1678
|
-
interface AvailabilityCheck {
|
|
1679
|
-
eventTypeId: number;
|
|
1680
|
-
startTime: string;
|
|
1681
|
-
endTime?: string | null;
|
|
1682
|
-
}
|
|
1683
|
-
interface AvailabilityResponse {
|
|
1684
|
-
available: boolean;
|
|
1685
|
-
reason?: string | null;
|
|
1686
|
-
}
|
|
1687
|
-
interface AvailableSlotsRequest {
|
|
1688
|
-
eventTypeId: number;
|
|
1689
|
-
startDate: string;
|
|
1690
|
-
endDate: string;
|
|
1691
|
-
slotIntervalMinutes?: number;
|
|
1692
|
-
}
|
|
1693
|
-
interface AvailableSlotsResponse {
|
|
1694
|
-
slots: string[];
|
|
1695
|
-
eventTypeId: number;
|
|
1696
|
-
calendarId: number;
|
|
1697
|
-
}
|
|
1698
|
-
interface CalendarEventsQueryParams {
|
|
1699
|
-
calendarId?: number;
|
|
1700
|
-
startDate?: string;
|
|
1701
|
-
endDate?: string;
|
|
1702
|
-
status?: CalendarEventStatus;
|
|
1703
|
-
memberId?: number;
|
|
1704
|
-
limit?: number;
|
|
1705
|
-
offset?: number;
|
|
1706
|
-
}
|
|
1707
|
-
interface GoogleCalendarInfo {
|
|
1708
|
-
id: string;
|
|
1709
|
-
summary: string;
|
|
1710
|
-
description?: string;
|
|
1711
|
-
timeZone: string;
|
|
1712
|
-
backgroundColor?: string;
|
|
1713
|
-
accessRole: string;
|
|
1714
|
-
primary: boolean;
|
|
1715
|
-
}
|
|
1716
|
-
interface GoogleCalendarStatusResponse {
|
|
1717
|
-
connected: boolean;
|
|
1718
|
-
email?: string;
|
|
1719
|
-
calendars: GoogleCalendarInfo[];
|
|
1720
|
-
insufficientScopes?: boolean;
|
|
1721
|
-
}
|
|
1722
|
-
interface GoogleCalendarInsufficientScopesResponse {
|
|
1723
|
-
connected: boolean;
|
|
1724
|
-
insufficientScopes: true;
|
|
1725
|
-
email?: string;
|
|
1726
|
-
reAuthUrl: string;
|
|
1727
|
-
}
|
|
1728
|
-
interface LinkCalendarRequest {
|
|
1729
|
-
googleCalendarId: string;
|
|
1730
|
-
}
|
|
1731
|
-
interface LinkCalendarResponse {
|
|
1732
|
-
status: string;
|
|
1733
|
-
message: string;
|
|
1734
|
-
googleCalendarId: string;
|
|
1735
|
-
googleCalendarName?: string;
|
|
1736
|
-
}
|
|
1737
|
-
interface UnlinkCalendarResponse {
|
|
1738
|
-
status: string;
|
|
1739
|
-
message: string;
|
|
1740
|
-
}
|
|
1741
|
-
interface SyncCalendarResponse {
|
|
1742
|
-
status: string;
|
|
1743
|
-
message: string;
|
|
1744
|
-
created: number;
|
|
1745
|
-
updated: number;
|
|
1746
|
-
errors: Array<{
|
|
1747
|
-
event_id: string;
|
|
1748
|
-
error: string;
|
|
1749
|
-
}>;
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
declare const CreateInquirySchema: z.ZodObject<{
|
|
1753
|
-
name: z.ZodString;
|
|
1754
|
-
inquiryType: z.ZodEnum<{
|
|
1755
|
-
customer: "customer";
|
|
1756
|
-
builder: "builder";
|
|
1757
|
-
partner: "partner";
|
|
1758
|
-
other: "other";
|
|
1759
|
-
}>;
|
|
1760
|
-
cellNumber: z.ZodOptional<z.ZodString>;
|
|
1761
|
-
businessNumber: z.ZodOptional<z.ZodString>;
|
|
1762
|
-
businessName: z.ZodOptional<z.ZodString>;
|
|
1763
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1764
|
-
state: z.ZodOptional<z.ZodString>;
|
|
1765
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1766
|
-
productId: z.ZodOptional<z.ZodNumber>;
|
|
1767
|
-
recaptchaToken: z.ZodOptional<z.ZodString>;
|
|
1768
|
-
}, z.core.$strip>;
|
|
1769
|
-
declare const ListInquiriesSchema: z.ZodObject<{
|
|
1770
|
-
page: z.ZodOptional<z.ZodNumber>;
|
|
1771
|
-
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
1772
|
-
inquiryType: z.ZodOptional<z.ZodString>;
|
|
1773
|
-
}, z.core.$strip>;
|
|
1774
|
-
declare const GetInquirySchema: z.ZodObject<{
|
|
1775
|
-
inquiryId: z.ZodNumber;
|
|
1776
|
-
}, z.core.$strip>;
|
|
1777
|
-
declare const UpdateInquiryRequestSchema: z.ZodObject<{
|
|
1778
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
1779
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
1780
|
-
in_progress: "in_progress";
|
|
1781
|
-
new: "new";
|
|
1782
|
-
done: "done";
|
|
1783
|
-
}>>;
|
|
1784
|
-
}, z.core.$strip>;
|
|
1785
|
-
declare const UpdateInquirySchema: z.ZodObject<{
|
|
1786
|
-
inquiryId: z.ZodNumber;
|
|
1787
|
-
notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1788
|
-
status: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1789
|
-
in_progress: "in_progress";
|
|
1790
|
-
new: "new";
|
|
1791
|
-
done: "done";
|
|
1792
|
-
}>>>;
|
|
1793
|
-
}, z.core.$strip>;
|
|
1794
|
-
declare const DeleteInquirySchema: z.ZodObject<{
|
|
1795
|
-
inquiryId: z.ZodNumber;
|
|
1796
|
-
}, z.core.$strip>;
|
|
1797
|
-
type ListInquiriesInput = z.infer<typeof ListInquiriesSchema>;
|
|
1798
|
-
type GetInquiryInput = z.infer<typeof GetInquirySchema>;
|
|
1799
|
-
type CreateInquiryInput = z.infer<typeof CreateInquirySchema>;
|
|
1800
|
-
type UpdateInquiryInput = z.infer<typeof UpdateInquirySchema>;
|
|
1801
|
-
type DeleteInquiryInput = z.infer<typeof DeleteInquirySchema>;
|
|
1802
|
-
|
|
1803
|
-
export { type CalendarFormData as $, AccessLevel as A, type ApiKeyScope as B, type ApiKeyScopesResponse as C, type AssignmentSortField as D, AttendeeResponseStatus as E, AttendeeStatus as F, type AvailabilityCheck as G, type AvailabilityResponse as H, type AvailableSlotsRequest as I, type AvailableSlotsResponse as J, type BotSortField as K, type BulkCreateDataRecordRequest as L, type BulkCreateDataRecordResponse as M, type BulkCreateMembersRequest as N, type BulkCreateMembersResponse as O, type BulkMemberItem as P, type BulkMemberResult as Q, type BulkRecordResult as R, type Calendar as S, type CalendarEvent as T, type CalendarEventAttendee as U, type CalendarEventFormData as V, type CalendarEventSortField as W, CalendarEventStatus as X, type CalendarEventType as Y, type CalendarEventTypeFormData as Z, type CalendarEventsQueryParams as _, type Account as a, type LoginRequest as a$, CalendarPermissionType as a0, type CalendarSchedule as a1, CalendarScheduleAvailabilityType as a2, type CalendarScheduleFormData as a3, CalendarScheduleRecurrence as a4, CalendarSource as a5, type CancelCredentialChangeInviteResponse as a6, type CancelCredentialChangeResponse as a7, type ChatSortField as a8, type ConsentRecordExport as a9, type DataRecordUpdate as aA, type DataRecordWithAccessMode as aB, type DataRecordsPaginatedResponse as aC, type DataType as aD, type DataTypeExportItem as aE, type DataTypeFormData as aF, type DataTypeSortField as aG, type DeleteAccountOrgMembershipResponse as aH, type DeletionCancelResponse as aI, type DeletionRequestResponse as aJ, type DetailedAccount as aK, type DuplicateAccountInfo as aL, type EnumOption as aM, type ErrorResponse as aN, type EventRunSortField as aO, type ExpireAnonymousMemberRequest as aP, type FileSortField as aQ, type GenerateRecoveryCodesRequest as aR, type GoogleCalendarInfo as aS, type GoogleCalendarInsufficientScopesResponse as aT, type GoogleCalendarStatusResponse as aU, type ICalFeedTokenResponse as aV, type ICalFeedUrlResponse as aW, IndexStatus as aX, type JourneySortField as aY, type LinkCalendarRequest as aZ, type LinkCalendarResponse as a_, type CreateAccountOrgMembershipRequest as aa, type CreateAccountOrgMembershipResponse as ab, type CreateAgentRequest as ac, type CreateAnonymousMemberRequest as ad, type CreateCredentialChangeInviteRequest as ae, type CreateOrganizationRequest as af, type CreateSignupResponse as ag, type CreateWorkspaceMemberRequest as ah, type CredentialChangeInviteConfirmResponse as ai, type CredentialChangeInviteDetails as aj, type CredentialChangeInviteResponse as ak, type CredentialChangeRequestResponse as al, type CredentialChangeVerifyResponse as am, type CredentialType as an, type CurrentMember as ao, type CurrentOrgMember as ap, type CursorPaginatedResponse as aq, type DataExportResponse as ar, type DataField as as, type DataFieldFormData as at, DataFieldType as au, type DataIntegrityReportItem as av, type DataRecord as aw, type DataRecordAssociationFormData as ax, type DataRecordFormData as ay, type DataRecordReportItem as az, type AccountDataExport as b, type RecoveryCodesResponse as b$, type LoginResponse as b0, type LogoUploadRequest as b1, type LogoUploadResponse as b2, type McpServerSortField as b3, type Member as b4, type MemberFilter as b5, type MemberFilterFilterType as b6, type MemberFilterFormData as b7, type MemberFilterObjectType as b8, type MemberFilterRule as b9, type MilestoneSortField as bA, type MissingMembershipItem as bB, type NormalizeMemberRequest as bC, type NormalizeMemberResponse as bD, type ObjectPermission as bE, type ObjectPermissionFlags as bF, type OrgMember as bG, type OrgMemberListResponse as bH, type OrgMemberRole as bI, type OrgMembershipExport as bJ, type Organization as bK, PERMISSION_ADMIN as bL, PERMISSION_CREATE as bM, PERMISSION_DELETE as bN, PERMISSION_EDIT as bO, PERMISSION_GEOLOCATE as bP, PERMISSION_LIST as bQ, PERMISSION_LIST_ALL as bR, PERMISSION_NONE as bS, PERMISSION_USE as bT, PERMISSION_VERIFY as bU, type PageSortField as bV, type PaginatedResponse as bW, type PendingAnonymousMembersResponse as bX, type PendingCredentialChange as bY, type PendingCredentialChangeInvite as bZ, type QualificationSortField as b_, type MemberFilterRuleFormData as ba, type MemberFormData as bb, type MemberLabel as bc, type MemberLabelFormData as bd, type MemberMemoriesResponse as be, type MemberMessageActivity as bf, type MemberOrgView as bg, type MemberReportItem as bh, type MemberRole as bi, type MemberRoleCalendarAccess as bj, type MemberRoleDataTypeAccess as bk, type MemberRoleFileAccess as bl, type MemberRoleFolderAccess as bm, type MemberRoleFormData as bn, type MemberRoleInboxAccess as bo, type MemberRoleSiteAccess as bp, type MemberRoleTaskAccess as bq, type MemberRoleWorkflowAccess as br, type MemberSortField as bs, MemberType as bt, type MemberWorkspaceInfo as bu, type MembersQueryParams as bv, type MemoryItem as bw, type MemoryStrategyType as bx, type MergeMembersRequest as by, type MergeMembersResponse as bz, type AccountFormData as c, MilestoneFormDataSchema as c$, type RequestCredentialChangeRequest as c0, type RequestMagicLinkRequest as c1, type RequestMagicLinkResponse as c2, type ResolveAnonymousMemberRequest as c3, type RoutineSortField as c4, type RuleExecutionSortField as c5, type SMSLoginResponse as c6, type SSOConfig as c7, type SSOConfigData as c8, type SchemaField as c9, type VerifyCredentialChangeRequest as cA, type VerifyEmailRequest as cB, type VerifyTOTPSetupRequest as cC, type VerifyWebAuthnSetupRequest as cD, type WebhookLogSortField as cE, type WorkflowSortField as cF, type WorkspaceMembershipExport as cG, type WorkspaceSortField as cH, decodePermissions as cI, encodePermissions as cJ, type CreateInquiryInput as cK, CreateInquirySchema as cL, type CreateMilestoneInput as cM, CreateMilestoneSchema as cN, type DeleteInquiryInput as cO, DeleteInquirySchema as cP, type DeleteMilestoneInput as cQ, DeleteMilestoneSchema as cR, type GetInquiryInput as cS, GetInquirySchema as cT, type GetMilestoneInput as cU, GetMilestoneSchema as cV, type ListInquiriesInput as cW, ListInquiriesSchema as cX, type ListMilestonesInput as cY, ListMilestonesSchema as cZ, type MilestoneFormData as c_, Scope as ca, type SendEmailVerificationRequest as cb, type SetupTOTPRequest as cc, type SetupWebAuthnRequest as cd, type SignupAccountResponse as ce, type SignupMemberResponse as cf, type SiteSortField as cg, type SortOrder as ch, type SyncCalendarResponse as ci, type TOTPSetupResponse as cj, type TaskExportDataTypeRelation as ck, type TaskSortField as cl, type TwoFactorMethod as cm, type TwoFactorOperationResponse as cn, type TwoFactorStatus as co, type UnlinkCalendarResponse as cp, type UpdateAgentRequest as cq, type UpdateAttendeeRequest as cr, type UpdateOrgMemberRequest as cs, type UpdateOrganizationRequest as ct, type UpdateTwoFactorMethodRequest as cu, type UpdateWorkspaceMemberRequest as cv, type ValidateMagicLinkRequest as cw, type ValidateMagicLinkResponse as cx, type VerifyCodeRequest as cy, type VerifyCodeResponse as cz, type AccountLookupResponse as d, MilestoneGoalFormDataSchema as d0, type UpdateInquiryInput as d1, UpdateInquiryRequestSchema as d2, UpdateInquirySchema as d3, type UpdateMilestoneInput as d4, UpdateMilestoneSchema as d5, type AccountReportItem as e, type AccountSortField as f, type AccountState as g, type AddAccountToOrgRequest as h, type AdminAccount as i, type AdminAccountFormData as j, type AdminAccountMembership as k, type AdminAccountOrgMembership as l, type AdminOrganization as m, type AdminWorkspaceMemberFormData as n, type AdminWorkspaceSortField as o, type Agent as p, type AgentConfig as q, type AgentConfigFormData as r, type AgentMemoryConfig as s, type AgentSortField as t, type AnonymousInteraction as u, type AnonymousMemberResolution as v, type AnonymousMemberResolutionStatus as w, type ApiKey as x, type ApiKeyCreated as y, type ApiKeyFormData as z };
|