@anuma/sdk 1.0.0 → 1.1.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.
Files changed (87) hide show
  1. package/README.md +54 -53
  2. package/dist/api/spec.cjs +30 -0
  3. package/dist/api/spec.d.mts +3 -0
  4. package/dist/api/spec.d.ts +3 -0
  5. package/dist/api/spec.mjs +12 -0
  6. package/dist/chunk-4ETHWSXJ.mjs +25 -0
  7. package/dist/client/index.cjs +2344 -0
  8. package/dist/client/index.d.mts +10368 -0
  9. package/dist/client/index.d.ts +10368 -0
  10. package/dist/client/index.mjs +2168 -0
  11. package/dist/clientConfig-WITO4T6L.mjs +12 -0
  12. package/dist/constants/index.cjs +30 -0
  13. package/dist/constants/index.d.mts +20 -0
  14. package/dist/constants/index.d.ts +20 -0
  15. package/dist/constants/index.mjs +5 -0
  16. package/dist/design/index.cjs +1523 -0
  17. package/dist/design/index.d.mts +561 -0
  18. package/dist/design/index.d.ts +561 -0
  19. package/dist/design/index.mjs +1468 -0
  20. package/dist/expo/chunk-3HZFU3PV.mjs +5283 -0
  21. package/dist/expo/chunk-DFVCS3QQ.mjs +246 -0
  22. package/dist/{react/chunk-MJJIYFAX.mjs → expo/chunk-GYKJOWEO.mjs} +13 -1
  23. package/dist/expo/chunk-Y7XT2VNQ.mjs +646 -0
  24. package/dist/expo/clientConfig-VPOGQRNP.mjs +12 -0
  25. package/dist/expo/consolidate-HEMQGOUD.mjs +131 -0
  26. package/dist/expo/index.cjs +16904 -6750
  27. package/dist/expo/index.d.mts +5755 -1474
  28. package/dist/expo/index.d.ts +5755 -1474
  29. package/dist/expo/index.mjs +9718 -6182
  30. package/dist/expo/recall-MCB3TVBW.mjs +8 -0
  31. package/dist/index.cjs +2992 -42
  32. package/dist/index.d.mts +7719 -1835
  33. package/dist/index.d.ts +7719 -1835
  34. package/dist/index.mjs +2859 -39
  35. package/dist/next/index.cjs +6 -2
  36. package/dist/next/index.d.mts +24 -1
  37. package/dist/next/index.d.ts +24 -1
  38. package/dist/next/index.mjs +6 -2
  39. package/dist/pii/transformers.cjs +126 -0
  40. package/dist/pii/transformers.d.mts +103 -0
  41. package/dist/pii/transformers.d.ts +103 -0
  42. package/dist/pii/transformers.mjs +90 -0
  43. package/dist/react/chunk-DFVCS3QQ.mjs +246 -0
  44. package/dist/react/chunk-ELDXIXRE.mjs +5656 -0
  45. package/dist/{expo/chunk-MJJIYFAX.mjs → react/chunk-GYKJOWEO.mjs} +13 -1
  46. package/dist/react/chunk-TP6CJZ25.mjs +645 -0
  47. package/dist/react/clientConfig-VPOGQRNP.mjs +12 -0
  48. package/dist/react/consolidate-IJH7LD2T.mjs +131 -0
  49. package/dist/react/index.cjs +25683 -11143
  50. package/dist/react/index.d.mts +7399 -1393
  51. package/dist/react/index.d.ts +7399 -1393
  52. package/dist/react/index.mjs +16709 -9196
  53. package/dist/react/recall-CSOMIT4H.mjs +8 -0
  54. package/dist/server/chunk-FMGZTVXQ.mjs +62 -0
  55. package/dist/server/chunk-G3DC7QBH.mjs +19457 -0
  56. package/dist/server/chunk-PXN5Q3MD.mjs +643 -0
  57. package/dist/server/chunk-RCCKRTBI.mjs +230 -0
  58. package/dist/server/clientConfig-GMADOBPK.mjs +12 -0
  59. package/dist/server/consolidate-A2ZIX5WF.mjs +131 -0
  60. package/dist/server/index.cjs +32161 -0
  61. package/dist/server/index.d.mts +7319 -0
  62. package/dist/server/index.d.ts +7319 -0
  63. package/dist/server/index.mjs +11217 -0
  64. package/dist/server/recall-LFYTTIIY.mjs +8 -0
  65. package/dist/tools/index.cjs +12682 -34
  66. package/dist/tools/index.d.mts +2733 -18
  67. package/dist/tools/index.d.ts +2733 -18
  68. package/dist/tools/index.mjs +12565 -33
  69. package/dist/utils/index.cjs +165 -0
  70. package/dist/utils/index.d.mts +14 -0
  71. package/dist/utils/index.d.ts +14 -0
  72. package/dist/utils/index.mjs +145 -0
  73. package/dist/vercel/index.d.mts +0 -3
  74. package/dist/vercel/index.d.ts +0 -3
  75. package/package.json +127 -16
  76. package/dist/expo/chunk-LJYAMK62.mjs +0 -25
  77. package/dist/expo/chunk-PJCZO4BQ.mjs +0 -25
  78. package/dist/expo/clientConfig-2MI4KULF.mjs +0 -10
  79. package/dist/expo/clientConfig-QDAXFL3W.mjs +0 -10
  80. package/dist/expo/clientConfig-R4IOW7I2.mjs +0 -10
  81. package/dist/react/chunk-LJYAMK62.mjs +0 -25
  82. package/dist/react/chunk-PJCZO4BQ.mjs +0 -25
  83. package/dist/react/clientConfig-2MI4KULF.mjs +0 -10
  84. package/dist/react/clientConfig-QDAXFL3W.mjs +0 -10
  85. package/dist/react/clientConfig-R4IOW7I2.mjs +0 -10
  86. package/dist/tools/chunk-KDFGY4SK.mjs +0 -13
  87. package/dist/tools/clientConfig-RMDOT5YM.mjs +0 -10
@@ -0,0 +1,2168 @@
1
+ // src/client/core/bodySerializer.gen.ts
2
+ var serializeUrlSearchParamsPair = (data, key, value) => {
3
+ if (typeof value === "string") {
4
+ data.append(key, value);
5
+ } else {
6
+ data.append(key, JSON.stringify(value));
7
+ }
8
+ };
9
+ var jsonBodySerializer = {
10
+ bodySerializer: (body) => JSON.stringify(
11
+ body,
12
+ (_key, value) => typeof value === "bigint" ? value.toString() : value
13
+ )
14
+ };
15
+ var urlSearchParamsBodySerializer = {
16
+ bodySerializer: (body) => {
17
+ const data = new URLSearchParams();
18
+ Object.entries(body).forEach(([key, value]) => {
19
+ if (value === void 0 || value === null) {
20
+ return;
21
+ }
22
+ if (Array.isArray(value)) {
23
+ value.forEach((v) => serializeUrlSearchParamsPair(data, key, v));
24
+ } else {
25
+ serializeUrlSearchParamsPair(data, key, value);
26
+ }
27
+ });
28
+ return data.toString();
29
+ }
30
+ };
31
+
32
+ // src/client/core/serverSentEvents.gen.ts
33
+ var createSseClient = ({
34
+ onRequest,
35
+ onSseError,
36
+ onSseEvent,
37
+ responseTransformer,
38
+ responseValidator,
39
+ sseDefaultRetryDelay,
40
+ sseMaxRetryAttempts,
41
+ sseMaxRetryDelay,
42
+ sseSleepFn,
43
+ url,
44
+ ...options
45
+ }) => {
46
+ let lastEventId;
47
+ const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
48
+ const createStream = async function* () {
49
+ let retryDelay = sseDefaultRetryDelay ?? 3e3;
50
+ let attempt = 0;
51
+ const signal = options.signal ?? new AbortController().signal;
52
+ while (true) {
53
+ if (signal.aborted) break;
54
+ attempt++;
55
+ const headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers);
56
+ if (lastEventId !== void 0) {
57
+ headers.set("Last-Event-ID", lastEventId);
58
+ }
59
+ try {
60
+ const requestInit = {
61
+ redirect: "follow",
62
+ ...options,
63
+ body: options.serializedBody,
64
+ headers,
65
+ signal
66
+ };
67
+ let request = new Request(url, requestInit);
68
+ if (onRequest) {
69
+ request = await onRequest(url, requestInit);
70
+ }
71
+ const _fetch = options.fetch ?? globalThis.fetch;
72
+ const response = await _fetch(request);
73
+ if (!response.ok)
74
+ throw new Error(
75
+ `SSE failed: ${response.status} ${response.statusText}`
76
+ );
77
+ if (!response.body) throw new Error("No body in SSE response");
78
+ const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
79
+ let buffer = "";
80
+ const abortHandler = () => {
81
+ try {
82
+ reader.cancel();
83
+ } catch {
84
+ }
85
+ };
86
+ signal.addEventListener("abort", abortHandler);
87
+ try {
88
+ while (true) {
89
+ const { done, value } = await reader.read();
90
+ if (done) break;
91
+ buffer += value;
92
+ const chunks = buffer.split("\n\n");
93
+ buffer = chunks.pop() ?? "";
94
+ for (const chunk of chunks) {
95
+ const lines = chunk.split("\n");
96
+ const dataLines = [];
97
+ let eventName;
98
+ for (const line of lines) {
99
+ if (line.startsWith("data:")) {
100
+ dataLines.push(line.replace(/^data:\s*/, ""));
101
+ } else if (line.startsWith("event:")) {
102
+ eventName = line.replace(/^event:\s*/, "");
103
+ } else if (line.startsWith("id:")) {
104
+ lastEventId = line.replace(/^id:\s*/, "");
105
+ } else if (line.startsWith("retry:")) {
106
+ const parsed = Number.parseInt(
107
+ line.replace(/^retry:\s*/, ""),
108
+ 10
109
+ );
110
+ if (!Number.isNaN(parsed)) {
111
+ retryDelay = parsed;
112
+ }
113
+ }
114
+ }
115
+ let data;
116
+ let parsedJson = false;
117
+ if (dataLines.length) {
118
+ const rawData = dataLines.join("\n");
119
+ try {
120
+ data = JSON.parse(rawData);
121
+ parsedJson = true;
122
+ } catch {
123
+ data = rawData;
124
+ }
125
+ }
126
+ if (parsedJson) {
127
+ if (responseValidator) {
128
+ await responseValidator(data);
129
+ }
130
+ if (responseTransformer) {
131
+ data = await responseTransformer(data);
132
+ }
133
+ }
134
+ onSseEvent?.({
135
+ data,
136
+ event: eventName,
137
+ id: lastEventId,
138
+ retry: retryDelay
139
+ });
140
+ if (dataLines.length) {
141
+ yield data;
142
+ }
143
+ }
144
+ }
145
+ } finally {
146
+ signal.removeEventListener("abort", abortHandler);
147
+ reader.releaseLock();
148
+ }
149
+ break;
150
+ } catch (error) {
151
+ onSseError?.(error);
152
+ if (sseMaxRetryAttempts !== void 0 && attempt >= sseMaxRetryAttempts) {
153
+ break;
154
+ }
155
+ const backoff = Math.min(
156
+ retryDelay * 2 ** (attempt - 1),
157
+ sseMaxRetryDelay ?? 3e4
158
+ );
159
+ await sleep(backoff);
160
+ }
161
+ }
162
+ };
163
+ const stream = createStream();
164
+ return { stream };
165
+ };
166
+
167
+ // src/client/core/pathSerializer.gen.ts
168
+ var separatorArrayExplode = (style) => {
169
+ switch (style) {
170
+ case "label":
171
+ return ".";
172
+ case "matrix":
173
+ return ";";
174
+ case "simple":
175
+ return ",";
176
+ default:
177
+ return "&";
178
+ }
179
+ };
180
+ var separatorArrayNoExplode = (style) => {
181
+ switch (style) {
182
+ case "form":
183
+ return ",";
184
+ case "pipeDelimited":
185
+ return "|";
186
+ case "spaceDelimited":
187
+ return "%20";
188
+ default:
189
+ return ",";
190
+ }
191
+ };
192
+ var separatorObjectExplode = (style) => {
193
+ switch (style) {
194
+ case "label":
195
+ return ".";
196
+ case "matrix":
197
+ return ";";
198
+ case "simple":
199
+ return ",";
200
+ default:
201
+ return "&";
202
+ }
203
+ };
204
+ var serializeArrayParam = ({
205
+ allowReserved,
206
+ explode,
207
+ name,
208
+ style,
209
+ value
210
+ }) => {
211
+ if (!explode) {
212
+ const joinedValues2 = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
213
+ switch (style) {
214
+ case "label":
215
+ return `.${joinedValues2}`;
216
+ case "matrix":
217
+ return `;${name}=${joinedValues2}`;
218
+ case "simple":
219
+ return joinedValues2;
220
+ default:
221
+ return `${name}=${joinedValues2}`;
222
+ }
223
+ }
224
+ const separator = separatorArrayExplode(style);
225
+ const joinedValues = value.map((v) => {
226
+ if (style === "label" || style === "simple") {
227
+ return allowReserved ? v : encodeURIComponent(v);
228
+ }
229
+ return serializePrimitiveParam({
230
+ allowReserved,
231
+ name,
232
+ value: v
233
+ });
234
+ }).join(separator);
235
+ return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
236
+ };
237
+ var serializePrimitiveParam = ({
238
+ allowReserved,
239
+ name,
240
+ value
241
+ }) => {
242
+ if (value === void 0 || value === null) {
243
+ return "";
244
+ }
245
+ if (typeof value === "object") {
246
+ throw new Error(
247
+ "Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these."
248
+ );
249
+ }
250
+ return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
251
+ };
252
+ var serializeObjectParam = ({
253
+ allowReserved,
254
+ explode,
255
+ name,
256
+ style,
257
+ value,
258
+ valueOnly
259
+ }) => {
260
+ if (value instanceof Date) {
261
+ return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
262
+ }
263
+ if (style !== "deepObject" && !explode) {
264
+ let values = [];
265
+ Object.entries(value).forEach(([key, v]) => {
266
+ values = [
267
+ ...values,
268
+ key,
269
+ allowReserved ? v : encodeURIComponent(v)
270
+ ];
271
+ });
272
+ const joinedValues2 = values.join(",");
273
+ switch (style) {
274
+ case "form":
275
+ return `${name}=${joinedValues2}`;
276
+ case "label":
277
+ return `.${joinedValues2}`;
278
+ case "matrix":
279
+ return `;${name}=${joinedValues2}`;
280
+ default:
281
+ return joinedValues2;
282
+ }
283
+ }
284
+ const separator = separatorObjectExplode(style);
285
+ const joinedValues = Object.entries(value).map(
286
+ ([key, v]) => serializePrimitiveParam({
287
+ allowReserved,
288
+ name: style === "deepObject" ? `${name}[${key}]` : key,
289
+ value: v
290
+ })
291
+ ).join(separator);
292
+ return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
293
+ };
294
+
295
+ // src/client/core/utils.gen.ts
296
+ function getValidRequestBody(options) {
297
+ const hasBody = options.body !== void 0;
298
+ const isSerializedBody = hasBody && options.bodySerializer;
299
+ if (isSerializedBody) {
300
+ if ("serializedBody" in options) {
301
+ const hasSerializedBody = options.serializedBody !== void 0 && options.serializedBody !== "";
302
+ return hasSerializedBody ? options.serializedBody : null;
303
+ }
304
+ return options.body !== "" ? options.body : null;
305
+ }
306
+ if (hasBody) {
307
+ return options.body;
308
+ }
309
+ return void 0;
310
+ }
311
+
312
+ // src/client/core/auth.gen.ts
313
+ var getAuthToken = async (auth, callback) => {
314
+ const token = typeof callback === "function" ? await callback(auth) : callback;
315
+ if (!token) {
316
+ return;
317
+ }
318
+ if (auth.scheme === "bearer") {
319
+ return `Bearer ${token}`;
320
+ }
321
+ if (auth.scheme === "basic") {
322
+ return `Basic ${btoa(token)}`;
323
+ }
324
+ return token;
325
+ };
326
+
327
+ // src/client/client/utils.gen.ts
328
+ var PATH_PARAM_RE = /\{[^{}]+\}/g;
329
+ var defaultPathSerializer = ({ path, url: _url }) => {
330
+ let url = _url;
331
+ const matches = _url.match(PATH_PARAM_RE);
332
+ if (matches) {
333
+ for (const match of matches) {
334
+ let explode = false;
335
+ let name = match.substring(1, match.length - 1);
336
+ let style = "simple";
337
+ if (name.endsWith("*")) {
338
+ explode = true;
339
+ name = name.substring(0, name.length - 1);
340
+ }
341
+ if (name.startsWith(".")) {
342
+ name = name.substring(1);
343
+ style = "label";
344
+ } else if (name.startsWith(";")) {
345
+ name = name.substring(1);
346
+ style = "matrix";
347
+ }
348
+ const value = path[name];
349
+ if (value === void 0 || value === null) {
350
+ continue;
351
+ }
352
+ if (Array.isArray(value)) {
353
+ url = url.replace(
354
+ match,
355
+ serializeArrayParam({ explode, name, style, value })
356
+ );
357
+ continue;
358
+ }
359
+ if (typeof value === "object") {
360
+ url = url.replace(
361
+ match,
362
+ serializeObjectParam({
363
+ explode,
364
+ name,
365
+ style,
366
+ value,
367
+ valueOnly: true
368
+ })
369
+ );
370
+ continue;
371
+ }
372
+ if (style === "matrix") {
373
+ url = url.replace(
374
+ match,
375
+ `;${serializePrimitiveParam({
376
+ name,
377
+ value
378
+ })}`
379
+ );
380
+ continue;
381
+ }
382
+ const replaceValue = encodeURIComponent(
383
+ style === "label" ? `.${value}` : value
384
+ );
385
+ url = url.replace(match, replaceValue);
386
+ }
387
+ }
388
+ return url;
389
+ };
390
+ var createQuerySerializer = ({
391
+ parameters = {},
392
+ ...args
393
+ } = {}) => {
394
+ const querySerializer = (queryParams) => {
395
+ const search = [];
396
+ if (queryParams && typeof queryParams === "object") {
397
+ for (const name in queryParams) {
398
+ const value = queryParams[name];
399
+ if (value === void 0 || value === null) {
400
+ continue;
401
+ }
402
+ const options = parameters[name] || args;
403
+ if (Array.isArray(value)) {
404
+ const serializedArray = serializeArrayParam({
405
+ allowReserved: options.allowReserved,
406
+ explode: true,
407
+ name,
408
+ style: "form",
409
+ value,
410
+ ...options.array
411
+ });
412
+ if (serializedArray) search.push(serializedArray);
413
+ } else if (typeof value === "object") {
414
+ const serializedObject = serializeObjectParam({
415
+ allowReserved: options.allowReserved,
416
+ explode: true,
417
+ name,
418
+ style: "deepObject",
419
+ value,
420
+ ...options.object
421
+ });
422
+ if (serializedObject) search.push(serializedObject);
423
+ } else {
424
+ const serializedPrimitive = serializePrimitiveParam({
425
+ allowReserved: options.allowReserved,
426
+ name,
427
+ value
428
+ });
429
+ if (serializedPrimitive) search.push(serializedPrimitive);
430
+ }
431
+ }
432
+ }
433
+ return search.join("&");
434
+ };
435
+ return querySerializer;
436
+ };
437
+ var getParseAs = (contentType) => {
438
+ if (!contentType) {
439
+ return "stream";
440
+ }
441
+ const cleanContent = contentType.split(";")[0]?.trim();
442
+ if (!cleanContent) {
443
+ return;
444
+ }
445
+ if (cleanContent.startsWith("application/json") || cleanContent.endsWith("+json")) {
446
+ return "json";
447
+ }
448
+ if (cleanContent === "multipart/form-data") {
449
+ return "formData";
450
+ }
451
+ if (["application/", "audio/", "image/", "video/"].some(
452
+ (type) => cleanContent.startsWith(type)
453
+ )) {
454
+ return "blob";
455
+ }
456
+ if (cleanContent.startsWith("text/")) {
457
+ return "text";
458
+ }
459
+ return;
460
+ };
461
+ var checkForExistence = (options, name) => {
462
+ if (!name) {
463
+ return false;
464
+ }
465
+ if (options.headers.has(name) || options.query?.[name] || options.headers.get("Cookie")?.includes(`${name}=`)) {
466
+ return true;
467
+ }
468
+ return false;
469
+ };
470
+ var setAuthParams = async ({
471
+ security,
472
+ ...options
473
+ }) => {
474
+ for (const auth of security) {
475
+ if (checkForExistence(options, auth.name)) {
476
+ continue;
477
+ }
478
+ const token = await getAuthToken(auth, options.auth);
479
+ if (!token) {
480
+ continue;
481
+ }
482
+ const name = auth.name ?? "Authorization";
483
+ switch (auth.in) {
484
+ case "query":
485
+ if (!options.query) {
486
+ options.query = {};
487
+ }
488
+ options.query[name] = token;
489
+ break;
490
+ case "cookie":
491
+ options.headers.append("Cookie", `${name}=${token}`);
492
+ break;
493
+ case "header":
494
+ default:
495
+ options.headers.set(name, token);
496
+ break;
497
+ }
498
+ }
499
+ };
500
+ var buildUrl = (options) => {
501
+ const url = getUrl({
502
+ baseUrl: options.baseUrl,
503
+ path: options.path,
504
+ query: options.query,
505
+ querySerializer: typeof options.querySerializer === "function" ? options.querySerializer : createQuerySerializer(options.querySerializer),
506
+ url: options.url
507
+ });
508
+ return url;
509
+ };
510
+ var getUrl = ({
511
+ baseUrl,
512
+ path,
513
+ query,
514
+ querySerializer,
515
+ url: _url
516
+ }) => {
517
+ const pathUrl = _url.startsWith("/") ? _url : `/${_url}`;
518
+ let url = (baseUrl ?? "") + pathUrl;
519
+ if (path) {
520
+ url = defaultPathSerializer({ path, url });
521
+ }
522
+ let search = query ? querySerializer(query) : "";
523
+ if (search.startsWith("?")) {
524
+ search = search.substring(1);
525
+ }
526
+ if (search) {
527
+ url += `?${search}`;
528
+ }
529
+ return url;
530
+ };
531
+ var mergeConfigs = (a, b) => {
532
+ const config = { ...a, ...b };
533
+ if (config.baseUrl?.endsWith("/")) {
534
+ config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);
535
+ }
536
+ config.headers = mergeHeaders(a.headers, b.headers);
537
+ return config;
538
+ };
539
+ var headersEntries = (headers) => {
540
+ const entries = [];
541
+ headers.forEach((value, key) => {
542
+ entries.push([key, value]);
543
+ });
544
+ return entries;
545
+ };
546
+ var mergeHeaders = (...headers) => {
547
+ const mergedHeaders = new Headers();
548
+ for (const header of headers) {
549
+ if (!header || typeof header !== "object") {
550
+ continue;
551
+ }
552
+ const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header);
553
+ for (const [key, value] of iterator) {
554
+ if (value === null) {
555
+ mergedHeaders.delete(key);
556
+ } else if (Array.isArray(value)) {
557
+ for (const v of value) {
558
+ mergedHeaders.append(key, v);
559
+ }
560
+ } else if (value !== void 0) {
561
+ mergedHeaders.set(
562
+ key,
563
+ typeof value === "object" ? JSON.stringify(value) : value
564
+ );
565
+ }
566
+ }
567
+ }
568
+ return mergedHeaders;
569
+ };
570
+ var Interceptors = class {
571
+ constructor() {
572
+ this.fns = [];
573
+ }
574
+ clear() {
575
+ this.fns = [];
576
+ }
577
+ eject(id) {
578
+ const index = this.getInterceptorIndex(id);
579
+ if (this.fns[index]) {
580
+ this.fns[index] = null;
581
+ }
582
+ }
583
+ exists(id) {
584
+ const index = this.getInterceptorIndex(id);
585
+ return Boolean(this.fns[index]);
586
+ }
587
+ getInterceptorIndex(id) {
588
+ if (typeof id === "number") {
589
+ return this.fns[id] ? id : -1;
590
+ }
591
+ return this.fns.indexOf(id);
592
+ }
593
+ update(id, fn) {
594
+ const index = this.getInterceptorIndex(id);
595
+ if (this.fns[index]) {
596
+ this.fns[index] = fn;
597
+ return id;
598
+ }
599
+ return false;
600
+ }
601
+ use(fn) {
602
+ this.fns.push(fn);
603
+ return this.fns.length - 1;
604
+ }
605
+ };
606
+ var createInterceptors = () => ({
607
+ error: new Interceptors(),
608
+ request: new Interceptors(),
609
+ response: new Interceptors()
610
+ });
611
+ var defaultQuerySerializer = createQuerySerializer({
612
+ allowReserved: false,
613
+ array: {
614
+ explode: true,
615
+ style: "form"
616
+ },
617
+ object: {
618
+ explode: true,
619
+ style: "deepObject"
620
+ }
621
+ });
622
+ var defaultHeaders = {
623
+ "Content-Type": "application/json"
624
+ };
625
+ var createConfig = (override = {}) => ({
626
+ ...jsonBodySerializer,
627
+ headers: defaultHeaders,
628
+ parseAs: "auto",
629
+ querySerializer: defaultQuerySerializer,
630
+ ...override
631
+ });
632
+
633
+ // src/client/client/client.gen.ts
634
+ var createClient = (config = {}) => {
635
+ let _config = mergeConfigs(createConfig(), config);
636
+ const getConfig = () => ({ ..._config });
637
+ const setConfig = (config2) => {
638
+ _config = mergeConfigs(_config, config2);
639
+ return getConfig();
640
+ };
641
+ const interceptors = createInterceptors();
642
+ const beforeRequest = async (options) => {
643
+ const opts = {
644
+ ..._config,
645
+ ...options,
646
+ fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
647
+ headers: mergeHeaders(_config.headers, options.headers),
648
+ serializedBody: void 0
649
+ };
650
+ if (opts.security) {
651
+ await setAuthParams({
652
+ ...opts,
653
+ security: opts.security
654
+ });
655
+ }
656
+ if (opts.requestValidator) {
657
+ await opts.requestValidator(opts);
658
+ }
659
+ if (opts.body !== void 0 && opts.bodySerializer) {
660
+ opts.serializedBody = opts.bodySerializer(opts.body);
661
+ }
662
+ if (opts.body === void 0 || opts.serializedBody === "") {
663
+ opts.headers.delete("Content-Type");
664
+ }
665
+ const url = buildUrl(opts);
666
+ return { opts, url };
667
+ };
668
+ const request = async (options) => {
669
+ const { opts, url } = await beforeRequest(options);
670
+ for (const fn of interceptors.request.fns) {
671
+ if (fn) {
672
+ await fn(opts);
673
+ }
674
+ }
675
+ const _fetch = opts.fetch;
676
+ const requestInit = {
677
+ ...opts,
678
+ body: getValidRequestBody(opts)
679
+ };
680
+ let response = await _fetch(url, requestInit);
681
+ for (const fn of interceptors.response.fns) {
682
+ if (fn) {
683
+ response = await fn(response, opts);
684
+ }
685
+ }
686
+ const result = {
687
+ response
688
+ };
689
+ if (response.ok) {
690
+ const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
691
+ if (response.status === 204 || response.headers.get("Content-Length") === "0") {
692
+ let emptyData;
693
+ switch (parseAs) {
694
+ case "arrayBuffer":
695
+ case "blob":
696
+ case "text":
697
+ emptyData = await response[parseAs]();
698
+ break;
699
+ case "formData":
700
+ emptyData = new FormData();
701
+ break;
702
+ case "stream":
703
+ emptyData = response.body;
704
+ break;
705
+ case "json":
706
+ default:
707
+ emptyData = {};
708
+ break;
709
+ }
710
+ return {
711
+ data: emptyData,
712
+ ...result
713
+ };
714
+ }
715
+ let data;
716
+ switch (parseAs) {
717
+ case "arrayBuffer":
718
+ case "blob":
719
+ case "formData":
720
+ case "json":
721
+ case "text":
722
+ data = await response[parseAs]();
723
+ break;
724
+ case "stream":
725
+ return {
726
+ data: response.body,
727
+ ...result
728
+ };
729
+ }
730
+ if (parseAs === "json") {
731
+ if (opts.responseValidator) {
732
+ await opts.responseValidator(data);
733
+ }
734
+ if (opts.responseTransformer) {
735
+ data = await opts.responseTransformer(data);
736
+ }
737
+ }
738
+ return {
739
+ data,
740
+ ...result
741
+ };
742
+ }
743
+ const textError = await response.text();
744
+ let jsonError;
745
+ try {
746
+ jsonError = JSON.parse(textError);
747
+ } catch {
748
+ }
749
+ const error = jsonError ?? textError;
750
+ let finalError = error;
751
+ for (const fn of interceptors.error.fns) {
752
+ if (fn) {
753
+ finalError = await fn(error, response, opts);
754
+ }
755
+ }
756
+ finalError = finalError || {};
757
+ if (opts.throwOnError) {
758
+ throw finalError;
759
+ }
760
+ return {
761
+ error: finalError,
762
+ ...result
763
+ };
764
+ };
765
+ const makeMethodFn = (method) => (options) => request({ ...options, method });
766
+ const makeSseFn = (method) => async (options) => {
767
+ const { opts, url } = await beforeRequest(options);
768
+ return createSseClient({
769
+ ...opts,
770
+ body: opts.body,
771
+ headers: opts.headers,
772
+ method,
773
+ onRequest: async (url2, init) => {
774
+ let request2 = new Request(url2, init);
775
+ const requestInit = {
776
+ ...init,
777
+ method: init.method,
778
+ url: url2
779
+ };
780
+ for (const fn of interceptors.request.fns) {
781
+ if (fn) {
782
+ await fn(requestInit);
783
+ request2 = new Request(requestInit.url, requestInit);
784
+ }
785
+ }
786
+ return request2;
787
+ },
788
+ url
789
+ });
790
+ };
791
+ return {
792
+ buildUrl,
793
+ connect: makeMethodFn("CONNECT"),
794
+ delete: makeMethodFn("DELETE"),
795
+ get: makeMethodFn("GET"),
796
+ getConfig,
797
+ head: makeMethodFn("HEAD"),
798
+ interceptors,
799
+ options: makeMethodFn("OPTIONS"),
800
+ patch: makeMethodFn("PATCH"),
801
+ post: makeMethodFn("POST"),
802
+ put: makeMethodFn("PUT"),
803
+ request,
804
+ setConfig,
805
+ sse: {
806
+ connect: makeSseFn("CONNECT"),
807
+ delete: makeSseFn("DELETE"),
808
+ get: makeSseFn("GET"),
809
+ head: makeSseFn("HEAD"),
810
+ options: makeSseFn("OPTIONS"),
811
+ patch: makeSseFn("PATCH"),
812
+ post: makeSseFn("POST"),
813
+ put: makeSseFn("PUT"),
814
+ trace: makeSseFn("TRACE")
815
+ },
816
+ trace: makeMethodFn("TRACE")
817
+ };
818
+ };
819
+
820
+ // src/clientConfig.ts
821
+ var DEFAULT_BASE_URL = "https://portal.anuma-dev.ai";
822
+ function readGlobal(key) {
823
+ if (typeof globalThis === "undefined") return void 0;
824
+ const value = globalThis[key];
825
+ return typeof value === "string" && value.length > 0 ? value : void 0;
826
+ }
827
+ function resolveBaseUrl() {
828
+ const fromProcess = typeof process !== "undefined" ? process.env.API_URL || process.env.NEXT_PUBLIC_API_URL || process.env.EXPO_PUBLIC_API_URL : void 0;
829
+ const fromGlobal = readGlobal("API_URL") ?? readGlobal("NEXT_PUBLIC_API_URL") ?? readGlobal("EXPO_PUBLIC_API_URL");
830
+ return (fromProcess || fromGlobal || DEFAULT_BASE_URL).replace(/\/+$/, "");
831
+ }
832
+ var BASE_URL = resolveBaseUrl();
833
+ var createClientConfig = (config) => ({
834
+ ...config,
835
+ baseUrl: BASE_URL
836
+ });
837
+
838
+ // src/client/client.gen.ts
839
+ var client = createClient(createClientConfig(createConfig()));
840
+
841
+ // src/client/sdk.gen.ts
842
+ var getWellKnownJwksJson = (options) => {
843
+ return (options?.client ?? client).get({
844
+ url: "/.well-known/jwks.json",
845
+ ...options
846
+ });
847
+ };
848
+ var deleteApiV1Account = (options) => {
849
+ return (options?.client ?? client).delete({
850
+ url: "/api/v1/account",
851
+ ...options
852
+ });
853
+ };
854
+ var postApiV1AdminAddCredits = (options) => {
855
+ return (options.client ?? client).post({
856
+ url: "/api/v1/admin/add-credits",
857
+ ...options,
858
+ headers: {
859
+ "Content-Type": "application/json",
860
+ ...options.headers
861
+ }
862
+ });
863
+ };
864
+ var postApiV1AdminAgents = (options) => {
865
+ return (options.client ?? client).post({
866
+ url: "/api/v1/admin/agents",
867
+ ...options,
868
+ headers: {
869
+ "Content-Type": "application/json",
870
+ ...options.headers
871
+ }
872
+ });
873
+ };
874
+ var deleteApiV1AdminAgentsById = (options) => {
875
+ return (options.client ?? client).delete({
876
+ url: "/api/v1/admin/agents/{id}",
877
+ ...options
878
+ });
879
+ };
880
+ var putApiV1AdminAgentsById = (options) => {
881
+ return (options.client ?? client).put({
882
+ url: "/api/v1/admin/agents/{id}",
883
+ ...options,
884
+ headers: {
885
+ "Content-Type": "application/json",
886
+ ...options.headers
887
+ }
888
+ });
889
+ };
890
+ var getApiV1AdminApps = (options) => {
891
+ return (options.client ?? client).get({
892
+ url: "/api/v1/admin/apps",
893
+ ...options
894
+ });
895
+ };
896
+ var postApiV1AdminApps = (options) => {
897
+ return (options.client ?? client).post({
898
+ url: "/api/v1/admin/apps",
899
+ ...options,
900
+ headers: {
901
+ "Content-Type": "application/json",
902
+ ...options.headers
903
+ }
904
+ });
905
+ };
906
+ var getApiV1AdminAppsByAppIdApiKeys = (options) => {
907
+ return (options.client ?? client).get({
908
+ url: "/api/v1/admin/apps/{app_id}/api-keys",
909
+ ...options
910
+ });
911
+ };
912
+ var postApiV1AdminAppsByAppIdApiKeys = (options) => {
913
+ return (options.client ?? client).post({
914
+ url: "/api/v1/admin/apps/{app_id}/api-keys",
915
+ ...options,
916
+ headers: {
917
+ "Content-Type": "application/json",
918
+ ...options.headers
919
+ }
920
+ });
921
+ };
922
+ var deleteApiV1AdminAppsByAppIdApiKeysById = (options) => {
923
+ return (options.client ?? client).delete({
924
+ url: "/api/v1/admin/apps/{app_id}/api-keys/{id}",
925
+ ...options
926
+ });
927
+ };
928
+ var getApiV1AdminAppsByAppIdApiKeysById = (options) => {
929
+ return (options.client ?? client).get({
930
+ url: "/api/v1/admin/apps/{app_id}/api-keys/{id}",
931
+ ...options
932
+ });
933
+ };
934
+ var putApiV1AdminAppsByAppIdApiKeysById = (options) => {
935
+ return (options.client ?? client).put({
936
+ url: "/api/v1/admin/apps/{app_id}/api-keys/{id}",
937
+ ...options,
938
+ headers: {
939
+ "Content-Type": "application/json",
940
+ ...options.headers
941
+ }
942
+ });
943
+ };
944
+ var deleteApiV1AdminAppsById = (options) => {
945
+ return (options.client ?? client).delete({
946
+ url: "/api/v1/admin/apps/{id}",
947
+ ...options
948
+ });
949
+ };
950
+ var getApiV1AdminAppsById = (options) => {
951
+ return (options.client ?? client).get({
952
+ url: "/api/v1/admin/apps/{id}",
953
+ ...options
954
+ });
955
+ };
956
+ var putApiV1AdminAppsById = (options) => {
957
+ return (options.client ?? client).put({
958
+ url: "/api/v1/admin/apps/{id}",
959
+ ...options,
960
+ headers: {
961
+ "Content-Type": "application/json",
962
+ ...options.headers
963
+ }
964
+ });
965
+ };
966
+ var getApiV1AdminConnectors = (options) => {
967
+ return (options.client ?? client).get({
968
+ url: "/api/v1/admin/connectors",
969
+ ...options
970
+ });
971
+ };
972
+ var putApiV1AdminConnectorsByProvider = (options) => {
973
+ return (options.client ?? client).put({
974
+ url: "/api/v1/admin/connectors/{provider}",
975
+ ...options,
976
+ headers: {
977
+ "Content-Type": "application/json",
978
+ ...options.headers
979
+ }
980
+ });
981
+ };
982
+ var postApiV1AdminNotificationsAnnounceModel = (options) => {
983
+ return (options.client ?? client).post({
984
+ url: "/api/v1/admin/notifications/announce-model",
985
+ ...options,
986
+ headers: {
987
+ "Content-Type": "application/json",
988
+ ...options.headers
989
+ }
990
+ });
991
+ };
992
+ var postApiV1AdminNotificationsSend = (options) => {
993
+ return (options.client ?? client).post({
994
+ url: "/api/v1/admin/notifications/send",
995
+ ...options,
996
+ headers: {
997
+ "Content-Type": "application/json",
998
+ ...options.headers
999
+ }
1000
+ });
1001
+ };
1002
+ var getApiV1AdminOauthClients = (options) => {
1003
+ return (options.client ?? client).get({
1004
+ url: "/api/v1/admin/oauth/clients",
1005
+ ...options
1006
+ });
1007
+ };
1008
+ var postApiV1AdminOauthClients = (options) => {
1009
+ return (options.client ?? client).post({
1010
+ url: "/api/v1/admin/oauth/clients",
1011
+ ...options,
1012
+ headers: {
1013
+ "Content-Type": "application/json",
1014
+ ...options.headers
1015
+ }
1016
+ });
1017
+ };
1018
+ var deleteApiV1AdminOauthClientsByClientId = (options) => {
1019
+ return (options.client ?? client).delete({
1020
+ url: "/api/v1/admin/oauth/clients/{client_id}",
1021
+ ...options
1022
+ });
1023
+ };
1024
+ var getApiV1AdminOauthClientsByClientId = (options) => {
1025
+ return (options.client ?? client).get({
1026
+ url: "/api/v1/admin/oauth/clients/{client_id}",
1027
+ ...options
1028
+ });
1029
+ };
1030
+ var patchApiV1AdminOauthClientsByClientId = (options) => {
1031
+ return (options.client ?? client).patch({
1032
+ url: "/api/v1/admin/oauth/clients/{client_id}",
1033
+ ...options,
1034
+ headers: {
1035
+ "Content-Type": "application/json",
1036
+ ...options.headers
1037
+ }
1038
+ });
1039
+ };
1040
+ var postApiV1AdminPersonas = (options) => {
1041
+ return (options.client ?? client).post({
1042
+ url: "/api/v1/admin/personas",
1043
+ ...options,
1044
+ headers: {
1045
+ "Content-Type": "application/json",
1046
+ ...options.headers
1047
+ }
1048
+ });
1049
+ };
1050
+ var deleteApiV1AdminPersonasById = (options) => {
1051
+ return (options.client ?? client).delete({
1052
+ url: "/api/v1/admin/personas/{id}",
1053
+ ...options
1054
+ });
1055
+ };
1056
+ var putApiV1AdminPersonasById = (options) => {
1057
+ return (options.client ?? client).put({
1058
+ url: "/api/v1/admin/personas/{id}",
1059
+ ...options,
1060
+ headers: {
1061
+ "Content-Type": "application/json",
1062
+ ...options.headers
1063
+ }
1064
+ });
1065
+ };
1066
+ var postApiV1AdminPrivyDevWipe = (options) => {
1067
+ return (options.client ?? client).post({
1068
+ url: "/api/v1/admin/privy-dev/wipe",
1069
+ ...options,
1070
+ headers: {
1071
+ "Content-Type": "application/json",
1072
+ ...options.headers
1073
+ }
1074
+ });
1075
+ };
1076
+ var getApiV1AdminPrivyIdentifiersAudit = (options) => {
1077
+ return (options.client ?? client).get({
1078
+ url: "/api/v1/admin/privy-identifiers/audit",
1079
+ ...options
1080
+ });
1081
+ };
1082
+ var postApiV1AdminPrivyIdentifiersMigrate = (options) => {
1083
+ return (options.client ?? client).post({
1084
+ url: "/api/v1/admin/privy-identifiers/migrate",
1085
+ ...options
1086
+ });
1087
+ };
1088
+ var postApiV1AdminSeedApps = (options) => {
1089
+ return (options.client ?? client).post({
1090
+ url: "/api/v1/admin/seed-apps",
1091
+ ...options,
1092
+ headers: {
1093
+ "Content-Type": "application/json",
1094
+ ...options.headers
1095
+ }
1096
+ });
1097
+ };
1098
+ var postApiV1AdminSubscriptionTier = (options) => {
1099
+ return (options.client ?? client).post({
1100
+ url: "/api/v1/admin/subscription-tier",
1101
+ ...options,
1102
+ headers: {
1103
+ "Content-Type": "application/json",
1104
+ ...options.headers
1105
+ }
1106
+ });
1107
+ };
1108
+ var deleteApiV1AdminTextReset = (options) => {
1109
+ return (options.client ?? client).delete({
1110
+ url: "/api/v1/admin/text/reset",
1111
+ ...options
1112
+ });
1113
+ };
1114
+ var deleteApiV1AdminUsersDelete = (options) => {
1115
+ return (options.client ?? client).delete({
1116
+ url: "/api/v1/admin/users/delete",
1117
+ ...options
1118
+ });
1119
+ };
1120
+ var getApiV1AdminUsersLookup = (options) => {
1121
+ return (options.client ?? client).get({
1122
+ url: "/api/v1/admin/users/lookup",
1123
+ ...options
1124
+ });
1125
+ };
1126
+ var postApiV1AdminUsersSuspend = (options) => {
1127
+ return (options.client ?? client).post({
1128
+ url: "/api/v1/admin/users/suspend",
1129
+ ...options,
1130
+ headers: {
1131
+ "Content-Type": "application/json",
1132
+ ...options.headers
1133
+ }
1134
+ });
1135
+ };
1136
+ var postApiV1AdminUsersUnsuspend = (options) => {
1137
+ return (options.client ?? client).post({
1138
+ url: "/api/v1/admin/users/unsuspend",
1139
+ ...options,
1140
+ headers: {
1141
+ "Content-Type": "application/json",
1142
+ ...options.headers
1143
+ }
1144
+ });
1145
+ };
1146
+ var getApiV1AgentPreferences = (options) => {
1147
+ return (options?.client ?? client).get({
1148
+ url: "/api/v1/agent-preferences",
1149
+ ...options
1150
+ });
1151
+ };
1152
+ var getApiV1Agents = (options) => {
1153
+ return (options?.client ?? client).get({
1154
+ url: "/api/v1/agents",
1155
+ ...options
1156
+ });
1157
+ };
1158
+ var getApiV1AgentsById = (options) => {
1159
+ return (options.client ?? client).get({
1160
+ url: "/api/v1/agents/{id}",
1161
+ ...options
1162
+ });
1163
+ };
1164
+ var putApiV1AgentsByIdPreference = (options) => {
1165
+ return (options.client ?? client).put({
1166
+ url: "/api/v1/agents/{id}/preference",
1167
+ ...options,
1168
+ headers: {
1169
+ "Content-Type": "application/json",
1170
+ ...options.headers
1171
+ }
1172
+ });
1173
+ };
1174
+ var postApiV1AuthMfaDisable = (options) => {
1175
+ return (options.client ?? client).post({
1176
+ url: "/api/v1/auth/mfa/disable",
1177
+ ...options,
1178
+ headers: {
1179
+ "Content-Type": "application/json",
1180
+ ...options.headers
1181
+ }
1182
+ });
1183
+ };
1184
+ var deleteApiV1AuthMfaPasskeyCredentialsByCredentialId = (options) => {
1185
+ return (options.client ?? client).delete({
1186
+ url: "/api/v1/auth/mfa/passkey/credentials/{credential_id}",
1187
+ ...options
1188
+ });
1189
+ };
1190
+ var postApiV1AuthMfaPasskeyEnrollBegin = (options) => {
1191
+ return (options?.client ?? client).post({
1192
+ url: "/api/v1/auth/mfa/passkey/enroll/begin",
1193
+ ...options
1194
+ });
1195
+ };
1196
+ var postApiV1AuthMfaPasskeyEnrollFinish = (options) => {
1197
+ return (options.client ?? client).post({
1198
+ url: "/api/v1/auth/mfa/passkey/enroll/finish",
1199
+ ...options,
1200
+ headers: {
1201
+ "Content-Type": "application/json",
1202
+ ...options.headers
1203
+ }
1204
+ });
1205
+ };
1206
+ var postApiV1AuthMfaPasskeyVerifyBegin = (options) => {
1207
+ return (options?.client ?? client).post({
1208
+ url: "/api/v1/auth/mfa/passkey/verify/begin",
1209
+ ...options
1210
+ });
1211
+ };
1212
+ var postApiV1AuthMfaPasskeyVerifyFinish = (options) => {
1213
+ return (options.client ?? client).post({
1214
+ url: "/api/v1/auth/mfa/passkey/verify/finish",
1215
+ ...options,
1216
+ headers: {
1217
+ "Content-Type": "application/json",
1218
+ ...options.headers
1219
+ }
1220
+ });
1221
+ };
1222
+ var postApiV1AuthMfaRecoveryCodesRegenerate = (options) => {
1223
+ return (options?.client ?? client).post({
1224
+ url: "/api/v1/auth/mfa/recovery-codes/regenerate",
1225
+ ...options
1226
+ });
1227
+ };
1228
+ var getApiV1AuthMfaStatus = (options) => {
1229
+ return (options?.client ?? client).get({
1230
+ url: "/api/v1/auth/mfa/status",
1231
+ ...options
1232
+ });
1233
+ };
1234
+ var postApiV1AuthMfaTotpEnrollInit = (options) => {
1235
+ return (options?.client ?? client).post({
1236
+ url: "/api/v1/auth/mfa/totp/enroll/init",
1237
+ ...options
1238
+ });
1239
+ };
1240
+ var postApiV1AuthMfaTotpEnrollVerify = (options) => {
1241
+ return (options.client ?? client).post({
1242
+ url: "/api/v1/auth/mfa/totp/enroll/verify",
1243
+ ...options,
1244
+ headers: {
1245
+ "Content-Type": "application/json",
1246
+ ...options.headers
1247
+ }
1248
+ });
1249
+ };
1250
+ var postApiV1AuthMfaVerify = (options) => {
1251
+ return (options.client ?? client).post({
1252
+ url: "/api/v1/auth/mfa/verify",
1253
+ ...options,
1254
+ headers: {
1255
+ "Content-Type": "application/json",
1256
+ ...options.headers
1257
+ }
1258
+ });
1259
+ };
1260
+ var getApiV1Bootstrap = (options) => {
1261
+ return (options?.client ?? client).get({
1262
+ url: "/api/v1/bootstrap",
1263
+ ...options
1264
+ });
1265
+ };
1266
+ var postApiV1ChatCompletions = (options) => {
1267
+ return (options.client ?? client).post({
1268
+ url: "/api/v1/chat/completions",
1269
+ ...options,
1270
+ headers: {
1271
+ "Content-Type": "application/json",
1272
+ ...options.headers
1273
+ }
1274
+ });
1275
+ };
1276
+ var getApiV1ChatStreamsByInferenceId = (options) => {
1277
+ return (options.client ?? client).get({
1278
+ url: "/api/v1/chat/streams/{inference_id}",
1279
+ ...options
1280
+ });
1281
+ };
1282
+ var postApiV1ChatStreamsByInferenceIdCancel = (options) => {
1283
+ return (options.client ?? client).post({
1284
+ url: "/api/v1/chat/streams/{inference_id}/cancel",
1285
+ ...options
1286
+ });
1287
+ };
1288
+ var getApiV1Config = (options) => {
1289
+ return (options?.client ?? client).get({
1290
+ url: "/api/v1/config",
1291
+ ...options
1292
+ });
1293
+ };
1294
+ var postApiV1ConnectTickets = (options) => {
1295
+ return (options.client ?? client).post({
1296
+ url: "/api/v1/connect-tickets",
1297
+ ...options,
1298
+ headers: {
1299
+ "Content-Type": "application/json",
1300
+ ...options.headers
1301
+ }
1302
+ });
1303
+ };
1304
+ var postApiV1ConnectorTokensByProvider = (options) => {
1305
+ return (options.client ?? client).post({
1306
+ url: "/api/v1/connector-tokens/{provider}",
1307
+ ...options,
1308
+ headers: {
1309
+ "Content-Type": "application/json",
1310
+ ...options.headers
1311
+ }
1312
+ });
1313
+ };
1314
+ var getApiV1Connectors = (options) => {
1315
+ return (options?.client ?? client).get({
1316
+ url: "/api/v1/connectors",
1317
+ ...options
1318
+ });
1319
+ };
1320
+ var postApiV1ConnectorsImport = (options) => {
1321
+ return (options.client ?? client).post({
1322
+ url: "/api/v1/connectors/import",
1323
+ ...options,
1324
+ headers: {
1325
+ "Content-Type": "application/json",
1326
+ ...options.headers
1327
+ }
1328
+ });
1329
+ };
1330
+ var postApiV1ConnectorsByProviderDisconnect = (options) => {
1331
+ return (options.client ?? client).post({
1332
+ url: "/api/v1/connectors/{provider}/disconnect",
1333
+ ...options
1334
+ });
1335
+ };
1336
+ var postApiV1ConnectorsByProviderProxy = (options) => {
1337
+ return (options.client ?? client).post({
1338
+ url: "/api/v1/connectors/{provider}/proxy",
1339
+ ...options,
1340
+ headers: {
1341
+ "Content-Type": "application/json",
1342
+ ...options.headers
1343
+ }
1344
+ });
1345
+ };
1346
+ var getApiV1ConnectorsByProviderScopes = (options) => {
1347
+ return (options.client ?? client).get({
1348
+ url: "/api/v1/connectors/{provider}/scopes",
1349
+ ...options
1350
+ });
1351
+ };
1352
+ var putApiV1ConnectorsByProviderScopes = (options) => {
1353
+ return (options.client ?? client).put({
1354
+ url: "/api/v1/connectors/{provider}/scopes",
1355
+ ...options,
1356
+ headers: {
1357
+ "Content-Type": "application/json",
1358
+ ...options.headers
1359
+ }
1360
+ });
1361
+ };
1362
+ var getApiV1ConnectorsByProviderTools = (options) => {
1363
+ return (options.client ?? client).get({
1364
+ url: "/api/v1/connectors/{provider}/tools",
1365
+ ...options
1366
+ });
1367
+ };
1368
+ var putApiV1ConnectorsByProviderTools = (options) => {
1369
+ return (options.client ?? client).put({
1370
+ url: "/api/v1/connectors/{provider}/tools",
1371
+ ...options,
1372
+ headers: {
1373
+ "Content-Type": "application/json",
1374
+ ...options.headers
1375
+ }
1376
+ });
1377
+ };
1378
+ var getApiV1CreditsBalance = (options) => {
1379
+ return (options?.client ?? client).get({
1380
+ url: "/api/v1/credits/balance",
1381
+ ...options
1382
+ });
1383
+ };
1384
+ var getApiV1CreditsPacks = (options) => {
1385
+ return (options?.client ?? client).get({
1386
+ url: "/api/v1/credits/packs",
1387
+ ...options
1388
+ });
1389
+ };
1390
+ var postApiV1CreditsPurchase = (options) => {
1391
+ return (options.client ?? client).post({
1392
+ url: "/api/v1/credits/purchase",
1393
+ ...options,
1394
+ headers: {
1395
+ "Content-Type": "application/json",
1396
+ ...options.headers
1397
+ }
1398
+ });
1399
+ };
1400
+ var postApiV1CreditsRedeemTokens = (options) => {
1401
+ return (options.client ?? client).post({
1402
+ url: "/api/v1/credits/redeem-tokens",
1403
+ ...options,
1404
+ headers: {
1405
+ "Content-Type": "application/json",
1406
+ ...options.headers
1407
+ }
1408
+ });
1409
+ };
1410
+ var getApiV1CuratedModels = (options) => {
1411
+ return (options?.client ?? client).get({
1412
+ url: "/api/v1/curated-models",
1413
+ ...options
1414
+ });
1415
+ };
1416
+ var getApiV1DeveloperApps = (options) => {
1417
+ return (options?.client ?? client).get({
1418
+ url: "/api/v1/developer/apps",
1419
+ ...options
1420
+ });
1421
+ };
1422
+ var postApiV1DeveloperApps = (options) => {
1423
+ return (options.client ?? client).post({
1424
+ url: "/api/v1/developer/apps",
1425
+ ...options,
1426
+ headers: {
1427
+ "Content-Type": "application/json",
1428
+ ...options.headers
1429
+ }
1430
+ });
1431
+ };
1432
+ var deleteApiV1DeveloperAppsByAppUuid = (options) => {
1433
+ return (options.client ?? client).delete({
1434
+ url: "/api/v1/developer/apps/{app_uuid}",
1435
+ ...options
1436
+ });
1437
+ };
1438
+ var getApiV1DeveloperAppsByAppUuid = (options) => {
1439
+ return (options.client ?? client).get({
1440
+ url: "/api/v1/developer/apps/{app_uuid}",
1441
+ ...options
1442
+ });
1443
+ };
1444
+ var patchApiV1DeveloperAppsByAppUuid = (options) => {
1445
+ return (options.client ?? client).patch({
1446
+ url: "/api/v1/developer/apps/{app_uuid}",
1447
+ ...options,
1448
+ headers: {
1449
+ "Content-Type": "application/json",
1450
+ ...options.headers
1451
+ }
1452
+ });
1453
+ };
1454
+ var getApiV1DeveloperAppsByAppUuidApiKeys = (options) => {
1455
+ return (options.client ?? client).get({
1456
+ url: "/api/v1/developer/apps/{app_uuid}/api-keys",
1457
+ ...options
1458
+ });
1459
+ };
1460
+ var postApiV1DeveloperAppsByAppUuidApiKeys = (options) => {
1461
+ return (options.client ?? client).post({
1462
+ url: "/api/v1/developer/apps/{app_uuid}/api-keys",
1463
+ ...options,
1464
+ headers: {
1465
+ "Content-Type": "application/json",
1466
+ ...options.headers
1467
+ }
1468
+ });
1469
+ };
1470
+ var deleteApiV1DeveloperAppsByAppUuidApiKeysByKeyId = (options) => {
1471
+ return (options.client ?? client).delete({
1472
+ url: "/api/v1/developer/apps/{app_uuid}/api-keys/{key_id}",
1473
+ ...options
1474
+ });
1475
+ };
1476
+ var postApiV1DeveloperAppsByAppUuidFund = (options) => {
1477
+ return (options.client ?? client).post({
1478
+ url: "/api/v1/developer/apps/{app_uuid}/fund",
1479
+ ...options,
1480
+ headers: {
1481
+ "Content-Type": "application/json",
1482
+ ...options.headers
1483
+ }
1484
+ });
1485
+ };
1486
+ var deleteApiV1DeveloperAppsByAppUuidPrivy = (options) => {
1487
+ return (options.client ?? client).delete({
1488
+ url: "/api/v1/developer/apps/{app_uuid}/privy",
1489
+ ...options
1490
+ });
1491
+ };
1492
+ var postApiV1DeveloperAppsByAppUuidPrivy = (options) => {
1493
+ return (options.client ?? client).post({
1494
+ url: "/api/v1/developer/apps/{app_uuid}/privy",
1495
+ ...options,
1496
+ headers: {
1497
+ "Content-Type": "application/json",
1498
+ ...options.headers
1499
+ }
1500
+ });
1501
+ };
1502
+ var getApiV1DeveloperAppsByAppUuidUsage = (options) => {
1503
+ return (options.client ?? client).get({
1504
+ url: "/api/v1/developer/apps/{app_uuid}/usage",
1505
+ ...options
1506
+ });
1507
+ };
1508
+ var getApiV1DeveloperAppsByAppUuidUsageUsers = (options) => {
1509
+ return (options.client ?? client).get({
1510
+ url: "/api/v1/developer/apps/{app_uuid}/usage/users",
1511
+ ...options
1512
+ });
1513
+ };
1514
+ var getApiV1DeveloperAppsByAppUuidUsers = (options) => {
1515
+ return (options.client ?? client).get({
1516
+ url: "/api/v1/developer/apps/{app_uuid}/users",
1517
+ ...options
1518
+ });
1519
+ };
1520
+ var getApiV1DeveloperAppsByAppUuidUsersByAddress = (options) => {
1521
+ return (options.client ?? client).get({
1522
+ url: "/api/v1/developer/apps/{app_uuid}/users/{address}",
1523
+ ...options
1524
+ });
1525
+ };
1526
+ var patchApiV1DeveloperAppsByAppUuidUsersByAddress = (options) => {
1527
+ return (options.client ?? client).patch({
1528
+ url: "/api/v1/developer/apps/{app_uuid}/users/{address}",
1529
+ ...options,
1530
+ headers: {
1531
+ "Content-Type": "application/json",
1532
+ ...options.headers
1533
+ }
1534
+ });
1535
+ };
1536
+ var postApiV1DeveloperAppsByAppUuidUsersByAddressTopUp = (options) => {
1537
+ return (options.client ?? client).post({
1538
+ url: "/api/v1/developer/apps/{app_uuid}/users/{address}/top-up",
1539
+ ...options,
1540
+ headers: {
1541
+ "Content-Type": "application/json",
1542
+ ...options.headers
1543
+ }
1544
+ });
1545
+ };
1546
+ var getApiV1DeveloperBilling = (options) => {
1547
+ return (options?.client ?? client).get({
1548
+ url: "/api/v1/developer/billing",
1549
+ ...options
1550
+ });
1551
+ };
1552
+ var getApiV1DocsSwaggerJson = (options) => {
1553
+ return (options?.client ?? client).get({
1554
+ url: "/api/v1/docs/swagger.json",
1555
+ ...options
1556
+ });
1557
+ };
1558
+ var postApiV1Embeddings = (options) => {
1559
+ return (options.client ?? client).post({
1560
+ url: "/api/v1/embeddings",
1561
+ ...options,
1562
+ headers: {
1563
+ "Content-Type": "application/json",
1564
+ ...options.headers
1565
+ }
1566
+ });
1567
+ };
1568
+ var getApiV1GuestBootstrap = (options) => {
1569
+ return (options.client ?? client).get({
1570
+ url: "/api/v1/guest-bootstrap",
1571
+ ...options
1572
+ });
1573
+ };
1574
+ var postApiV1GuestChatCompletions = (options) => {
1575
+ return (options.client ?? client).post({
1576
+ url: "/api/v1/guest/chat/completions",
1577
+ ...options,
1578
+ headers: {
1579
+ "Content-Type": "application/json",
1580
+ ...options.headers
1581
+ }
1582
+ });
1583
+ };
1584
+ var getApiV1Me = (options) => {
1585
+ return (options?.client ?? client).get({
1586
+ url: "/api/v1/me",
1587
+ ...options
1588
+ });
1589
+ };
1590
+ var getApiV1Models = (options) => {
1591
+ return (options?.client ?? client).get({
1592
+ url: "/api/v1/models",
1593
+ ...options
1594
+ });
1595
+ };
1596
+ var postApiV1NotificationsDevices = (options) => {
1597
+ return (options.client ?? client).post({
1598
+ url: "/api/v1/notifications/devices",
1599
+ ...options,
1600
+ headers: {
1601
+ "Content-Type": "application/json",
1602
+ ...options.headers
1603
+ }
1604
+ });
1605
+ };
1606
+ var postApiV1NotificationsDevicesUnregister = (options) => {
1607
+ return (options.client ?? client).post({
1608
+ url: "/api/v1/notifications/devices/unregister",
1609
+ ...options,
1610
+ headers: {
1611
+ "Content-Type": "application/json",
1612
+ ...options.headers
1613
+ }
1614
+ });
1615
+ };
1616
+ var getApiV1Personas = (options) => {
1617
+ return (options?.client ?? client).get({
1618
+ url: "/api/v1/personas",
1619
+ ...options
1620
+ });
1621
+ };
1622
+ var getApiV1PersonasById = (options) => {
1623
+ return (options.client ?? client).get({
1624
+ url: "/api/v1/personas/{id}",
1625
+ ...options
1626
+ });
1627
+ };
1628
+ var postApiV1PhoneCalls = (options) => {
1629
+ return (options.client ?? client).post({
1630
+ url: "/api/v1/phone-calls",
1631
+ ...options,
1632
+ headers: {
1633
+ "Content-Type": "application/json",
1634
+ ...options.headers
1635
+ }
1636
+ });
1637
+ };
1638
+ var getApiV1PhoneCallsByCallId = (options) => {
1639
+ return (options.client ?? client).get({
1640
+ url: "/api/v1/phone-calls/{call_id}",
1641
+ ...options
1642
+ });
1643
+ };
1644
+ var postApiV1PreprocessorsCryptoPrices = (options) => {
1645
+ return (options.client ?? client).post({
1646
+ url: "/api/v1/preprocessors/crypto-prices",
1647
+ ...options,
1648
+ headers: {
1649
+ "Content-Type": "application/json",
1650
+ ...options.headers
1651
+ }
1652
+ });
1653
+ };
1654
+ var postApiV1PreprocessorsSearch = (options) => {
1655
+ return (options.client ?? client).post({
1656
+ url: "/api/v1/preprocessors/search",
1657
+ ...options,
1658
+ headers: {
1659
+ "Content-Type": "application/json",
1660
+ ...options.headers
1661
+ }
1662
+ });
1663
+ };
1664
+ var postApiV1PreprocessorsStockPrices = (options) => {
1665
+ return (options.client ?? client).post({
1666
+ url: "/api/v1/preprocessors/stock-prices",
1667
+ ...options,
1668
+ headers: {
1669
+ "Content-Type": "application/json",
1670
+ ...options.headers
1671
+ }
1672
+ });
1673
+ };
1674
+ var postApiV1PreprocessorsWeather = (options) => {
1675
+ return (options.client ?? client).post({
1676
+ url: "/api/v1/preprocessors/weather",
1677
+ ...options,
1678
+ headers: {
1679
+ "Content-Type": "application/json",
1680
+ ...options.headers
1681
+ }
1682
+ });
1683
+ };
1684
+ var postApiV1Responses = (options) => {
1685
+ return (options.client ?? client).post({
1686
+ url: "/api/v1/responses",
1687
+ ...options,
1688
+ headers: {
1689
+ "Content-Type": "application/json",
1690
+ ...options.headers
1691
+ }
1692
+ });
1693
+ };
1694
+ var postApiV1SubscriptionsCancel = (options) => {
1695
+ return (options?.client ?? client).post({
1696
+ url: "/api/v1/subscriptions/cancel",
1697
+ ...options,
1698
+ headers: {
1699
+ "Content-Type": "application/json",
1700
+ ...options?.headers
1701
+ }
1702
+ });
1703
+ };
1704
+ var postApiV1SubscriptionsCancelScheduledDowngrade = (options) => {
1705
+ return (options?.client ?? client).post({
1706
+ url: "/api/v1/subscriptions/cancel-scheduled-downgrade",
1707
+ ...options
1708
+ });
1709
+ };
1710
+ var postApiV1SubscriptionsCreateCheckoutSession = (options) => {
1711
+ return (options.client ?? client).post({
1712
+ url: "/api/v1/subscriptions/create-checkout-session",
1713
+ ...options,
1714
+ headers: {
1715
+ "Content-Type": "application/json",
1716
+ ...options.headers
1717
+ }
1718
+ });
1719
+ };
1720
+ var postApiV1SubscriptionsCustomerPortal = (options) => {
1721
+ return (options.client ?? client).post({
1722
+ url: "/api/v1/subscriptions/customer-portal",
1723
+ ...options,
1724
+ headers: {
1725
+ "Content-Type": "application/json",
1726
+ ...options.headers
1727
+ }
1728
+ });
1729
+ };
1730
+ var getApiV1SubscriptionsPlans = (options) => {
1731
+ return (options?.client ?? client).get({
1732
+ url: "/api/v1/subscriptions/plans",
1733
+ ...options
1734
+ });
1735
+ };
1736
+ var postApiV1SubscriptionsRenew = (options) => {
1737
+ return (options?.client ?? client).post({
1738
+ url: "/api/v1/subscriptions/renew",
1739
+ ...options
1740
+ });
1741
+ };
1742
+ var postApiV1SubscriptionsScheduleDowngrade = (options) => {
1743
+ return (options.client ?? client).post({
1744
+ url: "/api/v1/subscriptions/schedule-downgrade",
1745
+ ...options,
1746
+ headers: {
1747
+ "Content-Type": "application/json",
1748
+ ...options.headers
1749
+ }
1750
+ });
1751
+ };
1752
+ var getApiV1SubscriptionsStatus = (options) => {
1753
+ return (options?.client ?? client).get({
1754
+ url: "/api/v1/subscriptions/status",
1755
+ ...options
1756
+ });
1757
+ };
1758
+ var postApiV1SubscriptionsUpgrade = (options) => {
1759
+ return (options.client ?? client).post({
1760
+ url: "/api/v1/subscriptions/upgrade",
1761
+ ...options,
1762
+ headers: {
1763
+ "Content-Type": "application/json",
1764
+ ...options.headers
1765
+ }
1766
+ });
1767
+ };
1768
+ var postApiV1SubscriptionsWebhook = (options) => {
1769
+ return (options.client ?? client).post({
1770
+ url: "/api/v1/subscriptions/webhook",
1771
+ ...options,
1772
+ headers: {
1773
+ "Content-Type": "application/json",
1774
+ ...options.headers
1775
+ }
1776
+ });
1777
+ };
1778
+ var getApiV1Tools = (options) => {
1779
+ return (options?.client ?? client).get({
1780
+ url: "/api/v1/tools",
1781
+ ...options
1782
+ });
1783
+ };
1784
+ var getApiV1UsageByModality = (options) => {
1785
+ return (options?.client ?? client).get({
1786
+ url: "/api/v1/usage/by-modality",
1787
+ ...options
1788
+ });
1789
+ };
1790
+ var getApiV1UsageInferenceWeekly = (options) => {
1791
+ return (options?.client ?? client).get({
1792
+ url: "/api/v1/usage/inference-weekly",
1793
+ ...options
1794
+ });
1795
+ };
1796
+ var getApiV1UsageModels = (options) => {
1797
+ return (options?.client ?? client).get({
1798
+ url: "/api/v1/usage/models",
1799
+ ...options
1800
+ });
1801
+ };
1802
+ var getApiV1UserAgentConsents = (options) => {
1803
+ return (options?.client ?? client).get({
1804
+ url: "/api/v1/user/agent-consents",
1805
+ ...options
1806
+ });
1807
+ };
1808
+ var postApiV1UserAgentConsents = (options) => {
1809
+ return (options.client ?? client).post({
1810
+ url: "/api/v1/user/agent-consents",
1811
+ ...options,
1812
+ headers: {
1813
+ "Content-Type": "application/json",
1814
+ ...options.headers
1815
+ }
1816
+ });
1817
+ };
1818
+ var deleteApiV1UserAgentConsentsByAgentId = (options) => {
1819
+ return (options.client ?? client).delete({
1820
+ url: "/api/v1/user/agent-consents/{agent_id}",
1821
+ ...options
1822
+ });
1823
+ };
1824
+ var getApiV1UserAgentGrants = (options) => {
1825
+ return (options.client ?? client).get({
1826
+ url: "/api/v1/user/agent-grants",
1827
+ ...options
1828
+ });
1829
+ };
1830
+ var getApiV1UserApiKeys = (options) => {
1831
+ return (options?.client ?? client).get({
1832
+ url: "/api/v1/user/api-keys",
1833
+ ...options
1834
+ });
1835
+ };
1836
+ var postApiV1UserApiKeys = (options) => {
1837
+ return (options.client ?? client).post({
1838
+ url: "/api/v1/user/api-keys",
1839
+ ...options,
1840
+ headers: {
1841
+ "Content-Type": "application/json",
1842
+ ...options.headers
1843
+ }
1844
+ });
1845
+ };
1846
+ var deleteApiV1UserApiKeysByKeyId = (options) => {
1847
+ return (options.client ?? client).delete({
1848
+ url: "/api/v1/user/api-keys/{key_id}",
1849
+ ...options
1850
+ });
1851
+ };
1852
+ var getApiV1UserOauthGrants = (options) => {
1853
+ return (options?.client ?? client).get({
1854
+ url: "/api/v1/user/oauth/grants",
1855
+ ...options
1856
+ });
1857
+ };
1858
+ var deleteApiV1UserOauthGrantsById = (options) => {
1859
+ return (options.client ?? client).delete({
1860
+ url: "/api/v1/user/oauth/grants/{id}",
1861
+ ...options
1862
+ });
1863
+ };
1864
+ var patchApiV1UserOauthGrantsById = (options) => {
1865
+ return (options.client ?? client).patch({
1866
+ url: "/api/v1/user/oauth/grants/{id}",
1867
+ ...options,
1868
+ headers: {
1869
+ "Content-Type": "application/json",
1870
+ ...options.headers
1871
+ }
1872
+ });
1873
+ };
1874
+ var getApiV1WalletsBinding = (options) => {
1875
+ return (options?.client ?? client).get({
1876
+ url: "/api/v1/wallets/binding",
1877
+ ...options
1878
+ });
1879
+ };
1880
+ var postApiV1WalletsBinding = (options) => {
1881
+ return (options.client ?? client).post({
1882
+ url: "/api/v1/wallets/binding",
1883
+ ...options,
1884
+ headers: {
1885
+ "Content-Type": "application/json",
1886
+ ...options.headers
1887
+ }
1888
+ });
1889
+ };
1890
+ var postApiV1WalletsBindingNonce = (options) => {
1891
+ return (options?.client ?? client).post({
1892
+ url: "/api/v1/wallets/binding/nonce",
1893
+ ...options
1894
+ });
1895
+ };
1896
+ var deleteApiV1WalletsBindingByAddress = (options) => {
1897
+ return (options.client ?? client).delete({
1898
+ url: "/api/v1/wallets/binding/{address}",
1899
+ ...options
1900
+ });
1901
+ };
1902
+ var postApiV1WebhooksRevenuecat = (options) => {
1903
+ return (options?.client ?? client).post({
1904
+ url: "/api/v1/webhooks/revenuecat",
1905
+ ...options,
1906
+ headers: {
1907
+ "Content-Type": "application/json",
1908
+ ...options?.headers
1909
+ }
1910
+ });
1911
+ };
1912
+ var getApiV1ZetaCreditRate = (options) => {
1913
+ return (options?.client ?? client).get({
1914
+ url: "/api/v1/zeta/credit-rate",
1915
+ ...options
1916
+ });
1917
+ };
1918
+ var getApiV1ZetaMarket = (options) => {
1919
+ return (options?.client ?? client).get({
1920
+ url: "/api/v1/zeta/market",
1921
+ ...options
1922
+ });
1923
+ };
1924
+ var postAuthOauthByProviderExchange = (options) => {
1925
+ return (options.client ?? client).post({
1926
+ url: "/auth/oauth/{provider}/exchange",
1927
+ ...options,
1928
+ headers: {
1929
+ "Content-Type": "application/json",
1930
+ ...options.headers
1931
+ }
1932
+ });
1933
+ };
1934
+ var postAuthOauthByProviderRefresh = (options) => {
1935
+ return (options.client ?? client).post({
1936
+ url: "/auth/oauth/{provider}/refresh",
1937
+ ...options,
1938
+ headers: {
1939
+ "Content-Type": "application/json",
1940
+ ...options.headers
1941
+ }
1942
+ });
1943
+ };
1944
+ var postAuthOauthByProviderRevoke = (options) => {
1945
+ return (options.client ?? client).post({
1946
+ url: "/auth/oauth/{provider}/revoke",
1947
+ ...options,
1948
+ headers: {
1949
+ "Content-Type": "application/json",
1950
+ ...options.headers
1951
+ }
1952
+ });
1953
+ };
1954
+ var getConnectorsByProviderCallback = (options) => {
1955
+ return (options.client ?? client).get({
1956
+ url: "/connectors/{provider}/callback",
1957
+ ...options
1958
+ });
1959
+ };
1960
+ var getConnectorsByProviderConnect = (options) => {
1961
+ return (options.client ?? client).get({
1962
+ url: "/connectors/{provider}/connect",
1963
+ ...options
1964
+ });
1965
+ };
1966
+ var getHealth = (options) => {
1967
+ return (options?.client ?? client).get({
1968
+ url: "/health",
1969
+ ...options
1970
+ });
1971
+ };
1972
+ var getOauthAuthorize = (options) => {
1973
+ return (options.client ?? client).get({
1974
+ url: "/oauth/authorize",
1975
+ ...options
1976
+ });
1977
+ };
1978
+ var getOauthConsent = (options) => {
1979
+ return (options.client ?? client).get({
1980
+ url: "/oauth/consent",
1981
+ ...options
1982
+ });
1983
+ };
1984
+ var postOauthConsent = (options) => {
1985
+ return (options?.client ?? client).post({
1986
+ ...urlSearchParamsBodySerializer,
1987
+ url: "/oauth/consent",
1988
+ ...options,
1989
+ headers: {
1990
+ "Content-Type": "application/x-www-form-urlencoded",
1991
+ ...options?.headers
1992
+ }
1993
+ });
1994
+ };
1995
+ var postOauthRevoke = (options) => {
1996
+ return (options?.client ?? client).post({
1997
+ ...urlSearchParamsBodySerializer,
1998
+ url: "/oauth/revoke",
1999
+ ...options,
2000
+ headers: {
2001
+ "Content-Type": "application/x-www-form-urlencoded",
2002
+ ...options?.headers
2003
+ }
2004
+ });
2005
+ };
2006
+ var postOauthToken = (options) => {
2007
+ return (options?.client ?? client).post({
2008
+ ...urlSearchParamsBodySerializer,
2009
+ url: "/oauth/token",
2010
+ ...options,
2011
+ headers: {
2012
+ "Content-Type": "application/x-www-form-urlencoded",
2013
+ ...options?.headers
2014
+ }
2015
+ });
2016
+ };
2017
+ export {
2018
+ deleteApiV1Account,
2019
+ deleteApiV1AdminAgentsById,
2020
+ deleteApiV1AdminAppsByAppIdApiKeysById,
2021
+ deleteApiV1AdminAppsById,
2022
+ deleteApiV1AdminOauthClientsByClientId,
2023
+ deleteApiV1AdminPersonasById,
2024
+ deleteApiV1AdminTextReset,
2025
+ deleteApiV1AdminUsersDelete,
2026
+ deleteApiV1AuthMfaPasskeyCredentialsByCredentialId,
2027
+ deleteApiV1DeveloperAppsByAppUuid,
2028
+ deleteApiV1DeveloperAppsByAppUuidApiKeysByKeyId,
2029
+ deleteApiV1DeveloperAppsByAppUuidPrivy,
2030
+ deleteApiV1UserAgentConsentsByAgentId,
2031
+ deleteApiV1UserApiKeysByKeyId,
2032
+ deleteApiV1UserOauthGrantsById,
2033
+ deleteApiV1WalletsBindingByAddress,
2034
+ getApiV1AdminApps,
2035
+ getApiV1AdminAppsByAppIdApiKeys,
2036
+ getApiV1AdminAppsByAppIdApiKeysById,
2037
+ getApiV1AdminAppsById,
2038
+ getApiV1AdminConnectors,
2039
+ getApiV1AdminOauthClients,
2040
+ getApiV1AdminOauthClientsByClientId,
2041
+ getApiV1AdminPrivyIdentifiersAudit,
2042
+ getApiV1AdminUsersLookup,
2043
+ getApiV1AgentPreferences,
2044
+ getApiV1Agents,
2045
+ getApiV1AgentsById,
2046
+ getApiV1AuthMfaStatus,
2047
+ getApiV1Bootstrap,
2048
+ getApiV1ChatStreamsByInferenceId,
2049
+ getApiV1Config,
2050
+ getApiV1Connectors,
2051
+ getApiV1ConnectorsByProviderScopes,
2052
+ getApiV1ConnectorsByProviderTools,
2053
+ getApiV1CreditsBalance,
2054
+ getApiV1CreditsPacks,
2055
+ getApiV1CuratedModels,
2056
+ getApiV1DeveloperApps,
2057
+ getApiV1DeveloperAppsByAppUuid,
2058
+ getApiV1DeveloperAppsByAppUuidApiKeys,
2059
+ getApiV1DeveloperAppsByAppUuidUsage,
2060
+ getApiV1DeveloperAppsByAppUuidUsageUsers,
2061
+ getApiV1DeveloperAppsByAppUuidUsers,
2062
+ getApiV1DeveloperAppsByAppUuidUsersByAddress,
2063
+ getApiV1DeveloperBilling,
2064
+ getApiV1DocsSwaggerJson,
2065
+ getApiV1GuestBootstrap,
2066
+ getApiV1Me,
2067
+ getApiV1Models,
2068
+ getApiV1Personas,
2069
+ getApiV1PersonasById,
2070
+ getApiV1PhoneCallsByCallId,
2071
+ getApiV1SubscriptionsPlans,
2072
+ getApiV1SubscriptionsStatus,
2073
+ getApiV1Tools,
2074
+ getApiV1UsageByModality,
2075
+ getApiV1UsageInferenceWeekly,
2076
+ getApiV1UsageModels,
2077
+ getApiV1UserAgentConsents,
2078
+ getApiV1UserAgentGrants,
2079
+ getApiV1UserApiKeys,
2080
+ getApiV1UserOauthGrants,
2081
+ getApiV1WalletsBinding,
2082
+ getApiV1ZetaCreditRate,
2083
+ getApiV1ZetaMarket,
2084
+ getConnectorsByProviderCallback,
2085
+ getConnectorsByProviderConnect,
2086
+ getHealth,
2087
+ getOauthAuthorize,
2088
+ getOauthConsent,
2089
+ getWellKnownJwksJson,
2090
+ patchApiV1AdminOauthClientsByClientId,
2091
+ patchApiV1DeveloperAppsByAppUuid,
2092
+ patchApiV1DeveloperAppsByAppUuidUsersByAddress,
2093
+ patchApiV1UserOauthGrantsById,
2094
+ postApiV1AdminAddCredits,
2095
+ postApiV1AdminAgents,
2096
+ postApiV1AdminApps,
2097
+ postApiV1AdminAppsByAppIdApiKeys,
2098
+ postApiV1AdminNotificationsAnnounceModel,
2099
+ postApiV1AdminNotificationsSend,
2100
+ postApiV1AdminOauthClients,
2101
+ postApiV1AdminPersonas,
2102
+ postApiV1AdminPrivyDevWipe,
2103
+ postApiV1AdminPrivyIdentifiersMigrate,
2104
+ postApiV1AdminSeedApps,
2105
+ postApiV1AdminSubscriptionTier,
2106
+ postApiV1AdminUsersSuspend,
2107
+ postApiV1AdminUsersUnsuspend,
2108
+ postApiV1AuthMfaDisable,
2109
+ postApiV1AuthMfaPasskeyEnrollBegin,
2110
+ postApiV1AuthMfaPasskeyEnrollFinish,
2111
+ postApiV1AuthMfaPasskeyVerifyBegin,
2112
+ postApiV1AuthMfaPasskeyVerifyFinish,
2113
+ postApiV1AuthMfaRecoveryCodesRegenerate,
2114
+ postApiV1AuthMfaTotpEnrollInit,
2115
+ postApiV1AuthMfaTotpEnrollVerify,
2116
+ postApiV1AuthMfaVerify,
2117
+ postApiV1ChatCompletions,
2118
+ postApiV1ChatStreamsByInferenceIdCancel,
2119
+ postApiV1ConnectTickets,
2120
+ postApiV1ConnectorTokensByProvider,
2121
+ postApiV1ConnectorsByProviderDisconnect,
2122
+ postApiV1ConnectorsByProviderProxy,
2123
+ postApiV1ConnectorsImport,
2124
+ postApiV1CreditsPurchase,
2125
+ postApiV1CreditsRedeemTokens,
2126
+ postApiV1DeveloperApps,
2127
+ postApiV1DeveloperAppsByAppUuidApiKeys,
2128
+ postApiV1DeveloperAppsByAppUuidFund,
2129
+ postApiV1DeveloperAppsByAppUuidPrivy,
2130
+ postApiV1DeveloperAppsByAppUuidUsersByAddressTopUp,
2131
+ postApiV1Embeddings,
2132
+ postApiV1GuestChatCompletions,
2133
+ postApiV1NotificationsDevices,
2134
+ postApiV1NotificationsDevicesUnregister,
2135
+ postApiV1PhoneCalls,
2136
+ postApiV1PreprocessorsCryptoPrices,
2137
+ postApiV1PreprocessorsSearch,
2138
+ postApiV1PreprocessorsStockPrices,
2139
+ postApiV1PreprocessorsWeather,
2140
+ postApiV1Responses,
2141
+ postApiV1SubscriptionsCancel,
2142
+ postApiV1SubscriptionsCancelScheduledDowngrade,
2143
+ postApiV1SubscriptionsCreateCheckoutSession,
2144
+ postApiV1SubscriptionsCustomerPortal,
2145
+ postApiV1SubscriptionsRenew,
2146
+ postApiV1SubscriptionsScheduleDowngrade,
2147
+ postApiV1SubscriptionsUpgrade,
2148
+ postApiV1SubscriptionsWebhook,
2149
+ postApiV1UserAgentConsents,
2150
+ postApiV1UserApiKeys,
2151
+ postApiV1WalletsBinding,
2152
+ postApiV1WalletsBindingNonce,
2153
+ postApiV1WebhooksRevenuecat,
2154
+ postAuthOauthByProviderExchange,
2155
+ postAuthOauthByProviderRefresh,
2156
+ postAuthOauthByProviderRevoke,
2157
+ postOauthConsent,
2158
+ postOauthRevoke,
2159
+ postOauthToken,
2160
+ putApiV1AdminAgentsById,
2161
+ putApiV1AdminAppsByAppIdApiKeysById,
2162
+ putApiV1AdminAppsById,
2163
+ putApiV1AdminConnectorsByProvider,
2164
+ putApiV1AdminPersonasById,
2165
+ putApiV1AgentsByIdPreference,
2166
+ putApiV1ConnectorsByProviderScopes,
2167
+ putApiV1ConnectorsByProviderTools
2168
+ };