@applica-software-guru/persona-sdk 0.1.114 → 0.1.116
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/README.md +86 -1
- package/dist/bundle.cjs.js +1 -1
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.es.js +219 -92
- package/dist/bundle.es.js.map +1 -1
- package/dist/index.d.ts +375 -3
- package/package.json +1 -1
- package/src/agents/types.ts +6 -2
- package/src/billing/billing-client.ts +3 -0
- package/src/billing/types.ts +16 -0
- package/src/decisions/decisions-api.ts +23 -0
- package/src/decisions/types.ts +94 -0
- package/src/index.ts +38 -0
- package/src/model-aliases/model-aliases-api.ts +94 -0
- package/src/model-aliases/references.ts +20 -0
- package/src/model-aliases/types.ts +125 -0
- package/src/notifications/notifications-api.ts +42 -0
- package/src/notifications/types.ts +39 -0
- package/src/persona-sdk.ts +21 -0
- package/src/sessions/types.ts +2 -0
- package/tests/billing-aliases.test.mjs +71 -0
- package/tests/decisions-api.test.mjs +57 -0
- package/tests/model-aliases-api.test.mjs +198 -0
- package/tests/notifications-api.test.mjs +88 -0
package/dist/bundle.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var P = (o, t, e) => t in o ? m(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
+
var h = (o, t, e) => P(o, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
class l extends Error {
|
|
5
5
|
constructor(e, s) {
|
|
6
6
|
super(`API Error: ${e} - ${s}`);
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
h(this, "statusCode");
|
|
8
|
+
h(this, "body");
|
|
9
9
|
this.statusCode = e, this.body = s;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
class
|
|
12
|
+
class w {
|
|
13
13
|
constructor(t) {
|
|
14
14
|
this.apiKey = t;
|
|
15
15
|
}
|
|
@@ -22,9 +22,9 @@ class m {
|
|
|
22
22
|
}
|
|
23
23
|
class c {
|
|
24
24
|
constructor(t, e) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
this.baseUrl = t, this.authProvider = typeof e == "string" ? new
|
|
25
|
+
h(this, "baseUrl");
|
|
26
|
+
h(this, "authProvider");
|
|
27
|
+
this.baseUrl = t, this.authProvider = typeof e == "string" ? new w(e) : e;
|
|
28
28
|
}
|
|
29
29
|
getBaseUrl() {
|
|
30
30
|
return this.baseUrl;
|
|
@@ -98,10 +98,10 @@ class c {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
class
|
|
101
|
+
class b extends c {
|
|
102
102
|
constructor(e, s, r) {
|
|
103
103
|
super(e, s);
|
|
104
|
-
|
|
104
|
+
h(this, "billingBaseUrl");
|
|
105
105
|
this.billingBaseUrl = (r || e).replace(/\/$/, "");
|
|
106
106
|
}
|
|
107
107
|
async list(e, s, r) {
|
|
@@ -147,14 +147,14 @@ class w extends c {
|
|
|
147
147
|
body: r ? JSON.stringify(r) : void 0
|
|
148
148
|
});
|
|
149
149
|
if (!a.ok) {
|
|
150
|
-
const
|
|
151
|
-
throw new l(a.status,
|
|
150
|
+
const p = await a.text();
|
|
151
|
+
throw new l(a.status, p);
|
|
152
152
|
}
|
|
153
153
|
const i = await a.text();
|
|
154
154
|
return i ? JSON.parse(i) : void 0;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
class
|
|
157
|
+
class f extends c {
|
|
158
158
|
constructor(t, e) {
|
|
159
159
|
super(t, e);
|
|
160
160
|
}
|
|
@@ -194,10 +194,10 @@ class P extends c {
|
|
|
194
194
|
return this.httpGet("/agents/architect");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
class
|
|
197
|
+
class v extends c {
|
|
198
198
|
constructor(e, s, r) {
|
|
199
199
|
super(e, s);
|
|
200
|
-
|
|
200
|
+
h(this, "knowledgeBaseId");
|
|
201
201
|
this.knowledgeBaseId = r;
|
|
202
202
|
}
|
|
203
203
|
async list(e, s, r) {
|
|
@@ -217,7 +217,7 @@ class b extends c {
|
|
|
217
217
|
await this.httpDelete("/knowledge-bases/" + this.knowledgeBaseId + "/documents/" + e);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
class
|
|
220
|
+
class k extends c {
|
|
221
221
|
constructor(t, e) {
|
|
222
222
|
super(t, e);
|
|
223
223
|
}
|
|
@@ -238,13 +238,13 @@ class v extends c {
|
|
|
238
238
|
await this.httpDelete("/knowledge-bases/" + t);
|
|
239
239
|
}
|
|
240
240
|
documents(t) {
|
|
241
|
-
return new
|
|
241
|
+
return new v(this.getBaseUrl(), this.getAuthProvider(), t);
|
|
242
242
|
}
|
|
243
243
|
async searchChunks(t, e) {
|
|
244
244
|
return this.httpPost("/knowledge-bases/" + t + "/search", e);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
class
|
|
247
|
+
class G extends c {
|
|
248
248
|
constructor(t, e) {
|
|
249
249
|
super(t, e);
|
|
250
250
|
}
|
|
@@ -296,7 +296,7 @@ class f extends c {
|
|
|
296
296
|
);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
class
|
|
299
|
+
class z extends c {
|
|
300
300
|
constructor(t, e) {
|
|
301
301
|
super(t, e);
|
|
302
302
|
}
|
|
@@ -313,7 +313,7 @@ class k extends c {
|
|
|
313
313
|
});
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
class
|
|
316
|
+
class U extends c {
|
|
317
317
|
constructor(t, e) {
|
|
318
318
|
super(t, e);
|
|
319
319
|
}
|
|
@@ -351,7 +351,7 @@ class G extends c {
|
|
|
351
351
|
await this.httpDelete("/channels/identities/me/" + t);
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
class
|
|
354
|
+
class x extends c {
|
|
355
355
|
constructor(t, e) {
|
|
356
356
|
super(t, e);
|
|
357
357
|
}
|
|
@@ -372,13 +372,13 @@ class z extends c {
|
|
|
372
372
|
return this.httpGet("/workflows/" + t);
|
|
373
373
|
}
|
|
374
374
|
executions() {
|
|
375
|
-
return new
|
|
375
|
+
return new G(this.getBaseUrl(), this.getAuthProvider());
|
|
376
376
|
}
|
|
377
377
|
humanTasks() {
|
|
378
|
-
return new
|
|
378
|
+
return new z(this.getBaseUrl(), this.getAuthProvider());
|
|
379
379
|
}
|
|
380
380
|
channels() {
|
|
381
|
-
return new
|
|
381
|
+
return new U(this.getBaseUrl(), this.getAuthProvider());
|
|
382
382
|
}
|
|
383
383
|
async listRevisions(t) {
|
|
384
384
|
return this.httpGet("/workflows/" + t + "/revisions");
|
|
@@ -390,7 +390,7 @@ class z extends c {
|
|
|
390
390
|
return this.httpPost("/workflows/" + t + "/revisions/" + e + "/rollback", {});
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
class
|
|
393
|
+
class S extends c {
|
|
394
394
|
constructor(t, e) {
|
|
395
395
|
super(t, e);
|
|
396
396
|
}
|
|
@@ -414,7 +414,7 @@ class U extends c {
|
|
|
414
414
|
await this.httpDelete("/credentials/all/" + t);
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
class
|
|
417
|
+
class A extends c {
|
|
418
418
|
constructor(t, e) {
|
|
419
419
|
super(t, e);
|
|
420
420
|
}
|
|
@@ -442,17 +442,17 @@ class x extends c {
|
|
|
442
442
|
return this.httpPost("/features/templates/mcp/available-tools", t, s);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
class
|
|
445
|
+
class T {
|
|
446
446
|
constructor(t, e) {
|
|
447
|
-
|
|
448
|
-
|
|
447
|
+
h(this, "baseUrl");
|
|
448
|
+
h(this, "auth");
|
|
449
449
|
this.baseUrl = t, this.auth = e;
|
|
450
450
|
}
|
|
451
451
|
templates() {
|
|
452
|
-
return new
|
|
452
|
+
return new A(this.baseUrl, this.auth);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
class
|
|
455
|
+
class C extends c {
|
|
456
456
|
constructor(t, e) {
|
|
457
457
|
super(t, e);
|
|
458
458
|
}
|
|
@@ -470,7 +470,7 @@ class T extends c {
|
|
|
470
470
|
await this.httpDelete("/triggers/executions/" + t);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
class
|
|
473
|
+
class R extends c {
|
|
474
474
|
constructor(t, e) {
|
|
475
475
|
super(t, e);
|
|
476
476
|
}
|
|
@@ -491,10 +491,10 @@ class A extends c {
|
|
|
491
491
|
return this.httpGet("/triggers/" + t);
|
|
492
492
|
}
|
|
493
493
|
executions() {
|
|
494
|
-
return new
|
|
494
|
+
return new C(this.getBaseUrl(), this.getAuthProvider());
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
class
|
|
497
|
+
class I extends c {
|
|
498
498
|
constructor(t, e) {
|
|
499
499
|
super(t, e);
|
|
500
500
|
}
|
|
@@ -518,7 +518,7 @@ class C extends c {
|
|
|
518
518
|
await this.httpDelete("/service-prices/" + t);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
class
|
|
521
|
+
class E extends c {
|
|
522
522
|
constructor(t, e) {
|
|
523
523
|
super(t, e);
|
|
524
524
|
}
|
|
@@ -539,7 +539,7 @@ class I extends c {
|
|
|
539
539
|
await this.httpDelete("/markup-rules/" + t);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
class
|
|
542
|
+
class B extends c {
|
|
543
543
|
constructor(t, e) {
|
|
544
544
|
super(t, e);
|
|
545
545
|
}
|
|
@@ -573,13 +573,13 @@ class R extends c {
|
|
|
573
573
|
return this.httpGet("/provider-models", { provider: t });
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
class
|
|
576
|
+
class j extends c {
|
|
577
577
|
constructor(t, e) {
|
|
578
578
|
super(t, e);
|
|
579
579
|
}
|
|
580
580
|
async list(t, e, s, r, n, a) {
|
|
581
|
-
const { page: i, size:
|
|
582
|
-
return t && (
|
|
581
|
+
const { page: i, size: p } = this.normalizePageParams(n, a), u = { page: i, size: p };
|
|
582
|
+
return t && (u.keyword = t), e && (u.status = e), s && (u.agentId = s), r && (u.userId = r), this.httpGet("/sessions", u);
|
|
583
583
|
}
|
|
584
584
|
async get(t) {
|
|
585
585
|
return this.httpGet("/sessions/" + t);
|
|
@@ -626,7 +626,7 @@ class B extends c {
|
|
|
626
626
|
);
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
|
-
class
|
|
629
|
+
class q extends c {
|
|
630
630
|
constructor(t, e) {
|
|
631
631
|
super(t, e);
|
|
632
632
|
}
|
|
@@ -668,10 +668,10 @@ class E extends c {
|
|
|
668
668
|
return this.httpPost("/missions/" + t + "/continue");
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
|
-
class
|
|
671
|
+
class O {
|
|
672
672
|
constructor(t, e) {
|
|
673
|
-
|
|
674
|
-
|
|
673
|
+
h(this, "baseUrl");
|
|
674
|
+
h(this, "authProvider");
|
|
675
675
|
this.baseUrl = (t || "https://persona.applica.guru/billing").replace(/\/$/, ""), this.authProvider = e ?? null;
|
|
676
676
|
}
|
|
677
677
|
buildHeaders() {
|
|
@@ -766,14 +766,14 @@ class j {
|
|
|
766
766
|
const a = n.length > 0 ? "?" + n.join("&") : "";
|
|
767
767
|
return this.request("/projects/" + t + "/subscription/usage-stats" + a, "GET");
|
|
768
768
|
}
|
|
769
|
-
async listUsages(t, e, s, r, n, a, i) {
|
|
770
|
-
const
|
|
771
|
-
e &&
|
|
772
|
-
const
|
|
773
|
-
return this.request("/projects/" + t + "/subscription/usages" +
|
|
769
|
+
async listUsages(t, e, s, r, n, a, i, p) {
|
|
770
|
+
const u = [];
|
|
771
|
+
e && u.push("date_from=" + encodeURIComponent(e)), s && u.push("date_to=" + encodeURIComponent(s)), r != null && r.length && r.forEach((d) => u.push("model=" + encodeURIComponent(d))), n && u.push("session_id=" + encodeURIComponent(n)), a !== void 0 && u.push("page=" + encodeURIComponent(String(a))), i !== void 0 && u.push("size=" + encodeURIComponent(String(i))), p != null && p.length && p.forEach((d) => u.push("alias=" + encodeURIComponent(d)));
|
|
772
|
+
const y = u.length > 0 ? "?" + u.join("&") : "";
|
|
773
|
+
return this.request("/projects/" + t + "/subscription/usages" + y, "GET");
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
|
-
class
|
|
776
|
+
class D extends c {
|
|
777
777
|
constructor(t, e) {
|
|
778
778
|
super(t, e);
|
|
779
779
|
}
|
|
@@ -832,57 +832,165 @@ class q extends c {
|
|
|
832
832
|
return this.httpGet("/values/trigger-destination-types");
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
|
-
class
|
|
835
|
+
class H extends c {
|
|
836
|
+
constructor(t, e) {
|
|
837
|
+
super(t, e);
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* Aliases visible to the caller (their project's and the global ones). Super admins
|
|
841
|
+
* can pass `projectId` to see another project's view.
|
|
842
|
+
*/
|
|
843
|
+
async list(t, e, s, r) {
|
|
844
|
+
const { page: n, size: a } = this.normalizePageParams(s, r), i = { page: n, size: a };
|
|
845
|
+
return t && (i.projectId = t), e && (i.keyword = e), this.httpGet("/model-aliases", i);
|
|
846
|
+
}
|
|
847
|
+
async get(t) {
|
|
848
|
+
return this.httpGet("/model-aliases/" + t);
|
|
849
|
+
}
|
|
850
|
+
/** Create an alias. Non-super-admins always create in their own project. */
|
|
851
|
+
async create(t) {
|
|
852
|
+
return this.httpPost("/model-aliases", t);
|
|
853
|
+
}
|
|
854
|
+
/** Change target, fallbacks, defaults and description. `name` and the scope are immutable. */
|
|
855
|
+
async update(t, e) {
|
|
856
|
+
return this.httpPut("/model-aliases/" + t, e);
|
|
857
|
+
}
|
|
858
|
+
/**
|
|
859
|
+
* Delete an alias. Refused with a 409 while agents still reference it: use
|
|
860
|
+
* {@link ModelAliasesApi.inUse} on the error to read which ones.
|
|
861
|
+
*/
|
|
862
|
+
async remove(t) {
|
|
863
|
+
await this.httpDelete("/model-aliases/" + t);
|
|
864
|
+
}
|
|
865
|
+
/** Agents that reference the alias, and in which model slot. */
|
|
866
|
+
async impact(t) {
|
|
867
|
+
return this.httpGet("/model-aliases/" + t + "/impact");
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
* Run the health check now (registry, announced retirements, credentials). Stores the
|
|
871
|
+
* result in `health` and updates the notifications; it never changes the alias.
|
|
872
|
+
*/
|
|
873
|
+
async check(t) {
|
|
874
|
+
return this.httpPost("/model-aliases/" + t + "/check");
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* Replacement and fallback candidates for the alias' target, or for `model` (e.g. a
|
|
878
|
+
* fallback that went missing). A proposal only: nothing is applied.
|
|
879
|
+
*/
|
|
880
|
+
async suggestions(t, e, s) {
|
|
881
|
+
const r = {};
|
|
882
|
+
return e && (r.model = e), s !== void 0 && (r.limit = s), this.httpGet("/model-aliases/" + t + "/suggestions", r);
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* The agents blocking a delete, when `error` is the 409 of {@link ModelAliasesApi.remove};
|
|
886
|
+
* `null` for any other error.
|
|
887
|
+
*/
|
|
888
|
+
static inUse(t) {
|
|
889
|
+
var e, s;
|
|
890
|
+
if (!(t instanceof l) || t.statusCode !== 409) return null;
|
|
891
|
+
try {
|
|
892
|
+
const r = (s = (e = JSON.parse(t.body)) == null ? void 0 : e.detail) == null ? void 0 : s.impact;
|
|
893
|
+
return r && typeof r.total == "number" ? r : null;
|
|
894
|
+
} catch {
|
|
895
|
+
return null;
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
class N extends c {
|
|
900
|
+
constructor(t, e) {
|
|
901
|
+
super(t, e);
|
|
902
|
+
}
|
|
903
|
+
async list(t = {}) {
|
|
904
|
+
const { page: e, size: s } = this.normalizePageParams(t.page, t.size), r = { page: e, size: s };
|
|
905
|
+
return t.unreadOnly && (r.unreadOnly = !0), t.includeResolved && (r.includeResolved = !0), t.projectId && (r.projectId = t.projectId), this.httpGet("/notifications", r);
|
|
906
|
+
}
|
|
907
|
+
/** Open, unread notifications: the value of the badge. */
|
|
908
|
+
async unreadCount(t) {
|
|
909
|
+
return (await this.httpGet(
|
|
910
|
+
"/notifications/unread-count",
|
|
911
|
+
t ? { projectId: t } : void 0
|
|
912
|
+
)).count;
|
|
913
|
+
}
|
|
914
|
+
async markRead(t) {
|
|
915
|
+
return this.httpPost("/notifications/" + t + "/read");
|
|
916
|
+
}
|
|
917
|
+
/** Mark as read everything the caller can see. */
|
|
918
|
+
async markAllRead(t) {
|
|
919
|
+
await this.httpPost("/notifications/read-all", void 0, t ? { projectId: t } : void 0);
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
class M extends c {
|
|
923
|
+
constructor(t, e) {
|
|
924
|
+
super(t, e);
|
|
925
|
+
}
|
|
926
|
+
async decide(t) {
|
|
927
|
+
return this.httpPost("/decisions", t);
|
|
928
|
+
}
|
|
929
|
+
/** The decision models persona-core knows (`id` is what `decide` takes). */
|
|
930
|
+
async listModels() {
|
|
931
|
+
return this.httpGet("/decision-models");
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
class L {
|
|
836
935
|
constructor(t, e, s) {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
936
|
+
h(this, "baseUrl");
|
|
937
|
+
h(this, "workflowsBaseUrl");
|
|
938
|
+
h(this, "billingBaseUrl");
|
|
840
939
|
this.baseUrl = t, this.workflowsBaseUrl = e, this.billingBaseUrl = s || "https://persona.applica.guru/billing";
|
|
841
940
|
}
|
|
842
941
|
projects(t) {
|
|
843
|
-
return new
|
|
942
|
+
return new b(this.baseUrl, t, this.billingBaseUrl);
|
|
844
943
|
}
|
|
845
944
|
agents(t) {
|
|
846
|
-
return new
|
|
945
|
+
return new f(this.baseUrl, t);
|
|
847
946
|
}
|
|
848
947
|
knowledgeBases(t) {
|
|
849
|
-
return new
|
|
948
|
+
return new k(this.baseUrl, t);
|
|
850
949
|
}
|
|
851
950
|
workflows(t) {
|
|
852
|
-
return new
|
|
951
|
+
return new x(this.workflowsBaseUrl, t);
|
|
853
952
|
}
|
|
854
953
|
credentials(t) {
|
|
855
|
-
return new
|
|
954
|
+
return new S(this.baseUrl, t);
|
|
856
955
|
}
|
|
857
956
|
features(t) {
|
|
858
|
-
return new
|
|
957
|
+
return new T(this.baseUrl, t);
|
|
859
958
|
}
|
|
860
959
|
triggers(t) {
|
|
861
|
-
return new
|
|
960
|
+
return new R(this.baseUrl, t);
|
|
862
961
|
}
|
|
863
962
|
servicePrices(t) {
|
|
864
|
-
return new
|
|
963
|
+
return new I(this.baseUrl, t);
|
|
865
964
|
}
|
|
866
965
|
markupRules(t) {
|
|
867
|
-
return new
|
|
966
|
+
return new E(this.baseUrl, t);
|
|
868
967
|
}
|
|
869
968
|
providers(t) {
|
|
870
|
-
return new
|
|
969
|
+
return new B(this.baseUrl, t);
|
|
871
970
|
}
|
|
872
971
|
sessions(t) {
|
|
873
|
-
return new
|
|
972
|
+
return new j(this.baseUrl, t);
|
|
874
973
|
}
|
|
875
974
|
missions(t) {
|
|
876
|
-
return new
|
|
975
|
+
return new q(this.baseUrl, t);
|
|
877
976
|
}
|
|
878
977
|
billing(t) {
|
|
879
|
-
return new
|
|
978
|
+
return new O(this.billingBaseUrl, t);
|
|
979
|
+
}
|
|
980
|
+
modelAliases(t) {
|
|
981
|
+
return new H(this.baseUrl, t);
|
|
982
|
+
}
|
|
983
|
+
notifications(t) {
|
|
984
|
+
return new N(this.baseUrl, t);
|
|
985
|
+
}
|
|
986
|
+
decisions(t) {
|
|
987
|
+
return new M(this.baseUrl, t);
|
|
880
988
|
}
|
|
881
989
|
values(t) {
|
|
882
|
-
return new
|
|
990
|
+
return new D(this.baseUrl, t);
|
|
883
991
|
}
|
|
884
992
|
}
|
|
885
|
-
class
|
|
993
|
+
class $ {
|
|
886
994
|
constructor(t) {
|
|
887
995
|
this.token = t;
|
|
888
996
|
}
|
|
@@ -893,30 +1001,49 @@ class H {
|
|
|
893
1001
|
return this.token;
|
|
894
1002
|
}
|
|
895
1003
|
}
|
|
1004
|
+
const g = "alias:";
|
|
1005
|
+
function J(o) {
|
|
1006
|
+
return !!o && o.trim().toLowerCase().startsWith(g);
|
|
1007
|
+
}
|
|
1008
|
+
function F(o) {
|
|
1009
|
+
if (!J(o))
|
|
1010
|
+
throw new Error(`Not a model alias reference: ${JSON.stringify(o)}`);
|
|
1011
|
+
return o.trim().slice(g.length).trim();
|
|
1012
|
+
}
|
|
1013
|
+
function K(o) {
|
|
1014
|
+
return g + o.trim();
|
|
1015
|
+
}
|
|
896
1016
|
export {
|
|
897
|
-
|
|
1017
|
+
g as ALIAS_PREFIX,
|
|
1018
|
+
f as AgentsApi,
|
|
898
1019
|
l as ApiException,
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
v as
|
|
909
|
-
|
|
910
|
-
E as
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
1020
|
+
w as ApiKeyAuthenticationProvider,
|
|
1021
|
+
$ as BearerTokenAuthenticationProvider,
|
|
1022
|
+
O as BillingClient,
|
|
1023
|
+
U as ChannelsApi,
|
|
1024
|
+
S as CredentialsApi,
|
|
1025
|
+
M as DecisionsApi,
|
|
1026
|
+
A as FeatureTemplatesApi,
|
|
1027
|
+
T as FeaturesApi,
|
|
1028
|
+
z as HumanTasksApi,
|
|
1029
|
+
v as KnowledgeBaseDocumentsApi,
|
|
1030
|
+
k as KnowledgeBasesApi,
|
|
1031
|
+
E as MarkupRulesApi,
|
|
1032
|
+
q as MissionsApi,
|
|
1033
|
+
H as ModelAliasesApi,
|
|
1034
|
+
N as NotificationsApi,
|
|
1035
|
+
L as PersonaSdk,
|
|
1036
|
+
b as ProjectsApi,
|
|
1037
|
+
B as ProvidersApi,
|
|
1038
|
+
I as ServicePricesApi,
|
|
1039
|
+
j as SessionsApi,
|
|
1040
|
+
C as TriggerExecutionsApi,
|
|
1041
|
+
R as TriggersApi,
|
|
1042
|
+
D as ValuesApi,
|
|
1043
|
+
G as WorkflowExecutionsApi,
|
|
1044
|
+
x as WorkflowsApi,
|
|
1045
|
+
F as aliasNameFromRef,
|
|
1046
|
+
K as aliasRef,
|
|
1047
|
+
J as isAliasRef
|
|
921
1048
|
};
|
|
922
1049
|
//# sourceMappingURL=bundle.es.js.map
|