@anuma/sdk 3.2.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.cjs +793 -1420
- package/dist/client/index.d.mts +406 -402
- package/dist/client/index.d.ts +406 -402
- package/dist/client/index.mjs +793 -1420
- package/dist/expo/{chunk-KXIUA7ZV.mjs → chunk-EIHIZ5L4.mjs} +418 -18
- package/dist/expo/index.cjs +1462 -219
- package/dist/expo/index.d.mts +1763 -795
- package/dist/expo/index.d.ts +1763 -795
- package/dist/expo/index.mjs +1006 -190
- package/dist/expo/{recall-3YPU4PS2.mjs → recall-C3LJ5R2E.mjs} +1 -1
- package/dist/index.cjs +453 -783
- package/dist/index.d.mts +491 -487
- package/dist/index.d.ts +491 -487
- package/dist/index.mjs +453 -783
- package/dist/react/{chunk-Y7PMXJT6.mjs → chunk-PWTWECXY.mjs} +419 -18
- package/dist/react/index.cjs +1539 -345
- package/dist/react/index.d.mts +1816 -825
- package/dist/react/index.d.ts +1816 -825
- package/dist/react/index.mjs +1079 -312
- package/dist/react/{recall-GYNSL2DS.mjs → recall-FZVV5XUU.mjs} +1 -1
- package/dist/server/{chunk-Y3ZS4OI3.mjs → chunk-J5QZOPUI.mjs} +418 -18
- package/dist/server/index.cjs +1341 -75
- package/dist/server/index.d.mts +2778 -1810
- package/dist/server/index.d.ts +2778 -1810
- package/dist/server/index.mjs +890 -51
- package/dist/server/{recall-Z72DM2JK.mjs → recall-NNBMWRLB.mjs} +1 -1
- package/dist/tools/selection/index.cjs +3 -0
- package/dist/tools/selection/index.mjs +3 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -197,14 +197,11 @@ module.exports = __toCommonJS(index_exports);
|
|
|
197
197
|
|
|
198
198
|
// src/client/core/bodySerializer.gen.ts
|
|
199
199
|
var jsonBodySerializer = {
|
|
200
|
-
bodySerializer: (body) => JSON.stringify(
|
|
201
|
-
body,
|
|
202
|
-
(_key, value) => typeof value === "bigint" ? value.toString() : value
|
|
203
|
-
)
|
|
200
|
+
bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
|
|
204
201
|
};
|
|
205
202
|
|
|
206
203
|
// src/client/core/serverSentEvents.gen.ts
|
|
207
|
-
|
|
204
|
+
function createSseClient({
|
|
208
205
|
onRequest,
|
|
209
206
|
onSseError,
|
|
210
207
|
onSseEvent,
|
|
@@ -216,7 +213,7 @@ var createSseClient = ({
|
|
|
216
213
|
sseSleepFn,
|
|
217
214
|
url,
|
|
218
215
|
...options
|
|
219
|
-
})
|
|
216
|
+
}) {
|
|
220
217
|
let lastEventId;
|
|
221
218
|
const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
|
|
222
219
|
const createStream = async function* () {
|
|
@@ -244,10 +241,7 @@ var createSseClient = ({
|
|
|
244
241
|
}
|
|
245
242
|
const _fetch = options.fetch ?? globalThis.fetch;
|
|
246
243
|
const response = await _fetch(request);
|
|
247
|
-
if (!response.ok)
|
|
248
|
-
throw new Error(
|
|
249
|
-
`SSE failed: ${response.status} ${response.statusText}`
|
|
250
|
-
);
|
|
244
|
+
if (!response.ok) throw new Error(`SSE failed: ${response.status} ${response.statusText}`);
|
|
251
245
|
if (!response.body) throw new Error("No body in SSE response");
|
|
252
246
|
const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
|
|
253
247
|
let buffer = "";
|
|
@@ -263,6 +257,7 @@ var createSseClient = ({
|
|
|
263
257
|
const { done, value } = await reader.read();
|
|
264
258
|
if (done) break;
|
|
265
259
|
buffer += value;
|
|
260
|
+
buffer = buffer.replace(/\r\n?/g, "\n");
|
|
266
261
|
const chunks = buffer.split("\n\n");
|
|
267
262
|
buffer = chunks.pop() ?? "";
|
|
268
263
|
for (const chunk of chunks) {
|
|
@@ -277,10 +272,7 @@ var createSseClient = ({
|
|
|
277
272
|
} else if (line.startsWith("id:")) {
|
|
278
273
|
lastEventId = line.replace(/^id:\s*/, "");
|
|
279
274
|
} else if (line.startsWith("retry:")) {
|
|
280
|
-
const parsed = Number.parseInt(
|
|
281
|
-
line.replace(/^retry:\s*/, ""),
|
|
282
|
-
10
|
|
283
|
-
);
|
|
275
|
+
const parsed = Number.parseInt(line.replace(/^retry:\s*/, ""), 10);
|
|
284
276
|
if (!Number.isNaN(parsed)) {
|
|
285
277
|
retryDelay = parsed;
|
|
286
278
|
}
|
|
@@ -326,17 +318,14 @@ var createSseClient = ({
|
|
|
326
318
|
if (sseMaxRetryAttempts !== void 0 && attempt >= sseMaxRetryAttempts) {
|
|
327
319
|
break;
|
|
328
320
|
}
|
|
329
|
-
const backoff = Math.min(
|
|
330
|
-
retryDelay * 2 ** (attempt - 1),
|
|
331
|
-
sseMaxRetryDelay ?? 3e4
|
|
332
|
-
);
|
|
321
|
+
const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 3e4);
|
|
333
322
|
await sleep(backoff);
|
|
334
323
|
}
|
|
335
324
|
}
|
|
336
325
|
};
|
|
337
326
|
const stream = createStream();
|
|
338
327
|
return { stream };
|
|
339
|
-
}
|
|
328
|
+
}
|
|
340
329
|
|
|
341
330
|
// src/client/core/pathSerializer.gen.ts
|
|
342
331
|
var separatorArrayExplode = (style) => {
|
|
@@ -437,11 +426,7 @@ var serializeObjectParam = ({
|
|
|
437
426
|
if (style !== "deepObject" && !explode) {
|
|
438
427
|
let values = [];
|
|
439
428
|
Object.entries(value).forEach(([key, v]) => {
|
|
440
|
-
values = [
|
|
441
|
-
...values,
|
|
442
|
-
key,
|
|
443
|
-
allowReserved ? v : encodeURIComponent(v)
|
|
444
|
-
];
|
|
429
|
+
values = [...values, key, allowReserved ? v : encodeURIComponent(v)];
|
|
445
430
|
});
|
|
446
431
|
const joinedValues2 = values.join(",");
|
|
447
432
|
switch (style) {
|
|
@@ -524,10 +509,7 @@ var defaultPathSerializer = ({ path, url: _url }) => {
|
|
|
524
509
|
continue;
|
|
525
510
|
}
|
|
526
511
|
if (Array.isArray(value)) {
|
|
527
|
-
url = url.replace(
|
|
528
|
-
match,
|
|
529
|
-
serializeArrayParam({ explode, name, style, value })
|
|
530
|
-
);
|
|
512
|
+
url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
|
|
531
513
|
continue;
|
|
532
514
|
}
|
|
533
515
|
if (typeof value === "object") {
|
|
@@ -622,9 +604,7 @@ var getParseAs = (contentType) => {
|
|
|
622
604
|
if (cleanContent === "multipart/form-data") {
|
|
623
605
|
return "formData";
|
|
624
606
|
}
|
|
625
|
-
if (["application/", "audio/", "image/", "video/"].some(
|
|
626
|
-
(type) => cleanContent.startsWith(type)
|
|
627
|
-
)) {
|
|
607
|
+
if (["application/", "audio/", "image/", "video/"].some((type) => cleanContent.startsWith(type))) {
|
|
628
608
|
return "blob";
|
|
629
609
|
}
|
|
630
610
|
if (cleanContent.startsWith("text/")) {
|
|
@@ -641,11 +621,8 @@ var checkForExistence = (options, name) => {
|
|
|
641
621
|
}
|
|
642
622
|
return false;
|
|
643
623
|
};
|
|
644
|
-
|
|
645
|
-
security
|
|
646
|
-
...options
|
|
647
|
-
}) => {
|
|
648
|
-
for (const auth of security) {
|
|
624
|
+
async function setAuthParams(options) {
|
|
625
|
+
for (const auth of options.security ?? []) {
|
|
649
626
|
if (checkForExistence(options, auth.name)) {
|
|
650
627
|
continue;
|
|
651
628
|
}
|
|
@@ -670,7 +647,7 @@ var setAuthParams = async ({
|
|
|
670
647
|
break;
|
|
671
648
|
}
|
|
672
649
|
}
|
|
673
|
-
}
|
|
650
|
+
}
|
|
674
651
|
var buildUrl = (options) => {
|
|
675
652
|
const url = getUrl({
|
|
676
653
|
baseUrl: options.baseUrl,
|
|
@@ -822,10 +799,7 @@ var createClient = (config = {}) => {
|
|
|
822
799
|
serializedBody: void 0
|
|
823
800
|
};
|
|
824
801
|
if (opts.security) {
|
|
825
|
-
await setAuthParams(
|
|
826
|
-
...opts,
|
|
827
|
-
security: opts.security
|
|
828
|
-
});
|
|
802
|
+
await setAuthParams(opts);
|
|
829
803
|
}
|
|
830
804
|
if (opts.requestValidator) {
|
|
831
805
|
await opts.requestValidator(opts);
|
|
@@ -836,105 +810,115 @@ var createClient = (config = {}) => {
|
|
|
836
810
|
if (opts.body === void 0 || opts.serializedBody === "") {
|
|
837
811
|
opts.headers.delete("Content-Type");
|
|
838
812
|
}
|
|
839
|
-
const
|
|
840
|
-
|
|
813
|
+
const resolvedOpts = opts;
|
|
814
|
+
const url = buildUrl(resolvedOpts);
|
|
815
|
+
return { opts: resolvedOpts, url };
|
|
841
816
|
};
|
|
842
817
|
const request = async (options) => {
|
|
843
|
-
const
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
818
|
+
const throwOnError = options.throwOnError ?? _config.throwOnError;
|
|
819
|
+
let response;
|
|
820
|
+
try {
|
|
821
|
+
const { opts, url } = await beforeRequest(options);
|
|
822
|
+
for (const fn of interceptors.request.fns) {
|
|
823
|
+
if (fn) {
|
|
824
|
+
await fn(opts);
|
|
825
|
+
}
|
|
847
826
|
}
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
827
|
+
const _fetch = opts.fetch;
|
|
828
|
+
const requestInit = {
|
|
829
|
+
...opts,
|
|
830
|
+
body: getValidRequestBody(opts)
|
|
831
|
+
};
|
|
832
|
+
response = await _fetch(url, requestInit);
|
|
833
|
+
for (const fn of interceptors.response.fns) {
|
|
834
|
+
if (fn) {
|
|
835
|
+
response = await fn(response, opts);
|
|
836
|
+
}
|
|
858
837
|
}
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
838
|
+
const result = {
|
|
839
|
+
response
|
|
840
|
+
};
|
|
841
|
+
if (response.ok) {
|
|
842
|
+
const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
|
|
843
|
+
if (response.status === 204 || response.headers.get("Content-Length") === "0") {
|
|
844
|
+
let emptyData;
|
|
845
|
+
switch (parseAs) {
|
|
846
|
+
case "arrayBuffer":
|
|
847
|
+
case "blob":
|
|
848
|
+
case "text":
|
|
849
|
+
emptyData = await response[parseAs]();
|
|
850
|
+
break;
|
|
851
|
+
case "formData":
|
|
852
|
+
emptyData = new FormData();
|
|
853
|
+
break;
|
|
854
|
+
case "stream":
|
|
855
|
+
emptyData = response.body;
|
|
856
|
+
break;
|
|
857
|
+
case "json":
|
|
858
|
+
default:
|
|
859
|
+
emptyData = {};
|
|
860
|
+
break;
|
|
861
|
+
}
|
|
862
|
+
return {
|
|
863
|
+
data: emptyData,
|
|
864
|
+
...result
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
let data;
|
|
867
868
|
switch (parseAs) {
|
|
868
869
|
case "arrayBuffer":
|
|
869
870
|
case "blob":
|
|
871
|
+
case "formData":
|
|
870
872
|
case "text":
|
|
871
|
-
|
|
873
|
+
data = await response[parseAs]();
|
|
872
874
|
break;
|
|
873
|
-
case "
|
|
874
|
-
|
|
875
|
+
case "json": {
|
|
876
|
+
const text = await response.text();
|
|
877
|
+
data = text ? JSON.parse(text) : {};
|
|
875
878
|
break;
|
|
879
|
+
}
|
|
876
880
|
case "stream":
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
881
|
+
return {
|
|
882
|
+
data: response.body,
|
|
883
|
+
...result
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
if (parseAs === "json") {
|
|
887
|
+
if (opts.responseValidator) {
|
|
888
|
+
await opts.responseValidator(data);
|
|
889
|
+
}
|
|
890
|
+
if (opts.responseTransformer) {
|
|
891
|
+
data = await opts.responseTransformer(data);
|
|
892
|
+
}
|
|
883
893
|
}
|
|
884
894
|
return {
|
|
885
|
-
data
|
|
895
|
+
data,
|
|
886
896
|
...result
|
|
887
897
|
};
|
|
888
898
|
}
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
case "json":
|
|
895
|
-
case "text":
|
|
896
|
-
data = await response[parseAs]();
|
|
897
|
-
break;
|
|
898
|
-
case "stream":
|
|
899
|
-
return {
|
|
900
|
-
data: response.body,
|
|
901
|
-
...result
|
|
902
|
-
};
|
|
899
|
+
const textError = await response.text();
|
|
900
|
+
let jsonError;
|
|
901
|
+
try {
|
|
902
|
+
jsonError = JSON.parse(textError);
|
|
903
|
+
} catch {
|
|
903
904
|
}
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
if (
|
|
909
|
-
|
|
905
|
+
throw jsonError ?? textError;
|
|
906
|
+
} catch (error) {
|
|
907
|
+
let finalError = error;
|
|
908
|
+
for (const fn of interceptors.error.fns) {
|
|
909
|
+
if (fn) {
|
|
910
|
+
finalError = await fn(finalError, response, options);
|
|
910
911
|
}
|
|
911
912
|
}
|
|
913
|
+
finalError = finalError || {};
|
|
914
|
+
if (throwOnError) {
|
|
915
|
+
throw finalError;
|
|
916
|
+
}
|
|
912
917
|
return {
|
|
913
|
-
|
|
914
|
-
|
|
918
|
+
error: finalError,
|
|
919
|
+
response
|
|
915
920
|
};
|
|
916
921
|
}
|
|
917
|
-
const textError = await response.text();
|
|
918
|
-
let jsonError;
|
|
919
|
-
try {
|
|
920
|
-
jsonError = JSON.parse(textError);
|
|
921
|
-
} catch {
|
|
922
|
-
}
|
|
923
|
-
const error = jsonError ?? textError;
|
|
924
|
-
let finalError = error;
|
|
925
|
-
for (const fn of interceptors.error.fns) {
|
|
926
|
-
if (fn) {
|
|
927
|
-
finalError = await fn(error, response, opts);
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
finalError = finalError || {};
|
|
931
|
-
if (opts.throwOnError) {
|
|
932
|
-
throw finalError;
|
|
933
|
-
}
|
|
934
|
-
return {
|
|
935
|
-
error: finalError,
|
|
936
|
-
...result
|
|
937
|
-
};
|
|
938
922
|
};
|
|
939
923
|
const makeMethodFn = (method) => (options) => request({ ...options, method });
|
|
940
924
|
const makeSseFn = (method) => async (options) => {
|
|
@@ -942,15 +926,10 @@ var createClient = (config = {}) => {
|
|
|
942
926
|
return createSseClient({
|
|
943
927
|
...opts,
|
|
944
928
|
body: opts.body,
|
|
945
|
-
headers: opts.headers,
|
|
946
929
|
method,
|
|
947
930
|
onRequest: async (url2, init) => {
|
|
948
931
|
let request2 = new Request(url2, init);
|
|
949
|
-
const requestInit = {
|
|
950
|
-
...init,
|
|
951
|
-
method: init.method,
|
|
952
|
-
url: url2
|
|
953
|
-
};
|
|
932
|
+
const requestInit = { ...init, url: url2 };
|
|
954
933
|
for (const fn of interceptors.request.fns) {
|
|
955
934
|
if (fn) {
|
|
956
935
|
await fn(requestInit);
|
|
@@ -959,11 +938,13 @@ var createClient = (config = {}) => {
|
|
|
959
938
|
}
|
|
960
939
|
return request2;
|
|
961
940
|
},
|
|
941
|
+
serializedBody: getValidRequestBody(opts),
|
|
962
942
|
url
|
|
963
943
|
});
|
|
964
944
|
};
|
|
945
|
+
const _buildUrl = (options) => buildUrl({ ..._config, ...options });
|
|
965
946
|
return {
|
|
966
|
-
buildUrl,
|
|
947
|
+
buildUrl: _buildUrl,
|
|
967
948
|
connect: makeMethodFn("CONNECT"),
|
|
968
949
|
delete: makeMethodFn("DELETE"),
|
|
969
950
|
get: makeMethodFn("GET"),
|
|
@@ -996,664 +977,350 @@ init_clientConfig();
|
|
|
996
977
|
var client = createClient(createClientConfig(createConfig()));
|
|
997
978
|
|
|
998
979
|
// src/client/sdk.gen.ts
|
|
999
|
-
var deleteApiV1Account = (options) => {
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
}
|
|
1024
|
-
};
|
|
1025
|
-
var
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
...options
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
...options
|
|
1061
|
-
}
|
|
1062
|
-
};
|
|
1063
|
-
var
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
};
|
|
1101
|
-
var
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
}
|
|
1116
|
-
};
|
|
1117
|
-
var
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
};
|
|
1203
|
-
var
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
};
|
|
1213
|
-
var
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
};
|
|
1241
|
-
var
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
...options
|
|
1255
|
-
}
|
|
1256
|
-
};
|
|
1257
|
-
var
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
}
|
|
1266
|
-
};
|
|
1267
|
-
var
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
headers
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
};
|
|
1343
|
-
var getApiV1DeveloperAppsByAppUuidUsageUsers = (options) => {
|
|
1344
|
-
return (options.client ?? client).get({
|
|
1345
|
-
url: "/api/v1/developer/apps/{app_uuid}/usage/users",
|
|
1346
|
-
...options
|
|
1347
|
-
});
|
|
1348
|
-
};
|
|
1349
|
-
var getApiV1DeveloperAppsByAppUuidUsers = (options) => {
|
|
1350
|
-
return (options.client ?? client).get({
|
|
1351
|
-
url: "/api/v1/developer/apps/{app_uuid}/users",
|
|
1352
|
-
...options
|
|
1353
|
-
});
|
|
1354
|
-
};
|
|
1355
|
-
var getApiV1DeveloperAppsByAppUuidUsersByAddress = (options) => {
|
|
1356
|
-
return (options.client ?? client).get({
|
|
1357
|
-
url: "/api/v1/developer/apps/{app_uuid}/users/{address}",
|
|
1358
|
-
...options
|
|
1359
|
-
});
|
|
1360
|
-
};
|
|
1361
|
-
var patchApiV1DeveloperAppsByAppUuidUsersByAddress = (options) => {
|
|
1362
|
-
return (options.client ?? client).patch({
|
|
1363
|
-
url: "/api/v1/developer/apps/{app_uuid}/users/{address}",
|
|
1364
|
-
...options,
|
|
1365
|
-
headers: {
|
|
1366
|
-
"Content-Type": "application/json",
|
|
1367
|
-
...options.headers
|
|
1368
|
-
}
|
|
1369
|
-
});
|
|
1370
|
-
};
|
|
1371
|
-
var postApiV1DeveloperAppsByAppUuidUsersByAddressTopUp = (options) => {
|
|
1372
|
-
return (options.client ?? client).post({
|
|
1373
|
-
url: "/api/v1/developer/apps/{app_uuid}/users/{address}/top-up",
|
|
1374
|
-
...options,
|
|
1375
|
-
headers: {
|
|
1376
|
-
"Content-Type": "application/json",
|
|
1377
|
-
...options.headers
|
|
1378
|
-
}
|
|
1379
|
-
});
|
|
1380
|
-
};
|
|
1381
|
-
var getApiV1DeveloperBilling = (options) => {
|
|
1382
|
-
return (options?.client ?? client).get({
|
|
1383
|
-
url: "/api/v1/developer/billing",
|
|
1384
|
-
...options
|
|
1385
|
-
});
|
|
1386
|
-
};
|
|
1387
|
-
var getApiV1DocsSwaggerJson = (options) => {
|
|
1388
|
-
return (options?.client ?? client).get({
|
|
1389
|
-
url: "/api/v1/docs/swagger.json",
|
|
1390
|
-
...options
|
|
1391
|
-
});
|
|
1392
|
-
};
|
|
1393
|
-
var postApiV1Embeddings = (options) => {
|
|
1394
|
-
return (options.client ?? client).post({
|
|
1395
|
-
url: "/api/v1/embeddings",
|
|
1396
|
-
...options,
|
|
1397
|
-
headers: {
|
|
1398
|
-
"Content-Type": "application/json",
|
|
1399
|
-
...options.headers
|
|
1400
|
-
}
|
|
1401
|
-
});
|
|
1402
|
-
};
|
|
1403
|
-
var getApiV1Models = (options) => {
|
|
1404
|
-
return (options?.client ?? client).get({
|
|
1405
|
-
url: "/api/v1/models",
|
|
1406
|
-
...options
|
|
1407
|
-
});
|
|
1408
|
-
};
|
|
1409
|
-
var getApiV1Personas = (options) => {
|
|
1410
|
-
return (options?.client ?? client).get({
|
|
1411
|
-
url: "/api/v1/personas",
|
|
1412
|
-
...options
|
|
1413
|
-
});
|
|
1414
|
-
};
|
|
1415
|
-
var getApiV1PersonasById = (options) => {
|
|
1416
|
-
return (options.client ?? client).get({
|
|
1417
|
-
url: "/api/v1/personas/{id}",
|
|
1418
|
-
...options
|
|
1419
|
-
});
|
|
1420
|
-
};
|
|
1421
|
-
var postApiV1PhoneCalls = (options) => {
|
|
1422
|
-
return (options.client ?? client).post({
|
|
1423
|
-
url: "/api/v1/phone-calls",
|
|
1424
|
-
...options,
|
|
1425
|
-
headers: {
|
|
1426
|
-
"Content-Type": "application/json",
|
|
1427
|
-
...options.headers
|
|
1428
|
-
}
|
|
1429
|
-
});
|
|
1430
|
-
};
|
|
1431
|
-
var getApiV1PhoneCallsByCallId = (options) => {
|
|
1432
|
-
return (options.client ?? client).get({
|
|
1433
|
-
url: "/api/v1/phone-calls/{call_id}",
|
|
1434
|
-
...options
|
|
1435
|
-
});
|
|
1436
|
-
};
|
|
1437
|
-
var postApiV1Responses = (options) => {
|
|
1438
|
-
return (options.client ?? client).post({
|
|
1439
|
-
url: "/api/v1/responses",
|
|
1440
|
-
...options,
|
|
1441
|
-
headers: {
|
|
1442
|
-
"Content-Type": "application/json",
|
|
1443
|
-
...options.headers
|
|
1444
|
-
}
|
|
1445
|
-
});
|
|
1446
|
-
};
|
|
1447
|
-
var postApiV1SubscriptionsCancel = (options) => {
|
|
1448
|
-
return (options?.client ?? client).post({
|
|
1449
|
-
url: "/api/v1/subscriptions/cancel",
|
|
1450
|
-
...options,
|
|
1451
|
-
headers: {
|
|
1452
|
-
"Content-Type": "application/json",
|
|
1453
|
-
...options?.headers
|
|
1454
|
-
}
|
|
1455
|
-
});
|
|
1456
|
-
};
|
|
1457
|
-
var postApiV1SubscriptionsCancelScheduledDowngrade = (options) => {
|
|
1458
|
-
return (options?.client ?? client).post({
|
|
1459
|
-
url: "/api/v1/subscriptions/cancel-scheduled-downgrade",
|
|
1460
|
-
...options
|
|
1461
|
-
});
|
|
1462
|
-
};
|
|
1463
|
-
var postApiV1SubscriptionsCreateCheckoutSession = (options) => {
|
|
1464
|
-
return (options.client ?? client).post({
|
|
1465
|
-
url: "/api/v1/subscriptions/create-checkout-session",
|
|
1466
|
-
...options,
|
|
1467
|
-
headers: {
|
|
1468
|
-
"Content-Type": "application/json",
|
|
1469
|
-
...options.headers
|
|
1470
|
-
}
|
|
1471
|
-
});
|
|
1472
|
-
};
|
|
1473
|
-
var postApiV1SubscriptionsCustomerPortal = (options) => {
|
|
1474
|
-
return (options.client ?? client).post({
|
|
1475
|
-
url: "/api/v1/subscriptions/customer-portal",
|
|
1476
|
-
...options,
|
|
1477
|
-
headers: {
|
|
1478
|
-
"Content-Type": "application/json",
|
|
1479
|
-
...options.headers
|
|
1480
|
-
}
|
|
1481
|
-
});
|
|
1482
|
-
};
|
|
1483
|
-
var getApiV1SubscriptionsPlans = (options) => {
|
|
1484
|
-
return (options?.client ?? client).get({
|
|
1485
|
-
url: "/api/v1/subscriptions/plans",
|
|
1486
|
-
...options
|
|
1487
|
-
});
|
|
1488
|
-
};
|
|
1489
|
-
var postApiV1SubscriptionsRenew = (options) => {
|
|
1490
|
-
return (options?.client ?? client).post({
|
|
1491
|
-
url: "/api/v1/subscriptions/renew",
|
|
1492
|
-
...options
|
|
1493
|
-
});
|
|
1494
|
-
};
|
|
1495
|
-
var postApiV1SubscriptionsScheduleDowngrade = (options) => {
|
|
1496
|
-
return (options.client ?? client).post({
|
|
1497
|
-
url: "/api/v1/subscriptions/schedule-downgrade",
|
|
1498
|
-
...options,
|
|
1499
|
-
headers: {
|
|
1500
|
-
"Content-Type": "application/json",
|
|
1501
|
-
...options.headers
|
|
1502
|
-
}
|
|
1503
|
-
});
|
|
1504
|
-
};
|
|
1505
|
-
var getApiV1SubscriptionsStatus = (options) => {
|
|
1506
|
-
return (options?.client ?? client).get({
|
|
1507
|
-
url: "/api/v1/subscriptions/status",
|
|
1508
|
-
...options
|
|
1509
|
-
});
|
|
1510
|
-
};
|
|
1511
|
-
var postApiV1SubscriptionsUpgrade = (options) => {
|
|
1512
|
-
return (options.client ?? client).post({
|
|
1513
|
-
url: "/api/v1/subscriptions/upgrade",
|
|
1514
|
-
...options,
|
|
1515
|
-
headers: {
|
|
1516
|
-
"Content-Type": "application/json",
|
|
1517
|
-
...options.headers
|
|
1518
|
-
}
|
|
1519
|
-
});
|
|
1520
|
-
};
|
|
1521
|
-
var postApiV1SubscriptionsWebhook = (options) => {
|
|
1522
|
-
return (options.client ?? client).post({
|
|
1523
|
-
url: "/api/v1/subscriptions/webhook",
|
|
1524
|
-
...options,
|
|
1525
|
-
headers: {
|
|
1526
|
-
"Content-Type": "application/json",
|
|
1527
|
-
...options.headers
|
|
1528
|
-
}
|
|
1529
|
-
});
|
|
1530
|
-
};
|
|
1531
|
-
var getApiV1Tools = (options) => {
|
|
1532
|
-
return (options?.client ?? client).get({
|
|
1533
|
-
url: "/api/v1/tools",
|
|
1534
|
-
...options
|
|
1535
|
-
});
|
|
1536
|
-
};
|
|
1537
|
-
var getApiV1UsageInferenceWeekly = (options) => {
|
|
1538
|
-
return (options?.client ?? client).get({
|
|
1539
|
-
url: "/api/v1/usage/inference-weekly",
|
|
1540
|
-
...options
|
|
1541
|
-
});
|
|
1542
|
-
};
|
|
1543
|
-
var getApiV1UsageModels = (options) => {
|
|
1544
|
-
return (options?.client ?? client).get({
|
|
1545
|
-
url: "/api/v1/usage/models",
|
|
1546
|
-
...options
|
|
1547
|
-
});
|
|
1548
|
-
};
|
|
1549
|
-
var getApiV1UserApiKeys = (options) => {
|
|
1550
|
-
return (options?.client ?? client).get({
|
|
1551
|
-
url: "/api/v1/user/api-keys",
|
|
1552
|
-
...options
|
|
1553
|
-
});
|
|
1554
|
-
};
|
|
1555
|
-
var postApiV1UserApiKeys = (options) => {
|
|
1556
|
-
return (options.client ?? client).post({
|
|
1557
|
-
url: "/api/v1/user/api-keys",
|
|
1558
|
-
...options,
|
|
1559
|
-
headers: {
|
|
1560
|
-
"Content-Type": "application/json",
|
|
1561
|
-
...options.headers
|
|
1562
|
-
}
|
|
1563
|
-
});
|
|
1564
|
-
};
|
|
1565
|
-
var deleteApiV1UserApiKeysByKeyId = (options) => {
|
|
1566
|
-
return (options.client ?? client).delete({
|
|
1567
|
-
url: "/api/v1/user/api-keys/{key_id}",
|
|
1568
|
-
...options
|
|
1569
|
-
});
|
|
1570
|
-
};
|
|
1571
|
-
var getApiV1WalletsBinding = (options) => {
|
|
1572
|
-
return (options?.client ?? client).get({
|
|
1573
|
-
url: "/api/v1/wallets/binding",
|
|
1574
|
-
...options
|
|
1575
|
-
});
|
|
1576
|
-
};
|
|
1577
|
-
var postApiV1WalletsBinding = (options) => {
|
|
1578
|
-
return (options.client ?? client).post({
|
|
1579
|
-
url: "/api/v1/wallets/binding",
|
|
1580
|
-
...options,
|
|
1581
|
-
headers: {
|
|
1582
|
-
"Content-Type": "application/json",
|
|
1583
|
-
...options.headers
|
|
1584
|
-
}
|
|
1585
|
-
});
|
|
1586
|
-
};
|
|
1587
|
-
var postApiV1WalletsBindingNonce = (options) => {
|
|
1588
|
-
return (options?.client ?? client).post({
|
|
1589
|
-
url: "/api/v1/wallets/binding/nonce",
|
|
1590
|
-
...options
|
|
1591
|
-
});
|
|
1592
|
-
};
|
|
1593
|
-
var deleteApiV1WalletsBindingByAddress = (options) => {
|
|
1594
|
-
return (options.client ?? client).delete({
|
|
1595
|
-
url: "/api/v1/wallets/binding/{address}",
|
|
1596
|
-
...options
|
|
1597
|
-
});
|
|
1598
|
-
};
|
|
1599
|
-
var postApiV1WebhooksRevenuecat = (options) => {
|
|
1600
|
-
return (options?.client ?? client).post({
|
|
1601
|
-
url: "/api/v1/webhooks/revenuecat",
|
|
1602
|
-
...options,
|
|
1603
|
-
headers: {
|
|
1604
|
-
"Content-Type": "application/json",
|
|
1605
|
-
...options?.headers
|
|
1606
|
-
}
|
|
1607
|
-
});
|
|
1608
|
-
};
|
|
1609
|
-
var getApiV1ZetaCreditRate = (options) => {
|
|
1610
|
-
return (options?.client ?? client).get({
|
|
1611
|
-
url: "/api/v1/zeta/credit-rate",
|
|
1612
|
-
...options
|
|
1613
|
-
});
|
|
1614
|
-
};
|
|
1615
|
-
var getApiV1ZetaMarket = (options) => {
|
|
1616
|
-
return (options?.client ?? client).get({
|
|
1617
|
-
url: "/api/v1/zeta/market",
|
|
1618
|
-
...options
|
|
1619
|
-
});
|
|
1620
|
-
};
|
|
1621
|
-
var postAuthOauthByProviderExchange = (options) => {
|
|
1622
|
-
return (options.client ?? client).post({
|
|
1623
|
-
url: "/auth/oauth/{provider}/exchange",
|
|
1624
|
-
...options,
|
|
1625
|
-
headers: {
|
|
1626
|
-
"Content-Type": "application/json",
|
|
1627
|
-
...options.headers
|
|
1628
|
-
}
|
|
1629
|
-
});
|
|
1630
|
-
};
|
|
1631
|
-
var postAuthOauthByProviderRefresh = (options) => {
|
|
1632
|
-
return (options.client ?? client).post({
|
|
1633
|
-
url: "/auth/oauth/{provider}/refresh",
|
|
1634
|
-
...options,
|
|
1635
|
-
headers: {
|
|
1636
|
-
"Content-Type": "application/json",
|
|
1637
|
-
...options.headers
|
|
1638
|
-
}
|
|
1639
|
-
});
|
|
1640
|
-
};
|
|
1641
|
-
var postAuthOauthByProviderRevoke = (options) => {
|
|
1642
|
-
return (options.client ?? client).post({
|
|
1643
|
-
url: "/auth/oauth/{provider}/revoke",
|
|
1644
|
-
...options,
|
|
1645
|
-
headers: {
|
|
1646
|
-
"Content-Type": "application/json",
|
|
1647
|
-
...options.headers
|
|
1648
|
-
}
|
|
1649
|
-
});
|
|
1650
|
-
};
|
|
1651
|
-
var getHealth = (options) => {
|
|
1652
|
-
return (options?.client ?? client).get({
|
|
1653
|
-
url: "/health",
|
|
1654
|
-
...options
|
|
1655
|
-
});
|
|
1656
|
-
};
|
|
980
|
+
var deleteApiV1Account = (options) => (options?.client ?? client).delete({ url: "/api/v1/account", ...options });
|
|
981
|
+
var postApiV1AdminAddCredits = (options) => (options.client ?? client).post({
|
|
982
|
+
url: "/api/v1/admin/add-credits",
|
|
983
|
+
...options,
|
|
984
|
+
headers: {
|
|
985
|
+
"Content-Type": "application/json",
|
|
986
|
+
...options.headers
|
|
987
|
+
}
|
|
988
|
+
});
|
|
989
|
+
var postApiV1AdminAgents = (options) => (options.client ?? client).post({
|
|
990
|
+
url: "/api/v1/admin/agents",
|
|
991
|
+
...options,
|
|
992
|
+
headers: {
|
|
993
|
+
"Content-Type": "application/json",
|
|
994
|
+
...options.headers
|
|
995
|
+
}
|
|
996
|
+
});
|
|
997
|
+
var deleteApiV1AdminAgentsById = (options) => (options.client ?? client).delete({ url: "/api/v1/admin/agents/{id}", ...options });
|
|
998
|
+
var putApiV1AdminAgentsById = (options) => (options.client ?? client).put({
|
|
999
|
+
url: "/api/v1/admin/agents/{id}",
|
|
1000
|
+
...options,
|
|
1001
|
+
headers: {
|
|
1002
|
+
"Content-Type": "application/json",
|
|
1003
|
+
...options.headers
|
|
1004
|
+
}
|
|
1005
|
+
});
|
|
1006
|
+
var getApiV1AdminApps = (options) => (options.client ?? client).get({ url: "/api/v1/admin/apps", ...options });
|
|
1007
|
+
var postApiV1AdminApps = (options) => (options.client ?? client).post({
|
|
1008
|
+
url: "/api/v1/admin/apps",
|
|
1009
|
+
...options,
|
|
1010
|
+
headers: {
|
|
1011
|
+
"Content-Type": "application/json",
|
|
1012
|
+
...options.headers
|
|
1013
|
+
}
|
|
1014
|
+
});
|
|
1015
|
+
var getApiV1AdminAppsByAppIdApiKeys = (options) => (options.client ?? client).get({ url: "/api/v1/admin/apps/{app_id}/api-keys", ...options });
|
|
1016
|
+
var postApiV1AdminAppsByAppIdApiKeys = (options) => (options.client ?? client).post({
|
|
1017
|
+
url: "/api/v1/admin/apps/{app_id}/api-keys",
|
|
1018
|
+
...options,
|
|
1019
|
+
headers: {
|
|
1020
|
+
"Content-Type": "application/json",
|
|
1021
|
+
...options.headers
|
|
1022
|
+
}
|
|
1023
|
+
});
|
|
1024
|
+
var deleteApiV1AdminAppsByAppIdApiKeysById = (options) => (options.client ?? client).delete({ url: "/api/v1/admin/apps/{app_id}/api-keys/{id}", ...options });
|
|
1025
|
+
var getApiV1AdminAppsByAppIdApiKeysById = (options) => (options.client ?? client).get({ url: "/api/v1/admin/apps/{app_id}/api-keys/{id}", ...options });
|
|
1026
|
+
var putApiV1AdminAppsByAppIdApiKeysById = (options) => (options.client ?? client).put({
|
|
1027
|
+
url: "/api/v1/admin/apps/{app_id}/api-keys/{id}",
|
|
1028
|
+
...options,
|
|
1029
|
+
headers: {
|
|
1030
|
+
"Content-Type": "application/json",
|
|
1031
|
+
...options.headers
|
|
1032
|
+
}
|
|
1033
|
+
});
|
|
1034
|
+
var deleteApiV1AdminAppsById = (options) => (options.client ?? client).delete({ url: "/api/v1/admin/apps/{id}", ...options });
|
|
1035
|
+
var getApiV1AdminAppsById = (options) => (options.client ?? client).get({ url: "/api/v1/admin/apps/{id}", ...options });
|
|
1036
|
+
var putApiV1AdminAppsById = (options) => (options.client ?? client).put({
|
|
1037
|
+
url: "/api/v1/admin/apps/{id}",
|
|
1038
|
+
...options,
|
|
1039
|
+
headers: {
|
|
1040
|
+
"Content-Type": "application/json",
|
|
1041
|
+
...options.headers
|
|
1042
|
+
}
|
|
1043
|
+
});
|
|
1044
|
+
var postApiV1AdminPersonas = (options) => (options.client ?? client).post({
|
|
1045
|
+
url: "/api/v1/admin/personas",
|
|
1046
|
+
...options,
|
|
1047
|
+
headers: {
|
|
1048
|
+
"Content-Type": "application/json",
|
|
1049
|
+
...options.headers
|
|
1050
|
+
}
|
|
1051
|
+
});
|
|
1052
|
+
var deleteApiV1AdminPersonasById = (options) => (options.client ?? client).delete({ url: "/api/v1/admin/personas/{id}", ...options });
|
|
1053
|
+
var putApiV1AdminPersonasById = (options) => (options.client ?? client).put({
|
|
1054
|
+
url: "/api/v1/admin/personas/{id}",
|
|
1055
|
+
...options,
|
|
1056
|
+
headers: {
|
|
1057
|
+
"Content-Type": "application/json",
|
|
1058
|
+
...options.headers
|
|
1059
|
+
}
|
|
1060
|
+
});
|
|
1061
|
+
var postApiV1AdminSeedApps = (options) => (options.client ?? client).post({
|
|
1062
|
+
url: "/api/v1/admin/seed-apps",
|
|
1063
|
+
...options,
|
|
1064
|
+
headers: {
|
|
1065
|
+
"Content-Type": "application/json",
|
|
1066
|
+
...options.headers
|
|
1067
|
+
}
|
|
1068
|
+
});
|
|
1069
|
+
var postApiV1AdminSubscriptionTier = (options) => (options.client ?? client).post({
|
|
1070
|
+
url: "/api/v1/admin/subscription-tier",
|
|
1071
|
+
...options,
|
|
1072
|
+
headers: {
|
|
1073
|
+
"Content-Type": "application/json",
|
|
1074
|
+
...options.headers
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
var deleteApiV1AdminTextReset = (options) => (options.client ?? client).delete({ url: "/api/v1/admin/text/reset", ...options });
|
|
1078
|
+
var getApiV1AdminUsersLookup = (options) => (options.client ?? client).get({ url: "/api/v1/admin/users/lookup", ...options });
|
|
1079
|
+
var getApiV1AgentPreferences = (options) => (options?.client ?? client).get({ url: "/api/v1/agent-preferences", ...options });
|
|
1080
|
+
var getApiV1Agents = (options) => (options?.client ?? client).get({ url: "/api/v1/agents", ...options });
|
|
1081
|
+
var getApiV1AgentsById = (options) => (options.client ?? client).get({ url: "/api/v1/agents/{id}", ...options });
|
|
1082
|
+
var putApiV1AgentsByIdPreference = (options) => (options.client ?? client).put({
|
|
1083
|
+
url: "/api/v1/agents/{id}/preference",
|
|
1084
|
+
...options,
|
|
1085
|
+
headers: {
|
|
1086
|
+
"Content-Type": "application/json",
|
|
1087
|
+
...options.headers
|
|
1088
|
+
}
|
|
1089
|
+
});
|
|
1090
|
+
var postApiV1ChatCompletions = (options) => (options.client ?? client).post({
|
|
1091
|
+
url: "/api/v1/chat/completions",
|
|
1092
|
+
...options,
|
|
1093
|
+
headers: {
|
|
1094
|
+
"Content-Type": "application/json",
|
|
1095
|
+
...options.headers
|
|
1096
|
+
}
|
|
1097
|
+
});
|
|
1098
|
+
var getApiV1Config = (options) => (options?.client ?? client).get({ url: "/api/v1/config", ...options });
|
|
1099
|
+
var getApiV1CreditsBalance = (options) => (options?.client ?? client).get({ url: "/api/v1/credits/balance", ...options });
|
|
1100
|
+
var getApiV1CreditsPacks = (options) => (options?.client ?? client).get({ url: "/api/v1/credits/packs", ...options });
|
|
1101
|
+
var postApiV1CreditsPurchase = (options) => (options.client ?? client).post({
|
|
1102
|
+
url: "/api/v1/credits/purchase",
|
|
1103
|
+
...options,
|
|
1104
|
+
headers: {
|
|
1105
|
+
"Content-Type": "application/json",
|
|
1106
|
+
...options.headers
|
|
1107
|
+
}
|
|
1108
|
+
});
|
|
1109
|
+
var postApiV1CreditsRedeemTokens = (options) => (options.client ?? client).post({
|
|
1110
|
+
url: "/api/v1/credits/redeem-tokens",
|
|
1111
|
+
...options,
|
|
1112
|
+
headers: {
|
|
1113
|
+
"Content-Type": "application/json",
|
|
1114
|
+
...options.headers
|
|
1115
|
+
}
|
|
1116
|
+
});
|
|
1117
|
+
var getApiV1DeveloperApps = (options) => (options?.client ?? client).get({ url: "/api/v1/developer/apps", ...options });
|
|
1118
|
+
var postApiV1DeveloperApps = (options) => (options.client ?? client).post({
|
|
1119
|
+
url: "/api/v1/developer/apps",
|
|
1120
|
+
...options,
|
|
1121
|
+
headers: {
|
|
1122
|
+
"Content-Type": "application/json",
|
|
1123
|
+
...options.headers
|
|
1124
|
+
}
|
|
1125
|
+
});
|
|
1126
|
+
var deleteApiV1DeveloperAppsByAppUuid = (options) => (options.client ?? client).delete({ url: "/api/v1/developer/apps/{app_uuid}", ...options });
|
|
1127
|
+
var getApiV1DeveloperAppsByAppUuid = (options) => (options.client ?? client).get({ url: "/api/v1/developer/apps/{app_uuid}", ...options });
|
|
1128
|
+
var patchApiV1DeveloperAppsByAppUuid = (options) => (options.client ?? client).patch({
|
|
1129
|
+
url: "/api/v1/developer/apps/{app_uuid}",
|
|
1130
|
+
...options,
|
|
1131
|
+
headers: {
|
|
1132
|
+
"Content-Type": "application/json",
|
|
1133
|
+
...options.headers
|
|
1134
|
+
}
|
|
1135
|
+
});
|
|
1136
|
+
var getApiV1DeveloperAppsByAppUuidApiKeys = (options) => (options.client ?? client).get({ url: "/api/v1/developer/apps/{app_uuid}/api-keys", ...options });
|
|
1137
|
+
var postApiV1DeveloperAppsByAppUuidApiKeys = (options) => (options.client ?? client).post({
|
|
1138
|
+
url: "/api/v1/developer/apps/{app_uuid}/api-keys",
|
|
1139
|
+
...options,
|
|
1140
|
+
headers: {
|
|
1141
|
+
"Content-Type": "application/json",
|
|
1142
|
+
...options.headers
|
|
1143
|
+
}
|
|
1144
|
+
});
|
|
1145
|
+
var deleteApiV1DeveloperAppsByAppUuidApiKeysByKeyId = (options) => (options.client ?? client).delete({ url: "/api/v1/developer/apps/{app_uuid}/api-keys/{key_id}", ...options });
|
|
1146
|
+
var postApiV1DeveloperAppsByAppUuidFund = (options) => (options.client ?? client).post({
|
|
1147
|
+
url: "/api/v1/developer/apps/{app_uuid}/fund",
|
|
1148
|
+
...options,
|
|
1149
|
+
headers: {
|
|
1150
|
+
"Content-Type": "application/json",
|
|
1151
|
+
...options.headers
|
|
1152
|
+
}
|
|
1153
|
+
});
|
|
1154
|
+
var deleteApiV1DeveloperAppsByAppUuidPrivy = (options) => (options.client ?? client).delete({ url: "/api/v1/developer/apps/{app_uuid}/privy", ...options });
|
|
1155
|
+
var postApiV1DeveloperAppsByAppUuidPrivy = (options) => (options.client ?? client).post({
|
|
1156
|
+
url: "/api/v1/developer/apps/{app_uuid}/privy",
|
|
1157
|
+
...options,
|
|
1158
|
+
headers: {
|
|
1159
|
+
"Content-Type": "application/json",
|
|
1160
|
+
...options.headers
|
|
1161
|
+
}
|
|
1162
|
+
});
|
|
1163
|
+
var getApiV1DeveloperAppsByAppUuidUsage = (options) => (options.client ?? client).get({ url: "/api/v1/developer/apps/{app_uuid}/usage", ...options });
|
|
1164
|
+
var getApiV1DeveloperAppsByAppUuidUsageUsers = (options) => (options.client ?? client).get({ url: "/api/v1/developer/apps/{app_uuid}/usage/users", ...options });
|
|
1165
|
+
var getApiV1DeveloperAppsByAppUuidUsers = (options) => (options.client ?? client).get({ url: "/api/v1/developer/apps/{app_uuid}/users", ...options });
|
|
1166
|
+
var getApiV1DeveloperAppsByAppUuidUsersByAddress = (options) => (options.client ?? client).get({ url: "/api/v1/developer/apps/{app_uuid}/users/{address}", ...options });
|
|
1167
|
+
var patchApiV1DeveloperAppsByAppUuidUsersByAddress = (options) => (options.client ?? client).patch({
|
|
1168
|
+
url: "/api/v1/developer/apps/{app_uuid}/users/{address}",
|
|
1169
|
+
...options,
|
|
1170
|
+
headers: {
|
|
1171
|
+
"Content-Type": "application/json",
|
|
1172
|
+
...options.headers
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
var postApiV1DeveloperAppsByAppUuidUsersByAddressTopUp = (options) => (options.client ?? client).post({
|
|
1176
|
+
url: "/api/v1/developer/apps/{app_uuid}/users/{address}/top-up",
|
|
1177
|
+
...options,
|
|
1178
|
+
headers: {
|
|
1179
|
+
"Content-Type": "application/json",
|
|
1180
|
+
...options.headers
|
|
1181
|
+
}
|
|
1182
|
+
});
|
|
1183
|
+
var getApiV1DeveloperBilling = (options) => (options?.client ?? client).get({ url: "/api/v1/developer/billing", ...options });
|
|
1184
|
+
var getApiV1DocsSwaggerJson = (options) => (options?.client ?? client).get({ url: "/api/v1/docs/swagger.json", ...options });
|
|
1185
|
+
var postApiV1Embeddings = (options) => (options.client ?? client).post({
|
|
1186
|
+
url: "/api/v1/embeddings",
|
|
1187
|
+
...options,
|
|
1188
|
+
headers: {
|
|
1189
|
+
"Content-Type": "application/json",
|
|
1190
|
+
...options.headers
|
|
1191
|
+
}
|
|
1192
|
+
});
|
|
1193
|
+
var getApiV1Models = (options) => (options?.client ?? client).get({ url: "/api/v1/models", ...options });
|
|
1194
|
+
var getApiV1Personas = (options) => (options?.client ?? client).get({ url: "/api/v1/personas", ...options });
|
|
1195
|
+
var getApiV1PersonasById = (options) => (options.client ?? client).get({ url: "/api/v1/personas/{id}", ...options });
|
|
1196
|
+
var postApiV1PhoneCalls = (options) => (options.client ?? client).post({
|
|
1197
|
+
url: "/api/v1/phone-calls",
|
|
1198
|
+
...options,
|
|
1199
|
+
headers: {
|
|
1200
|
+
"Content-Type": "application/json",
|
|
1201
|
+
...options.headers
|
|
1202
|
+
}
|
|
1203
|
+
});
|
|
1204
|
+
var getApiV1PhoneCallsByCallId = (options) => (options.client ?? client).get({ url: "/api/v1/phone-calls/{call_id}", ...options });
|
|
1205
|
+
var postApiV1Responses = (options) => (options.client ?? client).post({
|
|
1206
|
+
url: "/api/v1/responses",
|
|
1207
|
+
...options,
|
|
1208
|
+
headers: {
|
|
1209
|
+
"Content-Type": "application/json",
|
|
1210
|
+
...options.headers
|
|
1211
|
+
}
|
|
1212
|
+
});
|
|
1213
|
+
var postApiV1SubscriptionsCancel = (options) => (options?.client ?? client).post({
|
|
1214
|
+
url: "/api/v1/subscriptions/cancel",
|
|
1215
|
+
...options,
|
|
1216
|
+
headers: {
|
|
1217
|
+
"Content-Type": "application/json",
|
|
1218
|
+
...options?.headers
|
|
1219
|
+
}
|
|
1220
|
+
});
|
|
1221
|
+
var postApiV1SubscriptionsCancelScheduledDowngrade = (options) => (options?.client ?? client).post({ url: "/api/v1/subscriptions/cancel-scheduled-downgrade", ...options });
|
|
1222
|
+
var postApiV1SubscriptionsCreateCheckoutSession = (options) => (options.client ?? client).post({
|
|
1223
|
+
url: "/api/v1/subscriptions/create-checkout-session",
|
|
1224
|
+
...options,
|
|
1225
|
+
headers: {
|
|
1226
|
+
"Content-Type": "application/json",
|
|
1227
|
+
...options.headers
|
|
1228
|
+
}
|
|
1229
|
+
});
|
|
1230
|
+
var postApiV1SubscriptionsCustomerPortal = (options) => (options.client ?? client).post({
|
|
1231
|
+
url: "/api/v1/subscriptions/customer-portal",
|
|
1232
|
+
...options,
|
|
1233
|
+
headers: {
|
|
1234
|
+
"Content-Type": "application/json",
|
|
1235
|
+
...options.headers
|
|
1236
|
+
}
|
|
1237
|
+
});
|
|
1238
|
+
var getApiV1SubscriptionsPlans = (options) => (options?.client ?? client).get({ url: "/api/v1/subscriptions/plans", ...options });
|
|
1239
|
+
var postApiV1SubscriptionsRenew = (options) => (options?.client ?? client).post({ url: "/api/v1/subscriptions/renew", ...options });
|
|
1240
|
+
var postApiV1SubscriptionsScheduleDowngrade = (options) => (options.client ?? client).post({
|
|
1241
|
+
url: "/api/v1/subscriptions/schedule-downgrade",
|
|
1242
|
+
...options,
|
|
1243
|
+
headers: {
|
|
1244
|
+
"Content-Type": "application/json",
|
|
1245
|
+
...options.headers
|
|
1246
|
+
}
|
|
1247
|
+
});
|
|
1248
|
+
var getApiV1SubscriptionsStatus = (options) => (options?.client ?? client).get({ url: "/api/v1/subscriptions/status", ...options });
|
|
1249
|
+
var postApiV1SubscriptionsUpgrade = (options) => (options.client ?? client).post({
|
|
1250
|
+
url: "/api/v1/subscriptions/upgrade",
|
|
1251
|
+
...options,
|
|
1252
|
+
headers: {
|
|
1253
|
+
"Content-Type": "application/json",
|
|
1254
|
+
...options.headers
|
|
1255
|
+
}
|
|
1256
|
+
});
|
|
1257
|
+
var postApiV1SubscriptionsWebhook = (options) => (options.client ?? client).post({
|
|
1258
|
+
url: "/api/v1/subscriptions/webhook",
|
|
1259
|
+
...options,
|
|
1260
|
+
headers: {
|
|
1261
|
+
"Content-Type": "application/json",
|
|
1262
|
+
...options.headers
|
|
1263
|
+
}
|
|
1264
|
+
});
|
|
1265
|
+
var getApiV1Tools = (options) => (options?.client ?? client).get({ url: "/api/v1/tools", ...options });
|
|
1266
|
+
var getApiV1UsageInferenceWeekly = (options) => (options?.client ?? client).get({ url: "/api/v1/usage/inference-weekly", ...options });
|
|
1267
|
+
var getApiV1UsageModels = (options) => (options?.client ?? client).get({ url: "/api/v1/usage/models", ...options });
|
|
1268
|
+
var getApiV1UserApiKeys = (options) => (options?.client ?? client).get({ url: "/api/v1/user/api-keys", ...options });
|
|
1269
|
+
var postApiV1UserApiKeys = (options) => (options.client ?? client).post({
|
|
1270
|
+
url: "/api/v1/user/api-keys",
|
|
1271
|
+
...options,
|
|
1272
|
+
headers: {
|
|
1273
|
+
"Content-Type": "application/json",
|
|
1274
|
+
...options.headers
|
|
1275
|
+
}
|
|
1276
|
+
});
|
|
1277
|
+
var deleteApiV1UserApiKeysByKeyId = (options) => (options.client ?? client).delete({ url: "/api/v1/user/api-keys/{key_id}", ...options });
|
|
1278
|
+
var getApiV1WalletsBinding = (options) => (options?.client ?? client).get({ url: "/api/v1/wallets/binding", ...options });
|
|
1279
|
+
var postApiV1WalletsBinding = (options) => (options.client ?? client).post({
|
|
1280
|
+
url: "/api/v1/wallets/binding",
|
|
1281
|
+
...options,
|
|
1282
|
+
headers: {
|
|
1283
|
+
"Content-Type": "application/json",
|
|
1284
|
+
...options.headers
|
|
1285
|
+
}
|
|
1286
|
+
});
|
|
1287
|
+
var postApiV1WalletsBindingNonce = (options) => (options?.client ?? client).post({ url: "/api/v1/wallets/binding/nonce", ...options });
|
|
1288
|
+
var deleteApiV1WalletsBindingByAddress = (options) => (options.client ?? client).delete({ url: "/api/v1/wallets/binding/{address}", ...options });
|
|
1289
|
+
var postApiV1WebhooksRevenuecat = (options) => (options?.client ?? client).post({
|
|
1290
|
+
url: "/api/v1/webhooks/revenuecat",
|
|
1291
|
+
...options,
|
|
1292
|
+
headers: {
|
|
1293
|
+
"Content-Type": "application/json",
|
|
1294
|
+
...options?.headers
|
|
1295
|
+
}
|
|
1296
|
+
});
|
|
1297
|
+
var getApiV1ZetaCreditRate = (options) => (options?.client ?? client).get({ url: "/api/v1/zeta/credit-rate", ...options });
|
|
1298
|
+
var getApiV1ZetaMarket = (options) => (options?.client ?? client).get({ url: "/api/v1/zeta/market", ...options });
|
|
1299
|
+
var postAuthOauthByProviderExchange = (options) => (options.client ?? client).post({
|
|
1300
|
+
url: "/auth/oauth/{provider}/exchange",
|
|
1301
|
+
...options,
|
|
1302
|
+
headers: {
|
|
1303
|
+
"Content-Type": "application/json",
|
|
1304
|
+
...options.headers
|
|
1305
|
+
}
|
|
1306
|
+
});
|
|
1307
|
+
var postAuthOauthByProviderRefresh = (options) => (options.client ?? client).post({
|
|
1308
|
+
url: "/auth/oauth/{provider}/refresh",
|
|
1309
|
+
...options,
|
|
1310
|
+
headers: {
|
|
1311
|
+
"Content-Type": "application/json",
|
|
1312
|
+
...options.headers
|
|
1313
|
+
}
|
|
1314
|
+
});
|
|
1315
|
+
var postAuthOauthByProviderRevoke = (options) => (options.client ?? client).post({
|
|
1316
|
+
url: "/auth/oauth/{provider}/revoke",
|
|
1317
|
+
...options,
|
|
1318
|
+
headers: {
|
|
1319
|
+
"Content-Type": "application/json",
|
|
1320
|
+
...options.headers
|
|
1321
|
+
}
|
|
1322
|
+
});
|
|
1323
|
+
var getHealth = (options) => (options?.client ?? client).get({ url: "/health", ...options });
|
|
1657
1324
|
|
|
1658
1325
|
// src/lib/memoryEngine/generate.ts
|
|
1659
1326
|
init_clientConfig();
|
|
@@ -1685,6 +1352,9 @@ async function withEmbeddingRetry(call) {
|
|
|
1685
1352
|
}
|
|
1686
1353
|
}
|
|
1687
1354
|
if (threw) throw lastThrown;
|
|
1355
|
+
if (last?.error instanceof Error && last.response?.status === void 0) {
|
|
1356
|
+
throw last.error;
|
|
1357
|
+
}
|
|
1688
1358
|
return last;
|
|
1689
1359
|
}
|
|
1690
1360
|
var EmbeddingHttpError = class extends Error {
|