@spikelabs/lobster-shell-plugin 0.2.2 → 0.3.2
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/ably-node-D57ZVLAB.js +16358 -0
- package/dist/chunk-QGM4M3NI.js +37 -0
- package/dist/chunk-SI5QXQNT.js +3628 -0
- package/dist/client-IG4TDXCA.js +3333 -0
- package/dist/index.js +5 -4
- package/dist/{oauth-flow-O6AKA5CZ.js → oauth-flow-WIKEYFR7.js} +1 -0
- package/dist/wrapper-C6JZGQB3.js +31 -0
- package/package.json +6 -8
|
@@ -0,0 +1,3333 @@
|
|
|
1
|
+
import "./chunk-QGM4M3NI.js";
|
|
2
|
+
|
|
3
|
+
// node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/queryOptions.js
|
|
4
|
+
function queryOptions(options) {
|
|
5
|
+
return options;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.js
|
|
9
|
+
function infiniteQueryOptions(options) {
|
|
10
|
+
return options;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// node_modules/.pnpm/@spikelabsinc+user-api-client@0.0.76_react@19.2.4/node_modules/@spikelabsinc/user-api-client/src/hey-api.ts
|
|
14
|
+
var createClientConfig = (config) => ({
|
|
15
|
+
...config,
|
|
16
|
+
baseUrl: process.env.API_CLIENT_BASE_URL ?? "/api"
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
// node_modules/.pnpm/@spikelabsinc+user-api-client@0.0.76_react@19.2.4/node_modules/@spikelabsinc/user-api-client/src/client/core/bodySerializer.gen.ts
|
|
20
|
+
var serializeFormDataPair = (data, key, value) => {
|
|
21
|
+
if (typeof value === "string" || value instanceof Blob) {
|
|
22
|
+
data.append(key, value);
|
|
23
|
+
} else if (value instanceof Date) {
|
|
24
|
+
data.append(key, value.toISOString());
|
|
25
|
+
} else {
|
|
26
|
+
data.append(key, JSON.stringify(value));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
var formDataBodySerializer = {
|
|
30
|
+
bodySerializer: (body) => {
|
|
31
|
+
const data = new FormData();
|
|
32
|
+
Object.entries(body).forEach(([key, value]) => {
|
|
33
|
+
if (value === void 0 || value === null) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
if (Array.isArray(value)) {
|
|
37
|
+
value.forEach((v) => serializeFormDataPair(data, key, v));
|
|
38
|
+
} else {
|
|
39
|
+
serializeFormDataPair(data, key, value);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
return data;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var jsonBodySerializer = {
|
|
46
|
+
bodySerializer: (body) => JSON.stringify(
|
|
47
|
+
body,
|
|
48
|
+
(_key, value) => typeof value === "bigint" ? value.toString() : value
|
|
49
|
+
)
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// node_modules/.pnpm/@spikelabsinc+user-api-client@0.0.76_react@19.2.4/node_modules/@spikelabsinc/user-api-client/src/client/core/params.gen.ts
|
|
53
|
+
var extraPrefixesMap = {
|
|
54
|
+
$body_: "body",
|
|
55
|
+
$headers_: "headers",
|
|
56
|
+
$path_: "path",
|
|
57
|
+
$query_: "query"
|
|
58
|
+
};
|
|
59
|
+
var extraPrefixes = Object.entries(extraPrefixesMap);
|
|
60
|
+
|
|
61
|
+
// node_modules/.pnpm/@spikelabsinc+user-api-client@0.0.76_react@19.2.4/node_modules/@spikelabsinc/user-api-client/src/client/core/serverSentEvents.gen.ts
|
|
62
|
+
var createSseClient = ({
|
|
63
|
+
onRequest,
|
|
64
|
+
onSseError,
|
|
65
|
+
onSseEvent,
|
|
66
|
+
responseTransformer,
|
|
67
|
+
responseValidator,
|
|
68
|
+
sseDefaultRetryDelay,
|
|
69
|
+
sseMaxRetryAttempts,
|
|
70
|
+
sseMaxRetryDelay,
|
|
71
|
+
sseSleepFn,
|
|
72
|
+
url,
|
|
73
|
+
...options
|
|
74
|
+
}) => {
|
|
75
|
+
let lastEventId;
|
|
76
|
+
const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
|
|
77
|
+
const createStream = async function* () {
|
|
78
|
+
let retryDelay = sseDefaultRetryDelay ?? 3e3;
|
|
79
|
+
let attempt = 0;
|
|
80
|
+
const signal = options.signal ?? new AbortController().signal;
|
|
81
|
+
while (true) {
|
|
82
|
+
if (signal.aborted) break;
|
|
83
|
+
attempt++;
|
|
84
|
+
const headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers);
|
|
85
|
+
if (lastEventId !== void 0) {
|
|
86
|
+
headers.set("Last-Event-ID", lastEventId);
|
|
87
|
+
}
|
|
88
|
+
try {
|
|
89
|
+
const requestInit = {
|
|
90
|
+
redirect: "follow",
|
|
91
|
+
...options,
|
|
92
|
+
body: options.serializedBody,
|
|
93
|
+
headers,
|
|
94
|
+
signal
|
|
95
|
+
};
|
|
96
|
+
let request = new Request(url, requestInit);
|
|
97
|
+
if (onRequest) {
|
|
98
|
+
request = await onRequest(url, requestInit);
|
|
99
|
+
}
|
|
100
|
+
const _fetch = options.fetch ?? globalThis.fetch;
|
|
101
|
+
const response = await _fetch(request);
|
|
102
|
+
if (!response.ok)
|
|
103
|
+
throw new Error(
|
|
104
|
+
`SSE failed: ${response.status} ${response.statusText}`
|
|
105
|
+
);
|
|
106
|
+
if (!response.body) throw new Error("No body in SSE response");
|
|
107
|
+
const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
|
|
108
|
+
let buffer = "";
|
|
109
|
+
const abortHandler = () => {
|
|
110
|
+
try {
|
|
111
|
+
reader.cancel();
|
|
112
|
+
} catch {
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
signal.addEventListener("abort", abortHandler);
|
|
116
|
+
try {
|
|
117
|
+
while (true) {
|
|
118
|
+
const { done, value } = await reader.read();
|
|
119
|
+
if (done) break;
|
|
120
|
+
buffer += value;
|
|
121
|
+
buffer = buffer.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
122
|
+
const chunks = buffer.split("\n\n");
|
|
123
|
+
buffer = chunks.pop() ?? "";
|
|
124
|
+
for (const chunk of chunks) {
|
|
125
|
+
const lines = chunk.split("\n");
|
|
126
|
+
const dataLines = [];
|
|
127
|
+
let eventName;
|
|
128
|
+
for (const line of lines) {
|
|
129
|
+
if (line.startsWith("data:")) {
|
|
130
|
+
dataLines.push(line.replace(/^data:\s*/, ""));
|
|
131
|
+
} else if (line.startsWith("event:")) {
|
|
132
|
+
eventName = line.replace(/^event:\s*/, "");
|
|
133
|
+
} else if (line.startsWith("id:")) {
|
|
134
|
+
lastEventId = line.replace(/^id:\s*/, "");
|
|
135
|
+
} else if (line.startsWith("retry:")) {
|
|
136
|
+
const parsed = Number.parseInt(
|
|
137
|
+
line.replace(/^retry:\s*/, ""),
|
|
138
|
+
10
|
|
139
|
+
);
|
|
140
|
+
if (!Number.isNaN(parsed)) {
|
|
141
|
+
retryDelay = parsed;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
let data;
|
|
146
|
+
let parsedJson = false;
|
|
147
|
+
if (dataLines.length) {
|
|
148
|
+
const rawData = dataLines.join("\n");
|
|
149
|
+
try {
|
|
150
|
+
data = JSON.parse(rawData);
|
|
151
|
+
parsedJson = true;
|
|
152
|
+
} catch {
|
|
153
|
+
data = rawData;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
if (parsedJson) {
|
|
157
|
+
if (responseValidator) {
|
|
158
|
+
await responseValidator(data);
|
|
159
|
+
}
|
|
160
|
+
if (responseTransformer) {
|
|
161
|
+
data = await responseTransformer(data);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
onSseEvent?.({
|
|
165
|
+
data,
|
|
166
|
+
event: eventName,
|
|
167
|
+
id: lastEventId,
|
|
168
|
+
retry: retryDelay
|
|
169
|
+
});
|
|
170
|
+
if (dataLines.length) {
|
|
171
|
+
yield data;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
} finally {
|
|
176
|
+
signal.removeEventListener("abort", abortHandler);
|
|
177
|
+
reader.releaseLock();
|
|
178
|
+
}
|
|
179
|
+
break;
|
|
180
|
+
} catch (error) {
|
|
181
|
+
onSseError?.(error);
|
|
182
|
+
if (sseMaxRetryAttempts !== void 0 && attempt >= sseMaxRetryAttempts) {
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
const backoff = Math.min(
|
|
186
|
+
retryDelay * 2 ** (attempt - 1),
|
|
187
|
+
sseMaxRetryDelay ?? 3e4
|
|
188
|
+
);
|
|
189
|
+
await sleep(backoff);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
const stream = createStream();
|
|
194
|
+
return { stream };
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
// node_modules/.pnpm/@spikelabsinc+user-api-client@0.0.76_react@19.2.4/node_modules/@spikelabsinc/user-api-client/src/client/core/pathSerializer.gen.ts
|
|
198
|
+
var separatorArrayExplode = (style) => {
|
|
199
|
+
switch (style) {
|
|
200
|
+
case "label":
|
|
201
|
+
return ".";
|
|
202
|
+
case "matrix":
|
|
203
|
+
return ";";
|
|
204
|
+
case "simple":
|
|
205
|
+
return ",";
|
|
206
|
+
default:
|
|
207
|
+
return "&";
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
var separatorArrayNoExplode = (style) => {
|
|
211
|
+
switch (style) {
|
|
212
|
+
case "form":
|
|
213
|
+
return ",";
|
|
214
|
+
case "pipeDelimited":
|
|
215
|
+
return "|";
|
|
216
|
+
case "spaceDelimited":
|
|
217
|
+
return "%20";
|
|
218
|
+
default:
|
|
219
|
+
return ",";
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
var separatorObjectExplode = (style) => {
|
|
223
|
+
switch (style) {
|
|
224
|
+
case "label":
|
|
225
|
+
return ".";
|
|
226
|
+
case "matrix":
|
|
227
|
+
return ";";
|
|
228
|
+
case "simple":
|
|
229
|
+
return ",";
|
|
230
|
+
default:
|
|
231
|
+
return "&";
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
var serializeArrayParam = ({
|
|
235
|
+
allowReserved,
|
|
236
|
+
explode,
|
|
237
|
+
name,
|
|
238
|
+
style,
|
|
239
|
+
value
|
|
240
|
+
}) => {
|
|
241
|
+
if (!explode) {
|
|
242
|
+
const joinedValues2 = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
|
|
243
|
+
switch (style) {
|
|
244
|
+
case "label":
|
|
245
|
+
return `.${joinedValues2}`;
|
|
246
|
+
case "matrix":
|
|
247
|
+
return `;${name}=${joinedValues2}`;
|
|
248
|
+
case "simple":
|
|
249
|
+
return joinedValues2;
|
|
250
|
+
default:
|
|
251
|
+
return `${name}=${joinedValues2}`;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
const separator = separatorArrayExplode(style);
|
|
255
|
+
const joinedValues = value.map((v) => {
|
|
256
|
+
if (style === "label" || style === "simple") {
|
|
257
|
+
return allowReserved ? v : encodeURIComponent(v);
|
|
258
|
+
}
|
|
259
|
+
return serializePrimitiveParam({
|
|
260
|
+
allowReserved,
|
|
261
|
+
name,
|
|
262
|
+
value: v
|
|
263
|
+
});
|
|
264
|
+
}).join(separator);
|
|
265
|
+
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
266
|
+
};
|
|
267
|
+
var serializePrimitiveParam = ({
|
|
268
|
+
allowReserved,
|
|
269
|
+
name,
|
|
270
|
+
value
|
|
271
|
+
}) => {
|
|
272
|
+
if (value === void 0 || value === null) {
|
|
273
|
+
return "";
|
|
274
|
+
}
|
|
275
|
+
if (typeof value === "object") {
|
|
276
|
+
throw new Error(
|
|
277
|
+
"Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these."
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
|
|
281
|
+
};
|
|
282
|
+
var serializeObjectParam = ({
|
|
283
|
+
allowReserved,
|
|
284
|
+
explode,
|
|
285
|
+
name,
|
|
286
|
+
style,
|
|
287
|
+
value,
|
|
288
|
+
valueOnly
|
|
289
|
+
}) => {
|
|
290
|
+
if (value instanceof Date) {
|
|
291
|
+
return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
|
|
292
|
+
}
|
|
293
|
+
if (style !== "deepObject" && !explode) {
|
|
294
|
+
let values = [];
|
|
295
|
+
Object.entries(value).forEach(([key, v]) => {
|
|
296
|
+
values = [
|
|
297
|
+
...values,
|
|
298
|
+
key,
|
|
299
|
+
allowReserved ? v : encodeURIComponent(v)
|
|
300
|
+
];
|
|
301
|
+
});
|
|
302
|
+
const joinedValues2 = values.join(",");
|
|
303
|
+
switch (style) {
|
|
304
|
+
case "form":
|
|
305
|
+
return `${name}=${joinedValues2}`;
|
|
306
|
+
case "label":
|
|
307
|
+
return `.${joinedValues2}`;
|
|
308
|
+
case "matrix":
|
|
309
|
+
return `;${name}=${joinedValues2}`;
|
|
310
|
+
default:
|
|
311
|
+
return joinedValues2;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
const separator = separatorObjectExplode(style);
|
|
315
|
+
const joinedValues = Object.entries(value).map(
|
|
316
|
+
([key, v]) => serializePrimitiveParam({
|
|
317
|
+
allowReserved,
|
|
318
|
+
name: style === "deepObject" ? `${name}[${key}]` : key,
|
|
319
|
+
value: v
|
|
320
|
+
})
|
|
321
|
+
).join(separator);
|
|
322
|
+
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
// node_modules/.pnpm/@spikelabsinc+user-api-client@0.0.76_react@19.2.4/node_modules/@spikelabsinc/user-api-client/src/client/core/utils.gen.ts
|
|
326
|
+
var PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
327
|
+
var defaultPathSerializer = ({ path, url: _url }) => {
|
|
328
|
+
let url = _url;
|
|
329
|
+
const matches = _url.match(PATH_PARAM_RE);
|
|
330
|
+
if (matches) {
|
|
331
|
+
for (const match of matches) {
|
|
332
|
+
let explode = false;
|
|
333
|
+
let name = match.substring(1, match.length - 1);
|
|
334
|
+
let style = "simple";
|
|
335
|
+
if (name.endsWith("*")) {
|
|
336
|
+
explode = true;
|
|
337
|
+
name = name.substring(0, name.length - 1);
|
|
338
|
+
}
|
|
339
|
+
if (name.startsWith(".")) {
|
|
340
|
+
name = name.substring(1);
|
|
341
|
+
style = "label";
|
|
342
|
+
} else if (name.startsWith(";")) {
|
|
343
|
+
name = name.substring(1);
|
|
344
|
+
style = "matrix";
|
|
345
|
+
}
|
|
346
|
+
const value = path[name];
|
|
347
|
+
if (value === void 0 || value === null) {
|
|
348
|
+
continue;
|
|
349
|
+
}
|
|
350
|
+
if (Array.isArray(value)) {
|
|
351
|
+
url = url.replace(
|
|
352
|
+
match,
|
|
353
|
+
serializeArrayParam({ explode, name, style, value })
|
|
354
|
+
);
|
|
355
|
+
continue;
|
|
356
|
+
}
|
|
357
|
+
if (typeof value === "object") {
|
|
358
|
+
url = url.replace(
|
|
359
|
+
match,
|
|
360
|
+
serializeObjectParam({
|
|
361
|
+
explode,
|
|
362
|
+
name,
|
|
363
|
+
style,
|
|
364
|
+
value,
|
|
365
|
+
valueOnly: true
|
|
366
|
+
})
|
|
367
|
+
);
|
|
368
|
+
continue;
|
|
369
|
+
}
|
|
370
|
+
if (style === "matrix") {
|
|
371
|
+
url = url.replace(
|
|
372
|
+
match,
|
|
373
|
+
`;${serializePrimitiveParam({
|
|
374
|
+
name,
|
|
375
|
+
value
|
|
376
|
+
})}`
|
|
377
|
+
);
|
|
378
|
+
continue;
|
|
379
|
+
}
|
|
380
|
+
const replaceValue = encodeURIComponent(
|
|
381
|
+
style === "label" ? `.${value}` : value
|
|
382
|
+
);
|
|
383
|
+
url = url.replace(match, replaceValue);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
return url;
|
|
387
|
+
};
|
|
388
|
+
var getUrl = ({
|
|
389
|
+
baseUrl,
|
|
390
|
+
path,
|
|
391
|
+
query,
|
|
392
|
+
querySerializer,
|
|
393
|
+
url: _url
|
|
394
|
+
}) => {
|
|
395
|
+
const pathUrl = _url.startsWith("/") ? _url : `/${_url}`;
|
|
396
|
+
let url = (baseUrl ?? "") + pathUrl;
|
|
397
|
+
if (path) {
|
|
398
|
+
url = defaultPathSerializer({ path, url });
|
|
399
|
+
}
|
|
400
|
+
let search = query ? querySerializer(query) : "";
|
|
401
|
+
if (search.startsWith("?")) {
|
|
402
|
+
search = search.substring(1);
|
|
403
|
+
}
|
|
404
|
+
if (search) {
|
|
405
|
+
url += `?${search}`;
|
|
406
|
+
}
|
|
407
|
+
return url;
|
|
408
|
+
};
|
|
409
|
+
function getValidRequestBody(options) {
|
|
410
|
+
const hasBody = options.body !== void 0;
|
|
411
|
+
const isSerializedBody = hasBody && options.bodySerializer;
|
|
412
|
+
if (isSerializedBody) {
|
|
413
|
+
if ("serializedBody" in options) {
|
|
414
|
+
const hasSerializedBody = options.serializedBody !== void 0 && options.serializedBody !== "";
|
|
415
|
+
return hasSerializedBody ? options.serializedBody : null;
|
|
416
|
+
}
|
|
417
|
+
return options.body !== "" ? options.body : null;
|
|
418
|
+
}
|
|
419
|
+
if (hasBody) {
|
|
420
|
+
return options.body;
|
|
421
|
+
}
|
|
422
|
+
return void 0;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
// node_modules/.pnpm/@spikelabsinc+user-api-client@0.0.76_react@19.2.4/node_modules/@spikelabsinc/user-api-client/src/client/core/auth.gen.ts
|
|
426
|
+
var getAuthToken = async (auth, callback) => {
|
|
427
|
+
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
428
|
+
if (!token) {
|
|
429
|
+
return;
|
|
430
|
+
}
|
|
431
|
+
if (auth.scheme === "bearer") {
|
|
432
|
+
return `Bearer ${token}`;
|
|
433
|
+
}
|
|
434
|
+
if (auth.scheme === "basic") {
|
|
435
|
+
return `Basic ${btoa(token)}`;
|
|
436
|
+
}
|
|
437
|
+
return token;
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
// node_modules/.pnpm/@spikelabsinc+user-api-client@0.0.76_react@19.2.4/node_modules/@spikelabsinc/user-api-client/src/client/client/utils.gen.ts
|
|
441
|
+
var createQuerySerializer = ({
|
|
442
|
+
parameters = {},
|
|
443
|
+
...args
|
|
444
|
+
} = {}) => {
|
|
445
|
+
const querySerializer = (queryParams) => {
|
|
446
|
+
const search = [];
|
|
447
|
+
if (queryParams && typeof queryParams === "object") {
|
|
448
|
+
for (const name in queryParams) {
|
|
449
|
+
const value = queryParams[name];
|
|
450
|
+
if (value === void 0 || value === null) {
|
|
451
|
+
continue;
|
|
452
|
+
}
|
|
453
|
+
const options = parameters[name] || args;
|
|
454
|
+
if (Array.isArray(value)) {
|
|
455
|
+
const serializedArray = serializeArrayParam({
|
|
456
|
+
allowReserved: options.allowReserved,
|
|
457
|
+
explode: true,
|
|
458
|
+
name,
|
|
459
|
+
style: "form",
|
|
460
|
+
value,
|
|
461
|
+
...options.array
|
|
462
|
+
});
|
|
463
|
+
if (serializedArray) search.push(serializedArray);
|
|
464
|
+
} else if (typeof value === "object") {
|
|
465
|
+
const serializedObject = serializeObjectParam({
|
|
466
|
+
allowReserved: options.allowReserved,
|
|
467
|
+
explode: true,
|
|
468
|
+
name,
|
|
469
|
+
style: "deepObject",
|
|
470
|
+
value,
|
|
471
|
+
...options.object
|
|
472
|
+
});
|
|
473
|
+
if (serializedObject) search.push(serializedObject);
|
|
474
|
+
} else {
|
|
475
|
+
const serializedPrimitive = serializePrimitiveParam({
|
|
476
|
+
allowReserved: options.allowReserved,
|
|
477
|
+
name,
|
|
478
|
+
value
|
|
479
|
+
});
|
|
480
|
+
if (serializedPrimitive) search.push(serializedPrimitive);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
return search.join("&");
|
|
485
|
+
};
|
|
486
|
+
return querySerializer;
|
|
487
|
+
};
|
|
488
|
+
var getParseAs = (contentType) => {
|
|
489
|
+
if (!contentType) {
|
|
490
|
+
return "stream";
|
|
491
|
+
}
|
|
492
|
+
const cleanContent = contentType.split(";")[0]?.trim();
|
|
493
|
+
if (!cleanContent) {
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
if (cleanContent.startsWith("application/json") || cleanContent.endsWith("+json")) {
|
|
497
|
+
return "json";
|
|
498
|
+
}
|
|
499
|
+
if (cleanContent === "multipart/form-data") {
|
|
500
|
+
return "formData";
|
|
501
|
+
}
|
|
502
|
+
if (["application/", "audio/", "image/", "video/"].some(
|
|
503
|
+
(type) => cleanContent.startsWith(type)
|
|
504
|
+
)) {
|
|
505
|
+
return "blob";
|
|
506
|
+
}
|
|
507
|
+
if (cleanContent.startsWith("text/")) {
|
|
508
|
+
return "text";
|
|
509
|
+
}
|
|
510
|
+
return;
|
|
511
|
+
};
|
|
512
|
+
var checkForExistence = (options, name) => {
|
|
513
|
+
if (!name) {
|
|
514
|
+
return false;
|
|
515
|
+
}
|
|
516
|
+
if (options.headers.has(name) || options.query?.[name] || options.headers.get("Cookie")?.includes(`${name}=`)) {
|
|
517
|
+
return true;
|
|
518
|
+
}
|
|
519
|
+
return false;
|
|
520
|
+
};
|
|
521
|
+
var setAuthParams = async ({
|
|
522
|
+
security,
|
|
523
|
+
...options
|
|
524
|
+
}) => {
|
|
525
|
+
for (const auth of security) {
|
|
526
|
+
if (checkForExistence(options, auth.name)) {
|
|
527
|
+
continue;
|
|
528
|
+
}
|
|
529
|
+
const token = await getAuthToken(auth, options.auth);
|
|
530
|
+
if (!token) {
|
|
531
|
+
continue;
|
|
532
|
+
}
|
|
533
|
+
const name = auth.name ?? "Authorization";
|
|
534
|
+
switch (auth.in) {
|
|
535
|
+
case "query":
|
|
536
|
+
if (!options.query) {
|
|
537
|
+
options.query = {};
|
|
538
|
+
}
|
|
539
|
+
options.query[name] = token;
|
|
540
|
+
break;
|
|
541
|
+
case "cookie":
|
|
542
|
+
options.headers.append("Cookie", `${name}=${token}`);
|
|
543
|
+
break;
|
|
544
|
+
case "header":
|
|
545
|
+
default:
|
|
546
|
+
options.headers.set(name, token);
|
|
547
|
+
break;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
var buildUrl = (options) => getUrl({
|
|
552
|
+
baseUrl: options.baseUrl,
|
|
553
|
+
path: options.path,
|
|
554
|
+
query: options.query,
|
|
555
|
+
querySerializer: typeof options.querySerializer === "function" ? options.querySerializer : createQuerySerializer(options.querySerializer),
|
|
556
|
+
url: options.url
|
|
557
|
+
});
|
|
558
|
+
var mergeConfigs = (a, b) => {
|
|
559
|
+
const config = { ...a, ...b };
|
|
560
|
+
if (config.baseUrl?.endsWith("/")) {
|
|
561
|
+
config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);
|
|
562
|
+
}
|
|
563
|
+
config.headers = mergeHeaders(a.headers, b.headers);
|
|
564
|
+
return config;
|
|
565
|
+
};
|
|
566
|
+
var headersEntries = (headers) => {
|
|
567
|
+
const entries = [];
|
|
568
|
+
headers.forEach((value, key) => {
|
|
569
|
+
entries.push([key, value]);
|
|
570
|
+
});
|
|
571
|
+
return entries;
|
|
572
|
+
};
|
|
573
|
+
var mergeHeaders = (...headers) => {
|
|
574
|
+
const mergedHeaders = new Headers();
|
|
575
|
+
for (const header of headers) {
|
|
576
|
+
if (!header) {
|
|
577
|
+
continue;
|
|
578
|
+
}
|
|
579
|
+
const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header);
|
|
580
|
+
for (const [key, value] of iterator) {
|
|
581
|
+
if (value === null) {
|
|
582
|
+
mergedHeaders.delete(key);
|
|
583
|
+
} else if (Array.isArray(value)) {
|
|
584
|
+
for (const v of value) {
|
|
585
|
+
mergedHeaders.append(key, v);
|
|
586
|
+
}
|
|
587
|
+
} else if (value !== void 0) {
|
|
588
|
+
mergedHeaders.set(
|
|
589
|
+
key,
|
|
590
|
+
typeof value === "object" ? JSON.stringify(value) : value
|
|
591
|
+
);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
return mergedHeaders;
|
|
596
|
+
};
|
|
597
|
+
var Interceptors = class {
|
|
598
|
+
fns = [];
|
|
599
|
+
clear() {
|
|
600
|
+
this.fns = [];
|
|
601
|
+
}
|
|
602
|
+
eject(id) {
|
|
603
|
+
const index = this.getInterceptorIndex(id);
|
|
604
|
+
if (this.fns[index]) {
|
|
605
|
+
this.fns[index] = null;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
exists(id) {
|
|
609
|
+
const index = this.getInterceptorIndex(id);
|
|
610
|
+
return Boolean(this.fns[index]);
|
|
611
|
+
}
|
|
612
|
+
getInterceptorIndex(id) {
|
|
613
|
+
if (typeof id === "number") {
|
|
614
|
+
return this.fns[id] ? id : -1;
|
|
615
|
+
}
|
|
616
|
+
return this.fns.indexOf(id);
|
|
617
|
+
}
|
|
618
|
+
update(id, fn) {
|
|
619
|
+
const index = this.getInterceptorIndex(id);
|
|
620
|
+
if (this.fns[index]) {
|
|
621
|
+
this.fns[index] = fn;
|
|
622
|
+
return id;
|
|
623
|
+
}
|
|
624
|
+
return false;
|
|
625
|
+
}
|
|
626
|
+
use(fn) {
|
|
627
|
+
this.fns.push(fn);
|
|
628
|
+
return this.fns.length - 1;
|
|
629
|
+
}
|
|
630
|
+
};
|
|
631
|
+
var createInterceptors = () => ({
|
|
632
|
+
error: new Interceptors(),
|
|
633
|
+
request: new Interceptors(),
|
|
634
|
+
response: new Interceptors()
|
|
635
|
+
});
|
|
636
|
+
var defaultQuerySerializer = createQuerySerializer({
|
|
637
|
+
allowReserved: false,
|
|
638
|
+
array: {
|
|
639
|
+
explode: true,
|
|
640
|
+
style: "form"
|
|
641
|
+
},
|
|
642
|
+
object: {
|
|
643
|
+
explode: true,
|
|
644
|
+
style: "deepObject"
|
|
645
|
+
}
|
|
646
|
+
});
|
|
647
|
+
var defaultHeaders = {
|
|
648
|
+
"Content-Type": "application/json"
|
|
649
|
+
};
|
|
650
|
+
var createConfig = (override = {}) => ({
|
|
651
|
+
...jsonBodySerializer,
|
|
652
|
+
headers: defaultHeaders,
|
|
653
|
+
parseAs: "auto",
|
|
654
|
+
querySerializer: defaultQuerySerializer,
|
|
655
|
+
...override
|
|
656
|
+
});
|
|
657
|
+
|
|
658
|
+
// node_modules/.pnpm/@spikelabsinc+user-api-client@0.0.76_react@19.2.4/node_modules/@spikelabsinc/user-api-client/src/client/client/client.gen.ts
|
|
659
|
+
var createClient = (config = {}) => {
|
|
660
|
+
let _config = mergeConfigs(createConfig(), config);
|
|
661
|
+
const getConfig = () => ({ ..._config });
|
|
662
|
+
const setConfig = (config2) => {
|
|
663
|
+
_config = mergeConfigs(_config, config2);
|
|
664
|
+
return getConfig();
|
|
665
|
+
};
|
|
666
|
+
const interceptors = createInterceptors();
|
|
667
|
+
const beforeRequest = async (options) => {
|
|
668
|
+
const opts = {
|
|
669
|
+
..._config,
|
|
670
|
+
...options,
|
|
671
|
+
fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
|
|
672
|
+
headers: mergeHeaders(_config.headers, options.headers),
|
|
673
|
+
serializedBody: void 0
|
|
674
|
+
};
|
|
675
|
+
if (opts.security) {
|
|
676
|
+
await setAuthParams({
|
|
677
|
+
...opts,
|
|
678
|
+
security: opts.security
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
if (opts.requestValidator) {
|
|
682
|
+
await opts.requestValidator(opts);
|
|
683
|
+
}
|
|
684
|
+
if (opts.body !== void 0 && opts.bodySerializer) {
|
|
685
|
+
opts.serializedBody = opts.bodySerializer(opts.body);
|
|
686
|
+
}
|
|
687
|
+
if (opts.body === void 0 || opts.serializedBody === "") {
|
|
688
|
+
opts.headers.delete("Content-Type");
|
|
689
|
+
}
|
|
690
|
+
const url = buildUrl(opts);
|
|
691
|
+
return { opts, url };
|
|
692
|
+
};
|
|
693
|
+
const request = async (options) => {
|
|
694
|
+
const { opts, url } = await beforeRequest(options);
|
|
695
|
+
const requestInit = {
|
|
696
|
+
redirect: "follow",
|
|
697
|
+
...opts,
|
|
698
|
+
body: getValidRequestBody(opts)
|
|
699
|
+
};
|
|
700
|
+
let request2 = new Request(url, requestInit);
|
|
701
|
+
for (const fn of interceptors.request.fns) {
|
|
702
|
+
if (fn) {
|
|
703
|
+
request2 = await fn(request2, opts);
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
const _fetch = opts.fetch;
|
|
707
|
+
let response;
|
|
708
|
+
try {
|
|
709
|
+
response = await _fetch(request2);
|
|
710
|
+
} catch (error2) {
|
|
711
|
+
let finalError2 = error2;
|
|
712
|
+
for (const fn of interceptors.error.fns) {
|
|
713
|
+
if (fn) {
|
|
714
|
+
finalError2 = await fn(
|
|
715
|
+
error2,
|
|
716
|
+
void 0,
|
|
717
|
+
request2,
|
|
718
|
+
opts
|
|
719
|
+
);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
finalError2 = finalError2 || {};
|
|
723
|
+
if (opts.throwOnError) {
|
|
724
|
+
throw finalError2;
|
|
725
|
+
}
|
|
726
|
+
return opts.responseStyle === "data" ? void 0 : {
|
|
727
|
+
error: finalError2,
|
|
728
|
+
request: request2,
|
|
729
|
+
response: void 0
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
for (const fn of interceptors.response.fns) {
|
|
733
|
+
if (fn) {
|
|
734
|
+
response = await fn(response, request2, opts);
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
const result = {
|
|
738
|
+
request: request2,
|
|
739
|
+
response
|
|
740
|
+
};
|
|
741
|
+
if (response.ok) {
|
|
742
|
+
const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
|
|
743
|
+
if (response.status === 204 || response.headers.get("Content-Length") === "0") {
|
|
744
|
+
let emptyData;
|
|
745
|
+
switch (parseAs) {
|
|
746
|
+
case "arrayBuffer":
|
|
747
|
+
case "blob":
|
|
748
|
+
case "text":
|
|
749
|
+
emptyData = await response[parseAs]();
|
|
750
|
+
break;
|
|
751
|
+
case "formData":
|
|
752
|
+
emptyData = new FormData();
|
|
753
|
+
break;
|
|
754
|
+
case "stream":
|
|
755
|
+
emptyData = response.body;
|
|
756
|
+
break;
|
|
757
|
+
case "json":
|
|
758
|
+
default:
|
|
759
|
+
emptyData = {};
|
|
760
|
+
break;
|
|
761
|
+
}
|
|
762
|
+
return opts.responseStyle === "data" ? emptyData : {
|
|
763
|
+
data: emptyData,
|
|
764
|
+
...result
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
let data;
|
|
768
|
+
switch (parseAs) {
|
|
769
|
+
case "arrayBuffer":
|
|
770
|
+
case "blob":
|
|
771
|
+
case "formData":
|
|
772
|
+
case "json":
|
|
773
|
+
case "text":
|
|
774
|
+
data = await response[parseAs]();
|
|
775
|
+
break;
|
|
776
|
+
case "stream":
|
|
777
|
+
return opts.responseStyle === "data" ? response.body : {
|
|
778
|
+
data: response.body,
|
|
779
|
+
...result
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
if (parseAs === "json") {
|
|
783
|
+
if (opts.responseValidator) {
|
|
784
|
+
await opts.responseValidator(data);
|
|
785
|
+
}
|
|
786
|
+
if (opts.responseTransformer) {
|
|
787
|
+
data = await opts.responseTransformer(data);
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
return opts.responseStyle === "data" ? data : {
|
|
791
|
+
data,
|
|
792
|
+
...result
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
const textError = await response.text();
|
|
796
|
+
let jsonError;
|
|
797
|
+
try {
|
|
798
|
+
jsonError = JSON.parse(textError);
|
|
799
|
+
} catch {
|
|
800
|
+
}
|
|
801
|
+
const error = jsonError ?? textError;
|
|
802
|
+
let finalError = error;
|
|
803
|
+
for (const fn of interceptors.error.fns) {
|
|
804
|
+
if (fn) {
|
|
805
|
+
finalError = await fn(error, response, request2, opts);
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
finalError = finalError || {};
|
|
809
|
+
if (opts.throwOnError) {
|
|
810
|
+
throw finalError;
|
|
811
|
+
}
|
|
812
|
+
return opts.responseStyle === "data" ? void 0 : {
|
|
813
|
+
error: finalError,
|
|
814
|
+
...result
|
|
815
|
+
};
|
|
816
|
+
};
|
|
817
|
+
const makeMethodFn = (method) => (options) => request({ ...options, method });
|
|
818
|
+
const makeSseFn = (method) => async (options) => {
|
|
819
|
+
const { opts, url } = await beforeRequest(options);
|
|
820
|
+
return createSseClient({
|
|
821
|
+
...opts,
|
|
822
|
+
body: opts.body,
|
|
823
|
+
headers: opts.headers,
|
|
824
|
+
method,
|
|
825
|
+
onRequest: async (url2, init) => {
|
|
826
|
+
let request2 = new Request(url2, init);
|
|
827
|
+
for (const fn of interceptors.request.fns) {
|
|
828
|
+
if (fn) {
|
|
829
|
+
request2 = await fn(request2, opts);
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
return request2;
|
|
833
|
+
},
|
|
834
|
+
serializedBody: getValidRequestBody(opts),
|
|
835
|
+
url
|
|
836
|
+
});
|
|
837
|
+
};
|
|
838
|
+
return {
|
|
839
|
+
buildUrl,
|
|
840
|
+
connect: makeMethodFn("CONNECT"),
|
|
841
|
+
delete: makeMethodFn("DELETE"),
|
|
842
|
+
get: makeMethodFn("GET"),
|
|
843
|
+
getConfig,
|
|
844
|
+
head: makeMethodFn("HEAD"),
|
|
845
|
+
interceptors,
|
|
846
|
+
options: makeMethodFn("OPTIONS"),
|
|
847
|
+
patch: makeMethodFn("PATCH"),
|
|
848
|
+
post: makeMethodFn("POST"),
|
|
849
|
+
put: makeMethodFn("PUT"),
|
|
850
|
+
request,
|
|
851
|
+
setConfig,
|
|
852
|
+
sse: {
|
|
853
|
+
connect: makeSseFn("CONNECT"),
|
|
854
|
+
delete: makeSseFn("DELETE"),
|
|
855
|
+
get: makeSseFn("GET"),
|
|
856
|
+
head: makeSseFn("HEAD"),
|
|
857
|
+
options: makeSseFn("OPTIONS"),
|
|
858
|
+
patch: makeSseFn("PATCH"),
|
|
859
|
+
post: makeSseFn("POST"),
|
|
860
|
+
put: makeSseFn("PUT"),
|
|
861
|
+
trace: makeSseFn("TRACE")
|
|
862
|
+
},
|
|
863
|
+
trace: makeMethodFn("TRACE")
|
|
864
|
+
};
|
|
865
|
+
};
|
|
866
|
+
|
|
867
|
+
// node_modules/.pnpm/@spikelabsinc+user-api-client@0.0.76_react@19.2.4/node_modules/@spikelabsinc/user-api-client/src/client/client.gen.ts
|
|
868
|
+
var client = createClient(
|
|
869
|
+
createClientConfig(
|
|
870
|
+
createConfig({ baseUrl: "https://api.spikelabs.com" })
|
|
871
|
+
)
|
|
872
|
+
);
|
|
873
|
+
|
|
874
|
+
// node_modules/.pnpm/@spikelabsinc+user-api-client@0.0.76_react@19.2.4/node_modules/@spikelabsinc/user-api-client/src/client/transformers.gen.ts
|
|
875
|
+
var chatHealthResponseSchemaResponseTransformer = (data) => {
|
|
876
|
+
data.timestamp = new Date(data.timestamp);
|
|
877
|
+
return data;
|
|
878
|
+
};
|
|
879
|
+
var chatGetHealthResponseTransformer = async (data) => {
|
|
880
|
+
data = chatHealthResponseSchemaResponseTransformer(data);
|
|
881
|
+
return data;
|
|
882
|
+
};
|
|
883
|
+
var tenantHealthResponseSchemaResponseTransformer = (data) => {
|
|
884
|
+
data.timestamp = new Date(data.timestamp);
|
|
885
|
+
return data;
|
|
886
|
+
};
|
|
887
|
+
var tenantGetHealthResponseTransformer = async (data) => {
|
|
888
|
+
data = tenantHealthResponseSchemaResponseTransformer(data);
|
|
889
|
+
return data;
|
|
890
|
+
};
|
|
891
|
+
var tenantMintTokenResponseSchemaResponseTransformer = (data) => {
|
|
892
|
+
data.expires_at = new Date(data.expires_at);
|
|
893
|
+
return data;
|
|
894
|
+
};
|
|
895
|
+
var tenantPostApiTokensMintResponseTransformer = async (data) => {
|
|
896
|
+
data = tenantMintTokenResponseSchemaResponseTransformer(data);
|
|
897
|
+
return data;
|
|
898
|
+
};
|
|
899
|
+
var contentHealthResponseSchemaResponseTransformer = (data) => {
|
|
900
|
+
data.timestamp = new Date(data.timestamp);
|
|
901
|
+
return data;
|
|
902
|
+
};
|
|
903
|
+
var contentGetHealthResponseTransformer = async (data) => {
|
|
904
|
+
data = contentHealthResponseSchemaResponseTransformer(data);
|
|
905
|
+
return data;
|
|
906
|
+
};
|
|
907
|
+
var contentScratchpadResponseSchemaResponseTransformer = (data) => {
|
|
908
|
+
data.updated_at = new Date(data.updated_at);
|
|
909
|
+
return data;
|
|
910
|
+
};
|
|
911
|
+
var contentGetApiMemoriesScratchpadResponseTransformer = async (data) => {
|
|
912
|
+
data = contentScratchpadResponseSchemaResponseTransformer(data);
|
|
913
|
+
return data;
|
|
914
|
+
};
|
|
915
|
+
var contentPutApiMemoriesScratchpadResponseTransformer = async (data) => {
|
|
916
|
+
data = contentScratchpadResponseSchemaResponseTransformer(data);
|
|
917
|
+
return data;
|
|
918
|
+
};
|
|
919
|
+
var mediaHealthResponseSchemaResponseTransformer = (data) => {
|
|
920
|
+
data.timestamp = new Date(data.timestamp);
|
|
921
|
+
return data;
|
|
922
|
+
};
|
|
923
|
+
var mediaGetHealthResponseTransformer = async (data) => {
|
|
924
|
+
data = mediaHealthResponseSchemaResponseTransformer(data);
|
|
925
|
+
return data;
|
|
926
|
+
};
|
|
927
|
+
var mediaPresignedUploadResponseSchemaResponseTransformer = (data) => {
|
|
928
|
+
data.expiresAt = new Date(data.expiresAt);
|
|
929
|
+
return data;
|
|
930
|
+
};
|
|
931
|
+
var mediaPostApiFilesPresignedResponseTransformer = async (data) => {
|
|
932
|
+
data = mediaPresignedUploadResponseSchemaResponseTransformer(data);
|
|
933
|
+
return data;
|
|
934
|
+
};
|
|
935
|
+
var mediaFileMetadataSchemaResponseTransformer = (data) => {
|
|
936
|
+
data.uploadedAt = new Date(data.uploadedAt);
|
|
937
|
+
data.createdAt = new Date(data.createdAt);
|
|
938
|
+
return data;
|
|
939
|
+
};
|
|
940
|
+
var mediaFileListResponseSchemaResponseTransformer = (data) => {
|
|
941
|
+
data.files = data.files.map(
|
|
942
|
+
(item) => mediaFileMetadataSchemaResponseTransformer(item)
|
|
943
|
+
);
|
|
944
|
+
return data;
|
|
945
|
+
};
|
|
946
|
+
var mediaGetApiFilesResponseTransformer = async (data) => {
|
|
947
|
+
data = mediaFileListResponseSchemaResponseTransformer(data);
|
|
948
|
+
return data;
|
|
949
|
+
};
|
|
950
|
+
var mediaPostApiFilesIdConfirmResponseTransformer = async (data) => {
|
|
951
|
+
data = mediaFileMetadataSchemaResponseTransformer(data);
|
|
952
|
+
return data;
|
|
953
|
+
};
|
|
954
|
+
var mediaGetApiFilesIdResponseTransformer = async (data) => {
|
|
955
|
+
data = mediaFileMetadataSchemaResponseTransformer(data);
|
|
956
|
+
return data;
|
|
957
|
+
};
|
|
958
|
+
var mediaUserMediaItemSchemaResponseTransformer = (data) => {
|
|
959
|
+
data.createdAt = new Date(data.createdAt);
|
|
960
|
+
return data;
|
|
961
|
+
};
|
|
962
|
+
var mediaUserCollectionListResponseSchemaResponseTransformer = (data) => {
|
|
963
|
+
data.data = data.data.map(
|
|
964
|
+
(item) => mediaUserMediaItemSchemaResponseTransformer(item)
|
|
965
|
+
);
|
|
966
|
+
return data;
|
|
967
|
+
};
|
|
968
|
+
var mediaGetApiCollectionResponseTransformer = async (data) => {
|
|
969
|
+
data = mediaUserCollectionListResponseSchemaResponseTransformer(data);
|
|
970
|
+
return data;
|
|
971
|
+
};
|
|
972
|
+
var mediaPostApiCollectionResponseTransformer = async (data) => {
|
|
973
|
+
data = mediaUserMediaItemSchemaResponseTransformer(data);
|
|
974
|
+
return data;
|
|
975
|
+
};
|
|
976
|
+
var mediaPatchApiCollectionIdResponseTransformer = async (data) => {
|
|
977
|
+
data = mediaUserMediaItemSchemaResponseTransformer(data);
|
|
978
|
+
return data;
|
|
979
|
+
};
|
|
980
|
+
var platformHealthResponseSchemaResponseTransformer = (data) => {
|
|
981
|
+
data.timestamp = new Date(data.timestamp);
|
|
982
|
+
return data;
|
|
983
|
+
};
|
|
984
|
+
var platformGetHealthResponseTransformer = async (data) => {
|
|
985
|
+
data = platformHealthResponseSchemaResponseTransformer(data);
|
|
986
|
+
return data;
|
|
987
|
+
};
|
|
988
|
+
var activityHealthResponseSchemaResponseTransformer = (data) => {
|
|
989
|
+
data.timestamp = new Date(data.timestamp);
|
|
990
|
+
return data;
|
|
991
|
+
};
|
|
992
|
+
var activityGetHealthResponseTransformer = async (data) => {
|
|
993
|
+
data = activityHealthResponseSchemaResponseTransformer(data);
|
|
994
|
+
return data;
|
|
995
|
+
};
|
|
996
|
+
var activityActivityListItemSchemaResponseTransformer = (data) => {
|
|
997
|
+
data.created_at = new Date(data.created_at);
|
|
998
|
+
return data;
|
|
999
|
+
};
|
|
1000
|
+
var activityActivityListResponseSchemaResponseTransformer = (data) => {
|
|
1001
|
+
data.data = data.data.map(
|
|
1002
|
+
(item) => activityActivityListItemSchemaResponseTransformer(item)
|
|
1003
|
+
);
|
|
1004
|
+
return data;
|
|
1005
|
+
};
|
|
1006
|
+
var activityGetApiActivitiesResponseTransformer = async (data) => {
|
|
1007
|
+
data = activityActivityListResponseSchemaResponseTransformer(data);
|
|
1008
|
+
return data;
|
|
1009
|
+
};
|
|
1010
|
+
var activityInstanceListItemSchemaResponseTransformer = (data) => {
|
|
1011
|
+
data.last_accessed_at = new Date(data.last_accessed_at);
|
|
1012
|
+
return data;
|
|
1013
|
+
};
|
|
1014
|
+
var activityInstanceListResponseSchemaResponseTransformer = (data) => {
|
|
1015
|
+
data.data = data.data.map(
|
|
1016
|
+
(item) => activityInstanceListItemSchemaResponseTransformer(item)
|
|
1017
|
+
);
|
|
1018
|
+
return data;
|
|
1019
|
+
};
|
|
1020
|
+
var activityGetApiActivityInstancesResponseTransformer = async (data) => {
|
|
1021
|
+
data = activityInstanceListResponseSchemaResponseTransformer(data);
|
|
1022
|
+
return data;
|
|
1023
|
+
};
|
|
1024
|
+
var activityInstanceDetailSchemaResponseTransformer = (data) => {
|
|
1025
|
+
data.last_accessed_at = new Date(data.last_accessed_at);
|
|
1026
|
+
data.created_at = new Date(data.created_at);
|
|
1027
|
+
return data;
|
|
1028
|
+
};
|
|
1029
|
+
var activityPostApiActivityInstancesResponseTransformer = async (data) => {
|
|
1030
|
+
data = activityInstanceDetailSchemaResponseTransformer(data);
|
|
1031
|
+
return data;
|
|
1032
|
+
};
|
|
1033
|
+
var activityGetApiActivityInstancesIdResponseTransformer = async (data) => {
|
|
1034
|
+
data = activityInstanceDetailSchemaResponseTransformer(data);
|
|
1035
|
+
return data;
|
|
1036
|
+
};
|
|
1037
|
+
var activityPatchApiActivityInstancesIdResponseTransformer = async (data) => {
|
|
1038
|
+
data = activityInstanceDetailSchemaResponseTransformer(data);
|
|
1039
|
+
return data;
|
|
1040
|
+
};
|
|
1041
|
+
var activityMessageSchemaResponseTransformer = (data) => {
|
|
1042
|
+
data.created_at = new Date(data.created_at);
|
|
1043
|
+
return data;
|
|
1044
|
+
};
|
|
1045
|
+
var activityMessageListResponseSchemaResponseTransformer = (data) => {
|
|
1046
|
+
data.data = data.data.map(
|
|
1047
|
+
(item) => activityMessageSchemaResponseTransformer(item)
|
|
1048
|
+
);
|
|
1049
|
+
return data;
|
|
1050
|
+
};
|
|
1051
|
+
var activityGetApiActivityInstancesInstanceIdMessagesResponseTransformer = async (data) => {
|
|
1052
|
+
data = activityMessageListResponseSchemaResponseTransformer(data);
|
|
1053
|
+
return data;
|
|
1054
|
+
};
|
|
1055
|
+
var activityPostApiActivityInstancesInstanceIdMessagesResponseTransformer = async (data) => {
|
|
1056
|
+
data = activityMessageSchemaResponseTransformer(data);
|
|
1057
|
+
return data;
|
|
1058
|
+
};
|
|
1059
|
+
var activityGetApiActivityInstancesInstanceIdMessagesMessageIdResponseTransformer = async (data) => {
|
|
1060
|
+
data = activityMessageSchemaResponseTransformer(data);
|
|
1061
|
+
return data;
|
|
1062
|
+
};
|
|
1063
|
+
var activityPatchApiActivityInstancesInstanceIdMessagesMessageIdResponseTransformer = async (data) => {
|
|
1064
|
+
data = activityMessageSchemaResponseTransformer(data);
|
|
1065
|
+
return data;
|
|
1066
|
+
};
|
|
1067
|
+
var activityPersonaSchemaResponseTransformer = (data) => {
|
|
1068
|
+
data.created_at = new Date(data.created_at);
|
|
1069
|
+
data.updated_at = new Date(data.updated_at);
|
|
1070
|
+
return data;
|
|
1071
|
+
};
|
|
1072
|
+
var activityPersonaListResponseSchemaResponseTransformer = (data) => {
|
|
1073
|
+
data.items = data.items.map(
|
|
1074
|
+
(item) => activityPersonaSchemaResponseTransformer(item)
|
|
1075
|
+
);
|
|
1076
|
+
return data;
|
|
1077
|
+
};
|
|
1078
|
+
var activityGetApiPersonasResponseTransformer = async (data) => {
|
|
1079
|
+
data = activityPersonaListResponseSchemaResponseTransformer(data);
|
|
1080
|
+
return data;
|
|
1081
|
+
};
|
|
1082
|
+
var activityPostApiPersonasResponseTransformer = async (data) => {
|
|
1083
|
+
data = activityPersonaSchemaResponseTransformer(data);
|
|
1084
|
+
return data;
|
|
1085
|
+
};
|
|
1086
|
+
var activityGetApiPersonasIdResponseTransformer = async (data) => {
|
|
1087
|
+
data = activityPersonaSchemaResponseTransformer(data);
|
|
1088
|
+
return data;
|
|
1089
|
+
};
|
|
1090
|
+
var activityPatchApiPersonasIdResponseTransformer = async (data) => {
|
|
1091
|
+
data = activityPersonaSchemaResponseTransformer(data);
|
|
1092
|
+
return data;
|
|
1093
|
+
};
|
|
1094
|
+
var activityPostApiPersonasIdDefaultResponseTransformer = async (data) => {
|
|
1095
|
+
data = activityPersonaSchemaResponseTransformer(data);
|
|
1096
|
+
return data;
|
|
1097
|
+
};
|
|
1098
|
+
var journeyHealthResponseSchemaResponseTransformer = (data) => {
|
|
1099
|
+
data.timestamp = new Date(data.timestamp);
|
|
1100
|
+
return data;
|
|
1101
|
+
};
|
|
1102
|
+
var journeyGetHealthResponseTransformer = async (data) => {
|
|
1103
|
+
data = journeyHealthResponseSchemaResponseTransformer(data);
|
|
1104
|
+
return data;
|
|
1105
|
+
};
|
|
1106
|
+
var journeyUserJourneyInstanceSchemaResponseTransformer = (data) => {
|
|
1107
|
+
if (data.started_at) {
|
|
1108
|
+
data.started_at = new Date(data.started_at);
|
|
1109
|
+
}
|
|
1110
|
+
if (data.completed_at) {
|
|
1111
|
+
data.completed_at = new Date(data.completed_at);
|
|
1112
|
+
}
|
|
1113
|
+
data.created_at = new Date(data.created_at);
|
|
1114
|
+
data.updated_at = new Date(data.updated_at);
|
|
1115
|
+
return data;
|
|
1116
|
+
};
|
|
1117
|
+
var journeyStartJourneyResponseSchemaResponseTransformer = (data) => {
|
|
1118
|
+
data.data = journeyUserJourneyInstanceSchemaResponseTransformer(data.data);
|
|
1119
|
+
return data;
|
|
1120
|
+
};
|
|
1121
|
+
var journeyPostApiUserJourneysIdStartResponseTransformer = async (data) => {
|
|
1122
|
+
data = journeyStartJourneyResponseSchemaResponseTransformer(data);
|
|
1123
|
+
return data;
|
|
1124
|
+
};
|
|
1125
|
+
var journeyUserJourneyInstancesResponseSchemaResponseTransformer = (data) => {
|
|
1126
|
+
data.data = data.data.map(
|
|
1127
|
+
(item) => journeyUserJourneyInstanceSchemaResponseTransformer(item)
|
|
1128
|
+
);
|
|
1129
|
+
return data;
|
|
1130
|
+
};
|
|
1131
|
+
var journeyGetApiUserMeJourneysResponseTransformer = async (data) => {
|
|
1132
|
+
data = journeyUserJourneyInstancesResponseSchemaResponseTransformer(data);
|
|
1133
|
+
return data;
|
|
1134
|
+
};
|
|
1135
|
+
var journeyUserJourneyInstanceResponseSchemaResponseTransformer = (data) => {
|
|
1136
|
+
data.data = journeyUserJourneyInstanceSchemaResponseTransformer(data.data);
|
|
1137
|
+
return data;
|
|
1138
|
+
};
|
|
1139
|
+
var journeyGetApiUserMeJourneysInstanceIdResponseTransformer = async (data) => {
|
|
1140
|
+
data = journeyUserJourneyInstanceResponseSchemaResponseTransformer(data);
|
|
1141
|
+
return data;
|
|
1142
|
+
};
|
|
1143
|
+
var journeyPostApiUserMeJourneysInstanceIdCompleteOnboardingResponseTransformer = async (data) => {
|
|
1144
|
+
data = journeyUserJourneyInstanceResponseSchemaResponseTransformer(data);
|
|
1145
|
+
return data;
|
|
1146
|
+
};
|
|
1147
|
+
var journeyPostApiUserMeJourneysInstanceIdActivateResponseTransformer = async (data) => {
|
|
1148
|
+
data = journeyUserJourneyInstanceResponseSchemaResponseTransformer(data);
|
|
1149
|
+
return data;
|
|
1150
|
+
};
|
|
1151
|
+
var journeyPostApiUserMeJourneysInstanceIdRedoCharacterizationResponseTransformer = async (data) => {
|
|
1152
|
+
data = journeyUserJourneyInstanceResponseSchemaResponseTransformer(data);
|
|
1153
|
+
return data;
|
|
1154
|
+
};
|
|
1155
|
+
var journeyPostApiUserMeJourneysInstanceIdAbandonResponseTransformer = async (data) => {
|
|
1156
|
+
data = journeyUserJourneyInstanceResponseSchemaResponseTransformer(data);
|
|
1157
|
+
return data;
|
|
1158
|
+
};
|
|
1159
|
+
var journeyUserEventInstanceSchemaResponseTransformer = (data) => {
|
|
1160
|
+
if (data.scheduled_for) {
|
|
1161
|
+
data.scheduled_for = new Date(data.scheduled_for);
|
|
1162
|
+
}
|
|
1163
|
+
if (data.started_at) {
|
|
1164
|
+
data.started_at = new Date(data.started_at);
|
|
1165
|
+
}
|
|
1166
|
+
if (data.completed_at) {
|
|
1167
|
+
data.completed_at = new Date(data.completed_at);
|
|
1168
|
+
}
|
|
1169
|
+
if (data.read_at) {
|
|
1170
|
+
data.read_at = new Date(data.read_at);
|
|
1171
|
+
}
|
|
1172
|
+
if (data.created_at) {
|
|
1173
|
+
data.created_at = new Date(data.created_at);
|
|
1174
|
+
}
|
|
1175
|
+
return data;
|
|
1176
|
+
};
|
|
1177
|
+
var journeyTodayEventsResponseSchemaResponseTransformer = (data) => {
|
|
1178
|
+
data.data = data.data.map((item) => {
|
|
1179
|
+
item.events = item.events.map(
|
|
1180
|
+
(item2) => journeyUserEventInstanceSchemaResponseTransformer(item2)
|
|
1181
|
+
);
|
|
1182
|
+
return item;
|
|
1183
|
+
});
|
|
1184
|
+
return data;
|
|
1185
|
+
};
|
|
1186
|
+
var journeyGetApiUserMeTodayEventsResponseTransformer = async (data) => {
|
|
1187
|
+
data = journeyTodayEventsResponseSchemaResponseTransformer(data);
|
|
1188
|
+
return data;
|
|
1189
|
+
};
|
|
1190
|
+
var journeyUserEventInstancesResponseSchemaResponseTransformer = (data) => {
|
|
1191
|
+
data.data = data.data.map(
|
|
1192
|
+
(item) => journeyUserEventInstanceSchemaResponseTransformer(item)
|
|
1193
|
+
);
|
|
1194
|
+
return data;
|
|
1195
|
+
};
|
|
1196
|
+
var journeyGetApiUserMeJourneysInstanceIdEventsResponseTransformer = async (data) => {
|
|
1197
|
+
data = journeyUserEventInstancesResponseSchemaResponseTransformer(data);
|
|
1198
|
+
return data;
|
|
1199
|
+
};
|
|
1200
|
+
var journeyUserEventInstanceResponseSchemaResponseTransformer = (data) => {
|
|
1201
|
+
data.data = journeyUserEventInstanceSchemaResponseTransformer(data.data);
|
|
1202
|
+
return data;
|
|
1203
|
+
};
|
|
1204
|
+
var journeyGetMyEventInstanceResponseTransformer = async (data) => {
|
|
1205
|
+
data = journeyUserEventInstanceResponseSchemaResponseTransformer(data);
|
|
1206
|
+
return data;
|
|
1207
|
+
};
|
|
1208
|
+
var journeyStartEventInstanceResponseTransformer = async (data) => {
|
|
1209
|
+
data = journeyUserEventInstanceResponseSchemaResponseTransformer(data);
|
|
1210
|
+
return data;
|
|
1211
|
+
};
|
|
1212
|
+
var journeyPostApiUserMeJourneysInstanceIdEventsStartResponseTransformer = async (data) => {
|
|
1213
|
+
data = journeyUserEventInstanceResponseSchemaResponseTransformer(data);
|
|
1214
|
+
return data;
|
|
1215
|
+
};
|
|
1216
|
+
var journeyCompleteEventInstanceResponseTransformer = async (data) => {
|
|
1217
|
+
data = journeyUserEventInstanceResponseSchemaResponseTransformer(data);
|
|
1218
|
+
return data;
|
|
1219
|
+
};
|
|
1220
|
+
var journeySkipEventInstanceResponseTransformer = async (data) => {
|
|
1221
|
+
data = journeyUserEventInstanceResponseSchemaResponseTransformer(data);
|
|
1222
|
+
return data;
|
|
1223
|
+
};
|
|
1224
|
+
var journeyMarkEventReadResponseTransformer = async (data) => {
|
|
1225
|
+
data = journeyUserEventInstanceResponseSchemaResponseTransformer(data);
|
|
1226
|
+
return data;
|
|
1227
|
+
};
|
|
1228
|
+
var gamificationHealthResponseSchemaResponseTransformer = (data) => {
|
|
1229
|
+
data.timestamp = new Date(data.timestamp);
|
|
1230
|
+
return data;
|
|
1231
|
+
};
|
|
1232
|
+
var gamificationGetHealthResponseTransformer = async (data) => {
|
|
1233
|
+
data = gamificationHealthResponseSchemaResponseTransformer(data);
|
|
1234
|
+
return data;
|
|
1235
|
+
};
|
|
1236
|
+
var gamificationUserBadgeSchemaResponseTransformer = (data) => {
|
|
1237
|
+
data.earned_at = new Date(data.earned_at);
|
|
1238
|
+
return data;
|
|
1239
|
+
};
|
|
1240
|
+
var gamificationUserBadgesResponseSchemaResponseTransformer = (data) => {
|
|
1241
|
+
data.data = data.data.map(
|
|
1242
|
+
(item) => gamificationUserBadgeSchemaResponseTransformer(item)
|
|
1243
|
+
);
|
|
1244
|
+
return data;
|
|
1245
|
+
};
|
|
1246
|
+
var gamificationGetApiUserMeBadgesResponseTransformer = async (data) => {
|
|
1247
|
+
data = gamificationUserBadgesResponseSchemaResponseTransformer(data);
|
|
1248
|
+
return data;
|
|
1249
|
+
};
|
|
1250
|
+
var gamificationUserAchievementSchemaResponseTransformer = (data) => {
|
|
1251
|
+
data.completed_at = new Date(data.completed_at);
|
|
1252
|
+
return data;
|
|
1253
|
+
};
|
|
1254
|
+
var gamificationUserAchievementsResponseSchemaResponseTransformer = (data) => {
|
|
1255
|
+
data.data = data.data.map(
|
|
1256
|
+
(item) => gamificationUserAchievementSchemaResponseTransformer(item)
|
|
1257
|
+
);
|
|
1258
|
+
return data;
|
|
1259
|
+
};
|
|
1260
|
+
var gamificationGetApiUserMeAchievementsResponseTransformer = async (data) => {
|
|
1261
|
+
data = gamificationUserAchievementsResponseSchemaResponseTransformer(data);
|
|
1262
|
+
return data;
|
|
1263
|
+
};
|
|
1264
|
+
var gamificationXpLedgerEntrySchemaResponseTransformer = (data) => {
|
|
1265
|
+
data.created_at = new Date(data.created_at);
|
|
1266
|
+
return data;
|
|
1267
|
+
};
|
|
1268
|
+
var gamificationUserXpResponseSchemaResponseTransformer = (data) => {
|
|
1269
|
+
data.data.recent_history = data.data.recent_history.map(
|
|
1270
|
+
(item) => gamificationXpLedgerEntrySchemaResponseTransformer(item)
|
|
1271
|
+
);
|
|
1272
|
+
return data;
|
|
1273
|
+
};
|
|
1274
|
+
var gamificationGetApiUserMeXpResponseTransformer = async (data) => {
|
|
1275
|
+
data = gamificationUserXpResponseSchemaResponseTransformer(data);
|
|
1276
|
+
return data;
|
|
1277
|
+
};
|
|
1278
|
+
var formHealthResponseSchemaResponseTransformer = (data) => {
|
|
1279
|
+
data.timestamp = new Date(data.timestamp);
|
|
1280
|
+
return data;
|
|
1281
|
+
};
|
|
1282
|
+
var formGetHealthResponseTransformer = async (data) => {
|
|
1283
|
+
data = formHealthResponseSchemaResponseTransformer(data);
|
|
1284
|
+
return data;
|
|
1285
|
+
};
|
|
1286
|
+
var formGetSubmissionResponseSchemaResponseTransformer = (data) => {
|
|
1287
|
+
if (data.submittedAt) {
|
|
1288
|
+
data.submittedAt = new Date(data.submittedAt);
|
|
1289
|
+
}
|
|
1290
|
+
return data;
|
|
1291
|
+
};
|
|
1292
|
+
var formGetApiFormsKeySubmissionResponseTransformer = async (data) => {
|
|
1293
|
+
data = formGetSubmissionResponseSchemaResponseTransformer(data);
|
|
1294
|
+
return data;
|
|
1295
|
+
};
|
|
1296
|
+
var avatarHealthResponseSchemaResponseTransformer = (data) => {
|
|
1297
|
+
data.timestamp = new Date(data.timestamp);
|
|
1298
|
+
return data;
|
|
1299
|
+
};
|
|
1300
|
+
var avatarGetHealthResponseTransformer = async (data) => {
|
|
1301
|
+
data = avatarHealthResponseSchemaResponseTransformer(data);
|
|
1302
|
+
return data;
|
|
1303
|
+
};
|
|
1304
|
+
var avatarSessionResponseSchemaResponseTransformer = (data) => {
|
|
1305
|
+
data.startedAt = new Date(data.startedAt);
|
|
1306
|
+
data.endedAt = new Date(data.endedAt);
|
|
1307
|
+
data.createdAt = new Date(data.createdAt);
|
|
1308
|
+
data.updatedAt = new Date(data.updatedAt);
|
|
1309
|
+
return data;
|
|
1310
|
+
};
|
|
1311
|
+
var avatarDeleteApiSessionsIdResponseTransformer = async (data) => {
|
|
1312
|
+
data = avatarSessionResponseSchemaResponseTransformer(data);
|
|
1313
|
+
return data;
|
|
1314
|
+
};
|
|
1315
|
+
var avatarGetApiSessionsIdResponseTransformer = async (data) => {
|
|
1316
|
+
data = avatarSessionResponseSchemaResponseTransformer(data);
|
|
1317
|
+
return data;
|
|
1318
|
+
};
|
|
1319
|
+
|
|
1320
|
+
// node_modules/.pnpm/@spikelabsinc+user-api-client@0.0.76_react@19.2.4/node_modules/@spikelabsinc/user-api-client/src/client/sdk.gen.ts
|
|
1321
|
+
var chatGetHealth = (options) => (options?.client ?? client).get({
|
|
1322
|
+
responseTransformer: chatGetHealthResponseTransformer,
|
|
1323
|
+
url: "/chat/health",
|
|
1324
|
+
...options
|
|
1325
|
+
});
|
|
1326
|
+
var tenantGetHealth = (options) => (options?.client ?? client).get({
|
|
1327
|
+
responseTransformer: tenantGetHealthResponseTransformer,
|
|
1328
|
+
url: "/tenant/health",
|
|
1329
|
+
...options
|
|
1330
|
+
});
|
|
1331
|
+
var tenantPostApiAblyToken = (options) => (options?.client ?? client).post({
|
|
1332
|
+
url: "/tenant/api/ably/token",
|
|
1333
|
+
...options,
|
|
1334
|
+
headers: {
|
|
1335
|
+
"Content-Type": "application/json",
|
|
1336
|
+
...options?.headers
|
|
1337
|
+
}
|
|
1338
|
+
});
|
|
1339
|
+
var tenantPostApiTokensMint = (options) => (options?.client ?? client).post({
|
|
1340
|
+
responseTransformer: tenantPostApiTokensMintResponseTransformer,
|
|
1341
|
+
url: "/tenant/api/tokens/mint",
|
|
1342
|
+
...options,
|
|
1343
|
+
headers: {
|
|
1344
|
+
"Content-Type": "application/json",
|
|
1345
|
+
...options?.headers
|
|
1346
|
+
}
|
|
1347
|
+
});
|
|
1348
|
+
var contentGetHealth = (options) => (options?.client ?? client).get({
|
|
1349
|
+
responseTransformer: contentGetHealthResponseTransformer,
|
|
1350
|
+
url: "/content/health",
|
|
1351
|
+
...options
|
|
1352
|
+
});
|
|
1353
|
+
var contentGetApiMemoriesScratchpad = (options) => (options.client ?? client).get({
|
|
1354
|
+
responseTransformer: contentGetApiMemoriesScratchpadResponseTransformer,
|
|
1355
|
+
url: "/content/api/memories/scratchpad",
|
|
1356
|
+
...options
|
|
1357
|
+
});
|
|
1358
|
+
var contentPutApiMemoriesScratchpad = (options) => (options.client ?? client).put({
|
|
1359
|
+
responseTransformer: contentPutApiMemoriesScratchpadResponseTransformer,
|
|
1360
|
+
url: "/content/api/memories/scratchpad",
|
|
1361
|
+
...options,
|
|
1362
|
+
headers: {
|
|
1363
|
+
"Content-Type": "application/json",
|
|
1364
|
+
...options.headers
|
|
1365
|
+
}
|
|
1366
|
+
});
|
|
1367
|
+
var mediaGetHealth = (options) => (options?.client ?? client).get({
|
|
1368
|
+
responseTransformer: mediaGetHealthResponseTransformer,
|
|
1369
|
+
url: "/media/health",
|
|
1370
|
+
...options
|
|
1371
|
+
});
|
|
1372
|
+
var mediaPostApiFilesPresigned = (options) => (options?.client ?? client).post({
|
|
1373
|
+
responseTransformer: mediaPostApiFilesPresignedResponseTransformer,
|
|
1374
|
+
url: "/media/api/files/presigned",
|
|
1375
|
+
...options,
|
|
1376
|
+
headers: {
|
|
1377
|
+
"Content-Type": "application/json",
|
|
1378
|
+
...options?.headers
|
|
1379
|
+
}
|
|
1380
|
+
});
|
|
1381
|
+
var mediaGetApiFiles = (options) => (options?.client ?? client).get({
|
|
1382
|
+
responseTransformer: mediaGetApiFilesResponseTransformer,
|
|
1383
|
+
url: "/media/api/files",
|
|
1384
|
+
...options
|
|
1385
|
+
});
|
|
1386
|
+
var mediaPostApiFiles = (options) => (options?.client ?? client).post({
|
|
1387
|
+
...formDataBodySerializer,
|
|
1388
|
+
url: "/media/api/files",
|
|
1389
|
+
...options,
|
|
1390
|
+
headers: {
|
|
1391
|
+
"Content-Type": null,
|
|
1392
|
+
...options?.headers
|
|
1393
|
+
}
|
|
1394
|
+
});
|
|
1395
|
+
var mediaPostApiFilesIdConfirm = (options) => (options.client ?? client).post({
|
|
1396
|
+
responseTransformer: mediaPostApiFilesIdConfirmResponseTransformer,
|
|
1397
|
+
url: "/media/api/files/{id}/confirm",
|
|
1398
|
+
...options,
|
|
1399
|
+
headers: {
|
|
1400
|
+
"Content-Type": "application/json",
|
|
1401
|
+
...options.headers
|
|
1402
|
+
}
|
|
1403
|
+
});
|
|
1404
|
+
var mediaDeleteApiFilesId = (options) => (options.client ?? client).delete({ url: "/media/api/files/{id}", ...options });
|
|
1405
|
+
var mediaGetApiFilesId = (options) => (options.client ?? client).get({
|
|
1406
|
+
responseTransformer: mediaGetApiFilesIdResponseTransformer,
|
|
1407
|
+
url: "/media/api/files/{id}",
|
|
1408
|
+
...options
|
|
1409
|
+
});
|
|
1410
|
+
var mediaGetApiSkins = (options) => (options?.client ?? client).get({ url: "/media/api/skins", ...options });
|
|
1411
|
+
var mediaGetApiSkinsId = (options) => (options.client ?? client).get({ url: "/media/api/skins/{id}", ...options });
|
|
1412
|
+
var mediaGetApiCollection = (options) => (options?.client ?? client).get({
|
|
1413
|
+
responseTransformer: mediaGetApiCollectionResponseTransformer,
|
|
1414
|
+
url: "/media/api/collection",
|
|
1415
|
+
...options
|
|
1416
|
+
});
|
|
1417
|
+
var mediaPostApiCollection = (options) => (options?.client ?? client).post({
|
|
1418
|
+
responseTransformer: mediaPostApiCollectionResponseTransformer,
|
|
1419
|
+
url: "/media/api/collection",
|
|
1420
|
+
...options,
|
|
1421
|
+
headers: {
|
|
1422
|
+
"Content-Type": "application/json",
|
|
1423
|
+
...options?.headers
|
|
1424
|
+
}
|
|
1425
|
+
});
|
|
1426
|
+
var mediaDeleteApiCollectionId = (options) => (options.client ?? client).delete({ url: "/media/api/collection/{id}", ...options });
|
|
1427
|
+
var mediaPatchApiCollectionId = (options) => (options.client ?? client).patch({
|
|
1428
|
+
responseTransformer: mediaPatchApiCollectionIdResponseTransformer,
|
|
1429
|
+
url: "/media/api/collection/{id}",
|
|
1430
|
+
...options,
|
|
1431
|
+
headers: {
|
|
1432
|
+
"Content-Type": "application/json",
|
|
1433
|
+
...options.headers
|
|
1434
|
+
}
|
|
1435
|
+
});
|
|
1436
|
+
var mediaPostApiGenerateImageCategory = (options) => (options?.client ?? client).post({
|
|
1437
|
+
url: "/media/api/generate/image/category",
|
|
1438
|
+
...options,
|
|
1439
|
+
headers: {
|
|
1440
|
+
"Content-Type": "application/json",
|
|
1441
|
+
...options?.headers
|
|
1442
|
+
}
|
|
1443
|
+
});
|
|
1444
|
+
var mediaPostApiGenerateVideoCategory = (options) => (options?.client ?? client).post({
|
|
1445
|
+
url: "/media/api/generate/video/category",
|
|
1446
|
+
...options,
|
|
1447
|
+
headers: {
|
|
1448
|
+
"Content-Type": "application/json",
|
|
1449
|
+
...options?.headers
|
|
1450
|
+
}
|
|
1451
|
+
});
|
|
1452
|
+
var platformGetHealth = (options) => (options?.client ?? client).get({
|
|
1453
|
+
responseTransformer: platformGetHealthResponseTransformer,
|
|
1454
|
+
url: "/platform/health",
|
|
1455
|
+
...options
|
|
1456
|
+
});
|
|
1457
|
+
var activityGetHealth = (options) => (options?.client ?? client).get({
|
|
1458
|
+
responseTransformer: activityGetHealthResponseTransformer,
|
|
1459
|
+
url: "/activity/health",
|
|
1460
|
+
...options
|
|
1461
|
+
});
|
|
1462
|
+
var activityGetApiActivities = (options) => (options?.client ?? client).get({
|
|
1463
|
+
responseTransformer: activityGetApiActivitiesResponseTransformer,
|
|
1464
|
+
url: "/activity/api/activities",
|
|
1465
|
+
...options
|
|
1466
|
+
});
|
|
1467
|
+
var activityGetApiActivitiesId = (options) => (options.client ?? client).get({ url: "/activity/api/activities/{id}", ...options });
|
|
1468
|
+
var activityGetApiActivityInstances = (options) => (options?.client ?? client).get({
|
|
1469
|
+
responseTransformer: activityGetApiActivityInstancesResponseTransformer,
|
|
1470
|
+
url: "/activity/api/activity-instances",
|
|
1471
|
+
...options
|
|
1472
|
+
});
|
|
1473
|
+
var activityPostApiActivityInstances = (options) => (options?.client ?? client).post({
|
|
1474
|
+
responseTransformer: activityPostApiActivityInstancesResponseTransformer,
|
|
1475
|
+
url: "/activity/api/activity-instances",
|
|
1476
|
+
...options,
|
|
1477
|
+
headers: {
|
|
1478
|
+
"Content-Type": "application/json",
|
|
1479
|
+
...options?.headers
|
|
1480
|
+
}
|
|
1481
|
+
});
|
|
1482
|
+
var activityDeleteApiActivityInstancesId = (options) => (options.client ?? client).delete({ url: "/activity/api/activity-instances/{id}", ...options });
|
|
1483
|
+
var activityGetApiActivityInstancesId = (options) => (options.client ?? client).get({
|
|
1484
|
+
responseTransformer: activityGetApiActivityInstancesIdResponseTransformer,
|
|
1485
|
+
url: "/activity/api/activity-instances/{id}",
|
|
1486
|
+
...options
|
|
1487
|
+
});
|
|
1488
|
+
var activityPatchApiActivityInstancesId = (options) => (options.client ?? client).patch({
|
|
1489
|
+
responseTransformer: activityPatchApiActivityInstancesIdResponseTransformer,
|
|
1490
|
+
url: "/activity/api/activity-instances/{id}",
|
|
1491
|
+
...options,
|
|
1492
|
+
headers: {
|
|
1493
|
+
"Content-Type": "application/json",
|
|
1494
|
+
...options.headers
|
|
1495
|
+
}
|
|
1496
|
+
});
|
|
1497
|
+
var activityGetApiActivityInstancesInstanceIdMessages = (options) => (options.client ?? client).get({
|
|
1498
|
+
responseTransformer: activityGetApiActivityInstancesInstanceIdMessagesResponseTransformer,
|
|
1499
|
+
url: "/activity/api/activity-instances/{instanceId}/messages",
|
|
1500
|
+
...options
|
|
1501
|
+
});
|
|
1502
|
+
var activityPostApiActivityInstancesInstanceIdMessages = (options) => (options.client ?? client).post({
|
|
1503
|
+
responseTransformer: activityPostApiActivityInstancesInstanceIdMessagesResponseTransformer,
|
|
1504
|
+
url: "/activity/api/activity-instances/{instanceId}/messages",
|
|
1505
|
+
...options,
|
|
1506
|
+
headers: {
|
|
1507
|
+
"Content-Type": "application/json",
|
|
1508
|
+
...options.headers
|
|
1509
|
+
}
|
|
1510
|
+
});
|
|
1511
|
+
var activityDeleteApiActivityInstancesInstanceIdMessagesMessageId = (options) => (options.client ?? client).delete({
|
|
1512
|
+
url: "/activity/api/activity-instances/{instanceId}/messages/{messageId}",
|
|
1513
|
+
...options
|
|
1514
|
+
});
|
|
1515
|
+
var activityGetApiActivityInstancesInstanceIdMessagesMessageId = (options) => (options.client ?? client).get({
|
|
1516
|
+
responseTransformer: activityGetApiActivityInstancesInstanceIdMessagesMessageIdResponseTransformer,
|
|
1517
|
+
url: "/activity/api/activity-instances/{instanceId}/messages/{messageId}",
|
|
1518
|
+
...options
|
|
1519
|
+
});
|
|
1520
|
+
var activityPatchApiActivityInstancesInstanceIdMessagesMessageId = (options) => (options.client ?? client).patch({
|
|
1521
|
+
responseTransformer: activityPatchApiActivityInstancesInstanceIdMessagesMessageIdResponseTransformer,
|
|
1522
|
+
url: "/activity/api/activity-instances/{instanceId}/messages/{messageId}",
|
|
1523
|
+
...options,
|
|
1524
|
+
headers: {
|
|
1525
|
+
"Content-Type": "application/json",
|
|
1526
|
+
...options.headers
|
|
1527
|
+
}
|
|
1528
|
+
});
|
|
1529
|
+
var activityPostApiActivityInstancesInstanceIdChat = (options) => (options.client ?? client).post({
|
|
1530
|
+
url: "/activity/api/activity-instances/{instanceId}/chat",
|
|
1531
|
+
...options,
|
|
1532
|
+
headers: {
|
|
1533
|
+
"Content-Type": "application/json",
|
|
1534
|
+
...options.headers
|
|
1535
|
+
}
|
|
1536
|
+
});
|
|
1537
|
+
var activityGetApiPersonas = (options) => (options?.client ?? client).get({
|
|
1538
|
+
responseTransformer: activityGetApiPersonasResponseTransformer,
|
|
1539
|
+
url: "/activity/api/personas",
|
|
1540
|
+
...options
|
|
1541
|
+
});
|
|
1542
|
+
var activityPostApiPersonas = (options) => (options?.client ?? client).post({
|
|
1543
|
+
responseTransformer: activityPostApiPersonasResponseTransformer,
|
|
1544
|
+
url: "/activity/api/personas",
|
|
1545
|
+
...options,
|
|
1546
|
+
headers: {
|
|
1547
|
+
"Content-Type": "application/json",
|
|
1548
|
+
...options?.headers
|
|
1549
|
+
}
|
|
1550
|
+
});
|
|
1551
|
+
var activityDeleteApiPersonasId = (options) => (options.client ?? client).delete({ url: "/activity/api/personas/{id}", ...options });
|
|
1552
|
+
var activityGetApiPersonasId = (options) => (options.client ?? client).get({
|
|
1553
|
+
responseTransformer: activityGetApiPersonasIdResponseTransformer,
|
|
1554
|
+
url: "/activity/api/personas/{id}",
|
|
1555
|
+
...options
|
|
1556
|
+
});
|
|
1557
|
+
var activityPatchApiPersonasId = (options) => (options.client ?? client).patch({
|
|
1558
|
+
responseTransformer: activityPatchApiPersonasIdResponseTransformer,
|
|
1559
|
+
url: "/activity/api/personas/{id}",
|
|
1560
|
+
...options,
|
|
1561
|
+
headers: {
|
|
1562
|
+
"Content-Type": "application/json",
|
|
1563
|
+
...options.headers
|
|
1564
|
+
}
|
|
1565
|
+
});
|
|
1566
|
+
var activityPostApiPersonasIdDefault = (options) => (options.client ?? client).post({
|
|
1567
|
+
responseTransformer: activityPostApiPersonasIdDefaultResponseTransformer,
|
|
1568
|
+
url: "/activity/api/personas/{id}/default",
|
|
1569
|
+
...options
|
|
1570
|
+
});
|
|
1571
|
+
var journeyGetHealth = (options) => (options?.client ?? client).get({
|
|
1572
|
+
responseTransformer: journeyGetHealthResponseTransformer,
|
|
1573
|
+
url: "/journey/health",
|
|
1574
|
+
...options
|
|
1575
|
+
});
|
|
1576
|
+
var journeyGetApiUserJourneys = (options) => (options?.client ?? client).get({ url: "/journey/api/user/journeys", ...options });
|
|
1577
|
+
var journeyGetApiUserJourneysId = (options) => (options.client ?? client).get({ url: "/journey/api/user/journeys/{id}", ...options });
|
|
1578
|
+
var journeyPostApiUserJourneysIdStart = (options) => (options.client ?? client).post({
|
|
1579
|
+
responseTransformer: journeyPostApiUserJourneysIdStartResponseTransformer,
|
|
1580
|
+
url: "/journey/api/user/journeys/{id}/start",
|
|
1581
|
+
...options,
|
|
1582
|
+
headers: {
|
|
1583
|
+
"Content-Type": "application/json",
|
|
1584
|
+
...options.headers
|
|
1585
|
+
}
|
|
1586
|
+
});
|
|
1587
|
+
var journeyGetApiUserMeJourneys = (options) => (options?.client ?? client).get({
|
|
1588
|
+
responseTransformer: journeyGetApiUserMeJourneysResponseTransformer,
|
|
1589
|
+
url: "/journey/api/user/me/journeys",
|
|
1590
|
+
...options
|
|
1591
|
+
});
|
|
1592
|
+
var journeyGetApiUserMeJourneysInstanceId = (options) => (options.client ?? client).get({
|
|
1593
|
+
responseTransformer: journeyGetApiUserMeJourneysInstanceIdResponseTransformer,
|
|
1594
|
+
url: "/journey/api/user/me/journeys/{instanceId}",
|
|
1595
|
+
...options
|
|
1596
|
+
});
|
|
1597
|
+
var journeyPostApiUserMeJourneysInstanceIdCompleteOnboarding = (options) => (options.client ?? client).post({
|
|
1598
|
+
responseTransformer: journeyPostApiUserMeJourneysInstanceIdCompleteOnboardingResponseTransformer,
|
|
1599
|
+
url: "/journey/api/user/me/journeys/{instanceId}/complete-onboarding",
|
|
1600
|
+
...options,
|
|
1601
|
+
headers: {
|
|
1602
|
+
"Content-Type": "application/json",
|
|
1603
|
+
...options.headers
|
|
1604
|
+
}
|
|
1605
|
+
});
|
|
1606
|
+
var journeyPostApiUserMeJourneysInstanceIdActivate = (options) => (options.client ?? client).post({
|
|
1607
|
+
responseTransformer: journeyPostApiUserMeJourneysInstanceIdActivateResponseTransformer,
|
|
1608
|
+
url: "/journey/api/user/me/journeys/{instanceId}/activate",
|
|
1609
|
+
...options
|
|
1610
|
+
});
|
|
1611
|
+
var journeyPostApiUserMeJourneysInstanceIdRedoCharacterization = (options) => (options.client ?? client).post({
|
|
1612
|
+
responseTransformer: journeyPostApiUserMeJourneysInstanceIdRedoCharacterizationResponseTransformer,
|
|
1613
|
+
url: "/journey/api/user/me/journeys/{instanceId}/redo-characterization",
|
|
1614
|
+
...options
|
|
1615
|
+
});
|
|
1616
|
+
var journeyPostApiUserMeJourneysInstanceIdAbandon = (options) => (options.client ?? client).post({
|
|
1617
|
+
responseTransformer: journeyPostApiUserMeJourneysInstanceIdAbandonResponseTransformer,
|
|
1618
|
+
url: "/journey/api/user/me/journeys/{instanceId}/abandon",
|
|
1619
|
+
...options
|
|
1620
|
+
});
|
|
1621
|
+
var journeyGetApiUserMeTodayEvents = (options) => (options?.client ?? client).get({
|
|
1622
|
+
responseTransformer: journeyGetApiUserMeTodayEventsResponseTransformer,
|
|
1623
|
+
url: "/journey/api/user/me/today-events",
|
|
1624
|
+
...options
|
|
1625
|
+
});
|
|
1626
|
+
var journeyGetApiUserMeJourneysInstanceIdEvents = (options) => (options.client ?? client).get({
|
|
1627
|
+
responseTransformer: journeyGetApiUserMeJourneysInstanceIdEventsResponseTransformer,
|
|
1628
|
+
url: "/journey/api/user/me/journeys/{instanceId}/events",
|
|
1629
|
+
...options
|
|
1630
|
+
});
|
|
1631
|
+
var journeyGetMyEventInstance = (options) => (options.client ?? client).get({
|
|
1632
|
+
responseTransformer: journeyGetMyEventInstanceResponseTransformer,
|
|
1633
|
+
url: "/journey/api/user/me/journeys/{instanceId}/events/{eventInstanceId}",
|
|
1634
|
+
...options
|
|
1635
|
+
});
|
|
1636
|
+
var journeyStartEventInstance = (options) => (options.client ?? client).post({
|
|
1637
|
+
responseTransformer: journeyStartEventInstanceResponseTransformer,
|
|
1638
|
+
url: "/journey/api/user/me/journeys/{instanceId}/events/{eventInstanceId}/start",
|
|
1639
|
+
...options
|
|
1640
|
+
});
|
|
1641
|
+
var journeyPostApiUserMeJourneysInstanceIdEventsStart = (options) => (options.client ?? client).post({
|
|
1642
|
+
responseTransformer: journeyPostApiUserMeJourneysInstanceIdEventsStartResponseTransformer,
|
|
1643
|
+
url: "/journey/api/user/me/journeys/{instanceId}/events/start",
|
|
1644
|
+
...options,
|
|
1645
|
+
headers: {
|
|
1646
|
+
"Content-Type": "application/json",
|
|
1647
|
+
...options.headers
|
|
1648
|
+
}
|
|
1649
|
+
});
|
|
1650
|
+
var journeyCompleteEventInstance = (options) => (options.client ?? client).post({
|
|
1651
|
+
responseTransformer: journeyCompleteEventInstanceResponseTransformer,
|
|
1652
|
+
url: "/journey/api/user/me/journeys/{instanceId}/events/{eventInstanceId}/complete",
|
|
1653
|
+
...options,
|
|
1654
|
+
headers: {
|
|
1655
|
+
"Content-Type": "application/json",
|
|
1656
|
+
...options.headers
|
|
1657
|
+
}
|
|
1658
|
+
});
|
|
1659
|
+
var journeySkipEventInstance = (options) => (options.client ?? client).post({
|
|
1660
|
+
responseTransformer: journeySkipEventInstanceResponseTransformer,
|
|
1661
|
+
url: "/journey/api/user/me/journeys/{instanceId}/events/{eventInstanceId}/skip",
|
|
1662
|
+
...options
|
|
1663
|
+
});
|
|
1664
|
+
var journeyMarkEventRead = (options) => (options.client ?? client).post({
|
|
1665
|
+
responseTransformer: journeyMarkEventReadResponseTransformer,
|
|
1666
|
+
url: "/journey/api/user/me/journeys/{instanceId}/events/{eventInstanceId}/read",
|
|
1667
|
+
...options
|
|
1668
|
+
});
|
|
1669
|
+
var gamificationGetHealth = (options) => (options?.client ?? client).get({
|
|
1670
|
+
responseTransformer: gamificationGetHealthResponseTransformer,
|
|
1671
|
+
url: "/gamification/health",
|
|
1672
|
+
...options
|
|
1673
|
+
});
|
|
1674
|
+
var gamificationGetApiUserMeBadges = (options) => (options?.client ?? client).get({
|
|
1675
|
+
responseTransformer: gamificationGetApiUserMeBadgesResponseTransformer,
|
|
1676
|
+
url: "/gamification/api/user/me/badges",
|
|
1677
|
+
...options
|
|
1678
|
+
});
|
|
1679
|
+
var gamificationGetApiUserMeAchievements = (options) => (options?.client ?? client).get({
|
|
1680
|
+
responseTransformer: gamificationGetApiUserMeAchievementsResponseTransformer,
|
|
1681
|
+
url: "/gamification/api/user/me/achievements",
|
|
1682
|
+
...options
|
|
1683
|
+
});
|
|
1684
|
+
var gamificationGetApiUserMeXp = (options) => (options?.client ?? client).get({
|
|
1685
|
+
responseTransformer: gamificationGetApiUserMeXpResponseTransformer,
|
|
1686
|
+
url: "/gamification/api/user/me/xp",
|
|
1687
|
+
...options
|
|
1688
|
+
});
|
|
1689
|
+
var gamificationGetApiUserMeLevels = (options) => (options?.client ?? client).get({ url: "/gamification/api/user/me/levels", ...options });
|
|
1690
|
+
var gamificationGetApiUserMeRewards = (options) => (options?.client ?? client).get({ url: "/gamification/api/user/me/rewards", ...options });
|
|
1691
|
+
var formGetHealth = (options) => (options?.client ?? client).get({
|
|
1692
|
+
responseTransformer: formGetHealthResponseTransformer,
|
|
1693
|
+
url: "/form/health",
|
|
1694
|
+
...options
|
|
1695
|
+
});
|
|
1696
|
+
var formGetApiFormsKeyOrId = (options) => (options.client ?? client).get({ url: "/form/api/forms/{keyOrId}", ...options });
|
|
1697
|
+
var formPostApiFormsKeySubmit = (options) => (options.client ?? client).post({
|
|
1698
|
+
url: "/form/api/forms/{key}/submit",
|
|
1699
|
+
...options,
|
|
1700
|
+
headers: {
|
|
1701
|
+
"Content-Type": "application/json",
|
|
1702
|
+
...options.headers
|
|
1703
|
+
}
|
|
1704
|
+
});
|
|
1705
|
+
var formPutApiFormsKeyDraft = (options) => (options.client ?? client).put({
|
|
1706
|
+
url: "/form/api/forms/{key}/draft",
|
|
1707
|
+
...options,
|
|
1708
|
+
headers: {
|
|
1709
|
+
"Content-Type": "application/json",
|
|
1710
|
+
...options.headers
|
|
1711
|
+
}
|
|
1712
|
+
});
|
|
1713
|
+
var formGetApiFormsKeySubmission = (options) => (options.client ?? client).get({
|
|
1714
|
+
responseTransformer: formGetApiFormsKeySubmissionResponseTransformer,
|
|
1715
|
+
url: "/form/api/forms/{key}/submission",
|
|
1716
|
+
...options
|
|
1717
|
+
});
|
|
1718
|
+
var avatarGetHealth = (options) => (options?.client ?? client).get({
|
|
1719
|
+
responseTransformer: avatarGetHealthResponseTransformer,
|
|
1720
|
+
url: "/avatar/health",
|
|
1721
|
+
...options
|
|
1722
|
+
});
|
|
1723
|
+
var avatarPostApiSessions = (options) => (options?.client ?? client).post({
|
|
1724
|
+
url: "/avatar/api/sessions",
|
|
1725
|
+
...options,
|
|
1726
|
+
headers: {
|
|
1727
|
+
"Content-Type": "application/json",
|
|
1728
|
+
...options?.headers
|
|
1729
|
+
}
|
|
1730
|
+
});
|
|
1731
|
+
var avatarDeleteApiSessionsId = (options) => (options.client ?? client).delete({
|
|
1732
|
+
responseTransformer: avatarDeleteApiSessionsIdResponseTransformer,
|
|
1733
|
+
url: "/avatar/api/sessions/{id}",
|
|
1734
|
+
...options
|
|
1735
|
+
});
|
|
1736
|
+
var avatarGetApiSessionsId = (options) => (options.client ?? client).get({
|
|
1737
|
+
responseTransformer: avatarGetApiSessionsIdResponseTransformer,
|
|
1738
|
+
url: "/avatar/api/sessions/{id}",
|
|
1739
|
+
...options
|
|
1740
|
+
});
|
|
1741
|
+
var avatarPostApiSessionsIdToken = (options) => (options.client ?? client).post({ url: "/avatar/api/sessions/{id}/token", ...options });
|
|
1742
|
+
var avatarPostApiGenerate = (options) => (options?.client ?? client).post({
|
|
1743
|
+
url: "/avatar/api/generate",
|
|
1744
|
+
...options,
|
|
1745
|
+
headers: {
|
|
1746
|
+
"Content-Type": "application/json",
|
|
1747
|
+
...options?.headers
|
|
1748
|
+
}
|
|
1749
|
+
});
|
|
1750
|
+
|
|
1751
|
+
// node_modules/.pnpm/@spikelabsinc+user-api-client@0.0.76_react@19.2.4/node_modules/@spikelabsinc/user-api-client/src/client/@tanstack/react-query.gen.ts
|
|
1752
|
+
var createQueryKey = (id, options, infinite, tags) => {
|
|
1753
|
+
const params = {
|
|
1754
|
+
_id: id,
|
|
1755
|
+
baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl
|
|
1756
|
+
};
|
|
1757
|
+
if (infinite) {
|
|
1758
|
+
params._infinite = infinite;
|
|
1759
|
+
}
|
|
1760
|
+
if (tags) {
|
|
1761
|
+
params.tags = tags;
|
|
1762
|
+
}
|
|
1763
|
+
if (options?.body) {
|
|
1764
|
+
params.body = options.body;
|
|
1765
|
+
}
|
|
1766
|
+
if (options?.headers) {
|
|
1767
|
+
params.headers = options.headers;
|
|
1768
|
+
}
|
|
1769
|
+
if (options?.path) {
|
|
1770
|
+
params.path = options.path;
|
|
1771
|
+
}
|
|
1772
|
+
if (options?.query) {
|
|
1773
|
+
params.query = options.query;
|
|
1774
|
+
}
|
|
1775
|
+
return [params];
|
|
1776
|
+
};
|
|
1777
|
+
var chatGetHealthQueryKey = (options) => createQueryKey("chatGetHealth", options);
|
|
1778
|
+
var chatGetHealthOptions = (options) => queryOptions({
|
|
1779
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1780
|
+
const { data } = await chatGetHealth({
|
|
1781
|
+
...options,
|
|
1782
|
+
...queryKey[0],
|
|
1783
|
+
signal,
|
|
1784
|
+
throwOnError: true
|
|
1785
|
+
});
|
|
1786
|
+
return data;
|
|
1787
|
+
},
|
|
1788
|
+
queryKey: chatGetHealthQueryKey(options)
|
|
1789
|
+
});
|
|
1790
|
+
var tenantGetHealthQueryKey = (options) => createQueryKey("tenantGetHealth", options);
|
|
1791
|
+
var tenantGetHealthOptions = (options) => queryOptions({
|
|
1792
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1793
|
+
const { data } = await tenantGetHealth({
|
|
1794
|
+
...options,
|
|
1795
|
+
...queryKey[0],
|
|
1796
|
+
signal,
|
|
1797
|
+
throwOnError: true
|
|
1798
|
+
});
|
|
1799
|
+
return data;
|
|
1800
|
+
},
|
|
1801
|
+
queryKey: tenantGetHealthQueryKey(options)
|
|
1802
|
+
});
|
|
1803
|
+
var tenantPostApiAblyTokenMutation = (options) => {
|
|
1804
|
+
const mutationOptions = {
|
|
1805
|
+
mutationFn: async (fnOptions) => {
|
|
1806
|
+
const { data } = await tenantPostApiAblyToken({
|
|
1807
|
+
...options,
|
|
1808
|
+
...fnOptions,
|
|
1809
|
+
throwOnError: true
|
|
1810
|
+
});
|
|
1811
|
+
return data;
|
|
1812
|
+
}
|
|
1813
|
+
};
|
|
1814
|
+
return mutationOptions;
|
|
1815
|
+
};
|
|
1816
|
+
var tenantPostApiTokensMintMutation = (options) => {
|
|
1817
|
+
const mutationOptions = {
|
|
1818
|
+
mutationFn: async (fnOptions) => {
|
|
1819
|
+
const { data } = await tenantPostApiTokensMint({
|
|
1820
|
+
...options,
|
|
1821
|
+
...fnOptions,
|
|
1822
|
+
throwOnError: true
|
|
1823
|
+
});
|
|
1824
|
+
return data;
|
|
1825
|
+
}
|
|
1826
|
+
};
|
|
1827
|
+
return mutationOptions;
|
|
1828
|
+
};
|
|
1829
|
+
var contentGetHealthQueryKey = (options) => createQueryKey("contentGetHealth", options);
|
|
1830
|
+
var contentGetHealthOptions = (options) => queryOptions({
|
|
1831
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1832
|
+
const { data } = await contentGetHealth({
|
|
1833
|
+
...options,
|
|
1834
|
+
...queryKey[0],
|
|
1835
|
+
signal,
|
|
1836
|
+
throwOnError: true
|
|
1837
|
+
});
|
|
1838
|
+
return data;
|
|
1839
|
+
},
|
|
1840
|
+
queryKey: contentGetHealthQueryKey(options)
|
|
1841
|
+
});
|
|
1842
|
+
var contentGetApiMemoriesScratchpadQueryKey = (options) => createQueryKey("contentGetApiMemoriesScratchpad", options);
|
|
1843
|
+
var contentGetApiMemoriesScratchpadOptions = (options) => queryOptions({
|
|
1844
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1845
|
+
const { data } = await contentGetApiMemoriesScratchpad({
|
|
1846
|
+
...options,
|
|
1847
|
+
...queryKey[0],
|
|
1848
|
+
signal,
|
|
1849
|
+
throwOnError: true
|
|
1850
|
+
});
|
|
1851
|
+
return data;
|
|
1852
|
+
},
|
|
1853
|
+
queryKey: contentGetApiMemoriesScratchpadQueryKey(options)
|
|
1854
|
+
});
|
|
1855
|
+
var contentPutApiMemoriesScratchpadMutation = (options) => {
|
|
1856
|
+
const mutationOptions = {
|
|
1857
|
+
mutationFn: async (fnOptions) => {
|
|
1858
|
+
const { data } = await contentPutApiMemoriesScratchpad({
|
|
1859
|
+
...options,
|
|
1860
|
+
...fnOptions,
|
|
1861
|
+
throwOnError: true
|
|
1862
|
+
});
|
|
1863
|
+
return data;
|
|
1864
|
+
}
|
|
1865
|
+
};
|
|
1866
|
+
return mutationOptions;
|
|
1867
|
+
};
|
|
1868
|
+
var mediaGetHealthQueryKey = (options) => createQueryKey("mediaGetHealth", options);
|
|
1869
|
+
var mediaGetHealthOptions = (options) => queryOptions({
|
|
1870
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1871
|
+
const { data } = await mediaGetHealth({
|
|
1872
|
+
...options,
|
|
1873
|
+
...queryKey[0],
|
|
1874
|
+
signal,
|
|
1875
|
+
throwOnError: true
|
|
1876
|
+
});
|
|
1877
|
+
return data;
|
|
1878
|
+
},
|
|
1879
|
+
queryKey: mediaGetHealthQueryKey(options)
|
|
1880
|
+
});
|
|
1881
|
+
var mediaPostApiFilesPresignedMutation = (options) => {
|
|
1882
|
+
const mutationOptions = {
|
|
1883
|
+
mutationFn: async (fnOptions) => {
|
|
1884
|
+
const { data } = await mediaPostApiFilesPresigned({
|
|
1885
|
+
...options,
|
|
1886
|
+
...fnOptions,
|
|
1887
|
+
throwOnError: true
|
|
1888
|
+
});
|
|
1889
|
+
return data;
|
|
1890
|
+
}
|
|
1891
|
+
};
|
|
1892
|
+
return mutationOptions;
|
|
1893
|
+
};
|
|
1894
|
+
var mediaGetApiFilesQueryKey = (options) => createQueryKey("mediaGetApiFiles", options);
|
|
1895
|
+
var mediaGetApiFilesOptions = (options) => queryOptions({
|
|
1896
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1897
|
+
const { data } = await mediaGetApiFiles({
|
|
1898
|
+
...options,
|
|
1899
|
+
...queryKey[0],
|
|
1900
|
+
signal,
|
|
1901
|
+
throwOnError: true
|
|
1902
|
+
});
|
|
1903
|
+
return data;
|
|
1904
|
+
},
|
|
1905
|
+
queryKey: mediaGetApiFilesQueryKey(options)
|
|
1906
|
+
});
|
|
1907
|
+
var createInfiniteParams = (queryKey, page) => {
|
|
1908
|
+
const params = { ...queryKey[0] };
|
|
1909
|
+
if (page.body) {
|
|
1910
|
+
params.body = {
|
|
1911
|
+
...queryKey[0].body,
|
|
1912
|
+
...page.body
|
|
1913
|
+
};
|
|
1914
|
+
}
|
|
1915
|
+
if (page.headers) {
|
|
1916
|
+
params.headers = {
|
|
1917
|
+
...queryKey[0].headers,
|
|
1918
|
+
...page.headers
|
|
1919
|
+
};
|
|
1920
|
+
}
|
|
1921
|
+
if (page.path) {
|
|
1922
|
+
params.path = {
|
|
1923
|
+
...queryKey[0].path,
|
|
1924
|
+
...page.path
|
|
1925
|
+
};
|
|
1926
|
+
}
|
|
1927
|
+
if (page.query) {
|
|
1928
|
+
params.query = {
|
|
1929
|
+
...queryKey[0].query,
|
|
1930
|
+
...page.query
|
|
1931
|
+
};
|
|
1932
|
+
}
|
|
1933
|
+
return params;
|
|
1934
|
+
};
|
|
1935
|
+
var mediaGetApiFilesInfiniteQueryKey = (options) => createQueryKey("mediaGetApiFiles", options, true);
|
|
1936
|
+
var mediaGetApiFilesInfiniteOptions = (options) => infiniteQueryOptions(
|
|
1937
|
+
// @ts-ignore
|
|
1938
|
+
{
|
|
1939
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1940
|
+
const page = typeof pageParam === "object" ? pageParam : {
|
|
1941
|
+
query: {
|
|
1942
|
+
offset: pageParam
|
|
1943
|
+
}
|
|
1944
|
+
};
|
|
1945
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1946
|
+
const { data } = await mediaGetApiFiles({
|
|
1947
|
+
...options,
|
|
1948
|
+
...params,
|
|
1949
|
+
signal,
|
|
1950
|
+
throwOnError: true
|
|
1951
|
+
});
|
|
1952
|
+
return data;
|
|
1953
|
+
},
|
|
1954
|
+
queryKey: mediaGetApiFilesInfiniteQueryKey(options)
|
|
1955
|
+
}
|
|
1956
|
+
);
|
|
1957
|
+
var mediaPostApiFilesMutation = (options) => {
|
|
1958
|
+
const mutationOptions = {
|
|
1959
|
+
mutationFn: async (fnOptions) => {
|
|
1960
|
+
const { data } = await mediaPostApiFiles({
|
|
1961
|
+
...options,
|
|
1962
|
+
...fnOptions,
|
|
1963
|
+
throwOnError: true
|
|
1964
|
+
});
|
|
1965
|
+
return data;
|
|
1966
|
+
}
|
|
1967
|
+
};
|
|
1968
|
+
return mutationOptions;
|
|
1969
|
+
};
|
|
1970
|
+
var mediaPostApiFilesIdConfirmMutation = (options) => {
|
|
1971
|
+
const mutationOptions = {
|
|
1972
|
+
mutationFn: async (fnOptions) => {
|
|
1973
|
+
const { data } = await mediaPostApiFilesIdConfirm({
|
|
1974
|
+
...options,
|
|
1975
|
+
...fnOptions,
|
|
1976
|
+
throwOnError: true
|
|
1977
|
+
});
|
|
1978
|
+
return data;
|
|
1979
|
+
}
|
|
1980
|
+
};
|
|
1981
|
+
return mutationOptions;
|
|
1982
|
+
};
|
|
1983
|
+
var mediaDeleteApiFilesIdMutation = (options) => {
|
|
1984
|
+
const mutationOptions = {
|
|
1985
|
+
mutationFn: async (fnOptions) => {
|
|
1986
|
+
const { data } = await mediaDeleteApiFilesId({
|
|
1987
|
+
...options,
|
|
1988
|
+
...fnOptions,
|
|
1989
|
+
throwOnError: true
|
|
1990
|
+
});
|
|
1991
|
+
return data;
|
|
1992
|
+
}
|
|
1993
|
+
};
|
|
1994
|
+
return mutationOptions;
|
|
1995
|
+
};
|
|
1996
|
+
var mediaGetApiFilesIdQueryKey = (options) => createQueryKey("mediaGetApiFilesId", options);
|
|
1997
|
+
var mediaGetApiFilesIdOptions = (options) => queryOptions({
|
|
1998
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1999
|
+
const { data } = await mediaGetApiFilesId({
|
|
2000
|
+
...options,
|
|
2001
|
+
...queryKey[0],
|
|
2002
|
+
signal,
|
|
2003
|
+
throwOnError: true
|
|
2004
|
+
});
|
|
2005
|
+
return data;
|
|
2006
|
+
},
|
|
2007
|
+
queryKey: mediaGetApiFilesIdQueryKey(options)
|
|
2008
|
+
});
|
|
2009
|
+
var mediaGetApiSkinsQueryKey = (options) => createQueryKey("mediaGetApiSkins", options);
|
|
2010
|
+
var mediaGetApiSkinsOptions = (options) => queryOptions({
|
|
2011
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2012
|
+
const { data } = await mediaGetApiSkins({
|
|
2013
|
+
...options,
|
|
2014
|
+
...queryKey[0],
|
|
2015
|
+
signal,
|
|
2016
|
+
throwOnError: true
|
|
2017
|
+
});
|
|
2018
|
+
return data;
|
|
2019
|
+
},
|
|
2020
|
+
queryKey: mediaGetApiSkinsQueryKey(options)
|
|
2021
|
+
});
|
|
2022
|
+
var mediaGetApiSkinsInfiniteQueryKey = (options) => createQueryKey("mediaGetApiSkins", options, true);
|
|
2023
|
+
var mediaGetApiSkinsInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2024
|
+
// @ts-ignore
|
|
2025
|
+
{
|
|
2026
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2027
|
+
const page = typeof pageParam === "object" ? pageParam : {
|
|
2028
|
+
query: {
|
|
2029
|
+
cursor: pageParam
|
|
2030
|
+
}
|
|
2031
|
+
};
|
|
2032
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2033
|
+
const { data } = await mediaGetApiSkins({
|
|
2034
|
+
...options,
|
|
2035
|
+
...params,
|
|
2036
|
+
signal,
|
|
2037
|
+
throwOnError: true
|
|
2038
|
+
});
|
|
2039
|
+
return data;
|
|
2040
|
+
},
|
|
2041
|
+
queryKey: mediaGetApiSkinsInfiniteQueryKey(options)
|
|
2042
|
+
}
|
|
2043
|
+
);
|
|
2044
|
+
var mediaGetApiSkinsIdQueryKey = (options) => createQueryKey("mediaGetApiSkinsId", options);
|
|
2045
|
+
var mediaGetApiSkinsIdOptions = (options) => queryOptions({
|
|
2046
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2047
|
+
const { data } = await mediaGetApiSkinsId({
|
|
2048
|
+
...options,
|
|
2049
|
+
...queryKey[0],
|
|
2050
|
+
signal,
|
|
2051
|
+
throwOnError: true
|
|
2052
|
+
});
|
|
2053
|
+
return data;
|
|
2054
|
+
},
|
|
2055
|
+
queryKey: mediaGetApiSkinsIdQueryKey(options)
|
|
2056
|
+
});
|
|
2057
|
+
var mediaGetApiCollectionQueryKey = (options) => createQueryKey("mediaGetApiCollection", options);
|
|
2058
|
+
var mediaGetApiCollectionOptions = (options) => queryOptions({
|
|
2059
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2060
|
+
const { data } = await mediaGetApiCollection({
|
|
2061
|
+
...options,
|
|
2062
|
+
...queryKey[0],
|
|
2063
|
+
signal,
|
|
2064
|
+
throwOnError: true
|
|
2065
|
+
});
|
|
2066
|
+
return data;
|
|
2067
|
+
},
|
|
2068
|
+
queryKey: mediaGetApiCollectionQueryKey(options)
|
|
2069
|
+
});
|
|
2070
|
+
var mediaGetApiCollectionInfiniteQueryKey = (options) => createQueryKey("mediaGetApiCollection", options, true);
|
|
2071
|
+
var mediaGetApiCollectionInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2072
|
+
// @ts-ignore
|
|
2073
|
+
{
|
|
2074
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2075
|
+
const page = typeof pageParam === "object" ? pageParam : {
|
|
2076
|
+
query: {
|
|
2077
|
+
cursor: pageParam
|
|
2078
|
+
}
|
|
2079
|
+
};
|
|
2080
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2081
|
+
const { data } = await mediaGetApiCollection({
|
|
2082
|
+
...options,
|
|
2083
|
+
...params,
|
|
2084
|
+
signal,
|
|
2085
|
+
throwOnError: true
|
|
2086
|
+
});
|
|
2087
|
+
return data;
|
|
2088
|
+
},
|
|
2089
|
+
queryKey: mediaGetApiCollectionInfiniteQueryKey(options)
|
|
2090
|
+
}
|
|
2091
|
+
);
|
|
2092
|
+
var mediaPostApiCollectionMutation = (options) => {
|
|
2093
|
+
const mutationOptions = {
|
|
2094
|
+
mutationFn: async (fnOptions) => {
|
|
2095
|
+
const { data } = await mediaPostApiCollection({
|
|
2096
|
+
...options,
|
|
2097
|
+
...fnOptions,
|
|
2098
|
+
throwOnError: true
|
|
2099
|
+
});
|
|
2100
|
+
return data;
|
|
2101
|
+
}
|
|
2102
|
+
};
|
|
2103
|
+
return mutationOptions;
|
|
2104
|
+
};
|
|
2105
|
+
var mediaDeleteApiCollectionIdMutation = (options) => {
|
|
2106
|
+
const mutationOptions = {
|
|
2107
|
+
mutationFn: async (fnOptions) => {
|
|
2108
|
+
const { data } = await mediaDeleteApiCollectionId({
|
|
2109
|
+
...options,
|
|
2110
|
+
...fnOptions,
|
|
2111
|
+
throwOnError: true
|
|
2112
|
+
});
|
|
2113
|
+
return data;
|
|
2114
|
+
}
|
|
2115
|
+
};
|
|
2116
|
+
return mutationOptions;
|
|
2117
|
+
};
|
|
2118
|
+
var mediaPatchApiCollectionIdMutation = (options) => {
|
|
2119
|
+
const mutationOptions = {
|
|
2120
|
+
mutationFn: async (fnOptions) => {
|
|
2121
|
+
const { data } = await mediaPatchApiCollectionId({
|
|
2122
|
+
...options,
|
|
2123
|
+
...fnOptions,
|
|
2124
|
+
throwOnError: true
|
|
2125
|
+
});
|
|
2126
|
+
return data;
|
|
2127
|
+
}
|
|
2128
|
+
};
|
|
2129
|
+
return mutationOptions;
|
|
2130
|
+
};
|
|
2131
|
+
var mediaPostApiGenerateImageCategoryMutation = (options) => {
|
|
2132
|
+
const mutationOptions = {
|
|
2133
|
+
mutationFn: async (fnOptions) => {
|
|
2134
|
+
const { data } = await mediaPostApiGenerateImageCategory({
|
|
2135
|
+
...options,
|
|
2136
|
+
...fnOptions,
|
|
2137
|
+
throwOnError: true
|
|
2138
|
+
});
|
|
2139
|
+
return data;
|
|
2140
|
+
}
|
|
2141
|
+
};
|
|
2142
|
+
return mutationOptions;
|
|
2143
|
+
};
|
|
2144
|
+
var mediaPostApiGenerateVideoCategoryMutation = (options) => {
|
|
2145
|
+
const mutationOptions = {
|
|
2146
|
+
mutationFn: async (fnOptions) => {
|
|
2147
|
+
const { data } = await mediaPostApiGenerateVideoCategory({
|
|
2148
|
+
...options,
|
|
2149
|
+
...fnOptions,
|
|
2150
|
+
throwOnError: true
|
|
2151
|
+
});
|
|
2152
|
+
return data;
|
|
2153
|
+
}
|
|
2154
|
+
};
|
|
2155
|
+
return mutationOptions;
|
|
2156
|
+
};
|
|
2157
|
+
var platformGetHealthQueryKey = (options) => createQueryKey("platformGetHealth", options);
|
|
2158
|
+
var platformGetHealthOptions = (options) => queryOptions({
|
|
2159
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2160
|
+
const { data } = await platformGetHealth({
|
|
2161
|
+
...options,
|
|
2162
|
+
...queryKey[0],
|
|
2163
|
+
signal,
|
|
2164
|
+
throwOnError: true
|
|
2165
|
+
});
|
|
2166
|
+
return data;
|
|
2167
|
+
},
|
|
2168
|
+
queryKey: platformGetHealthQueryKey(options)
|
|
2169
|
+
});
|
|
2170
|
+
var activityGetHealthQueryKey = (options) => createQueryKey("activityGetHealth", options);
|
|
2171
|
+
var activityGetHealthOptions = (options) => queryOptions({
|
|
2172
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2173
|
+
const { data } = await activityGetHealth({
|
|
2174
|
+
...options,
|
|
2175
|
+
...queryKey[0],
|
|
2176
|
+
signal,
|
|
2177
|
+
throwOnError: true
|
|
2178
|
+
});
|
|
2179
|
+
return data;
|
|
2180
|
+
},
|
|
2181
|
+
queryKey: activityGetHealthQueryKey(options)
|
|
2182
|
+
});
|
|
2183
|
+
var activityGetApiActivitiesQueryKey = (options) => createQueryKey("activityGetApiActivities", options);
|
|
2184
|
+
var activityGetApiActivitiesOptions = (options) => queryOptions({
|
|
2185
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2186
|
+
const { data } = await activityGetApiActivities({
|
|
2187
|
+
...options,
|
|
2188
|
+
...queryKey[0],
|
|
2189
|
+
signal,
|
|
2190
|
+
throwOnError: true
|
|
2191
|
+
});
|
|
2192
|
+
return data;
|
|
2193
|
+
},
|
|
2194
|
+
queryKey: activityGetApiActivitiesQueryKey(options)
|
|
2195
|
+
});
|
|
2196
|
+
var activityGetApiActivitiesInfiniteQueryKey = (options) => createQueryKey("activityGetApiActivities", options, true);
|
|
2197
|
+
var activityGetApiActivitiesInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2198
|
+
// @ts-ignore
|
|
2199
|
+
{
|
|
2200
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2201
|
+
const page = typeof pageParam === "object" ? pageParam : {
|
|
2202
|
+
query: {
|
|
2203
|
+
cursor: pageParam
|
|
2204
|
+
}
|
|
2205
|
+
};
|
|
2206
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2207
|
+
const { data } = await activityGetApiActivities({
|
|
2208
|
+
...options,
|
|
2209
|
+
...params,
|
|
2210
|
+
signal,
|
|
2211
|
+
throwOnError: true
|
|
2212
|
+
});
|
|
2213
|
+
return data;
|
|
2214
|
+
},
|
|
2215
|
+
queryKey: activityGetApiActivitiesInfiniteQueryKey(options)
|
|
2216
|
+
}
|
|
2217
|
+
);
|
|
2218
|
+
var activityGetApiActivitiesIdQueryKey = (options) => createQueryKey("activityGetApiActivitiesId", options);
|
|
2219
|
+
var activityGetApiActivitiesIdOptions = (options) => queryOptions({
|
|
2220
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2221
|
+
const { data } = await activityGetApiActivitiesId({
|
|
2222
|
+
...options,
|
|
2223
|
+
...queryKey[0],
|
|
2224
|
+
signal,
|
|
2225
|
+
throwOnError: true
|
|
2226
|
+
});
|
|
2227
|
+
return data;
|
|
2228
|
+
},
|
|
2229
|
+
queryKey: activityGetApiActivitiesIdQueryKey(options)
|
|
2230
|
+
});
|
|
2231
|
+
var activityGetApiActivityInstancesQueryKey = (options) => createQueryKey("activityGetApiActivityInstances", options);
|
|
2232
|
+
var activityGetApiActivityInstancesOptions = (options) => queryOptions({
|
|
2233
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2234
|
+
const { data } = await activityGetApiActivityInstances({
|
|
2235
|
+
...options,
|
|
2236
|
+
...queryKey[0],
|
|
2237
|
+
signal,
|
|
2238
|
+
throwOnError: true
|
|
2239
|
+
});
|
|
2240
|
+
return data;
|
|
2241
|
+
},
|
|
2242
|
+
queryKey: activityGetApiActivityInstancesQueryKey(options)
|
|
2243
|
+
});
|
|
2244
|
+
var activityGetApiActivityInstancesInfiniteQueryKey = (options) => createQueryKey("activityGetApiActivityInstances", options, true);
|
|
2245
|
+
var activityGetApiActivityInstancesInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2246
|
+
// @ts-ignore
|
|
2247
|
+
{
|
|
2248
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2249
|
+
const page = typeof pageParam === "object" ? pageParam : {
|
|
2250
|
+
query: {
|
|
2251
|
+
cursor: pageParam
|
|
2252
|
+
}
|
|
2253
|
+
};
|
|
2254
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2255
|
+
const { data } = await activityGetApiActivityInstances({
|
|
2256
|
+
...options,
|
|
2257
|
+
...params,
|
|
2258
|
+
signal,
|
|
2259
|
+
throwOnError: true
|
|
2260
|
+
});
|
|
2261
|
+
return data;
|
|
2262
|
+
},
|
|
2263
|
+
queryKey: activityGetApiActivityInstancesInfiniteQueryKey(options)
|
|
2264
|
+
}
|
|
2265
|
+
);
|
|
2266
|
+
var activityPostApiActivityInstancesMutation = (options) => {
|
|
2267
|
+
const mutationOptions = {
|
|
2268
|
+
mutationFn: async (fnOptions) => {
|
|
2269
|
+
const { data } = await activityPostApiActivityInstances({
|
|
2270
|
+
...options,
|
|
2271
|
+
...fnOptions,
|
|
2272
|
+
throwOnError: true
|
|
2273
|
+
});
|
|
2274
|
+
return data;
|
|
2275
|
+
}
|
|
2276
|
+
};
|
|
2277
|
+
return mutationOptions;
|
|
2278
|
+
};
|
|
2279
|
+
var activityDeleteApiActivityInstancesIdMutation = (options) => {
|
|
2280
|
+
const mutationOptions = {
|
|
2281
|
+
mutationFn: async (fnOptions) => {
|
|
2282
|
+
const { data } = await activityDeleteApiActivityInstancesId({
|
|
2283
|
+
...options,
|
|
2284
|
+
...fnOptions,
|
|
2285
|
+
throwOnError: true
|
|
2286
|
+
});
|
|
2287
|
+
return data;
|
|
2288
|
+
}
|
|
2289
|
+
};
|
|
2290
|
+
return mutationOptions;
|
|
2291
|
+
};
|
|
2292
|
+
var activityGetApiActivityInstancesIdQueryKey = (options) => createQueryKey("activityGetApiActivityInstancesId", options);
|
|
2293
|
+
var activityGetApiActivityInstancesIdOptions = (options) => queryOptions({
|
|
2294
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2295
|
+
const { data } = await activityGetApiActivityInstancesId({
|
|
2296
|
+
...options,
|
|
2297
|
+
...queryKey[0],
|
|
2298
|
+
signal,
|
|
2299
|
+
throwOnError: true
|
|
2300
|
+
});
|
|
2301
|
+
return data;
|
|
2302
|
+
},
|
|
2303
|
+
queryKey: activityGetApiActivityInstancesIdQueryKey(options)
|
|
2304
|
+
});
|
|
2305
|
+
var activityPatchApiActivityInstancesIdMutation = (options) => {
|
|
2306
|
+
const mutationOptions = {
|
|
2307
|
+
mutationFn: async (fnOptions) => {
|
|
2308
|
+
const { data } = await activityPatchApiActivityInstancesId({
|
|
2309
|
+
...options,
|
|
2310
|
+
...fnOptions,
|
|
2311
|
+
throwOnError: true
|
|
2312
|
+
});
|
|
2313
|
+
return data;
|
|
2314
|
+
}
|
|
2315
|
+
};
|
|
2316
|
+
return mutationOptions;
|
|
2317
|
+
};
|
|
2318
|
+
var activityGetApiActivityInstancesInstanceIdMessagesQueryKey = (options) => createQueryKey("activityGetApiActivityInstancesInstanceIdMessages", options);
|
|
2319
|
+
var activityGetApiActivityInstancesInstanceIdMessagesOptions = (options) => queryOptions({
|
|
2320
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2321
|
+
const { data } = await activityGetApiActivityInstancesInstanceIdMessages({
|
|
2322
|
+
...options,
|
|
2323
|
+
...queryKey[0],
|
|
2324
|
+
signal,
|
|
2325
|
+
throwOnError: true
|
|
2326
|
+
});
|
|
2327
|
+
return data;
|
|
2328
|
+
},
|
|
2329
|
+
queryKey: activityGetApiActivityInstancesInstanceIdMessagesQueryKey(options)
|
|
2330
|
+
});
|
|
2331
|
+
var activityGetApiActivityInstancesInstanceIdMessagesInfiniteQueryKey = (options) => createQueryKey(
|
|
2332
|
+
"activityGetApiActivityInstancesInstanceIdMessages",
|
|
2333
|
+
options,
|
|
2334
|
+
true
|
|
2335
|
+
);
|
|
2336
|
+
var activityGetApiActivityInstancesInstanceIdMessagesInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2337
|
+
// @ts-ignore
|
|
2338
|
+
{
|
|
2339
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2340
|
+
const page = typeof pageParam === "object" ? pageParam : {
|
|
2341
|
+
query: {
|
|
2342
|
+
cursor: pageParam
|
|
2343
|
+
}
|
|
2344
|
+
};
|
|
2345
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2346
|
+
const { data } = await activityGetApiActivityInstancesInstanceIdMessages({
|
|
2347
|
+
...options,
|
|
2348
|
+
...params,
|
|
2349
|
+
signal,
|
|
2350
|
+
throwOnError: true
|
|
2351
|
+
});
|
|
2352
|
+
return data;
|
|
2353
|
+
},
|
|
2354
|
+
queryKey: activityGetApiActivityInstancesInstanceIdMessagesInfiniteQueryKey(
|
|
2355
|
+
options
|
|
2356
|
+
)
|
|
2357
|
+
}
|
|
2358
|
+
);
|
|
2359
|
+
var activityPostApiActivityInstancesInstanceIdMessagesMutation = (options) => {
|
|
2360
|
+
const mutationOptions = {
|
|
2361
|
+
mutationFn: async (fnOptions) => {
|
|
2362
|
+
const { data } = await activityPostApiActivityInstancesInstanceIdMessages(
|
|
2363
|
+
{
|
|
2364
|
+
...options,
|
|
2365
|
+
...fnOptions,
|
|
2366
|
+
throwOnError: true
|
|
2367
|
+
}
|
|
2368
|
+
);
|
|
2369
|
+
return data;
|
|
2370
|
+
}
|
|
2371
|
+
};
|
|
2372
|
+
return mutationOptions;
|
|
2373
|
+
};
|
|
2374
|
+
var activityDeleteApiActivityInstancesInstanceIdMessagesMessageIdMutation = (options) => {
|
|
2375
|
+
const mutationOptions = {
|
|
2376
|
+
mutationFn: async (fnOptions) => {
|
|
2377
|
+
const { data } = await activityDeleteApiActivityInstancesInstanceIdMessagesMessageId({
|
|
2378
|
+
...options,
|
|
2379
|
+
...fnOptions,
|
|
2380
|
+
throwOnError: true
|
|
2381
|
+
});
|
|
2382
|
+
return data;
|
|
2383
|
+
}
|
|
2384
|
+
};
|
|
2385
|
+
return mutationOptions;
|
|
2386
|
+
};
|
|
2387
|
+
var activityGetApiActivityInstancesInstanceIdMessagesMessageIdQueryKey = (options) => createQueryKey(
|
|
2388
|
+
"activityGetApiActivityInstancesInstanceIdMessagesMessageId",
|
|
2389
|
+
options
|
|
2390
|
+
);
|
|
2391
|
+
var activityGetApiActivityInstancesInstanceIdMessagesMessageIdOptions = (options) => queryOptions({
|
|
2392
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2393
|
+
const { data } = await activityGetApiActivityInstancesInstanceIdMessagesMessageId({
|
|
2394
|
+
...options,
|
|
2395
|
+
...queryKey[0],
|
|
2396
|
+
signal,
|
|
2397
|
+
throwOnError: true
|
|
2398
|
+
});
|
|
2399
|
+
return data;
|
|
2400
|
+
},
|
|
2401
|
+
queryKey: activityGetApiActivityInstancesInstanceIdMessagesMessageIdQueryKey(
|
|
2402
|
+
options
|
|
2403
|
+
)
|
|
2404
|
+
});
|
|
2405
|
+
var activityPatchApiActivityInstancesInstanceIdMessagesMessageIdMutation = (options) => {
|
|
2406
|
+
const mutationOptions = {
|
|
2407
|
+
mutationFn: async (fnOptions) => {
|
|
2408
|
+
const { data } = await activityPatchApiActivityInstancesInstanceIdMessagesMessageId({
|
|
2409
|
+
...options,
|
|
2410
|
+
...fnOptions,
|
|
2411
|
+
throwOnError: true
|
|
2412
|
+
});
|
|
2413
|
+
return data;
|
|
2414
|
+
}
|
|
2415
|
+
};
|
|
2416
|
+
return mutationOptions;
|
|
2417
|
+
};
|
|
2418
|
+
var activityPostApiActivityInstancesInstanceIdChatMutation = (options) => {
|
|
2419
|
+
const mutationOptions = {
|
|
2420
|
+
mutationFn: async (fnOptions) => {
|
|
2421
|
+
const { data } = await activityPostApiActivityInstancesInstanceIdChat({
|
|
2422
|
+
...options,
|
|
2423
|
+
...fnOptions,
|
|
2424
|
+
throwOnError: true
|
|
2425
|
+
});
|
|
2426
|
+
return data;
|
|
2427
|
+
}
|
|
2428
|
+
};
|
|
2429
|
+
return mutationOptions;
|
|
2430
|
+
};
|
|
2431
|
+
var activityGetApiPersonasQueryKey = (options) => createQueryKey("activityGetApiPersonas", options);
|
|
2432
|
+
var activityGetApiPersonasOptions = (options) => queryOptions({
|
|
2433
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2434
|
+
const { data } = await activityGetApiPersonas({
|
|
2435
|
+
...options,
|
|
2436
|
+
...queryKey[0],
|
|
2437
|
+
signal,
|
|
2438
|
+
throwOnError: true
|
|
2439
|
+
});
|
|
2440
|
+
return data;
|
|
2441
|
+
},
|
|
2442
|
+
queryKey: activityGetApiPersonasQueryKey(options)
|
|
2443
|
+
});
|
|
2444
|
+
var activityPostApiPersonasMutation = (options) => {
|
|
2445
|
+
const mutationOptions = {
|
|
2446
|
+
mutationFn: async (fnOptions) => {
|
|
2447
|
+
const { data } = await activityPostApiPersonas({
|
|
2448
|
+
...options,
|
|
2449
|
+
...fnOptions,
|
|
2450
|
+
throwOnError: true
|
|
2451
|
+
});
|
|
2452
|
+
return data;
|
|
2453
|
+
}
|
|
2454
|
+
};
|
|
2455
|
+
return mutationOptions;
|
|
2456
|
+
};
|
|
2457
|
+
var activityDeleteApiPersonasIdMutation = (options) => {
|
|
2458
|
+
const mutationOptions = {
|
|
2459
|
+
mutationFn: async (fnOptions) => {
|
|
2460
|
+
const { data } = await activityDeleteApiPersonasId({
|
|
2461
|
+
...options,
|
|
2462
|
+
...fnOptions,
|
|
2463
|
+
throwOnError: true
|
|
2464
|
+
});
|
|
2465
|
+
return data;
|
|
2466
|
+
}
|
|
2467
|
+
};
|
|
2468
|
+
return mutationOptions;
|
|
2469
|
+
};
|
|
2470
|
+
var activityGetApiPersonasIdQueryKey = (options) => createQueryKey("activityGetApiPersonasId", options);
|
|
2471
|
+
var activityGetApiPersonasIdOptions = (options) => queryOptions({
|
|
2472
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2473
|
+
const { data } = await activityGetApiPersonasId({
|
|
2474
|
+
...options,
|
|
2475
|
+
...queryKey[0],
|
|
2476
|
+
signal,
|
|
2477
|
+
throwOnError: true
|
|
2478
|
+
});
|
|
2479
|
+
return data;
|
|
2480
|
+
},
|
|
2481
|
+
queryKey: activityGetApiPersonasIdQueryKey(options)
|
|
2482
|
+
});
|
|
2483
|
+
var activityPatchApiPersonasIdMutation = (options) => {
|
|
2484
|
+
const mutationOptions = {
|
|
2485
|
+
mutationFn: async (fnOptions) => {
|
|
2486
|
+
const { data } = await activityPatchApiPersonasId({
|
|
2487
|
+
...options,
|
|
2488
|
+
...fnOptions,
|
|
2489
|
+
throwOnError: true
|
|
2490
|
+
});
|
|
2491
|
+
return data;
|
|
2492
|
+
}
|
|
2493
|
+
};
|
|
2494
|
+
return mutationOptions;
|
|
2495
|
+
};
|
|
2496
|
+
var activityPostApiPersonasIdDefaultMutation = (options) => {
|
|
2497
|
+
const mutationOptions = {
|
|
2498
|
+
mutationFn: async (fnOptions) => {
|
|
2499
|
+
const { data } = await activityPostApiPersonasIdDefault({
|
|
2500
|
+
...options,
|
|
2501
|
+
...fnOptions,
|
|
2502
|
+
throwOnError: true
|
|
2503
|
+
});
|
|
2504
|
+
return data;
|
|
2505
|
+
}
|
|
2506
|
+
};
|
|
2507
|
+
return mutationOptions;
|
|
2508
|
+
};
|
|
2509
|
+
var journeyGetHealthQueryKey = (options) => createQueryKey("journeyGetHealth", options);
|
|
2510
|
+
var journeyGetHealthOptions = (options) => queryOptions({
|
|
2511
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2512
|
+
const { data } = await journeyGetHealth({
|
|
2513
|
+
...options,
|
|
2514
|
+
...queryKey[0],
|
|
2515
|
+
signal,
|
|
2516
|
+
throwOnError: true
|
|
2517
|
+
});
|
|
2518
|
+
return data;
|
|
2519
|
+
},
|
|
2520
|
+
queryKey: journeyGetHealthQueryKey(options)
|
|
2521
|
+
});
|
|
2522
|
+
var journeyGetApiUserJourneysQueryKey = (options) => createQueryKey("journeyGetApiUserJourneys", options);
|
|
2523
|
+
var journeyGetApiUserJourneysOptions = (options) => queryOptions({
|
|
2524
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2525
|
+
const { data } = await journeyGetApiUserJourneys({
|
|
2526
|
+
...options,
|
|
2527
|
+
...queryKey[0],
|
|
2528
|
+
signal,
|
|
2529
|
+
throwOnError: true
|
|
2530
|
+
});
|
|
2531
|
+
return data;
|
|
2532
|
+
},
|
|
2533
|
+
queryKey: journeyGetApiUserJourneysQueryKey(options)
|
|
2534
|
+
});
|
|
2535
|
+
var journeyGetApiUserJourneysInfiniteQueryKey = (options) => createQueryKey("journeyGetApiUserJourneys", options, true);
|
|
2536
|
+
var journeyGetApiUserJourneysInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2537
|
+
// @ts-ignore
|
|
2538
|
+
{
|
|
2539
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2540
|
+
const page = typeof pageParam === "object" ? pageParam : {
|
|
2541
|
+
query: {
|
|
2542
|
+
cursor: pageParam
|
|
2543
|
+
}
|
|
2544
|
+
};
|
|
2545
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2546
|
+
const { data } = await journeyGetApiUserJourneys({
|
|
2547
|
+
...options,
|
|
2548
|
+
...params,
|
|
2549
|
+
signal,
|
|
2550
|
+
throwOnError: true
|
|
2551
|
+
});
|
|
2552
|
+
return data;
|
|
2553
|
+
},
|
|
2554
|
+
queryKey: journeyGetApiUserJourneysInfiniteQueryKey(options)
|
|
2555
|
+
}
|
|
2556
|
+
);
|
|
2557
|
+
var journeyGetApiUserJourneysIdQueryKey = (options) => createQueryKey("journeyGetApiUserJourneysId", options);
|
|
2558
|
+
var journeyGetApiUserJourneysIdOptions = (options) => queryOptions({
|
|
2559
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2560
|
+
const { data } = await journeyGetApiUserJourneysId({
|
|
2561
|
+
...options,
|
|
2562
|
+
...queryKey[0],
|
|
2563
|
+
signal,
|
|
2564
|
+
throwOnError: true
|
|
2565
|
+
});
|
|
2566
|
+
return data;
|
|
2567
|
+
},
|
|
2568
|
+
queryKey: journeyGetApiUserJourneysIdQueryKey(options)
|
|
2569
|
+
});
|
|
2570
|
+
var journeyPostApiUserJourneysIdStartMutation = (options) => {
|
|
2571
|
+
const mutationOptions = {
|
|
2572
|
+
mutationFn: async (fnOptions) => {
|
|
2573
|
+
const { data } = await journeyPostApiUserJourneysIdStart({
|
|
2574
|
+
...options,
|
|
2575
|
+
...fnOptions,
|
|
2576
|
+
throwOnError: true
|
|
2577
|
+
});
|
|
2578
|
+
return data;
|
|
2579
|
+
}
|
|
2580
|
+
};
|
|
2581
|
+
return mutationOptions;
|
|
2582
|
+
};
|
|
2583
|
+
var journeyGetApiUserMeJourneysQueryKey = (options) => createQueryKey("journeyGetApiUserMeJourneys", options);
|
|
2584
|
+
var journeyGetApiUserMeJourneysOptions = (options) => queryOptions({
|
|
2585
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2586
|
+
const { data } = await journeyGetApiUserMeJourneys({
|
|
2587
|
+
...options,
|
|
2588
|
+
...queryKey[0],
|
|
2589
|
+
signal,
|
|
2590
|
+
throwOnError: true
|
|
2591
|
+
});
|
|
2592
|
+
return data;
|
|
2593
|
+
},
|
|
2594
|
+
queryKey: journeyGetApiUserMeJourneysQueryKey(options)
|
|
2595
|
+
});
|
|
2596
|
+
var journeyGetApiUserMeJourneysInfiniteQueryKey = (options) => createQueryKey("journeyGetApiUserMeJourneys", options, true);
|
|
2597
|
+
var journeyGetApiUserMeJourneysInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2598
|
+
// @ts-ignore
|
|
2599
|
+
{
|
|
2600
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2601
|
+
const page = typeof pageParam === "object" ? pageParam : {
|
|
2602
|
+
query: {
|
|
2603
|
+
cursor: pageParam
|
|
2604
|
+
}
|
|
2605
|
+
};
|
|
2606
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2607
|
+
const { data } = await journeyGetApiUserMeJourneys({
|
|
2608
|
+
...options,
|
|
2609
|
+
...params,
|
|
2610
|
+
signal,
|
|
2611
|
+
throwOnError: true
|
|
2612
|
+
});
|
|
2613
|
+
return data;
|
|
2614
|
+
},
|
|
2615
|
+
queryKey: journeyGetApiUserMeJourneysInfiniteQueryKey(options)
|
|
2616
|
+
}
|
|
2617
|
+
);
|
|
2618
|
+
var journeyGetApiUserMeJourneysInstanceIdQueryKey = (options) => createQueryKey("journeyGetApiUserMeJourneysInstanceId", options);
|
|
2619
|
+
var journeyGetApiUserMeJourneysInstanceIdOptions = (options) => queryOptions({
|
|
2620
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2621
|
+
const { data } = await journeyGetApiUserMeJourneysInstanceId({
|
|
2622
|
+
...options,
|
|
2623
|
+
...queryKey[0],
|
|
2624
|
+
signal,
|
|
2625
|
+
throwOnError: true
|
|
2626
|
+
});
|
|
2627
|
+
return data;
|
|
2628
|
+
},
|
|
2629
|
+
queryKey: journeyGetApiUserMeJourneysInstanceIdQueryKey(options)
|
|
2630
|
+
});
|
|
2631
|
+
var journeyPostApiUserMeJourneysInstanceIdCompleteOnboardingMutation = (options) => {
|
|
2632
|
+
const mutationOptions = {
|
|
2633
|
+
mutationFn: async (fnOptions) => {
|
|
2634
|
+
const { data } = await journeyPostApiUserMeJourneysInstanceIdCompleteOnboarding({
|
|
2635
|
+
...options,
|
|
2636
|
+
...fnOptions,
|
|
2637
|
+
throwOnError: true
|
|
2638
|
+
});
|
|
2639
|
+
return data;
|
|
2640
|
+
}
|
|
2641
|
+
};
|
|
2642
|
+
return mutationOptions;
|
|
2643
|
+
};
|
|
2644
|
+
var journeyPostApiUserMeJourneysInstanceIdActivateMutation = (options) => {
|
|
2645
|
+
const mutationOptions = {
|
|
2646
|
+
mutationFn: async (fnOptions) => {
|
|
2647
|
+
const { data } = await journeyPostApiUserMeJourneysInstanceIdActivate({
|
|
2648
|
+
...options,
|
|
2649
|
+
...fnOptions,
|
|
2650
|
+
throwOnError: true
|
|
2651
|
+
});
|
|
2652
|
+
return data;
|
|
2653
|
+
}
|
|
2654
|
+
};
|
|
2655
|
+
return mutationOptions;
|
|
2656
|
+
};
|
|
2657
|
+
var journeyPostApiUserMeJourneysInstanceIdRedoCharacterizationMutation = (options) => {
|
|
2658
|
+
const mutationOptions = {
|
|
2659
|
+
mutationFn: async (fnOptions) => {
|
|
2660
|
+
const { data } = await journeyPostApiUserMeJourneysInstanceIdRedoCharacterization({
|
|
2661
|
+
...options,
|
|
2662
|
+
...fnOptions,
|
|
2663
|
+
throwOnError: true
|
|
2664
|
+
});
|
|
2665
|
+
return data;
|
|
2666
|
+
}
|
|
2667
|
+
};
|
|
2668
|
+
return mutationOptions;
|
|
2669
|
+
};
|
|
2670
|
+
var journeyPostApiUserMeJourneysInstanceIdAbandonMutation = (options) => {
|
|
2671
|
+
const mutationOptions = {
|
|
2672
|
+
mutationFn: async (fnOptions) => {
|
|
2673
|
+
const { data } = await journeyPostApiUserMeJourneysInstanceIdAbandon({
|
|
2674
|
+
...options,
|
|
2675
|
+
...fnOptions,
|
|
2676
|
+
throwOnError: true
|
|
2677
|
+
});
|
|
2678
|
+
return data;
|
|
2679
|
+
}
|
|
2680
|
+
};
|
|
2681
|
+
return mutationOptions;
|
|
2682
|
+
};
|
|
2683
|
+
var journeyGetApiUserMeTodayEventsQueryKey = (options) => createQueryKey("journeyGetApiUserMeTodayEvents", options);
|
|
2684
|
+
var journeyGetApiUserMeTodayEventsOptions = (options) => queryOptions({
|
|
2685
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2686
|
+
const { data } = await journeyGetApiUserMeTodayEvents({
|
|
2687
|
+
...options,
|
|
2688
|
+
...queryKey[0],
|
|
2689
|
+
signal,
|
|
2690
|
+
throwOnError: true
|
|
2691
|
+
});
|
|
2692
|
+
return data;
|
|
2693
|
+
},
|
|
2694
|
+
queryKey: journeyGetApiUserMeTodayEventsQueryKey(options)
|
|
2695
|
+
});
|
|
2696
|
+
var journeyGetApiUserMeJourneysInstanceIdEventsQueryKey = (options) => createQueryKey("journeyGetApiUserMeJourneysInstanceIdEvents", options);
|
|
2697
|
+
var journeyGetApiUserMeJourneysInstanceIdEventsOptions = (options) => queryOptions({
|
|
2698
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2699
|
+
const { data } = await journeyGetApiUserMeJourneysInstanceIdEvents({
|
|
2700
|
+
...options,
|
|
2701
|
+
...queryKey[0],
|
|
2702
|
+
signal,
|
|
2703
|
+
throwOnError: true
|
|
2704
|
+
});
|
|
2705
|
+
return data;
|
|
2706
|
+
},
|
|
2707
|
+
queryKey: journeyGetApiUserMeJourneysInstanceIdEventsQueryKey(options)
|
|
2708
|
+
});
|
|
2709
|
+
var journeyGetApiUserMeJourneysInstanceIdEventsInfiniteQueryKey = (options) => createQueryKey("journeyGetApiUserMeJourneysInstanceIdEvents", options, true);
|
|
2710
|
+
var journeyGetApiUserMeJourneysInstanceIdEventsInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2711
|
+
// @ts-ignore
|
|
2712
|
+
{
|
|
2713
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2714
|
+
const page = typeof pageParam === "object" ? pageParam : {
|
|
2715
|
+
query: {
|
|
2716
|
+
cursor: pageParam
|
|
2717
|
+
}
|
|
2718
|
+
};
|
|
2719
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2720
|
+
const { data } = await journeyGetApiUserMeJourneysInstanceIdEvents({
|
|
2721
|
+
...options,
|
|
2722
|
+
...params,
|
|
2723
|
+
signal,
|
|
2724
|
+
throwOnError: true
|
|
2725
|
+
});
|
|
2726
|
+
return data;
|
|
2727
|
+
},
|
|
2728
|
+
queryKey: journeyGetApiUserMeJourneysInstanceIdEventsInfiniteQueryKey(options)
|
|
2729
|
+
}
|
|
2730
|
+
);
|
|
2731
|
+
var journeyGetMyEventInstanceQueryKey = (options) => createQueryKey("journeyGetMyEventInstance", options);
|
|
2732
|
+
var journeyGetMyEventInstanceOptions = (options) => queryOptions({
|
|
2733
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2734
|
+
const { data } = await journeyGetMyEventInstance({
|
|
2735
|
+
...options,
|
|
2736
|
+
...queryKey[0],
|
|
2737
|
+
signal,
|
|
2738
|
+
throwOnError: true
|
|
2739
|
+
});
|
|
2740
|
+
return data;
|
|
2741
|
+
},
|
|
2742
|
+
queryKey: journeyGetMyEventInstanceQueryKey(options)
|
|
2743
|
+
});
|
|
2744
|
+
var journeyStartEventInstanceMutation = (options) => {
|
|
2745
|
+
const mutationOptions = {
|
|
2746
|
+
mutationFn: async (fnOptions) => {
|
|
2747
|
+
const { data } = await journeyStartEventInstance({
|
|
2748
|
+
...options,
|
|
2749
|
+
...fnOptions,
|
|
2750
|
+
throwOnError: true
|
|
2751
|
+
});
|
|
2752
|
+
return data;
|
|
2753
|
+
}
|
|
2754
|
+
};
|
|
2755
|
+
return mutationOptions;
|
|
2756
|
+
};
|
|
2757
|
+
var journeyPostApiUserMeJourneysInstanceIdEventsStartMutation = (options) => {
|
|
2758
|
+
const mutationOptions = {
|
|
2759
|
+
mutationFn: async (fnOptions) => {
|
|
2760
|
+
const { data } = await journeyPostApiUserMeJourneysInstanceIdEventsStart({
|
|
2761
|
+
...options,
|
|
2762
|
+
...fnOptions,
|
|
2763
|
+
throwOnError: true
|
|
2764
|
+
});
|
|
2765
|
+
return data;
|
|
2766
|
+
}
|
|
2767
|
+
};
|
|
2768
|
+
return mutationOptions;
|
|
2769
|
+
};
|
|
2770
|
+
var journeyCompleteEventInstanceMutation = (options) => {
|
|
2771
|
+
const mutationOptions = {
|
|
2772
|
+
mutationFn: async (fnOptions) => {
|
|
2773
|
+
const { data } = await journeyCompleteEventInstance({
|
|
2774
|
+
...options,
|
|
2775
|
+
...fnOptions,
|
|
2776
|
+
throwOnError: true
|
|
2777
|
+
});
|
|
2778
|
+
return data;
|
|
2779
|
+
}
|
|
2780
|
+
};
|
|
2781
|
+
return mutationOptions;
|
|
2782
|
+
};
|
|
2783
|
+
var journeySkipEventInstanceMutation = (options) => {
|
|
2784
|
+
const mutationOptions = {
|
|
2785
|
+
mutationFn: async (fnOptions) => {
|
|
2786
|
+
const { data } = await journeySkipEventInstance({
|
|
2787
|
+
...options,
|
|
2788
|
+
...fnOptions,
|
|
2789
|
+
throwOnError: true
|
|
2790
|
+
});
|
|
2791
|
+
return data;
|
|
2792
|
+
}
|
|
2793
|
+
};
|
|
2794
|
+
return mutationOptions;
|
|
2795
|
+
};
|
|
2796
|
+
var journeyMarkEventReadMutation = (options) => {
|
|
2797
|
+
const mutationOptions = {
|
|
2798
|
+
mutationFn: async (fnOptions) => {
|
|
2799
|
+
const { data } = await journeyMarkEventRead({
|
|
2800
|
+
...options,
|
|
2801
|
+
...fnOptions,
|
|
2802
|
+
throwOnError: true
|
|
2803
|
+
});
|
|
2804
|
+
return data;
|
|
2805
|
+
}
|
|
2806
|
+
};
|
|
2807
|
+
return mutationOptions;
|
|
2808
|
+
};
|
|
2809
|
+
var gamificationGetHealthQueryKey = (options) => createQueryKey("gamificationGetHealth", options);
|
|
2810
|
+
var gamificationGetHealthOptions = (options) => queryOptions({
|
|
2811
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2812
|
+
const { data } = await gamificationGetHealth({
|
|
2813
|
+
...options,
|
|
2814
|
+
...queryKey[0],
|
|
2815
|
+
signal,
|
|
2816
|
+
throwOnError: true
|
|
2817
|
+
});
|
|
2818
|
+
return data;
|
|
2819
|
+
},
|
|
2820
|
+
queryKey: gamificationGetHealthQueryKey(options)
|
|
2821
|
+
});
|
|
2822
|
+
var gamificationGetApiUserMeBadgesQueryKey = (options) => createQueryKey("gamificationGetApiUserMeBadges", options);
|
|
2823
|
+
var gamificationGetApiUserMeBadgesOptions = (options) => queryOptions({
|
|
2824
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2825
|
+
const { data } = await gamificationGetApiUserMeBadges({
|
|
2826
|
+
...options,
|
|
2827
|
+
...queryKey[0],
|
|
2828
|
+
signal,
|
|
2829
|
+
throwOnError: true
|
|
2830
|
+
});
|
|
2831
|
+
return data;
|
|
2832
|
+
},
|
|
2833
|
+
queryKey: gamificationGetApiUserMeBadgesQueryKey(options)
|
|
2834
|
+
});
|
|
2835
|
+
var gamificationGetApiUserMeAchievementsQueryKey = (options) => createQueryKey("gamificationGetApiUserMeAchievements", options);
|
|
2836
|
+
var gamificationGetApiUserMeAchievementsOptions = (options) => queryOptions({
|
|
2837
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2838
|
+
const { data } = await gamificationGetApiUserMeAchievements({
|
|
2839
|
+
...options,
|
|
2840
|
+
...queryKey[0],
|
|
2841
|
+
signal,
|
|
2842
|
+
throwOnError: true
|
|
2843
|
+
});
|
|
2844
|
+
return data;
|
|
2845
|
+
},
|
|
2846
|
+
queryKey: gamificationGetApiUserMeAchievementsQueryKey(options)
|
|
2847
|
+
});
|
|
2848
|
+
var gamificationGetApiUserMeXpQueryKey = (options) => createQueryKey("gamificationGetApiUserMeXp", options);
|
|
2849
|
+
var gamificationGetApiUserMeXpOptions = (options) => queryOptions({
|
|
2850
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2851
|
+
const { data } = await gamificationGetApiUserMeXp({
|
|
2852
|
+
...options,
|
|
2853
|
+
...queryKey[0],
|
|
2854
|
+
signal,
|
|
2855
|
+
throwOnError: true
|
|
2856
|
+
});
|
|
2857
|
+
return data;
|
|
2858
|
+
},
|
|
2859
|
+
queryKey: gamificationGetApiUserMeXpQueryKey(options)
|
|
2860
|
+
});
|
|
2861
|
+
var gamificationGetApiUserMeLevelsQueryKey = (options) => createQueryKey("gamificationGetApiUserMeLevels", options);
|
|
2862
|
+
var gamificationGetApiUserMeLevelsOptions = (options) => queryOptions({
|
|
2863
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2864
|
+
const { data } = await gamificationGetApiUserMeLevels({
|
|
2865
|
+
...options,
|
|
2866
|
+
...queryKey[0],
|
|
2867
|
+
signal,
|
|
2868
|
+
throwOnError: true
|
|
2869
|
+
});
|
|
2870
|
+
return data;
|
|
2871
|
+
},
|
|
2872
|
+
queryKey: gamificationGetApiUserMeLevelsQueryKey(options)
|
|
2873
|
+
});
|
|
2874
|
+
var gamificationGetApiUserMeRewardsQueryKey = (options) => createQueryKey("gamificationGetApiUserMeRewards", options);
|
|
2875
|
+
var gamificationGetApiUserMeRewardsOptions = (options) => queryOptions({
|
|
2876
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2877
|
+
const { data } = await gamificationGetApiUserMeRewards({
|
|
2878
|
+
...options,
|
|
2879
|
+
...queryKey[0],
|
|
2880
|
+
signal,
|
|
2881
|
+
throwOnError: true
|
|
2882
|
+
});
|
|
2883
|
+
return data;
|
|
2884
|
+
},
|
|
2885
|
+
queryKey: gamificationGetApiUserMeRewardsQueryKey(options)
|
|
2886
|
+
});
|
|
2887
|
+
var formGetHealthQueryKey = (options) => createQueryKey("formGetHealth", options);
|
|
2888
|
+
var formGetHealthOptions = (options) => queryOptions({
|
|
2889
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2890
|
+
const { data } = await formGetHealth({
|
|
2891
|
+
...options,
|
|
2892
|
+
...queryKey[0],
|
|
2893
|
+
signal,
|
|
2894
|
+
throwOnError: true
|
|
2895
|
+
});
|
|
2896
|
+
return data;
|
|
2897
|
+
},
|
|
2898
|
+
queryKey: formGetHealthQueryKey(options)
|
|
2899
|
+
});
|
|
2900
|
+
var formGetApiFormsKeyOrIdQueryKey = (options) => createQueryKey("formGetApiFormsKeyOrId", options);
|
|
2901
|
+
var formGetApiFormsKeyOrIdOptions = (options) => queryOptions({
|
|
2902
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2903
|
+
const { data } = await formGetApiFormsKeyOrId({
|
|
2904
|
+
...options,
|
|
2905
|
+
...queryKey[0],
|
|
2906
|
+
signal,
|
|
2907
|
+
throwOnError: true
|
|
2908
|
+
});
|
|
2909
|
+
return data;
|
|
2910
|
+
},
|
|
2911
|
+
queryKey: formGetApiFormsKeyOrIdQueryKey(options)
|
|
2912
|
+
});
|
|
2913
|
+
var formPostApiFormsKeySubmitMutation = (options) => {
|
|
2914
|
+
const mutationOptions = {
|
|
2915
|
+
mutationFn: async (fnOptions) => {
|
|
2916
|
+
const { data } = await formPostApiFormsKeySubmit({
|
|
2917
|
+
...options,
|
|
2918
|
+
...fnOptions,
|
|
2919
|
+
throwOnError: true
|
|
2920
|
+
});
|
|
2921
|
+
return data;
|
|
2922
|
+
}
|
|
2923
|
+
};
|
|
2924
|
+
return mutationOptions;
|
|
2925
|
+
};
|
|
2926
|
+
var formPutApiFormsKeyDraftMutation = (options) => {
|
|
2927
|
+
const mutationOptions = {
|
|
2928
|
+
mutationFn: async (fnOptions) => {
|
|
2929
|
+
const { data } = await formPutApiFormsKeyDraft({
|
|
2930
|
+
...options,
|
|
2931
|
+
...fnOptions,
|
|
2932
|
+
throwOnError: true
|
|
2933
|
+
});
|
|
2934
|
+
return data;
|
|
2935
|
+
}
|
|
2936
|
+
};
|
|
2937
|
+
return mutationOptions;
|
|
2938
|
+
};
|
|
2939
|
+
var formGetApiFormsKeySubmissionQueryKey = (options) => createQueryKey("formGetApiFormsKeySubmission", options);
|
|
2940
|
+
var formGetApiFormsKeySubmissionOptions = (options) => queryOptions({
|
|
2941
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2942
|
+
const { data } = await formGetApiFormsKeySubmission({
|
|
2943
|
+
...options,
|
|
2944
|
+
...queryKey[0],
|
|
2945
|
+
signal,
|
|
2946
|
+
throwOnError: true
|
|
2947
|
+
});
|
|
2948
|
+
return data;
|
|
2949
|
+
},
|
|
2950
|
+
queryKey: formGetApiFormsKeySubmissionQueryKey(options)
|
|
2951
|
+
});
|
|
2952
|
+
var avatarGetHealthQueryKey = (options) => createQueryKey("avatarGetHealth", options);
|
|
2953
|
+
var avatarGetHealthOptions = (options) => queryOptions({
|
|
2954
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2955
|
+
const { data } = await avatarGetHealth({
|
|
2956
|
+
...options,
|
|
2957
|
+
...queryKey[0],
|
|
2958
|
+
signal,
|
|
2959
|
+
throwOnError: true
|
|
2960
|
+
});
|
|
2961
|
+
return data;
|
|
2962
|
+
},
|
|
2963
|
+
queryKey: avatarGetHealthQueryKey(options)
|
|
2964
|
+
});
|
|
2965
|
+
var avatarPostApiSessionsMutation = (options) => {
|
|
2966
|
+
const mutationOptions = {
|
|
2967
|
+
mutationFn: async (fnOptions) => {
|
|
2968
|
+
const { data } = await avatarPostApiSessions({
|
|
2969
|
+
...options,
|
|
2970
|
+
...fnOptions,
|
|
2971
|
+
throwOnError: true
|
|
2972
|
+
});
|
|
2973
|
+
return data;
|
|
2974
|
+
}
|
|
2975
|
+
};
|
|
2976
|
+
return mutationOptions;
|
|
2977
|
+
};
|
|
2978
|
+
var avatarDeleteApiSessionsIdMutation = (options) => {
|
|
2979
|
+
const mutationOptions = {
|
|
2980
|
+
mutationFn: async (fnOptions) => {
|
|
2981
|
+
const { data } = await avatarDeleteApiSessionsId({
|
|
2982
|
+
...options,
|
|
2983
|
+
...fnOptions,
|
|
2984
|
+
throwOnError: true
|
|
2985
|
+
});
|
|
2986
|
+
return data;
|
|
2987
|
+
}
|
|
2988
|
+
};
|
|
2989
|
+
return mutationOptions;
|
|
2990
|
+
};
|
|
2991
|
+
var avatarGetApiSessionsIdQueryKey = (options) => createQueryKey("avatarGetApiSessionsId", options);
|
|
2992
|
+
var avatarGetApiSessionsIdOptions = (options) => queryOptions({
|
|
2993
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2994
|
+
const { data } = await avatarGetApiSessionsId({
|
|
2995
|
+
...options,
|
|
2996
|
+
...queryKey[0],
|
|
2997
|
+
signal,
|
|
2998
|
+
throwOnError: true
|
|
2999
|
+
});
|
|
3000
|
+
return data;
|
|
3001
|
+
},
|
|
3002
|
+
queryKey: avatarGetApiSessionsIdQueryKey(options)
|
|
3003
|
+
});
|
|
3004
|
+
var avatarPostApiSessionsIdTokenMutation = (options) => {
|
|
3005
|
+
const mutationOptions = {
|
|
3006
|
+
mutationFn: async (fnOptions) => {
|
|
3007
|
+
const { data } = await avatarPostApiSessionsIdToken({
|
|
3008
|
+
...options,
|
|
3009
|
+
...fnOptions,
|
|
3010
|
+
throwOnError: true
|
|
3011
|
+
});
|
|
3012
|
+
return data;
|
|
3013
|
+
}
|
|
3014
|
+
};
|
|
3015
|
+
return mutationOptions;
|
|
3016
|
+
};
|
|
3017
|
+
var avatarPostApiGenerateMutation = (options) => {
|
|
3018
|
+
const mutationOptions = {
|
|
3019
|
+
mutationFn: async (fnOptions) => {
|
|
3020
|
+
const { data } = await avatarPostApiGenerate({
|
|
3021
|
+
...options,
|
|
3022
|
+
...fnOptions,
|
|
3023
|
+
throwOnError: true
|
|
3024
|
+
});
|
|
3025
|
+
return data;
|
|
3026
|
+
}
|
|
3027
|
+
};
|
|
3028
|
+
return mutationOptions;
|
|
3029
|
+
};
|
|
3030
|
+
|
|
3031
|
+
// node_modules/.pnpm/@spikelabsinc+user-api-client@0.0.76_react@19.2.4/node_modules/@spikelabsinc/user-api-client/src/client/query-helpers.gen.ts
|
|
3032
|
+
var QueryKeyIds = {
|
|
3033
|
+
activity: {
|
|
3034
|
+
activityGetApiActivities: "activityGetApiActivities",
|
|
3035
|
+
activityGetApiActivitiesId: "activityGetApiActivitiesId",
|
|
3036
|
+
activityGetApiActivityInstances: "activityGetApiActivityInstances",
|
|
3037
|
+
activityGetApiActivityInstancesId: "activityGetApiActivityInstancesId",
|
|
3038
|
+
activityGetApiActivityInstancesInstanceIdMessages: "activityGetApiActivityInstancesInstanceIdMessages",
|
|
3039
|
+
activityGetApiPersonas: "activityGetApiPersonas",
|
|
3040
|
+
activityGetApiPersonasId: "activityGetApiPersonasId",
|
|
3041
|
+
activityGetHealth: "activityGetHealth"
|
|
3042
|
+
},
|
|
3043
|
+
avatar: {
|
|
3044
|
+
avatarGetApiSessionsId: "avatarGetApiSessionsId",
|
|
3045
|
+
avatarGetHealth: "avatarGetHealth"
|
|
3046
|
+
},
|
|
3047
|
+
chat: {
|
|
3048
|
+
chatGetHealth: "chatGetHealth"
|
|
3049
|
+
},
|
|
3050
|
+
content: {
|
|
3051
|
+
contentGetApiMemoriesScratchpad: "contentGetApiMemoriesScratchpad",
|
|
3052
|
+
contentGetHealth: "contentGetHealth"
|
|
3053
|
+
},
|
|
3054
|
+
form: {
|
|
3055
|
+
formGetApiFormsKeyOrId: "formGetApiFormsKeyOrId",
|
|
3056
|
+
formGetApiFormsKeySubmission: "formGetApiFormsKeySubmission",
|
|
3057
|
+
formGetHealth: "formGetHealth"
|
|
3058
|
+
},
|
|
3059
|
+
gamification: {
|
|
3060
|
+
gamificationGetApiUserMeAchievements: "gamificationGetApiUserMeAchievements",
|
|
3061
|
+
gamificationGetApiUserMeBadges: "gamificationGetApiUserMeBadges",
|
|
3062
|
+
gamificationGetApiUserMeLevels: "gamificationGetApiUserMeLevels",
|
|
3063
|
+
gamificationGetApiUserMeRewards: "gamificationGetApiUserMeRewards",
|
|
3064
|
+
gamificationGetApiUserMeXp: "gamificationGetApiUserMeXp",
|
|
3065
|
+
gamificationGetHealth: "gamificationGetHealth"
|
|
3066
|
+
},
|
|
3067
|
+
journey: {
|
|
3068
|
+
journeyGetApiUserJourneys: "journeyGetApiUserJourneys",
|
|
3069
|
+
journeyGetApiUserJourneysId: "journeyGetApiUserJourneysId",
|
|
3070
|
+
journeyGetApiUserMeJourneys: "journeyGetApiUserMeJourneys",
|
|
3071
|
+
journeyGetApiUserMeJourneysInstanceId: "journeyGetApiUserMeJourneysInstanceId",
|
|
3072
|
+
journeyGetApiUserMeJourneysInstanceIdEvents: "journeyGetApiUserMeJourneysInstanceIdEvents",
|
|
3073
|
+
journeyGetApiUserMeTodayEvents: "journeyGetApiUserMeTodayEvents",
|
|
3074
|
+
journeyGetHealth: "journeyGetHealth",
|
|
3075
|
+
journeyGetMyEventInstance: "journeyGetMyEventInstance"
|
|
3076
|
+
},
|
|
3077
|
+
media: {
|
|
3078
|
+
mediaGetApiCollection: "mediaGetApiCollection",
|
|
3079
|
+
mediaGetApiFiles: "mediaGetApiFiles",
|
|
3080
|
+
mediaGetApiFilesId: "mediaGetApiFilesId",
|
|
3081
|
+
mediaGetApiSkins: "mediaGetApiSkins",
|
|
3082
|
+
mediaGetApiSkinsId: "mediaGetApiSkinsId",
|
|
3083
|
+
mediaGetHealth: "mediaGetHealth"
|
|
3084
|
+
},
|
|
3085
|
+
platform: {
|
|
3086
|
+
platformGetHealth: "platformGetHealth"
|
|
3087
|
+
},
|
|
3088
|
+
tenant: {
|
|
3089
|
+
tenantGetHealth: "tenantGetHealth"
|
|
3090
|
+
}
|
|
3091
|
+
};
|
|
3092
|
+
function matchQueryKeyId(query, id) {
|
|
3093
|
+
const key = query.queryKey[0];
|
|
3094
|
+
return typeof key === "object" && key !== null && "_id" in key && key._id === id;
|
|
3095
|
+
}
|
|
3096
|
+
function invalidateByQueryKeyId(queryClient, id) {
|
|
3097
|
+
return queryClient.invalidateQueries({
|
|
3098
|
+
predicate: (query) => matchQueryKeyId(query, id)
|
|
3099
|
+
});
|
|
3100
|
+
}
|
|
3101
|
+
function invalidateServiceQueries(queryClient, service) {
|
|
3102
|
+
const serviceIds = Object.values(QueryKeyIds[service]);
|
|
3103
|
+
return queryClient.invalidateQueries({
|
|
3104
|
+
predicate: (query) => serviceIds.some((id) => matchQueryKeyId(query, id))
|
|
3105
|
+
});
|
|
3106
|
+
}
|
|
3107
|
+
function setQueriesDataByKeyId(queryClient, id, updater) {
|
|
3108
|
+
queryClient.setQueriesData(
|
|
3109
|
+
{ predicate: (query) => matchQueryKeyId(query, id) },
|
|
3110
|
+
updater
|
|
3111
|
+
);
|
|
3112
|
+
}
|
|
3113
|
+
export {
|
|
3114
|
+
QueryKeyIds,
|
|
3115
|
+
activityDeleteApiActivityInstancesId,
|
|
3116
|
+
activityDeleteApiActivityInstancesIdMutation,
|
|
3117
|
+
activityDeleteApiActivityInstancesInstanceIdMessagesMessageId,
|
|
3118
|
+
activityDeleteApiActivityInstancesInstanceIdMessagesMessageIdMutation,
|
|
3119
|
+
activityDeleteApiPersonasId,
|
|
3120
|
+
activityDeleteApiPersonasIdMutation,
|
|
3121
|
+
activityGetApiActivities,
|
|
3122
|
+
activityGetApiActivitiesId,
|
|
3123
|
+
activityGetApiActivitiesIdOptions,
|
|
3124
|
+
activityGetApiActivitiesIdQueryKey,
|
|
3125
|
+
activityGetApiActivitiesInfiniteOptions,
|
|
3126
|
+
activityGetApiActivitiesInfiniteQueryKey,
|
|
3127
|
+
activityGetApiActivitiesOptions,
|
|
3128
|
+
activityGetApiActivitiesQueryKey,
|
|
3129
|
+
activityGetApiActivityInstances,
|
|
3130
|
+
activityGetApiActivityInstancesId,
|
|
3131
|
+
activityGetApiActivityInstancesIdOptions,
|
|
3132
|
+
activityGetApiActivityInstancesIdQueryKey,
|
|
3133
|
+
activityGetApiActivityInstancesInfiniteOptions,
|
|
3134
|
+
activityGetApiActivityInstancesInfiniteQueryKey,
|
|
3135
|
+
activityGetApiActivityInstancesInstanceIdMessages,
|
|
3136
|
+
activityGetApiActivityInstancesInstanceIdMessagesInfiniteOptions,
|
|
3137
|
+
activityGetApiActivityInstancesInstanceIdMessagesInfiniteQueryKey,
|
|
3138
|
+
activityGetApiActivityInstancesInstanceIdMessagesMessageId,
|
|
3139
|
+
activityGetApiActivityInstancesInstanceIdMessagesMessageIdOptions,
|
|
3140
|
+
activityGetApiActivityInstancesInstanceIdMessagesMessageIdQueryKey,
|
|
3141
|
+
activityGetApiActivityInstancesInstanceIdMessagesOptions,
|
|
3142
|
+
activityGetApiActivityInstancesInstanceIdMessagesQueryKey,
|
|
3143
|
+
activityGetApiActivityInstancesOptions,
|
|
3144
|
+
activityGetApiActivityInstancesQueryKey,
|
|
3145
|
+
activityGetApiPersonas,
|
|
3146
|
+
activityGetApiPersonasId,
|
|
3147
|
+
activityGetApiPersonasIdOptions,
|
|
3148
|
+
activityGetApiPersonasIdQueryKey,
|
|
3149
|
+
activityGetApiPersonasOptions,
|
|
3150
|
+
activityGetApiPersonasQueryKey,
|
|
3151
|
+
activityGetHealth,
|
|
3152
|
+
activityGetHealthOptions,
|
|
3153
|
+
activityGetHealthQueryKey,
|
|
3154
|
+
activityPatchApiActivityInstancesId,
|
|
3155
|
+
activityPatchApiActivityInstancesIdMutation,
|
|
3156
|
+
activityPatchApiActivityInstancesInstanceIdMessagesMessageId,
|
|
3157
|
+
activityPatchApiActivityInstancesInstanceIdMessagesMessageIdMutation,
|
|
3158
|
+
activityPatchApiPersonasId,
|
|
3159
|
+
activityPatchApiPersonasIdMutation,
|
|
3160
|
+
activityPostApiActivityInstances,
|
|
3161
|
+
activityPostApiActivityInstancesInstanceIdChat,
|
|
3162
|
+
activityPostApiActivityInstancesInstanceIdChatMutation,
|
|
3163
|
+
activityPostApiActivityInstancesInstanceIdMessages,
|
|
3164
|
+
activityPostApiActivityInstancesInstanceIdMessagesMutation,
|
|
3165
|
+
activityPostApiActivityInstancesMutation,
|
|
3166
|
+
activityPostApiPersonas,
|
|
3167
|
+
activityPostApiPersonasIdDefault,
|
|
3168
|
+
activityPostApiPersonasIdDefaultMutation,
|
|
3169
|
+
activityPostApiPersonasMutation,
|
|
3170
|
+
avatarDeleteApiSessionsId,
|
|
3171
|
+
avatarDeleteApiSessionsIdMutation,
|
|
3172
|
+
avatarGetApiSessionsId,
|
|
3173
|
+
avatarGetApiSessionsIdOptions,
|
|
3174
|
+
avatarGetApiSessionsIdQueryKey,
|
|
3175
|
+
avatarGetHealth,
|
|
3176
|
+
avatarGetHealthOptions,
|
|
3177
|
+
avatarGetHealthQueryKey,
|
|
3178
|
+
avatarPostApiGenerate,
|
|
3179
|
+
avatarPostApiGenerateMutation,
|
|
3180
|
+
avatarPostApiSessions,
|
|
3181
|
+
avatarPostApiSessionsIdToken,
|
|
3182
|
+
avatarPostApiSessionsIdTokenMutation,
|
|
3183
|
+
avatarPostApiSessionsMutation,
|
|
3184
|
+
chatGetHealth,
|
|
3185
|
+
chatGetHealthOptions,
|
|
3186
|
+
chatGetHealthQueryKey,
|
|
3187
|
+
client,
|
|
3188
|
+
contentGetApiMemoriesScratchpad,
|
|
3189
|
+
contentGetApiMemoriesScratchpadOptions,
|
|
3190
|
+
contentGetApiMemoriesScratchpadQueryKey,
|
|
3191
|
+
contentGetHealth,
|
|
3192
|
+
contentGetHealthOptions,
|
|
3193
|
+
contentGetHealthQueryKey,
|
|
3194
|
+
contentPutApiMemoriesScratchpad,
|
|
3195
|
+
contentPutApiMemoriesScratchpadMutation,
|
|
3196
|
+
formGetApiFormsKeyOrId,
|
|
3197
|
+
formGetApiFormsKeyOrIdOptions,
|
|
3198
|
+
formGetApiFormsKeyOrIdQueryKey,
|
|
3199
|
+
formGetApiFormsKeySubmission,
|
|
3200
|
+
formGetApiFormsKeySubmissionOptions,
|
|
3201
|
+
formGetApiFormsKeySubmissionQueryKey,
|
|
3202
|
+
formGetHealth,
|
|
3203
|
+
formGetHealthOptions,
|
|
3204
|
+
formGetHealthQueryKey,
|
|
3205
|
+
formPostApiFormsKeySubmit,
|
|
3206
|
+
formPostApiFormsKeySubmitMutation,
|
|
3207
|
+
formPutApiFormsKeyDraft,
|
|
3208
|
+
formPutApiFormsKeyDraftMutation,
|
|
3209
|
+
gamificationGetApiUserMeAchievements,
|
|
3210
|
+
gamificationGetApiUserMeAchievementsOptions,
|
|
3211
|
+
gamificationGetApiUserMeAchievementsQueryKey,
|
|
3212
|
+
gamificationGetApiUserMeBadges,
|
|
3213
|
+
gamificationGetApiUserMeBadgesOptions,
|
|
3214
|
+
gamificationGetApiUserMeBadgesQueryKey,
|
|
3215
|
+
gamificationGetApiUserMeLevels,
|
|
3216
|
+
gamificationGetApiUserMeLevelsOptions,
|
|
3217
|
+
gamificationGetApiUserMeLevelsQueryKey,
|
|
3218
|
+
gamificationGetApiUserMeRewards,
|
|
3219
|
+
gamificationGetApiUserMeRewardsOptions,
|
|
3220
|
+
gamificationGetApiUserMeRewardsQueryKey,
|
|
3221
|
+
gamificationGetApiUserMeXp,
|
|
3222
|
+
gamificationGetApiUserMeXpOptions,
|
|
3223
|
+
gamificationGetApiUserMeXpQueryKey,
|
|
3224
|
+
gamificationGetHealth,
|
|
3225
|
+
gamificationGetHealthOptions,
|
|
3226
|
+
gamificationGetHealthQueryKey,
|
|
3227
|
+
invalidateByQueryKeyId,
|
|
3228
|
+
invalidateServiceQueries,
|
|
3229
|
+
journeyCompleteEventInstance,
|
|
3230
|
+
journeyCompleteEventInstanceMutation,
|
|
3231
|
+
journeyGetApiUserJourneys,
|
|
3232
|
+
journeyGetApiUserJourneysId,
|
|
3233
|
+
journeyGetApiUserJourneysIdOptions,
|
|
3234
|
+
journeyGetApiUserJourneysIdQueryKey,
|
|
3235
|
+
journeyGetApiUserJourneysInfiniteOptions,
|
|
3236
|
+
journeyGetApiUserJourneysInfiniteQueryKey,
|
|
3237
|
+
journeyGetApiUserJourneysOptions,
|
|
3238
|
+
journeyGetApiUserJourneysQueryKey,
|
|
3239
|
+
journeyGetApiUserMeJourneys,
|
|
3240
|
+
journeyGetApiUserMeJourneysInfiniteOptions,
|
|
3241
|
+
journeyGetApiUserMeJourneysInfiniteQueryKey,
|
|
3242
|
+
journeyGetApiUserMeJourneysInstanceId,
|
|
3243
|
+
journeyGetApiUserMeJourneysInstanceIdEvents,
|
|
3244
|
+
journeyGetApiUserMeJourneysInstanceIdEventsInfiniteOptions,
|
|
3245
|
+
journeyGetApiUserMeJourneysInstanceIdEventsInfiniteQueryKey,
|
|
3246
|
+
journeyGetApiUserMeJourneysInstanceIdEventsOptions,
|
|
3247
|
+
journeyGetApiUserMeJourneysInstanceIdEventsQueryKey,
|
|
3248
|
+
journeyGetApiUserMeJourneysInstanceIdOptions,
|
|
3249
|
+
journeyGetApiUserMeJourneysInstanceIdQueryKey,
|
|
3250
|
+
journeyGetApiUserMeJourneysOptions,
|
|
3251
|
+
journeyGetApiUserMeJourneysQueryKey,
|
|
3252
|
+
journeyGetApiUserMeTodayEvents,
|
|
3253
|
+
journeyGetApiUserMeTodayEventsOptions,
|
|
3254
|
+
journeyGetApiUserMeTodayEventsQueryKey,
|
|
3255
|
+
journeyGetHealth,
|
|
3256
|
+
journeyGetHealthOptions,
|
|
3257
|
+
journeyGetHealthQueryKey,
|
|
3258
|
+
journeyGetMyEventInstance,
|
|
3259
|
+
journeyGetMyEventInstanceOptions,
|
|
3260
|
+
journeyGetMyEventInstanceQueryKey,
|
|
3261
|
+
journeyMarkEventRead,
|
|
3262
|
+
journeyMarkEventReadMutation,
|
|
3263
|
+
journeyPostApiUserJourneysIdStart,
|
|
3264
|
+
journeyPostApiUserJourneysIdStartMutation,
|
|
3265
|
+
journeyPostApiUserMeJourneysInstanceIdAbandon,
|
|
3266
|
+
journeyPostApiUserMeJourneysInstanceIdAbandonMutation,
|
|
3267
|
+
journeyPostApiUserMeJourneysInstanceIdActivate,
|
|
3268
|
+
journeyPostApiUserMeJourneysInstanceIdActivateMutation,
|
|
3269
|
+
journeyPostApiUserMeJourneysInstanceIdCompleteOnboarding,
|
|
3270
|
+
journeyPostApiUserMeJourneysInstanceIdCompleteOnboardingMutation,
|
|
3271
|
+
journeyPostApiUserMeJourneysInstanceIdEventsStart,
|
|
3272
|
+
journeyPostApiUserMeJourneysInstanceIdEventsStartMutation,
|
|
3273
|
+
journeyPostApiUserMeJourneysInstanceIdRedoCharacterization,
|
|
3274
|
+
journeyPostApiUserMeJourneysInstanceIdRedoCharacterizationMutation,
|
|
3275
|
+
journeySkipEventInstance,
|
|
3276
|
+
journeySkipEventInstanceMutation,
|
|
3277
|
+
journeyStartEventInstance,
|
|
3278
|
+
journeyStartEventInstanceMutation,
|
|
3279
|
+
matchQueryKeyId,
|
|
3280
|
+
mediaDeleteApiCollectionId,
|
|
3281
|
+
mediaDeleteApiCollectionIdMutation,
|
|
3282
|
+
mediaDeleteApiFilesId,
|
|
3283
|
+
mediaDeleteApiFilesIdMutation,
|
|
3284
|
+
mediaGetApiCollection,
|
|
3285
|
+
mediaGetApiCollectionInfiniteOptions,
|
|
3286
|
+
mediaGetApiCollectionInfiniteQueryKey,
|
|
3287
|
+
mediaGetApiCollectionOptions,
|
|
3288
|
+
mediaGetApiCollectionQueryKey,
|
|
3289
|
+
mediaGetApiFiles,
|
|
3290
|
+
mediaGetApiFilesId,
|
|
3291
|
+
mediaGetApiFilesIdOptions,
|
|
3292
|
+
mediaGetApiFilesIdQueryKey,
|
|
3293
|
+
mediaGetApiFilesInfiniteOptions,
|
|
3294
|
+
mediaGetApiFilesInfiniteQueryKey,
|
|
3295
|
+
mediaGetApiFilesOptions,
|
|
3296
|
+
mediaGetApiFilesQueryKey,
|
|
3297
|
+
mediaGetApiSkins,
|
|
3298
|
+
mediaGetApiSkinsId,
|
|
3299
|
+
mediaGetApiSkinsIdOptions,
|
|
3300
|
+
mediaGetApiSkinsIdQueryKey,
|
|
3301
|
+
mediaGetApiSkinsInfiniteOptions,
|
|
3302
|
+
mediaGetApiSkinsInfiniteQueryKey,
|
|
3303
|
+
mediaGetApiSkinsOptions,
|
|
3304
|
+
mediaGetApiSkinsQueryKey,
|
|
3305
|
+
mediaGetHealth,
|
|
3306
|
+
mediaGetHealthOptions,
|
|
3307
|
+
mediaGetHealthQueryKey,
|
|
3308
|
+
mediaPatchApiCollectionId,
|
|
3309
|
+
mediaPatchApiCollectionIdMutation,
|
|
3310
|
+
mediaPostApiCollection,
|
|
3311
|
+
mediaPostApiCollectionMutation,
|
|
3312
|
+
mediaPostApiFiles,
|
|
3313
|
+
mediaPostApiFilesIdConfirm,
|
|
3314
|
+
mediaPostApiFilesIdConfirmMutation,
|
|
3315
|
+
mediaPostApiFilesMutation,
|
|
3316
|
+
mediaPostApiFilesPresigned,
|
|
3317
|
+
mediaPostApiFilesPresignedMutation,
|
|
3318
|
+
mediaPostApiGenerateImageCategory,
|
|
3319
|
+
mediaPostApiGenerateImageCategoryMutation,
|
|
3320
|
+
mediaPostApiGenerateVideoCategory,
|
|
3321
|
+
mediaPostApiGenerateVideoCategoryMutation,
|
|
3322
|
+
platformGetHealth,
|
|
3323
|
+
platformGetHealthOptions,
|
|
3324
|
+
platformGetHealthQueryKey,
|
|
3325
|
+
setQueriesDataByKeyId,
|
|
3326
|
+
tenantGetHealth,
|
|
3327
|
+
tenantGetHealthOptions,
|
|
3328
|
+
tenantGetHealthQueryKey,
|
|
3329
|
+
tenantPostApiAblyToken,
|
|
3330
|
+
tenantPostApiAblyTokenMutation,
|
|
3331
|
+
tenantPostApiTokensMint,
|
|
3332
|
+
tenantPostApiTokensMintMutation
|
|
3333
|
+
};
|