@gravity-rail/sdk 0.4.0 → 0.5.1

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.
@@ -1,1941 +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 SessionExchangeRequest {
232
- organizationUuid: string;
233
- audience?: 'gravityrail:org';
234
- maxAgeSeconds?: number;
235
- }
236
- interface SessionExchangeResponse {
237
- token: string;
238
- sessionId: string;
239
- principalScope: 'org';
240
- principalUuid: string;
241
- organizationUuid: string;
242
- audience: 'gravityrail:org';
243
- expiresAt: string;
244
- sessionAssuranceLevel: number;
245
- policyVersion: number;
246
- }
247
- interface SMSLoginResponse {
248
- success: boolean;
249
- message?: string;
250
- }
251
- interface SendEmailVerificationRequest {
252
- email: string;
253
- organizationUuid?: string;
254
- }
255
- interface VerifyEmailRequest {
256
- email: string;
257
- code: string;
258
- organizationUuid?: string;
259
- }
260
- interface ErrorResponse {
261
- detail: string;
262
- }
263
- interface RequestMagicLinkRequest {
264
- email: string;
265
- organizationUuid?: string;
266
- redirectUrl?: string;
267
- }
268
- interface RequestMagicLinkResponse {
269
- success: boolean;
270
- message: string;
271
- token?: string;
272
- magicLinkUrl?: string;
273
- }
274
- interface ValidateMagicLinkRequest {
275
- token: string;
276
- otp?: string;
277
- }
278
- interface ValidateMagicLinkResponse extends VerifyCodeResponse {
279
- success: boolean;
280
- requiresOtp?: boolean;
281
- otpAttemptsRemaining?: number;
282
- redirectUrl?: string;
283
- }
284
- interface ApiKey {
285
- id: number;
286
- uuid: string;
287
- name: string;
288
- keyPrefix: string;
289
- createdAt: string;
290
- expiresAt: string | null;
291
- lastUsedAt: string | null;
292
- enabled: boolean;
293
- scopes: string[];
294
- appId?: number | null;
295
- }
296
- interface ApiKeyCreated extends ApiKey {
297
- key: string;
298
- }
299
- interface ApiKeyFormData {
300
- name: string;
301
- expiresInDays: number;
302
- scopes: string[];
303
- }
304
- interface ApiKeyScope {
305
- name: string;
306
- description: string;
307
- value: number;
308
- }
309
- interface ApiKeyScopesResponse {
310
- scopes: ApiKeyScope[];
311
- }
312
- interface SSOConfigData {
313
- providerType?: string | null;
314
- autoProvision?: boolean;
315
- roleMapping?: Record<string, string> | null;
316
- }
317
- interface SSOConfig {
318
- provider: string | null;
319
- domain: string | null;
320
- enabledAt: string | null;
321
- config: SSOConfigData | null;
322
- }
323
- /**
324
- * OIDC provider config submitted by an admin. `clientSecret` is the
325
- * **cleartext** secret on input; the backend encrypts it before persisting
326
- * and never stores it in cleartext. Re-saving config with `clientSecret`
327
- * unset preserves the previously encrypted blob.
328
- */
329
- interface OIDCAdminConfigInput {
330
- providerType: 'azure_ad' | 'okta' | 'auth0' | 'generic';
331
- issuer: string;
332
- clientId: string;
333
- /** Cleartext secret. Send only when configuring or rotating. */
334
- clientSecret?: string | null;
335
- expectedAudience?: string | null;
336
- expectedTenantId?: string | null;
337
- multiTenant?: boolean;
338
- autoProvision?: boolean;
339
- roleMapping?: Record<string, string> | null;
340
- rolesKey?: string | null;
341
- groupsKey?: string | null;
342
- postLogoutRedirectUris?: string[] | null;
343
- }
344
- /**
345
- * OIDC provider config returned to an admin. `clientSecret` is always
346
- * `null`; `clientSecretSet` reflects whether one is configured.
347
- */
348
- interface OIDCAdminConfigView {
349
- providerType: 'azure_ad' | 'okta' | 'auth0' | 'generic';
350
- issuer: string;
351
- clientId: string;
352
- clientSecret: null;
353
- clientSecretSet: boolean;
354
- expectedAudience?: string | null;
355
- expectedTenantId?: string | null;
356
- multiTenant?: boolean;
357
- autoProvision?: boolean;
358
- roleMapping?: Record<string, string> | null;
359
- rolesKey?: string | null;
360
- groupsKey?: string | null;
361
- postLogoutRedirectUris?: string[] | null;
362
- }
363
- interface Organization {
364
- id: number;
365
- uuid: string;
366
- name: string;
367
- slug: string;
368
- primary: boolean;
369
- logoUrl?: string;
370
- contactEmail?: string;
371
- contactPhone?: string;
372
- authMode: 'open' | 'ssoForDomain' | 'ssoOnly';
373
- createdAt: string;
374
- creatorId: number;
375
- creatorName?: string;
376
- resellerWorkspaceId?: number;
377
- resellerWorkspaceUuid?: string;
378
- sso?: SSOConfig | null;
379
- }
380
- interface AdminOrganization extends Organization {
381
- viewType: 'admin';
382
- accountCount: number;
383
- workspaceCount: number;
384
- phoneNumberCount: number;
385
- /** Redacted OIDC view, only present for orgs with `sso.provider == 'oidc'`. */
386
- ssoOidc?: OIDCAdminConfigView | null;
387
- }
388
- /**
389
- * Workspace info for member view
390
- */
391
- interface MemberWorkspaceInfo {
392
- uuid: string;
393
- name: string;
394
- slug: string;
395
- }
396
- /**
397
- * Organization info for non-admin members
398
- * Shows basic org info and user's workspace memberships
399
- */
400
- interface MemberOrgView {
401
- viewType: 'member';
402
- id: number;
403
- uuid: string;
404
- name: string;
405
- slug: string | null;
406
- logoUrl: string | null;
407
- role: string;
408
- workspaces: MemberWorkspaceInfo[];
409
- }
410
- interface CreateOrganizationRequest {
411
- name: string;
412
- slug?: string;
413
- primary?: boolean;
414
- contactEmail?: string;
415
- contactPhone?: string;
416
- logo?: string;
417
- logoMimeType?: string;
418
- }
419
- interface UpdateOrganizationRequest {
420
- name?: string;
421
- slug?: string;
422
- primary?: boolean;
423
- logoUrl?: string;
424
- contactEmail?: string;
425
- contactPhone?: string;
426
- logo?: string;
427
- logoMimeType?: string;
428
- ssoProvider?: string | null;
429
- ssoDomain?: string | null;
430
- authMode?: 'open' | 'ssoForDomain' | 'ssoOnly';
431
- ssoAutoProvision?: boolean;
432
- /**
433
- * External OIDC config — encrypted server-side and persisted into
434
- * `organization.sso_config["oidc"]`. Set to `null` to clear an existing
435
- * OIDC config. The cleartext `clientSecret` only lives for the duration
436
- * of the request; the response surfaces a redacted view.
437
- */
438
- ssoOidc?: OIDCAdminConfigInput | null;
439
- twilioSubAccountSid?: string | null;
440
- }
441
- interface LogoUploadRequest {
442
- contentType: string;
443
- fileExtension: string;
444
- }
445
- interface LogoUploadResponse {
446
- uploadUrl: string;
447
- fields: Record<string, string>;
448
- fileUrl: string;
449
- }
450
- interface AdminAccountMembership {
451
- workspaceUuid: string;
452
- workspaceName: string;
453
- workspaceSlug?: string | null;
454
- role: string;
455
- memberRoleName?: string | null;
456
- createdAt: string;
457
- tosAccepted: boolean;
458
- memberRoleId: number | null;
459
- memberId: number;
460
- }
461
- interface AdminWorkspaceMemberFormData {
462
- tosAccepted?: boolean;
463
- role?: string;
464
- memberRoleId?: number;
465
- }
466
- interface AdminAccountOrgMembership {
467
- organizationId: number;
468
- organizationUuid: string;
469
- organizationName: string;
470
- organizationSlug: string;
471
- organizationLogoUrl: string | null;
472
- role: string;
473
- name: string | null;
474
- accountName: string | null;
475
- externalId: string | null;
476
- createdAt: string;
477
- updatedAt: string;
478
- }
479
- interface AccountReportItem {
480
- id: number;
481
- uuid: string;
482
- email?: string | null;
483
- phone?: string | null;
484
- name?: string | null;
485
- created_at: string;
486
- organization_id?: number | null;
487
- }
488
- interface DuplicateAccountInfo {
489
- id: number;
490
- name: string | null;
491
- email: string | null;
492
- phone: string | null;
493
- organizationId: number | null;
494
- organizationName: string | null;
495
- createdAt: string;
496
- }
497
- interface TwoFactorMethod {
498
- id: number;
499
- methodType: 'TOTP' | 'WEBAUTHN';
500
- name: string;
501
- enabled: boolean;
502
- createdAt: string;
503
- lastUsedAt?: string;
504
- }
505
- interface TwoFactorStatus {
506
- enabled: boolean;
507
- methods: TwoFactorMethod[];
508
- recoveryCodesCount: number;
509
- lastRecoveryCodesGenerated?: string;
510
- }
511
- interface TOTPSetupResponse {
512
- setupId: string;
513
- secret: string;
514
- qrCodeUrl: string;
515
- manualEntryKey: string;
516
- issuer: string;
517
- }
518
- interface RecoveryCodesResponse {
519
- codes: string[];
520
- generatedAt: string;
521
- warning: string;
522
- }
523
- interface TwoFactorOperationResponse {
524
- success: boolean;
525
- message: string;
526
- methodId?: number;
527
- }
528
- interface SetupTOTPRequest {
529
- name: string;
530
- }
531
- interface VerifyTOTPSetupRequest {
532
- setupId: string;
533
- code: string;
534
- name: string;
535
- }
536
- interface SetupWebAuthnRequest {
537
- name: string;
538
- }
539
- interface VerifyWebAuthnSetupRequest {
540
- setupId: string;
541
- credentialResponse: any;
542
- name: string;
543
- }
544
- interface GenerateRecoveryCodesRequest {
545
- regenerate?: boolean;
546
- }
547
- interface UpdateTwoFactorMethodRequest {
548
- methodId: number;
549
- name?: string;
550
- }
551
- interface MissingMembershipItem {
552
- member_id: number;
553
- member_name: string;
554
- account_id: number;
555
- account_uuid: string;
556
- }
557
- type OrgMemberRole = 'member' | 'admin' | 'owner';
558
- interface OrgMember {
559
- id: number;
560
- accountId: number | null;
561
- organizationId: number;
562
- role: OrgMemberRole;
563
- name?: string | null;
564
- externalId?: string | null;
565
- createdAt: string;
566
- updatedAt: string;
567
- accountName?: string | null;
568
- accountEmail?: string | null;
569
- accountPhone?: string | null;
570
- accountUuid?: string | null;
571
- }
572
- /**
573
- * Response for the current user's org membership (/me endpoint).
574
- * Extends OrgMember with scopes - the effective permissions
575
- * the API honors for this user in this organization context.
576
- */
577
- interface CurrentOrgMember extends OrgMember {
578
- scopes: string[];
579
- }
580
- interface OrgMemberListResponse {
581
- items: OrgMember[];
582
- total: number;
583
- page: number;
584
- pageSize: number;
585
- }
586
- interface UpdateOrgMemberRequest {
587
- role: OrgMemberRole;
588
- }
589
- interface AccountLookupResponse {
590
- found: boolean;
591
- accountId?: number;
592
- accountUuid?: string;
593
- name?: string | null;
594
- }
595
- interface CreateAccountOrgMembershipRequest {
596
- organizationId: number;
597
- role: OrgMemberRole;
598
- }
599
- interface CreateAccountOrgMembershipResponse {
600
- accountId: number;
601
- organizationId: number;
602
- organizationUuid: string;
603
- organizationName: string;
604
- role: string;
605
- message: string;
606
- }
607
- interface DeleteAccountOrgMembershipResponse {
608
- status: string;
609
- message: string;
610
- workspaceMembershipsRemoved: number;
611
- }
612
- type CredentialType = 'email' | 'phone';
613
- interface RequestCredentialChangeRequest {
614
- credentialType: CredentialType;
615
- newValue: string;
616
- }
617
- interface CredentialChangeRequestResponse {
618
- id: number;
619
- credentialType: CredentialType;
620
- expiresAt: string;
621
- message: string;
622
- }
623
- interface VerifyCredentialChangeRequest {
624
- requestId: number;
625
- otpCode: string;
626
- }
627
- interface CredentialChangeVerifyResponse {
628
- success: boolean;
629
- message: string;
630
- credentialType?: CredentialType;
631
- }
632
- interface PendingCredentialChange {
633
- id: number;
634
- credentialType: CredentialType;
635
- maskedNewValue: string;
636
- createdAt: string;
637
- expiresAt: string;
638
- isExpired: boolean;
639
- attempts: number;
640
- }
641
- interface CancelCredentialChangeResponse {
642
- success: boolean;
643
- message: string;
644
- }
645
- interface CreateCredentialChangeInviteRequest {
646
- credentialType: CredentialType;
647
- newValue: string;
648
- }
649
- interface CredentialChangeInviteResponse {
650
- id: number;
651
- credentialType: CredentialType;
652
- maskedNewValue: string;
653
- expiresAt: string;
654
- message: string;
655
- }
656
- interface CredentialChangeInviteDetails {
657
- id: number;
658
- credentialType: CredentialType;
659
- newValue: string;
660
- workspaceName: string;
661
- workspaceUuid: string;
662
- initiatedByName: string | null;
663
- createdAt: string;
664
- expiresAt: string;
665
- isExpired: boolean;
666
- isValid: boolean;
667
- }
668
- interface CredentialChangeInviteConfirmResponse {
669
- success: boolean;
670
- message: string;
671
- credentialType?: CredentialType;
672
- }
673
- interface PendingCredentialChangeInvite {
674
- id: number;
675
- credentialType: CredentialType;
676
- maskedNewValue: string;
677
- workspaceName: string;
678
- initiatedByName: string | null;
679
- createdAt: string;
680
- expiresAt: string;
681
- isExpired: boolean;
682
- status: string;
683
- }
684
- interface CancelCredentialChangeInviteResponse {
685
- success: boolean;
686
- message: string;
687
- }
688
- interface AccountDataExport {
689
- uuid: string;
690
- name: string | null;
691
- email: string | null;
692
- phone: string | null;
693
- gender: string | null;
694
- timezone: string | null;
695
- locale: string | null;
696
- createdAt: string;
697
- }
698
- interface WorkspaceMembershipExport {
699
- workspaceName: string;
700
- workspaceUuid: string;
701
- joinedAt: string;
702
- }
703
- interface OrgMembershipExport {
704
- orgName: string;
705
- role: string;
706
- }
707
- interface ConsentRecordExport {
708
- consentType: string;
709
- granted: boolean;
710
- recordedAt: string;
711
- policyVersion: string | null;
712
- }
713
- interface DataExportResponse {
714
- exportedAt: string;
715
- account: AccountDataExport;
716
- workspaceMemberships: WorkspaceMembershipExport[];
717
- orgMemberships: OrgMembershipExport[];
718
- consentRecords: ConsentRecordExport[];
719
- oauthProviders: string[];
720
- }
721
- interface DeletionRequestResponse {
722
- status: string;
723
- deletionScheduledFor: string;
724
- message: string;
725
- }
726
- interface DeletionCancelResponse {
727
- status: string;
728
- message: string;
729
- }
730
-
731
- declare const MilestoneGoalFormDataSchema: z.ZodObject<{
732
- id: z.ZodOptional<z.ZodNumber>;
733
- name: z.ZodString;
734
- description: z.ZodOptional<z.ZodString>;
735
- memberFilterId: z.ZodNumber;
736
- value: z.ZodOptional<z.ZodNumber>;
737
- }, z.core.$strip>;
738
- declare const MilestoneFormDataSchema: z.ZodObject<{
739
- name: z.ZodString;
740
- description: z.ZodOptional<z.ZodString>;
741
- targetDate: z.ZodString;
742
- goals: z.ZodArray<z.ZodObject<{
743
- id: z.ZodOptional<z.ZodNumber>;
744
- name: z.ZodString;
745
- description: z.ZodOptional<z.ZodString>;
746
- memberFilterId: z.ZodNumber;
747
- value: z.ZodOptional<z.ZodNumber>;
748
- }, z.core.$strip>>;
749
- }, z.core.$strip>;
750
- declare const ListMilestonesSchema: z.ZodObject<{
751
- wid: z.ZodString;
752
- page: z.ZodOptional<z.ZodNumber>;
753
- pageSize: z.ZodOptional<z.ZodNumber>;
754
- sortBy: z.ZodOptional<z.ZodString>;
755
- sortOrder: z.ZodOptional<z.ZodEnum<{
756
- asc: "asc";
757
- desc: "desc";
758
- }>>;
759
- }, z.core.$strip>;
760
- declare const GetMilestoneSchema: z.ZodObject<{
761
- wid: z.ZodString;
762
- milestoneId: z.ZodNumber;
763
- }, z.core.$strip>;
764
- declare const CreateMilestoneSchema: z.ZodObject<{
765
- wid: z.ZodString;
766
- name: z.ZodString;
767
- description: z.ZodOptional<z.ZodString>;
768
- targetDate: z.ZodString;
769
- goals: z.ZodArray<z.ZodObject<{
770
- id: z.ZodOptional<z.ZodNumber>;
771
- name: z.ZodString;
772
- description: z.ZodOptional<z.ZodString>;
773
- memberFilterId: z.ZodNumber;
774
- value: z.ZodOptional<z.ZodNumber>;
775
- }, z.core.$strip>>;
776
- }, z.core.$strip>;
777
- declare const UpdateMilestoneSchema: z.ZodObject<{
778
- wid: z.ZodString;
779
- milestoneId: z.ZodNumber;
780
- name: z.ZodOptional<z.ZodString>;
781
- description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
782
- targetDate: z.ZodOptional<z.ZodString>;
783
- goals: z.ZodOptional<z.ZodArray<z.ZodObject<{
784
- id: z.ZodOptional<z.ZodNumber>;
785
- name: z.ZodString;
786
- description: z.ZodOptional<z.ZodString>;
787
- memberFilterId: z.ZodNumber;
788
- value: z.ZodOptional<z.ZodNumber>;
789
- }, z.core.$strip>>>;
790
- }, z.core.$strip>;
791
- declare const DeleteMilestoneSchema: z.ZodObject<{
792
- wid: z.ZodString;
793
- milestoneId: z.ZodNumber;
794
- }, z.core.$strip>;
795
- type MilestoneFormData = z.infer<typeof MilestoneFormDataSchema>;
796
- type ListMilestonesInput = z.infer<typeof ListMilestonesSchema>;
797
- type GetMilestoneInput = z.infer<typeof GetMilestoneSchema>;
798
- type CreateMilestoneInput = z.infer<typeof CreateMilestoneSchema>;
799
- type UpdateMilestoneInput = z.infer<typeof UpdateMilestoneSchema>;
800
- type DeleteMilestoneInput = z.infer<typeof DeleteMilestoneSchema>;
801
-
802
- /**
803
- * Member lifecycle states with increasing levels of permanence.
804
- * Matches the Python MemberType enum in lib/constants.py
805
- */
806
- declare enum MemberType {
807
- /** Temporary, unverified caller (e.g., unknown phone number). Does not require an account. */
808
- ANONYMOUS = "anonymous",
809
- /** Sandbox account for testing. Does not require an account. Excluded from billing/analytics. */
810
- TEST = "test",
811
- /** Real, verified user. Requires an account. Counted in billing and analytics. */
812
- MEMBER = "member",
813
- /** AI agent that can communicate via DMs, email, SMS, voice. Has an AgentConfig. */
814
- AGENT = "agent"
815
- }
816
-
817
- type MemoryType = 'basic' | 'preferences' | 'semantic' | 'summaries' | 'episodic';
818
- interface MemoryItem {
819
- id?: number;
820
- uuid?: string;
821
- key: string;
822
- type: MemoryType;
823
- description: string;
824
- content: string | null;
825
- priority: number;
826
- createdAt: string | null;
827
- updatedAt: string | null;
828
- }
829
- interface MemberMemoriesResponse {
830
- items: MemoryItem[];
831
- total: number;
832
- }
833
- /** Configuration for AgentCore long-term memory on Agent members. */
834
- interface AgentMemoryConfig {
835
- /** Whether memory is enabled (default: false) */
836
- enabled?: boolean;
837
- /** Retrieve relevant memories and inject into prompt (default: true) */
838
- read?: boolean;
839
- /** Store conversational events for memory extraction (default: true) */
840
- write?: boolean;
841
- /** Search user preference memories (default: true) */
842
- preferences?: boolean;
843
- /** Search semantic fact memories (default: true) */
844
- semantic?: boolean;
845
- /** Search conversation summary memories (default: true) */
846
- summaries?: boolean;
847
- /** Search episodic memories — interaction sequences, troubleshooting flows (default: false) */
848
- episodic?: boolean;
849
- }
850
- /**
851
- * Agent-specific configuration for members with member_type='agent'.
852
- * Stores AI model configuration and behavior settings.
853
- */
854
- interface AgentConfig {
855
- id: number;
856
- memberId: number;
857
- chatModelId: string;
858
- chatModelConfig?: Record<string, unknown>;
859
- realtimeModelId?: string;
860
- realtimeModelConfig?: Record<string, unknown>;
861
- systemPrompt: string;
862
- maxDailyActions?: number;
863
- tools?: string[];
864
- codeInterpreterEnabled?: boolean;
865
- memoryConfig?: AgentMemoryConfig;
866
- createdAt: string;
867
- updatedAt: string;
868
- }
869
- interface AgentConfigFormData {
870
- chatModelId: string;
871
- chatModelConfig?: Record<string, unknown>;
872
- realtimeModelId?: string;
873
- realtimeModelConfig?: Record<string, unknown>;
874
- systemPrompt: string;
875
- maxDailyActions?: number;
876
- tools?: string[];
877
- codeInterpreterEnabled?: boolean;
878
- memoryConfig?: AgentMemoryConfig;
879
- }
880
- interface MemberLabel {
881
- id: number;
882
- uuid: string;
883
- name: string;
884
- slug: string;
885
- color: string;
886
- description?: string;
887
- }
888
- interface MemberLabelFormData {
889
- name: string;
890
- slug?: string;
891
- description?: string;
892
- color: string;
893
- }
894
- type MemberFilterObjectType = 'label' | 'dataType' | 'member' | 'memberRole' | 'name' | 'email' | 'phone' | 'phoneType' | 'age' | 'dateOfBirth' | 'workflow' | 'tosAccepted' | 'notifySms' | 'notifyEmail' | 'notifyVoice' | 'calendarEvent' | 'chatEngagement' | 'lastMessageActivity' | 'memberCreated' | 'isDefault' | 'memberType' | 'memberField' | 'journey';
895
- 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';
896
- interface MemberFilterRule {
897
- id: number;
898
- uuid: string;
899
- objectType: MemberFilterObjectType;
900
- filterType: MemberFilterFilterType;
901
- objectIds?: number[];
902
- query?: string;
903
- }
904
- interface MemberFilterRuleFormData {
905
- objectType: MemberFilterObjectType;
906
- filterType: MemberFilterFilterType;
907
- objectIds?: number[];
908
- query?: string;
909
- }
910
- interface MemberFilter {
911
- id: number;
912
- name: string;
913
- uuid: string;
914
- description?: string;
915
- pinned?: boolean;
916
- createdAt: string;
917
- updatedAt: string;
918
- rules: MemberFilterRule[];
919
- }
920
- interface MemberFilterFormData {
921
- name: string;
922
- description?: string;
923
- pinned?: boolean;
924
- rules: MemberFilterRuleFormData[];
925
- }
926
- interface MemberRoleTaskAccess {
927
- taskId: number;
928
- accessMode: number;
929
- }
930
- interface MemberRoleSiteAccess {
931
- siteId: number;
932
- accessMode: number;
933
- }
934
- interface MemberRoleDataTypeAccess {
935
- dataTypeId: number;
936
- accessMode: number;
937
- }
938
- interface MemberRoleWorkflowAccess {
939
- workflowId: number;
940
- accessMode: number;
941
- }
942
- interface MemberRoleInboxAccess {
943
- inboxId: number;
944
- accessMode: number;
945
- }
946
- interface MemberRoleFileAccess {
947
- fileId: number;
948
- accessMode: number;
949
- }
950
- interface MemberRoleFolderAccess {
951
- folderId: number;
952
- accessMode: number;
953
- }
954
- interface MemberRoleCalendarAccess {
955
- calendarId: number;
956
- accessMode: number;
957
- }
958
- interface MemberRole {
959
- id: number;
960
- uuid: string;
961
- name: string;
962
- grantedScopes: string[];
963
- taskAccess: MemberRoleTaskAccess[];
964
- siteAccess: MemberRoleSiteAccess[];
965
- dataTypeAccess: MemberRoleDataTypeAccess[];
966
- workflowAccess: MemberRoleWorkflowAccess[];
967
- inboxAccess: MemberRoleInboxAccess[];
968
- fileAccess: MemberRoleFileAccess[];
969
- folderAccess: MemberRoleFolderAccess[];
970
- calendarAccess: MemberRoleCalendarAccess[];
971
- memberCount: number;
972
- createdAt: string;
973
- updatedAt: string;
974
- }
975
- interface MemberRoleFormData {
976
- name?: string;
977
- grantedScopes?: string[];
978
- taskAccess?: MemberRoleTaskAccess[];
979
- siteAccess?: MemberRoleSiteAccess[];
980
- dataTypeAccess?: MemberRoleDataTypeAccess[];
981
- workflowAccess?: MemberRoleWorkflowAccess[];
982
- inboxAccess?: MemberRoleInboxAccess[];
983
- fileAccess?: MemberRoleFileAccess[];
984
- folderAccess?: MemberRoleFolderAccess[];
985
- calendarAccess?: MemberRoleCalendarAccess[];
986
- }
987
- interface Member {
988
- id: number;
989
- uuid: string;
990
- accountUuid?: string | null;
991
- memberRoleId: number;
992
- homeFolderId?: number | null;
993
- name?: string;
994
- description?: string;
995
- phone?: string;
996
- phoneType?: string;
997
- email?: string;
998
- externalId?: string;
999
- dateOfBirth?: string | null;
1000
- tosAccepted?: boolean;
1001
- accountTosAccepted?: boolean;
1002
- memberRoleName?: string;
1003
- notifySms?: boolean;
1004
- notifyEmail?: boolean;
1005
- notifyVoice?: boolean;
1006
- notifyWhatsapp?: boolean;
1007
- accountEnabled?: boolean;
1008
- isOrgOwner?: boolean;
1009
- isSuperuser?: boolean;
1010
- orgRole?: 'owner' | 'admin' | 'member' | null;
1011
- memberType?: MemberType;
1012
- isArchived?: boolean;
1013
- agentConfig?: AgentConfig | null;
1014
- ownerId?: number | null;
1015
- ownerName?: string | null;
1016
- canLogin?: boolean;
1017
- locale: string | null;
1018
- timezone?: string;
1019
- createdAt?: string;
1020
- updatedAt?: string;
1021
- labels?: MemberLabel[];
1022
- }
1023
- /**
1024
- * Response for the current user's member profile (/me endpoint).
1025
- * Extends Member with scopes and org role - the effective permissions the API honors.
1026
- */
1027
- interface CurrentMember extends Member {
1028
- scopes: string[];
1029
- orgRole: 'owner' | 'admin' | 'member' | null;
1030
- }
1031
- interface MemberFormData {
1032
- tosAccepted?: boolean;
1033
- memberRoleId?: number;
1034
- notifySms?: boolean;
1035
- notifyEmail?: boolean;
1036
- notifyVoice?: boolean;
1037
- notifyWhatsapp?: boolean;
1038
- name?: string;
1039
- description?: string;
1040
- phone?: string;
1041
- email?: string;
1042
- externalId?: string;
1043
- dateOfBirth?: string | null;
1044
- }
1045
- interface CreateWorkspaceMemberRequest {
1046
- email?: string;
1047
- phone?: string;
1048
- accountUuid?: string;
1049
- name?: string;
1050
- description?: string;
1051
- externalId?: string;
1052
- dateOfBirth?: string;
1053
- memberRoleId: number;
1054
- notifySms?: boolean;
1055
- notifyEmail?: boolean;
1056
- notifyVoice?: boolean;
1057
- notifyWhatsapp?: boolean;
1058
- locale?: string;
1059
- timezone?: string;
1060
- labelIds?: number[];
1061
- tosAccepted?: boolean;
1062
- accountEnabled?: boolean;
1063
- isOrgOwner?: boolean;
1064
- accountTosAccepted?: boolean;
1065
- memberType?: MemberType;
1066
- ownerId?: number;
1067
- }
1068
- interface UpdateWorkspaceMemberRequest {
1069
- name?: string | null;
1070
- description?: string | null;
1071
- phone?: string | null;
1072
- email?: string | null;
1073
- externalId?: string | null;
1074
- dateOfBirth?: string | null;
1075
- memberRoleId?: number;
1076
- labelIds?: number[];
1077
- notifySms?: boolean;
1078
- notifyEmail?: boolean;
1079
- notifyVoice?: boolean;
1080
- notifyWhatsapp?: boolean;
1081
- locale?: string | null;
1082
- timezone?: string | null;
1083
- tosAccepted?: boolean;
1084
- accountEnabled?: boolean;
1085
- isOrgOwner?: boolean;
1086
- isSuperuser?: boolean;
1087
- accountTosAccepted?: boolean;
1088
- memberType?: MemberType;
1089
- }
1090
- interface MergeMembersRequest {
1091
- targetMemberId: number;
1092
- sourceMemberIds: number[];
1093
- }
1094
- interface MergeMembersResponse {
1095
- member: Member;
1096
- mergedCount: number;
1097
- dataRecordsTransferred: number;
1098
- }
1099
- interface NormalizeMemberRequest {
1100
- memberId: number;
1101
- }
1102
- interface NormalizeMemberResponse {
1103
- member: Member;
1104
- changes: Record<string, {
1105
- old: string;
1106
- new: string;
1107
- }>;
1108
- }
1109
- interface MemberReportItem {
1110
- id: number;
1111
- account_uuid: string;
1112
- email?: string | null;
1113
- phone?: string | null;
1114
- name?: string | null;
1115
- external_id?: string | null;
1116
- created_at: string;
1117
- updated_at: string;
1118
- member_role_id: number;
1119
- member_role_name: string;
1120
- }
1121
- interface SignupMemberResponse {
1122
- id: number;
1123
- name?: string;
1124
- description?: string;
1125
- phone?: string;
1126
- email?: string;
1127
- labels: string[];
1128
- externalId?: string;
1129
- memberRoleId: number;
1130
- createdAt: string;
1131
- tosAccepted: boolean;
1132
- }
1133
- interface SignupAccountResponse {
1134
- id: number;
1135
- uuid: string;
1136
- email?: string;
1137
- phone?: string;
1138
- name?: string;
1139
- createdAt: Date;
1140
- }
1141
- /**
1142
- * Soft-warning entry returned by signup when the caller sent a
1143
- * DataRecord field slug that is not declared on the target DataType.
1144
- *
1145
- * The server silently skips unknown slugs for backward compatibility,
1146
- * so this is the caller's only signal that a field did not land.
1147
- *
1148
- * PHI-safety: only contains DataType/field slugs and a human-readable
1149
- * message built from those slugs. Never contains submitted field
1150
- * values, external IDs, or member contact details.
1151
- */
1152
- interface DataRecordFieldWarning {
1153
- code: 'unknown_data_record_field';
1154
- dataTypeSlug: string;
1155
- fieldSlug: string;
1156
- message: string;
1157
- }
1158
- interface CreateSignupResponse {
1159
- token: string;
1160
- account: SignupAccountResponse;
1161
- member: SignupMemberResponse;
1162
- wasCreated: boolean;
1163
- /**
1164
- * Soft warnings for unknown DataRecord field slugs. Empty list when
1165
- * every submitted slug matched a declared DataType field.
1166
- */
1167
- warnings: DataRecordFieldWarning[];
1168
- }
1169
- interface MembersQueryParams {
1170
- page?: number;
1171
- pageSize?: number;
1172
- sortBy?: MemberSortField;
1173
- sortOrder?: SortOrder;
1174
- search?: string;
1175
- labelIds?: number[];
1176
- memberRoleId?: number;
1177
- memberType?: string;
1178
- hasAccount?: boolean;
1179
- }
1180
- interface MemberMessageActivity {
1181
- [memberId: number]: number[];
1182
- }
1183
-
1184
- type AnonymousMemberResolutionStatus = 'pending' | 'resolved' | 'expired';
1185
- /** Summary of the anonymous member's interaction (usually a single call). */
1186
- interface AnonymousInteraction {
1187
- chatId?: number;
1188
- chatTitle?: string;
1189
- chatSummary?: string;
1190
- callId?: number;
1191
- callStatus?: string;
1192
- callCreatedAt?: string;
1193
- callDurationSeconds?: number;
1194
- }
1195
- interface AnonymousMemberResolution {
1196
- id: number;
1197
- anonymousMemberId?: number;
1198
- anonymousMemberName?: string;
1199
- identifierType: string;
1200
- identifierValue: string;
1201
- status: AnonymousMemberResolutionStatus;
1202
- resolvedToMemberId?: number;
1203
- resolvedToMemberName?: string;
1204
- resolvedByMemberId?: number;
1205
- resolvedByMemberName?: string;
1206
- resolutionNotes?: string;
1207
- createdAt: string;
1208
- resolvedAt?: string;
1209
- /** The call/chat that created this anonymous member */
1210
- interaction?: AnonymousInteraction;
1211
- }
1212
- interface ResolveAnonymousMemberRequest {
1213
- targetMemberId: number;
1214
- notes?: string;
1215
- }
1216
- interface ExpireAnonymousMemberRequest {
1217
- notes?: string;
1218
- }
1219
- interface CreateAnonymousMemberRequest {
1220
- identifierType: string;
1221
- identifierValue: string;
1222
- name?: string;
1223
- memberRoleId?: number;
1224
- }
1225
- interface PendingAnonymousMembersResponse {
1226
- items: AnonymousMemberResolution[];
1227
- total: number;
1228
- }
1229
- /**
1230
- * Agent response model - represents a Member with member_type='agent' and its AgentConfig.
1231
- * Agents are AI personas that can communicate via DMs, email, SMS, and voice.
1232
- */
1233
- interface Agent {
1234
- id: number;
1235
- uuid: string;
1236
- name?: string;
1237
- description?: string;
1238
- email?: string;
1239
- phone?: string;
1240
- externalId?: string;
1241
- memberRoleId: number;
1242
- memberRoleName: string;
1243
- memberType: MemberType.AGENT;
1244
- isArchived: boolean;
1245
- ownerId?: number | null;
1246
- ownerName?: string | null;
1247
- createdAt: string;
1248
- updatedAt: string;
1249
- labels: MemberLabel[];
1250
- config: AgentConfig;
1251
- }
1252
- interface CreateAgentRequest {
1253
- name: string;
1254
- description?: string;
1255
- email?: string;
1256
- phone?: string;
1257
- externalId?: string;
1258
- memberRoleId: number;
1259
- labelIds?: number[];
1260
- ownerId?: number;
1261
- chatModelId: string;
1262
- chatModelConfig?: Record<string, unknown>;
1263
- realtimeModelId?: string;
1264
- realtimeModelConfig?: Record<string, unknown>;
1265
- systemPrompt: string;
1266
- maxDailyActions?: number;
1267
- tools?: string[];
1268
- codeInterpreterEnabled?: boolean;
1269
- memoryConfig?: AgentMemoryConfig;
1270
- }
1271
- interface UpdateAgentRequest {
1272
- name?: string;
1273
- description?: string;
1274
- email?: string;
1275
- phone?: string;
1276
- externalId?: string;
1277
- memberRoleId?: number;
1278
- labelIds?: number[];
1279
- archived?: boolean;
1280
- chatModelId?: string;
1281
- chatModelConfig?: Record<string, unknown>;
1282
- realtimeModelId?: string;
1283
- realtimeModelConfig?: Record<string, unknown>;
1284
- systemPrompt?: string;
1285
- maxDailyActions?: number;
1286
- tools?: string[];
1287
- codeInterpreterEnabled?: boolean;
1288
- memoryConfig?: AgentMemoryConfig;
1289
- }
1290
- interface BulkMemberItem {
1291
- email?: string;
1292
- phone?: string;
1293
- name?: string;
1294
- description?: string;
1295
- externalId?: string;
1296
- memberRoleId?: number;
1297
- labels?: string[];
1298
- notifySms?: boolean;
1299
- notifyEmail?: boolean;
1300
- notifyVoice?: boolean;
1301
- notifyWhatsapp?: boolean;
1302
- locale?: string;
1303
- timezone?: string;
1304
- }
1305
- interface BulkMemberResult {
1306
- index: number;
1307
- status: 'created' | 'updated' | 'failed';
1308
- memberId?: number;
1309
- externalId?: string;
1310
- error?: string;
1311
- }
1312
- interface BulkCreateMembersRequest {
1313
- members: BulkMemberItem[];
1314
- upsert?: boolean;
1315
- }
1316
- interface BulkCreateMembersResponse {
1317
- importedCount: number;
1318
- totalCount: number;
1319
- success: boolean;
1320
- results: BulkMemberResult[];
1321
- errors?: string[];
1322
- }
1323
-
1324
- declare enum DataFieldType {
1325
- ENUM = "enum",
1326
- EMAIL = "email",
1327
- PHONE = "phone",
1328
- TEXT = "text",
1329
- LONGTEXT = "longtext",
1330
- NUMBER = "number",
1331
- DATE = "date",
1332
- DATETIME = "datetime",
1333
- TIME_OF_DAY = "time_of_day",
1334
- US_ZIP_CODE = "us_zip_code",
1335
- INTEGER = "integer",
1336
- BOOLEAN = "boolean",
1337
- ARRAY = "array",
1338
- OBJECT = "object",
1339
- FUNCTION = "function"
1340
- }
1341
- declare enum IndexStatus {
1342
- NONE = "none",
1343
- PENDING = "pending",
1344
- CREATING = "creating",
1345
- REMOVING = "removing",
1346
- READY = "ready",
1347
- ERROR = "error"
1348
- }
1349
- declare enum DataTypeRecordScope {
1350
- MEMBER = "member",
1351
- WORKSPACE = "workspace"
1352
- }
1353
- declare enum DataSensitivity {
1354
- PUBLIC = "public",
1355
- INTERNAL = "internal",
1356
- CONFIDENTIAL = "confidential",
1357
- RESTRICTED = "restricted",
1358
- SECRET = "secret"
1359
- }
1360
- declare enum DataCategory {
1361
- PERSONAL = "personal",
1362
- IDENTIFIER = "identifier",
1363
- PHI = "phi",
1364
- CREDENTIAL = "credential"
1365
- }
1366
- interface DataField {
1367
- id?: number;
1368
- name: string;
1369
- slug: string;
1370
- description?: string;
1371
- required: boolean;
1372
- fieldType: DataFieldType;
1373
- options?: EnumOption[];
1374
- referencedTypeId?: number;
1375
- shouldIndex?: boolean;
1376
- indexStatus?: IndexStatus;
1377
- adminOnly?: boolean;
1378
- defaultValue?: any;
1379
- order: number;
1380
- createdAt: string;
1381
- updatedAt: string;
1382
- }
1383
- interface DataFieldFormData {
1384
- name: string;
1385
- slug: string;
1386
- description?: string;
1387
- required: boolean;
1388
- fieldType: DataFieldType;
1389
- options?: EnumOption[];
1390
- referencedTypeId?: number;
1391
- shouldIndex?: boolean;
1392
- indexStatus?: IndexStatus;
1393
- adminOnly?: boolean;
1394
- defaultValue?: any;
1395
- }
1396
- /**
1397
- * Label-value pair for enum field options.
1398
- * Allows enum fields to have user-friendly labels while storing clean values
1399
- * (e.g., numbers for scoring calculations in CEL expressions).
1400
- */
1401
- interface EnumOption {
1402
- /** Display label shown to users */
1403
- label: string;
1404
- /** Stored value (can be string or number) */
1405
- value: string | number;
1406
- /**
1407
- * CEL expression that must return true for this option to be visible.
1408
- * Uses record.data.<field_slug> syntax to reference other field values.
1409
- * CONSTRAINT: Can only reference non-FUNCTION fields.
1410
- */
1411
- visibleWhen?: string;
1412
- }
1413
- /**
1414
- * SchemaField is the canonical representation of a data type field.
1415
- * This is the type returned by the API and stored in the database.
1416
- * Display order is determined by array position, not the order field.
1417
- */
1418
- interface SchemaField {
1419
- /** Unique field identifier */
1420
- slug: string;
1421
- /** Display name for the field */
1422
- name: string;
1423
- /** Optional field description */
1424
- description?: string;
1425
- /** Field type (text, email, enum, etc.) */
1426
- fieldType: DataFieldType;
1427
- /** Whether field is required */
1428
- required: boolean;
1429
- /** @deprecated Display order is now determined by array position */
1430
- order?: number;
1431
- /** Options for enum fields as {label, value} objects. */
1432
- options?: EnumOption[];
1433
- /** Referenced DataType ID for reference fields */
1434
- referencedTypeId?: number;
1435
- /** Whether to index this field */
1436
- shouldIndex?: boolean;
1437
- /** Whether only admins can see this field */
1438
- adminOnly?: boolean;
1439
- /** Default value for the field */
1440
- defaultValue?: any;
1441
- /** Disclosure severity for audit and record access policy checks */
1442
- sensitivity?: DataSensitivity;
1443
- /** Regulatory or content categories for audit and policy */
1444
- categories?: DataCategory[];
1445
- /** CEL expression that computes this field's value from other fields */
1446
- celFunction?: string;
1447
- /**
1448
- * CEL expression for cross-field validation.
1449
- * Context: 'value' (current field value), 'record.data.<field_slug>' (other fields).
1450
- * Returns: true if valid, or a string error message if invalid.
1451
- * CONSTRAINT: Can only reference non-FUNCTION fields.
1452
- */
1453
- validateCel?: string;
1454
- }
1455
- interface DataType {
1456
- id: number;
1457
- name: string;
1458
- slug: string;
1459
- uuid: string;
1460
- description?: string;
1461
- prompt?: string;
1462
- isCollection: boolean;
1463
- pinned?: boolean;
1464
- archived: boolean;
1465
- ownerId: number | null;
1466
- recordScope: DataTypeRecordScope;
1467
- sensitivity: DataSensitivity;
1468
- categories: DataCategory[];
1469
- memberRoleAccess?: DataTypeMemberRoleAccessResponse[];
1470
- createdAt: string;
1471
- updatedAt: string;
1472
- /** Typed field definitions */
1473
- fields: SchemaField[];
1474
- }
1475
- interface DataTypeFormData {
1476
- name: string;
1477
- slug: string;
1478
- description?: string;
1479
- prompt?: string;
1480
- isCollection: boolean;
1481
- pinned?: boolean;
1482
- recordScope?: DataTypeRecordScope;
1483
- /** Typed field definitions */
1484
- fields: SchemaField[];
1485
- memberRoleAccess?: DataTypeMemberRoleAccessInput[];
1486
- ownerId?: number | null;
1487
- }
1488
- interface DataRecord {
1489
- id: number;
1490
- dataTypeId: number;
1491
- memberId: number | null;
1492
- fieldValues: Record<string, any>;
1493
- externalId?: string;
1494
- assignmentTaskId?: number;
1495
- createdAt: string;
1496
- updatedAt: string;
1497
- }
1498
- interface DataRecordFormData {
1499
- memberId?: number | null;
1500
- /** Member external ID (alternative to memberId). Cannot be used with memberId. */
1501
- memberExternalId?: string;
1502
- fieldValues: Record<string, any>;
1503
- externalId?: string;
1504
- assignmentTaskId?: number;
1505
- }
1506
- interface DataRecordUpdate {
1507
- id: number;
1508
- dataRecordId: number;
1509
- actorMemberId: number;
1510
- recordMemberId?: number | null;
1511
- fieldName: string;
1512
- oldValue?: string | null;
1513
- newValue?: string | null;
1514
- createdAt: string;
1515
- updatedAt: string;
1516
- assignmentTaskId?: number | null;
1517
- memberName?: string | null;
1518
- }
1519
- interface DataTypeMemberRoleAccessResponse {
1520
- memberRoleId: number;
1521
- memberRoleName: string;
1522
- accessMode: number;
1523
- }
1524
- interface DataTypeMemberRoleAccessInput {
1525
- memberRoleId: number;
1526
- accessMode: number;
1527
- }
1528
- interface DataRecordsPaginatedResponse {
1529
- items: DataRecord[];
1530
- total: number;
1531
- page: number;
1532
- pageSize: number;
1533
- totalPages: number;
1534
- }
1535
- interface DataRecordWithAccessMode extends DataRecord {
1536
- accessMode: number;
1537
- }
1538
- interface DataRecordAssociationFormData {
1539
- id: number;
1540
- accessMode: number;
1541
- }
1542
- interface DataRecordReportItem {
1543
- id: number;
1544
- data_type_id: number;
1545
- data_type_name: string;
1546
- data_type_slug: string;
1547
- values: Record<string, any>;
1548
- created_at: string;
1549
- updated_at: string;
1550
- external_id?: string | null;
1551
- }
1552
- interface DataIntegrityReportItem {
1553
- member: MemberReportItem;
1554
- account: AccountReportItem;
1555
- data_records: DataRecordReportItem[];
1556
- possible_matches: DataIntegrityReportItem[];
1557
- issues: string[];
1558
- normalized_phone?: string | null;
1559
- }
1560
- interface DataTypeExportItem {
1561
- uuid: string;
1562
- templateUuid?: string | null;
1563
- name: string;
1564
- slug: string;
1565
- description?: string | null;
1566
- prompt?: string | null;
1567
- isCollection: boolean;
1568
- recordScope: DataTypeRecordScope;
1569
- fields: SchemaField[];
1570
- }
1571
- interface TaskExportDataTypeRelation {
1572
- taskUuid: string;
1573
- dataTypeUuid: string;
1574
- accessMode: number;
1575
- }
1576
- /**
1577
- * Result for a single record in a bulk import operation.
1578
- */
1579
- interface BulkRecordResult {
1580
- index: number;
1581
- status: 'created' | 'updated' | 'failed';
1582
- recordId?: number | null;
1583
- externalId?: string | null;
1584
- error?: string | null;
1585
- }
1586
- /**
1587
- * Response for bulk create data records operation.
1588
- */
1589
- interface BulkCreateDataRecordResponse {
1590
- importedCount: number;
1591
- totalCount: number;
1592
- success: boolean;
1593
- results: BulkRecordResult[];
1594
- errors?: string[] | null;
1595
- }
1596
- /**
1597
- * Request body for bulk create data records.
1598
- */
1599
- interface BulkCreateDataRecordRequest {
1600
- records: DataRecordFormData[];
1601
- upsert?: boolean;
1602
- }
1603
-
1604
- /**
1605
- * Calendar-related types for the Gravity Rail calendar and appointment booking system.
1606
- */
1607
- declare enum CalendarPermissionType {
1608
- NONE = "NONE",
1609
- FREE_BUSY = "FREE_BUSY",
1610
- READ = "READ",
1611
- WRITE = "WRITE",
1612
- ADMIN = "ADMIN"
1613
- }
1614
- declare enum CalendarSource {
1615
- INTERNAL = "internal",
1616
- GOOGLE = "google",
1617
- OUTLOOK = "outlook"
1618
- }
1619
- interface Calendar {
1620
- id: number;
1621
- uuid: string;
1622
- templateUuid: string | null;
1623
- name: string;
1624
- slug: string;
1625
- description: string | null;
1626
- timezone: string;
1627
- color: string | null;
1628
- isPublic: boolean;
1629
- ownerId: number;
1630
- ownerName: string | null;
1631
- remoteCalendarId?: string | null;
1632
- syncStatus?: string | null;
1633
- syncError?: string | null;
1634
- lastSyncedAt?: string | null;
1635
- calendarSource: CalendarSource;
1636
- eventTypeIds: number[];
1637
- schedules: CalendarSchedule[];
1638
- createdAt: string;
1639
- updatedAt: string;
1640
- }
1641
- interface CalendarFormData {
1642
- name: string;
1643
- slug?: string;
1644
- description?: string | null;
1645
- timezone?: string;
1646
- color?: string | null;
1647
- isPublic?: boolean;
1648
- eventTypeIds?: number[];
1649
- }
1650
- interface CalendarSchedule {
1651
- id: number;
1652
- uuid: string;
1653
- name: string;
1654
- description: string | null;
1655
- availabilityType: CalendarScheduleAvailabilityType;
1656
- recurrenceType: CalendarScheduleRecurrence;
1657
- startTime: string;
1658
- endTime: string;
1659
- recurrenceRule: Record<string, any> | null;
1660
- recurrenceEndDate: string | null;
1661
- daysOfWeek: string[] | null;
1662
- priority: number;
1663
- eventTypeIds: number[];
1664
- createdAt: string;
1665
- updatedAt: string;
1666
- }
1667
- interface CalendarScheduleFormData {
1668
- name: string;
1669
- description?: string | null;
1670
- availabilityType: CalendarScheduleAvailabilityType;
1671
- recurrenceType: CalendarScheduleRecurrence;
1672
- startTime: string;
1673
- endTime: string;
1674
- recurrenceRule?: Record<string, any> | null;
1675
- recurrenceEndDate?: string | null;
1676
- daysOfWeek?: string[] | null;
1677
- priority?: number;
1678
- eventTypeIds?: number[] | null;
1679
- }
1680
- declare enum CalendarScheduleRecurrence {
1681
- ONCE = "ONCE",
1682
- DAILY = "DAILY",
1683
- WEEKLY = "WEEKLY",
1684
- MONTHLY = "MONTHLY",
1685
- CUSTOM = "CUSTOM"
1686
- }
1687
- declare enum CalendarScheduleAvailabilityType {
1688
- AVAILABLE = "AVAILABLE",
1689
- UNAVAILABLE = "UNAVAILABLE"
1690
- }
1691
- interface CalendarEventType {
1692
- id: number;
1693
- uuid: string;
1694
- templateUuid: string | null;
1695
- name: string;
1696
- slug: string;
1697
- description: string | null;
1698
- defaultDurationMinutes: number;
1699
- bufferBeforeMinutes: number;
1700
- bufferAfterMinutes: number;
1701
- minAttendees: number;
1702
- maxAttendees: number | null;
1703
- color: string | null;
1704
- active: boolean;
1705
- createdAt: string;
1706
- updatedAt: string;
1707
- }
1708
- interface CalendarEventTypeFormData {
1709
- name: string;
1710
- slug?: string;
1711
- description?: string | null;
1712
- defaultDurationMinutes: number;
1713
- bufferBeforeMinutes?: number;
1714
- bufferAfterMinutes?: number;
1715
- minAttendees?: number;
1716
- maxAttendees?: number | null;
1717
- color?: string | null;
1718
- active?: boolean;
1719
- }
1720
- interface CalendarEvent {
1721
- id: number;
1722
- uuid: string;
1723
- calendarId: number;
1724
- calendarName: string;
1725
- eventTypeId: number;
1726
- eventTypeName: string;
1727
- eventTypeColor: string | null;
1728
- title: string;
1729
- description: string | null;
1730
- location: string | null;
1731
- startTime: string;
1732
- endTime: string;
1733
- status: CalendarEventStatus;
1734
- creatorMemberId: number | null;
1735
- workflowId: number | null;
1736
- taskId: number | null;
1737
- assignmentId: number | null;
1738
- chatId: number | null;
1739
- messageId: number | null;
1740
- cancelledAt: string | null;
1741
- cancelledByMemberId: number | null;
1742
- cancellationReason: string | null;
1743
- recurrenceRule: string | null;
1744
- recurringEventId: string | null;
1745
- isRecurringInstance: boolean;
1746
- originalStartTime: string | null;
1747
- remoteEventId: string | null;
1748
- attendees: CalendarEventAttendee[];
1749
- createdAt: string;
1750
- updatedAt: string;
1751
- }
1752
- interface CalendarEventFormData {
1753
- calendarId: number;
1754
- eventTypeId: number;
1755
- title: string;
1756
- description?: string | null;
1757
- location?: string | null;
1758
- startTime: string;
1759
- attendeeIds: number[];
1760
- workflowId?: number | null;
1761
- taskId?: number | null;
1762
- assignmentId?: number | null;
1763
- }
1764
- declare enum CalendarEventStatus {
1765
- TENTATIVE = "TENTATIVE",
1766
- CONFIRMED = "CONFIRMED",
1767
- CANCELLED = "CANCELLED",
1768
- NO_SHOW = "NO_SHOW",
1769
- COMPLETED = "COMPLETED"
1770
- }
1771
- interface CalendarEventAttendee {
1772
- id: number;
1773
- memberId: number;
1774
- status: AttendeeStatus;
1775
- responseStatus: AttendeeResponseStatus;
1776
- responseAt: string | null;
1777
- note: string | null;
1778
- }
1779
- declare enum AttendeeStatus {
1780
- REQUIRED = "REQUIRED",
1781
- OPTIONAL = "OPTIONAL"
1782
- }
1783
- declare enum AttendeeResponseStatus {
1784
- PENDING = "PENDING",
1785
- ACCEPTED = "ACCEPTED",
1786
- DECLINED = "DECLINED",
1787
- TENTATIVE = "TENTATIVE"
1788
- }
1789
- interface ICalFeedTokenResponse {
1790
- feedUrl: string;
1791
- tokenGeneratedAt: string;
1792
- calendarId: number;
1793
- calendarUuid: string;
1794
- }
1795
- interface ICalFeedUrlResponse {
1796
- feedUrl: string | null;
1797
- hasToken: boolean;
1798
- tokenGeneratedAt: string | null;
1799
- }
1800
- interface UpdateAttendeeRequest {
1801
- responseStatus: AttendeeResponseStatus;
1802
- note?: string | null;
1803
- }
1804
- interface AvailabilityCheck {
1805
- eventTypeId: number;
1806
- startTime: string;
1807
- endTime?: string | null;
1808
- }
1809
- interface AvailabilityResponse {
1810
- available: boolean;
1811
- reason?: string | null;
1812
- }
1813
- interface AvailableSlotsRequest {
1814
- eventTypeId: number;
1815
- startDate: string;
1816
- endDate: string;
1817
- slotIntervalMinutes?: number;
1818
- }
1819
- interface AvailableSlotsResponse {
1820
- slots: string[];
1821
- eventTypeId: number;
1822
- calendarId: number;
1823
- }
1824
- interface CalendarEventsQueryParams {
1825
- calendarId?: number;
1826
- startDate?: string;
1827
- endDate?: string;
1828
- status?: CalendarEventStatus;
1829
- memberId?: number;
1830
- limit?: number;
1831
- offset?: number;
1832
- }
1833
- interface GoogleCalendarInfo {
1834
- id: string;
1835
- summary: string;
1836
- description?: string;
1837
- timeZone: string;
1838
- backgroundColor?: string;
1839
- accessRole: string;
1840
- primary: boolean;
1841
- }
1842
- interface GoogleCalendarStatusResponse {
1843
- connected: boolean;
1844
- email?: string;
1845
- calendars: GoogleCalendarInfo[];
1846
- insufficientScopes?: boolean;
1847
- }
1848
- interface GoogleCalendarInsufficientScopesResponse {
1849
- connected: boolean;
1850
- insufficientScopes: true;
1851
- email?: string;
1852
- reAuthUrl: string;
1853
- }
1854
- interface LinkCalendarRequest {
1855
- googleCalendarId: string;
1856
- }
1857
- interface LinkCalendarResponse {
1858
- status: string;
1859
- message: string;
1860
- googleCalendarId: string;
1861
- googleCalendarName?: string;
1862
- }
1863
- interface UnlinkCalendarResponse {
1864
- status: string;
1865
- message: string;
1866
- }
1867
- interface SyncCalendarResponse {
1868
- status: string;
1869
- message: string;
1870
- created: number;
1871
- updated: number;
1872
- errors: Array<{
1873
- event_id: string;
1874
- error: string;
1875
- }>;
1876
- }
1877
-
1878
- declare const CreateInquirySchema: z.ZodObject<{
1879
- name: z.ZodOptional<z.ZodString>;
1880
- email: z.ZodOptional<z.ZodString>;
1881
- inquiryType: z.ZodEnum<{
1882
- customer: "customer";
1883
- builder: "builder";
1884
- partner: "partner";
1885
- other: "other";
1886
- demo_request: "demo_request";
1887
- waitlist: "waitlist";
1888
- }>;
1889
- cellNumber: z.ZodOptional<z.ZodString>;
1890
- businessNumber: z.ZodOptional<z.ZodString>;
1891
- businessName: z.ZodOptional<z.ZodString>;
1892
- country: z.ZodOptional<z.ZodString>;
1893
- state: z.ZodOptional<z.ZodString>;
1894
- message: z.ZodOptional<z.ZodString>;
1895
- productId: z.ZodOptional<z.ZodNumber>;
1896
- recaptchaToken: z.ZodOptional<z.ZodString>;
1897
- }, z.core.$strip>;
1898
- declare const ListInquiriesSchema: z.ZodObject<{
1899
- page: z.ZodOptional<z.ZodNumber>;
1900
- pageSize: z.ZodOptional<z.ZodNumber>;
1901
- inquiryType: z.ZodOptional<z.ZodString>;
1902
- }, z.core.$strip>;
1903
- declare const GetInquirySchema: z.ZodObject<{
1904
- inquiryId: z.ZodNumber;
1905
- }, z.core.$strip>;
1906
- declare const EnrichInquirySchema: z.ZodObject<{
1907
- inquiryUuid: z.ZodString;
1908
- name: z.ZodOptional<z.ZodString>;
1909
- email: z.ZodOptional<z.ZodString>;
1910
- cellNumber: z.ZodOptional<z.ZodString>;
1911
- businessName: z.ZodOptional<z.ZodString>;
1912
- message: z.ZodOptional<z.ZodString>;
1913
- }, z.core.$strip>;
1914
- declare const UpdateInquiryRequestSchema: z.ZodObject<{
1915
- notes: z.ZodOptional<z.ZodString>;
1916
- status: z.ZodOptional<z.ZodEnum<{
1917
- in_progress: "in_progress";
1918
- new: "new";
1919
- done: "done";
1920
- }>>;
1921
- }, z.core.$strip>;
1922
- declare const UpdateInquirySchema: z.ZodObject<{
1923
- inquiryId: z.ZodNumber;
1924
- notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1925
- status: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1926
- in_progress: "in_progress";
1927
- new: "new";
1928
- done: "done";
1929
- }>>>;
1930
- }, z.core.$strip>;
1931
- declare const DeleteInquirySchema: z.ZodObject<{
1932
- inquiryId: z.ZodNumber;
1933
- }, z.core.$strip>;
1934
- type ListInquiriesInput = z.infer<typeof ListInquiriesSchema>;
1935
- type GetInquiryInput = z.infer<typeof GetInquirySchema>;
1936
- type CreateInquiryInput = z.infer<typeof CreateInquirySchema>;
1937
- type UpdateInquiryInput = z.infer<typeof UpdateInquirySchema>;
1938
- type EnrichInquiryInput = z.infer<typeof EnrichInquirySchema>;
1939
- type DeleteInquiryInput = z.infer<typeof DeleteInquirySchema>;
1940
-
1941
- export { CalendarPermissionType as $, AccessLevel as A, type ApiKeyScopesResponse as B, type AssignmentSortField as C, AttendeeResponseStatus as D, AttendeeStatus as E, type AvailabilityCheck as F, type AvailabilityResponse as G, type AvailableSlotsRequest as H, type AvailableSlotsResponse as I, type BotSortField as J, type BulkCreateDataRecordRequest as K, type BulkCreateDataRecordResponse as L, type BulkCreateMembersRequest as M, type BulkCreateMembersResponse as N, type BulkMemberItem as O, type BulkMemberResult as P, type BulkRecordResult as Q, type Calendar as R, type CalendarEvent as S, type CalendarEventAttendee as T, type CalendarEventFormData as U, type CalendarEventSortField as V, CalendarEventStatus as W, type CalendarEventType as X, type CalendarEventTypeFormData as Y, type CalendarEventsQueryParams as Z, type CalendarFormData as _, type Account as a, type ICalFeedUrlResponse as a$, type CalendarSchedule as a0, CalendarScheduleAvailabilityType as a1, type CalendarScheduleFormData as a2, CalendarScheduleRecurrence as a3, CalendarSource as a4, type CancelCredentialChangeInviteResponse as a5, type CancelCredentialChangeResponse as a6, type ChatSortField as a7, type ConsentRecordExport as a8, type CreateAccountOrgMembershipRequest as a9, type DataRecordReportItem as aA, type DataRecordUpdate as aB, type DataRecordWithAccessMode as aC, type DataRecordsPaginatedResponse as aD, DataSensitivity as aE, type DataType as aF, type DataTypeExportItem as aG, type DataTypeFormData as aH, type DataTypeMemberRoleAccessInput as aI, type DataTypeMemberRoleAccessResponse as aJ, DataTypeRecordScope as aK, type DataTypeSortField as aL, type DeleteAccountOrgMembershipResponse as aM, type DeletionCancelResponse as aN, type DeletionRequestResponse as aO, type DetailedAccount as aP, type DuplicateAccountInfo as aQ, type EnumOption as aR, type ErrorResponse as aS, type EventRunSortField as aT, type ExpireAnonymousMemberRequest as aU, type FileSortField as aV, type GenerateRecoveryCodesRequest as aW, type GoogleCalendarInfo as aX, type GoogleCalendarInsufficientScopesResponse as aY, type GoogleCalendarStatusResponse as aZ, type ICalFeedTokenResponse as a_, type CreateAccountOrgMembershipResponse as aa, type CreateAgentRequest as ab, type CreateAnonymousMemberRequest as ac, type CreateCredentialChangeInviteRequest as ad, type CreateOrganizationRequest as ae, type CreateSignupResponse as af, type CreateWorkspaceMemberRequest as ag, type CredentialChangeInviteConfirmResponse as ah, type CredentialChangeInviteDetails as ai, type CredentialChangeInviteResponse as aj, type CredentialChangeRequestResponse as ak, type CredentialChangeVerifyResponse as al, type CredentialType as am, type CurrentMember as an, type CurrentOrgMember as ao, type CursorPaginatedResponse as ap, DataCategory 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 DataRecordFieldWarning as ay, type DataRecordFormData as az, type AccountDataExport as b, PERMISSION_VERIFY as b$, IndexStatus as b0, type JourneySortField as b1, type LinkCalendarRequest as b2, type LinkCalendarResponse as b3, type LoginRequest as b4, type LoginResponse as b5, type LogoUploadRequest as b6, type LogoUploadResponse as b7, type McpServerSortField as b8, type Member as b9, type MembersQueryParams as bA, type MemoryItem as bB, type MemoryType as bC, type MergeMembersRequest as bD, type MergeMembersResponse as bE, type MilestoneSortField as bF, type MissingMembershipItem as bG, type NormalizeMemberRequest as bH, type NormalizeMemberResponse as bI, type OIDCAdminConfigInput as bJ, type OIDCAdminConfigView as bK, type ObjectPermission as bL, type ObjectPermissionFlags as bM, type OrgMember as bN, type OrgMemberListResponse as bO, type OrgMemberRole as bP, type OrgMembershipExport as bQ, type Organization as bR, PERMISSION_ADMIN as bS, PERMISSION_CREATE as bT, PERMISSION_DELETE as bU, PERMISSION_EDIT as bV, PERMISSION_GEOLOCATE as bW, PERMISSION_LIST as bX, PERMISSION_LIST_ALL as bY, PERMISSION_NONE as bZ, PERMISSION_USE as b_, type MemberFilter as ba, type MemberFilterFilterType as bb, type MemberFilterFormData as bc, type MemberFilterObjectType as bd, type MemberFilterRule as be, type MemberFilterRuleFormData as bf, type MemberFormData as bg, type MemberLabel as bh, type MemberLabelFormData as bi, type MemberMemoriesResponse as bj, type MemberMessageActivity as bk, type MemberOrgView as bl, type MemberReportItem as bm, type MemberRole as bn, type MemberRoleCalendarAccess as bo, type MemberRoleDataTypeAccess as bp, type MemberRoleFileAccess as bq, type MemberRoleFolderAccess as br, type MemberRoleFormData as bs, type MemberRoleInboxAccess as bt, type MemberRoleSiteAccess as bu, type MemberRoleTaskAccess as bv, type MemberRoleWorkflowAccess as bw, type MemberSortField as bx, MemberType as by, type MemberWorkspaceInfo as bz, type AccountFormData as c, type EnrichInquiryInput as c$, type PageSortField as c0, type PaginatedResponse as c1, type PendingAnonymousMembersResponse as c2, type PendingCredentialChange as c3, type PendingCredentialChangeInvite as c4, type QualificationSortField as c5, type RecoveryCodesResponse as c6, type RequestCredentialChangeRequest as c7, type RequestMagicLinkRequest as c8, type RequestMagicLinkResponse as c9, type UpdateAttendeeRequest as cA, type UpdateOrgMemberRequest as cB, type UpdateOrganizationRequest as cC, type UpdateTwoFactorMethodRequest as cD, type UpdateWorkspaceMemberRequest as cE, type ValidateMagicLinkRequest as cF, type ValidateMagicLinkResponse as cG, type VerifyCodeRequest as cH, type VerifyCodeResponse as cI, type VerifyCredentialChangeRequest as cJ, type VerifyEmailRequest as cK, type VerifyTOTPSetupRequest as cL, type VerifyWebAuthnSetupRequest as cM, type WebhookLogSortField as cN, type WorkflowSortField as cO, type WorkspaceMembershipExport as cP, type WorkspaceSortField as cQ, decodePermissions as cR, encodePermissions as cS, type CreateInquiryInput as cT, CreateInquirySchema as cU, type CreateMilestoneInput as cV, CreateMilestoneSchema as cW, type DeleteInquiryInput as cX, DeleteInquirySchema as cY, type DeleteMilestoneInput as cZ, DeleteMilestoneSchema as c_, type ResolveAnonymousMemberRequest as ca, type RoutineSortField as cb, type RuleExecutionSortField as cc, type SMSLoginResponse as cd, type SSOConfig as ce, type SSOConfigData as cf, type SchemaField as cg, Scope as ch, type SendEmailVerificationRequest as ci, type SessionExchangeRequest as cj, type SessionExchangeResponse as ck, type SetupTOTPRequest as cl, type SetupWebAuthnRequest as cm, type SignupAccountResponse as cn, type SignupMemberResponse as co, type SiteSortField as cp, type SortOrder as cq, type SyncCalendarResponse as cr, type TOTPSetupResponse as cs, type TaskExportDataTypeRelation as ct, type TaskSortField as cu, type TwoFactorMethod as cv, type TwoFactorOperationResponse as cw, type TwoFactorStatus as cx, type UnlinkCalendarResponse as cy, type UpdateAgentRequest as cz, type AccountLookupResponse as d, EnrichInquirySchema as d0, type GetInquiryInput as d1, GetInquirySchema as d2, type GetMilestoneInput as d3, GetMilestoneSchema as d4, type ListInquiriesInput as d5, ListInquiriesSchema as d6, type ListMilestonesInput as d7, ListMilestonesSchema as d8, type MilestoneFormData as d9, MilestoneFormDataSchema as da, MilestoneGoalFormDataSchema as db, type UpdateInquiryInput as dc, UpdateInquiryRequestSchema as dd, UpdateInquirySchema as de, type UpdateMilestoneInput as df, UpdateMilestoneSchema as dg, type AccountReportItem as e, type AccountSortField as f, type AccountState as g, type AdminAccount as h, type AdminAccountFormData as i, type AdminAccountMembership as j, type AdminAccountOrgMembership as k, type AdminOrganization as l, type AdminWorkspaceMemberFormData as m, type AdminWorkspaceSortField as n, type Agent as o, type AgentConfig as p, type AgentConfigFormData as q, type AgentMemoryConfig as r, type AgentSortField as s, type AnonymousInteraction as t, type AnonymousMemberResolution as u, type AnonymousMemberResolutionStatus as v, type ApiKey as w, type ApiKeyCreated as x, type ApiKeyFormData as y, type ApiKeyScope as z };