@elqnt/admin 2.2.1 → 2.3.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,1143 +1,8 @@
1
+ import { e as OnboardingState } from '../admin-C1iVQe2d.cjs';
2
+ export { A as Address, f as AdminBillingSuperAgentCheckout, g as AdminOrgCreate, h as AdminOrgCreated, i as AdminOrgDelete, j as AdminOrgGet, k as AdminOrgGetByDomain, l as AdminOrgGetInfo, m as AdminOrgList, n as AdminOrgListByMetadata, o as AdminOrgRolesCreate, p as AdminOrgRolesDelete, q as AdminOrgRolesGet, r as AdminOrgRolesUpdate, s as AdminOrgUpdate, t as AdminTeamsCreate, u as AdminTeamsGetForOrg, v as AdminTeamsGetOne, w as AdminTeamsUpdateOnboarding, x as AdminUsersCreate, y as AdminUsersDelete, z as AdminUsersGet, B as AdminUsersGetForOrg, C as AdminUsersGetOne, D as AdminUsersGetOneByEmail, E as AdminUsersGetOneByPhone, F as AdminUsersGetSettings, G as AdminUsersTouchActivity, H as AdminUsersUpdate, I as AdminUsersUpdateSettings, J as AgentInfo, K as AgentInput, M as AgentResult, N as AzureSettings, P as Country, Q as CreateOrgRequest, R as DefaultTrialDays, S as Invite, T as InviteInput, U as InviteResponse, V as InviteSentStatus, W as InviteStatus, X as InviteStatusAccepted, Y as InviteStatusExpired, Z as InviteStatusOptionTS, _ as InviteStatusPending, $ as InviteStatusRevoked, a0 as InviteStatusTS, a1 as InviteStatuses, a2 as InvitesResult, a3 as KnowledgeGraphInfo, a4 as KnowledgeInput, a5 as KnowledgeResult, a6 as ListInvitesResponse, a7 as ListOrgRolesResponse, L as ListOrgsResponse, a8 as ListUsersResponse, a9 as NotificationPreferences, aa as OnboardingCompleteResult, ab as OnboardingDocumentInput, ac as OnboardingKnowledgeInput, ad as OnboardingOrgInput, ae as OnboardingPlanInput, af as OnboardingProvisionRequest, ag as OnboardingProvisionResponse, ah as OnboardingStateResponse, ai as OnboardingStatus, aj as OnboardingStatusCompleted, ak as OnboardingStatusInProgress, al as OnboardingStatusLegacy, am as OnboardingStatusOptionTS, an as OnboardingStatusPending, ao as OnboardingStatusSkipped, ap as OnboardingStatusTS, aq as OnboardingStatuses, ar as OnboardingStep, b as Org, as as OrgInfo, d as OrgInfoResponse, at as OrgInput, au as OrgOnboarding, c as OrgResponse, av as OrgResult, aw as OrgRole, ax as OrgRoleResponse, ay as OrgSize, az as OrgSizeEnterprise, aA as OrgSizeLarge, aB as OrgSizeMedium, aC as OrgSizeOptionTS, aD as OrgSizeSmall, aE as OrgSizeSolo, aF as OrgSizeTS, aG as OrgSizes, aH as OrgStatus, aI as OrgStatusActive, aJ as OrgStatusOptionTS, aK as OrgStatusSuspended, O as OrgStatusTS, aL as OrgStatuses, aM as OrgSubscription, aN as OrgSubscriptionStatus, aO as OrgSubscriptionStatusActive, aP as OrgSubscriptionStatusCancelled, aQ as OrgSubscriptionStatusOptionTS, aR as OrgSubscriptionStatusPastDue, aS as OrgSubscriptionStatusTS, aT as OrgSubscriptionStatusTrialing, aU as OrgSubscriptionStatusUnpaid, aV as OrgSubscriptionStatuses, aW as OrgTemplate, aX as OrgType, aY as OrgTypeEnterprise, aZ as OrgTypeOptionTS, a_ as OrgTypeSelfServe, a as OrgTypeTS, a$ as OrgTypes, b0 as PaymentSessionInput, b1 as PaymentSessionResult, b2 as Permission, b3 as SubscriptionPlatform, b4 as SubscriptionPlatformCustom, b5 as SubscriptionPlatformStripe, b6 as Team, b7 as ThemeOptionTS, b8 as ThemeOptions, b9 as UpdateUserSettingsRequest, ba as User, bb as UserOnboarding, bc as UserOrgAccess, bd as UserResponse, be as UserSettings, bf as UserSettingsResponse, bg as UserSource, bh as UserSourceAPI, bi as UserSourceInvite, bj as UserSourceOptionTS, bk as UserSourceSSO, bl as UserSourceSignup, bm as UserSourceTS, bn as UserSources, bo as WorkspaceInput, bp as WorkspaceResult } from '../admin-C1iVQe2d.cjs';
1
3
  import { ResponseMetadata } from '@elqnt/types';
2
4
  export { OrgSettings, OrgSettingsRequest, OrgSettingsResponse } from '@elqnt/agents/models';
3
5
 
4
- interface Address {
5
- line1: string;
6
- line2: string;
7
- city: string;
8
- state: string;
9
- country: string;
10
- zip: string;
11
- }
12
- interface Org {
13
- id?: string;
14
- title: string;
15
- logoUrl: string;
16
- mainDomain: string;
17
- address: Address;
18
- apps: SystemAppTS[];
19
- /**
20
- * Status & Control
21
- */
22
- status: OrgStatusTS;
23
- enabled: boolean;
24
- /**
25
- * Classification
26
- */
27
- product?: OrgProductTS;
28
- type: OrgTypeTS;
29
- size?: OrgSizeTS;
30
- industry?: string;
31
- tags?: string[];
32
- /**
33
- * Subscription (Stripe)
34
- */
35
- subscription?: OrgSubscription;
36
- userCount: number;
37
- /**
38
- * Onboarding & Provisioning
39
- */
40
- onboarding?: OrgOnboarding;
41
- provisioning?: OrgProvisioning;
42
- /**
43
- * Template & Roles
44
- */
45
- template?: OrgTemplate;
46
- roles: string[];
47
- /**
48
- * Flexible metadata
49
- */
50
- metadata?: {
51
- [key: string]: any;
52
- };
53
- /**
54
- * Audit fields
55
- */
56
- createdAt?: number;
57
- updatedAt?: number;
58
- createdBy?: string;
59
- updatedBy?: string;
60
- }
61
- type OrgStatus = string;
62
- declare const OrgStatusActive: OrgStatus;
63
- declare const OrgStatusSuspended: OrgStatus;
64
- declare const OrgStatuses: {
65
- readonly active: {
66
- readonly value: "active";
67
- readonly label: "Active";
68
- };
69
- readonly suspended: {
70
- readonly value: "suspended";
71
- readonly label: "Suspended";
72
- };
73
- };
74
- type OrgStatusTS = keyof typeof OrgStatuses;
75
- type OrgStatusOptionTS = typeof OrgStatuses[OrgStatusTS];
76
- /**
77
- * OrgType represents whether the org is self-serve or enterprise
78
- */
79
- type OrgType = string;
80
- declare const OrgTypeSelfServe: OrgType;
81
- declare const OrgTypeEnterprise: OrgType;
82
- declare const OrgTypes: {
83
- readonly "self-serve": {
84
- readonly value: "self-serve";
85
- readonly label: "Self-Serve";
86
- };
87
- readonly enterprise: {
88
- readonly value: "enterprise";
89
- readonly label: "Enterprise";
90
- };
91
- };
92
- type OrgTypeTS = keyof typeof OrgTypes;
93
- type OrgTypeOptionTS = typeof OrgTypes[OrgTypeTS];
94
- /**
95
- * OrgSize represents the size of the organization
96
- */
97
- type OrgSize = string;
98
- declare const OrgSizeSolo: OrgSize;
99
- declare const OrgSizeSmall: OrgSize;
100
- declare const OrgSizeMedium: OrgSize;
101
- declare const OrgSizeLarge: OrgSize;
102
- declare const OrgSizeEnterprise: OrgSize;
103
- declare const OrgSizes: {
104
- readonly solo: {
105
- readonly value: "solo";
106
- readonly label: "Just me";
107
- };
108
- readonly small: {
109
- readonly value: "small";
110
- readonly label: "2-10";
111
- };
112
- readonly medium: {
113
- readonly value: "medium";
114
- readonly label: "11-50";
115
- };
116
- readonly large: {
117
- readonly value: "large";
118
- readonly label: "51-200";
119
- };
120
- readonly enterprise: {
121
- readonly value: "enterprise";
122
- readonly label: "200+";
123
- };
124
- };
125
- type OrgSizeTS = keyof typeof OrgSizes;
126
- type OrgSizeOptionTS = typeof OrgSizes[OrgSizeTS];
127
- /**
128
- * OrgProduct represents the product type for an organization
129
- */
130
- type OrgProduct = string;
131
- declare const OrgProductEloquent: OrgProduct;
132
- declare const OrgProductShopAssist: OrgProduct;
133
- declare const OrgProductConsumer: OrgProduct;
134
- declare const OrgProductCustom: OrgProduct;
135
- declare const OrgProductAafya: OrgProduct;
136
- declare const OrgProductFahim: OrgProduct;
137
- declare const OrgProducts: {
138
- readonly eloquent: {
139
- readonly value: "eloquent";
140
- readonly label: "Eloquent";
141
- readonly description: "Full-featured enterprise AI platform with all capabilities";
142
- };
143
- readonly "shop-assist": {
144
- readonly value: "shop-assist";
145
- readonly label: "Shop Assist";
146
- readonly description: "E-commerce focused AI assistant for online stores";
147
- };
148
- readonly consumer: {
149
- readonly value: "consumer";
150
- readonly label: "Consumer";
151
- readonly description: "Consumer-facing AI applications";
152
- };
153
- readonly custom: {
154
- readonly value: "custom";
155
- readonly label: "Custom";
156
- readonly description: "Custom configuration for specific requirements";
157
- };
158
- readonly aafya: {
159
- readonly value: "aafya";
160
- readonly label: "Aafya";
161
- readonly description: "AI-powered healthcare triage and medical assistance platform";
162
- };
163
- readonly fahim: {
164
- readonly value: "fahim";
165
- readonly label: "Fahim فاهم";
166
- readonly description: "AI-powered tutor for personalized learning across subjects";
167
- };
168
- };
169
- type OrgProductTS = keyof typeof OrgProducts;
170
- type OrgProductOptionTS = typeof OrgProducts[OrgProductTS];
171
- /**
172
- * OrgArtifactType represents the type of artifact to provision
173
- */
174
- type OrgArtifactType = string;
175
- /**
176
- * PostgreSQL schemas (3 databases)
177
- */
178
- declare const OrgArtifactPostgresEntities: OrgArtifactType;
179
- declare const OrgArtifactPostgresAgents: OrgArtifactType;
180
- declare const OrgArtifactPostgresOrgConfig: OrgArtifactType;
181
- /**
182
- * ClickHouse
183
- */
184
- declare const OrgArtifactClickHouseOrg: OrgArtifactType;
185
- /**
186
- * NATS
187
- */
188
- declare const OrgArtifactNATSChatBuckets: OrgArtifactType;
189
- /**
190
- * Entity definitions
191
- */
192
- declare const OrgArtifactEntityDefsEloquent: OrgArtifactType;
193
- declare const OrgArtifactEntityDefsDocs: OrgArtifactType;
194
- declare const OrgArtifactEntityDefsBoards: OrgArtifactType;
195
- /**
196
- * Settings
197
- */
198
- declare const OrgArtifactOrgSettings: OrgArtifactType;
199
- /**
200
- * Knowledge Graph
201
- */
202
- declare const OrgArtifactKnowledgeGraph: OrgArtifactType;
203
- declare const OrgArtifactKGSchema: OrgArtifactType;
204
- /**
205
- * Agents
206
- */
207
- declare const OrgArtifactDefaultSkills: OrgArtifactType;
208
- declare const OrgArtifactDefaultAgent: OrgArtifactType;
209
- declare const OrgArtifactChatWidget: OrgArtifactType;
210
- /**
211
- * Default Resources
212
- */
213
- declare const OrgArtifactDefaultOrgLibrary: OrgArtifactType;
214
- declare const OrgArtifactTypes: {
215
- readonly postgres_entities: {
216
- readonly value: "postgres_entities";
217
- readonly label: "PostgreSQL Entities";
218
- };
219
- readonly postgres_agents: {
220
- readonly value: "postgres_agents";
221
- readonly label: "PostgreSQL Agents";
222
- };
223
- readonly postgres_org_config: {
224
- readonly value: "postgres_org_config";
225
- readonly label: "PostgreSQL Org Config";
226
- };
227
- readonly clickhouse_org: {
228
- readonly value: "clickhouse_org";
229
- readonly label: "ClickHouse Analytics";
230
- };
231
- readonly nats_chat_buckets: {
232
- readonly value: "nats_chat_buckets";
233
- readonly label: "NATS Chat Buckets";
234
- };
235
- readonly entity_defs_eloquent: {
236
- readonly value: "entity_defs_eloquent";
237
- readonly label: "Eloquent Entities";
238
- };
239
- readonly entity_defs_docs: {
240
- readonly value: "entity_defs_docs";
241
- readonly label: "Documents Entities";
242
- };
243
- readonly entity_defs_boards: {
244
- readonly value: "entity_defs_boards";
245
- readonly label: "Boards Entities";
246
- };
247
- readonly org_settings: {
248
- readonly value: "org_settings";
249
- readonly label: "Organization Settings";
250
- };
251
- readonly knowledge_graph: {
252
- readonly value: "knowledge_graph";
253
- readonly label: "Knowledge Graph";
254
- };
255
- readonly kg_schema: {
256
- readonly value: "kg_schema";
257
- readonly label: "KG Default Schema";
258
- };
259
- readonly default_skills: {
260
- readonly value: "default_skills";
261
- readonly label: "Default Skills";
262
- };
263
- readonly default_agent: {
264
- readonly value: "default_agent";
265
- readonly label: "Default Agent";
266
- };
267
- readonly chat_widget: {
268
- readonly value: "chat_widget";
269
- readonly label: "Chat Widget";
270
- };
271
- readonly default_org_library: {
272
- readonly value: "default_org_library";
273
- readonly label: "Org Documents Library";
274
- };
275
- };
276
- type OrgArtifactTypeTS = keyof typeof OrgArtifactTypes;
277
- type OrgArtifactTypeOptionTS = typeof OrgArtifactTypes[OrgArtifactTypeTS];
278
- /**
279
- * OrgArtifactStatus represents the status of an artifact
280
- */
281
- type OrgArtifactStatus = string;
282
- declare const OrgArtifactStatusPending: OrgArtifactStatus;
283
- declare const OrgArtifactStatusInProgress: OrgArtifactStatus;
284
- declare const OrgArtifactStatusCompleted: OrgArtifactStatus;
285
- declare const OrgArtifactStatusFailed: OrgArtifactStatus;
286
- declare const OrgArtifactStatusSkipped: OrgArtifactStatus;
287
- declare const OrgArtifactStatuses: {
288
- readonly pending: {
289
- readonly value: "pending";
290
- readonly label: "Pending";
291
- };
292
- readonly in_progress: {
293
- readonly value: "in_progress";
294
- readonly label: "In Progress";
295
- };
296
- readonly completed: {
297
- readonly value: "completed";
298
- readonly label: "Completed";
299
- };
300
- readonly failed: {
301
- readonly value: "failed";
302
- readonly label: "Failed";
303
- };
304
- readonly skipped: {
305
- readonly value: "skipped";
306
- readonly label: "Skipped";
307
- };
308
- };
309
- type OrgArtifactStatusTS = keyof typeof OrgArtifactStatuses;
310
- type OrgArtifactStatusOptionTS = typeof OrgArtifactStatuses[OrgArtifactStatusTS];
311
- /**
312
- * OnboardingStatus represents the status of an onboarding flow
313
- */
314
- type OnboardingStatus = string;
315
- declare const OnboardingStatusPending: OnboardingStatus;
316
- declare const OnboardingStatusInProgress: OnboardingStatus;
317
- declare const OnboardingStatusCompleted: OnboardingStatus;
318
- declare const OnboardingStatusSkipped: OnboardingStatus;
319
- declare const OnboardingStatusLegacy: OnboardingStatus;
320
- declare const OnboardingStatuses: {
321
- readonly pending: {
322
- readonly value: "pending";
323
- readonly label: "Pending";
324
- };
325
- readonly in_progress: {
326
- readonly value: "in_progress";
327
- readonly label: "In Progress";
328
- };
329
- readonly completed: {
330
- readonly value: "completed";
331
- readonly label: "Completed";
332
- };
333
- readonly skipped: {
334
- readonly value: "skipped";
335
- readonly label: "Skipped";
336
- };
337
- readonly legacy: {
338
- readonly value: "legacy";
339
- readonly label: "Legacy";
340
- };
341
- };
342
- type OnboardingStatusTS = keyof typeof OnboardingStatuses;
343
- type OnboardingStatusOptionTS = typeof OnboardingStatuses[OnboardingStatusTS];
344
- /**
345
- * ProvisioningStatus represents the status of resource provisioning
346
- */
347
- type ProvisioningStatus = string;
348
- declare const ProvisioningStatusPending: ProvisioningStatus;
349
- declare const ProvisioningStatusInProgress: ProvisioningStatus;
350
- declare const ProvisioningStatusCompleted: ProvisioningStatus;
351
- declare const ProvisioningStatusPartial: ProvisioningStatus;
352
- declare const ProvisioningStatusFailed: ProvisioningStatus;
353
- declare const ProvisioningStatuses: {
354
- readonly pending: {
355
- readonly value: "pending";
356
- readonly label: "Pending";
357
- };
358
- readonly in_progress: {
359
- readonly value: "in_progress";
360
- readonly label: "In Progress";
361
- };
362
- readonly completed: {
363
- readonly value: "completed";
364
- readonly label: "Completed";
365
- };
366
- readonly partial: {
367
- readonly value: "partial";
368
- readonly label: "Partial";
369
- };
370
- readonly failed: {
371
- readonly value: "failed";
372
- readonly label: "Failed";
373
- };
374
- };
375
- type ProvisioningStatusTS = keyof typeof ProvisioningStatuses;
376
- type ProvisioningStatusOptionTS = typeof ProvisioningStatuses[ProvisioningStatusTS];
377
- /**
378
- * OrgOnboarding tracks the onboarding progress for an organization
379
- */
380
- interface OrgOnboarding {
381
- status: OnboardingStatus;
382
- currentStep: number;
383
- completedAt?: number;
384
- skippedSteps?: number[];
385
- }
386
- /**
387
- * OrgArtifact represents a single provisioned artifact
388
- */
389
- interface OrgArtifact {
390
- type: OrgArtifactTypeTS;
391
- status: OrgArtifactStatusTS;
392
- critical: boolean;
393
- error?: string;
394
- duration?: number;
395
- estimatedDuration?: number;
396
- startedAt?: number;
397
- completedAt?: number;
398
- metadata?: {
399
- [key: string]: any;
400
- };
401
- }
402
- /**
403
- * OrgProvisioning tracks the provisioning status of org resources
404
- */
405
- interface OrgProvisioning {
406
- status: ProvisioningStatusTS;
407
- totalArtifacts: number;
408
- completedArtifacts: number;
409
- failedArtifacts: number;
410
- artifacts?: OrgArtifact[];
411
- startedAt?: number;
412
- completedAt?: number;
413
- /**
414
- * Legacy fields for backwards compatibility
415
- */
416
- defaultAgentId?: string;
417
- defaultKnowledgeGraphId?: string;
418
- error?: string;
419
- /**
420
- * Metadata for passing data between provisioners (e.g., skill IDs)
421
- */
422
- metadata?: {
423
- [key: string]: any;
424
- };
425
- }
426
- /**
427
- * OrgProvisioningProgress represents real-time progress for SSE
428
- */
429
- interface OrgProvisioningProgress {
430
- orgId: string;
431
- artifact?: OrgArtifactTypeTS;
432
- status: OrgArtifactStatusTS;
433
- error?: string;
434
- progress: number;
435
- totalArtifacts: number;
436
- completedCount: number;
437
- failedCount: number;
438
- currentStep?: string;
439
- elapsedMs: number;
440
- estimatedMs?: number;
441
- }
442
- /**
443
- * OrgProvisioningOptions allows customizing provisioning behavior
444
- */
445
- interface OrgProvisioningOptions {
446
- skipArtifacts?: OrgArtifactTypeTS[];
447
- onlyArtifacts?: OrgArtifactTypeTS[];
448
- customArtifacts?: OrgArtifactTypeTS[];
449
- skipKnowledgeGraph?: boolean;
450
- skipDefaultAgent?: boolean;
451
- }
452
- interface OrgSubscription {
453
- plan: string;
454
- platform: SubscriptionPlatform;
455
- status: OrgSubscriptionStatus;
456
- trialEndsAt?: number;
457
- currentPeriodEnd?: number;
458
- seats?: number;
459
- stripeCustomerId?: string;
460
- stripeSubscriptionId?: string;
461
- cancelledAt?: number;
462
- cancelReason?: string;
463
- gracePeriodEndsAt?: number;
464
- }
465
- type OrgSubscriptionStatus = string;
466
- declare const OrgSubscriptionStatusTrialing: OrgSubscriptionStatus;
467
- declare const OrgSubscriptionStatusActive: OrgSubscriptionStatus;
468
- declare const OrgSubscriptionStatusPastDue: OrgSubscriptionStatus;
469
- declare const OrgSubscriptionStatusCancelled: OrgSubscriptionStatus;
470
- declare const OrgSubscriptionStatusUnpaid: OrgSubscriptionStatus;
471
- declare const OrgSubscriptionStatuses: {
472
- readonly trialing: {
473
- readonly value: "trialing";
474
- readonly label: "Trialing";
475
- };
476
- readonly active: {
477
- readonly value: "active";
478
- readonly label: "Active";
479
- };
480
- readonly past_due: {
481
- readonly value: "past_due";
482
- readonly label: "Past Due";
483
- };
484
- readonly cancelled: {
485
- readonly value: "cancelled";
486
- readonly label: "Cancelled";
487
- };
488
- readonly unpaid: {
489
- readonly value: "unpaid";
490
- readonly label: "Unpaid";
491
- };
492
- };
493
- type OrgSubscriptionStatusTS = keyof typeof OrgSubscriptionStatuses;
494
- type OrgSubscriptionStatusOptionTS = typeof OrgSubscriptionStatuses[OrgSubscriptionStatusTS];
495
- interface OrgResponse {
496
- org: Org;
497
- metadata: ResponseMetadata;
498
- }
499
- interface OrgInfoResponse {
500
- orgInfo: OrgInfo;
501
- metadata: ResponseMetadata;
502
- }
503
- interface OrgRoleResponse {
504
- role: OrgRole;
505
- metadata: ResponseMetadata;
506
- }
507
- interface ListOrgsResponse {
508
- orgs: Org[];
509
- metadata: ResponseMetadata;
510
- }
511
- interface ListOrgRolesResponse {
512
- roles: OrgRole[];
513
- metadata: ResponseMetadata;
514
- }
515
- interface OrgInfo {
516
- id?: string;
517
- title: string;
518
- logoUrl: string;
519
- mainDomain?: string;
520
- apps: SystemAppTS[];
521
- }
522
- interface AzureSettings {
523
- appClientId?: string;
524
- appClientSecret?: string;
525
- azureTenantId?: string;
526
- }
527
- interface OrgTemplate {
528
- id: string;
529
- slug: string;
530
- title: string;
531
- }
532
- interface UserOrgAccess {
533
- orgId?: string;
534
- orgTitle?: string;
535
- roles: string[];
536
- isSingleAccount: boolean;
537
- entityRecordFilter?: {
538
- entityName: string;
539
- recordId: string;
540
- displayValue?: string;
541
- };
542
- }
543
- /**
544
- * UserSettings represents user preferences (elastic JSON structure)
545
- */
546
- interface UserSettings {
547
- theme?: string;
548
- language?: string;
549
- timezone?: string;
550
- occupation?: string;
551
- company?: string;
552
- }
553
- declare const ThemeOptions: {
554
- readonly system: {
555
- readonly value: "system";
556
- readonly label: "System";
557
- };
558
- readonly light: {
559
- readonly value: "light";
560
- readonly label: "Light";
561
- };
562
- readonly dark: {
563
- readonly value: "dark";
564
- readonly label: "Dark";
565
- };
566
- };
567
- type ThemeOptionTS = keyof typeof ThemeOptions;
568
- /**
569
- * NotificationPreferences represents user notification settings
570
- */
571
- interface NotificationPreferences {
572
- pushEnabled: boolean;
573
- newChatAssignment: boolean;
574
- newMessages: boolean;
575
- escalations: boolean;
576
- urgentOnly: boolean;
577
- soundEnabled: boolean;
578
- doNotDisturb: boolean;
579
- dndStart?: string;
580
- dndEnd?: string;
581
- }
582
- /**
583
- * UserSource represents how a user was created
584
- */
585
- type UserSource = string;
586
- declare const UserSourceSignup: UserSource;
587
- declare const UserSourceInvite: UserSource;
588
- declare const UserSourceSSO: UserSource;
589
- declare const UserSourceAPI: UserSource;
590
- declare const UserSources: {
591
- readonly signup: {
592
- readonly value: "signup";
593
- readonly label: "Signup";
594
- };
595
- readonly invite: {
596
- readonly value: "invite";
597
- readonly label: "Invite";
598
- };
599
- readonly sso: {
600
- readonly value: "sso";
601
- readonly label: "SSO";
602
- };
603
- readonly api: {
604
- readonly value: "api";
605
- readonly label: "API";
606
- };
607
- };
608
- type UserSourceTS = keyof typeof UserSources;
609
- type UserSourceOptionTS = typeof UserSources[UserSourceTS];
610
- /**
611
- * InviteStatus represents the status of an invitation
612
- */
613
- type InviteStatus = string;
614
- declare const InviteStatusPending: InviteStatus;
615
- declare const InviteStatusAccepted: InviteStatus;
616
- declare const InviteStatusExpired: InviteStatus;
617
- declare const InviteStatusRevoked: InviteStatus;
618
- declare const InviteStatuses: {
619
- readonly pending: {
620
- readonly value: "pending";
621
- readonly label: "Pending";
622
- };
623
- readonly accepted: {
624
- readonly value: "accepted";
625
- readonly label: "Accepted";
626
- };
627
- readonly expired: {
628
- readonly value: "expired";
629
- readonly label: "Expired";
630
- };
631
- readonly revoked: {
632
- readonly value: "revoked";
633
- readonly label: "Revoked";
634
- };
635
- };
636
- type InviteStatusTS = keyof typeof InviteStatuses;
637
- type InviteStatusOptionTS = typeof InviteStatuses[InviteStatusTS];
638
- /**
639
- * Invite represents a team/org invitation
640
- */
641
- interface Invite {
642
- id?: string;
643
- orgId: string;
644
- email: string;
645
- role: string;
646
- invitedBy: string;
647
- status: InviteStatusTS;
648
- acceptedBy?: string;
649
- acceptedAt?: number;
650
- expiresAt?: number;
651
- createdAt?: number;
652
- updatedAt?: number;
653
- }
654
- interface InviteResponse {
655
- invite: Invite;
656
- metadata: ResponseMetadata;
657
- }
658
- interface ListInvitesResponse {
659
- invites: Invite[];
660
- metadata: ResponseMetadata;
661
- }
662
- /**
663
- * UserOnboarding tracks the onboarding progress for a user
664
- */
665
- interface UserOnboarding {
666
- status: OnboardingStatus;
667
- completedAt?: number;
668
- }
669
- /**
670
- * User represents a user in the system
671
- */
672
- interface User {
673
- id?: string;
674
- email: string;
675
- firstName: string;
676
- lastName: string;
677
- authProviderName: string;
678
- orgAccess?: UserOrgAccess[];
679
- /**
680
- * Status & Control
681
- */
682
- enabled?: boolean;
683
- /**
684
- * Source tracking
685
- */
686
- source?: UserSourceTS;
687
- invitedBy?: string;
688
- inviteStatus?: InviteStatusTS;
689
- /**
690
- * Team membership - LEGACY, DO NOT USE
691
- * These fields are deprecated and will be removed.
692
- * Use Org and OrgAccess patterns instead.
693
- */
694
- isTeamAdmin?: boolean;
695
- teamId?: string;
696
- teamName?: string;
697
- /**
698
- * System admin flag
699
- */
700
- isSysAdmin?: boolean;
701
- /**
702
- * Preferences
703
- */
704
- settings?: UserSettings;
705
- notificationPreferences?: NotificationPreferences;
706
- /**
707
- * Onboarding tracking
708
- */
709
- onboarding?: UserOnboarding;
710
- /**
711
- * Flexible metadata
712
- */
713
- metadata?: {
714
- [key: string]: any;
715
- };
716
- /**
717
- * Audit fields
718
- */
719
- createdAt?: number;
720
- updatedAt?: number;
721
- createdBy?: string;
722
- updatedBy?: string;
723
- }
724
- interface UserResponse {
725
- user: User;
726
- metadata: ResponseMetadata;
727
- }
728
- interface ListUsersResponse {
729
- users: User[];
730
- metadata: ResponseMetadata;
731
- }
732
- interface Team {
733
- id?: string;
734
- name: string;
735
- isSubscribed: boolean;
736
- subscribedAt?: number;
737
- plan: string;
738
- ownerName?: string;
739
- ownerEmail?: string;
740
- subscriptionPlatform?: SubscriptionPlatform;
741
- subscriptionId?: string;
742
- onboardingDone?: boolean;
743
- onboardingData?: string;
744
- }
745
- type SubscriptionPlatform = string;
746
- declare const SubscriptionPlatformStripe: SubscriptionPlatform;
747
- declare const SubscriptionPlatformCustom: SubscriptionPlatform;
748
- interface OrgRole {
749
- id?: string;
750
- orgId?: string;
751
- title: string;
752
- permissions: Permission[];
753
- isSystem: boolean;
754
- createdAt?: number;
755
- updatedAt?: number;
756
- createdBy?: string;
757
- updatedBy?: string;
758
- }
759
- /**
760
- * org db - copied from sys db
761
- */
762
- interface Permission {
763
- /**
764
- * ID *primitive.ObjectID `bson:"_id,omitempty" json:"id"`
765
- */
766
- name: string;
767
- title: string;
768
- isSystem: boolean;
769
- }
770
- type SystemApp = string;
771
- declare const SystemAppAdmin: SystemApp;
772
- declare const SystemAppCRM: SystemApp;
773
- declare const SystemAppHelpdesk: SystemApp;
774
- declare const SystemAppMarketing: SystemApp;
775
- declare const SystemAppWorkflow: SystemApp;
776
- declare const SystemAppAnalytics: SystemApp;
777
- declare const SystemAppKnowledgeGraph: SystemApp;
778
- declare const SystemAppDocumentProcessor: SystemApp;
779
- declare const SystemApps: {
780
- readonly admin: {
781
- readonly value: "admin";
782
- readonly label: "Admin";
783
- };
784
- readonly crm: {
785
- readonly value: "crm";
786
- readonly label: "CRM";
787
- };
788
- readonly helpdesk: {
789
- readonly value: "helpdesk";
790
- readonly label: "Helpdesk";
791
- };
792
- readonly marketing: {
793
- readonly value: "marketing";
794
- readonly label: "Marketing";
795
- };
796
- readonly workflow: {
797
- readonly value: "workflow";
798
- readonly label: "Workflow";
799
- };
800
- readonly analytics: {
801
- readonly value: "analytics";
802
- readonly label: "Analytics";
803
- };
804
- readonly "knowledge-graph": {
805
- readonly value: "knowledge-graph";
806
- readonly label: "Knowledge Graph";
807
- };
808
- readonly "document-processor": {
809
- readonly value: "document-processor";
810
- readonly label: "Document Processor";
811
- };
812
- };
813
- type SystemAppTS = keyof typeof SystemApps;
814
- type SystemAppOptionTS = typeof SystemApps[SystemAppTS];
815
- /**
816
- * UpdateUserSettingsRequest is the request payload for updating user settings
817
- */
818
- interface UpdateUserSettingsRequest {
819
- id: string;
820
- settings?: UserSettings;
821
- notificationPreferences?: NotificationPreferences;
822
- }
823
- /**
824
- * UserSettingsResponse is the response for settings operations
825
- */
826
- interface UserSettingsResponse {
827
- settings?: UserSettings;
828
- notificationPreferences?: NotificationPreferences;
829
- metadata: ResponseMetadata;
830
- }
831
- /**
832
- * OnboardingStep represents a step in the onboarding flow
833
- */
834
- interface OnboardingStep {
835
- step: number;
836
- name: string;
837
- status: string;
838
- required: boolean;
839
- }
840
- /**
841
- * OnboardingState represents the current state of a user's onboarding
842
- */
843
- interface OnboardingState {
844
- status: string;
845
- currentStep: number;
846
- steps: OnboardingStep[];
847
- user?: User;
848
- org?: Org;
849
- }
850
- /**
851
- * OnboardingStateResponse is the response for onboarding status
852
- */
853
- interface OnboardingStateResponse {
854
- state: OnboardingState;
855
- metadata: ResponseMetadata;
856
- }
857
- /**
858
- * OrgInput contains the input for creating an organization
859
- */
860
- interface OrgInput {
861
- name: string;
862
- industry?: string;
863
- size: string;
864
- stripeSessionId?: string;
865
- }
866
- /**
867
- * OrgResult contains the result of organization creation
868
- */
869
- interface OrgResult {
870
- org?: Org;
871
- nextStep: string;
872
- metadata: ResponseMetadata;
873
- }
874
- /**
875
- * WorkspaceInput is an alias for OrgInput (deprecated)
876
- */
877
- type WorkspaceInput = OrgInput;
878
- /**
879
- * WorkspaceResult is an alias for OrgResult (deprecated)
880
- */
881
- type WorkspaceResult = OrgResult;
882
- /**
883
- * InviteInput contains the input for sending invites
884
- */
885
- interface InviteInput {
886
- email: string;
887
- role: string;
888
- }
889
- /**
890
- * InvitesResult contains the result of sending invites
891
- */
892
- interface InvitesResult {
893
- sent: InviteSentStatus[];
894
- failed: string[];
895
- nextStep: string;
896
- metadata: ResponseMetadata;
897
- }
898
- /**
899
- * InviteSentStatus represents status of a sent invite
900
- */
901
- interface InviteSentStatus {
902
- email: string;
903
- status: string;
904
- }
905
- /**
906
- * KnowledgeInput contains the input for creating knowledge graph
907
- */
908
- interface KnowledgeInput {
909
- name?: string;
910
- skipUpload: boolean;
911
- }
912
- /**
913
- * KnowledgeGraphInfo contains info about a knowledge graph
914
- */
915
- interface KnowledgeGraphInfo {
916
- id: string;
917
- name: string;
918
- status: string;
919
- documentCount: number;
920
- }
921
- /**
922
- * KnowledgeResult contains the result of knowledge graph creation
923
- */
924
- interface KnowledgeResult {
925
- knowledgeGraph: KnowledgeGraphInfo;
926
- nextStep: string;
927
- metadata: ResponseMetadata;
928
- }
929
- /**
930
- * AgentInput contains the input for creating an agent
931
- */
932
- interface AgentInput {
933
- name: string;
934
- goal: string;
935
- personality: string;
936
- skills?: string[];
937
- }
938
- /**
939
- * AgentInfo contains info about an agent
940
- */
941
- interface AgentInfo {
942
- id: string;
943
- name: string;
944
- goal: string;
945
- personality: string;
946
- status: string;
947
- knowledgeGraphId?: string;
948
- }
949
- /**
950
- * AgentResult contains the result of agent creation
951
- */
952
- interface AgentResult {
953
- agent: AgentInfo;
954
- nextStep: string;
955
- metadata: ResponseMetadata;
956
- }
957
- /**
958
- * OnboardingCompleteResult contains the result of completing onboarding
959
- */
960
- interface OnboardingCompleteResult {
961
- status: string;
962
- completedAt: number;
963
- org?: Org;
964
- redirectUrl: string;
965
- metadata: ResponseMetadata;
966
- }
967
- /**
968
- * PaymentSessionInput contains input for creating a payment session
969
- */
970
- interface PaymentSessionInput {
971
- plan: string;
972
- billingCycle: string;
973
- seats: number;
974
- successUrl: string;
975
- cancelUrl: string;
976
- affiliateCode?: string;
977
- }
978
- /**
979
- * PaymentSessionResult contains the result of creating a payment session
980
- */
981
- interface PaymentSessionResult {
982
- url: string;
983
- sessionId: string;
984
- customerId: string;
985
- metadata: ResponseMetadata;
986
- }
987
- /**
988
- * OnboardingPlanInput contains subscription plan selection for provisioning
989
- */
990
- interface OnboardingPlanInput {
991
- plan: string;
992
- billingCycle: string;
993
- seats: number;
994
- stripeSessionId?: string;
995
- }
996
- /**
997
- * OnboardingOrgInput contains organization data for provisioning
998
- * Aligned with SeedOrgRequest structure
999
- */
1000
- interface OnboardingOrgInput {
1001
- title: string;
1002
- mainDomain: string;
1003
- product?: OrgProduct;
1004
- industry?: string;
1005
- size?: string;
1006
- }
1007
- /**
1008
- * OnboardingDocumentInput contains a document to be ingested during onboarding
1009
- */
1010
- interface OnboardingDocumentInput {
1011
- title: string;
1012
- fileUrl: string;
1013
- }
1014
- /**
1015
- * OnboardingKnowledgeInput contains knowledge base configuration with optional documents
1016
- */
1017
- interface OnboardingKnowledgeInput {
1018
- name: string;
1019
- documents?: OnboardingDocumentInput[];
1020
- }
1021
- /**
1022
- * OnboardingProvisionRequest contains all data collected during onboarding
1023
- * to create org and provision all resources in one request
1024
- */
1025
- interface OnboardingProvisionRequest {
1026
- plan: OnboardingPlanInput;
1027
- org: OnboardingOrgInput;
1028
- invites?: InviteInput[];
1029
- knowledge: OnboardingKnowledgeInput;
1030
- agent: AgentInput;
1031
- }
1032
- /**
1033
- * OnboardingProvisionResponse is returned after starting provisioning
1034
- */
1035
- interface OnboardingProvisionResponse {
1036
- orgId: string;
1037
- userId: string;
1038
- status: string;
1039
- metadata: ResponseMetadata;
1040
- }
1041
- /**
1042
- * CreateOrgRequest is the request payload for creating an organization with provisioning
1043
- */
1044
- interface CreateOrgRequest {
1045
- title: string;
1046
- mainDomain: string;
1047
- product: OrgProductTS;
1048
- type?: OrgTypeTS;
1049
- size?: OrgSizeTS;
1050
- industry?: string;
1051
- logoUrl?: string;
1052
- address?: Address;
1053
- subscription?: OrgSubscription;
1054
- provisioningOptions?: OrgProvisioningOptions;
1055
- metadata?: {
1056
- [key: string]: any;
1057
- };
1058
- }
1059
- /**
1060
- * RetryProvisioningRequest is the request for retrying failed artifacts
1061
- */
1062
- interface RetryProvisioningRequest {
1063
- artifacts?: OrgArtifactTypeTS[];
1064
- }
1065
- /**
1066
- * RetryProvisioningResponse is the response for retry operation
1067
- */
1068
- interface RetryProvisioningResponse {
1069
- metadata: ResponseMetadata;
1070
- }
1071
- /**
1072
- * OrgSchemaType represents a database schema type for bare schema provisioning.
1073
- * Unlike OrgArtifactType, this only creates empty org_<uuid> schemas.
1074
- */
1075
- type OrgSchemaType = string;
1076
- declare const SchemaTypeEntities: OrgSchemaType;
1077
- declare const SchemaTypeAgents: OrgSchemaType;
1078
- declare const SchemaTypeOrgConfig: OrgSchemaType;
1079
- declare const OrgSchemaTypes: {
1080
- readonly entities: {
1081
- readonly value: "entities";
1082
- readonly label: "Entities Database";
1083
- };
1084
- readonly agents: {
1085
- readonly value: "agents";
1086
- readonly label: "Agents Database";
1087
- };
1088
- readonly "org-config": {
1089
- readonly value: "org-config";
1090
- readonly label: "Org Config Database";
1091
- };
1092
- };
1093
- type OrgSchemaTypeTS = keyof typeof OrgSchemaTypes;
1094
- /**
1095
- * CreateOrgWithSchemasRequest creates an org with bare database schemas
1096
- */
1097
- interface CreateOrgWithSchemasRequest {
1098
- org: Org;
1099
- schemas: OrgSchemaTypeTS[];
1100
- }
1101
- /**
1102
- * CreateOrgWithSchemasResponse contains the result of creating an org with schemas
1103
- */
1104
- interface CreateOrgWithSchemasResponse {
1105
- success: boolean;
1106
- org: Org;
1107
- createdSchemas: OrgSchemaTypeTS[];
1108
- failedSchemas?: OrgSchemaTypeTS[];
1109
- errors?: {
1110
- [key: string]: string;
1111
- };
1112
- }
1113
- declare const AdminOrgCreate = "admin.orgs.create";
1114
- declare const AdminOrgList = "admin.orgs.list";
1115
- declare const AdminOrgListByMetadata = "admin.orgs.listByMetadata";
1116
- declare const AdminOrgGet = "admin.orgs.get";
1117
- declare const AdminOrgGetInfo = "admin.orgs.getInfo";
1118
- declare const AdminOrgGetByDomain = "admin.orgs.getByDomain";
1119
- declare const AdminOrgUpdate = "admin.orgs.update";
1120
- declare const AdminOrgDelete = "admin.orgs.delete";
1121
- declare const AdminOrgCreated = "system.admin.org.created";
1122
- declare const AdminOrgRolesGet = "admin.orgRoles.get";
1123
- declare const AdminOrgRolesCreate = "admin.orgRoles.create";
1124
- declare const AdminOrgRolesUpdate = "admin.orgRoles.update";
1125
- declare const AdminOrgRolesDelete = "admin.orgRoles.delete";
1126
- declare const AdminUsersGet = "admin.users.get";
1127
- declare const AdminUsersGetForOrg = "admin.users.getUsersForOrg";
1128
- declare const AdminUsersGetOne = "admin.users.getOne";
1129
- declare const AdminUsersGetOneByEmail = "admin.users.getOneByEmail";
1130
- declare const AdminUsersGetOneByPhone = "admin.users.getOneByPhone";
1131
- declare const AdminUsersCreate = "admin.users.create";
1132
- declare const AdminUsersUpdate = "admin.users.update";
1133
- declare const AdminUsersDelete = "admin.users.delete";
1134
- declare const AdminUsersUpdateSettings = "admin.users.updateSettings";
1135
- declare const AdminUsersGetSettings = "admin.users.getSettings";
1136
- declare const AdminTeamsCreate = "admin.teams.create";
1137
- declare const AdminTeamsGetOne = "admin.teams.getOne";
1138
- declare const AdminTeamsGetForOrg = "admin.teams.getTeamsForOrg";
1139
- declare const AdminTeamsUpdateOnboarding = "admin.teams.updateOnboardingData";
1140
-
1141
6
  /**
1142
7
  * Billing event handlers
1143
8
  */
@@ -2205,131 +1070,6 @@ declare const BillingOrgProvision = "billing.org.provision";
2205
1070
  */
2206
1071
  declare const BillingHealthCheck = "billing.health.check";
2207
1072
 
2208
- /**
2209
- * Product Analytics Models
2210
- *
2211
- * Types for product analytics (chats, agents, usage, events).
2212
- */
2213
-
2214
- interface DateFilter {
2215
- from?: string;
2216
- to?: string;
2217
- }
2218
- interface AnalyticsSummary {
2219
- total_chats: number;
2220
- total_messages: number;
2221
- total_tokens: number;
2222
- total_cost: number;
2223
- unique_users: number;
2224
- avg_session_duration: number;
2225
- }
2226
- interface SummaryResponse {
2227
- success: boolean;
2228
- data: AnalyticsSummary;
2229
- metadata?: ResponseMetadata;
2230
- }
2231
- interface ChatAnalytics {
2232
- chat_id: string;
2233
- agent_id: string;
2234
- user_id: string;
2235
- message_count: number;
2236
- total_tokens: number;
2237
- duration_secs: number;
2238
- csat_score?: number;
2239
- created_at: string;
2240
- }
2241
- interface ChatsResponse {
2242
- success: boolean;
2243
- data: ChatAnalytics[];
2244
- total: number;
2245
- metadata?: ResponseMetadata;
2246
- }
2247
- interface AgentAnalytics {
2248
- agent_id: string;
2249
- agent_name?: string;
2250
- total_chats: number;
2251
- total_messages: number;
2252
- total_tokens: number;
2253
- avg_duration_secs: number;
2254
- unique_users: number;
2255
- avg_csat?: number;
2256
- }
2257
- interface AgentsAnalyticsResponse {
2258
- success: boolean;
2259
- data: AgentAnalytics[];
2260
- metadata?: ResponseMetadata;
2261
- }
2262
- interface UsageAnalytics {
2263
- service: string;
2264
- model: string;
2265
- input_tokens: number;
2266
- output_tokens: number;
2267
- total_tokens: number;
2268
- cost: number;
2269
- request_count: number;
2270
- }
2271
- interface UsageResponse {
2272
- success: boolean;
2273
- data: UsageAnalytics[];
2274
- metadata?: ResponseMetadata;
2275
- }
2276
- interface DailyAnalytics {
2277
- date: string;
2278
- total_chats: number;
2279
- total_messages: number;
2280
- total_tokens: number;
2281
- unique_users: number;
2282
- }
2283
- interface DailyResponse {
2284
- success: boolean;
2285
- data: DailyAnalytics[];
2286
- metadata?: ResponseMetadata;
2287
- }
2288
- interface AnalyticsEvent {
2289
- eventId?: string;
2290
- orgId?: string;
2291
- sessionId: string;
2292
- userId: string;
2293
- eventType: string;
2294
- eventCategory: string;
2295
- pagePath?: string;
2296
- properties?: Record<string, unknown>;
2297
- timestamp?: string;
2298
- }
2299
- interface EventsResponse {
2300
- success: boolean;
2301
- data: AnalyticsEvent[];
2302
- metadata?: ResponseMetadata;
2303
- }
2304
- interface GlobalAnalyticsSummary {
2305
- total_orgs: number;
2306
- total_chats: number;
2307
- total_messages: number;
2308
- total_tokens: number;
2309
- total_cost: number;
2310
- total_users: number;
2311
- }
2312
- interface GlobalSummaryResponse {
2313
- success: boolean;
2314
- data: GlobalAnalyticsSummary;
2315
- metadata?: ResponseMetadata;
2316
- }
2317
- interface OrgAnalytics {
2318
- org_id: string;
2319
- org_name: string;
2320
- total_chats: number;
2321
- total_messages: number;
2322
- total_tokens: number;
2323
- total_cost: number;
2324
- unique_users: number;
2325
- }
2326
- interface OrgAnalyticsResponse {
2327
- success: boolean;
2328
- data: OrgAnalytics[];
2329
- total: number;
2330
- metadata?: ResponseMetadata;
2331
- }
2332
-
2333
1073
  interface OnboardingResponse {
2334
1074
  state: OnboardingState;
2335
1075
  metadata: ResponseMetadata;
@@ -2411,4 +1151,4 @@ interface ProvisionWorkflowsResponse {
2411
1151
  metadata: ResponseMetadata;
2412
1152
  }
2413
1153
 
2414
- 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, AdminUsersGetOneByPhone, AdminUsersGetSettings, AdminUsersUpdate, AdminUsersUpdateSettings, type Affiliate, AffiliateAnalytics, type AffiliateCommission, AffiliateCommissions, AffiliateCreate, AffiliateGet, AffiliateList, AffiliateOnboard, type AffiliateReferral, AffiliateUpdate, type AgentAnalytics, type AgentInfo, type AgentInput, type AgentResult, type AgentsAnalyticsResponse, AnalyticsChurn, type AnalyticsEvent, AnalyticsRevenue, type AnalyticsSummary, AnalyticsUsage, type AzureSettings, type BillingEvent, type BillingEventRequest, type BillingEventResponse, BillingEventsRecord, BillingGetInvoice, BillingGetUsageReport, BillingHealthCheck, BillingInvoiceCreate, BillingInvoiceGet, BillingInvoiceProcess, BillingOrgProvision, type BillingPeriod, BillingPeriodClose, BillingPeriodCreate, BillingPeriodProcess, type BillingPeriodProcessRequest, type BillingPeriodProcessResponse, BillingProcessBillingPeriod, BillingRecordEvent, type BillingResponse, type BillingRule, type BillingRuleRequest, type BillingRuleResponse, BillingRulesCreate, BillingRulesDelete, BillingRulesGet, type BillingRulesRequest, type BillingRulesResponse, BillingRulesUpdate, BillingSubjectPrefix, BillingUsageCostBreakdown, BillingUsageCurrent, BillingUsageHistory, BillingUsageReport, BillingUsageTopCenters, type CancelSubscriptionRequest, type CancelSubscriptionResponse, type ChatAnalytics, type ChatsResponse, type CompleteOnboardingResponse, type ConsumeCreditsRequest, type ConsumeCreditsResponse, type CostBreakdown, type CostBreakdownRequest, type CostBreakdownResponse, type CostPreview, type CreateAffiliateOnboardingLinkRequest, type CreateAffiliateOnboardingLinkResponse, type CreateAffiliateRequest, type CreateAffiliateResponse, type CreateAgentResponse, type CreateCheckoutResponse, type CreateCheckoutSessionRequest, type CreateCheckoutSessionResponse, type CreateKnowledgeResponse, type CreateOrgRequest, type CreateOrgResponse, type CreateOrgWithSchemasRequest, type CreateOrgWithSchemasResponse, type CreatePaymentLinkRequest, type CreatePaymentLinkResponse, type CreatePortalSessionRequest, type CreatePortalSessionResponse, type CreditBalance, type CreditPackage, CreditsBalance, CreditsConsume, CreditsPurchase, type CreditsResponse, type CurrentUsageRequest, type CurrentUsageResponse, CustomerCreate, CustomerGet, CustomerUpdate, type DailyAnalytics, type DailyResponse, type DateFilter, type EventsResponse, type GetAffiliateAnalyticsRequest, type GetAffiliateAnalyticsResponse, type GetAffiliateCommissionsRequest, type GetAffiliateCommissionsResponse, type GetAffiliateRequest, type GetAffiliateResponse, type GetCreditsRequest, type GetCreditsResponse, type GetPlansRequest, type GetPlansResponse, type GetSubscriptionRequest, type GetSubscriptionResponse, type GlobalAnalyticsSummary, type GlobalSummaryResponse, type Invite, type InviteInput, type InviteResponse, type InviteSentStatus, type InviteStatus, InviteStatusAccepted, InviteStatusExpired, type InviteStatusOptionTS, InviteStatusPending, InviteStatusRevoked, type InviteStatusTS, InviteStatuses, type InvitesResult, type Invoice, type InvoiceLineItem, type InvoiceRequest, type InvoiceResponse, type KnowledgeGraphInfo, type KnowledgeInput, type KnowledgeResult, type ListAffiliatesRequest, type ListAffiliatesResponse, type ListInvitesResponse, type ListOrgRolesResponse, type ListOrgsResponse, type ListUsersResponse, type NotificationPreferences, type OnboardingCompleteResult, type OnboardingDocumentInput, type OnboardingKnowledgeInput, type OnboardingOrgInput, type OnboardingPlanInput, type OnboardingProvisionRequest, type OnboardingProvisionResponse, type OnboardingResponse, type OnboardingState, type OnboardingStateResponse, type OnboardingStatus, OnboardingStatusCompleted, OnboardingStatusInProgress, OnboardingStatusLegacy, type OnboardingStatusOptionTS, OnboardingStatusPending, OnboardingStatusSkipped, type OnboardingStatusTS, OnboardingStatuses, type OnboardingStep, type Org, type OrgAnalytics, type OrgAnalyticsResponse, type OrgArtifact, OrgArtifactChatWidget, OrgArtifactClickHouseOrg, OrgArtifactDefaultAgent, OrgArtifactDefaultOrgLibrary, OrgArtifactDefaultSkills, OrgArtifactEntityDefsBoards, OrgArtifactEntityDefsDocs, OrgArtifactEntityDefsEloquent, OrgArtifactKGSchema, OrgArtifactKnowledgeGraph, OrgArtifactNATSChatBuckets, OrgArtifactOrgSettings, OrgArtifactPostgresAgents, OrgArtifactPostgresEntities, OrgArtifactPostgresOrgConfig, type OrgArtifactStatus, OrgArtifactStatusCompleted, OrgArtifactStatusFailed, OrgArtifactStatusInProgress, type OrgArtifactStatusOptionTS, OrgArtifactStatusPending, OrgArtifactStatusSkipped, type OrgArtifactStatusTS, OrgArtifactStatuses, type OrgArtifactType, type OrgArtifactTypeOptionTS, type OrgArtifactTypeTS, OrgArtifactTypes, type OrgInfo, type OrgInfoResponse, type OrgInput, type OrgOnboarding, type OrgProduct, OrgProductAafya, OrgProductConsumer, OrgProductCustom, OrgProductEloquent, OrgProductFahim, type OrgProductOptionTS, OrgProductShopAssist, type OrgProductTS, OrgProducts, type OrgProvisioning, type OrgProvisioningOptions, type OrgProvisioningProgress, type OrgResponse, type OrgResult, type OrgRole, type OrgRoleResponse, type OrgSchemaType, type OrgSchemaTypeTS, OrgSchemaTypes, 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 OrganizationBilling, type Payment, PaymentLinkCreate, PaymentLinkList, type PaymentSessionInput, type PaymentSessionResponse, type PaymentSessionResult, type Permission, type Plan, PlansGet, PlansGetAll, type PlansResponse, PortalSessionCreate, type PortalSessionResponse, type ProvisionAgentsResponse, type ProvisionEntitiesResponse, type ProvisionWorkflowsResponse, type ProvisioningStatus, ProvisioningStatusCompleted, ProvisioningStatusFailed, ProvisioningStatusInProgress, type ProvisioningStatusOptionTS, ProvisioningStatusPartial, ProvisioningStatusPending, type ProvisioningStatusTS, ProvisioningStatuses, type PurchaseCreditsRequest, type PurchaseCreditsResponse, type RetryProvisioningRequest, type RetryProvisioningResponse, type RevenueAnalytics, type RevenueAnalyticsRequest, type RevenueAnalyticsResponse, type RuleCoverage, RulesCreateBillingRule, RulesDeleteBillingRule, RulesGetBillingRules, RulesUpdateBillingRule, SchemaTypeAgents, SchemaTypeEntities, SchemaTypeOrgConfig, type SendInvitesResponse, type ServiceUsage, type StripeWebhookEvent, SubscriptionCancel, SubscriptionCheckout, SubscriptionCreate, SubscriptionGet, SubscriptionList, type SubscriptionPlatform, SubscriptionPlatformCustom, SubscriptionPlatformStripe, type SubscriptionResponse, SubscriptionUpdate, type SummaryResponse, type SystemApp, SystemAppAdmin, SystemAppAnalytics, SystemAppCRM, SystemAppDocumentProcessor, SystemAppHelpdesk, SystemAppKnowledgeGraph, SystemAppMarketing, type SystemAppOptionTS, type SystemAppTS, SystemAppWorkflow, SystemApps, type Team, type ThemeOptionTS, ThemeOptions, type TierCost, type TopCostCenter, type UpdateUserSettingsRequest, type UsageAggregation, type UsageAlert, UsageAlertThreshold, type UsageAnalytics, UsageGetCostBreakdown, UsageGetCurrentUsage, UsageGetTopCostCenters, UsageGetUsageHistory, type UsageHistory, type UsagePeriod, type UsageReport, type UsageReportRequest, type UsageReportResponse, type UsageResponse, type UsageSummary, type UsageTrends, type User, type UserOnboarding, type UserOrgAccess, type UserResponse, type UserSettings, type UserSettingsResponse, type UserSource, UserSourceAPI, UserSourceInvite, type UserSourceOptionTS, UserSourceSSO, UserSourceSignup, type UserSourceTS, UserSources, type UserUsage, WebhookInvoiceFailed, WebhookInvoicePaid, WebhookPaymentSucceeded, WebhookSubscriptionCanceled, WebhookSubscriptionCreated, WebhookSubscriptionUpdated, type WorkspaceInput, type WorkspaceResult };
1154
+ export { type Affiliate, AffiliateAnalytics, type AffiliateCommission, AffiliateCommissions, AffiliateCreate, AffiliateGet, AffiliateList, AffiliateOnboard, type AffiliateReferral, AffiliateUpdate, AnalyticsChurn, AnalyticsRevenue, AnalyticsUsage, type BillingEvent, type BillingEventRequest, type BillingEventResponse, BillingEventsRecord, BillingGetInvoice, BillingGetUsageReport, BillingHealthCheck, BillingInvoiceCreate, BillingInvoiceGet, BillingInvoiceProcess, BillingOrgProvision, type BillingPeriod, BillingPeriodClose, BillingPeriodCreate, BillingPeriodProcess, type BillingPeriodProcessRequest, type BillingPeriodProcessResponse, BillingProcessBillingPeriod, BillingRecordEvent, type BillingResponse, type BillingRule, type BillingRuleRequest, type BillingRuleResponse, BillingRulesCreate, BillingRulesDelete, BillingRulesGet, type BillingRulesRequest, type BillingRulesResponse, BillingRulesUpdate, BillingSubjectPrefix, BillingUsageCostBreakdown, BillingUsageCurrent, BillingUsageHistory, BillingUsageReport, BillingUsageTopCenters, type CancelSubscriptionRequest, type CancelSubscriptionResponse, type CompleteOnboardingResponse, type ConsumeCreditsRequest, type ConsumeCreditsResponse, type CostBreakdown, type CostBreakdownRequest, type CostBreakdownResponse, type CostPreview, type CreateAffiliateOnboardingLinkRequest, type CreateAffiliateOnboardingLinkResponse, type CreateAffiliateRequest, type CreateAffiliateResponse, type CreateAgentResponse, type CreateCheckoutResponse, type CreateCheckoutSessionRequest, type CreateCheckoutSessionResponse, type CreateKnowledgeResponse, type CreateOrgResponse, type CreatePaymentLinkRequest, type CreatePaymentLinkResponse, type CreatePortalSessionRequest, type CreatePortalSessionResponse, type CreditBalance, type CreditPackage, CreditsBalance, CreditsConsume, CreditsPurchase, type CreditsResponse, type CurrentUsageRequest, type CurrentUsageResponse, CustomerCreate, CustomerGet, CustomerUpdate, type GetAffiliateAnalyticsRequest, type GetAffiliateAnalyticsResponse, type GetAffiliateCommissionsRequest, type GetAffiliateCommissionsResponse, type GetAffiliateRequest, type GetAffiliateResponse, type GetCreditsRequest, type GetCreditsResponse, type GetPlansRequest, type GetPlansResponse, type GetSubscriptionRequest, type GetSubscriptionResponse, type Invoice, type InvoiceLineItem, type InvoiceRequest, type InvoiceResponse, type ListAffiliatesRequest, type ListAffiliatesResponse, type OnboardingResponse, OnboardingState, type OrganizationBilling, type Payment, PaymentLinkCreate, PaymentLinkList, type PaymentSessionResponse, type Plan, PlansGet, PlansGetAll, type PlansResponse, PortalSessionCreate, type PortalSessionResponse, type ProvisionAgentsResponse, type ProvisionEntitiesResponse, type ProvisionWorkflowsResponse, type PurchaseCreditsRequest, type PurchaseCreditsResponse, type RevenueAnalytics, type RevenueAnalyticsRequest, type RevenueAnalyticsResponse, type RuleCoverage, RulesCreateBillingRule, RulesDeleteBillingRule, RulesGetBillingRules, RulesUpdateBillingRule, type SendInvitesResponse, type ServiceUsage, type StripeWebhookEvent, SubscriptionCancel, SubscriptionCheckout, SubscriptionCreate, SubscriptionGet, SubscriptionList, type SubscriptionResponse, SubscriptionUpdate, type TierCost, type TopCostCenter, type UsageAggregation, type UsageAlert, UsageAlertThreshold, UsageGetCostBreakdown, UsageGetCurrentUsage, UsageGetTopCostCenters, UsageGetUsageHistory, type UsageHistory, type UsagePeriod, type UsageReport, type UsageReportRequest, type UsageReportResponse, type UsageSummary, type UsageTrends, type UserUsage, WebhookInvoiceFailed, WebhookInvoicePaid, WebhookPaymentSucceeded, WebhookSubscriptionCanceled, WebhookSubscriptionCreated, WebhookSubscriptionUpdated };