@gtmi/ramp-site-client 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +44 -0
- package/dist/es/index.d.mts +2749 -0
- package/dist/es/index.mjs +2045 -0
- package/package.json +46 -0
- package/src/client.test.ts +36 -0
- package/src/client.ts +15 -0
- package/src/client.types.ts +11 -0
- package/src/generated/client/client.gen.ts +277 -0
- package/src/generated/client/index.ts +27 -0
- package/src/generated/client/types.gen.ts +214 -0
- package/src/generated/client/utils.gen.ts +316 -0
- package/src/generated/client.gen.ts +18 -0
- package/src/generated/core/auth.gen.ts +48 -0
- package/src/generated/core/bodySerializer.gen.ts +82 -0
- package/src/generated/core/params.gen.ts +178 -0
- package/src/generated/core/pathSerializer.gen.ts +171 -0
- package/src/generated/core/queryKeySerializer.gen.ts +117 -0
- package/src/generated/core/serverSentEvents.gen.ts +242 -0
- package/src/generated/core/types.gen.ts +110 -0
- package/src/generated/core/utils.gen.ts +140 -0
- package/src/generated/index.ts +272 -0
- package/src/generated/sdk.gen.ts +1934 -0
- package/src/generated/types.gen.ts +1791 -0
- package/src/generated/zod.gen.ts +249 -0
- package/src/index.ts +7 -0
|
@@ -0,0 +1,2045 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
4
|
+
const jsonBodySerializer = {
|
|
5
|
+
bodySerializer: (body)=>JSON.stringify(body, (_key, value)=>typeof value === 'bigint' ? value.toString() : value)
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
9
|
+
function createSseClient({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }) {
|
|
10
|
+
let lastEventId;
|
|
11
|
+
const sleep = sseSleepFn ?? ((ms)=>new Promise((resolve)=>setTimeout(resolve, ms)));
|
|
12
|
+
const createStream = async function*() {
|
|
13
|
+
let retryDelay = sseDefaultRetryDelay ?? 3000;
|
|
14
|
+
let attempt = 0;
|
|
15
|
+
const signal = options.signal ?? new AbortController().signal;
|
|
16
|
+
while(true){
|
|
17
|
+
if (signal.aborted) break;
|
|
18
|
+
attempt++;
|
|
19
|
+
const headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers);
|
|
20
|
+
if (lastEventId !== undefined) {
|
|
21
|
+
headers.set('Last-Event-ID', lastEventId);
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
const requestInit = {
|
|
25
|
+
redirect: 'follow',
|
|
26
|
+
...options,
|
|
27
|
+
body: options.serializedBody,
|
|
28
|
+
headers,
|
|
29
|
+
signal
|
|
30
|
+
};
|
|
31
|
+
let request = new Request(url, requestInit);
|
|
32
|
+
if (onRequest) {
|
|
33
|
+
request = await onRequest(url, requestInit);
|
|
34
|
+
}
|
|
35
|
+
// fetch must be assigned here, otherwise it would throw the error:
|
|
36
|
+
// TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
|
|
37
|
+
const _fetch = options.fetch ?? globalThis.fetch;
|
|
38
|
+
const response = await _fetch(request);
|
|
39
|
+
if (!response.ok) throw new Error(`SSE failed: ${response.status} ${response.statusText}`);
|
|
40
|
+
if (!response.body) throw new Error('No body in SSE response');
|
|
41
|
+
const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
|
|
42
|
+
let buffer = '';
|
|
43
|
+
const abortHandler = ()=>{
|
|
44
|
+
try {
|
|
45
|
+
reader.cancel();
|
|
46
|
+
} catch {
|
|
47
|
+
// noop
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
signal.addEventListener('abort', abortHandler);
|
|
51
|
+
try {
|
|
52
|
+
while(true){
|
|
53
|
+
const { done, value } = await reader.read();
|
|
54
|
+
if (done) break;
|
|
55
|
+
buffer += value;
|
|
56
|
+
buffer = buffer.replace(/\r\n?/g, '\n'); // normalize line endings
|
|
57
|
+
const chunks = buffer.split('\n\n');
|
|
58
|
+
buffer = chunks.pop() ?? '';
|
|
59
|
+
for (const chunk of chunks){
|
|
60
|
+
const lines = chunk.split('\n');
|
|
61
|
+
const dataLines = [];
|
|
62
|
+
let eventName;
|
|
63
|
+
for (const line of lines){
|
|
64
|
+
if (line.startsWith('data:')) {
|
|
65
|
+
dataLines.push(line.replace(/^data:\s*/, ''));
|
|
66
|
+
} else if (line.startsWith('event:')) {
|
|
67
|
+
eventName = line.replace(/^event:\s*/, '');
|
|
68
|
+
} else if (line.startsWith('id:')) {
|
|
69
|
+
lastEventId = line.replace(/^id:\s*/, '');
|
|
70
|
+
} else if (line.startsWith('retry:')) {
|
|
71
|
+
const parsed = Number.parseInt(line.replace(/^retry:\s*/, ''), 10);
|
|
72
|
+
if (!Number.isNaN(parsed)) {
|
|
73
|
+
retryDelay = parsed;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
let data;
|
|
78
|
+
let parsedJson = false;
|
|
79
|
+
if (dataLines.length) {
|
|
80
|
+
const rawData = dataLines.join('\n');
|
|
81
|
+
try {
|
|
82
|
+
data = JSON.parse(rawData);
|
|
83
|
+
parsedJson = true;
|
|
84
|
+
} catch {
|
|
85
|
+
data = rawData;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
if (parsedJson) {
|
|
89
|
+
if (responseValidator) {
|
|
90
|
+
await responseValidator(data);
|
|
91
|
+
}
|
|
92
|
+
if (responseTransformer) {
|
|
93
|
+
data = await responseTransformer(data);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
onSseEvent?.({
|
|
97
|
+
data,
|
|
98
|
+
event: eventName,
|
|
99
|
+
id: lastEventId,
|
|
100
|
+
retry: retryDelay
|
|
101
|
+
});
|
|
102
|
+
if (dataLines.length) {
|
|
103
|
+
yield data;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
} finally{
|
|
108
|
+
signal.removeEventListener('abort', abortHandler);
|
|
109
|
+
reader.releaseLock();
|
|
110
|
+
}
|
|
111
|
+
break; // exit loop on normal completion
|
|
112
|
+
} catch (error) {
|
|
113
|
+
// connection failed or aborted; retry after delay
|
|
114
|
+
onSseError?.(error);
|
|
115
|
+
if (sseMaxRetryAttempts !== undefined && attempt >= sseMaxRetryAttempts) {
|
|
116
|
+
break; // stop after firing error
|
|
117
|
+
}
|
|
118
|
+
// exponential backoff: double retry each attempt, cap at 30s
|
|
119
|
+
const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 30000);
|
|
120
|
+
await sleep(backoff);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
const stream = createStream();
|
|
125
|
+
return {
|
|
126
|
+
stream
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
131
|
+
const separatorArrayExplode = (style)=>{
|
|
132
|
+
switch(style){
|
|
133
|
+
case 'label':
|
|
134
|
+
return '.';
|
|
135
|
+
case 'matrix':
|
|
136
|
+
return ';';
|
|
137
|
+
case 'simple':
|
|
138
|
+
return ',';
|
|
139
|
+
default:
|
|
140
|
+
return '&';
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
const separatorArrayNoExplode = (style)=>{
|
|
144
|
+
switch(style){
|
|
145
|
+
case 'form':
|
|
146
|
+
return ',';
|
|
147
|
+
case 'pipeDelimited':
|
|
148
|
+
return '|';
|
|
149
|
+
case 'spaceDelimited':
|
|
150
|
+
return '%20';
|
|
151
|
+
default:
|
|
152
|
+
return ',';
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
const separatorObjectExplode = (style)=>{
|
|
156
|
+
switch(style){
|
|
157
|
+
case 'label':
|
|
158
|
+
return '.';
|
|
159
|
+
case 'matrix':
|
|
160
|
+
return ';';
|
|
161
|
+
case 'simple':
|
|
162
|
+
return ',';
|
|
163
|
+
default:
|
|
164
|
+
return '&';
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
const serializeArrayParam = ({ allowReserved, explode, name, style, value })=>{
|
|
168
|
+
if (!explode) {
|
|
169
|
+
const joinedValues = (allowReserved ? value : value.map((v)=>encodeURIComponent(v))).join(separatorArrayNoExplode(style));
|
|
170
|
+
switch(style){
|
|
171
|
+
case 'label':
|
|
172
|
+
return `.${joinedValues}`;
|
|
173
|
+
case 'matrix':
|
|
174
|
+
return `;${name}=${joinedValues}`;
|
|
175
|
+
case 'simple':
|
|
176
|
+
return joinedValues;
|
|
177
|
+
default:
|
|
178
|
+
return `${name}=${joinedValues}`;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
const separator = separatorArrayExplode(style);
|
|
182
|
+
const joinedValues = value.map((v)=>{
|
|
183
|
+
if (style === 'label' || style === 'simple') {
|
|
184
|
+
return allowReserved ? v : encodeURIComponent(v);
|
|
185
|
+
}
|
|
186
|
+
return serializePrimitiveParam({
|
|
187
|
+
allowReserved,
|
|
188
|
+
name,
|
|
189
|
+
value: v
|
|
190
|
+
});
|
|
191
|
+
}).join(separator);
|
|
192
|
+
return style === 'label' || style === 'matrix' ? separator + joinedValues : joinedValues;
|
|
193
|
+
};
|
|
194
|
+
const serializePrimitiveParam = ({ allowReserved, name, value })=>{
|
|
195
|
+
if (value === undefined || value === null) {
|
|
196
|
+
return '';
|
|
197
|
+
}
|
|
198
|
+
if (typeof value === 'object') {
|
|
199
|
+
throw new Error('Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.');
|
|
200
|
+
}
|
|
201
|
+
return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
|
|
202
|
+
};
|
|
203
|
+
const serializeObjectParam = ({ allowReserved, explode, name, style, value, valueOnly })=>{
|
|
204
|
+
if (value instanceof Date) {
|
|
205
|
+
return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
|
|
206
|
+
}
|
|
207
|
+
if (style !== 'deepObject' && !explode) {
|
|
208
|
+
let values = [];
|
|
209
|
+
Object.entries(value).forEach(([key, v])=>{
|
|
210
|
+
values = [
|
|
211
|
+
...values,
|
|
212
|
+
key,
|
|
213
|
+
allowReserved ? v : encodeURIComponent(v)
|
|
214
|
+
];
|
|
215
|
+
});
|
|
216
|
+
const joinedValues = values.join(',');
|
|
217
|
+
switch(style){
|
|
218
|
+
case 'form':
|
|
219
|
+
return `${name}=${joinedValues}`;
|
|
220
|
+
case 'label':
|
|
221
|
+
return `.${joinedValues}`;
|
|
222
|
+
case 'matrix':
|
|
223
|
+
return `;${name}=${joinedValues}`;
|
|
224
|
+
default:
|
|
225
|
+
return joinedValues;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
const separator = separatorObjectExplode(style);
|
|
229
|
+
const joinedValues = Object.entries(value).map(([key, v])=>serializePrimitiveParam({
|
|
230
|
+
allowReserved,
|
|
231
|
+
name: style === 'deepObject' ? `${name}[${key}]` : key,
|
|
232
|
+
value: v
|
|
233
|
+
})).join(separator);
|
|
234
|
+
return style === 'label' || style === 'matrix' ? separator + joinedValues : joinedValues;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
238
|
+
const PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
239
|
+
const defaultPathSerializer = ({ path, url: _url })=>{
|
|
240
|
+
let url = _url;
|
|
241
|
+
const matches = _url.match(PATH_PARAM_RE);
|
|
242
|
+
if (matches) {
|
|
243
|
+
for (const match of matches){
|
|
244
|
+
let explode = false;
|
|
245
|
+
let name = match.substring(1, match.length - 1);
|
|
246
|
+
let style = 'simple';
|
|
247
|
+
if (name.endsWith('*')) {
|
|
248
|
+
explode = true;
|
|
249
|
+
name = name.substring(0, name.length - 1);
|
|
250
|
+
}
|
|
251
|
+
if (name.startsWith('.')) {
|
|
252
|
+
name = name.substring(1);
|
|
253
|
+
style = 'label';
|
|
254
|
+
} else if (name.startsWith(';')) {
|
|
255
|
+
name = name.substring(1);
|
|
256
|
+
style = 'matrix';
|
|
257
|
+
}
|
|
258
|
+
const value = path[name];
|
|
259
|
+
if (value === undefined || value === null) {
|
|
260
|
+
continue;
|
|
261
|
+
}
|
|
262
|
+
if (Array.isArray(value)) {
|
|
263
|
+
url = url.replace(match, serializeArrayParam({
|
|
264
|
+
explode,
|
|
265
|
+
name,
|
|
266
|
+
style,
|
|
267
|
+
value
|
|
268
|
+
}));
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
if (typeof value === 'object') {
|
|
272
|
+
url = url.replace(match, serializeObjectParam({
|
|
273
|
+
explode,
|
|
274
|
+
name,
|
|
275
|
+
style,
|
|
276
|
+
value: value,
|
|
277
|
+
valueOnly: true
|
|
278
|
+
}));
|
|
279
|
+
continue;
|
|
280
|
+
}
|
|
281
|
+
if (style === 'matrix') {
|
|
282
|
+
url = url.replace(match, `;${serializePrimitiveParam({
|
|
283
|
+
name,
|
|
284
|
+
value: value
|
|
285
|
+
})}`);
|
|
286
|
+
continue;
|
|
287
|
+
}
|
|
288
|
+
const replaceValue = encodeURIComponent(style === 'label' ? `.${value}` : value);
|
|
289
|
+
url = url.replace(match, replaceValue);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
return url;
|
|
293
|
+
};
|
|
294
|
+
const getUrl = ({ baseUrl, path, query, querySerializer, url: _url })=>{
|
|
295
|
+
const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;
|
|
296
|
+
let url = (baseUrl ?? '') + pathUrl;
|
|
297
|
+
if (path) {
|
|
298
|
+
url = defaultPathSerializer({
|
|
299
|
+
path,
|
|
300
|
+
url
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
let search = query ? querySerializer(query) : '';
|
|
304
|
+
if (search.startsWith('?')) {
|
|
305
|
+
search = search.substring(1);
|
|
306
|
+
}
|
|
307
|
+
if (search) {
|
|
308
|
+
url += `?${search}`;
|
|
309
|
+
}
|
|
310
|
+
return url;
|
|
311
|
+
};
|
|
312
|
+
function getValidRequestBody(options) {
|
|
313
|
+
const hasBody = options.body !== undefined;
|
|
314
|
+
const isSerializedBody = hasBody && options.bodySerializer;
|
|
315
|
+
if (isSerializedBody) {
|
|
316
|
+
if ('serializedBody' in options) {
|
|
317
|
+
const hasSerializedBody = options.serializedBody !== undefined && options.serializedBody !== '';
|
|
318
|
+
return hasSerializedBody ? options.serializedBody : null;
|
|
319
|
+
}
|
|
320
|
+
// not all clients implement a serializedBody property (i.e., client-axios)
|
|
321
|
+
return options.body !== '' ? options.body : null;
|
|
322
|
+
}
|
|
323
|
+
// plain/text body
|
|
324
|
+
if (hasBody) {
|
|
325
|
+
return options.body;
|
|
326
|
+
}
|
|
327
|
+
// no body was provided
|
|
328
|
+
return undefined;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
332
|
+
const getAuthToken = async (auth, callback)=>{
|
|
333
|
+
const token = typeof callback === 'function' ? await callback(auth) : callback;
|
|
334
|
+
if (!token) {
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
if (auth.scheme === 'bearer') {
|
|
338
|
+
return `Bearer ${token}`;
|
|
339
|
+
}
|
|
340
|
+
if (auth.scheme === 'basic') {
|
|
341
|
+
return `Basic ${btoa(token)}`;
|
|
342
|
+
}
|
|
343
|
+
return token;
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
347
|
+
const createQuerySerializer = ({ parameters = {}, ...args } = {})=>{
|
|
348
|
+
const querySerializer = (queryParams)=>{
|
|
349
|
+
const search = [];
|
|
350
|
+
if (queryParams && typeof queryParams === 'object') {
|
|
351
|
+
for(const name in queryParams){
|
|
352
|
+
const value = queryParams[name];
|
|
353
|
+
if (value === undefined || value === null) {
|
|
354
|
+
continue;
|
|
355
|
+
}
|
|
356
|
+
const options = parameters[name] || args;
|
|
357
|
+
if (Array.isArray(value)) {
|
|
358
|
+
const serializedArray = serializeArrayParam({
|
|
359
|
+
allowReserved: options.allowReserved,
|
|
360
|
+
explode: true,
|
|
361
|
+
name,
|
|
362
|
+
style: 'form',
|
|
363
|
+
value,
|
|
364
|
+
...options.array
|
|
365
|
+
});
|
|
366
|
+
if (serializedArray) search.push(serializedArray);
|
|
367
|
+
} else if (typeof value === 'object') {
|
|
368
|
+
const serializedObject = serializeObjectParam({
|
|
369
|
+
allowReserved: options.allowReserved,
|
|
370
|
+
explode: true,
|
|
371
|
+
name,
|
|
372
|
+
style: 'deepObject',
|
|
373
|
+
value: value,
|
|
374
|
+
...options.object
|
|
375
|
+
});
|
|
376
|
+
if (serializedObject) search.push(serializedObject);
|
|
377
|
+
} else {
|
|
378
|
+
const serializedPrimitive = serializePrimitiveParam({
|
|
379
|
+
allowReserved: options.allowReserved,
|
|
380
|
+
name,
|
|
381
|
+
value: value
|
|
382
|
+
});
|
|
383
|
+
if (serializedPrimitive) search.push(serializedPrimitive);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
return search.join('&');
|
|
388
|
+
};
|
|
389
|
+
return querySerializer;
|
|
390
|
+
};
|
|
391
|
+
/**
|
|
392
|
+
* Infers parseAs value from provided Content-Type header.
|
|
393
|
+
*/ const getParseAs = (contentType)=>{
|
|
394
|
+
if (!contentType) {
|
|
395
|
+
// If no Content-Type header is provided, the best we can do is return the raw response body,
|
|
396
|
+
// which is effectively the same as the 'stream' option.
|
|
397
|
+
return 'stream';
|
|
398
|
+
}
|
|
399
|
+
const cleanContent = contentType.split(';')[0]?.trim();
|
|
400
|
+
if (!cleanContent) {
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
if (cleanContent.startsWith('application/json') || cleanContent.endsWith('+json')) {
|
|
404
|
+
return 'json';
|
|
405
|
+
}
|
|
406
|
+
if (cleanContent === 'multipart/form-data') {
|
|
407
|
+
return 'formData';
|
|
408
|
+
}
|
|
409
|
+
if ([
|
|
410
|
+
'application/',
|
|
411
|
+
'audio/',
|
|
412
|
+
'image/',
|
|
413
|
+
'video/'
|
|
414
|
+
].some((type)=>cleanContent.startsWith(type))) {
|
|
415
|
+
return 'blob';
|
|
416
|
+
}
|
|
417
|
+
if (cleanContent.startsWith('text/')) {
|
|
418
|
+
return 'text';
|
|
419
|
+
}
|
|
420
|
+
return;
|
|
421
|
+
};
|
|
422
|
+
const checkForExistence = (options, name)=>{
|
|
423
|
+
if (!name) {
|
|
424
|
+
return false;
|
|
425
|
+
}
|
|
426
|
+
if (options.headers.has(name) || options.query?.[name] || options.headers.get('Cookie')?.includes(`${name}=`)) {
|
|
427
|
+
return true;
|
|
428
|
+
}
|
|
429
|
+
return false;
|
|
430
|
+
};
|
|
431
|
+
async function setAuthParams(options) {
|
|
432
|
+
for (const auth of options.security ?? []){
|
|
433
|
+
if (checkForExistence(options, auth.name)) {
|
|
434
|
+
continue;
|
|
435
|
+
}
|
|
436
|
+
const token = await getAuthToken(auth, options.auth);
|
|
437
|
+
if (!token) {
|
|
438
|
+
continue;
|
|
439
|
+
}
|
|
440
|
+
const name = auth.name ?? 'Authorization';
|
|
441
|
+
switch(auth.in){
|
|
442
|
+
case 'query':
|
|
443
|
+
if (!options.query) {
|
|
444
|
+
options.query = {};
|
|
445
|
+
}
|
|
446
|
+
options.query[name] = token;
|
|
447
|
+
break;
|
|
448
|
+
case 'cookie':
|
|
449
|
+
options.headers.append('Cookie', `${name}=${token}`);
|
|
450
|
+
break;
|
|
451
|
+
case 'header':
|
|
452
|
+
default:
|
|
453
|
+
options.headers.set(name, token);
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
const buildUrl = (options)=>getUrl({
|
|
459
|
+
baseUrl: options.baseUrl,
|
|
460
|
+
path: options.path,
|
|
461
|
+
query: options.query,
|
|
462
|
+
querySerializer: typeof options.querySerializer === 'function' ? options.querySerializer : createQuerySerializer(options.querySerializer),
|
|
463
|
+
url: options.url
|
|
464
|
+
});
|
|
465
|
+
const mergeConfigs = (a, b)=>{
|
|
466
|
+
const config = {
|
|
467
|
+
...a,
|
|
468
|
+
...b
|
|
469
|
+
};
|
|
470
|
+
if (config.baseUrl?.endsWith('/')) {
|
|
471
|
+
config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);
|
|
472
|
+
}
|
|
473
|
+
config.headers = mergeHeaders(a.headers, b.headers);
|
|
474
|
+
return config;
|
|
475
|
+
};
|
|
476
|
+
const headersEntries = (headers)=>{
|
|
477
|
+
const entries = [];
|
|
478
|
+
headers.forEach((value, key)=>{
|
|
479
|
+
entries.push([
|
|
480
|
+
key,
|
|
481
|
+
value
|
|
482
|
+
]);
|
|
483
|
+
});
|
|
484
|
+
return entries;
|
|
485
|
+
};
|
|
486
|
+
const mergeHeaders = (...headers)=>{
|
|
487
|
+
const mergedHeaders = new Headers();
|
|
488
|
+
for (const header of headers){
|
|
489
|
+
if (!header) {
|
|
490
|
+
continue;
|
|
491
|
+
}
|
|
492
|
+
const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header);
|
|
493
|
+
for (const [key, value] of iterator){
|
|
494
|
+
if (value === null) {
|
|
495
|
+
mergedHeaders.delete(key);
|
|
496
|
+
} else if (Array.isArray(value)) {
|
|
497
|
+
for (const v of value){
|
|
498
|
+
mergedHeaders.append(key, v);
|
|
499
|
+
}
|
|
500
|
+
} else if (value !== undefined) {
|
|
501
|
+
// assume object headers are meant to be JSON stringified, i.e., their
|
|
502
|
+
// content value in OpenAPI specification is 'application/json'
|
|
503
|
+
mergedHeaders.set(key, typeof value === 'object' ? JSON.stringify(value) : value);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
return mergedHeaders;
|
|
508
|
+
};
|
|
509
|
+
class Interceptors {
|
|
510
|
+
clear() {
|
|
511
|
+
this.fns = [];
|
|
512
|
+
}
|
|
513
|
+
eject(id) {
|
|
514
|
+
const index = this.getInterceptorIndex(id);
|
|
515
|
+
if (this.fns[index]) {
|
|
516
|
+
this.fns[index] = null;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
exists(id) {
|
|
520
|
+
const index = this.getInterceptorIndex(id);
|
|
521
|
+
return Boolean(this.fns[index]);
|
|
522
|
+
}
|
|
523
|
+
getInterceptorIndex(id) {
|
|
524
|
+
if (typeof id === 'number') {
|
|
525
|
+
return this.fns[id] ? id : -1;
|
|
526
|
+
}
|
|
527
|
+
return this.fns.indexOf(id);
|
|
528
|
+
}
|
|
529
|
+
update(id, fn) {
|
|
530
|
+
const index = this.getInterceptorIndex(id);
|
|
531
|
+
if (this.fns[index]) {
|
|
532
|
+
this.fns[index] = fn;
|
|
533
|
+
return id;
|
|
534
|
+
}
|
|
535
|
+
return false;
|
|
536
|
+
}
|
|
537
|
+
use(fn) {
|
|
538
|
+
this.fns.push(fn);
|
|
539
|
+
return this.fns.length - 1;
|
|
540
|
+
}
|
|
541
|
+
constructor(){
|
|
542
|
+
this.fns = [];
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
const createInterceptors = ()=>({
|
|
546
|
+
error: new Interceptors(),
|
|
547
|
+
request: new Interceptors(),
|
|
548
|
+
response: new Interceptors()
|
|
549
|
+
});
|
|
550
|
+
const defaultQuerySerializer = createQuerySerializer({
|
|
551
|
+
allowReserved: false,
|
|
552
|
+
array: {
|
|
553
|
+
explode: true,
|
|
554
|
+
style: 'form'
|
|
555
|
+
},
|
|
556
|
+
object: {
|
|
557
|
+
explode: true,
|
|
558
|
+
style: 'deepObject'
|
|
559
|
+
}
|
|
560
|
+
});
|
|
561
|
+
const defaultHeaders = {
|
|
562
|
+
'Content-Type': 'application/json'
|
|
563
|
+
};
|
|
564
|
+
const createConfig = (override = {})=>({
|
|
565
|
+
...jsonBodySerializer,
|
|
566
|
+
headers: defaultHeaders,
|
|
567
|
+
parseAs: 'auto',
|
|
568
|
+
querySerializer: defaultQuerySerializer,
|
|
569
|
+
...override
|
|
570
|
+
});
|
|
571
|
+
|
|
572
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
573
|
+
const createClient = (config = {})=>{
|
|
574
|
+
let _config = mergeConfigs(createConfig(), config);
|
|
575
|
+
const getConfig = ()=>({
|
|
576
|
+
..._config
|
|
577
|
+
});
|
|
578
|
+
const setConfig = (config)=>{
|
|
579
|
+
_config = mergeConfigs(_config, config);
|
|
580
|
+
return getConfig();
|
|
581
|
+
};
|
|
582
|
+
const interceptors = createInterceptors();
|
|
583
|
+
const beforeRequest = async (options)=>{
|
|
584
|
+
const opts = {
|
|
585
|
+
..._config,
|
|
586
|
+
...options,
|
|
587
|
+
fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
|
|
588
|
+
headers: mergeHeaders(_config.headers, options.headers),
|
|
589
|
+
serializedBody: undefined
|
|
590
|
+
};
|
|
591
|
+
if (opts.security) {
|
|
592
|
+
await setAuthParams(opts);
|
|
593
|
+
}
|
|
594
|
+
if (opts.requestValidator) {
|
|
595
|
+
await opts.requestValidator(opts);
|
|
596
|
+
}
|
|
597
|
+
if (opts.body !== undefined && opts.bodySerializer) {
|
|
598
|
+
opts.serializedBody = opts.bodySerializer(opts.body);
|
|
599
|
+
}
|
|
600
|
+
// remove Content-Type header if body is empty to avoid sending invalid requests
|
|
601
|
+
if (opts.body === undefined || opts.serializedBody === '') {
|
|
602
|
+
opts.headers.delete('Content-Type');
|
|
603
|
+
}
|
|
604
|
+
const resolvedOpts = opts;
|
|
605
|
+
const url = buildUrl(resolvedOpts);
|
|
606
|
+
return {
|
|
607
|
+
opts: resolvedOpts,
|
|
608
|
+
url
|
|
609
|
+
};
|
|
610
|
+
};
|
|
611
|
+
const request = async (options)=>{
|
|
612
|
+
const throwOnError = options.throwOnError ?? _config.throwOnError;
|
|
613
|
+
const responseStyle = options.responseStyle ?? _config.responseStyle;
|
|
614
|
+
let request;
|
|
615
|
+
let response;
|
|
616
|
+
try {
|
|
617
|
+
const { opts, url } = await beforeRequest(options);
|
|
618
|
+
const requestInit = {
|
|
619
|
+
redirect: 'follow',
|
|
620
|
+
...opts,
|
|
621
|
+
body: getValidRequestBody(opts)
|
|
622
|
+
};
|
|
623
|
+
request = new Request(url, requestInit);
|
|
624
|
+
for (const fn of interceptors.request.fns){
|
|
625
|
+
if (fn) {
|
|
626
|
+
request = await fn(request, opts);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
// fetch must be assigned here, otherwise it would throw the error:
|
|
630
|
+
// TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
|
|
631
|
+
const _fetch = opts.fetch;
|
|
632
|
+
response = await _fetch(request);
|
|
633
|
+
for (const fn of interceptors.response.fns){
|
|
634
|
+
if (fn) {
|
|
635
|
+
response = await fn(response, request, opts);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
const result = {
|
|
639
|
+
request,
|
|
640
|
+
response
|
|
641
|
+
};
|
|
642
|
+
if (response.ok) {
|
|
643
|
+
const parseAs = (opts.parseAs === 'auto' ? getParseAs(response.headers.get('Content-Type')) : opts.parseAs) ?? 'json';
|
|
644
|
+
if (response.status === 204 || response.headers.get('Content-Length') === '0') {
|
|
645
|
+
let emptyData;
|
|
646
|
+
switch(parseAs){
|
|
647
|
+
case 'arrayBuffer':
|
|
648
|
+
case 'blob':
|
|
649
|
+
case 'text':
|
|
650
|
+
emptyData = await response[parseAs]();
|
|
651
|
+
break;
|
|
652
|
+
case 'formData':
|
|
653
|
+
emptyData = new FormData();
|
|
654
|
+
break;
|
|
655
|
+
case 'stream':
|
|
656
|
+
emptyData = response.body;
|
|
657
|
+
break;
|
|
658
|
+
case 'json':
|
|
659
|
+
default:
|
|
660
|
+
emptyData = {};
|
|
661
|
+
break;
|
|
662
|
+
}
|
|
663
|
+
return opts.responseStyle === 'data' ? emptyData : {
|
|
664
|
+
data: emptyData,
|
|
665
|
+
...result
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
let data;
|
|
669
|
+
switch(parseAs){
|
|
670
|
+
case 'arrayBuffer':
|
|
671
|
+
case 'blob':
|
|
672
|
+
case 'formData':
|
|
673
|
+
case 'text':
|
|
674
|
+
data = await response[parseAs]();
|
|
675
|
+
break;
|
|
676
|
+
case 'json':
|
|
677
|
+
{
|
|
678
|
+
// Some servers return 200 with no Content-Length and empty body.
|
|
679
|
+
// response.json() would throw; read as text and parse if non-empty.
|
|
680
|
+
const text = await response.text();
|
|
681
|
+
data = text ? JSON.parse(text) : {};
|
|
682
|
+
break;
|
|
683
|
+
}
|
|
684
|
+
case 'stream':
|
|
685
|
+
return opts.responseStyle === 'data' ? response.body : {
|
|
686
|
+
data: response.body,
|
|
687
|
+
...result
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
if (parseAs === 'json') {
|
|
691
|
+
if (opts.responseValidator) {
|
|
692
|
+
await opts.responseValidator(data);
|
|
693
|
+
}
|
|
694
|
+
if (opts.responseTransformer) {
|
|
695
|
+
data = await opts.responseTransformer(data);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
return opts.responseStyle === 'data' ? data : {
|
|
699
|
+
data,
|
|
700
|
+
...result
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
const textError = await response.text();
|
|
704
|
+
let jsonError;
|
|
705
|
+
try {
|
|
706
|
+
jsonError = JSON.parse(textError);
|
|
707
|
+
} catch {
|
|
708
|
+
// noop
|
|
709
|
+
}
|
|
710
|
+
throw jsonError ?? textError;
|
|
711
|
+
} catch (error) {
|
|
712
|
+
let finalError = error;
|
|
713
|
+
for (const fn of interceptors.error.fns){
|
|
714
|
+
if (fn) {
|
|
715
|
+
finalError = await fn(finalError, response, request, options);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
finalError = finalError || {};
|
|
719
|
+
if (throwOnError) {
|
|
720
|
+
throw finalError;
|
|
721
|
+
}
|
|
722
|
+
// TODO: we probably want to return error and improve types
|
|
723
|
+
return responseStyle === 'data' ? undefined : {
|
|
724
|
+
error: finalError,
|
|
725
|
+
request,
|
|
726
|
+
response
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
};
|
|
730
|
+
const makeMethodFn = (method)=>(options)=>request({
|
|
731
|
+
...options,
|
|
732
|
+
method
|
|
733
|
+
});
|
|
734
|
+
const makeSseFn = (method)=>async (options)=>{
|
|
735
|
+
const { opts, url } = await beforeRequest(options);
|
|
736
|
+
return createSseClient({
|
|
737
|
+
...opts,
|
|
738
|
+
body: opts.body,
|
|
739
|
+
method,
|
|
740
|
+
onRequest: async (url, init)=>{
|
|
741
|
+
let request = new Request(url, init);
|
|
742
|
+
for (const fn of interceptors.request.fns){
|
|
743
|
+
if (fn) {
|
|
744
|
+
request = await fn(request, opts);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
return request;
|
|
748
|
+
},
|
|
749
|
+
serializedBody: getValidRequestBody(opts),
|
|
750
|
+
url
|
|
751
|
+
});
|
|
752
|
+
};
|
|
753
|
+
const _buildUrl = (options)=>buildUrl({
|
|
754
|
+
..._config,
|
|
755
|
+
...options
|
|
756
|
+
});
|
|
757
|
+
return {
|
|
758
|
+
buildUrl: _buildUrl,
|
|
759
|
+
connect: makeMethodFn('CONNECT'),
|
|
760
|
+
delete: makeMethodFn('DELETE'),
|
|
761
|
+
get: makeMethodFn('GET'),
|
|
762
|
+
getConfig,
|
|
763
|
+
head: makeMethodFn('HEAD'),
|
|
764
|
+
interceptors,
|
|
765
|
+
options: makeMethodFn('OPTIONS'),
|
|
766
|
+
patch: makeMethodFn('PATCH'),
|
|
767
|
+
post: makeMethodFn('POST'),
|
|
768
|
+
put: makeMethodFn('PUT'),
|
|
769
|
+
request,
|
|
770
|
+
setConfig,
|
|
771
|
+
sse: {
|
|
772
|
+
connect: makeSseFn('CONNECT'),
|
|
773
|
+
delete: makeSseFn('DELETE'),
|
|
774
|
+
get: makeSseFn('GET'),
|
|
775
|
+
head: makeSseFn('HEAD'),
|
|
776
|
+
options: makeSseFn('OPTIONS'),
|
|
777
|
+
patch: makeSseFn('PATCH'),
|
|
778
|
+
post: makeSseFn('POST'),
|
|
779
|
+
put: makeSseFn('PUT'),
|
|
780
|
+
trace: makeSseFn('TRACE')
|
|
781
|
+
},
|
|
782
|
+
trace: makeMethodFn('TRACE')
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
const createRampSiteClient = ({ baseUrl, getAuthToken, ...config })=>createClient(createConfig({
|
|
787
|
+
baseUrl,
|
|
788
|
+
...getAuthToken ? {
|
|
789
|
+
auth: getAuthToken
|
|
790
|
+
} : {},
|
|
791
|
+
...config
|
|
792
|
+
}));
|
|
793
|
+
|
|
794
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
795
|
+
const client = createClient(createConfig());
|
|
796
|
+
|
|
797
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
798
|
+
/**
|
|
799
|
+
* POST algolia-secured-key
|
|
800
|
+
*/ const postApiAlgoliaSecuredKey = (options)=>(options?.client ?? client).post({
|
|
801
|
+
security: [
|
|
802
|
+
{
|
|
803
|
+
in: 'cookie',
|
|
804
|
+
name: 'next-auth.session-token',
|
|
805
|
+
type: 'apiKey'
|
|
806
|
+
}
|
|
807
|
+
],
|
|
808
|
+
url: '/api/algolia-secured-key',
|
|
809
|
+
...options
|
|
810
|
+
});
|
|
811
|
+
/**
|
|
812
|
+
* GET campaign
|
|
813
|
+
*/ const getApiCampaign = (options)=>(options?.client ?? client).get({
|
|
814
|
+
security: [
|
|
815
|
+
{
|
|
816
|
+
in: 'cookie',
|
|
817
|
+
name: 'next-auth.session-token',
|
|
818
|
+
type: 'apiKey'
|
|
819
|
+
}
|
|
820
|
+
],
|
|
821
|
+
url: '/api/campaign',
|
|
822
|
+
...options
|
|
823
|
+
});
|
|
824
|
+
/**
|
|
825
|
+
* DELETE conversation-memory / conversation-summaries
|
|
826
|
+
*/ const deleteApiConversationMemoryConversationSummaries = (options)=>(options.client ?? client).delete({
|
|
827
|
+
security: [
|
|
828
|
+
{
|
|
829
|
+
in: 'cookie',
|
|
830
|
+
name: 'next-auth.session-token',
|
|
831
|
+
type: 'apiKey'
|
|
832
|
+
}
|
|
833
|
+
],
|
|
834
|
+
url: '/api/conversation-memory/conversation-summaries',
|
|
835
|
+
...options
|
|
836
|
+
});
|
|
837
|
+
/**
|
|
838
|
+
* GET conversation-memory / conversation-summaries
|
|
839
|
+
*/ const getApiConversationMemoryConversationSummaries = (options)=>(options.client ?? client).get({
|
|
840
|
+
security: [
|
|
841
|
+
{
|
|
842
|
+
in: 'cookie',
|
|
843
|
+
name: 'next-auth.session-token',
|
|
844
|
+
type: 'apiKey'
|
|
845
|
+
}
|
|
846
|
+
],
|
|
847
|
+
url: '/api/conversation-memory/conversation-summaries',
|
|
848
|
+
...options
|
|
849
|
+
});
|
|
850
|
+
/**
|
|
851
|
+
* PATCH conversation-memory / conversation-summaries
|
|
852
|
+
*/ const patchApiConversationMemoryConversationSummaries = (options)=>(options.client ?? client).patch({
|
|
853
|
+
security: [
|
|
854
|
+
{
|
|
855
|
+
in: 'cookie',
|
|
856
|
+
name: 'next-auth.session-token',
|
|
857
|
+
type: 'apiKey'
|
|
858
|
+
}
|
|
859
|
+
],
|
|
860
|
+
url: '/api/conversation-memory/conversation-summaries',
|
|
861
|
+
...options,
|
|
862
|
+
headers: {
|
|
863
|
+
'Content-Type': 'application/json',
|
|
864
|
+
...options.headers
|
|
865
|
+
}
|
|
866
|
+
});
|
|
867
|
+
/**
|
|
868
|
+
* POST conversation-memory / conversation-summaries
|
|
869
|
+
*/ const postApiConversationMemoryConversationSummaries = (options)=>(options.client ?? client).post({
|
|
870
|
+
security: [
|
|
871
|
+
{
|
|
872
|
+
in: 'cookie',
|
|
873
|
+
name: 'next-auth.session-token',
|
|
874
|
+
type: 'apiKey'
|
|
875
|
+
}
|
|
876
|
+
],
|
|
877
|
+
url: '/api/conversation-memory/conversation-summaries',
|
|
878
|
+
...options,
|
|
879
|
+
headers: {
|
|
880
|
+
'Content-Type': 'application/json',
|
|
881
|
+
...options.headers
|
|
882
|
+
}
|
|
883
|
+
});
|
|
884
|
+
/**
|
|
885
|
+
* DELETE conversation-memory / identifiers
|
|
886
|
+
*/ const deleteApiConversationMemoryIdentifiers = (options)=>(options.client ?? client).delete({
|
|
887
|
+
security: [
|
|
888
|
+
{
|
|
889
|
+
in: 'cookie',
|
|
890
|
+
name: 'next-auth.session-token',
|
|
891
|
+
type: 'apiKey'
|
|
892
|
+
}
|
|
893
|
+
],
|
|
894
|
+
url: '/api/conversation-memory/identifiers',
|
|
895
|
+
...options
|
|
896
|
+
});
|
|
897
|
+
/**
|
|
898
|
+
* GET conversation-memory / identifiers
|
|
899
|
+
*/ const getApiConversationMemoryIdentifiers = (options)=>(options.client ?? client).get({
|
|
900
|
+
security: [
|
|
901
|
+
{
|
|
902
|
+
in: 'cookie',
|
|
903
|
+
name: 'next-auth.session-token',
|
|
904
|
+
type: 'apiKey'
|
|
905
|
+
}
|
|
906
|
+
],
|
|
907
|
+
url: '/api/conversation-memory/identifiers',
|
|
908
|
+
...options
|
|
909
|
+
});
|
|
910
|
+
/**
|
|
911
|
+
* PATCH conversation-memory / identifiers
|
|
912
|
+
*/ const patchApiConversationMemoryIdentifiers = (options)=>(options.client ?? client).patch({
|
|
913
|
+
security: [
|
|
914
|
+
{
|
|
915
|
+
in: 'cookie',
|
|
916
|
+
name: 'next-auth.session-token',
|
|
917
|
+
type: 'apiKey'
|
|
918
|
+
}
|
|
919
|
+
],
|
|
920
|
+
url: '/api/conversation-memory/identifiers',
|
|
921
|
+
...options,
|
|
922
|
+
headers: {
|
|
923
|
+
'Content-Type': 'application/json',
|
|
924
|
+
...options.headers
|
|
925
|
+
}
|
|
926
|
+
});
|
|
927
|
+
/**
|
|
928
|
+
* POST conversation-memory / identifiers
|
|
929
|
+
*/ const postApiConversationMemoryIdentifiers = (options)=>(options.client ?? client).post({
|
|
930
|
+
security: [
|
|
931
|
+
{
|
|
932
|
+
in: 'cookie',
|
|
933
|
+
name: 'next-auth.session-token',
|
|
934
|
+
type: 'apiKey'
|
|
935
|
+
}
|
|
936
|
+
],
|
|
937
|
+
url: '/api/conversation-memory/identifiers',
|
|
938
|
+
...options,
|
|
939
|
+
headers: {
|
|
940
|
+
'Content-Type': 'application/json',
|
|
941
|
+
...options.headers
|
|
942
|
+
}
|
|
943
|
+
});
|
|
944
|
+
/**
|
|
945
|
+
* DELETE conversation-memory / observations
|
|
946
|
+
*/ const deleteApiConversationMemoryObservations = (options)=>(options.client ?? client).delete({
|
|
947
|
+
security: [
|
|
948
|
+
{
|
|
949
|
+
in: 'cookie',
|
|
950
|
+
name: 'next-auth.session-token',
|
|
951
|
+
type: 'apiKey'
|
|
952
|
+
}
|
|
953
|
+
],
|
|
954
|
+
url: '/api/conversation-memory/observations',
|
|
955
|
+
...options
|
|
956
|
+
});
|
|
957
|
+
/**
|
|
958
|
+
* GET conversation-memory / observations
|
|
959
|
+
*/ const getApiConversationMemoryObservations = (options)=>(options.client ?? client).get({
|
|
960
|
+
security: [
|
|
961
|
+
{
|
|
962
|
+
in: 'cookie',
|
|
963
|
+
name: 'next-auth.session-token',
|
|
964
|
+
type: 'apiKey'
|
|
965
|
+
}
|
|
966
|
+
],
|
|
967
|
+
url: '/api/conversation-memory/observations',
|
|
968
|
+
...options
|
|
969
|
+
});
|
|
970
|
+
/**
|
|
971
|
+
* PATCH conversation-memory / observations
|
|
972
|
+
*/ const patchApiConversationMemoryObservations = (options)=>(options.client ?? client).patch({
|
|
973
|
+
security: [
|
|
974
|
+
{
|
|
975
|
+
in: 'cookie',
|
|
976
|
+
name: 'next-auth.session-token',
|
|
977
|
+
type: 'apiKey'
|
|
978
|
+
}
|
|
979
|
+
],
|
|
980
|
+
url: '/api/conversation-memory/observations',
|
|
981
|
+
...options,
|
|
982
|
+
headers: {
|
|
983
|
+
'Content-Type': 'application/json',
|
|
984
|
+
...options.headers
|
|
985
|
+
}
|
|
986
|
+
});
|
|
987
|
+
/**
|
|
988
|
+
* POST conversation-memory / observations
|
|
989
|
+
*/ const postApiConversationMemoryObservations = (options)=>(options.client ?? client).post({
|
|
990
|
+
security: [
|
|
991
|
+
{
|
|
992
|
+
in: 'cookie',
|
|
993
|
+
name: 'next-auth.session-token',
|
|
994
|
+
type: 'apiKey'
|
|
995
|
+
}
|
|
996
|
+
],
|
|
997
|
+
url: '/api/conversation-memory/observations',
|
|
998
|
+
...options,
|
|
999
|
+
headers: {
|
|
1000
|
+
'Content-Type': 'application/json',
|
|
1001
|
+
...options.headers
|
|
1002
|
+
}
|
|
1003
|
+
});
|
|
1004
|
+
/**
|
|
1005
|
+
* DELETE conversation-memory / profiles
|
|
1006
|
+
*/ const deleteApiConversationMemoryProfiles = (options)=>(options.client ?? client).delete({
|
|
1007
|
+
security: [
|
|
1008
|
+
{
|
|
1009
|
+
in: 'cookie',
|
|
1010
|
+
name: 'next-auth.session-token',
|
|
1011
|
+
type: 'apiKey'
|
|
1012
|
+
}
|
|
1013
|
+
],
|
|
1014
|
+
url: '/api/conversation-memory/profiles',
|
|
1015
|
+
...options
|
|
1016
|
+
});
|
|
1017
|
+
/**
|
|
1018
|
+
* GET conversation-memory / profiles
|
|
1019
|
+
*/ const getApiConversationMemoryProfiles = (options)=>(options?.client ?? client).get({
|
|
1020
|
+
security: [
|
|
1021
|
+
{
|
|
1022
|
+
in: 'cookie',
|
|
1023
|
+
name: 'next-auth.session-token',
|
|
1024
|
+
type: 'apiKey'
|
|
1025
|
+
}
|
|
1026
|
+
],
|
|
1027
|
+
url: '/api/conversation-memory/profiles',
|
|
1028
|
+
...options
|
|
1029
|
+
});
|
|
1030
|
+
/**
|
|
1031
|
+
* PATCH conversation-memory / profiles
|
|
1032
|
+
*/ const patchApiConversationMemoryProfiles = (options)=>(options.client ?? client).patch({
|
|
1033
|
+
security: [
|
|
1034
|
+
{
|
|
1035
|
+
in: 'cookie',
|
|
1036
|
+
name: 'next-auth.session-token',
|
|
1037
|
+
type: 'apiKey'
|
|
1038
|
+
}
|
|
1039
|
+
],
|
|
1040
|
+
url: '/api/conversation-memory/profiles',
|
|
1041
|
+
...options,
|
|
1042
|
+
headers: {
|
|
1043
|
+
'Content-Type': 'application/json',
|
|
1044
|
+
...options.headers
|
|
1045
|
+
}
|
|
1046
|
+
});
|
|
1047
|
+
/**
|
|
1048
|
+
* POST conversation-memory / profiles
|
|
1049
|
+
*/ const postApiConversationMemoryProfiles = (options)=>(options.client ?? client).post({
|
|
1050
|
+
security: [
|
|
1051
|
+
{
|
|
1052
|
+
in: 'cookie',
|
|
1053
|
+
name: 'next-auth.session-token',
|
|
1054
|
+
type: 'apiKey'
|
|
1055
|
+
}
|
|
1056
|
+
],
|
|
1057
|
+
url: '/api/conversation-memory/profiles',
|
|
1058
|
+
...options,
|
|
1059
|
+
headers: {
|
|
1060
|
+
'Content-Type': 'application/json',
|
|
1061
|
+
...options.headers
|
|
1062
|
+
}
|
|
1063
|
+
});
|
|
1064
|
+
/**
|
|
1065
|
+
* POST conversation-memory / profiles-lookup
|
|
1066
|
+
*/ const postApiConversationMemoryProfilesLookup = (options)=>(options.client ?? client).post({
|
|
1067
|
+
security: [
|
|
1068
|
+
{
|
|
1069
|
+
in: 'cookie',
|
|
1070
|
+
name: 'next-auth.session-token',
|
|
1071
|
+
type: 'apiKey'
|
|
1072
|
+
}
|
|
1073
|
+
],
|
|
1074
|
+
url: '/api/conversation-memory/profiles-lookup',
|
|
1075
|
+
...options,
|
|
1076
|
+
headers: {
|
|
1077
|
+
'Content-Type': 'application/json',
|
|
1078
|
+
...options.headers
|
|
1079
|
+
}
|
|
1080
|
+
});
|
|
1081
|
+
/**
|
|
1082
|
+
* POST conversation-memory / recall
|
|
1083
|
+
*/ const postApiConversationMemoryRecall = (options)=>(options.client ?? client).post({
|
|
1084
|
+
security: [
|
|
1085
|
+
{
|
|
1086
|
+
in: 'cookie',
|
|
1087
|
+
name: 'next-auth.session-token',
|
|
1088
|
+
type: 'apiKey'
|
|
1089
|
+
}
|
|
1090
|
+
],
|
|
1091
|
+
url: '/api/conversation-memory/recall',
|
|
1092
|
+
...options,
|
|
1093
|
+
headers: {
|
|
1094
|
+
'Content-Type': 'application/json',
|
|
1095
|
+
...options.headers
|
|
1096
|
+
}
|
|
1097
|
+
});
|
|
1098
|
+
/**
|
|
1099
|
+
* DELETE conversation-memory / reset
|
|
1100
|
+
*/ const deleteApiConversationMemoryReset = (options)=>(options.client ?? client).delete({
|
|
1101
|
+
security: [
|
|
1102
|
+
{
|
|
1103
|
+
in: 'cookie',
|
|
1104
|
+
name: 'next-auth.session-token',
|
|
1105
|
+
type: 'apiKey'
|
|
1106
|
+
}
|
|
1107
|
+
],
|
|
1108
|
+
url: '/api/conversation-memory/reset',
|
|
1109
|
+
...options
|
|
1110
|
+
});
|
|
1111
|
+
/**
|
|
1112
|
+
* GET conversation-memory / trait-groups
|
|
1113
|
+
*/ const getApiConversationMemoryTraitGroups = (options)=>(options?.client ?? client).get({
|
|
1114
|
+
security: [
|
|
1115
|
+
{
|
|
1116
|
+
in: 'cookie',
|
|
1117
|
+
name: 'next-auth.session-token',
|
|
1118
|
+
type: 'apiKey'
|
|
1119
|
+
}
|
|
1120
|
+
],
|
|
1121
|
+
url: '/api/conversation-memory/trait-groups',
|
|
1122
|
+
...options
|
|
1123
|
+
});
|
|
1124
|
+
/**
|
|
1125
|
+
* PATCH conversation-memory / trait-groups
|
|
1126
|
+
*/ const patchApiConversationMemoryTraitGroups = (options)=>(options.client ?? client).patch({
|
|
1127
|
+
security: [
|
|
1128
|
+
{
|
|
1129
|
+
in: 'cookie',
|
|
1130
|
+
name: 'next-auth.session-token',
|
|
1131
|
+
type: 'apiKey'
|
|
1132
|
+
}
|
|
1133
|
+
],
|
|
1134
|
+
url: '/api/conversation-memory/trait-groups',
|
|
1135
|
+
...options,
|
|
1136
|
+
headers: {
|
|
1137
|
+
'Content-Type': 'application/json',
|
|
1138
|
+
...options.headers
|
|
1139
|
+
}
|
|
1140
|
+
});
|
|
1141
|
+
/**
|
|
1142
|
+
* POST conversation-memory / trait-groups
|
|
1143
|
+
*/ const postApiConversationMemoryTraitGroups = (options)=>(options.client ?? client).post({
|
|
1144
|
+
security: [
|
|
1145
|
+
{
|
|
1146
|
+
in: 'cookie',
|
|
1147
|
+
name: 'next-auth.session-token',
|
|
1148
|
+
type: 'apiKey'
|
|
1149
|
+
}
|
|
1150
|
+
],
|
|
1151
|
+
url: '/api/conversation-memory/trait-groups',
|
|
1152
|
+
...options,
|
|
1153
|
+
headers: {
|
|
1154
|
+
'Content-Type': 'application/json',
|
|
1155
|
+
...options.headers
|
|
1156
|
+
}
|
|
1157
|
+
});
|
|
1158
|
+
/**
|
|
1159
|
+
* GET conversation-memory / traits
|
|
1160
|
+
*/ const getApiConversationMemoryTraits = (options)=>(options.client ?? client).get({
|
|
1161
|
+
security: [
|
|
1162
|
+
{
|
|
1163
|
+
in: 'cookie',
|
|
1164
|
+
name: 'next-auth.session-token',
|
|
1165
|
+
type: 'apiKey'
|
|
1166
|
+
}
|
|
1167
|
+
],
|
|
1168
|
+
url: '/api/conversation-memory/traits',
|
|
1169
|
+
...options
|
|
1170
|
+
});
|
|
1171
|
+
/**
|
|
1172
|
+
* DELETE conversational-intelligence-operator
|
|
1173
|
+
*/ const deleteApiConversationalIntelligenceOperator = (options)=>(options.client ?? client).delete({
|
|
1174
|
+
security: [
|
|
1175
|
+
{
|
|
1176
|
+
in: 'cookie',
|
|
1177
|
+
name: 'next-auth.session-token',
|
|
1178
|
+
type: 'apiKey'
|
|
1179
|
+
}
|
|
1180
|
+
],
|
|
1181
|
+
url: '/api/conversational-intelligence-operator',
|
|
1182
|
+
...options
|
|
1183
|
+
});
|
|
1184
|
+
/**
|
|
1185
|
+
* GET conversational-intelligence-operator
|
|
1186
|
+
*/ const getApiConversationalIntelligenceOperator = (options)=>(options?.client ?? client).get({
|
|
1187
|
+
security: [
|
|
1188
|
+
{
|
|
1189
|
+
in: 'cookie',
|
|
1190
|
+
name: 'next-auth.session-token',
|
|
1191
|
+
type: 'apiKey'
|
|
1192
|
+
}
|
|
1193
|
+
],
|
|
1194
|
+
url: '/api/conversational-intelligence-operator',
|
|
1195
|
+
...options
|
|
1196
|
+
});
|
|
1197
|
+
/**
|
|
1198
|
+
* POST conversational-intelligence-operator
|
|
1199
|
+
*/ const postApiConversationalIntelligenceOperator = (options)=>(options.client ?? client).post({
|
|
1200
|
+
security: [
|
|
1201
|
+
{
|
|
1202
|
+
in: 'cookie',
|
|
1203
|
+
name: 'next-auth.session-token',
|
|
1204
|
+
type: 'apiKey'
|
|
1205
|
+
}
|
|
1206
|
+
],
|
|
1207
|
+
url: '/api/conversational-intelligence-operator',
|
|
1208
|
+
...options,
|
|
1209
|
+
headers: {
|
|
1210
|
+
'Content-Type': 'application/json',
|
|
1211
|
+
...options.headers
|
|
1212
|
+
}
|
|
1213
|
+
});
|
|
1214
|
+
/**
|
|
1215
|
+
* PUT conversational-intelligence-operator
|
|
1216
|
+
*/ const putApiConversationalIntelligenceOperator = (options)=>(options.client ?? client).put({
|
|
1217
|
+
security: [
|
|
1218
|
+
{
|
|
1219
|
+
in: 'cookie',
|
|
1220
|
+
name: 'next-auth.session-token',
|
|
1221
|
+
type: 'apiKey'
|
|
1222
|
+
}
|
|
1223
|
+
],
|
|
1224
|
+
url: '/api/conversational-intelligence-operator',
|
|
1225
|
+
...options,
|
|
1226
|
+
headers: {
|
|
1227
|
+
'Content-Type': 'application/json',
|
|
1228
|
+
...options.headers
|
|
1229
|
+
}
|
|
1230
|
+
});
|
|
1231
|
+
/**
|
|
1232
|
+
* DELETE conversations / delete
|
|
1233
|
+
*/ const deleteApiConversationsDelete = (options)=>(options?.client ?? client).delete({
|
|
1234
|
+
security: [
|
|
1235
|
+
{
|
|
1236
|
+
in: 'cookie',
|
|
1237
|
+
name: 'next-auth.session-token',
|
|
1238
|
+
type: 'apiKey'
|
|
1239
|
+
}
|
|
1240
|
+
],
|
|
1241
|
+
url: '/api/conversations/delete',
|
|
1242
|
+
...options
|
|
1243
|
+
});
|
|
1244
|
+
/**
|
|
1245
|
+
* POST conversations / save
|
|
1246
|
+
*/ const postApiConversationsSave = (options)=>(options.client ?? client).post({
|
|
1247
|
+
security: [
|
|
1248
|
+
{
|
|
1249
|
+
in: 'cookie',
|
|
1250
|
+
name: 'next-auth.session-token',
|
|
1251
|
+
type: 'apiKey'
|
|
1252
|
+
}
|
|
1253
|
+
],
|
|
1254
|
+
url: '/api/conversations/save',
|
|
1255
|
+
...options,
|
|
1256
|
+
headers: {
|
|
1257
|
+
'Content-Type': 'application/json',
|
|
1258
|
+
...options.headers
|
|
1259
|
+
}
|
|
1260
|
+
});
|
|
1261
|
+
/**
|
|
1262
|
+
* POST conversations / share
|
|
1263
|
+
*/ const postApiConversationsShare = (options)=>(options.client ?? client).post({
|
|
1264
|
+
security: [
|
|
1265
|
+
{
|
|
1266
|
+
in: 'cookie',
|
|
1267
|
+
name: 'next-auth.session-token',
|
|
1268
|
+
type: 'apiKey'
|
|
1269
|
+
}
|
|
1270
|
+
],
|
|
1271
|
+
url: '/api/conversations/share',
|
|
1272
|
+
...options,
|
|
1273
|
+
headers: {
|
|
1274
|
+
'Content-Type': 'application/json',
|
|
1275
|
+
...options.headers
|
|
1276
|
+
}
|
|
1277
|
+
});
|
|
1278
|
+
/**
|
|
1279
|
+
* GET country-configs
|
|
1280
|
+
*/ const getApiCountryConfigs = (options)=>(options?.client ?? client).get({
|
|
1281
|
+
security: [
|
|
1282
|
+
{
|
|
1283
|
+
in: 'cookie',
|
|
1284
|
+
name: 'next-auth.session-token',
|
|
1285
|
+
type: 'apiKey'
|
|
1286
|
+
}
|
|
1287
|
+
],
|
|
1288
|
+
url: '/api/country-configs',
|
|
1289
|
+
...options
|
|
1290
|
+
});
|
|
1291
|
+
/**
|
|
1292
|
+
* POST create-external-flex-connection
|
|
1293
|
+
*/ const postApiCreateExternalFlexConnection = (options)=>(options.client ?? client).post({
|
|
1294
|
+
security: [
|
|
1295
|
+
{
|
|
1296
|
+
in: 'cookie',
|
|
1297
|
+
name: 'next-auth.session-token',
|
|
1298
|
+
type: 'apiKey'
|
|
1299
|
+
}
|
|
1300
|
+
],
|
|
1301
|
+
url: '/api/create-external-flex-connection',
|
|
1302
|
+
...options,
|
|
1303
|
+
headers: {
|
|
1304
|
+
'Content-Type': 'application/json',
|
|
1305
|
+
...options.headers
|
|
1306
|
+
}
|
|
1307
|
+
});
|
|
1308
|
+
/**
|
|
1309
|
+
* POST enhance-prompt
|
|
1310
|
+
*/ const postApiEnhancePrompt = (options)=>(options.client ?? client).post({
|
|
1311
|
+
security: [
|
|
1312
|
+
{
|
|
1313
|
+
in: 'cookie',
|
|
1314
|
+
name: 'next-auth.session-token',
|
|
1315
|
+
type: 'apiKey'
|
|
1316
|
+
}
|
|
1317
|
+
],
|
|
1318
|
+
url: '/api/enhance-prompt',
|
|
1319
|
+
...options,
|
|
1320
|
+
headers: {
|
|
1321
|
+
'Content-Type': 'application/json',
|
|
1322
|
+
...options.headers
|
|
1323
|
+
}
|
|
1324
|
+
});
|
|
1325
|
+
/**
|
|
1326
|
+
* POST generate-tags
|
|
1327
|
+
*/ const postApiGenerateTags = (options)=>(options.client ?? client).post({
|
|
1328
|
+
security: [
|
|
1329
|
+
{
|
|
1330
|
+
in: 'cookie',
|
|
1331
|
+
name: 'next-auth.session-token',
|
|
1332
|
+
type: 'apiKey'
|
|
1333
|
+
}
|
|
1334
|
+
],
|
|
1335
|
+
url: '/api/generate-tags',
|
|
1336
|
+
...options,
|
|
1337
|
+
headers: {
|
|
1338
|
+
'Content-Type': 'application/json',
|
|
1339
|
+
...options.headers
|
|
1340
|
+
}
|
|
1341
|
+
});
|
|
1342
|
+
/**
|
|
1343
|
+
* POST increment-view-count
|
|
1344
|
+
*/ const postApiIncrementViewCount = (options)=>(options.client ?? client).post({
|
|
1345
|
+
security: [
|
|
1346
|
+
{
|
|
1347
|
+
in: 'cookie',
|
|
1348
|
+
name: 'next-auth.session-token',
|
|
1349
|
+
type: 'apiKey'
|
|
1350
|
+
}
|
|
1351
|
+
],
|
|
1352
|
+
url: '/api/increment-view-count',
|
|
1353
|
+
...options,
|
|
1354
|
+
headers: {
|
|
1355
|
+
'Content-Type': 'application/json',
|
|
1356
|
+
...options.headers
|
|
1357
|
+
}
|
|
1358
|
+
});
|
|
1359
|
+
/**
|
|
1360
|
+
* GET intelligence-configuration
|
|
1361
|
+
*/ const getApiIntelligenceConfiguration = (options)=>(options?.client ?? client).get({
|
|
1362
|
+
security: [
|
|
1363
|
+
{
|
|
1364
|
+
in: 'cookie',
|
|
1365
|
+
name: 'next-auth.session-token',
|
|
1366
|
+
type: 'apiKey'
|
|
1367
|
+
}
|
|
1368
|
+
],
|
|
1369
|
+
url: '/api/intelligence-configuration',
|
|
1370
|
+
...options
|
|
1371
|
+
});
|
|
1372
|
+
/**
|
|
1373
|
+
* POST intelligence-configuration
|
|
1374
|
+
*/ const postApiIntelligenceConfiguration = (options)=>(options.client ?? client).post({
|
|
1375
|
+
security: [
|
|
1376
|
+
{
|
|
1377
|
+
in: 'cookie',
|
|
1378
|
+
name: 'next-auth.session-token',
|
|
1379
|
+
type: 'apiKey'
|
|
1380
|
+
}
|
|
1381
|
+
],
|
|
1382
|
+
url: '/api/intelligence-configuration',
|
|
1383
|
+
...options,
|
|
1384
|
+
headers: {
|
|
1385
|
+
'Content-Type': 'application/json',
|
|
1386
|
+
...options.headers
|
|
1387
|
+
}
|
|
1388
|
+
});
|
|
1389
|
+
/**
|
|
1390
|
+
* PUT intelligence-configuration
|
|
1391
|
+
*/ const putApiIntelligenceConfiguration = (options)=>(options.client ?? client).put({
|
|
1392
|
+
security: [
|
|
1393
|
+
{
|
|
1394
|
+
in: 'cookie',
|
|
1395
|
+
name: 'next-auth.session-token',
|
|
1396
|
+
type: 'apiKey'
|
|
1397
|
+
}
|
|
1398
|
+
],
|
|
1399
|
+
url: '/api/intelligence-configuration',
|
|
1400
|
+
...options,
|
|
1401
|
+
headers: {
|
|
1402
|
+
'Content-Type': 'application/json',
|
|
1403
|
+
...options.headers
|
|
1404
|
+
}
|
|
1405
|
+
});
|
|
1406
|
+
/**
|
|
1407
|
+
* GET internal-nav
|
|
1408
|
+
*/ const getApiInternalNav = (options)=>(options?.client ?? client).get({
|
|
1409
|
+
security: [
|
|
1410
|
+
{
|
|
1411
|
+
in: 'cookie',
|
|
1412
|
+
name: 'next-auth.session-token',
|
|
1413
|
+
type: 'apiKey'
|
|
1414
|
+
}
|
|
1415
|
+
],
|
|
1416
|
+
url: '/api/internal-nav',
|
|
1417
|
+
...options
|
|
1418
|
+
});
|
|
1419
|
+
/**
|
|
1420
|
+
* GET isv / logo
|
|
1421
|
+
*/ const getApiIsvLogo = (options)=>(options.client ?? client).get({
|
|
1422
|
+
security: [
|
|
1423
|
+
{
|
|
1424
|
+
in: 'cookie',
|
|
1425
|
+
name: 'next-auth.session-token',
|
|
1426
|
+
type: 'apiKey'
|
|
1427
|
+
}
|
|
1428
|
+
],
|
|
1429
|
+
url: '/api/isv/logo',
|
|
1430
|
+
...options
|
|
1431
|
+
});
|
|
1432
|
+
/**
|
|
1433
|
+
* DELETE lead-gen
|
|
1434
|
+
*/ const deleteApiLeadGen = (options)=>(options?.client ?? client).delete({
|
|
1435
|
+
security: [
|
|
1436
|
+
{
|
|
1437
|
+
in: 'cookie',
|
|
1438
|
+
name: 'next-auth.session-token',
|
|
1439
|
+
type: 'apiKey'
|
|
1440
|
+
}
|
|
1441
|
+
],
|
|
1442
|
+
url: '/api/lead-gen',
|
|
1443
|
+
...options
|
|
1444
|
+
});
|
|
1445
|
+
/**
|
|
1446
|
+
* GET lead-gen
|
|
1447
|
+
*/ const getApiLeadGen = (options)=>(options.client ?? client).get({
|
|
1448
|
+
security: [
|
|
1449
|
+
{
|
|
1450
|
+
in: 'cookie',
|
|
1451
|
+
name: 'next-auth.session-token',
|
|
1452
|
+
type: 'apiKey'
|
|
1453
|
+
}
|
|
1454
|
+
],
|
|
1455
|
+
url: '/api/lead-gen',
|
|
1456
|
+
...options
|
|
1457
|
+
});
|
|
1458
|
+
/**
|
|
1459
|
+
* PATCH lead-gen
|
|
1460
|
+
*/ const patchApiLeadGen = (options)=>(options.client ?? client).patch({
|
|
1461
|
+
security: [
|
|
1462
|
+
{
|
|
1463
|
+
in: 'cookie',
|
|
1464
|
+
name: 'next-auth.session-token',
|
|
1465
|
+
type: 'apiKey'
|
|
1466
|
+
}
|
|
1467
|
+
],
|
|
1468
|
+
url: '/api/lead-gen',
|
|
1469
|
+
...options,
|
|
1470
|
+
headers: {
|
|
1471
|
+
'Content-Type': 'application/json',
|
|
1472
|
+
...options.headers
|
|
1473
|
+
}
|
|
1474
|
+
});
|
|
1475
|
+
/**
|
|
1476
|
+
* POST lead-gen
|
|
1477
|
+
*/ const postApiLeadGen = (options)=>(options.client ?? client).post({
|
|
1478
|
+
security: [
|
|
1479
|
+
{
|
|
1480
|
+
in: 'cookie',
|
|
1481
|
+
name: 'next-auth.session-token',
|
|
1482
|
+
type: 'apiKey'
|
|
1483
|
+
}
|
|
1484
|
+
],
|
|
1485
|
+
url: '/api/lead-gen',
|
|
1486
|
+
...options,
|
|
1487
|
+
headers: {
|
|
1488
|
+
'Content-Type': 'application/json',
|
|
1489
|
+
...options.headers
|
|
1490
|
+
}
|
|
1491
|
+
});
|
|
1492
|
+
/**
|
|
1493
|
+
* DELETE link-shortener
|
|
1494
|
+
*/ const deleteApiLinkShortener = (options)=>(options.client ?? client).delete({
|
|
1495
|
+
security: [
|
|
1496
|
+
{
|
|
1497
|
+
in: 'cookie',
|
|
1498
|
+
name: 'next-auth.session-token',
|
|
1499
|
+
type: 'apiKey'
|
|
1500
|
+
}
|
|
1501
|
+
],
|
|
1502
|
+
url: '/api/link-shortener',
|
|
1503
|
+
...options
|
|
1504
|
+
});
|
|
1505
|
+
/**
|
|
1506
|
+
* GET link-shortener
|
|
1507
|
+
*/ const getApiLinkShortener = (options)=>(options?.client ?? client).get({
|
|
1508
|
+
security: [
|
|
1509
|
+
{
|
|
1510
|
+
in: 'cookie',
|
|
1511
|
+
name: 'next-auth.session-token',
|
|
1512
|
+
type: 'apiKey'
|
|
1513
|
+
}
|
|
1514
|
+
],
|
|
1515
|
+
url: '/api/link-shortener',
|
|
1516
|
+
...options
|
|
1517
|
+
});
|
|
1518
|
+
/**
|
|
1519
|
+
* PATCH link-shortener
|
|
1520
|
+
*/ const patchApiLinkShortener = (options)=>(options.client ?? client).patch({
|
|
1521
|
+
security: [
|
|
1522
|
+
{
|
|
1523
|
+
in: 'cookie',
|
|
1524
|
+
name: 'next-auth.session-token',
|
|
1525
|
+
type: 'apiKey'
|
|
1526
|
+
}
|
|
1527
|
+
],
|
|
1528
|
+
url: '/api/link-shortener',
|
|
1529
|
+
...options,
|
|
1530
|
+
headers: {
|
|
1531
|
+
'Content-Type': 'application/json',
|
|
1532
|
+
...options.headers
|
|
1533
|
+
}
|
|
1534
|
+
});
|
|
1535
|
+
/**
|
|
1536
|
+
* POST link-shortener
|
|
1537
|
+
*/ const postApiLinkShortener = (options)=>(options.client ?? client).post({
|
|
1538
|
+
security: [
|
|
1539
|
+
{
|
|
1540
|
+
in: 'cookie',
|
|
1541
|
+
name: 'next-auth.session-token',
|
|
1542
|
+
type: 'apiKey'
|
|
1543
|
+
}
|
|
1544
|
+
],
|
|
1545
|
+
url: '/api/link-shortener',
|
|
1546
|
+
...options,
|
|
1547
|
+
headers: {
|
|
1548
|
+
'Content-Type': 'application/json',
|
|
1549
|
+
...options.headers
|
|
1550
|
+
}
|
|
1551
|
+
});
|
|
1552
|
+
/**
|
|
1553
|
+
* DELETE live-numbers
|
|
1554
|
+
*/ const deleteApiLiveNumbers = (options)=>(options?.client ?? client).delete({
|
|
1555
|
+
security: [
|
|
1556
|
+
{
|
|
1557
|
+
in: 'cookie',
|
|
1558
|
+
name: 'next-auth.session-token',
|
|
1559
|
+
type: 'apiKey'
|
|
1560
|
+
}
|
|
1561
|
+
],
|
|
1562
|
+
url: '/api/live-numbers',
|
|
1563
|
+
...options
|
|
1564
|
+
});
|
|
1565
|
+
/**
|
|
1566
|
+
* GET live-numbers
|
|
1567
|
+
*/ const getApiLiveNumbers = (options)=>(options?.client ?? client).get({
|
|
1568
|
+
security: [
|
|
1569
|
+
{
|
|
1570
|
+
in: 'cookie',
|
|
1571
|
+
name: 'next-auth.session-token',
|
|
1572
|
+
type: 'apiKey'
|
|
1573
|
+
}
|
|
1574
|
+
],
|
|
1575
|
+
url: '/api/live-numbers',
|
|
1576
|
+
...options
|
|
1577
|
+
});
|
|
1578
|
+
/**
|
|
1579
|
+
* POST outbound-call
|
|
1580
|
+
*/ const postApiOutboundCall = (options)=>(options.client ?? client).post({
|
|
1581
|
+
security: [
|
|
1582
|
+
{
|
|
1583
|
+
in: 'cookie',
|
|
1584
|
+
name: 'next-auth.session-token',
|
|
1585
|
+
type: 'apiKey'
|
|
1586
|
+
}
|
|
1587
|
+
],
|
|
1588
|
+
url: '/api/outbound-call',
|
|
1589
|
+
...options,
|
|
1590
|
+
headers: {
|
|
1591
|
+
'Content-Type': 'application/json',
|
|
1592
|
+
...options.headers
|
|
1593
|
+
}
|
|
1594
|
+
});
|
|
1595
|
+
/**
|
|
1596
|
+
* POST outbound-communication-text
|
|
1597
|
+
*/ const postApiOutboundCommunicationText = (options)=>(options.client ?? client).post({
|
|
1598
|
+
security: [
|
|
1599
|
+
{
|
|
1600
|
+
in: 'cookie',
|
|
1601
|
+
name: 'next-auth.session-token',
|
|
1602
|
+
type: 'apiKey'
|
|
1603
|
+
}
|
|
1604
|
+
],
|
|
1605
|
+
url: '/api/outbound-communication-text',
|
|
1606
|
+
...options,
|
|
1607
|
+
headers: {
|
|
1608
|
+
'Content-Type': 'application/json',
|
|
1609
|
+
...options.headers
|
|
1610
|
+
}
|
|
1611
|
+
});
|
|
1612
|
+
/**
|
|
1613
|
+
* GET phone-logs / {phoneNumber}
|
|
1614
|
+
*/ const getApiPhoneLogsByPhoneNumber = (options)=>(options.client ?? client).get({
|
|
1615
|
+
security: [
|
|
1616
|
+
{
|
|
1617
|
+
in: 'cookie',
|
|
1618
|
+
name: 'next-auth.session-token',
|
|
1619
|
+
type: 'apiKey'
|
|
1620
|
+
}
|
|
1621
|
+
],
|
|
1622
|
+
url: '/api/phone-logs/{phoneNumber}',
|
|
1623
|
+
...options
|
|
1624
|
+
});
|
|
1625
|
+
/**
|
|
1626
|
+
* GET recently-active-numbers
|
|
1627
|
+
*/ const getApiRecentlyActiveNumbers = (options)=>(options?.client ?? client).get({
|
|
1628
|
+
security: [
|
|
1629
|
+
{
|
|
1630
|
+
in: 'cookie',
|
|
1631
|
+
name: 'next-auth.session-token',
|
|
1632
|
+
type: 'apiKey'
|
|
1633
|
+
}
|
|
1634
|
+
],
|
|
1635
|
+
url: '/api/recently-active-numbers',
|
|
1636
|
+
...options
|
|
1637
|
+
});
|
|
1638
|
+
/**
|
|
1639
|
+
* POST segment / identify
|
|
1640
|
+
*/ const postApiSegmentIdentify = (options)=>(options.client ?? client).post({
|
|
1641
|
+
security: [
|
|
1642
|
+
{
|
|
1643
|
+
in: 'cookie',
|
|
1644
|
+
name: 'next-auth.session-token',
|
|
1645
|
+
type: 'apiKey'
|
|
1646
|
+
}
|
|
1647
|
+
],
|
|
1648
|
+
url: '/api/segment/identify',
|
|
1649
|
+
...options,
|
|
1650
|
+
headers: {
|
|
1651
|
+
'Content-Type': 'application/json',
|
|
1652
|
+
...options.headers
|
|
1653
|
+
}
|
|
1654
|
+
});
|
|
1655
|
+
/**
|
|
1656
|
+
* POST segment / profile
|
|
1657
|
+
*/ const postApiSegmentProfile = (options)=>(options.client ?? client).post({
|
|
1658
|
+
security: [
|
|
1659
|
+
{
|
|
1660
|
+
in: 'cookie',
|
|
1661
|
+
name: 'next-auth.session-token',
|
|
1662
|
+
type: 'apiKey'
|
|
1663
|
+
}
|
|
1664
|
+
],
|
|
1665
|
+
url: '/api/segment/profile',
|
|
1666
|
+
...options,
|
|
1667
|
+
headers: {
|
|
1668
|
+
'Content-Type': 'application/json',
|
|
1669
|
+
...options.headers
|
|
1670
|
+
}
|
|
1671
|
+
});
|
|
1672
|
+
/**
|
|
1673
|
+
* GET session
|
|
1674
|
+
*/ const getApiSession = (options)=>(options?.client ?? client).get({
|
|
1675
|
+
security: [
|
|
1676
|
+
{
|
|
1677
|
+
in: 'cookie',
|
|
1678
|
+
name: 'next-auth.session-token',
|
|
1679
|
+
type: 'apiKey'
|
|
1680
|
+
}
|
|
1681
|
+
],
|
|
1682
|
+
url: '/api/session',
|
|
1683
|
+
...options
|
|
1684
|
+
});
|
|
1685
|
+
/**
|
|
1686
|
+
* GET supported-regions
|
|
1687
|
+
*/ const getApiSupportedRegions = (options)=>(options?.client ?? client).get({
|
|
1688
|
+
security: [
|
|
1689
|
+
{
|
|
1690
|
+
in: 'cookie',
|
|
1691
|
+
name: 'next-auth.session-token',
|
|
1692
|
+
type: 'apiKey'
|
|
1693
|
+
}
|
|
1694
|
+
],
|
|
1695
|
+
url: '/api/supported-regions',
|
|
1696
|
+
...options
|
|
1697
|
+
});
|
|
1698
|
+
/**
|
|
1699
|
+
* POST tags
|
|
1700
|
+
*/ const postApiTags = (options)=>(options.client ?? client).post({
|
|
1701
|
+
security: [
|
|
1702
|
+
{
|
|
1703
|
+
in: 'cookie',
|
|
1704
|
+
name: 'next-auth.session-token',
|
|
1705
|
+
type: 'apiKey'
|
|
1706
|
+
}
|
|
1707
|
+
],
|
|
1708
|
+
url: '/api/tags',
|
|
1709
|
+
...options,
|
|
1710
|
+
headers: {
|
|
1711
|
+
'Content-Type': 'application/json',
|
|
1712
|
+
...options.headers
|
|
1713
|
+
}
|
|
1714
|
+
});
|
|
1715
|
+
/**
|
|
1716
|
+
* POST telemetry
|
|
1717
|
+
*/ const postApiTelemetry = (options)=>(options?.client ?? client).post({
|
|
1718
|
+
security: [
|
|
1719
|
+
{
|
|
1720
|
+
in: 'cookie',
|
|
1721
|
+
name: 'next-auth.session-token',
|
|
1722
|
+
type: 'apiKey'
|
|
1723
|
+
}
|
|
1724
|
+
],
|
|
1725
|
+
url: '/api/telemetry',
|
|
1726
|
+
...options
|
|
1727
|
+
});
|
|
1728
|
+
/**
|
|
1729
|
+
* DELETE template
|
|
1730
|
+
*/ const deleteApiTemplate = (options)=>(options?.client ?? client).delete({
|
|
1731
|
+
security: [
|
|
1732
|
+
{
|
|
1733
|
+
in: 'cookie',
|
|
1734
|
+
name: 'next-auth.session-token',
|
|
1735
|
+
type: 'apiKey'
|
|
1736
|
+
}
|
|
1737
|
+
],
|
|
1738
|
+
url: '/api/template',
|
|
1739
|
+
...options
|
|
1740
|
+
});
|
|
1741
|
+
/**
|
|
1742
|
+
* POST template-autogen
|
|
1743
|
+
*/ const postApiTemplateAutogen = (options)=>(options.client ?? client).post({
|
|
1744
|
+
security: [
|
|
1745
|
+
{
|
|
1746
|
+
in: 'cookie',
|
|
1747
|
+
name: 'next-auth.session-token',
|
|
1748
|
+
type: 'apiKey'
|
|
1749
|
+
}
|
|
1750
|
+
],
|
|
1751
|
+
url: '/api/template-autogen',
|
|
1752
|
+
...options,
|
|
1753
|
+
headers: {
|
|
1754
|
+
'Content-Type': 'application/json',
|
|
1755
|
+
...options.headers
|
|
1756
|
+
}
|
|
1757
|
+
});
|
|
1758
|
+
/**
|
|
1759
|
+
* POST verify / check
|
|
1760
|
+
*/ const postApiVerifyCheck = (options)=>(options.client ?? client).post({
|
|
1761
|
+
security: [
|
|
1762
|
+
{
|
|
1763
|
+
in: 'cookie',
|
|
1764
|
+
name: 'next-auth.session-token',
|
|
1765
|
+
type: 'apiKey'
|
|
1766
|
+
}
|
|
1767
|
+
],
|
|
1768
|
+
url: '/api/verify/check',
|
|
1769
|
+
...options,
|
|
1770
|
+
headers: {
|
|
1771
|
+
'Content-Type': 'application/json',
|
|
1772
|
+
...options.headers
|
|
1773
|
+
}
|
|
1774
|
+
});
|
|
1775
|
+
/**
|
|
1776
|
+
* POST verify / send
|
|
1777
|
+
*/ const postApiVerifySend = (options)=>(options.client ?? client).post({
|
|
1778
|
+
security: [
|
|
1779
|
+
{
|
|
1780
|
+
in: 'cookie',
|
|
1781
|
+
name: 'next-auth.session-token',
|
|
1782
|
+
type: 'apiKey'
|
|
1783
|
+
}
|
|
1784
|
+
],
|
|
1785
|
+
url: '/api/verify/send',
|
|
1786
|
+
...options,
|
|
1787
|
+
headers: {
|
|
1788
|
+
'Content-Type': 'application/json',
|
|
1789
|
+
...options.headers
|
|
1790
|
+
}
|
|
1791
|
+
});
|
|
1792
|
+
|
|
1793
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
1794
|
+
const zDeleteApiConversationMemoryConversationSummariesQuery = z.object({
|
|
1795
|
+
profileId: z.string(),
|
|
1796
|
+
summaryId: z.string()
|
|
1797
|
+
});
|
|
1798
|
+
const zGetApiConversationMemoryConversationSummariesQuery = z.object({
|
|
1799
|
+
profileId: z.string(),
|
|
1800
|
+
summaryId: z.string().optional(),
|
|
1801
|
+
pageSize: z.string().optional(),
|
|
1802
|
+
pageToken: z.string().optional()
|
|
1803
|
+
});
|
|
1804
|
+
const zPatchApiConversationMemoryConversationSummariesBody = z.record(z.unknown());
|
|
1805
|
+
const zPatchApiConversationMemoryConversationSummariesQuery = z.object({
|
|
1806
|
+
profileId: z.string(),
|
|
1807
|
+
summaryId: z.string()
|
|
1808
|
+
});
|
|
1809
|
+
const zPostApiConversationMemoryConversationSummariesBody = z.record(z.unknown());
|
|
1810
|
+
const zDeleteApiConversationMemoryIdentifiersQuery = z.object({
|
|
1811
|
+
profileId: z.string(),
|
|
1812
|
+
idType: z.string(),
|
|
1813
|
+
removeAll: z.string().optional(),
|
|
1814
|
+
value: z.string().optional()
|
|
1815
|
+
});
|
|
1816
|
+
const zGetApiConversationMemoryIdentifiersQuery = z.object({
|
|
1817
|
+
profileId: z.string(),
|
|
1818
|
+
idType: z.string()
|
|
1819
|
+
});
|
|
1820
|
+
const zPatchApiConversationMemoryIdentifiersBody = z.record(z.unknown());
|
|
1821
|
+
const zPatchApiConversationMemoryIdentifiersQuery = z.object({
|
|
1822
|
+
profileId: z.string(),
|
|
1823
|
+
idType: z.string(),
|
|
1824
|
+
removeAll: z.string().optional(),
|
|
1825
|
+
value: z.string().optional()
|
|
1826
|
+
});
|
|
1827
|
+
const zPostApiConversationMemoryIdentifiersBody = z.record(z.unknown());
|
|
1828
|
+
const zPostApiConversationMemoryIdentifiersQuery = z.object({
|
|
1829
|
+
profileId: z.string(),
|
|
1830
|
+
idType: z.string(),
|
|
1831
|
+
removeAll: z.string().optional(),
|
|
1832
|
+
value: z.string()
|
|
1833
|
+
});
|
|
1834
|
+
const zDeleteApiConversationMemoryObservationsQuery = z.object({
|
|
1835
|
+
profileId: z.string(),
|
|
1836
|
+
observationId: z.string()
|
|
1837
|
+
});
|
|
1838
|
+
const zGetApiConversationMemoryObservationsQuery = z.object({
|
|
1839
|
+
profileId: z.string(),
|
|
1840
|
+
observationId: z.string().optional(),
|
|
1841
|
+
pageSize: z.string().optional(),
|
|
1842
|
+
pageToken: z.string().optional(),
|
|
1843
|
+
orderBy: z.string().optional(),
|
|
1844
|
+
source: z.string().optional(),
|
|
1845
|
+
createdAfter: z.string().optional(),
|
|
1846
|
+
createdBefore: z.string().optional()
|
|
1847
|
+
});
|
|
1848
|
+
const zPatchApiConversationMemoryObservationsBody = z.record(z.unknown());
|
|
1849
|
+
const zPatchApiConversationMemoryObservationsQuery = z.object({
|
|
1850
|
+
profileId: z.string(),
|
|
1851
|
+
observationId: z.string()
|
|
1852
|
+
});
|
|
1853
|
+
const zPostApiConversationMemoryObservationsBody = z.record(z.unknown());
|
|
1854
|
+
const zPostApiConversationMemoryObservationsQuery = z.object({
|
|
1855
|
+
profileId: z.string()
|
|
1856
|
+
});
|
|
1857
|
+
const zDeleteApiConversationMemoryProfilesQuery = z.object({
|
|
1858
|
+
profileId: z.string()
|
|
1859
|
+
});
|
|
1860
|
+
const zGetApiConversationMemoryProfilesQuery = z.object({
|
|
1861
|
+
profileId: z.string().optional(),
|
|
1862
|
+
traitGroups: z.string().optional(),
|
|
1863
|
+
pageSize: z.string().optional(),
|
|
1864
|
+
pageToken: z.string().optional(),
|
|
1865
|
+
orderBy: z.string().optional()
|
|
1866
|
+
});
|
|
1867
|
+
const zPatchApiConversationMemoryProfilesBody = z.record(z.unknown());
|
|
1868
|
+
const zPatchApiConversationMemoryProfilesQuery = z.object({
|
|
1869
|
+
profileId: z.string()
|
|
1870
|
+
});
|
|
1871
|
+
const zPostApiConversationMemoryProfilesBody = z.record(z.unknown());
|
|
1872
|
+
const zPostApiConversationMemoryProfilesQuery = z.object({
|
|
1873
|
+
profileId: z.string()
|
|
1874
|
+
});
|
|
1875
|
+
const zPostApiConversationMemoryProfilesLookupBody = z.record(z.unknown());
|
|
1876
|
+
const zPostApiConversationMemoryRecallBody = z.record(z.unknown());
|
|
1877
|
+
const zDeleteApiConversationMemoryResetQuery = z.object({
|
|
1878
|
+
profileId: z.string()
|
|
1879
|
+
});
|
|
1880
|
+
const zGetApiConversationMemoryTraitGroupsQuery = z.object({
|
|
1881
|
+
traitGroupName: z.string().optional(),
|
|
1882
|
+
includeTraits: z.string().optional(),
|
|
1883
|
+
pageSize: z.string().optional(),
|
|
1884
|
+
pageToken: z.string().optional()
|
|
1885
|
+
});
|
|
1886
|
+
const zPatchApiConversationMemoryTraitGroupsBody = z.record(z.unknown());
|
|
1887
|
+
const zPostApiConversationMemoryTraitGroupsBody = z.record(z.unknown());
|
|
1888
|
+
const zGetApiConversationMemoryTraitsQuery = z.object({
|
|
1889
|
+
profileId: z.string(),
|
|
1890
|
+
pageSize: z.string().optional(),
|
|
1891
|
+
pageToken: z.string().optional(),
|
|
1892
|
+
orderBy: z.string().optional(),
|
|
1893
|
+
traitGroups: z.string().optional()
|
|
1894
|
+
});
|
|
1895
|
+
const zDeleteApiConversationalIntelligenceOperatorQuery = z.object({
|
|
1896
|
+
intelligenceOperatorId: z.string()
|
|
1897
|
+
});
|
|
1898
|
+
const zGetApiConversationalIntelligenceOperatorQuery = z.object({
|
|
1899
|
+
intelligenceOperatorId: z.string().optional(),
|
|
1900
|
+
pageToken: z.string().optional()
|
|
1901
|
+
});
|
|
1902
|
+
const zPostApiConversationalIntelligenceOperatorBody = z.record(z.unknown());
|
|
1903
|
+
const zPostApiConversationalIntelligenceOperatorQuery = z.object({
|
|
1904
|
+
intelligenceOperatorId: z.string().optional()
|
|
1905
|
+
});
|
|
1906
|
+
const zPutApiConversationalIntelligenceOperatorBody = z.record(z.unknown());
|
|
1907
|
+
const zPutApiConversationalIntelligenceOperatorQuery = z.object({
|
|
1908
|
+
intelligenceOperatorId: z.string()
|
|
1909
|
+
});
|
|
1910
|
+
const zPostApiConversationsSaveBody = z.record(z.unknown());
|
|
1911
|
+
const zPostApiConversationsShareBody = z.record(z.unknown());
|
|
1912
|
+
const zPostApiCreateExternalFlexConnectionBody = z.record(z.unknown());
|
|
1913
|
+
const zPostApiEnhancePromptBody = z.record(z.unknown());
|
|
1914
|
+
const zPostApiGenerateTagsBody = z.record(z.unknown());
|
|
1915
|
+
const zPostApiIncrementViewCountBody = z.record(z.unknown());
|
|
1916
|
+
const zGetApiIntelligenceConfigurationQuery = z.object({
|
|
1917
|
+
intelligenceConfigurationId: z.string().optional(),
|
|
1918
|
+
pageToken: z.string().optional()
|
|
1919
|
+
});
|
|
1920
|
+
const zPostApiIntelligenceConfigurationBody = z.record(z.unknown());
|
|
1921
|
+
const zPutApiIntelligenceConfigurationBody = z.record(z.unknown());
|
|
1922
|
+
const zGetApiIsvLogoQuery = z.object({
|
|
1923
|
+
company: z.string()
|
|
1924
|
+
});
|
|
1925
|
+
const zGetApiLeadGenQuery = z.object({
|
|
1926
|
+
objectID: z.string(),
|
|
1927
|
+
agentNumber: z.string()
|
|
1928
|
+
});
|
|
1929
|
+
const zPatchApiLeadGenBody = z.record(z.unknown());
|
|
1930
|
+
const zPostApiLeadGenBody = z.record(z.unknown());
|
|
1931
|
+
const zDeleteApiLinkShortenerQuery = z.object({
|
|
1932
|
+
code: z.string()
|
|
1933
|
+
});
|
|
1934
|
+
const zGetApiLinkShortenerQuery = z.object({
|
|
1935
|
+
code: z.string().optional()
|
|
1936
|
+
});
|
|
1937
|
+
const zPatchApiLinkShortenerBody = z.record(z.unknown());
|
|
1938
|
+
const zPatchApiLinkShortenerQuery = z.object({
|
|
1939
|
+
code: z.string()
|
|
1940
|
+
});
|
|
1941
|
+
const zPostApiLinkShortenerBody = z.record(z.unknown());
|
|
1942
|
+
const zPostApiLinkShortenerQuery = z.object({
|
|
1943
|
+
code: z.string().optional()
|
|
1944
|
+
});
|
|
1945
|
+
const zGetApiLiveNumbersQuery = z.object({
|
|
1946
|
+
countryCode: z.string().optional()
|
|
1947
|
+
});
|
|
1948
|
+
const zPostApiOutboundCallBody = z.record(z.unknown());
|
|
1949
|
+
const zPostApiOutboundCommunicationTextBody = z.record(z.unknown());
|
|
1950
|
+
const zGetApiPhoneLogsByPhoneNumberPath = z.object({
|
|
1951
|
+
phoneNumber: z.string()
|
|
1952
|
+
});
|
|
1953
|
+
const zGetApiPhoneLogsByPhoneNumberQuery = z.object({
|
|
1954
|
+
countryCode: z.string().optional()
|
|
1955
|
+
});
|
|
1956
|
+
const zGetApiRecentlyActiveNumbersQuery = z.object({
|
|
1957
|
+
countryCode: z.string().optional()
|
|
1958
|
+
});
|
|
1959
|
+
const zPostApiSegmentIdentifyBody = z.record(z.unknown());
|
|
1960
|
+
const zPostApiSegmentProfileBody = z.record(z.unknown());
|
|
1961
|
+
const zPostApiTagsBody = z.record(z.unknown());
|
|
1962
|
+
const zPostApiTelemetryQuery = z.object({
|
|
1963
|
+
ddforward: z.string().optional()
|
|
1964
|
+
});
|
|
1965
|
+
const zDeleteApiTemplateQuery = z.object({
|
|
1966
|
+
campaign: z.string().optional()
|
|
1967
|
+
});
|
|
1968
|
+
const zPostApiTemplateAutogenBody = z.record(z.unknown());
|
|
1969
|
+
const zPostApiVerifyCheckBody = z.record(z.unknown());
|
|
1970
|
+
const zPostApiVerifySendBody = z.record(z.unknown());
|
|
1971
|
+
|
|
1972
|
+
var zod_gen = {
|
|
1973
|
+
__proto__: null,
|
|
1974
|
+
zDeleteApiConversationMemoryConversationSummariesQuery: zDeleteApiConversationMemoryConversationSummariesQuery,
|
|
1975
|
+
zDeleteApiConversationMemoryIdentifiersQuery: zDeleteApiConversationMemoryIdentifiersQuery,
|
|
1976
|
+
zDeleteApiConversationMemoryObservationsQuery: zDeleteApiConversationMemoryObservationsQuery,
|
|
1977
|
+
zDeleteApiConversationMemoryProfilesQuery: zDeleteApiConversationMemoryProfilesQuery,
|
|
1978
|
+
zDeleteApiConversationMemoryResetQuery: zDeleteApiConversationMemoryResetQuery,
|
|
1979
|
+
zDeleteApiConversationalIntelligenceOperatorQuery: zDeleteApiConversationalIntelligenceOperatorQuery,
|
|
1980
|
+
zDeleteApiLinkShortenerQuery: zDeleteApiLinkShortenerQuery,
|
|
1981
|
+
zDeleteApiTemplateQuery: zDeleteApiTemplateQuery,
|
|
1982
|
+
zGetApiConversationMemoryConversationSummariesQuery: zGetApiConversationMemoryConversationSummariesQuery,
|
|
1983
|
+
zGetApiConversationMemoryIdentifiersQuery: zGetApiConversationMemoryIdentifiersQuery,
|
|
1984
|
+
zGetApiConversationMemoryObservationsQuery: zGetApiConversationMemoryObservationsQuery,
|
|
1985
|
+
zGetApiConversationMemoryProfilesQuery: zGetApiConversationMemoryProfilesQuery,
|
|
1986
|
+
zGetApiConversationMemoryTraitGroupsQuery: zGetApiConversationMemoryTraitGroupsQuery,
|
|
1987
|
+
zGetApiConversationMemoryTraitsQuery: zGetApiConversationMemoryTraitsQuery,
|
|
1988
|
+
zGetApiConversationalIntelligenceOperatorQuery: zGetApiConversationalIntelligenceOperatorQuery,
|
|
1989
|
+
zGetApiIntelligenceConfigurationQuery: zGetApiIntelligenceConfigurationQuery,
|
|
1990
|
+
zGetApiIsvLogoQuery: zGetApiIsvLogoQuery,
|
|
1991
|
+
zGetApiLeadGenQuery: zGetApiLeadGenQuery,
|
|
1992
|
+
zGetApiLinkShortenerQuery: zGetApiLinkShortenerQuery,
|
|
1993
|
+
zGetApiLiveNumbersQuery: zGetApiLiveNumbersQuery,
|
|
1994
|
+
zGetApiPhoneLogsByPhoneNumberPath: zGetApiPhoneLogsByPhoneNumberPath,
|
|
1995
|
+
zGetApiPhoneLogsByPhoneNumberQuery: zGetApiPhoneLogsByPhoneNumberQuery,
|
|
1996
|
+
zGetApiRecentlyActiveNumbersQuery: zGetApiRecentlyActiveNumbersQuery,
|
|
1997
|
+
zPatchApiConversationMemoryConversationSummariesBody: zPatchApiConversationMemoryConversationSummariesBody,
|
|
1998
|
+
zPatchApiConversationMemoryConversationSummariesQuery: zPatchApiConversationMemoryConversationSummariesQuery,
|
|
1999
|
+
zPatchApiConversationMemoryIdentifiersBody: zPatchApiConversationMemoryIdentifiersBody,
|
|
2000
|
+
zPatchApiConversationMemoryIdentifiersQuery: zPatchApiConversationMemoryIdentifiersQuery,
|
|
2001
|
+
zPatchApiConversationMemoryObservationsBody: zPatchApiConversationMemoryObservationsBody,
|
|
2002
|
+
zPatchApiConversationMemoryObservationsQuery: zPatchApiConversationMemoryObservationsQuery,
|
|
2003
|
+
zPatchApiConversationMemoryProfilesBody: zPatchApiConversationMemoryProfilesBody,
|
|
2004
|
+
zPatchApiConversationMemoryProfilesQuery: zPatchApiConversationMemoryProfilesQuery,
|
|
2005
|
+
zPatchApiConversationMemoryTraitGroupsBody: zPatchApiConversationMemoryTraitGroupsBody,
|
|
2006
|
+
zPatchApiLeadGenBody: zPatchApiLeadGenBody,
|
|
2007
|
+
zPatchApiLinkShortenerBody: zPatchApiLinkShortenerBody,
|
|
2008
|
+
zPatchApiLinkShortenerQuery: zPatchApiLinkShortenerQuery,
|
|
2009
|
+
zPostApiConversationMemoryConversationSummariesBody: zPostApiConversationMemoryConversationSummariesBody,
|
|
2010
|
+
zPostApiConversationMemoryIdentifiersBody: zPostApiConversationMemoryIdentifiersBody,
|
|
2011
|
+
zPostApiConversationMemoryIdentifiersQuery: zPostApiConversationMemoryIdentifiersQuery,
|
|
2012
|
+
zPostApiConversationMemoryObservationsBody: zPostApiConversationMemoryObservationsBody,
|
|
2013
|
+
zPostApiConversationMemoryObservationsQuery: zPostApiConversationMemoryObservationsQuery,
|
|
2014
|
+
zPostApiConversationMemoryProfilesBody: zPostApiConversationMemoryProfilesBody,
|
|
2015
|
+
zPostApiConversationMemoryProfilesLookupBody: zPostApiConversationMemoryProfilesLookupBody,
|
|
2016
|
+
zPostApiConversationMemoryProfilesQuery: zPostApiConversationMemoryProfilesQuery,
|
|
2017
|
+
zPostApiConversationMemoryRecallBody: zPostApiConversationMemoryRecallBody,
|
|
2018
|
+
zPostApiConversationMemoryTraitGroupsBody: zPostApiConversationMemoryTraitGroupsBody,
|
|
2019
|
+
zPostApiConversationalIntelligenceOperatorBody: zPostApiConversationalIntelligenceOperatorBody,
|
|
2020
|
+
zPostApiConversationalIntelligenceOperatorQuery: zPostApiConversationalIntelligenceOperatorQuery,
|
|
2021
|
+
zPostApiConversationsSaveBody: zPostApiConversationsSaveBody,
|
|
2022
|
+
zPostApiConversationsShareBody: zPostApiConversationsShareBody,
|
|
2023
|
+
zPostApiCreateExternalFlexConnectionBody: zPostApiCreateExternalFlexConnectionBody,
|
|
2024
|
+
zPostApiEnhancePromptBody: zPostApiEnhancePromptBody,
|
|
2025
|
+
zPostApiGenerateTagsBody: zPostApiGenerateTagsBody,
|
|
2026
|
+
zPostApiIncrementViewCountBody: zPostApiIncrementViewCountBody,
|
|
2027
|
+
zPostApiIntelligenceConfigurationBody: zPostApiIntelligenceConfigurationBody,
|
|
2028
|
+
zPostApiLeadGenBody: zPostApiLeadGenBody,
|
|
2029
|
+
zPostApiLinkShortenerBody: zPostApiLinkShortenerBody,
|
|
2030
|
+
zPostApiLinkShortenerQuery: zPostApiLinkShortenerQuery,
|
|
2031
|
+
zPostApiOutboundCallBody: zPostApiOutboundCallBody,
|
|
2032
|
+
zPostApiOutboundCommunicationTextBody: zPostApiOutboundCommunicationTextBody,
|
|
2033
|
+
zPostApiSegmentIdentifyBody: zPostApiSegmentIdentifyBody,
|
|
2034
|
+
zPostApiSegmentProfileBody: zPostApiSegmentProfileBody,
|
|
2035
|
+
zPostApiTagsBody: zPostApiTagsBody,
|
|
2036
|
+
zPostApiTelemetryQuery: zPostApiTelemetryQuery,
|
|
2037
|
+
zPostApiTemplateAutogenBody: zPostApiTemplateAutogenBody,
|
|
2038
|
+
zPostApiVerifyCheckBody: zPostApiVerifyCheckBody,
|
|
2039
|
+
zPostApiVerifySendBody: zPostApiVerifySendBody,
|
|
2040
|
+
zPutApiConversationalIntelligenceOperatorBody: zPutApiConversationalIntelligenceOperatorBody,
|
|
2041
|
+
zPutApiConversationalIntelligenceOperatorQuery: zPutApiConversationalIntelligenceOperatorQuery,
|
|
2042
|
+
zPutApiIntelligenceConfigurationBody: zPutApiIntelligenceConfigurationBody
|
|
2043
|
+
};
|
|
2044
|
+
|
|
2045
|
+
export { createRampSiteClient, deleteApiConversationMemoryConversationSummaries, deleteApiConversationMemoryIdentifiers, deleteApiConversationMemoryObservations, deleteApiConversationMemoryProfiles, deleteApiConversationMemoryReset, deleteApiConversationalIntelligenceOperator, deleteApiConversationsDelete, deleteApiLeadGen, deleteApiLinkShortener, deleteApiLiveNumbers, deleteApiTemplate, getApiCampaign, getApiConversationMemoryConversationSummaries, getApiConversationMemoryIdentifiers, getApiConversationMemoryObservations, getApiConversationMemoryProfiles, getApiConversationMemoryTraitGroups, getApiConversationMemoryTraits, getApiConversationalIntelligenceOperator, getApiCountryConfigs, getApiIntelligenceConfiguration, getApiInternalNav, getApiIsvLogo, getApiLeadGen, getApiLinkShortener, getApiLiveNumbers, getApiPhoneLogsByPhoneNumber, getApiRecentlyActiveNumbers, getApiSession, getApiSupportedRegions, patchApiConversationMemoryConversationSummaries, patchApiConversationMemoryIdentifiers, patchApiConversationMemoryObservations, patchApiConversationMemoryProfiles, patchApiConversationMemoryTraitGroups, patchApiLeadGen, patchApiLinkShortener, postApiAlgoliaSecuredKey, postApiConversationMemoryConversationSummaries, postApiConversationMemoryIdentifiers, postApiConversationMemoryObservations, postApiConversationMemoryProfiles, postApiConversationMemoryProfilesLookup, postApiConversationMemoryRecall, postApiConversationMemoryTraitGroups, postApiConversationalIntelligenceOperator, postApiConversationsSave, postApiConversationsShare, postApiCreateExternalFlexConnection, postApiEnhancePrompt, postApiGenerateTags, postApiIncrementViewCount, postApiIntelligenceConfiguration, postApiLeadGen, postApiLinkShortener, postApiOutboundCall, postApiOutboundCommunicationText, postApiSegmentIdentify, postApiSegmentProfile, postApiTags, postApiTelemetry, postApiTemplateAutogen, postApiVerifyCheck, postApiVerifySend, putApiConversationalIntelligenceOperator, putApiIntelligenceConfiguration, zod_gen as schemas };
|