@elqnt/auth 1.0.8 → 1.0.12

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.
@@ -0,0 +1,825 @@
1
+ type WidgetType = string;
2
+ declare const WidgetTypeCalendar: WidgetType;
3
+ declare const WidgetTypeActivities: WidgetType;
4
+ declare const WidgetTypeEmail: WidgetType;
5
+ declare const WidgetTypeTasks: WidgetType;
6
+ declare const WidgetTypeNotes: WidgetType;
7
+ declare const WidgetTypeFiles: WidgetType;
8
+ declare const WidgetTypeContacts: WidgetType;
9
+ declare const WidgetTypeAccounts: WidgetType;
10
+ declare const WidgetTypeLeads: WidgetType;
11
+ declare const WidgetTypeOpportunities: WidgetType;
12
+ declare const WidgetTypeChart: WidgetType;
13
+ declare const WidgetTypeOrders: WidgetType;
14
+ interface Widget {
15
+ id?: string;
16
+ userId: string;
17
+ title: string;
18
+ subTitle?: string;
19
+ type: WidgetType;
20
+ chartSettings?: ChartSettings;
21
+ slotIndex: number;
22
+ }
23
+ type ChartType = string;
24
+ declare const ChartTypeBar: ChartType;
25
+ declare const ChartTypeLine: ChartType;
26
+ declare const ChartTypePie: ChartType;
27
+ declare const ChartTypeDoughnut: ChartType;
28
+ declare const ChartTypeMetic: ChartType;
29
+ type AggregateType = string;
30
+ declare const AggregateTypeSum: AggregateType;
31
+ declare const AggregateTypeCount: AggregateType;
32
+ declare const AggregateTypeAverage: AggregateType;
33
+ declare const AggregateTypeMin: AggregateType;
34
+ declare const AggregateTypeMax: AggregateType;
35
+ declare const AggregateTypeDistinct: AggregateType;
36
+ interface MetricResult {
37
+ aggregateType: AggregateType;
38
+ value: any;
39
+ compareAggregateType: AggregateType;
40
+ compareValue: any;
41
+ }
42
+ interface DateValue {
43
+ date: string;
44
+ value: number;
45
+ }
46
+ interface ChartSettings {
47
+ chartType: ChartType;
48
+ aggregateType: AggregateType;
49
+ tableName: string;
50
+ groupByFieldName: string;
51
+ valueFieldName: string;
52
+ filterFieldName: string;
53
+ filterFieldValue: string;
54
+ enableCompare: boolean;
55
+ compareTitle: string;
56
+ compareAggregateType: AggregateType;
57
+ compareTableName: string;
58
+ compareValueFieldName: string;
59
+ compareFilterFieldName: string;
60
+ compareFilterFieldValue: string;
61
+ }
62
+
63
+ interface Address {
64
+ line1: string;
65
+ line2: string;
66
+ city: string;
67
+ state: string;
68
+ country: string;
69
+ zip: string;
70
+ }
71
+ interface Org {
72
+ id?: string;
73
+ title: string;
74
+ logoUrl: string;
75
+ mainDomain: string;
76
+ address: Address;
77
+ apps: SystemAppTS[];
78
+ /**
79
+ * Status & Control
80
+ */
81
+ status: OrgStatusTS;
82
+ enabled: boolean;
83
+ /**
84
+ * Classification
85
+ */
86
+ type: OrgTypeTS;
87
+ size?: OrgSizeTS;
88
+ industry?: string;
89
+ tags?: string[];
90
+ /**
91
+ * Subscription (Stripe)
92
+ */
93
+ subscription?: OrgSubscription;
94
+ userCount: number;
95
+ /**
96
+ * Onboarding & Provisioning
97
+ */
98
+ onboarding?: OrgOnboarding;
99
+ provisioning?: OrgProvisioning;
100
+ /**
101
+ * Template & Roles
102
+ */
103
+ template?: OrgTemplate;
104
+ roles: string[];
105
+ /**
106
+ * Flexible metadata
107
+ */
108
+ metadata?: {
109
+ [key: string]: any;
110
+ };
111
+ /**
112
+ * Audit fields
113
+ */
114
+ createdAt?: number;
115
+ updatedAt?: number;
116
+ createdBy?: string;
117
+ updatedBy?: string;
118
+ }
119
+ type OrgStatus = string;
120
+ declare const OrgStatusActive: OrgStatus;
121
+ declare const OrgStatusSuspended: OrgStatus;
122
+ declare const OrgStatuses: {
123
+ readonly active: {
124
+ readonly value: "active";
125
+ readonly label: "Active";
126
+ };
127
+ readonly suspended: {
128
+ readonly value: "suspended";
129
+ readonly label: "Suspended";
130
+ };
131
+ };
132
+ type OrgStatusTS = keyof typeof OrgStatuses;
133
+ type OrgStatusOptionTS = typeof OrgStatuses[OrgStatusTS];
134
+ /**
135
+ * OrgType represents whether the org is self-serve or enterprise
136
+ */
137
+ type OrgType = string;
138
+ declare const OrgTypeSelfServe: OrgType;
139
+ declare const OrgTypeEnterprise: OrgType;
140
+ declare const OrgTypes: {
141
+ readonly "self-serve": {
142
+ readonly value: "self-serve";
143
+ readonly label: "Self-Serve";
144
+ };
145
+ readonly enterprise: {
146
+ readonly value: "enterprise";
147
+ readonly label: "Enterprise";
148
+ };
149
+ };
150
+ type OrgTypeTS = keyof typeof OrgTypes;
151
+ type OrgTypeOptionTS = typeof OrgTypes[OrgTypeTS];
152
+ /**
153
+ * OrgSize represents the size of the organization
154
+ */
155
+ type OrgSize = string;
156
+ declare const OrgSizeSolo: OrgSize;
157
+ declare const OrgSizeSmall: OrgSize;
158
+ declare const OrgSizeMedium: OrgSize;
159
+ declare const OrgSizeLarge: OrgSize;
160
+ declare const OrgSizeEnterprise: OrgSize;
161
+ declare const OrgSizes: {
162
+ readonly solo: {
163
+ readonly value: "solo";
164
+ readonly label: "Just me";
165
+ };
166
+ readonly small: {
167
+ readonly value: "small";
168
+ readonly label: "2-10";
169
+ };
170
+ readonly medium: {
171
+ readonly value: "medium";
172
+ readonly label: "11-50";
173
+ };
174
+ readonly large: {
175
+ readonly value: "large";
176
+ readonly label: "51-200";
177
+ };
178
+ readonly enterprise: {
179
+ readonly value: "enterprise";
180
+ readonly label: "200+";
181
+ };
182
+ };
183
+ type OrgSizeTS = keyof typeof OrgSizes;
184
+ type OrgSizeOptionTS = typeof OrgSizes[OrgSizeTS];
185
+ /**
186
+ * OnboardingStatus represents the status of an onboarding flow
187
+ */
188
+ type OnboardingStatus = string;
189
+ declare const OnboardingStatusPending: OnboardingStatus;
190
+ declare const OnboardingStatusInProgress: OnboardingStatus;
191
+ declare const OnboardingStatusCompleted: OnboardingStatus;
192
+ declare const OnboardingStatusSkipped: OnboardingStatus;
193
+ declare const OnboardingStatusLegacy: OnboardingStatus;
194
+ declare const OnboardingStatuses: {
195
+ readonly pending: {
196
+ readonly value: "pending";
197
+ readonly label: "Pending";
198
+ };
199
+ readonly in_progress: {
200
+ readonly value: "in_progress";
201
+ readonly label: "In Progress";
202
+ };
203
+ readonly completed: {
204
+ readonly value: "completed";
205
+ readonly label: "Completed";
206
+ };
207
+ readonly skipped: {
208
+ readonly value: "skipped";
209
+ readonly label: "Skipped";
210
+ };
211
+ readonly legacy: {
212
+ readonly value: "legacy";
213
+ readonly label: "Legacy";
214
+ };
215
+ };
216
+ type OnboardingStatusTS = keyof typeof OnboardingStatuses;
217
+ type OnboardingStatusOptionTS = typeof OnboardingStatuses[OnboardingStatusTS];
218
+ /**
219
+ * ProvisioningStatus represents the status of resource provisioning
220
+ */
221
+ type ProvisioningStatus = string;
222
+ declare const ProvisioningStatusPending: ProvisioningStatus;
223
+ declare const ProvisioningStatusRunning: ProvisioningStatus;
224
+ declare const ProvisioningStatusCompleted: ProvisioningStatus;
225
+ declare const ProvisioningStatusFailed: ProvisioningStatus;
226
+ declare const ProvisioningStatuses: {
227
+ readonly pending: {
228
+ readonly value: "pending";
229
+ readonly label: "Pending";
230
+ };
231
+ readonly running: {
232
+ readonly value: "running";
233
+ readonly label: "Running";
234
+ };
235
+ readonly completed: {
236
+ readonly value: "completed";
237
+ readonly label: "Completed";
238
+ };
239
+ readonly failed: {
240
+ readonly value: "failed";
241
+ readonly label: "Failed";
242
+ };
243
+ };
244
+ type ProvisioningStatusTS = keyof typeof ProvisioningStatuses;
245
+ type ProvisioningStatusOptionTS = typeof ProvisioningStatuses[ProvisioningStatusTS];
246
+ /**
247
+ * OrgOnboarding tracks the onboarding progress for an organization
248
+ */
249
+ interface OrgOnboarding {
250
+ status: OnboardingStatus;
251
+ currentStep: number;
252
+ completedAt?: number;
253
+ skippedSteps?: number[];
254
+ }
255
+ /**
256
+ * OrgProvisioning tracks the provisioning status of default resources
257
+ */
258
+ interface OrgProvisioning {
259
+ status: ProvisioningStatus;
260
+ defaultAgentId?: string;
261
+ defaultKnowledgeGraphId?: string;
262
+ completedAt?: number;
263
+ error?: string;
264
+ }
265
+ interface OrgSubscription {
266
+ id: string;
267
+ plan: string;
268
+ platform: SubscriptionPlatform;
269
+ status: OrgSubscriptionStatus;
270
+ trialEndsAt?: number;
271
+ currentPeriodEnd?: number;
272
+ seats?: number;
273
+ stripeCustomerId?: string;
274
+ stripeSubscriptionId?: string;
275
+ }
276
+ type OrgSubscriptionStatus = string;
277
+ declare const OrgSubscriptionStatusTrialing: OrgSubscriptionStatus;
278
+ declare const OrgSubscriptionStatusActive: OrgSubscriptionStatus;
279
+ declare const OrgSubscriptionStatusPastDue: OrgSubscriptionStatus;
280
+ declare const OrgSubscriptionStatusCancelled: OrgSubscriptionStatus;
281
+ declare const OrgSubscriptionStatusUnpaid: OrgSubscriptionStatus;
282
+ declare const OrgSubscriptionStatuses: {
283
+ readonly trialing: {
284
+ readonly value: "trialing";
285
+ readonly label: "Trialing";
286
+ };
287
+ readonly active: {
288
+ readonly value: "active";
289
+ readonly label: "Active";
290
+ };
291
+ readonly past_due: {
292
+ readonly value: "past_due";
293
+ readonly label: "Past Due";
294
+ };
295
+ readonly cancelled: {
296
+ readonly value: "cancelled";
297
+ readonly label: "Cancelled";
298
+ };
299
+ readonly unpaid: {
300
+ readonly value: "unpaid";
301
+ readonly label: "Unpaid";
302
+ };
303
+ };
304
+ type OrgSubscriptionStatusTS = keyof typeof OrgSubscriptionStatuses;
305
+ type OrgSubscriptionStatusOptionTS = typeof OrgSubscriptionStatuses[OrgSubscriptionStatusTS];
306
+ interface ResponseMetadata {
307
+ success: boolean;
308
+ timestamp: string;
309
+ message?: string;
310
+ error?: string;
311
+ }
312
+ interface OrgResponse {
313
+ org: Org;
314
+ metadata: ResponseMetadata;
315
+ }
316
+ interface OrgInfoResponse {
317
+ orgInfo: OrgInfo;
318
+ metadata: ResponseMetadata;
319
+ }
320
+ interface OrgRoleResponse {
321
+ role: OrgRole;
322
+ metadata: ResponseMetadata;
323
+ }
324
+ interface ListOrgsResponse {
325
+ orgs: Org[];
326
+ metadata: ResponseMetadata;
327
+ }
328
+ interface ListOrgRolesResponse {
329
+ roles: OrgRole[];
330
+ metadata: ResponseMetadata;
331
+ }
332
+ interface OrgInfo {
333
+ id?: string;
334
+ title: string;
335
+ logoUrl: string;
336
+ mainDomain?: string;
337
+ apps: SystemAppTS[];
338
+ }
339
+ interface AzureSettings {
340
+ appClientId?: string;
341
+ appClientSecret?: string;
342
+ azureTenantId?: string;
343
+ }
344
+ interface OrgTemplate {
345
+ id: string;
346
+ slug: string;
347
+ title: string;
348
+ }
349
+ interface UserOrgAccess {
350
+ orgId?: string;
351
+ orgTitle?: string;
352
+ roles: string[];
353
+ isSingleAccount: boolean;
354
+ entityRecordFilter?: {
355
+ entityName: string;
356
+ recordId: string;
357
+ displayValue?: string;
358
+ };
359
+ }
360
+ /**
361
+ * UserSettings represents user preferences (elastic JSON structure)
362
+ */
363
+ interface UserSettings {
364
+ theme?: string;
365
+ language?: string;
366
+ timezone?: string;
367
+ occupation?: string;
368
+ company?: string;
369
+ }
370
+ declare const ThemeOptions: {
371
+ readonly system: {
372
+ readonly value: "system";
373
+ readonly label: "System";
374
+ };
375
+ readonly light: {
376
+ readonly value: "light";
377
+ readonly label: "Light";
378
+ };
379
+ readonly dark: {
380
+ readonly value: "dark";
381
+ readonly label: "Dark";
382
+ };
383
+ };
384
+ type ThemeOptionTS = keyof typeof ThemeOptions;
385
+ /**
386
+ * NotificationPreferences represents user notification settings
387
+ */
388
+ interface NotificationPreferences {
389
+ pushEnabled: boolean;
390
+ newChatAssignment: boolean;
391
+ newMessages: boolean;
392
+ escalations: boolean;
393
+ urgentOnly: boolean;
394
+ soundEnabled: boolean;
395
+ doNotDisturb: boolean;
396
+ dndStart?: string;
397
+ dndEnd?: string;
398
+ }
399
+ /**
400
+ * UserSource represents how a user was created
401
+ */
402
+ type UserSource = string;
403
+ declare const UserSourceSignup: UserSource;
404
+ declare const UserSourceInvite: UserSource;
405
+ declare const UserSourceSSO: UserSource;
406
+ declare const UserSourceAPI: UserSource;
407
+ declare const UserSources: {
408
+ readonly signup: {
409
+ readonly value: "signup";
410
+ readonly label: "Signup";
411
+ };
412
+ readonly invite: {
413
+ readonly value: "invite";
414
+ readonly label: "Invite";
415
+ };
416
+ readonly sso: {
417
+ readonly value: "sso";
418
+ readonly label: "SSO";
419
+ };
420
+ readonly api: {
421
+ readonly value: "api";
422
+ readonly label: "API";
423
+ };
424
+ };
425
+ type UserSourceTS = keyof typeof UserSources;
426
+ type UserSourceOptionTS = typeof UserSources[UserSourceTS];
427
+ /**
428
+ * InviteStatus represents the status of an invitation
429
+ */
430
+ type InviteStatus = string;
431
+ declare const InviteStatusPending: InviteStatus;
432
+ declare const InviteStatusAccepted: InviteStatus;
433
+ declare const InviteStatusExpired: InviteStatus;
434
+ declare const InviteStatusRevoked: InviteStatus;
435
+ declare const InviteStatuses: {
436
+ readonly pending: {
437
+ readonly value: "pending";
438
+ readonly label: "Pending";
439
+ };
440
+ readonly accepted: {
441
+ readonly value: "accepted";
442
+ readonly label: "Accepted";
443
+ };
444
+ readonly expired: {
445
+ readonly value: "expired";
446
+ readonly label: "Expired";
447
+ };
448
+ readonly revoked: {
449
+ readonly value: "revoked";
450
+ readonly label: "Revoked";
451
+ };
452
+ };
453
+ type InviteStatusTS = keyof typeof InviteStatuses;
454
+ type InviteStatusOptionTS = typeof InviteStatuses[InviteStatusTS];
455
+ /**
456
+ * Invite represents a team/org invitation
457
+ */
458
+ interface Invite {
459
+ id?: string;
460
+ orgId: string;
461
+ email: string;
462
+ role: string;
463
+ invitedBy: string;
464
+ status: InviteStatusTS;
465
+ acceptedBy?: string;
466
+ acceptedAt?: number;
467
+ expiresAt?: number;
468
+ createdAt?: number;
469
+ updatedAt?: number;
470
+ }
471
+ interface InviteResponse {
472
+ invite: Invite;
473
+ metadata: ResponseMetadata;
474
+ }
475
+ interface ListInvitesResponse {
476
+ invites: Invite[];
477
+ metadata: ResponseMetadata;
478
+ }
479
+ /**
480
+ * UserOnboarding tracks the onboarding progress for a user
481
+ */
482
+ interface UserOnboarding {
483
+ status: OnboardingStatus;
484
+ completedAt?: number;
485
+ }
486
+ /**
487
+ * User represents a user in the system
488
+ */
489
+ interface User {
490
+ id?: string;
491
+ email: string;
492
+ firstName: string;
493
+ lastName: string;
494
+ authProviderName: string;
495
+ orgAccess?: UserOrgAccess[];
496
+ /**
497
+ * Status & Control
498
+ */
499
+ enabled?: boolean;
500
+ /**
501
+ * Source tracking
502
+ */
503
+ source?: UserSourceTS;
504
+ invitedBy?: string;
505
+ inviteStatus?: InviteStatusTS;
506
+ /**
507
+ * Team membership - LEGACY, DO NOT USE
508
+ * These fields are deprecated and will be removed.
509
+ * Use Org and OrgAccess patterns instead.
510
+ */
511
+ isTeamAdmin?: boolean;
512
+ teamId?: string;
513
+ teamName?: string;
514
+ /**
515
+ * System admin flag
516
+ */
517
+ isSysAdmin?: boolean;
518
+ /**
519
+ * Preferences
520
+ */
521
+ settings?: UserSettings;
522
+ notificationPreferences?: NotificationPreferences;
523
+ /**
524
+ * Onboarding tracking
525
+ */
526
+ onboarding?: UserOnboarding;
527
+ /**
528
+ * Flexible metadata
529
+ */
530
+ metadata?: {
531
+ [key: string]: any;
532
+ };
533
+ /**
534
+ * Audit fields
535
+ */
536
+ createdAt?: number;
537
+ updatedAt?: number;
538
+ createdBy?: string;
539
+ updatedBy?: string;
540
+ }
541
+ interface UserResponse {
542
+ user: User;
543
+ metadata: ResponseMetadata;
544
+ }
545
+ interface ListUsersResponse {
546
+ users: User[];
547
+ metadata: ResponseMetadata;
548
+ }
549
+ interface Team {
550
+ id?: string;
551
+ name: string;
552
+ isSubscribed: boolean;
553
+ subscribedAt?: number;
554
+ plan: string;
555
+ ownerName?: string;
556
+ ownerEmail?: string;
557
+ subscriptionPlatform?: SubscriptionPlatform;
558
+ subscriptionId?: string;
559
+ onboardingDone?: boolean;
560
+ onboardingData?: string;
561
+ }
562
+ type SubscriptionPlatform = string;
563
+ declare const SubscriptionPlatformStripe: SubscriptionPlatform;
564
+ declare const SubscriptionPlatformCustom: SubscriptionPlatform;
565
+ interface OrgRole {
566
+ id?: string;
567
+ orgId?: string;
568
+ title: string;
569
+ permissions: Permission[];
570
+ isSystem: boolean;
571
+ createdAt?: number;
572
+ updatedAt?: number;
573
+ createdBy?: string;
574
+ updatedBy?: string;
575
+ }
576
+ /**
577
+ * org db - copied from sys db
578
+ */
579
+ interface Permission {
580
+ /**
581
+ * ID *primitive.ObjectID `bson:"_id,omitempty" json:"id"`
582
+ */
583
+ name: string;
584
+ title: string;
585
+ isSystem: boolean;
586
+ }
587
+ type SystemApp = string;
588
+ declare const SystemAppAdmin: SystemApp;
589
+ declare const SystemAppCRM: SystemApp;
590
+ declare const SystemAppHelpdesk: SystemApp;
591
+ declare const SystemAppMarketing: SystemApp;
592
+ declare const SystemAppWorkflow: SystemApp;
593
+ declare const SystemAppAnalytics: SystemApp;
594
+ declare const SystemAppKnowledgeGraph: SystemApp;
595
+ declare const SystemAppDocumentProcessor: SystemApp;
596
+ declare const SystemApps: {
597
+ readonly admin: {
598
+ readonly value: "admin";
599
+ readonly label: "Admin";
600
+ };
601
+ readonly crm: {
602
+ readonly value: "crm";
603
+ readonly label: "CRM";
604
+ };
605
+ readonly helpdesk: {
606
+ readonly value: "helpdesk";
607
+ readonly label: "Helpdesk";
608
+ };
609
+ readonly marketing: {
610
+ readonly value: "marketing";
611
+ readonly label: "Marketing";
612
+ };
613
+ readonly workflow: {
614
+ readonly value: "workflow";
615
+ readonly label: "Workflow";
616
+ };
617
+ readonly analytics: {
618
+ readonly value: "analytics";
619
+ readonly label: "Analytics";
620
+ };
621
+ readonly "knowledge-graph": {
622
+ readonly value: "knowledge-graph";
623
+ readonly label: "Knowledge Graph";
624
+ };
625
+ readonly "document-processor": {
626
+ readonly value: "document-processor";
627
+ readonly label: "Document Processor";
628
+ };
629
+ };
630
+ type SystemAppTS = keyof typeof SystemApps;
631
+ type SystemAppOptionTS = typeof SystemApps[SystemAppTS];
632
+ /**
633
+ * UpdateUserSettingsRequest is the request payload for updating user settings
634
+ */
635
+ interface UpdateUserSettingsRequest {
636
+ id: string;
637
+ settings?: UserSettings;
638
+ notificationPreferences?: NotificationPreferences;
639
+ }
640
+ /**
641
+ * UserSettingsResponse is the response for settings operations
642
+ */
643
+ interface UserSettingsResponse {
644
+ settings?: UserSettings;
645
+ notificationPreferences?: NotificationPreferences;
646
+ metadata: ResponseMetadata;
647
+ }
648
+ /**
649
+ * OnboardingStep represents a step in the onboarding flow
650
+ */
651
+ interface OnboardingStep {
652
+ step: number;
653
+ name: string;
654
+ status: string;
655
+ required: boolean;
656
+ }
657
+ /**
658
+ * OnboardingState represents the current state of a user's onboarding
659
+ */
660
+ interface OnboardingState {
661
+ status: string;
662
+ currentStep: number;
663
+ steps: OnboardingStep[];
664
+ user?: User;
665
+ org?: Org;
666
+ }
667
+ /**
668
+ * OnboardingStateResponse is the response for onboarding status
669
+ */
670
+ interface OnboardingStateResponse {
671
+ state: OnboardingState;
672
+ metadata: ResponseMetadata;
673
+ }
674
+ /**
675
+ * OrgInput contains the input for creating an organization
676
+ */
677
+ interface OrgInput {
678
+ name: string;
679
+ industry?: string;
680
+ size: string;
681
+ stripeSessionId?: string;
682
+ }
683
+ /**
684
+ * OrgResult contains the result of organization creation
685
+ */
686
+ interface OrgResult {
687
+ org?: Org;
688
+ nextStep: string;
689
+ metadata: ResponseMetadata;
690
+ }
691
+ /** @deprecated Use OrgInput instead */
692
+ type WorkspaceInput = OrgInput;
693
+ /** @deprecated Use OrgResult instead */
694
+ type WorkspaceResult = OrgResult;
695
+ /**
696
+ * InviteInput contains the input for sending invites
697
+ */
698
+ interface InviteInput {
699
+ email: string;
700
+ role: string;
701
+ }
702
+ /**
703
+ * InvitesResult contains the result of sending invites
704
+ */
705
+ interface InvitesResult {
706
+ sent: InviteSentStatus[];
707
+ failed: string[];
708
+ nextStep: string;
709
+ metadata: ResponseMetadata;
710
+ }
711
+ /**
712
+ * InviteSentStatus represents status of a sent invite
713
+ */
714
+ interface InviteSentStatus {
715
+ email: string;
716
+ status: string;
717
+ }
718
+ /**
719
+ * KnowledgeInput contains the input for creating knowledge graph
720
+ */
721
+ interface KnowledgeInput {
722
+ name?: string;
723
+ skipUpload: boolean;
724
+ }
725
+ /**
726
+ * KnowledgeGraphInfo contains info about a knowledge graph
727
+ */
728
+ interface KnowledgeGraphInfo {
729
+ id: string;
730
+ name: string;
731
+ status: string;
732
+ documentCount: number;
733
+ }
734
+ /**
735
+ * KnowledgeResult contains the result of knowledge graph creation
736
+ */
737
+ interface KnowledgeResult {
738
+ knowledgeGraph: KnowledgeGraphInfo;
739
+ nextStep: string;
740
+ metadata: ResponseMetadata;
741
+ }
742
+ /**
743
+ * AgentInput contains the input for creating an agent
744
+ */
745
+ interface AgentInput {
746
+ name: string;
747
+ goal: string;
748
+ personality: string;
749
+ }
750
+ /**
751
+ * AgentInfo contains info about an agent
752
+ */
753
+ interface AgentInfo {
754
+ id: string;
755
+ name: string;
756
+ goal: string;
757
+ personality: string;
758
+ status: string;
759
+ knowledgeGraphId?: string;
760
+ }
761
+ /**
762
+ * AgentResult contains the result of agent creation
763
+ */
764
+ interface AgentResult {
765
+ agent: AgentInfo;
766
+ nextStep: string;
767
+ metadata: ResponseMetadata;
768
+ }
769
+ /**
770
+ * OnboardingCompleteResult contains the result of completing onboarding
771
+ */
772
+ interface OnboardingCompleteResult {
773
+ status: string;
774
+ completedAt: number;
775
+ org?: Org;
776
+ redirectUrl: string;
777
+ metadata: ResponseMetadata;
778
+ }
779
+ /**
780
+ * PaymentSessionInput contains input for creating a payment session
781
+ */
782
+ interface PaymentSessionInput {
783
+ plan: string;
784
+ billingCycle: string;
785
+ seats: number;
786
+ successUrl: string;
787
+ cancelUrl: string;
788
+ }
789
+ /**
790
+ * PaymentSessionResult contains the result of creating a payment session
791
+ */
792
+ interface PaymentSessionResult {
793
+ url: string;
794
+ sessionId: string;
795
+ customerId: string;
796
+ metadata: ResponseMetadata;
797
+ }
798
+ declare const AdminOrgCreate = "admin.orgs.create";
799
+ declare const AdminOrgList = "admin.orgs.list";
800
+ declare const AdminOrgListByMetadata = "admin.orgs.listByMetadata";
801
+ declare const AdminOrgGet = "admin.orgs.get";
802
+ declare const AdminOrgGetInfo = "admin.orgs.getInfo";
803
+ declare const AdminOrgGetByDomain = "admin.orgs.getByDomain";
804
+ declare const AdminOrgUpdate = "admin.orgs.update";
805
+ declare const AdminOrgDelete = "admin.orgs.delete";
806
+ declare const AdminOrgCreated = "system.admin.org.created";
807
+ declare const AdminOrgRolesGet = "admin.orgRoles.get";
808
+ declare const AdminOrgRolesCreate = "admin.orgRoles.create";
809
+ declare const AdminOrgRolesUpdate = "admin.orgRoles.update";
810
+ declare const AdminOrgRolesDelete = "admin.orgRoles.delete";
811
+ declare const AdminUsersGet = "admin.users.get";
812
+ declare const AdminUsersGetForOrg = "admin.users.getUsersForOrg";
813
+ declare const AdminUsersGetOne = "admin.users.getOne";
814
+ declare const AdminUsersGetOneByEmail = "admin.users.getOneByEmail";
815
+ declare const AdminUsersCreate = "admin.users.create";
816
+ declare const AdminUsersUpdate = "admin.users.update";
817
+ declare const AdminUsersDelete = "admin.users.delete";
818
+ declare const AdminUsersUpdateSettings = "admin.users.updateSettings";
819
+ declare const AdminUsersGetSettings = "admin.users.getSettings";
820
+ declare const AdminTeamsCreate = "admin.teams.create";
821
+ declare const AdminTeamsGetOne = "admin.teams.getOne";
822
+ declare const AdminTeamsGetForOrg = "admin.teams.getTeamsForOrg";
823
+ declare const AdminTeamsUpdateOnboarding = "admin.teams.updateOnboardingData";
824
+
825
+ export { type Address, AdminOrgCreate, AdminOrgCreated, AdminOrgDelete, AdminOrgGet, AdminOrgGetByDomain, AdminOrgGetInfo, AdminOrgList, AdminOrgListByMetadata, AdminOrgRolesCreate, AdminOrgRolesDelete, AdminOrgRolesGet, AdminOrgRolesUpdate, AdminOrgUpdate, AdminTeamsCreate, AdminTeamsGetForOrg, AdminTeamsGetOne, AdminTeamsUpdateOnboarding, AdminUsersCreate, AdminUsersDelete, AdminUsersGet, AdminUsersGetForOrg, AdminUsersGetOne, AdminUsersGetOneByEmail, AdminUsersGetSettings, AdminUsersUpdate, AdminUsersUpdateSettings, type AgentInfo, type AgentInput, type AgentResult, type AggregateType, AggregateTypeAverage, AggregateTypeCount, AggregateTypeDistinct, AggregateTypeMax, AggregateTypeMin, AggregateTypeSum, type AzureSettings, type ChartSettings, type ChartType, ChartTypeBar, ChartTypeDoughnut, ChartTypeLine, ChartTypeMetic, ChartTypePie, type DateValue, type Invite, type InviteInput, type InviteResponse, type InviteSentStatus, type InviteStatus, InviteStatusAccepted, InviteStatusExpired, type InviteStatusOptionTS, InviteStatusPending, InviteStatusRevoked, type InviteStatusTS, InviteStatuses, type InvitesResult, type KnowledgeGraphInfo, type KnowledgeInput, type KnowledgeResult, type ListInvitesResponse, type ListOrgRolesResponse, type ListOrgsResponse, type ListUsersResponse, type MetricResult, type NotificationPreferences, type OnboardingCompleteResult, type OnboardingState, type OnboardingStateResponse, type OnboardingStatus, OnboardingStatusCompleted, OnboardingStatusInProgress, OnboardingStatusLegacy, type OnboardingStatusOptionTS, OnboardingStatusPending, OnboardingStatusSkipped, type OnboardingStatusTS, OnboardingStatuses, type OnboardingStep, type Org, type OrgInfo, type OrgInfoResponse, type OrgInput, type OrgOnboarding, type OrgProvisioning, type OrgResponse, type OrgResult, type OrgRole, type OrgRoleResponse, type OrgSize, OrgSizeEnterprise, OrgSizeLarge, OrgSizeMedium, type OrgSizeOptionTS, OrgSizeSmall, OrgSizeSolo, type OrgSizeTS, OrgSizes, type OrgStatus, OrgStatusActive, type OrgStatusOptionTS, OrgStatusSuspended, type OrgStatusTS, OrgStatuses, type OrgSubscription, type OrgSubscriptionStatus, OrgSubscriptionStatusActive, OrgSubscriptionStatusCancelled, type OrgSubscriptionStatusOptionTS, OrgSubscriptionStatusPastDue, type OrgSubscriptionStatusTS, OrgSubscriptionStatusTrialing, OrgSubscriptionStatusUnpaid, OrgSubscriptionStatuses, type OrgTemplate, type OrgType, OrgTypeEnterprise, type OrgTypeOptionTS, OrgTypeSelfServe, type OrgTypeTS, OrgTypes, type PaymentSessionInput, type PaymentSessionResult, type Permission, type ProvisioningStatus, ProvisioningStatusCompleted, ProvisioningStatusFailed, type ProvisioningStatusOptionTS, ProvisioningStatusPending, ProvisioningStatusRunning, type ProvisioningStatusTS, ProvisioningStatuses, type ResponseMetadata, type SubscriptionPlatform, SubscriptionPlatformCustom, SubscriptionPlatformStripe, type SystemApp, SystemAppAdmin, SystemAppAnalytics, SystemAppCRM, SystemAppDocumentProcessor, SystemAppHelpdesk, SystemAppKnowledgeGraph, SystemAppMarketing, type SystemAppOptionTS, type SystemAppTS, SystemAppWorkflow, SystemApps, type Team, type ThemeOptionTS, ThemeOptions, type UpdateUserSettingsRequest, type User, type UserOnboarding, type UserOrgAccess, type UserResponse, type UserSettings, type UserSettingsResponse, type UserSource, UserSourceAPI, UserSourceInvite, type UserSourceOptionTS, UserSourceSSO, UserSourceSignup, type UserSourceTS, UserSources, type Widget, type WidgetType, WidgetTypeAccounts, WidgetTypeActivities, WidgetTypeCalendar, WidgetTypeChart, WidgetTypeContacts, WidgetTypeEmail, WidgetTypeFiles, WidgetTypeLeads, WidgetTypeNotes, WidgetTypeOpportunities, WidgetTypeOrders, WidgetTypeTasks, type WorkspaceInput, type WorkspaceResult };