@elqnt/admin 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.cjs +303 -32
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.d.cts +114 -39
- package/dist/api/index.d.ts +114 -39
- package/dist/api/index.js +276 -30
- package/dist/api/index.js.map +1 -1
- package/dist/hooks/index.cjs +769 -8
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +133 -3
- package/dist/hooks/index.d.ts +133 -3
- package/dist/hooks/index.js +766 -8
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +446 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +383 -33
- package/dist/index.js.map +1 -1
- package/dist/models/index.cjs +143 -4
- package/dist/models/index.cjs.map +1 -1
- package/dist/models/index.d.cts +1258 -12
- package/dist/models/index.d.ts +1258 -12
- package/dist/models/index.js +107 -3
- package/dist/models/index.js.map +1 -1
- package/dist/provisioning-Cfl6wbmV.d.cts +168 -0
- package/dist/provisioning-Il9t2jnH.d.ts +168 -0
- package/package.json +2 -2
- package/dist/admin-Dlsd5IZ0.d.cts +0 -767
- package/dist/admin-Dlsd5IZ0.d.ts +0 -767
|
@@ -1,767 +0,0 @@
|
|
|
1
|
-
import { ResponseMetadata } from '@elqnt/types';
|
|
2
|
-
|
|
3
|
-
interface Address {
|
|
4
|
-
line1: string;
|
|
5
|
-
line2: string;
|
|
6
|
-
city: string;
|
|
7
|
-
state: string;
|
|
8
|
-
country: string;
|
|
9
|
-
zip: string;
|
|
10
|
-
}
|
|
11
|
-
interface Org {
|
|
12
|
-
id?: string;
|
|
13
|
-
title: string;
|
|
14
|
-
logoUrl: string;
|
|
15
|
-
mainDomain: string;
|
|
16
|
-
address: Address;
|
|
17
|
-
apps: SystemAppTS[];
|
|
18
|
-
/**
|
|
19
|
-
* Status & Control
|
|
20
|
-
*/
|
|
21
|
-
status: OrgStatusTS;
|
|
22
|
-
enabled: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Classification
|
|
25
|
-
*/
|
|
26
|
-
type: OrgTypeTS;
|
|
27
|
-
size?: OrgSizeTS;
|
|
28
|
-
industry?: string;
|
|
29
|
-
tags?: string[];
|
|
30
|
-
/**
|
|
31
|
-
* Subscription (Stripe)
|
|
32
|
-
*/
|
|
33
|
-
subscription?: OrgSubscription;
|
|
34
|
-
userCount: number;
|
|
35
|
-
/**
|
|
36
|
-
* Onboarding & Provisioning
|
|
37
|
-
*/
|
|
38
|
-
onboarding?: OrgOnboarding;
|
|
39
|
-
provisioning?: OrgProvisioning;
|
|
40
|
-
/**
|
|
41
|
-
* Template & Roles
|
|
42
|
-
*/
|
|
43
|
-
template?: OrgTemplate;
|
|
44
|
-
roles: string[];
|
|
45
|
-
/**
|
|
46
|
-
* Flexible metadata
|
|
47
|
-
*/
|
|
48
|
-
metadata?: {
|
|
49
|
-
[key: string]: any;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Audit fields
|
|
53
|
-
*/
|
|
54
|
-
createdAt?: number;
|
|
55
|
-
updatedAt?: number;
|
|
56
|
-
createdBy?: string;
|
|
57
|
-
updatedBy?: string;
|
|
58
|
-
}
|
|
59
|
-
type OrgStatus = string;
|
|
60
|
-
declare const OrgStatusActive: OrgStatus;
|
|
61
|
-
declare const OrgStatusSuspended: OrgStatus;
|
|
62
|
-
declare const OrgStatuses: {
|
|
63
|
-
readonly active: {
|
|
64
|
-
readonly value: "active";
|
|
65
|
-
readonly label: "Active";
|
|
66
|
-
};
|
|
67
|
-
readonly suspended: {
|
|
68
|
-
readonly value: "suspended";
|
|
69
|
-
readonly label: "Suspended";
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
type OrgStatusTS = keyof typeof OrgStatuses;
|
|
73
|
-
type OrgStatusOptionTS = typeof OrgStatuses[OrgStatusTS];
|
|
74
|
-
/**
|
|
75
|
-
* OrgType represents whether the org is self-serve or enterprise
|
|
76
|
-
*/
|
|
77
|
-
type OrgType = string;
|
|
78
|
-
declare const OrgTypeSelfServe: OrgType;
|
|
79
|
-
declare const OrgTypeEnterprise: OrgType;
|
|
80
|
-
declare const OrgTypes: {
|
|
81
|
-
readonly "self-serve": {
|
|
82
|
-
readonly value: "self-serve";
|
|
83
|
-
readonly label: "Self-Serve";
|
|
84
|
-
};
|
|
85
|
-
readonly enterprise: {
|
|
86
|
-
readonly value: "enterprise";
|
|
87
|
-
readonly label: "Enterprise";
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
type OrgTypeTS = keyof typeof OrgTypes;
|
|
91
|
-
type OrgTypeOptionTS = typeof OrgTypes[OrgTypeTS];
|
|
92
|
-
/**
|
|
93
|
-
* OrgSize represents the size of the organization
|
|
94
|
-
*/
|
|
95
|
-
type OrgSize = string;
|
|
96
|
-
declare const OrgSizeSolo: OrgSize;
|
|
97
|
-
declare const OrgSizeSmall: OrgSize;
|
|
98
|
-
declare const OrgSizeMedium: OrgSize;
|
|
99
|
-
declare const OrgSizeLarge: OrgSize;
|
|
100
|
-
declare const OrgSizeEnterprise: OrgSize;
|
|
101
|
-
declare const OrgSizes: {
|
|
102
|
-
readonly solo: {
|
|
103
|
-
readonly value: "solo";
|
|
104
|
-
readonly label: "Just me";
|
|
105
|
-
};
|
|
106
|
-
readonly small: {
|
|
107
|
-
readonly value: "small";
|
|
108
|
-
readonly label: "2-10";
|
|
109
|
-
};
|
|
110
|
-
readonly medium: {
|
|
111
|
-
readonly value: "medium";
|
|
112
|
-
readonly label: "11-50";
|
|
113
|
-
};
|
|
114
|
-
readonly large: {
|
|
115
|
-
readonly value: "large";
|
|
116
|
-
readonly label: "51-200";
|
|
117
|
-
};
|
|
118
|
-
readonly enterprise: {
|
|
119
|
-
readonly value: "enterprise";
|
|
120
|
-
readonly label: "200+";
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
type OrgSizeTS = keyof typeof OrgSizes;
|
|
124
|
-
type OrgSizeOptionTS = typeof OrgSizes[OrgSizeTS];
|
|
125
|
-
/**
|
|
126
|
-
* OnboardingStatus represents the status of an onboarding flow
|
|
127
|
-
*/
|
|
128
|
-
type OnboardingStatus = string;
|
|
129
|
-
declare const OnboardingStatusPending: OnboardingStatus;
|
|
130
|
-
declare const OnboardingStatusInProgress: OnboardingStatus;
|
|
131
|
-
declare const OnboardingStatusCompleted: OnboardingStatus;
|
|
132
|
-
declare const OnboardingStatusSkipped: OnboardingStatus;
|
|
133
|
-
declare const OnboardingStatusLegacy: OnboardingStatus;
|
|
134
|
-
declare const OnboardingStatuses: {
|
|
135
|
-
readonly pending: {
|
|
136
|
-
readonly value: "pending";
|
|
137
|
-
readonly label: "Pending";
|
|
138
|
-
};
|
|
139
|
-
readonly in_progress: {
|
|
140
|
-
readonly value: "in_progress";
|
|
141
|
-
readonly label: "In Progress";
|
|
142
|
-
};
|
|
143
|
-
readonly completed: {
|
|
144
|
-
readonly value: "completed";
|
|
145
|
-
readonly label: "Completed";
|
|
146
|
-
};
|
|
147
|
-
readonly skipped: {
|
|
148
|
-
readonly value: "skipped";
|
|
149
|
-
readonly label: "Skipped";
|
|
150
|
-
};
|
|
151
|
-
readonly legacy: {
|
|
152
|
-
readonly value: "legacy";
|
|
153
|
-
readonly label: "Legacy";
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
type OnboardingStatusTS = keyof typeof OnboardingStatuses;
|
|
157
|
-
type OnboardingStatusOptionTS = typeof OnboardingStatuses[OnboardingStatusTS];
|
|
158
|
-
/**
|
|
159
|
-
* ProvisioningStatus represents the status of resource provisioning
|
|
160
|
-
*/
|
|
161
|
-
type ProvisioningStatus = string;
|
|
162
|
-
declare const ProvisioningStatusPending: ProvisioningStatus;
|
|
163
|
-
declare const ProvisioningStatusRunning: ProvisioningStatus;
|
|
164
|
-
declare const ProvisioningStatusCompleted: ProvisioningStatus;
|
|
165
|
-
declare const ProvisioningStatusFailed: ProvisioningStatus;
|
|
166
|
-
declare const ProvisioningStatuses: {
|
|
167
|
-
readonly pending: {
|
|
168
|
-
readonly value: "pending";
|
|
169
|
-
readonly label: "Pending";
|
|
170
|
-
};
|
|
171
|
-
readonly running: {
|
|
172
|
-
readonly value: "running";
|
|
173
|
-
readonly label: "Running";
|
|
174
|
-
};
|
|
175
|
-
readonly completed: {
|
|
176
|
-
readonly value: "completed";
|
|
177
|
-
readonly label: "Completed";
|
|
178
|
-
};
|
|
179
|
-
readonly failed: {
|
|
180
|
-
readonly value: "failed";
|
|
181
|
-
readonly label: "Failed";
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
type ProvisioningStatusTS = keyof typeof ProvisioningStatuses;
|
|
185
|
-
type ProvisioningStatusOptionTS = typeof ProvisioningStatuses[ProvisioningStatusTS];
|
|
186
|
-
/**
|
|
187
|
-
* OrgOnboarding tracks the onboarding progress for an organization
|
|
188
|
-
*/
|
|
189
|
-
interface OrgOnboarding {
|
|
190
|
-
status: OnboardingStatus;
|
|
191
|
-
currentStep: number;
|
|
192
|
-
completedAt?: number;
|
|
193
|
-
skippedSteps?: number[];
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* OrgProvisioning tracks the provisioning status of default resources
|
|
197
|
-
*/
|
|
198
|
-
interface OrgProvisioning {
|
|
199
|
-
status: ProvisioningStatus;
|
|
200
|
-
defaultAgentId?: string;
|
|
201
|
-
defaultKnowledgeGraphId?: string;
|
|
202
|
-
completedAt?: number;
|
|
203
|
-
error?: string;
|
|
204
|
-
}
|
|
205
|
-
interface OrgSubscription {
|
|
206
|
-
plan: string;
|
|
207
|
-
platform: SubscriptionPlatform;
|
|
208
|
-
status: OrgSubscriptionStatus;
|
|
209
|
-
trialEndsAt?: number;
|
|
210
|
-
currentPeriodEnd?: number;
|
|
211
|
-
seats?: number;
|
|
212
|
-
stripeCustomerId?: string;
|
|
213
|
-
stripeSubscriptionId?: string;
|
|
214
|
-
cancelledAt?: number;
|
|
215
|
-
cancelReason?: string;
|
|
216
|
-
gracePeriodEndsAt?: number;
|
|
217
|
-
}
|
|
218
|
-
type OrgSubscriptionStatus = string;
|
|
219
|
-
declare const OrgSubscriptionStatusTrialing: OrgSubscriptionStatus;
|
|
220
|
-
declare const OrgSubscriptionStatusActive: OrgSubscriptionStatus;
|
|
221
|
-
declare const OrgSubscriptionStatusPastDue: OrgSubscriptionStatus;
|
|
222
|
-
declare const OrgSubscriptionStatusCancelled: OrgSubscriptionStatus;
|
|
223
|
-
declare const OrgSubscriptionStatusUnpaid: OrgSubscriptionStatus;
|
|
224
|
-
declare const OrgSubscriptionStatuses: {
|
|
225
|
-
readonly trialing: {
|
|
226
|
-
readonly value: "trialing";
|
|
227
|
-
readonly label: "Trialing";
|
|
228
|
-
};
|
|
229
|
-
readonly active: {
|
|
230
|
-
readonly value: "active";
|
|
231
|
-
readonly label: "Active";
|
|
232
|
-
};
|
|
233
|
-
readonly past_due: {
|
|
234
|
-
readonly value: "past_due";
|
|
235
|
-
readonly label: "Past Due";
|
|
236
|
-
};
|
|
237
|
-
readonly cancelled: {
|
|
238
|
-
readonly value: "cancelled";
|
|
239
|
-
readonly label: "Cancelled";
|
|
240
|
-
};
|
|
241
|
-
readonly unpaid: {
|
|
242
|
-
readonly value: "unpaid";
|
|
243
|
-
readonly label: "Unpaid";
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
type OrgSubscriptionStatusTS = keyof typeof OrgSubscriptionStatuses;
|
|
247
|
-
type OrgSubscriptionStatusOptionTS = typeof OrgSubscriptionStatuses[OrgSubscriptionStatusTS];
|
|
248
|
-
interface OrgResponse {
|
|
249
|
-
org: Org;
|
|
250
|
-
metadata: ResponseMetadata;
|
|
251
|
-
}
|
|
252
|
-
interface OrgInfoResponse {
|
|
253
|
-
orgInfo: OrgInfo;
|
|
254
|
-
metadata: ResponseMetadata;
|
|
255
|
-
}
|
|
256
|
-
interface OrgRoleResponse {
|
|
257
|
-
role: OrgRole;
|
|
258
|
-
metadata: ResponseMetadata;
|
|
259
|
-
}
|
|
260
|
-
interface ListOrgsResponse {
|
|
261
|
-
orgs: Org[];
|
|
262
|
-
metadata: ResponseMetadata;
|
|
263
|
-
}
|
|
264
|
-
interface ListOrgRolesResponse {
|
|
265
|
-
roles: OrgRole[];
|
|
266
|
-
metadata: ResponseMetadata;
|
|
267
|
-
}
|
|
268
|
-
interface OrgInfo {
|
|
269
|
-
id?: string;
|
|
270
|
-
title: string;
|
|
271
|
-
logoUrl: string;
|
|
272
|
-
mainDomain?: string;
|
|
273
|
-
apps: SystemAppTS[];
|
|
274
|
-
}
|
|
275
|
-
interface AzureSettings {
|
|
276
|
-
appClientId?: string;
|
|
277
|
-
appClientSecret?: string;
|
|
278
|
-
azureTenantId?: string;
|
|
279
|
-
}
|
|
280
|
-
interface OrgTemplate {
|
|
281
|
-
id: string;
|
|
282
|
-
slug: string;
|
|
283
|
-
title: string;
|
|
284
|
-
}
|
|
285
|
-
interface UserOrgAccess {
|
|
286
|
-
orgId?: string;
|
|
287
|
-
orgTitle?: string;
|
|
288
|
-
roles: string[];
|
|
289
|
-
isSingleAccount: boolean;
|
|
290
|
-
entityRecordFilter?: {
|
|
291
|
-
entityName: string;
|
|
292
|
-
recordId: string;
|
|
293
|
-
displayValue?: string;
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
* UserSettings represents user preferences (elastic JSON structure)
|
|
298
|
-
*/
|
|
299
|
-
interface UserSettings {
|
|
300
|
-
theme?: string;
|
|
301
|
-
language?: string;
|
|
302
|
-
timezone?: string;
|
|
303
|
-
occupation?: string;
|
|
304
|
-
company?: string;
|
|
305
|
-
}
|
|
306
|
-
declare const ThemeOptions: {
|
|
307
|
-
readonly system: {
|
|
308
|
-
readonly value: "system";
|
|
309
|
-
readonly label: "System";
|
|
310
|
-
};
|
|
311
|
-
readonly light: {
|
|
312
|
-
readonly value: "light";
|
|
313
|
-
readonly label: "Light";
|
|
314
|
-
};
|
|
315
|
-
readonly dark: {
|
|
316
|
-
readonly value: "dark";
|
|
317
|
-
readonly label: "Dark";
|
|
318
|
-
};
|
|
319
|
-
};
|
|
320
|
-
type ThemeOptionTS = keyof typeof ThemeOptions;
|
|
321
|
-
/**
|
|
322
|
-
* NotificationPreferences represents user notification settings
|
|
323
|
-
*/
|
|
324
|
-
interface NotificationPreferences {
|
|
325
|
-
pushEnabled: boolean;
|
|
326
|
-
newChatAssignment: boolean;
|
|
327
|
-
newMessages: boolean;
|
|
328
|
-
escalations: boolean;
|
|
329
|
-
urgentOnly: boolean;
|
|
330
|
-
soundEnabled: boolean;
|
|
331
|
-
doNotDisturb: boolean;
|
|
332
|
-
dndStart?: string;
|
|
333
|
-
dndEnd?: string;
|
|
334
|
-
}
|
|
335
|
-
/**
|
|
336
|
-
* UserSource represents how a user was created
|
|
337
|
-
*/
|
|
338
|
-
type UserSource = string;
|
|
339
|
-
declare const UserSourceSignup: UserSource;
|
|
340
|
-
declare const UserSourceInvite: UserSource;
|
|
341
|
-
declare const UserSourceSSO: UserSource;
|
|
342
|
-
declare const UserSourceAPI: UserSource;
|
|
343
|
-
declare const UserSources: {
|
|
344
|
-
readonly signup: {
|
|
345
|
-
readonly value: "signup";
|
|
346
|
-
readonly label: "Signup";
|
|
347
|
-
};
|
|
348
|
-
readonly invite: {
|
|
349
|
-
readonly value: "invite";
|
|
350
|
-
readonly label: "Invite";
|
|
351
|
-
};
|
|
352
|
-
readonly sso: {
|
|
353
|
-
readonly value: "sso";
|
|
354
|
-
readonly label: "SSO";
|
|
355
|
-
};
|
|
356
|
-
readonly api: {
|
|
357
|
-
readonly value: "api";
|
|
358
|
-
readonly label: "API";
|
|
359
|
-
};
|
|
360
|
-
};
|
|
361
|
-
type UserSourceTS = keyof typeof UserSources;
|
|
362
|
-
type UserSourceOptionTS = typeof UserSources[UserSourceTS];
|
|
363
|
-
/**
|
|
364
|
-
* InviteStatus represents the status of an invitation
|
|
365
|
-
*/
|
|
366
|
-
type InviteStatus = string;
|
|
367
|
-
declare const InviteStatusPending: InviteStatus;
|
|
368
|
-
declare const InviteStatusAccepted: InviteStatus;
|
|
369
|
-
declare const InviteStatusExpired: InviteStatus;
|
|
370
|
-
declare const InviteStatusRevoked: InviteStatus;
|
|
371
|
-
declare const InviteStatuses: {
|
|
372
|
-
readonly pending: {
|
|
373
|
-
readonly value: "pending";
|
|
374
|
-
readonly label: "Pending";
|
|
375
|
-
};
|
|
376
|
-
readonly accepted: {
|
|
377
|
-
readonly value: "accepted";
|
|
378
|
-
readonly label: "Accepted";
|
|
379
|
-
};
|
|
380
|
-
readonly expired: {
|
|
381
|
-
readonly value: "expired";
|
|
382
|
-
readonly label: "Expired";
|
|
383
|
-
};
|
|
384
|
-
readonly revoked: {
|
|
385
|
-
readonly value: "revoked";
|
|
386
|
-
readonly label: "Revoked";
|
|
387
|
-
};
|
|
388
|
-
};
|
|
389
|
-
type InviteStatusTS = keyof typeof InviteStatuses;
|
|
390
|
-
type InviteStatusOptionTS = typeof InviteStatuses[InviteStatusTS];
|
|
391
|
-
/**
|
|
392
|
-
* Invite represents a team/org invitation
|
|
393
|
-
*/
|
|
394
|
-
interface Invite {
|
|
395
|
-
id?: string;
|
|
396
|
-
orgId: string;
|
|
397
|
-
email: string;
|
|
398
|
-
role: string;
|
|
399
|
-
invitedBy: string;
|
|
400
|
-
status: InviteStatusTS;
|
|
401
|
-
acceptedBy?: string;
|
|
402
|
-
acceptedAt?: number;
|
|
403
|
-
expiresAt?: number;
|
|
404
|
-
createdAt?: number;
|
|
405
|
-
updatedAt?: number;
|
|
406
|
-
}
|
|
407
|
-
interface InviteResponse {
|
|
408
|
-
invite: Invite;
|
|
409
|
-
metadata: ResponseMetadata;
|
|
410
|
-
}
|
|
411
|
-
interface ListInvitesResponse {
|
|
412
|
-
invites: Invite[];
|
|
413
|
-
metadata: ResponseMetadata;
|
|
414
|
-
}
|
|
415
|
-
/**
|
|
416
|
-
* UserOnboarding tracks the onboarding progress for a user
|
|
417
|
-
*/
|
|
418
|
-
interface UserOnboarding {
|
|
419
|
-
status: OnboardingStatus;
|
|
420
|
-
completedAt?: number;
|
|
421
|
-
}
|
|
422
|
-
/**
|
|
423
|
-
* User represents a user in the system
|
|
424
|
-
*/
|
|
425
|
-
interface User {
|
|
426
|
-
id?: string;
|
|
427
|
-
email: string;
|
|
428
|
-
firstName: string;
|
|
429
|
-
lastName: string;
|
|
430
|
-
authProviderName: string;
|
|
431
|
-
orgAccess?: UserOrgAccess[];
|
|
432
|
-
/**
|
|
433
|
-
* Status & Control
|
|
434
|
-
*/
|
|
435
|
-
enabled?: boolean;
|
|
436
|
-
/**
|
|
437
|
-
* Source tracking
|
|
438
|
-
*/
|
|
439
|
-
source?: UserSourceTS;
|
|
440
|
-
invitedBy?: string;
|
|
441
|
-
inviteStatus?: InviteStatusTS;
|
|
442
|
-
/**
|
|
443
|
-
* Team membership - LEGACY, DO NOT USE
|
|
444
|
-
* These fields are deprecated and will be removed.
|
|
445
|
-
* Use Org and OrgAccess patterns instead.
|
|
446
|
-
*/
|
|
447
|
-
isTeamAdmin?: boolean;
|
|
448
|
-
teamId?: string;
|
|
449
|
-
teamName?: string;
|
|
450
|
-
/**
|
|
451
|
-
* System admin flag
|
|
452
|
-
*/
|
|
453
|
-
isSysAdmin?: boolean;
|
|
454
|
-
/**
|
|
455
|
-
* Preferences
|
|
456
|
-
*/
|
|
457
|
-
settings?: UserSettings;
|
|
458
|
-
notificationPreferences?: NotificationPreferences;
|
|
459
|
-
/**
|
|
460
|
-
* Onboarding tracking
|
|
461
|
-
*/
|
|
462
|
-
onboarding?: UserOnboarding;
|
|
463
|
-
/**
|
|
464
|
-
* Flexible metadata
|
|
465
|
-
*/
|
|
466
|
-
metadata?: {
|
|
467
|
-
[key: string]: any;
|
|
468
|
-
};
|
|
469
|
-
/**
|
|
470
|
-
* Audit fields
|
|
471
|
-
*/
|
|
472
|
-
createdAt?: number;
|
|
473
|
-
updatedAt?: number;
|
|
474
|
-
createdBy?: string;
|
|
475
|
-
updatedBy?: string;
|
|
476
|
-
}
|
|
477
|
-
interface UserResponse {
|
|
478
|
-
user: User;
|
|
479
|
-
metadata: ResponseMetadata;
|
|
480
|
-
}
|
|
481
|
-
interface ListUsersResponse {
|
|
482
|
-
users: User[];
|
|
483
|
-
metadata: ResponseMetadata;
|
|
484
|
-
}
|
|
485
|
-
interface Team {
|
|
486
|
-
id?: string;
|
|
487
|
-
name: string;
|
|
488
|
-
isSubscribed: boolean;
|
|
489
|
-
subscribedAt?: number;
|
|
490
|
-
plan: string;
|
|
491
|
-
ownerName?: string;
|
|
492
|
-
ownerEmail?: string;
|
|
493
|
-
subscriptionPlatform?: SubscriptionPlatform;
|
|
494
|
-
subscriptionId?: string;
|
|
495
|
-
onboardingDone?: boolean;
|
|
496
|
-
onboardingData?: string;
|
|
497
|
-
}
|
|
498
|
-
type SubscriptionPlatform = string;
|
|
499
|
-
declare const SubscriptionPlatformStripe: SubscriptionPlatform;
|
|
500
|
-
declare const SubscriptionPlatformCustom: SubscriptionPlatform;
|
|
501
|
-
interface OrgRole {
|
|
502
|
-
id?: string;
|
|
503
|
-
orgId?: string;
|
|
504
|
-
title: string;
|
|
505
|
-
permissions: Permission[];
|
|
506
|
-
isSystem: boolean;
|
|
507
|
-
createdAt?: number;
|
|
508
|
-
updatedAt?: number;
|
|
509
|
-
createdBy?: string;
|
|
510
|
-
updatedBy?: string;
|
|
511
|
-
}
|
|
512
|
-
/**
|
|
513
|
-
* org db - copied from sys db
|
|
514
|
-
*/
|
|
515
|
-
interface Permission {
|
|
516
|
-
/**
|
|
517
|
-
* ID *primitive.ObjectID `bson:"_id,omitempty" json:"id"`
|
|
518
|
-
*/
|
|
519
|
-
name: string;
|
|
520
|
-
title: string;
|
|
521
|
-
isSystem: boolean;
|
|
522
|
-
}
|
|
523
|
-
type SystemApp = string;
|
|
524
|
-
declare const SystemAppAdmin: SystemApp;
|
|
525
|
-
declare const SystemAppCRM: SystemApp;
|
|
526
|
-
declare const SystemAppHelpdesk: SystemApp;
|
|
527
|
-
declare const SystemAppMarketing: SystemApp;
|
|
528
|
-
declare const SystemAppWorkflow: SystemApp;
|
|
529
|
-
declare const SystemAppAnalytics: SystemApp;
|
|
530
|
-
declare const SystemAppKnowledgeGraph: SystemApp;
|
|
531
|
-
declare const SystemAppDocumentProcessor: SystemApp;
|
|
532
|
-
declare const SystemApps: {
|
|
533
|
-
readonly admin: {
|
|
534
|
-
readonly value: "admin";
|
|
535
|
-
readonly label: "Admin";
|
|
536
|
-
};
|
|
537
|
-
readonly crm: {
|
|
538
|
-
readonly value: "crm";
|
|
539
|
-
readonly label: "CRM";
|
|
540
|
-
};
|
|
541
|
-
readonly helpdesk: {
|
|
542
|
-
readonly value: "helpdesk";
|
|
543
|
-
readonly label: "Helpdesk";
|
|
544
|
-
};
|
|
545
|
-
readonly marketing: {
|
|
546
|
-
readonly value: "marketing";
|
|
547
|
-
readonly label: "Marketing";
|
|
548
|
-
};
|
|
549
|
-
readonly workflow: {
|
|
550
|
-
readonly value: "workflow";
|
|
551
|
-
readonly label: "Workflow";
|
|
552
|
-
};
|
|
553
|
-
readonly analytics: {
|
|
554
|
-
readonly value: "analytics";
|
|
555
|
-
readonly label: "Analytics";
|
|
556
|
-
};
|
|
557
|
-
readonly "knowledge-graph": {
|
|
558
|
-
readonly value: "knowledge-graph";
|
|
559
|
-
readonly label: "Knowledge Graph";
|
|
560
|
-
};
|
|
561
|
-
readonly "document-processor": {
|
|
562
|
-
readonly value: "document-processor";
|
|
563
|
-
readonly label: "Document Processor";
|
|
564
|
-
};
|
|
565
|
-
};
|
|
566
|
-
type SystemAppTS = keyof typeof SystemApps;
|
|
567
|
-
type SystemAppOptionTS = typeof SystemApps[SystemAppTS];
|
|
568
|
-
/**
|
|
569
|
-
* UpdateUserSettingsRequest is the request payload for updating user settings
|
|
570
|
-
*/
|
|
571
|
-
interface UpdateUserSettingsRequest {
|
|
572
|
-
id: string;
|
|
573
|
-
settings?: UserSettings;
|
|
574
|
-
notificationPreferences?: NotificationPreferences;
|
|
575
|
-
}
|
|
576
|
-
/**
|
|
577
|
-
* UserSettingsResponse is the response for settings operations
|
|
578
|
-
*/
|
|
579
|
-
interface UserSettingsResponse {
|
|
580
|
-
settings?: UserSettings;
|
|
581
|
-
notificationPreferences?: NotificationPreferences;
|
|
582
|
-
metadata: ResponseMetadata;
|
|
583
|
-
}
|
|
584
|
-
/**
|
|
585
|
-
* OnboardingStep represents a step in the onboarding flow
|
|
586
|
-
*/
|
|
587
|
-
interface OnboardingStep {
|
|
588
|
-
step: number;
|
|
589
|
-
name: string;
|
|
590
|
-
status: string;
|
|
591
|
-
required: boolean;
|
|
592
|
-
}
|
|
593
|
-
/**
|
|
594
|
-
* OnboardingState represents the current state of a user's onboarding
|
|
595
|
-
*/
|
|
596
|
-
interface OnboardingState {
|
|
597
|
-
status: string;
|
|
598
|
-
currentStep: number;
|
|
599
|
-
steps: OnboardingStep[];
|
|
600
|
-
user?: User;
|
|
601
|
-
org?: Org;
|
|
602
|
-
}
|
|
603
|
-
/**
|
|
604
|
-
* OnboardingStateResponse is the response for onboarding status
|
|
605
|
-
*/
|
|
606
|
-
interface OnboardingStateResponse {
|
|
607
|
-
state: OnboardingState;
|
|
608
|
-
metadata: ResponseMetadata;
|
|
609
|
-
}
|
|
610
|
-
/**
|
|
611
|
-
* OrgInput contains the input for creating an organization
|
|
612
|
-
*/
|
|
613
|
-
interface OrgInput {
|
|
614
|
-
name: string;
|
|
615
|
-
industry?: string;
|
|
616
|
-
size: string;
|
|
617
|
-
stripeSessionId?: string;
|
|
618
|
-
}
|
|
619
|
-
/**
|
|
620
|
-
* OrgResult contains the result of organization creation
|
|
621
|
-
*/
|
|
622
|
-
interface OrgResult {
|
|
623
|
-
org?: Org;
|
|
624
|
-
nextStep: string;
|
|
625
|
-
metadata: ResponseMetadata;
|
|
626
|
-
}
|
|
627
|
-
/**
|
|
628
|
-
* WorkspaceInput is an alias for OrgInput (deprecated)
|
|
629
|
-
*/
|
|
630
|
-
type WorkspaceInput = OrgInput;
|
|
631
|
-
/**
|
|
632
|
-
* WorkspaceResult is an alias for OrgResult (deprecated)
|
|
633
|
-
*/
|
|
634
|
-
type WorkspaceResult = OrgResult;
|
|
635
|
-
/**
|
|
636
|
-
* InviteInput contains the input for sending invites
|
|
637
|
-
*/
|
|
638
|
-
interface InviteInput {
|
|
639
|
-
email: string;
|
|
640
|
-
role: string;
|
|
641
|
-
}
|
|
642
|
-
/**
|
|
643
|
-
* InvitesResult contains the result of sending invites
|
|
644
|
-
*/
|
|
645
|
-
interface InvitesResult {
|
|
646
|
-
sent: InviteSentStatus[];
|
|
647
|
-
failed: string[];
|
|
648
|
-
nextStep: string;
|
|
649
|
-
metadata: ResponseMetadata;
|
|
650
|
-
}
|
|
651
|
-
/**
|
|
652
|
-
* InviteSentStatus represents status of a sent invite
|
|
653
|
-
*/
|
|
654
|
-
interface InviteSentStatus {
|
|
655
|
-
email: string;
|
|
656
|
-
status: string;
|
|
657
|
-
}
|
|
658
|
-
/**
|
|
659
|
-
* KnowledgeInput contains the input for creating knowledge graph
|
|
660
|
-
*/
|
|
661
|
-
interface KnowledgeInput {
|
|
662
|
-
name?: string;
|
|
663
|
-
skipUpload: boolean;
|
|
664
|
-
}
|
|
665
|
-
/**
|
|
666
|
-
* KnowledgeGraphInfo contains info about a knowledge graph
|
|
667
|
-
*/
|
|
668
|
-
interface KnowledgeGraphInfo {
|
|
669
|
-
id: string;
|
|
670
|
-
name: string;
|
|
671
|
-
status: string;
|
|
672
|
-
documentCount: number;
|
|
673
|
-
}
|
|
674
|
-
/**
|
|
675
|
-
* KnowledgeResult contains the result of knowledge graph creation
|
|
676
|
-
*/
|
|
677
|
-
interface KnowledgeResult {
|
|
678
|
-
knowledgeGraph: KnowledgeGraphInfo;
|
|
679
|
-
nextStep: string;
|
|
680
|
-
metadata: ResponseMetadata;
|
|
681
|
-
}
|
|
682
|
-
/**
|
|
683
|
-
* AgentInput contains the input for creating an agent
|
|
684
|
-
*/
|
|
685
|
-
interface AgentInput {
|
|
686
|
-
name: string;
|
|
687
|
-
goal: string;
|
|
688
|
-
personality: string;
|
|
689
|
-
skills?: string[];
|
|
690
|
-
}
|
|
691
|
-
/**
|
|
692
|
-
* AgentInfo contains info about an agent
|
|
693
|
-
*/
|
|
694
|
-
interface AgentInfo {
|
|
695
|
-
id: string;
|
|
696
|
-
name: string;
|
|
697
|
-
goal: string;
|
|
698
|
-
personality: string;
|
|
699
|
-
status: string;
|
|
700
|
-
knowledgeGraphId?: string;
|
|
701
|
-
}
|
|
702
|
-
/**
|
|
703
|
-
* AgentResult contains the result of agent creation
|
|
704
|
-
*/
|
|
705
|
-
interface AgentResult {
|
|
706
|
-
agent: AgentInfo;
|
|
707
|
-
nextStep: string;
|
|
708
|
-
metadata: ResponseMetadata;
|
|
709
|
-
}
|
|
710
|
-
/**
|
|
711
|
-
* OnboardingCompleteResult contains the result of completing onboarding
|
|
712
|
-
*/
|
|
713
|
-
interface OnboardingCompleteResult {
|
|
714
|
-
status: string;
|
|
715
|
-
completedAt: number;
|
|
716
|
-
org?: Org;
|
|
717
|
-
redirectUrl: string;
|
|
718
|
-
metadata: ResponseMetadata;
|
|
719
|
-
}
|
|
720
|
-
/**
|
|
721
|
-
* PaymentSessionInput contains input for creating a payment session
|
|
722
|
-
*/
|
|
723
|
-
interface PaymentSessionInput {
|
|
724
|
-
plan: string;
|
|
725
|
-
billingCycle: string;
|
|
726
|
-
seats: number;
|
|
727
|
-
successUrl: string;
|
|
728
|
-
cancelUrl: string;
|
|
729
|
-
affiliateCode?: string;
|
|
730
|
-
}
|
|
731
|
-
/**
|
|
732
|
-
* PaymentSessionResult contains the result of creating a payment session
|
|
733
|
-
*/
|
|
734
|
-
interface PaymentSessionResult {
|
|
735
|
-
url: string;
|
|
736
|
-
sessionId: string;
|
|
737
|
-
customerId: string;
|
|
738
|
-
metadata: ResponseMetadata;
|
|
739
|
-
}
|
|
740
|
-
declare const AdminOrgCreate = "admin.orgs.create";
|
|
741
|
-
declare const AdminOrgList = "admin.orgs.list";
|
|
742
|
-
declare const AdminOrgListByMetadata = "admin.orgs.listByMetadata";
|
|
743
|
-
declare const AdminOrgGet = "admin.orgs.get";
|
|
744
|
-
declare const AdminOrgGetInfo = "admin.orgs.getInfo";
|
|
745
|
-
declare const AdminOrgGetByDomain = "admin.orgs.getByDomain";
|
|
746
|
-
declare const AdminOrgUpdate = "admin.orgs.update";
|
|
747
|
-
declare const AdminOrgDelete = "admin.orgs.delete";
|
|
748
|
-
declare const AdminOrgCreated = "system.admin.org.created";
|
|
749
|
-
declare const AdminOrgRolesGet = "admin.orgRoles.get";
|
|
750
|
-
declare const AdminOrgRolesCreate = "admin.orgRoles.create";
|
|
751
|
-
declare const AdminOrgRolesUpdate = "admin.orgRoles.update";
|
|
752
|
-
declare const AdminOrgRolesDelete = "admin.orgRoles.delete";
|
|
753
|
-
declare const AdminUsersGet = "admin.users.get";
|
|
754
|
-
declare const AdminUsersGetForOrg = "admin.users.getUsersForOrg";
|
|
755
|
-
declare const AdminUsersGetOne = "admin.users.getOne";
|
|
756
|
-
declare const AdminUsersGetOneByEmail = "admin.users.getOneByEmail";
|
|
757
|
-
declare const AdminUsersCreate = "admin.users.create";
|
|
758
|
-
declare const AdminUsersUpdate = "admin.users.update";
|
|
759
|
-
declare const AdminUsersDelete = "admin.users.delete";
|
|
760
|
-
declare const AdminUsersUpdateSettings = "admin.users.updateSettings";
|
|
761
|
-
declare const AdminUsersGetSettings = "admin.users.getSettings";
|
|
762
|
-
declare const AdminTeamsCreate = "admin.teams.create";
|
|
763
|
-
declare const AdminTeamsGetOne = "admin.teams.getOne";
|
|
764
|
-
declare const AdminTeamsGetForOrg = "admin.teams.getTeamsForOrg";
|
|
765
|
-
declare const AdminTeamsUpdateOnboarding = "admin.teams.updateOnboardingData";
|
|
766
|
-
|
|
767
|
-
export { type OnboardingState as $, type Address as A, type AgentInfo as B, type AgentInput as C, type AgentResult as D, type AzureSettings as E, type InviteInput as F, type InviteResponse as G, type InviteSentStatus as H, type Invite as I, type InviteStatus as J, InviteStatusAccepted as K, InviteStatusExpired as L, type InviteStatusOptionTS as M, InviteStatusPending as N, InviteStatusRevoked as O, type InviteStatusTS as P, InviteStatuses as Q, type InvitesResult as R, type KnowledgeGraphInfo as S, type KnowledgeInput as T, type KnowledgeResult as U, type ListInvitesResponse as V, type ListOrgRolesResponse as W, type ListOrgsResponse as X, type ListUsersResponse as Y, type NotificationPreferences as Z, type OnboardingCompleteResult as _, AdminOrgCreate as a, ProvisioningStatuses as a$, type OnboardingStateResponse as a0, type OnboardingStatus as a1, OnboardingStatusCompleted as a2, OnboardingStatusInProgress as a3, OnboardingStatusLegacy as a4, type OnboardingStatusOptionTS as a5, OnboardingStatusPending as a6, OnboardingStatusSkipped as a7, type OnboardingStatusTS as a8, OnboardingStatuses as a9, type OrgSubscription as aA, type OrgSubscriptionStatus as aB, OrgSubscriptionStatusActive as aC, OrgSubscriptionStatusCancelled as aD, type OrgSubscriptionStatusOptionTS as aE, OrgSubscriptionStatusPastDue as aF, type OrgSubscriptionStatusTS as aG, OrgSubscriptionStatusTrialing as aH, OrgSubscriptionStatusUnpaid as aI, OrgSubscriptionStatuses as aJ, type OrgTemplate as aK, type OrgType as aL, OrgTypeEnterprise as aM, type OrgTypeOptionTS as aN, OrgTypeSelfServe as aO, type OrgTypeTS as aP, OrgTypes as aQ, type PaymentSessionInput as aR, type PaymentSessionResult as aS, type Permission as aT, type ProvisioningStatus as aU, ProvisioningStatusCompleted as aV, ProvisioningStatusFailed as aW, type ProvisioningStatusOptionTS as aX, ProvisioningStatusPending as aY, ProvisioningStatusRunning as aZ, type ProvisioningStatusTS as a_, type OnboardingStep as aa, type Org as ab, type OrgInfo as ac, type OrgInfoResponse as ad, type OrgInput as ae, type OrgOnboarding as af, type OrgProvisioning as ag, type OrgResponse as ah, type OrgResult as ai, type OrgRole as aj, type OrgRoleResponse as ak, type OrgSize as al, OrgSizeEnterprise as am, OrgSizeLarge as an, OrgSizeMedium as ao, type OrgSizeOptionTS as ap, OrgSizeSmall as aq, OrgSizeSolo as ar, type OrgSizeTS as as, OrgSizes as at, type OrgStatus as au, OrgStatusActive as av, type OrgStatusOptionTS as aw, OrgStatusSuspended as ax, type OrgStatusTS as ay, OrgStatuses as az, AdminOrgCreated as b, type SubscriptionPlatform as b0, SubscriptionPlatformCustom as b1, SubscriptionPlatformStripe as b2, type SystemApp as b3, SystemAppAdmin as b4, SystemAppAnalytics as b5, SystemAppCRM as b6, SystemAppDocumentProcessor as b7, SystemAppHelpdesk as b8, SystemAppKnowledgeGraph as b9, SystemAppMarketing as ba, type SystemAppOptionTS as bb, type SystemAppTS as bc, SystemAppWorkflow as bd, SystemApps as be, type Team as bf, type ThemeOptionTS as bg, ThemeOptions as bh, type UpdateUserSettingsRequest as bi, type User as bj, type UserOnboarding as bk, type UserOrgAccess as bl, type UserResponse as bm, type UserSettings as bn, type UserSettingsResponse as bo, type UserSource as bp, UserSourceAPI as bq, UserSourceInvite as br, type UserSourceOptionTS as bs, UserSourceSSO as bt, UserSourceSignup as bu, type UserSourceTS as bv, UserSources as bw, type WorkspaceInput as bx, type WorkspaceResult as by, AdminOrgDelete as c, AdminOrgGet as d, AdminOrgGetByDomain as e, AdminOrgGetInfo as f, AdminOrgList as g, AdminOrgListByMetadata as h, AdminOrgRolesCreate as i, AdminOrgRolesDelete as j, AdminOrgRolesGet as k, AdminOrgRolesUpdate as l, AdminOrgUpdate as m, AdminTeamsCreate as n, AdminTeamsGetForOrg as o, AdminTeamsGetOne as p, AdminTeamsUpdateOnboarding as q, AdminUsersCreate as r, AdminUsersDelete as s, AdminUsersGet as t, AdminUsersGetForOrg as u, AdminUsersGetOne as v, AdminUsersGetOneByEmail as w, AdminUsersGetSettings as x, AdminUsersUpdate as y, AdminUsersUpdateSettings as z };
|