@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
package/dist/api/index.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
// api/index.ts
|
|
2
|
-
import { browserApiRequest as
|
|
2
|
+
import { browserApiRequest as browserApiRequest6, clearGatewayTokenCache } from "@elqnt/api-client/browser";
|
|
3
3
|
|
|
4
4
|
// api/orgs.ts
|
|
5
5
|
import { browserApiRequest } from "@elqnt/api-client/browser";
|
|
6
|
-
async function listOrgsApi(options) {
|
|
7
|
-
|
|
6
|
+
async function listOrgsApi(filter, options) {
|
|
7
|
+
const params = new URLSearchParams();
|
|
8
|
+
if (filter?.product) params.set("product", filter.product);
|
|
9
|
+
if (filter?.status) params.set("status", filter.status);
|
|
10
|
+
if (filter?.type) params.set("type", filter.type);
|
|
11
|
+
const queryString = params.toString();
|
|
12
|
+
const url = queryString ? `/api/v1/admin/orgs?${queryString}` : "/api/v1/admin/orgs";
|
|
13
|
+
return browserApiRequest(url, {
|
|
8
14
|
method: "GET",
|
|
9
15
|
...options
|
|
10
16
|
});
|
|
@@ -41,6 +47,13 @@ async function getOrgInfoApi(orgId, options) {
|
|
|
41
47
|
...options
|
|
42
48
|
});
|
|
43
49
|
}
|
|
50
|
+
async function createOrgWithSchemasApi(org, schemas, options) {
|
|
51
|
+
return browserApiRequest("/api/v1/admin/orgs/with-schemas", {
|
|
52
|
+
method: "POST",
|
|
53
|
+
body: { org, schemas },
|
|
54
|
+
...options
|
|
55
|
+
});
|
|
56
|
+
}
|
|
44
57
|
|
|
45
58
|
// api/users.ts
|
|
46
59
|
import { browserApiRequest as browserApiRequest2 } from "@elqnt/api-client/browser";
|
|
@@ -69,6 +82,12 @@ async function getUserByEmailApi(email, options) {
|
|
|
69
82
|
...options
|
|
70
83
|
});
|
|
71
84
|
}
|
|
85
|
+
async function getUserByPhoneApi(phone, options) {
|
|
86
|
+
return browserApiRequest2(`/api/v1/admin/users/by-phone?phone=${encodeURIComponent(phone)}`, {
|
|
87
|
+
method: "GET",
|
|
88
|
+
...options
|
|
89
|
+
});
|
|
90
|
+
}
|
|
72
91
|
async function updateUserApi(userId, updates, options) {
|
|
73
92
|
return browserApiRequest2(`/api/v1/admin/users/${userId}`, {
|
|
74
93
|
method: "PUT",
|
|
@@ -143,16 +162,202 @@ async function acceptInviteApi(inviteId, options) {
|
|
|
143
162
|
});
|
|
144
163
|
}
|
|
145
164
|
|
|
165
|
+
// api/analytics.ts
|
|
166
|
+
import { browserApiRequest as browserApiRequest4 } from "@elqnt/api-client/browser";
|
|
167
|
+
function buildDateFilterParams(filter) {
|
|
168
|
+
if (!filter) return "";
|
|
169
|
+
const params = new URLSearchParams();
|
|
170
|
+
if (filter.from) params.set("from", filter.from);
|
|
171
|
+
if (filter.to) params.set("to", filter.to);
|
|
172
|
+
const queryString = params.toString();
|
|
173
|
+
return queryString ? `?${queryString}` : "";
|
|
174
|
+
}
|
|
175
|
+
async function getAnalyticsSummaryApi(filter, options) {
|
|
176
|
+
const queryString = buildDateFilterParams(filter);
|
|
177
|
+
return browserApiRequest4(`/api/v1/analytics/summary${queryString}`, {
|
|
178
|
+
method: "GET",
|
|
179
|
+
...options
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
async function getChatsAnalyticsApi(filter, agentId, options) {
|
|
183
|
+
const params = new URLSearchParams();
|
|
184
|
+
if (filter?.from) params.set("from", filter.from);
|
|
185
|
+
if (filter?.to) params.set("to", filter.to);
|
|
186
|
+
if (agentId) params.set("agent_id", agentId);
|
|
187
|
+
const queryString = params.toString();
|
|
188
|
+
return browserApiRequest4(`/api/v1/analytics/chats${queryString ? `?${queryString}` : ""}`, {
|
|
189
|
+
method: "GET",
|
|
190
|
+
...options
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
async function getAgentsAnalyticsApi(filter, options) {
|
|
194
|
+
const queryString = buildDateFilterParams(filter);
|
|
195
|
+
return browserApiRequest4(`/api/v1/analytics/agents${queryString}`, {
|
|
196
|
+
method: "GET",
|
|
197
|
+
...options
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
async function getUsageAnalyticsApi(filter, options) {
|
|
201
|
+
const queryString = buildDateFilterParams(filter);
|
|
202
|
+
return browserApiRequest4(`/api/v1/analytics/usage${queryString}`, {
|
|
203
|
+
method: "GET",
|
|
204
|
+
...options
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
async function getDailyAnalyticsApi(filter, options) {
|
|
208
|
+
const queryString = buildDateFilterParams(filter);
|
|
209
|
+
return browserApiRequest4(`/api/v1/analytics/daily${queryString}`, {
|
|
210
|
+
method: "GET",
|
|
211
|
+
...options
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
async function getAnalyticsEventsApi(filter, options) {
|
|
215
|
+
const queryString = buildDateFilterParams(filter);
|
|
216
|
+
return browserApiRequest4(`/api/v1/analytics/events${queryString}`, {
|
|
217
|
+
method: "GET",
|
|
218
|
+
...options
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
async function logAnalyticsEventApi(event, options) {
|
|
222
|
+
return browserApiRequest4("/api/v1/analytics/events", {
|
|
223
|
+
method: "POST",
|
|
224
|
+
body: event,
|
|
225
|
+
...options
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
async function getGlobalSummaryApi(filter, options) {
|
|
229
|
+
const queryString = buildDateFilterParams(filter);
|
|
230
|
+
return browserApiRequest4(`/api/v1/analytics/global/summary${queryString}`, {
|
|
231
|
+
method: "GET",
|
|
232
|
+
...options
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
async function getGlobalOrgsAnalyticsApi(filter, options) {
|
|
236
|
+
const queryString = buildDateFilterParams(filter);
|
|
237
|
+
return browserApiRequest4(`/api/v1/analytics/global/orgs${queryString}`, {
|
|
238
|
+
method: "GET",
|
|
239
|
+
...options
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// api/provisioning.ts
|
|
244
|
+
import { browserApiRequest as browserApiRequest5 } from "@elqnt/api-client/browser";
|
|
245
|
+
async function createOrgWithProvisioningApi(request, options) {
|
|
246
|
+
return browserApiRequest5("/api/v1/admin/provisioning/orgs", {
|
|
247
|
+
method: "POST",
|
|
248
|
+
body: request,
|
|
249
|
+
...options
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
async function getProvisioningStatusApi(orgId, options) {
|
|
253
|
+
return browserApiRequest5(`/api/v1/admin/orgs/${orgId}/provisioning`, {
|
|
254
|
+
method: "GET",
|
|
255
|
+
...options
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
async function retryProvisioningApi(orgId, request, options) {
|
|
259
|
+
return browserApiRequest5(`/api/v1/admin/orgs/${orgId}/provisioning/retry`, {
|
|
260
|
+
method: "POST",
|
|
261
|
+
body: request || {},
|
|
262
|
+
...options
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
async function validateProvisioningApi(orgId, options) {
|
|
266
|
+
return browserApiRequest5(
|
|
267
|
+
`/api/v1/admin/orgs/${orgId}/provisioning/validate`,
|
|
268
|
+
{
|
|
269
|
+
method: "POST",
|
|
270
|
+
...options
|
|
271
|
+
}
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
async function cancelProvisioningApi(orgId, options) {
|
|
275
|
+
return browserApiRequest5(
|
|
276
|
+
`/api/v1/admin/orgs/${orgId}/provisioning/cancel`,
|
|
277
|
+
{
|
|
278
|
+
method: "POST",
|
|
279
|
+
...options
|
|
280
|
+
}
|
|
281
|
+
);
|
|
282
|
+
}
|
|
283
|
+
async function cleanupProvisioningApi(orgId, options) {
|
|
284
|
+
return browserApiRequest5(`/api/v1/admin/orgs/${orgId}/provisioning`, {
|
|
285
|
+
method: "DELETE",
|
|
286
|
+
...options
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
function streamProvisioningProgress(orgId, callbacks, options) {
|
|
290
|
+
const url = new URL(
|
|
291
|
+
`/api/v1/admin/orgs/${orgId}/provisioning/stream`,
|
|
292
|
+
options.baseUrl
|
|
293
|
+
);
|
|
294
|
+
if (options.token) {
|
|
295
|
+
url.searchParams.set("token", options.token);
|
|
296
|
+
}
|
|
297
|
+
const eventSource = new EventSource(url.toString());
|
|
298
|
+
eventSource.addEventListener("connected", (event) => {
|
|
299
|
+
try {
|
|
300
|
+
const data = JSON.parse(event.data);
|
|
301
|
+
callbacks.onConnected?.(data.orgId);
|
|
302
|
+
} catch (e) {
|
|
303
|
+
console.error("Failed to parse connected event", e);
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
eventSource.addEventListener("progress", (event) => {
|
|
307
|
+
try {
|
|
308
|
+
const progress = JSON.parse(event.data);
|
|
309
|
+
callbacks.onProgress?.(progress);
|
|
310
|
+
} catch (e) {
|
|
311
|
+
console.error("Failed to parse progress event", e);
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
eventSource.addEventListener("done", () => {
|
|
315
|
+
callbacks.onDone?.();
|
|
316
|
+
eventSource.close();
|
|
317
|
+
});
|
|
318
|
+
eventSource.addEventListener("timeout", () => {
|
|
319
|
+
callbacks.onTimeout?.();
|
|
320
|
+
eventSource.close();
|
|
321
|
+
});
|
|
322
|
+
eventSource.onerror = (error) => {
|
|
323
|
+
callbacks.onError?.(new Error("SSE connection error"));
|
|
324
|
+
eventSource.close();
|
|
325
|
+
};
|
|
326
|
+
return () => {
|
|
327
|
+
eventSource.close();
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
function calculateProgressPercentage(progress) {
|
|
331
|
+
if (progress.totalArtifacts === 0) return 0;
|
|
332
|
+
return Math.round(
|
|
333
|
+
progress.completedArtifacts / progress.totalArtifacts * 100
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
function isProvisioningComplete(progress) {
|
|
337
|
+
return progress.status === "completed" || progress.status === "failed" || progress.status === "partial";
|
|
338
|
+
}
|
|
339
|
+
function isProvisioningSuccessful(progress) {
|
|
340
|
+
return progress.status === "completed";
|
|
341
|
+
}
|
|
342
|
+
function getFailedArtifacts(progress) {
|
|
343
|
+
return progress.artifacts.filter((a) => a.status === "failed");
|
|
344
|
+
}
|
|
345
|
+
function hasCriticalFailures(progress) {
|
|
346
|
+
return progress.artifacts.some(
|
|
347
|
+
(a) => a.status === "failed" && a.critical
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
|
|
146
351
|
// api/index.ts
|
|
147
352
|
async function getOnboardingStatusApi(options) {
|
|
148
|
-
return
|
|
353
|
+
return browserApiRequest6("/api/v1/onboarding/status", {
|
|
149
354
|
method: "GET",
|
|
150
355
|
...options,
|
|
151
356
|
orgId: options.orgId || ""
|
|
152
357
|
});
|
|
153
358
|
}
|
|
154
359
|
async function startOnboardingApi(options) {
|
|
155
|
-
return
|
|
360
|
+
return browserApiRequest6("/api/v1/onboarding/start", {
|
|
156
361
|
method: "POST",
|
|
157
362
|
body: {},
|
|
158
363
|
...options,
|
|
@@ -160,7 +365,7 @@ async function startOnboardingApi(options) {
|
|
|
160
365
|
});
|
|
161
366
|
}
|
|
162
367
|
async function createPaymentSessionApi(params, options) {
|
|
163
|
-
return
|
|
368
|
+
return browserApiRequest6("/api/v1/onboarding/step/payment", {
|
|
164
369
|
method: "POST",
|
|
165
370
|
body: params,
|
|
166
371
|
...options,
|
|
@@ -168,7 +373,7 @@ async function createPaymentSessionApi(params, options) {
|
|
|
168
373
|
});
|
|
169
374
|
}
|
|
170
375
|
async function createOrganizationApi(org, options) {
|
|
171
|
-
return
|
|
376
|
+
return browserApiRequest6("/api/v1/onboarding/step/organization", {
|
|
172
377
|
method: "POST",
|
|
173
378
|
body: org,
|
|
174
379
|
...options,
|
|
@@ -176,7 +381,7 @@ async function createOrganizationApi(org, options) {
|
|
|
176
381
|
});
|
|
177
382
|
}
|
|
178
383
|
async function sendOnboardingInvitesApi(invites, options) {
|
|
179
|
-
return
|
|
384
|
+
return browserApiRequest6("/api/v1/onboarding/step/invites", {
|
|
180
385
|
method: "POST",
|
|
181
386
|
body: { invites },
|
|
182
387
|
...options,
|
|
@@ -184,7 +389,7 @@ async function sendOnboardingInvitesApi(invites, options) {
|
|
|
184
389
|
});
|
|
185
390
|
}
|
|
186
391
|
async function createOnboardingKnowledgeApi(knowledge, options) {
|
|
187
|
-
return
|
|
392
|
+
return browserApiRequest6("/api/v1/onboarding/step/knowledge", {
|
|
188
393
|
method: "POST",
|
|
189
394
|
body: knowledge,
|
|
190
395
|
...options,
|
|
@@ -192,7 +397,7 @@ async function createOnboardingKnowledgeApi(knowledge, options) {
|
|
|
192
397
|
});
|
|
193
398
|
}
|
|
194
399
|
async function createOnboardingAgentApi(agent, options) {
|
|
195
|
-
return
|
|
400
|
+
return browserApiRequest6("/api/v1/onboarding/step/agent", {
|
|
196
401
|
method: "POST",
|
|
197
402
|
body: agent,
|
|
198
403
|
...options,
|
|
@@ -200,7 +405,7 @@ async function createOnboardingAgentApi(agent, options) {
|
|
|
200
405
|
});
|
|
201
406
|
}
|
|
202
407
|
async function createAgentWithSkillsApi(payload, options) {
|
|
203
|
-
return
|
|
408
|
+
return browserApiRequest6("/api/v1/onboarding/agent-with-skills", {
|
|
204
409
|
method: "POST",
|
|
205
410
|
body: payload,
|
|
206
411
|
...options,
|
|
@@ -208,7 +413,7 @@ async function createAgentWithSkillsApi(payload, options) {
|
|
|
208
413
|
});
|
|
209
414
|
}
|
|
210
415
|
async function completeOnboardingApi(options) {
|
|
211
|
-
return
|
|
416
|
+
return browserApiRequest6("/api/v1/onboarding/complete", {
|
|
212
417
|
method: "POST",
|
|
213
418
|
body: {},
|
|
214
419
|
...options,
|
|
@@ -216,116 +421,132 @@ async function completeOnboardingApi(options) {
|
|
|
216
421
|
});
|
|
217
422
|
}
|
|
218
423
|
async function skipOnboardingStepApi(step, options) {
|
|
219
|
-
return
|
|
424
|
+
return browserApiRequest6("/api/v1/onboarding/skip-step", {
|
|
220
425
|
method: "POST",
|
|
221
426
|
body: { step },
|
|
222
427
|
...options,
|
|
223
428
|
orgId: options.orgId || ""
|
|
224
429
|
});
|
|
225
430
|
}
|
|
431
|
+
async function startOnboardingProvisioningApi(options) {
|
|
432
|
+
return browserApiRequest6("/api/v1/onboarding/provisioning/start", {
|
|
433
|
+
method: "POST",
|
|
434
|
+
body: {},
|
|
435
|
+
...options,
|
|
436
|
+
orgId: options.orgId || ""
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
async function provisionAllOnboardingApi(request, options) {
|
|
440
|
+
return browserApiRequest6("/api/v1/onboarding/provision-all", {
|
|
441
|
+
method: "POST",
|
|
442
|
+
body: request,
|
|
443
|
+
...options,
|
|
444
|
+
orgId: options.orgId || ""
|
|
445
|
+
});
|
|
446
|
+
}
|
|
226
447
|
async function getOrgSettingsApi(options) {
|
|
227
|
-
return
|
|
448
|
+
return browserApiRequest6("/api/v1/org/settings", {
|
|
228
449
|
method: "GET",
|
|
229
450
|
...options
|
|
230
451
|
});
|
|
231
452
|
}
|
|
232
453
|
async function createOrgSettingsApi(settings, options) {
|
|
233
|
-
return
|
|
454
|
+
return browserApiRequest6("/api/v1/org/settings", {
|
|
234
455
|
method: "POST",
|
|
235
456
|
body: settings,
|
|
236
457
|
...options
|
|
237
458
|
});
|
|
238
459
|
}
|
|
239
460
|
async function updateOrgSettingsApi(settings, options) {
|
|
240
|
-
return
|
|
461
|
+
return browserApiRequest6("/api/v1/org/settings", {
|
|
241
462
|
method: "PUT",
|
|
242
463
|
body: settings,
|
|
243
464
|
...options
|
|
244
465
|
});
|
|
245
466
|
}
|
|
246
467
|
async function updateOrgAgentsApi(agentIds, options) {
|
|
247
|
-
return
|
|
468
|
+
return browserApiRequest6("/api/v1/org/agents", {
|
|
248
469
|
method: "PUT",
|
|
249
470
|
body: { agentIds },
|
|
250
471
|
...options
|
|
251
472
|
});
|
|
252
473
|
}
|
|
253
474
|
async function updateEntityDefinitionsApi(entityNames, options) {
|
|
254
|
-
return
|
|
475
|
+
return browserApiRequest6("/api/v1/org/entities", {
|
|
255
476
|
method: "PUT",
|
|
256
477
|
body: { entityNames },
|
|
257
478
|
...options
|
|
258
479
|
});
|
|
259
480
|
}
|
|
260
481
|
async function updateWorkflowDefinitionsApi(workflowIds, options) {
|
|
261
|
-
return
|
|
482
|
+
return browserApiRequest6("/api/v1/org/workflows", {
|
|
262
483
|
method: "PUT",
|
|
263
484
|
body: { workflowIds },
|
|
264
485
|
...options
|
|
265
486
|
});
|
|
266
487
|
}
|
|
267
488
|
async function getBillingPlansApi(options) {
|
|
268
|
-
return
|
|
489
|
+
return browserApiRequest6("/api/v1/billing/plans", {
|
|
269
490
|
method: "GET",
|
|
270
491
|
...options
|
|
271
492
|
});
|
|
272
493
|
}
|
|
273
494
|
async function getSubscriptionApi(options) {
|
|
274
|
-
return
|
|
495
|
+
return browserApiRequest6("/api/v1/billing/subscription", {
|
|
275
496
|
method: "GET",
|
|
276
497
|
...options
|
|
277
498
|
});
|
|
278
499
|
}
|
|
279
500
|
async function getCreditsApi(options) {
|
|
280
|
-
return
|
|
501
|
+
return browserApiRequest6("/api/v1/billing/credits", {
|
|
281
502
|
method: "GET",
|
|
282
503
|
...options
|
|
283
504
|
});
|
|
284
505
|
}
|
|
285
506
|
async function createCheckoutSessionApi(params, options) {
|
|
286
|
-
return
|
|
507
|
+
return browserApiRequest6("/api/v1/billing/checkout", {
|
|
287
508
|
method: "POST",
|
|
288
509
|
body: params,
|
|
289
510
|
...options
|
|
290
511
|
});
|
|
291
512
|
}
|
|
292
513
|
async function createPortalSessionApi(params, options) {
|
|
293
|
-
return
|
|
514
|
+
return browserApiRequest6("/api/v1/billing/portal", {
|
|
294
515
|
method: "POST",
|
|
295
516
|
body: params,
|
|
296
517
|
...options
|
|
297
518
|
});
|
|
298
519
|
}
|
|
299
520
|
async function cancelSubscriptionApi(options) {
|
|
300
|
-
return
|
|
521
|
+
return browserApiRequest6("/api/v1/billing/subscription/cancel", {
|
|
301
522
|
method: "POST",
|
|
302
523
|
body: {},
|
|
303
524
|
...options
|
|
304
525
|
});
|
|
305
526
|
}
|
|
306
527
|
async function purchaseCreditsApi(params, options) {
|
|
307
|
-
return
|
|
528
|
+
return browserApiRequest6("/api/v1/billing/credits/purchase", {
|
|
308
529
|
method: "POST",
|
|
309
530
|
body: params,
|
|
310
531
|
...options
|
|
311
532
|
});
|
|
312
533
|
}
|
|
313
534
|
async function provisionDefaultAgentsApi(definitions, options) {
|
|
314
|
-
return
|
|
535
|
+
return browserApiRequest6("/api/v1/admin/provision/agents", {
|
|
315
536
|
method: "POST",
|
|
316
537
|
body: { definitions },
|
|
317
538
|
...options
|
|
318
539
|
});
|
|
319
540
|
}
|
|
320
541
|
async function provisionEntitiesApi(definitions, options) {
|
|
321
|
-
return
|
|
542
|
+
return browserApiRequest6("/api/v1/admin/entities/update", {
|
|
322
543
|
method: "POST",
|
|
323
544
|
body: { definitions },
|
|
324
545
|
...options
|
|
325
546
|
});
|
|
326
547
|
}
|
|
327
548
|
async function provisionWorkflowsApi(definitions, options) {
|
|
328
|
-
return
|
|
549
|
+
return browserApiRequest6("/api/v1/admin/provision/workflows", {
|
|
329
550
|
method: "POST",
|
|
330
551
|
body: { definitions },
|
|
331
552
|
...options
|
|
@@ -333,7 +554,10 @@ async function provisionWorkflowsApi(definitions, options) {
|
|
|
333
554
|
}
|
|
334
555
|
export {
|
|
335
556
|
acceptInviteApi,
|
|
557
|
+
calculateProgressPercentage,
|
|
558
|
+
cancelProvisioningApi,
|
|
336
559
|
cancelSubscriptionApi,
|
|
560
|
+
cleanupProvisioningApi,
|
|
337
561
|
clearGatewayTokenCache,
|
|
338
562
|
completeOnboardingApi,
|
|
339
563
|
createAgentWithSkillsApi,
|
|
@@ -342,43 +566,65 @@ export {
|
|
|
342
566
|
createOnboardingKnowledgeApi,
|
|
343
567
|
createOrgApi,
|
|
344
568
|
createOrgSettingsApi,
|
|
569
|
+
createOrgWithProvisioningApi,
|
|
570
|
+
createOrgWithSchemasApi,
|
|
345
571
|
createOrganizationApi,
|
|
346
572
|
createPaymentSessionApi,
|
|
347
573
|
createPortalSessionApi,
|
|
348
574
|
createUserApi,
|
|
349
575
|
deleteOrgApi,
|
|
350
576
|
deleteUserApi,
|
|
577
|
+
getAgentsAnalyticsApi,
|
|
578
|
+
getAnalyticsEventsApi,
|
|
579
|
+
getAnalyticsSummaryApi,
|
|
351
580
|
getBillingPlansApi,
|
|
581
|
+
getChatsAnalyticsApi,
|
|
352
582
|
getCreditsApi,
|
|
583
|
+
getDailyAnalyticsApi,
|
|
584
|
+
getFailedArtifacts,
|
|
585
|
+
getGlobalOrgsAnalyticsApi,
|
|
586
|
+
getGlobalSummaryApi,
|
|
353
587
|
getInviteApi,
|
|
354
588
|
getOnboardingStatusApi,
|
|
355
589
|
getOrgApi,
|
|
356
590
|
getOrgInfoApi,
|
|
357
591
|
getOrgSettingsApi,
|
|
592
|
+
getProvisioningStatusApi,
|
|
358
593
|
getSubscriptionApi,
|
|
594
|
+
getUsageAnalyticsApi,
|
|
359
595
|
getUserApi,
|
|
360
596
|
getUserByEmailApi,
|
|
597
|
+
getUserByPhoneApi,
|
|
361
598
|
getUserSettingsApi,
|
|
599
|
+
hasCriticalFailures,
|
|
600
|
+
isProvisioningComplete,
|
|
601
|
+
isProvisioningSuccessful,
|
|
362
602
|
listInvitesApi,
|
|
363
603
|
listOrgsApi,
|
|
364
604
|
listUsersApi,
|
|
605
|
+
logAnalyticsEventApi,
|
|
606
|
+
provisionAllOnboardingApi,
|
|
365
607
|
provisionDefaultAgentsApi,
|
|
366
608
|
provisionEntitiesApi,
|
|
367
609
|
provisionWorkflowsApi,
|
|
368
610
|
purchaseCreditsApi,
|
|
369
611
|
resendInviteApi,
|
|
612
|
+
retryProvisioningApi,
|
|
370
613
|
revokeInviteApi,
|
|
371
614
|
sendInviteApi,
|
|
372
615
|
sendInvitesApi,
|
|
373
616
|
sendOnboardingInvitesApi,
|
|
374
617
|
skipOnboardingStepApi,
|
|
375
618
|
startOnboardingApi,
|
|
619
|
+
startOnboardingProvisioningApi,
|
|
620
|
+
streamProvisioningProgress,
|
|
376
621
|
updateEntityDefinitionsApi,
|
|
377
622
|
updateOrgAgentsApi,
|
|
378
623
|
updateOrgApi,
|
|
379
624
|
updateOrgSettingsApi,
|
|
380
625
|
updateUserApi,
|
|
381
626
|
updateUserSettingsApi,
|
|
382
|
-
updateWorkflowDefinitionsApi
|
|
627
|
+
updateWorkflowDefinitionsApi,
|
|
628
|
+
validateProvisioningApi
|
|
383
629
|
};
|
|
384
630
|
//# sourceMappingURL=index.js.map
|