@elqnt/admin 2.0.5 → 2.1.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/index.js CHANGED
@@ -1,14 +1,356 @@
1
+ // models/admin.ts
2
+ var OrgStatusActive = "active";
3
+ var OrgStatusSuspended = "suspended";
4
+ var OrgStatuses = {
5
+ active: { value: "active", label: "Active" },
6
+ suspended: { value: "suspended", label: "Suspended" }
7
+ };
8
+ var OrgTypeSelfServe = "self-serve";
9
+ var OrgTypeEnterprise = "enterprise";
10
+ var OrgTypes = {
11
+ "self-serve": { value: "self-serve", label: "Self-Serve" },
12
+ enterprise: { value: "enterprise", label: "Enterprise" }
13
+ };
14
+ var OrgSizeSolo = "solo";
15
+ var OrgSizeSmall = "small";
16
+ var OrgSizeMedium = "medium";
17
+ var OrgSizeLarge = "large";
18
+ var OrgSizeEnterprise = "enterprise";
19
+ var OrgSizes = {
20
+ solo: { value: "solo", label: "Just me" },
21
+ small: { value: "small", label: "2-10" },
22
+ medium: { value: "medium", label: "11-50" },
23
+ large: { value: "large", label: "51-200" },
24
+ enterprise: { value: "enterprise", label: "200+" }
25
+ };
26
+ var OnboardingStatusPending = "pending";
27
+ var OnboardingStatusInProgress = "in_progress";
28
+ var OnboardingStatusCompleted = "completed";
29
+ var OnboardingStatusSkipped = "skipped";
30
+ var OnboardingStatusLegacy = "legacy";
31
+ var OnboardingStatuses = {
32
+ pending: { value: "pending", label: "Pending" },
33
+ in_progress: { value: "in_progress", label: "In Progress" },
34
+ completed: { value: "completed", label: "Completed" },
35
+ skipped: { value: "skipped", label: "Skipped" },
36
+ legacy: { value: "legacy", label: "Legacy" }
37
+ };
38
+ var ProvisioningStatusPending = "pending";
39
+ var ProvisioningStatusRunning = "running";
40
+ var ProvisioningStatusCompleted = "completed";
41
+ var ProvisioningStatusFailed = "failed";
42
+ var ProvisioningStatuses = {
43
+ pending: { value: "pending", label: "Pending" },
44
+ running: { value: "running", label: "Running" },
45
+ completed: { value: "completed", label: "Completed" },
46
+ failed: { value: "failed", label: "Failed" }
47
+ };
48
+ var OrgSubscriptionStatusTrialing = "trialing";
49
+ var OrgSubscriptionStatusActive = "active";
50
+ var OrgSubscriptionStatusPastDue = "past_due";
51
+ var OrgSubscriptionStatusCancelled = "cancelled";
52
+ var OrgSubscriptionStatusUnpaid = "unpaid";
53
+ var OrgSubscriptionStatuses = {
54
+ trialing: { value: "trialing", label: "Trialing" },
55
+ active: { value: "active", label: "Active" },
56
+ past_due: { value: "past_due", label: "Past Due" },
57
+ cancelled: { value: "cancelled", label: "Cancelled" },
58
+ unpaid: { value: "unpaid", label: "Unpaid" }
59
+ };
60
+ var ThemeOptions = {
61
+ system: { value: "system", label: "System" },
62
+ light: { value: "light", label: "Light" },
63
+ dark: { value: "dark", label: "Dark" }
64
+ };
65
+ var UserSourceSignup = "signup";
66
+ var UserSourceInvite = "invite";
67
+ var UserSourceSSO = "sso";
68
+ var UserSourceAPI = "api";
69
+ var UserSources = {
70
+ signup: { value: "signup", label: "Signup" },
71
+ invite: { value: "invite", label: "Invite" },
72
+ sso: { value: "sso", label: "SSO" },
73
+ api: { value: "api", label: "API" }
74
+ };
75
+ var InviteStatusPending = "pending";
76
+ var InviteStatusAccepted = "accepted";
77
+ var InviteStatusExpired = "expired";
78
+ var InviteStatusRevoked = "revoked";
79
+ var InviteStatuses = {
80
+ pending: { value: "pending", label: "Pending" },
81
+ accepted: { value: "accepted", label: "Accepted" },
82
+ expired: { value: "expired", label: "Expired" },
83
+ revoked: { value: "revoked", label: "Revoked" }
84
+ };
85
+ var SubscriptionPlatformStripe = "stripe";
86
+ var SubscriptionPlatformCustom = "custom";
87
+ var SystemAppAdmin = "admin";
88
+ var SystemAppCRM = "crm";
89
+ var SystemAppHelpdesk = "helpdesk";
90
+ var SystemAppMarketing = "marketing";
91
+ var SystemAppWorkflow = "workflow";
92
+ var SystemAppAnalytics = "analytics";
93
+ var SystemAppKnowledgeGraph = "knowledge-graph";
94
+ var SystemAppDocumentProcessor = "document-processor";
95
+ var SystemApps = {
96
+ admin: { value: "admin", label: "Admin" },
97
+ crm: { value: "crm", label: "CRM" },
98
+ helpdesk: { value: "helpdesk", label: "Helpdesk" },
99
+ marketing: { value: "marketing", label: "Marketing" },
100
+ workflow: { value: "workflow", label: "Workflow" },
101
+ analytics: { value: "analytics", label: "Analytics" },
102
+ "knowledge-graph": { value: "knowledge-graph", label: "Knowledge Graph" },
103
+ "document-processor": { value: "document-processor", label: "Document Processor" }
104
+ };
105
+ var AdminOrgCreate = "admin.orgs.create";
106
+ var AdminOrgList = "admin.orgs.list";
107
+ var AdminOrgListByMetadata = "admin.orgs.listByMetadata";
108
+ var AdminOrgGet = "admin.orgs.get";
109
+ var AdminOrgGetInfo = "admin.orgs.getInfo";
110
+ var AdminOrgGetByDomain = "admin.orgs.getByDomain";
111
+ var AdminOrgUpdate = "admin.orgs.update";
112
+ var AdminOrgDelete = "admin.orgs.delete";
113
+ var AdminOrgCreated = "system.admin.org.created";
114
+ var AdminOrgRolesGet = "admin.orgRoles.get";
115
+ var AdminOrgRolesCreate = "admin.orgRoles.create";
116
+ var AdminOrgRolesUpdate = "admin.orgRoles.update";
117
+ var AdminOrgRolesDelete = "admin.orgRoles.delete";
118
+ var AdminUsersGet = "admin.users.get";
119
+ var AdminUsersGetForOrg = "admin.users.getUsersForOrg";
120
+ var AdminUsersGetOne = "admin.users.getOne";
121
+ var AdminUsersGetOneByEmail = "admin.users.getOneByEmail";
122
+ var AdminUsersCreate = "admin.users.create";
123
+ var AdminUsersUpdate = "admin.users.update";
124
+ var AdminUsersDelete = "admin.users.delete";
125
+ var AdminUsersUpdateSettings = "admin.users.updateSettings";
126
+ var AdminUsersGetSettings = "admin.users.getSettings";
127
+ var AdminTeamsCreate = "admin.teams.create";
128
+ var AdminTeamsGetOne = "admin.teams.getOne";
129
+ var AdminTeamsGetForOrg = "admin.teams.getTeamsForOrg";
130
+ var AdminTeamsUpdateOnboarding = "admin.teams.updateOnboardingData";
131
+
132
+ // models/billing.ts
133
+ var BillingRecordEvent = "billing.events.record";
134
+ var BillingGetUsageReport = "billing.usage.report";
135
+ var BillingGetInvoice = "billing.invoice.get";
136
+ var BillingProcessBillingPeriod = "billing.period.process";
137
+ var UsageGetCurrentUsage = "billing.usage.current";
138
+ var UsageGetUsageHistory = "billing.usage.history";
139
+ var UsageGetCostBreakdown = "billing.usage.breakdown";
140
+ var UsageGetTopCostCenters = "billing.usage.top_centers";
141
+ var RulesGetBillingRules = "billing.rules.get";
142
+ var RulesCreateBillingRule = "billing.rules.create";
143
+ var RulesUpdateBillingRule = "billing.rules.update";
144
+ var RulesDeleteBillingRule = "billing.rules.delete";
145
+ var SubscriptionCreate = "billing.subscription.create";
146
+ var SubscriptionGet = "billing.subscription.get";
147
+ var SubscriptionUpdate = "billing.subscription.update";
148
+ var SubscriptionCancel = "billing.subscription.cancel";
149
+ var SubscriptionList = "billing.subscription.list";
150
+ var SubscriptionCheckout = "billing.subscription.checkout";
151
+ var PaymentLinkCreate = "billing.payment-link.create";
152
+ var PaymentLinkList = "billing.payment-link.list";
153
+ var PortalSessionCreate = "billing.portal.create";
154
+ var CustomerCreate = "billing.customer.create";
155
+ var CustomerGet = "billing.customer.get";
156
+ var CustomerUpdate = "billing.customer.update";
157
+ var CreditsBalance = "billing.credits.balance";
158
+ var CreditsPurchase = "billing.credits.purchase";
159
+ var CreditsConsume = "billing.credits.consume";
160
+ var PlansGet = "billing.plans.get";
161
+ var PlansGetAll = "billing.plans.list";
162
+ var UsageAlertThreshold = "billing.usage.alert";
163
+ var WebhookSubscriptionCreated = "billing.webhook.subscription.created";
164
+ var WebhookSubscriptionUpdated = "billing.webhook.subscription.updated";
165
+ var WebhookSubscriptionCanceled = "billing.webhook.subscription.canceled";
166
+ var WebhookInvoicePaid = "billing.webhook.invoice.paid";
167
+ var WebhookInvoiceFailed = "billing.webhook.invoice.failed";
168
+ var WebhookPaymentSucceeded = "billing.webhook.payment.succeeded";
169
+ var AffiliateCreate = "billing.affiliate.create";
170
+ var AffiliateGet = "billing.affiliate.get";
171
+ var AffiliateList = "billing.affiliate.list";
172
+ var AffiliateUpdate = "billing.affiliate.update";
173
+ var AffiliateOnboard = "billing.affiliate.onboard";
174
+ var AffiliateCommissions = "billing.affiliate.commissions";
175
+ var AffiliateAnalytics = "billing.affiliate.analytics";
176
+ var AnalyticsRevenue = "billing.analytics.revenue";
177
+ var AnalyticsUsage = "billing.analytics.usage";
178
+ var AnalyticsChurn = "billing.analytics.churn";
179
+ var BillingSubjectPrefix = "billing";
180
+ var BillingEventsRecord = "billing.events.record";
181
+ var BillingUsageReport = "billing.usage.report";
182
+ var BillingUsageCurrent = "billing.usage.current";
183
+ var BillingUsageHistory = "billing.usage.history";
184
+ var BillingUsageCostBreakdown = "billing.usage.breakdown";
185
+ var BillingUsageTopCenters = "billing.usage.top_centers";
186
+ var BillingInvoiceGet = "billing.invoice.get";
187
+ var BillingInvoiceCreate = "billing.invoice.create";
188
+ var BillingInvoiceProcess = "billing.invoice.process";
189
+ var BillingPeriodCreate = "billing.period.create";
190
+ var BillingPeriodClose = "billing.period.close";
191
+ var BillingPeriodProcess = "billing.period.process";
192
+ var BillingRulesGet = "billing.rules.get";
193
+ var BillingRulesCreate = "billing.rules.create";
194
+ var BillingRulesUpdate = "billing.rules.update";
195
+ var BillingRulesDelete = "billing.rules.delete";
196
+ var BillingOrgProvision = "billing.org.provision";
197
+ var BillingHealthCheck = "billing.health.check";
198
+
199
+ // api/index.ts
200
+ import { browserApiRequest as browserApiRequest4, clearGatewayTokenCache } from "@elqnt/api-client/browser";
201
+
202
+ // api/orgs.ts
203
+ import { browserApiRequest } from "@elqnt/api-client/browser";
204
+ async function listOrgsApi(options) {
205
+ return browserApiRequest("/api/v1/admin/orgs", {
206
+ method: "GET",
207
+ ...options
208
+ });
209
+ }
210
+ async function createOrgApi(org, options) {
211
+ return browserApiRequest("/api/v1/admin/orgs", {
212
+ method: "POST",
213
+ body: org,
214
+ ...options
215
+ });
216
+ }
217
+ async function getOrgApi(orgId, options) {
218
+ return browserApiRequest(`/api/v1/admin/orgs/${orgId}`, {
219
+ method: "GET",
220
+ ...options
221
+ });
222
+ }
223
+ async function updateOrgApi(orgId, updates, options) {
224
+ return browserApiRequest(`/api/v1/admin/orgs/${orgId}`, {
225
+ method: "PUT",
226
+ body: updates,
227
+ ...options
228
+ });
229
+ }
230
+ async function deleteOrgApi(orgId, options) {
231
+ return browserApiRequest(`/api/v1/admin/orgs/${orgId}`, {
232
+ method: "DELETE",
233
+ ...options
234
+ });
235
+ }
236
+ async function getOrgInfoApi(orgId, options) {
237
+ return browserApiRequest(`/api/v1/admin/orgs/${orgId}/info`, {
238
+ method: "GET",
239
+ ...options
240
+ });
241
+ }
242
+
243
+ // api/users.ts
244
+ import { browserApiRequest as browserApiRequest2 } from "@elqnt/api-client/browser";
245
+ async function listUsersApi(options) {
246
+ return browserApiRequest2("/api/v1/admin/users", {
247
+ method: "GET",
248
+ ...options
249
+ });
250
+ }
251
+ async function createUserApi(user, options) {
252
+ return browserApiRequest2("/api/v1/admin/users", {
253
+ method: "POST",
254
+ body: user,
255
+ ...options
256
+ });
257
+ }
258
+ async function getUserApi(userId, options) {
259
+ return browserApiRequest2(`/api/v1/admin/users/${userId}`, {
260
+ method: "GET",
261
+ ...options
262
+ });
263
+ }
264
+ async function getUserByEmailApi(email, options) {
265
+ return browserApiRequest2(`/api/v1/admin/users/by-email?email=${encodeURIComponent(email)}`, {
266
+ method: "GET",
267
+ ...options
268
+ });
269
+ }
270
+ async function updateUserApi(userId, updates, options) {
271
+ return browserApiRequest2(`/api/v1/admin/users/${userId}`, {
272
+ method: "PUT",
273
+ body: updates,
274
+ ...options
275
+ });
276
+ }
277
+ async function deleteUserApi(userId, options) {
278
+ return browserApiRequest2(`/api/v1/admin/users/${userId}`, {
279
+ method: "DELETE",
280
+ ...options
281
+ });
282
+ }
283
+ async function getUserSettingsApi(userId, options) {
284
+ return browserApiRequest2(`/api/v1/admin/users/${userId}/settings`, {
285
+ method: "GET",
286
+ ...options
287
+ });
288
+ }
289
+ async function updateUserSettingsApi(userId, settings, options) {
290
+ return browserApiRequest2(`/api/v1/admin/users/${userId}/settings`, {
291
+ method: "PUT",
292
+ body: settings,
293
+ ...options
294
+ });
295
+ }
296
+
297
+ // api/invites.ts
298
+ import { browserApiRequest as browserApiRequest3 } from "@elqnt/api-client/browser";
299
+ async function listInvitesApi(options) {
300
+ return browserApiRequest3("/api/v1/admin/invites", {
301
+ method: "GET",
302
+ ...options
303
+ });
304
+ }
305
+ async function sendInvitesApi(invites, options) {
306
+ return browserApiRequest3("/api/v1/admin/invites", {
307
+ method: "POST",
308
+ body: { invites },
309
+ ...options
310
+ });
311
+ }
312
+ async function sendInviteApi(invite, options) {
313
+ return browserApiRequest3("/api/v1/admin/invites/single", {
314
+ method: "POST",
315
+ body: invite,
316
+ ...options
317
+ });
318
+ }
319
+ async function getInviteApi(inviteId, options) {
320
+ return browserApiRequest3(`/api/v1/admin/invites/${inviteId}`, {
321
+ method: "GET",
322
+ ...options
323
+ });
324
+ }
325
+ async function resendInviteApi(inviteId, options) {
326
+ return browserApiRequest3(`/api/v1/admin/invites/${inviteId}/resend`, {
327
+ method: "POST",
328
+ ...options
329
+ });
330
+ }
331
+ async function revokeInviteApi(inviteId, options) {
332
+ return browserApiRequest3(`/api/v1/admin/invites/${inviteId}`, {
333
+ method: "DELETE",
334
+ ...options
335
+ });
336
+ }
337
+ async function acceptInviteApi(inviteId, options) {
338
+ return browserApiRequest3(`/api/v1/admin/invites/${inviteId}/accept`, {
339
+ method: "POST",
340
+ ...options
341
+ });
342
+ }
343
+
1
344
  // api/index.ts
2
- import { browserApiRequest, clearGatewayTokenCache } from "@elqnt/api-client/browser";
3
345
  async function getOnboardingStatusApi(options) {
4
- return browserApiRequest("/api/v1/onboarding/status", {
346
+ return browserApiRequest4("/api/v1/onboarding/status", {
5
347
  method: "GET",
6
348
  ...options,
7
349
  orgId: options.orgId || ""
8
350
  });
9
351
  }
10
352
  async function startOnboardingApi(options) {
11
- return browserApiRequest("/api/v1/onboarding/start", {
353
+ return browserApiRequest4("/api/v1/onboarding/start", {
12
354
  method: "POST",
13
355
  body: {},
14
356
  ...options,
@@ -16,7 +358,7 @@ async function startOnboardingApi(options) {
16
358
  });
17
359
  }
18
360
  async function createPaymentSessionApi(params, options) {
19
- return browserApiRequest("/api/v1/onboarding/step/payment", {
361
+ return browserApiRequest4("/api/v1/onboarding/step/payment", {
20
362
  method: "POST",
21
363
  body: params,
22
364
  ...options,
@@ -24,7 +366,7 @@ async function createPaymentSessionApi(params, options) {
24
366
  });
25
367
  }
26
368
  async function createOrganizationApi(org, options) {
27
- return browserApiRequest("/api/v1/onboarding/step/organization", {
369
+ return browserApiRequest4("/api/v1/onboarding/step/organization", {
28
370
  method: "POST",
29
371
  body: org,
30
372
  ...options,
@@ -32,7 +374,7 @@ async function createOrganizationApi(org, options) {
32
374
  });
33
375
  }
34
376
  async function sendOnboardingInvitesApi(invites, options) {
35
- return browserApiRequest("/api/v1/onboarding/step/invites", {
377
+ return browserApiRequest4("/api/v1/onboarding/step/invites", {
36
378
  method: "POST",
37
379
  body: { invites },
38
380
  ...options,
@@ -40,7 +382,7 @@ async function sendOnboardingInvitesApi(invites, options) {
40
382
  });
41
383
  }
42
384
  async function createOnboardingKnowledgeApi(knowledge, options) {
43
- return browserApiRequest("/api/v1/onboarding/step/knowledge", {
385
+ return browserApiRequest4("/api/v1/onboarding/step/knowledge", {
44
386
  method: "POST",
45
387
  body: knowledge,
46
388
  ...options,
@@ -48,7 +390,7 @@ async function createOnboardingKnowledgeApi(knowledge, options) {
48
390
  });
49
391
  }
50
392
  async function createOnboardingAgentApi(agent, options) {
51
- return browserApiRequest("/api/v1/onboarding/step/agent", {
393
+ return browserApiRequest4("/api/v1/onboarding/step/agent", {
52
394
  method: "POST",
53
395
  body: agent,
54
396
  ...options,
@@ -56,7 +398,7 @@ async function createOnboardingAgentApi(agent, options) {
56
398
  });
57
399
  }
58
400
  async function createAgentWithSkillsApi(payload, options) {
59
- return browserApiRequest("/api/v1/onboarding/agent-with-skills", {
401
+ return browserApiRequest4("/api/v1/onboarding/agent-with-skills", {
60
402
  method: "POST",
61
403
  body: payload,
62
404
  ...options,
@@ -64,7 +406,7 @@ async function createAgentWithSkillsApi(payload, options) {
64
406
  });
65
407
  }
66
408
  async function completeOnboardingApi(options) {
67
- return browserApiRequest("/api/v1/onboarding/complete", {
409
+ return browserApiRequest4("/api/v1/onboarding/complete", {
68
410
  method: "POST",
69
411
  body: {},
70
412
  ...options,
@@ -72,7 +414,7 @@ async function completeOnboardingApi(options) {
72
414
  });
73
415
  }
74
416
  async function skipOnboardingStepApi(step, options) {
75
- return browserApiRequest("/api/v1/onboarding/skip-step", {
417
+ return browserApiRequest4("/api/v1/onboarding/skip-step", {
76
418
  method: "POST",
77
419
  body: { step },
78
420
  ...options,
@@ -80,114 +422,257 @@ async function skipOnboardingStepApi(step, options) {
80
422
  });
81
423
  }
82
424
  async function getOrgSettingsApi(options) {
83
- return browserApiRequest("/api/v1/org/settings", {
425
+ return browserApiRequest4("/api/v1/org/settings", {
84
426
  method: "GET",
85
427
  ...options
86
428
  });
87
429
  }
88
430
  async function createOrgSettingsApi(settings, options) {
89
- return browserApiRequest("/api/v1/org/settings", {
431
+ return browserApiRequest4("/api/v1/org/settings", {
90
432
  method: "POST",
91
433
  body: settings,
92
434
  ...options
93
435
  });
94
436
  }
95
437
  async function updateOrgSettingsApi(settings, options) {
96
- return browserApiRequest("/api/v1/org/settings", {
438
+ return browserApiRequest4("/api/v1/org/settings", {
97
439
  method: "PUT",
98
440
  body: settings,
99
441
  ...options
100
442
  });
101
443
  }
102
444
  async function updateOrgAgentsApi(agentIds, options) {
103
- return browserApiRequest("/api/v1/org/agents", {
445
+ return browserApiRequest4("/api/v1/org/agents", {
104
446
  method: "PUT",
105
447
  body: { agentIds },
106
448
  ...options
107
449
  });
108
450
  }
109
451
  async function updateEntityDefinitionsApi(entityNames, options) {
110
- return browserApiRequest("/api/v1/org/entities", {
452
+ return browserApiRequest4("/api/v1/org/entities", {
111
453
  method: "PUT",
112
454
  body: { entityNames },
113
455
  ...options
114
456
  });
115
457
  }
116
458
  async function updateWorkflowDefinitionsApi(workflowIds, options) {
117
- return browserApiRequest("/api/v1/org/workflows", {
459
+ return browserApiRequest4("/api/v1/org/workflows", {
118
460
  method: "PUT",
119
461
  body: { workflowIds },
120
462
  ...options
121
463
  });
122
464
  }
123
465
  async function getBillingPlansApi(options) {
124
- return browserApiRequest("/api/v1/billing/plans", {
466
+ return browserApiRequest4("/api/v1/billing/plans", {
125
467
  method: "GET",
126
468
  ...options
127
469
  });
128
470
  }
129
471
  async function getSubscriptionApi(options) {
130
- return browserApiRequest("/api/v1/billing/subscription", {
472
+ return browserApiRequest4("/api/v1/billing/subscription", {
131
473
  method: "GET",
132
474
  ...options
133
475
  });
134
476
  }
135
477
  async function getCreditsApi(options) {
136
- return browserApiRequest("/api/v1/billing/credits", {
478
+ return browserApiRequest4("/api/v1/billing/credits", {
137
479
  method: "GET",
138
480
  ...options
139
481
  });
140
482
  }
141
483
  async function createCheckoutSessionApi(params, options) {
142
- return browserApiRequest("/api/v1/billing/checkout", {
484
+ return browserApiRequest4("/api/v1/billing/checkout", {
143
485
  method: "POST",
144
486
  body: params,
145
487
  ...options
146
488
  });
147
489
  }
148
490
  async function createPortalSessionApi(params, options) {
149
- return browserApiRequest("/api/v1/billing/portal", {
491
+ return browserApiRequest4("/api/v1/billing/portal", {
150
492
  method: "POST",
151
493
  body: params,
152
494
  ...options
153
495
  });
154
496
  }
155
497
  async function cancelSubscriptionApi(options) {
156
- return browserApiRequest("/api/v1/billing/subscription/cancel", {
498
+ return browserApiRequest4("/api/v1/billing/subscription/cancel", {
157
499
  method: "POST",
158
500
  body: {},
159
501
  ...options
160
502
  });
161
503
  }
162
504
  async function purchaseCreditsApi(params, options) {
163
- return browserApiRequest("/api/v1/billing/credits/purchase", {
505
+ return browserApiRequest4("/api/v1/billing/credits/purchase", {
164
506
  method: "POST",
165
507
  body: params,
166
508
  ...options
167
509
  });
168
510
  }
169
511
  async function provisionDefaultAgentsApi(definitions, options) {
170
- return browserApiRequest("/api/v1/admin/provision/agents", {
512
+ return browserApiRequest4("/api/v1/admin/provision/agents", {
171
513
  method: "POST",
172
514
  body: { definitions },
173
515
  ...options
174
516
  });
175
517
  }
176
518
  async function provisionEntitiesApi(definitions, options) {
177
- return browserApiRequest("/api/v1/admin/entities/update", {
519
+ return browserApiRequest4("/api/v1/admin/entities/update", {
178
520
  method: "POST",
179
521
  body: { definitions },
180
522
  ...options
181
523
  });
182
524
  }
183
525
  async function provisionWorkflowsApi(definitions, options) {
184
- return browserApiRequest("/api/v1/admin/provision/workflows", {
526
+ return browserApiRequest4("/api/v1/admin/provision/workflows", {
185
527
  method: "POST",
186
528
  body: { definitions },
187
529
  ...options
188
530
  });
189
531
  }
190
532
  export {
533
+ AdminOrgCreate,
534
+ AdminOrgCreated,
535
+ AdminOrgDelete,
536
+ AdminOrgGet,
537
+ AdminOrgGetByDomain,
538
+ AdminOrgGetInfo,
539
+ AdminOrgList,
540
+ AdminOrgListByMetadata,
541
+ AdminOrgRolesCreate,
542
+ AdminOrgRolesDelete,
543
+ AdminOrgRolesGet,
544
+ AdminOrgRolesUpdate,
545
+ AdminOrgUpdate,
546
+ AdminTeamsCreate,
547
+ AdminTeamsGetForOrg,
548
+ AdminTeamsGetOne,
549
+ AdminTeamsUpdateOnboarding,
550
+ AdminUsersCreate,
551
+ AdminUsersDelete,
552
+ AdminUsersGet,
553
+ AdminUsersGetForOrg,
554
+ AdminUsersGetOne,
555
+ AdminUsersGetOneByEmail,
556
+ AdminUsersGetSettings,
557
+ AdminUsersUpdate,
558
+ AdminUsersUpdateSettings,
559
+ AffiliateAnalytics,
560
+ AffiliateCommissions,
561
+ AffiliateCreate,
562
+ AffiliateGet,
563
+ AffiliateList,
564
+ AffiliateOnboard,
565
+ AffiliateUpdate,
566
+ AnalyticsChurn,
567
+ AnalyticsRevenue,
568
+ AnalyticsUsage,
569
+ BillingEventsRecord,
570
+ BillingGetInvoice,
571
+ BillingGetUsageReport,
572
+ BillingHealthCheck,
573
+ BillingInvoiceCreate,
574
+ BillingInvoiceGet,
575
+ BillingInvoiceProcess,
576
+ BillingOrgProvision,
577
+ BillingPeriodClose,
578
+ BillingPeriodCreate,
579
+ BillingPeriodProcess,
580
+ BillingProcessBillingPeriod,
581
+ BillingRecordEvent,
582
+ BillingRulesCreate,
583
+ BillingRulesDelete,
584
+ BillingRulesGet,
585
+ BillingRulesUpdate,
586
+ BillingSubjectPrefix,
587
+ BillingUsageCostBreakdown,
588
+ BillingUsageCurrent,
589
+ BillingUsageHistory,
590
+ BillingUsageReport,
591
+ BillingUsageTopCenters,
592
+ CreditsBalance,
593
+ CreditsConsume,
594
+ CreditsPurchase,
595
+ CustomerCreate,
596
+ CustomerGet,
597
+ CustomerUpdate,
598
+ InviteStatusAccepted,
599
+ InviteStatusExpired,
600
+ InviteStatusPending,
601
+ InviteStatusRevoked,
602
+ InviteStatuses,
603
+ OnboardingStatusCompleted,
604
+ OnboardingStatusInProgress,
605
+ OnboardingStatusLegacy,
606
+ OnboardingStatusPending,
607
+ OnboardingStatusSkipped,
608
+ OnboardingStatuses,
609
+ OrgSizeEnterprise,
610
+ OrgSizeLarge,
611
+ OrgSizeMedium,
612
+ OrgSizeSmall,
613
+ OrgSizeSolo,
614
+ OrgSizes,
615
+ OrgStatusActive,
616
+ OrgStatusSuspended,
617
+ OrgStatuses,
618
+ OrgSubscriptionStatusActive,
619
+ OrgSubscriptionStatusCancelled,
620
+ OrgSubscriptionStatusPastDue,
621
+ OrgSubscriptionStatusTrialing,
622
+ OrgSubscriptionStatusUnpaid,
623
+ OrgSubscriptionStatuses,
624
+ OrgTypeEnterprise,
625
+ OrgTypeSelfServe,
626
+ OrgTypes,
627
+ PaymentLinkCreate,
628
+ PaymentLinkList,
629
+ PlansGet,
630
+ PlansGetAll,
631
+ PortalSessionCreate,
632
+ ProvisioningStatusCompleted,
633
+ ProvisioningStatusFailed,
634
+ ProvisioningStatusPending,
635
+ ProvisioningStatusRunning,
636
+ ProvisioningStatuses,
637
+ RulesCreateBillingRule,
638
+ RulesDeleteBillingRule,
639
+ RulesGetBillingRules,
640
+ RulesUpdateBillingRule,
641
+ SubscriptionCancel,
642
+ SubscriptionCheckout,
643
+ SubscriptionCreate,
644
+ SubscriptionGet,
645
+ SubscriptionList,
646
+ SubscriptionPlatformCustom,
647
+ SubscriptionPlatformStripe,
648
+ SubscriptionUpdate,
649
+ SystemAppAdmin,
650
+ SystemAppAnalytics,
651
+ SystemAppCRM,
652
+ SystemAppDocumentProcessor,
653
+ SystemAppHelpdesk,
654
+ SystemAppKnowledgeGraph,
655
+ SystemAppMarketing,
656
+ SystemAppWorkflow,
657
+ SystemApps,
658
+ ThemeOptions,
659
+ UsageAlertThreshold,
660
+ UsageGetCostBreakdown,
661
+ UsageGetCurrentUsage,
662
+ UsageGetTopCostCenters,
663
+ UsageGetUsageHistory,
664
+ UserSourceAPI,
665
+ UserSourceInvite,
666
+ UserSourceSSO,
667
+ UserSourceSignup,
668
+ UserSources,
669
+ WebhookInvoiceFailed,
670
+ WebhookInvoicePaid,
671
+ WebhookPaymentSucceeded,
672
+ WebhookSubscriptionCanceled,
673
+ WebhookSubscriptionCreated,
674
+ WebhookSubscriptionUpdated,
675
+ acceptInviteApi,
191
676
  cancelSubscriptionApi,
192
677
  clearGatewayTokenCache,
193
678
  completeOnboardingApi,
@@ -195,25 +680,45 @@ export {
195
680
  createCheckoutSessionApi,
196
681
  createOnboardingAgentApi,
197
682
  createOnboardingKnowledgeApi,
683
+ createOrgApi,
198
684
  createOrgSettingsApi,
199
685
  createOrganizationApi,
200
686
  createPaymentSessionApi,
201
687
  createPortalSessionApi,
688
+ createUserApi,
689
+ deleteOrgApi,
690
+ deleteUserApi,
202
691
  getBillingPlansApi,
203
692
  getCreditsApi,
693
+ getInviteApi,
204
694
  getOnboardingStatusApi,
695
+ getOrgApi,
696
+ getOrgInfoApi,
205
697
  getOrgSettingsApi,
206
698
  getSubscriptionApi,
699
+ getUserApi,
700
+ getUserByEmailApi,
701
+ getUserSettingsApi,
702
+ listInvitesApi,
703
+ listOrgsApi,
704
+ listUsersApi,
207
705
  provisionDefaultAgentsApi,
208
706
  provisionEntitiesApi,
209
707
  provisionWorkflowsApi,
210
708
  purchaseCreditsApi,
709
+ resendInviteApi,
710
+ revokeInviteApi,
711
+ sendInviteApi,
712
+ sendInvitesApi,
211
713
  sendOnboardingInvitesApi,
212
714
  skipOnboardingStepApi,
213
715
  startOnboardingApi,
214
716
  updateEntityDefinitionsApi,
215
717
  updateOrgAgentsApi,
718
+ updateOrgApi,
216
719
  updateOrgSettingsApi,
720
+ updateUserApi,
721
+ updateUserSettingsApi,
217
722
  updateWorkflowDefinitionsApi
218
723
  };
219
724
  //# sourceMappingURL=index.js.map