@sixb/client 0.2.0 → 0.2.3
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/artifact-live.d.ts +31 -0
- package/dist/artifact-live.d.ts.map +1 -0
- package/dist/artifact-live.js +67 -0
- package/dist/artifact-live.js.map +10 -0
- package/dist/browser.d.ts +5 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +38 -17
- package/dist/browser.js.map +3 -3
- package/dist/{chunk-j9t5h44d.js → chunk-15ynvne0.js} +40 -28
- package/dist/{chunk-j9t5h44d.js.map → chunk-15ynvne0.js.map} +4 -4
- package/dist/{chunk-1wdszw1c.js → chunk-90q7wa43.js} +30 -21
- package/dist/chunk-90q7wa43.js.map +17 -0
- package/dist/{chunk-s2pagg09.js → chunk-bgpzb1fn.js} +6 -6
- package/dist/{chunk-s2pagg09.js.map → chunk-bgpzb1fn.js.map} +1 -1
- package/dist/{chunk-sh0f609h.js → chunk-br10prhs.js} +4 -4
- package/dist/{chunk-sh0f609h.js.map → chunk-br10prhs.js.map} +1 -1
- package/dist/chunk-hj4h6hw6.js +827 -0
- package/dist/chunk-hj4h6hw6.js.map +18 -0
- package/dist/{chunk-mk0w4zr1.js → chunk-ktqfenfd.js} +43 -11
- package/dist/chunk-ktqfenfd.js.map +10 -0
- package/dist/{chunk-fnd56xxz.js → chunk-seeyb9k9.js} +8 -6
- package/dist/{chunk-fnd56xxz.js.map → chunk-seeyb9k9.js.map} +2 -2
- package/dist/{chunk-m2rmbshc.js → chunk-y9mhb8x4.js} +3 -1
- package/dist/chunk-y9mhb8x4.js.map +10 -0
- package/dist/{chunk-2qsekqcn.js → chunk-zerhr00d.js} +167 -832
- package/dist/chunk-zerhr00d.js.map +10 -0
- package/dist/client-authority.d.ts +11 -0
- package/dist/client-authority.d.ts.map +1 -1
- package/dist/connectors/connection.d.ts +8 -3
- package/dist/connectors/connection.d.ts.map +1 -1
- package/dist/connectors/mutations.d.ts +4 -0
- package/dist/connectors/mutations.d.ts.map +1 -1
- package/dist/connectors/queries.d.ts +98 -0
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/events-builder.d.ts +2 -0
- package/dist/events-builder.d.ts.map +1 -1
- package/dist/events-provider.d.ts.map +1 -1
- package/dist/events-transport.d.ts.map +1 -1
- package/dist/file.d.ts +8 -0
- package/dist/file.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +1891 -486
- package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/sdk.gen.d.ts +92 -6
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +2957 -195
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +321 -57
- package/dist/hooks.js.map +9 -9
- package/dist/index.js +90 -56
- package/dist/index.js.map +1 -1
- package/dist/logs.js +6 -5
- package/dist/logs.js.map +1 -1
- package/dist/models.d.ts +5 -2
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +38 -6
- package/dist/models.js.map +1 -1
- package/dist/query.js +6 -5
- package/dist/query.js.map +1 -1
- package/dist/useDesktop.d.ts +25 -0
- package/dist/useDesktop.d.ts.map +1 -1
- package/dist/users-hooks.d.ts.map +1 -1
- package/dist/ws-socket.d.ts +17 -2
- package/dist/ws-socket.d.ts.map +1 -1
- package/package.json +8 -2
- package/src/artifact-live.ts +97 -0
- package/src/browser.ts +43 -5
- package/src/client-authority.ts +21 -0
- package/src/connectors/connection.ts +34 -12
- package/src/connectors/mutations.ts +8 -2
- package/src/connectors/queries.ts +6 -2
- package/src/events-builder.ts +9 -8
- package/src/events-provider.ts +13 -0
- package/src/events-transport.ts +3 -0
- package/src/file.ts +17 -0
- package/src/generated/@tanstack/react-query.gen.ts +492 -17
- package/src/generated/index.ts +96 -6
- package/src/generated/sdk.gen.ts +389 -12
- package/src/generated/types.gen.ts +3267 -300
- package/src/hooks.ts +7 -1
- package/src/models.ts +6 -2
- package/src/useDesktop.ts +27 -0
- package/src/ws-socket.ts +64 -10
- package/dist/chunk-1wdszw1c.js.map +0 -17
- package/dist/chunk-2qsekqcn.js.map +0 -19
- package/dist/chunk-m2rmbshc.js.map +0 -10
- package/dist/chunk-mk0w4zr1.js.map +0 -10
|
@@ -1,826 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} else if (value instanceof Date) {
|
|
7
|
-
data.append(key, value.toISOString());
|
|
8
|
-
} else {
|
|
9
|
-
data.append(key, JSON.stringify(value));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
var formDataBodySerializer = {
|
|
13
|
-
bodySerializer: (body) => {
|
|
14
|
-
const data = new FormData;
|
|
15
|
-
Object.entries(body).forEach(([key, value]) => {
|
|
16
|
-
if (value === undefined || value === null) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
if (Array.isArray(value)) {
|
|
20
|
-
value.forEach((v) => serializeFormDataPair(data, key, v));
|
|
21
|
-
} else {
|
|
22
|
-
serializeFormDataPair(data, key, value);
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
return data;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
var jsonBodySerializer = {
|
|
29
|
-
bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
|
|
30
|
-
};
|
|
31
|
-
// src/generated/core/params.gen.ts
|
|
32
|
-
var extraPrefixesMap = {
|
|
33
|
-
$body_: "body",
|
|
34
|
-
$headers_: "headers",
|
|
35
|
-
$path_: "path",
|
|
36
|
-
$query_: "query"
|
|
37
|
-
};
|
|
38
|
-
var extraPrefixes = Object.entries(extraPrefixesMap);
|
|
39
|
-
// src/generated/core/serverSentEvents.gen.ts
|
|
40
|
-
var createSseClient = ({
|
|
41
|
-
onRequest,
|
|
42
|
-
onSseError,
|
|
43
|
-
onSseEvent,
|
|
44
|
-
responseTransformer,
|
|
45
|
-
responseValidator,
|
|
46
|
-
sseDefaultRetryDelay,
|
|
47
|
-
sseMaxRetryAttempts,
|
|
48
|
-
sseMaxRetryDelay,
|
|
49
|
-
sseSleepFn,
|
|
50
|
-
url,
|
|
51
|
-
...options
|
|
52
|
-
}) => {
|
|
53
|
-
let lastEventId;
|
|
54
|
-
const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
|
|
55
|
-
const createStream = async function* () {
|
|
56
|
-
let retryDelay = sseDefaultRetryDelay ?? 3000;
|
|
57
|
-
let attempt = 0;
|
|
58
|
-
const signal = options.signal ?? new AbortController().signal;
|
|
59
|
-
while (true) {
|
|
60
|
-
if (signal.aborted)
|
|
61
|
-
break;
|
|
62
|
-
attempt++;
|
|
63
|
-
const headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers);
|
|
64
|
-
if (lastEventId !== undefined) {
|
|
65
|
-
headers.set("Last-Event-ID", lastEventId);
|
|
66
|
-
}
|
|
67
|
-
try {
|
|
68
|
-
const requestInit = {
|
|
69
|
-
redirect: "follow",
|
|
70
|
-
...options,
|
|
71
|
-
body: options.serializedBody,
|
|
72
|
-
headers,
|
|
73
|
-
signal
|
|
74
|
-
};
|
|
75
|
-
let request = new Request(url, requestInit);
|
|
76
|
-
if (onRequest) {
|
|
77
|
-
request = await onRequest(url, requestInit);
|
|
78
|
-
}
|
|
79
|
-
const _fetch = options.fetch ?? globalThis.fetch;
|
|
80
|
-
const response = await _fetch(request);
|
|
81
|
-
if (!response.ok)
|
|
82
|
-
throw new Error(`SSE failed: ${response.status} ${response.statusText}`);
|
|
83
|
-
if (!response.body)
|
|
84
|
-
throw new Error("No body in SSE response");
|
|
85
|
-
const reader = response.body.pipeThrough(new TextDecoderStream).getReader();
|
|
86
|
-
let buffer = "";
|
|
87
|
-
const abortHandler = () => {
|
|
88
|
-
try {
|
|
89
|
-
reader.cancel();
|
|
90
|
-
} catch {}
|
|
91
|
-
};
|
|
92
|
-
signal.addEventListener("abort", abortHandler);
|
|
93
|
-
try {
|
|
94
|
-
while (true) {
|
|
95
|
-
const { done, value } = await reader.read();
|
|
96
|
-
if (done)
|
|
97
|
-
break;
|
|
98
|
-
buffer += value;
|
|
99
|
-
buffer = buffer.replace(/\r\n/g, `
|
|
100
|
-
`).replace(/\r/g, `
|
|
101
|
-
`);
|
|
102
|
-
const chunks = buffer.split(`
|
|
103
|
-
|
|
104
|
-
`);
|
|
105
|
-
buffer = chunks.pop() ?? "";
|
|
106
|
-
for (const chunk of chunks) {
|
|
107
|
-
const lines = chunk.split(`
|
|
108
|
-
`);
|
|
109
|
-
const dataLines = [];
|
|
110
|
-
let eventName;
|
|
111
|
-
for (const line of lines) {
|
|
112
|
-
if (line.startsWith("data:")) {
|
|
113
|
-
dataLines.push(line.replace(/^data:\s*/, ""));
|
|
114
|
-
} else if (line.startsWith("event:")) {
|
|
115
|
-
eventName = line.replace(/^event:\s*/, "");
|
|
116
|
-
} else if (line.startsWith("id:")) {
|
|
117
|
-
lastEventId = line.replace(/^id:\s*/, "");
|
|
118
|
-
} else if (line.startsWith("retry:")) {
|
|
119
|
-
const parsed = Number.parseInt(line.replace(/^retry:\s*/, ""), 10);
|
|
120
|
-
if (!Number.isNaN(parsed)) {
|
|
121
|
-
retryDelay = parsed;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
let data;
|
|
126
|
-
let parsedJson = false;
|
|
127
|
-
if (dataLines.length) {
|
|
128
|
-
const rawData = dataLines.join(`
|
|
129
|
-
`);
|
|
130
|
-
try {
|
|
131
|
-
data = JSON.parse(rawData);
|
|
132
|
-
parsedJson = true;
|
|
133
|
-
} catch {
|
|
134
|
-
data = rawData;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
if (parsedJson) {
|
|
138
|
-
if (responseValidator) {
|
|
139
|
-
await responseValidator(data);
|
|
140
|
-
}
|
|
141
|
-
if (responseTransformer) {
|
|
142
|
-
data = await responseTransformer(data);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
onSseEvent?.({
|
|
146
|
-
data,
|
|
147
|
-
event: eventName,
|
|
148
|
-
id: lastEventId,
|
|
149
|
-
retry: retryDelay
|
|
150
|
-
});
|
|
151
|
-
if (dataLines.length) {
|
|
152
|
-
yield data;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
} finally {
|
|
157
|
-
signal.removeEventListener("abort", abortHandler);
|
|
158
|
-
reader.releaseLock();
|
|
159
|
-
}
|
|
160
|
-
break;
|
|
161
|
-
} catch (error) {
|
|
162
|
-
onSseError?.(error);
|
|
163
|
-
if (sseMaxRetryAttempts !== undefined && attempt >= sseMaxRetryAttempts) {
|
|
164
|
-
break;
|
|
165
|
-
}
|
|
166
|
-
const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 30000);
|
|
167
|
-
await sleep(backoff);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
const stream = createStream();
|
|
172
|
-
return { stream };
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
// src/generated/core/pathSerializer.gen.ts
|
|
176
|
-
var separatorArrayExplode = (style) => {
|
|
177
|
-
switch (style) {
|
|
178
|
-
case "label":
|
|
179
|
-
return ".";
|
|
180
|
-
case "matrix":
|
|
181
|
-
return ";";
|
|
182
|
-
case "simple":
|
|
183
|
-
return ",";
|
|
184
|
-
default:
|
|
185
|
-
return "&";
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
var separatorArrayNoExplode = (style) => {
|
|
189
|
-
switch (style) {
|
|
190
|
-
case "form":
|
|
191
|
-
return ",";
|
|
192
|
-
case "pipeDelimited":
|
|
193
|
-
return "|";
|
|
194
|
-
case "spaceDelimited":
|
|
195
|
-
return "%20";
|
|
196
|
-
default:
|
|
197
|
-
return ",";
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
var separatorObjectExplode = (style) => {
|
|
201
|
-
switch (style) {
|
|
202
|
-
case "label":
|
|
203
|
-
return ".";
|
|
204
|
-
case "matrix":
|
|
205
|
-
return ";";
|
|
206
|
-
case "simple":
|
|
207
|
-
return ",";
|
|
208
|
-
default:
|
|
209
|
-
return "&";
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
|
-
var serializeArrayParam = ({
|
|
213
|
-
allowReserved,
|
|
214
|
-
explode,
|
|
215
|
-
name,
|
|
216
|
-
style,
|
|
217
|
-
value
|
|
218
|
-
}) => {
|
|
219
|
-
if (!explode) {
|
|
220
|
-
const joinedValues = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
|
|
221
|
-
switch (style) {
|
|
222
|
-
case "label":
|
|
223
|
-
return `.${joinedValues}`;
|
|
224
|
-
case "matrix":
|
|
225
|
-
return `;${name}=${joinedValues}`;
|
|
226
|
-
case "simple":
|
|
227
|
-
return joinedValues;
|
|
228
|
-
default:
|
|
229
|
-
return `${name}=${joinedValues}`;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
const separator = separatorArrayExplode(style);
|
|
233
|
-
const joinedValues = value.map((v) => {
|
|
234
|
-
if (style === "label" || style === "simple") {
|
|
235
|
-
return allowReserved ? v : encodeURIComponent(v);
|
|
236
|
-
}
|
|
237
|
-
return serializePrimitiveParam({
|
|
238
|
-
allowReserved,
|
|
239
|
-
name,
|
|
240
|
-
value: v
|
|
241
|
-
});
|
|
242
|
-
}).join(separator);
|
|
243
|
-
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
244
|
-
};
|
|
245
|
-
var serializePrimitiveParam = ({
|
|
246
|
-
allowReserved,
|
|
247
|
-
name,
|
|
248
|
-
value
|
|
249
|
-
}) => {
|
|
250
|
-
if (value === undefined || value === null) {
|
|
251
|
-
return "";
|
|
252
|
-
}
|
|
253
|
-
if (typeof value === "object") {
|
|
254
|
-
throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");
|
|
255
|
-
}
|
|
256
|
-
return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
|
|
257
|
-
};
|
|
258
|
-
var serializeObjectParam = ({
|
|
259
|
-
allowReserved,
|
|
260
|
-
explode,
|
|
261
|
-
name,
|
|
262
|
-
style,
|
|
263
|
-
value,
|
|
264
|
-
valueOnly
|
|
265
|
-
}) => {
|
|
266
|
-
if (value instanceof Date) {
|
|
267
|
-
return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
|
|
268
|
-
}
|
|
269
|
-
if (style !== "deepObject" && !explode) {
|
|
270
|
-
let values = [];
|
|
271
|
-
Object.entries(value).forEach(([key, v]) => {
|
|
272
|
-
values = [...values, key, allowReserved ? v : encodeURIComponent(v)];
|
|
273
|
-
});
|
|
274
|
-
const joinedValues = values.join(",");
|
|
275
|
-
switch (style) {
|
|
276
|
-
case "form":
|
|
277
|
-
return `${name}=${joinedValues}`;
|
|
278
|
-
case "label":
|
|
279
|
-
return `.${joinedValues}`;
|
|
280
|
-
case "matrix":
|
|
281
|
-
return `;${name}=${joinedValues}`;
|
|
282
|
-
default:
|
|
283
|
-
return joinedValues;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
const separator = separatorObjectExplode(style);
|
|
287
|
-
const joinedValues = Object.entries(value).map(([key, v]) => serializePrimitiveParam({
|
|
288
|
-
allowReserved,
|
|
289
|
-
name: style === "deepObject" ? `${name}[${key}]` : key,
|
|
290
|
-
value: v
|
|
291
|
-
})).join(separator);
|
|
292
|
-
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
// src/generated/core/utils.gen.ts
|
|
296
|
-
var PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
297
|
-
var defaultPathSerializer = ({ path, url: _url }) => {
|
|
298
|
-
let url = _url;
|
|
299
|
-
const matches = _url.match(PATH_PARAM_RE);
|
|
300
|
-
if (matches) {
|
|
301
|
-
for (const match of matches) {
|
|
302
|
-
let explode = false;
|
|
303
|
-
let name = match.substring(1, match.length - 1);
|
|
304
|
-
let style = "simple";
|
|
305
|
-
if (name.endsWith("*")) {
|
|
306
|
-
explode = true;
|
|
307
|
-
name = name.substring(0, name.length - 1);
|
|
308
|
-
}
|
|
309
|
-
if (name.startsWith(".")) {
|
|
310
|
-
name = name.substring(1);
|
|
311
|
-
style = "label";
|
|
312
|
-
} else if (name.startsWith(";")) {
|
|
313
|
-
name = name.substring(1);
|
|
314
|
-
style = "matrix";
|
|
315
|
-
}
|
|
316
|
-
const value = path[name];
|
|
317
|
-
if (value === undefined || value === null) {
|
|
318
|
-
continue;
|
|
319
|
-
}
|
|
320
|
-
if (Array.isArray(value)) {
|
|
321
|
-
url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
|
|
322
|
-
continue;
|
|
323
|
-
}
|
|
324
|
-
if (typeof value === "object") {
|
|
325
|
-
url = url.replace(match, serializeObjectParam({
|
|
326
|
-
explode,
|
|
327
|
-
name,
|
|
328
|
-
style,
|
|
329
|
-
value,
|
|
330
|
-
valueOnly: true
|
|
331
|
-
}));
|
|
332
|
-
continue;
|
|
333
|
-
}
|
|
334
|
-
if (style === "matrix") {
|
|
335
|
-
url = url.replace(match, `;${serializePrimitiveParam({
|
|
336
|
-
name,
|
|
337
|
-
value
|
|
338
|
-
})}`);
|
|
339
|
-
continue;
|
|
340
|
-
}
|
|
341
|
-
const replaceValue = encodeURIComponent(style === "label" ? `.${value}` : value);
|
|
342
|
-
url = url.replace(match, replaceValue);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
return url;
|
|
346
|
-
};
|
|
347
|
-
var getUrl = ({
|
|
348
|
-
baseUrl,
|
|
349
|
-
path,
|
|
350
|
-
query,
|
|
351
|
-
querySerializer,
|
|
352
|
-
url: _url
|
|
353
|
-
}) => {
|
|
354
|
-
const pathUrl = _url.startsWith("/") ? _url : `/${_url}`;
|
|
355
|
-
let url = (baseUrl ?? "") + pathUrl;
|
|
356
|
-
if (path) {
|
|
357
|
-
url = defaultPathSerializer({ path, url });
|
|
358
|
-
}
|
|
359
|
-
let search = query ? querySerializer(query) : "";
|
|
360
|
-
if (search.startsWith("?")) {
|
|
361
|
-
search = search.substring(1);
|
|
362
|
-
}
|
|
363
|
-
if (search) {
|
|
364
|
-
url += `?${search}`;
|
|
365
|
-
}
|
|
366
|
-
return url;
|
|
367
|
-
};
|
|
368
|
-
function getValidRequestBody(options) {
|
|
369
|
-
const hasBody = options.body !== undefined;
|
|
370
|
-
const isSerializedBody = hasBody && options.bodySerializer;
|
|
371
|
-
if (isSerializedBody) {
|
|
372
|
-
if ("serializedBody" in options) {
|
|
373
|
-
const hasSerializedBody = options.serializedBody !== undefined && options.serializedBody !== "";
|
|
374
|
-
return hasSerializedBody ? options.serializedBody : null;
|
|
375
|
-
}
|
|
376
|
-
return options.body !== "" ? options.body : null;
|
|
377
|
-
}
|
|
378
|
-
if (hasBody) {
|
|
379
|
-
return options.body;
|
|
380
|
-
}
|
|
381
|
-
return;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
// src/generated/core/auth.gen.ts
|
|
385
|
-
var getAuthToken = async (auth, callback) => {
|
|
386
|
-
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
387
|
-
if (!token) {
|
|
388
|
-
return;
|
|
389
|
-
}
|
|
390
|
-
if (auth.scheme === "bearer") {
|
|
391
|
-
return `Bearer ${token}`;
|
|
392
|
-
}
|
|
393
|
-
if (auth.scheme === "basic") {
|
|
394
|
-
return `Basic ${btoa(token)}`;
|
|
395
|
-
}
|
|
396
|
-
return token;
|
|
397
|
-
};
|
|
398
|
-
|
|
399
|
-
// src/generated/client/utils.gen.ts
|
|
400
|
-
var createQuerySerializer = ({
|
|
401
|
-
parameters = {},
|
|
402
|
-
...args
|
|
403
|
-
} = {}) => {
|
|
404
|
-
const querySerializer = (queryParams) => {
|
|
405
|
-
const search = [];
|
|
406
|
-
if (queryParams && typeof queryParams === "object") {
|
|
407
|
-
for (const name in queryParams) {
|
|
408
|
-
const value = queryParams[name];
|
|
409
|
-
if (value === undefined || value === null) {
|
|
410
|
-
continue;
|
|
411
|
-
}
|
|
412
|
-
const options = parameters[name] || args;
|
|
413
|
-
if (Array.isArray(value)) {
|
|
414
|
-
const serializedArray = serializeArrayParam({
|
|
415
|
-
allowReserved: options.allowReserved,
|
|
416
|
-
explode: true,
|
|
417
|
-
name,
|
|
418
|
-
style: "form",
|
|
419
|
-
value,
|
|
420
|
-
...options.array
|
|
421
|
-
});
|
|
422
|
-
if (serializedArray)
|
|
423
|
-
search.push(serializedArray);
|
|
424
|
-
} else if (typeof value === "object") {
|
|
425
|
-
const serializedObject = serializeObjectParam({
|
|
426
|
-
allowReserved: options.allowReserved,
|
|
427
|
-
explode: true,
|
|
428
|
-
name,
|
|
429
|
-
style: "deepObject",
|
|
430
|
-
value,
|
|
431
|
-
...options.object
|
|
432
|
-
});
|
|
433
|
-
if (serializedObject)
|
|
434
|
-
search.push(serializedObject);
|
|
435
|
-
} else {
|
|
436
|
-
const serializedPrimitive = serializePrimitiveParam({
|
|
437
|
-
allowReserved: options.allowReserved,
|
|
438
|
-
name,
|
|
439
|
-
value
|
|
440
|
-
});
|
|
441
|
-
if (serializedPrimitive)
|
|
442
|
-
search.push(serializedPrimitive);
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
return search.join("&");
|
|
447
|
-
};
|
|
448
|
-
return querySerializer;
|
|
449
|
-
};
|
|
450
|
-
var getParseAs = (contentType) => {
|
|
451
|
-
if (!contentType) {
|
|
452
|
-
return "stream";
|
|
453
|
-
}
|
|
454
|
-
const cleanContent = contentType.split(";")[0]?.trim();
|
|
455
|
-
if (!cleanContent) {
|
|
456
|
-
return;
|
|
457
|
-
}
|
|
458
|
-
if (cleanContent.startsWith("application/json") || cleanContent.endsWith("+json")) {
|
|
459
|
-
return "json";
|
|
460
|
-
}
|
|
461
|
-
if (cleanContent === "multipart/form-data") {
|
|
462
|
-
return "formData";
|
|
463
|
-
}
|
|
464
|
-
if (["application/", "audio/", "image/", "video/"].some((type) => cleanContent.startsWith(type))) {
|
|
465
|
-
return "blob";
|
|
466
|
-
}
|
|
467
|
-
if (cleanContent.startsWith("text/")) {
|
|
468
|
-
return "text";
|
|
469
|
-
}
|
|
470
|
-
return;
|
|
471
|
-
};
|
|
472
|
-
var checkForExistence = (options, name) => {
|
|
473
|
-
if (!name) {
|
|
474
|
-
return false;
|
|
475
|
-
}
|
|
476
|
-
if (options.headers.has(name) || options.query?.[name] || options.headers.get("Cookie")?.includes(`${name}=`)) {
|
|
477
|
-
return true;
|
|
478
|
-
}
|
|
479
|
-
return false;
|
|
480
|
-
};
|
|
481
|
-
var setAuthParams = async ({
|
|
482
|
-
security,
|
|
483
|
-
...options
|
|
484
|
-
}) => {
|
|
485
|
-
for (const auth of security) {
|
|
486
|
-
if (checkForExistence(options, auth.name)) {
|
|
487
|
-
continue;
|
|
488
|
-
}
|
|
489
|
-
const token = await getAuthToken(auth, options.auth);
|
|
490
|
-
if (!token) {
|
|
491
|
-
continue;
|
|
492
|
-
}
|
|
493
|
-
const name = auth.name ?? "Authorization";
|
|
494
|
-
switch (auth.in) {
|
|
495
|
-
case "query":
|
|
496
|
-
if (!options.query) {
|
|
497
|
-
options.query = {};
|
|
498
|
-
}
|
|
499
|
-
options.query[name] = token;
|
|
500
|
-
break;
|
|
501
|
-
case "cookie":
|
|
502
|
-
options.headers.append("Cookie", `${name}=${token}`);
|
|
503
|
-
break;
|
|
504
|
-
case "header":
|
|
505
|
-
default:
|
|
506
|
-
options.headers.set(name, token);
|
|
507
|
-
break;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
};
|
|
511
|
-
var buildUrl = (options) => getUrl({
|
|
512
|
-
baseUrl: options.baseUrl,
|
|
513
|
-
path: options.path,
|
|
514
|
-
query: options.query,
|
|
515
|
-
querySerializer: typeof options.querySerializer === "function" ? options.querySerializer : createQuerySerializer(options.querySerializer),
|
|
516
|
-
url: options.url
|
|
517
|
-
});
|
|
518
|
-
var mergeConfigs = (a, b) => {
|
|
519
|
-
const config = { ...a, ...b };
|
|
520
|
-
if (config.baseUrl?.endsWith("/")) {
|
|
521
|
-
config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);
|
|
522
|
-
}
|
|
523
|
-
config.headers = mergeHeaders(a.headers, b.headers);
|
|
524
|
-
return config;
|
|
525
|
-
};
|
|
526
|
-
var headersEntries = (headers) => {
|
|
527
|
-
const entries = [];
|
|
528
|
-
headers.forEach((value, key) => {
|
|
529
|
-
entries.push([key, value]);
|
|
530
|
-
});
|
|
531
|
-
return entries;
|
|
532
|
-
};
|
|
533
|
-
var mergeHeaders = (...headers) => {
|
|
534
|
-
const mergedHeaders = new Headers;
|
|
535
|
-
for (const header of headers) {
|
|
536
|
-
if (!header) {
|
|
537
|
-
continue;
|
|
538
|
-
}
|
|
539
|
-
const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header);
|
|
540
|
-
for (const [key, value] of iterator) {
|
|
541
|
-
if (value === null) {
|
|
542
|
-
mergedHeaders.delete(key);
|
|
543
|
-
} else if (Array.isArray(value)) {
|
|
544
|
-
for (const v of value) {
|
|
545
|
-
mergedHeaders.append(key, v);
|
|
546
|
-
}
|
|
547
|
-
} else if (value !== undefined) {
|
|
548
|
-
mergedHeaders.set(key, typeof value === "object" ? JSON.stringify(value) : value);
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
return mergedHeaders;
|
|
553
|
-
};
|
|
554
|
-
|
|
555
|
-
class Interceptors {
|
|
556
|
-
fns = [];
|
|
557
|
-
clear() {
|
|
558
|
-
this.fns = [];
|
|
559
|
-
}
|
|
560
|
-
eject(id) {
|
|
561
|
-
const index = this.getInterceptorIndex(id);
|
|
562
|
-
if (this.fns[index]) {
|
|
563
|
-
this.fns[index] = null;
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
exists(id) {
|
|
567
|
-
const index = this.getInterceptorIndex(id);
|
|
568
|
-
return Boolean(this.fns[index]);
|
|
569
|
-
}
|
|
570
|
-
getInterceptorIndex(id) {
|
|
571
|
-
if (typeof id === "number") {
|
|
572
|
-
return this.fns[id] ? id : -1;
|
|
573
|
-
}
|
|
574
|
-
return this.fns.indexOf(id);
|
|
575
|
-
}
|
|
576
|
-
update(id, fn) {
|
|
577
|
-
const index = this.getInterceptorIndex(id);
|
|
578
|
-
if (this.fns[index]) {
|
|
579
|
-
this.fns[index] = fn;
|
|
580
|
-
return id;
|
|
581
|
-
}
|
|
582
|
-
return false;
|
|
583
|
-
}
|
|
584
|
-
use(fn) {
|
|
585
|
-
this.fns.push(fn);
|
|
586
|
-
return this.fns.length - 1;
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
var createInterceptors = () => ({
|
|
590
|
-
error: new Interceptors,
|
|
591
|
-
request: new Interceptors,
|
|
592
|
-
response: new Interceptors
|
|
593
|
-
});
|
|
594
|
-
var defaultQuerySerializer = createQuerySerializer({
|
|
595
|
-
allowReserved: false,
|
|
596
|
-
array: {
|
|
597
|
-
explode: true,
|
|
598
|
-
style: "form"
|
|
599
|
-
},
|
|
600
|
-
object: {
|
|
601
|
-
explode: true,
|
|
602
|
-
style: "deepObject"
|
|
603
|
-
}
|
|
604
|
-
});
|
|
605
|
-
var defaultHeaders = {
|
|
606
|
-
"Content-Type": "application/json"
|
|
607
|
-
};
|
|
608
|
-
var createConfig = (override = {}) => ({
|
|
609
|
-
...jsonBodySerializer,
|
|
610
|
-
headers: defaultHeaders,
|
|
611
|
-
parseAs: "auto",
|
|
612
|
-
querySerializer: defaultQuerySerializer,
|
|
613
|
-
...override
|
|
614
|
-
});
|
|
615
|
-
|
|
616
|
-
// src/generated/client/client.gen.ts
|
|
617
|
-
var createClient = (config = {}) => {
|
|
618
|
-
let _config = mergeConfigs(createConfig(), config);
|
|
619
|
-
const getConfig = () => ({ ..._config });
|
|
620
|
-
const setConfig = (config) => {
|
|
621
|
-
_config = mergeConfigs(_config, config);
|
|
622
|
-
return getConfig();
|
|
623
|
-
};
|
|
624
|
-
const interceptors = createInterceptors();
|
|
625
|
-
const beforeRequest = async (options) => {
|
|
626
|
-
const opts = {
|
|
627
|
-
..._config,
|
|
628
|
-
...options,
|
|
629
|
-
fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
|
|
630
|
-
headers: mergeHeaders(_config.headers, options.headers),
|
|
631
|
-
serializedBody: undefined
|
|
632
|
-
};
|
|
633
|
-
if (opts.security) {
|
|
634
|
-
await setAuthParams({
|
|
635
|
-
...opts,
|
|
636
|
-
security: opts.security
|
|
637
|
-
});
|
|
638
|
-
}
|
|
639
|
-
if (opts.requestValidator) {
|
|
640
|
-
await opts.requestValidator(opts);
|
|
641
|
-
}
|
|
642
|
-
if (opts.body !== undefined && opts.bodySerializer) {
|
|
643
|
-
opts.serializedBody = opts.bodySerializer(opts.body);
|
|
644
|
-
}
|
|
645
|
-
if (opts.body === undefined || opts.serializedBody === "") {
|
|
646
|
-
opts.headers.delete("Content-Type");
|
|
647
|
-
}
|
|
648
|
-
const url = buildUrl(opts);
|
|
649
|
-
return { opts, url };
|
|
650
|
-
};
|
|
651
|
-
const request = async (options) => {
|
|
652
|
-
const { opts, url } = await beforeRequest(options);
|
|
653
|
-
const requestInit = {
|
|
654
|
-
redirect: "follow",
|
|
655
|
-
...opts,
|
|
656
|
-
body: getValidRequestBody(opts)
|
|
657
|
-
};
|
|
658
|
-
let request = new Request(url, requestInit);
|
|
659
|
-
for (const fn of interceptors.request.fns) {
|
|
660
|
-
if (fn) {
|
|
661
|
-
request = await fn(request, opts);
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
const _fetch = opts.fetch;
|
|
665
|
-
let response;
|
|
666
|
-
try {
|
|
667
|
-
response = await _fetch(request);
|
|
668
|
-
} catch (error) {
|
|
669
|
-
let finalError = error;
|
|
670
|
-
for (const fn of interceptors.error.fns) {
|
|
671
|
-
if (fn) {
|
|
672
|
-
finalError = await fn(error, undefined, request, opts);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
finalError = finalError || {};
|
|
676
|
-
if (opts.throwOnError) {
|
|
677
|
-
throw finalError;
|
|
678
|
-
}
|
|
679
|
-
return opts.responseStyle === "data" ? undefined : {
|
|
680
|
-
error: finalError,
|
|
681
|
-
request,
|
|
682
|
-
response: undefined
|
|
683
|
-
};
|
|
684
|
-
}
|
|
685
|
-
for (const fn of interceptors.response.fns) {
|
|
686
|
-
if (fn) {
|
|
687
|
-
response = await fn(response, request, opts);
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
const result = {
|
|
691
|
-
request,
|
|
692
|
-
response
|
|
693
|
-
};
|
|
694
|
-
if (response.ok) {
|
|
695
|
-
const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
|
|
696
|
-
if (response.status === 204 || response.headers.get("Content-Length") === "0") {
|
|
697
|
-
let emptyData;
|
|
698
|
-
switch (parseAs) {
|
|
699
|
-
case "arrayBuffer":
|
|
700
|
-
case "blob":
|
|
701
|
-
case "text":
|
|
702
|
-
emptyData = await response[parseAs]();
|
|
703
|
-
break;
|
|
704
|
-
case "formData":
|
|
705
|
-
emptyData = new FormData;
|
|
706
|
-
break;
|
|
707
|
-
case "stream":
|
|
708
|
-
emptyData = response.body;
|
|
709
|
-
break;
|
|
710
|
-
case "json":
|
|
711
|
-
default:
|
|
712
|
-
emptyData = {};
|
|
713
|
-
break;
|
|
714
|
-
}
|
|
715
|
-
return opts.responseStyle === "data" ? emptyData : {
|
|
716
|
-
data: emptyData,
|
|
717
|
-
...result
|
|
718
|
-
};
|
|
719
|
-
}
|
|
720
|
-
let data;
|
|
721
|
-
switch (parseAs) {
|
|
722
|
-
case "arrayBuffer":
|
|
723
|
-
case "blob":
|
|
724
|
-
case "formData":
|
|
725
|
-
case "text":
|
|
726
|
-
data = await response[parseAs]();
|
|
727
|
-
break;
|
|
728
|
-
case "json": {
|
|
729
|
-
const text = await response.text();
|
|
730
|
-
data = text ? JSON.parse(text) : {};
|
|
731
|
-
break;
|
|
732
|
-
}
|
|
733
|
-
case "stream":
|
|
734
|
-
return opts.responseStyle === "data" ? response.body : {
|
|
735
|
-
data: response.body,
|
|
736
|
-
...result
|
|
737
|
-
};
|
|
738
|
-
}
|
|
739
|
-
if (parseAs === "json") {
|
|
740
|
-
if (opts.responseValidator) {
|
|
741
|
-
await opts.responseValidator(data);
|
|
742
|
-
}
|
|
743
|
-
if (opts.responseTransformer) {
|
|
744
|
-
data = await opts.responseTransformer(data);
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
return opts.responseStyle === "data" ? data : {
|
|
748
|
-
data,
|
|
749
|
-
...result
|
|
750
|
-
};
|
|
751
|
-
}
|
|
752
|
-
const textError = await response.text();
|
|
753
|
-
let jsonError;
|
|
754
|
-
try {
|
|
755
|
-
jsonError = JSON.parse(textError);
|
|
756
|
-
} catch {}
|
|
757
|
-
const error = jsonError ?? textError;
|
|
758
|
-
let finalError = error;
|
|
759
|
-
for (const fn of interceptors.error.fns) {
|
|
760
|
-
if (fn) {
|
|
761
|
-
finalError = await fn(error, response, request, opts);
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
finalError = finalError || {};
|
|
765
|
-
if (opts.throwOnError) {
|
|
766
|
-
throw finalError;
|
|
767
|
-
}
|
|
768
|
-
return opts.responseStyle === "data" ? undefined : {
|
|
769
|
-
error: finalError,
|
|
770
|
-
...result
|
|
771
|
-
};
|
|
772
|
-
};
|
|
773
|
-
const makeMethodFn = (method) => (options) => request({ ...options, method });
|
|
774
|
-
const makeSseFn = (method) => async (options) => {
|
|
775
|
-
const { opts, url } = await beforeRequest(options);
|
|
776
|
-
return createSseClient({
|
|
777
|
-
...opts,
|
|
778
|
-
body: opts.body,
|
|
779
|
-
headers: opts.headers,
|
|
780
|
-
method,
|
|
781
|
-
onRequest: async (url, init) => {
|
|
782
|
-
let request = new Request(url, init);
|
|
783
|
-
for (const fn of interceptors.request.fns) {
|
|
784
|
-
if (fn) {
|
|
785
|
-
request = await fn(request, opts);
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
return request;
|
|
789
|
-
},
|
|
790
|
-
serializedBody: getValidRequestBody(opts),
|
|
791
|
-
url
|
|
792
|
-
});
|
|
793
|
-
};
|
|
794
|
-
return {
|
|
795
|
-
buildUrl,
|
|
796
|
-
connect: makeMethodFn("CONNECT"),
|
|
797
|
-
delete: makeMethodFn("DELETE"),
|
|
798
|
-
get: makeMethodFn("GET"),
|
|
799
|
-
getConfig,
|
|
800
|
-
head: makeMethodFn("HEAD"),
|
|
801
|
-
interceptors,
|
|
802
|
-
options: makeMethodFn("OPTIONS"),
|
|
803
|
-
patch: makeMethodFn("PATCH"),
|
|
804
|
-
post: makeMethodFn("POST"),
|
|
805
|
-
put: makeMethodFn("PUT"),
|
|
806
|
-
request,
|
|
807
|
-
setConfig,
|
|
808
|
-
sse: {
|
|
809
|
-
connect: makeSseFn("CONNECT"),
|
|
810
|
-
delete: makeSseFn("DELETE"),
|
|
811
|
-
get: makeSseFn("GET"),
|
|
812
|
-
head: makeSseFn("HEAD"),
|
|
813
|
-
options: makeSseFn("OPTIONS"),
|
|
814
|
-
patch: makeSseFn("PATCH"),
|
|
815
|
-
post: makeSseFn("POST"),
|
|
816
|
-
put: makeSseFn("PUT"),
|
|
817
|
-
trace: makeSseFn("TRACE")
|
|
818
|
-
},
|
|
819
|
-
trace: makeMethodFn("TRACE")
|
|
820
|
-
};
|
|
821
|
-
};
|
|
822
|
-
// src/generated/client.gen.ts
|
|
823
|
-
var client2 = createClient(createConfig());
|
|
2
|
+
import {
|
|
3
|
+
formDataBodySerializer,
|
|
4
|
+
client2
|
|
5
|
+
} from "./chunk-hj4h6hw6.js";
|
|
824
6
|
|
|
825
7
|
// src/generated/sdk.gen.ts
|
|
826
8
|
var createDeviceAuthorization2 = (options) => (options.client ?? client2).post({
|
|
@@ -1368,6 +550,14 @@ var listDatasetRows2 = (options) => (options.client ?? client2).get({
|
|
|
1368
550
|
url: "/api/datasets/{datasetId}/rows",
|
|
1369
551
|
...options
|
|
1370
552
|
});
|
|
553
|
+
var getLakeHealth2 = (options) => (options?.client ?? client2).get({
|
|
554
|
+
security: [
|
|
555
|
+
{ scheme: "bearer", type: "http" },
|
|
556
|
+
{ scheme: "bearer", type: "http" }
|
|
557
|
+
],
|
|
558
|
+
url: "/api/lake/health",
|
|
559
|
+
...options
|
|
560
|
+
});
|
|
1371
561
|
var listSyncs2 = (options) => (options?.client ?? client2).get({
|
|
1372
562
|
security: [
|
|
1373
563
|
{ scheme: "bearer", type: "http" },
|
|
@@ -1630,6 +820,15 @@ var exchangeSharedAccess2 = (options) => (options.client ?? client2).post({
|
|
|
1630
820
|
}
|
|
1631
821
|
});
|
|
1632
822
|
var getSharedAccessSession2 = (options) => (options.client ?? client2).get({ url: "/api/shared-access/{grantId}/session", ...options });
|
|
823
|
+
var setSharedAccessGuestName2 = (options) => (options.client ?? client2).put({
|
|
824
|
+
security: [{ name: "x-sixb-csrf", type: "apiKey" }],
|
|
825
|
+
url: "/api/shared-access/{grantId}/name",
|
|
826
|
+
...options,
|
|
827
|
+
headers: {
|
|
828
|
+
"Content-Type": "application/json",
|
|
829
|
+
...options.headers
|
|
830
|
+
}
|
|
831
|
+
});
|
|
1633
832
|
var signOutSharedAccess2 = (options) => (options.client ?? client2).post({
|
|
1634
833
|
security: [{ name: "x-sixb-csrf", type: "apiKey" }],
|
|
1635
834
|
url: "/api/shared-access/{grantId}/sign-out",
|
|
@@ -2089,6 +1288,11 @@ var headAgentChildFileContent2 = (options) => (options.client ?? client2).head({
|
|
|
2089
1288
|
url: "/api/agent-threads/{threadId}/child-files/content",
|
|
2090
1289
|
...options
|
|
2091
1290
|
});
|
|
1291
|
+
var listAgentComputers2 = (options) => (options?.client ?? client2).get({
|
|
1292
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1293
|
+
url: "/api/agent-computers",
|
|
1294
|
+
...options
|
|
1295
|
+
});
|
|
2092
1296
|
var moveAgentThreadToCloud2 = (options) => (options.client ?? client2).delete({
|
|
2093
1297
|
security: [
|
|
2094
1298
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
@@ -2129,6 +1333,18 @@ var holdAgentComputerSession2 = (options) => (options.client ?? client2).put({
|
|
|
2129
1333
|
...options.headers
|
|
2130
1334
|
}
|
|
2131
1335
|
});
|
|
1336
|
+
var stopAgentBackgroundCommand2 = (options) => (options.client ?? client2).post({
|
|
1337
|
+
security: [
|
|
1338
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1339
|
+
{ scheme: "bearer", type: "http" }
|
|
1340
|
+
],
|
|
1341
|
+
url: "/api/agent-threads/{threadId}/background-commands/{commandId}/stop",
|
|
1342
|
+
...options,
|
|
1343
|
+
headers: {
|
|
1344
|
+
"Content-Type": "application/json",
|
|
1345
|
+
...options.headers
|
|
1346
|
+
}
|
|
1347
|
+
});
|
|
2132
1348
|
var getAgentPreferences2 = (options) => (options?.client ?? client2).get({
|
|
2133
1349
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2134
1350
|
url: "/api/agent/preferences",
|
|
@@ -2281,11 +1497,21 @@ var deleteArtifact2 = (options) => (options.client ?? client2).delete({
|
|
|
2281
1497
|
var getArtifact2 = (options) => (options.client ?? client2).get({
|
|
2282
1498
|
security: [
|
|
2283
1499
|
{ scheme: "bearer", type: "http" },
|
|
2284
|
-
{ scheme: "bearer", type: "http" }
|
|
1500
|
+
{ scheme: "bearer", type: "http" },
|
|
1501
|
+
{ name: "x-sixb-share-grant", type: "apiKey" }
|
|
2285
1502
|
],
|
|
2286
1503
|
url: "/api/artifacts/{artifactId}",
|
|
2287
1504
|
...options
|
|
2288
1505
|
});
|
|
1506
|
+
var listArtifactHolders2 = (options) => (options.client ?? client2).get({
|
|
1507
|
+
security: [
|
|
1508
|
+
{ scheme: "bearer", type: "http" },
|
|
1509
|
+
{ scheme: "bearer", type: "http" },
|
|
1510
|
+
{ name: "x-sixb-share-grant", type: "apiKey" }
|
|
1511
|
+
],
|
|
1512
|
+
url: "/api/artifacts/{artifactId}/holders",
|
|
1513
|
+
...options
|
|
1514
|
+
});
|
|
2289
1515
|
var clearArtifactState2 = (options) => (options.client ?? client2).delete({
|
|
2290
1516
|
security: [
|
|
2291
1517
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
@@ -2325,40 +1551,147 @@ var setArtifactState2 = (options) => (options.client ?? client2).put({
|
|
|
2325
1551
|
...options.headers
|
|
2326
1552
|
}
|
|
2327
1553
|
});
|
|
2328
|
-
var
|
|
1554
|
+
var updateArtifact2 = (options) => (options.client ?? client2).put({
|
|
2329
1555
|
security: [
|
|
2330
1556
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
2331
1557
|
{ scheme: "bearer", type: "http" },
|
|
2332
1558
|
{ scheme: "bearer", type: "http" }
|
|
2333
1559
|
],
|
|
2334
|
-
url: "/api/artifacts/{artifactId}/
|
|
1560
|
+
url: "/api/artifacts/{artifactId}/content",
|
|
2335
1561
|
...options,
|
|
2336
1562
|
headers: {
|
|
2337
1563
|
"Content-Type": "application/json",
|
|
2338
1564
|
...options.headers
|
|
2339
1565
|
}
|
|
2340
1566
|
});
|
|
2341
|
-
var
|
|
1567
|
+
var freezeArtifactVersion2 = (options) => (options.client ?? client2).post({
|
|
2342
1568
|
security: [
|
|
2343
1569
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
2344
1570
|
{ scheme: "bearer", type: "http" },
|
|
2345
1571
|
{ scheme: "bearer", type: "http" }
|
|
2346
1572
|
],
|
|
1573
|
+
url: "/api/artifacts/{artifactId}/freeze",
|
|
1574
|
+
...options,
|
|
1575
|
+
headers: {
|
|
1576
|
+
"Content-Type": "application/json",
|
|
1577
|
+
...options.headers
|
|
1578
|
+
}
|
|
1579
|
+
});
|
|
1580
|
+
var listArtifactComments2 = (options) => (options.client ?? client2).get({
|
|
1581
|
+
security: [
|
|
1582
|
+
{ scheme: "bearer", type: "http" },
|
|
1583
|
+
{ scheme: "bearer", type: "http" },
|
|
1584
|
+
{ name: "x-sixb-share-grant", type: "apiKey" }
|
|
1585
|
+
],
|
|
1586
|
+
url: "/api/artifacts/{artifactId}/comments",
|
|
1587
|
+
...options
|
|
1588
|
+
});
|
|
1589
|
+
var addArtifactComment2 = (options) => (options.client ?? client2).post({
|
|
1590
|
+
security: [
|
|
1591
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1592
|
+
{ scheme: "bearer", type: "http" },
|
|
1593
|
+
{ scheme: "bearer", type: "http" },
|
|
1594
|
+
{ name: "x-sixb-share-grant", type: "apiKey" }
|
|
1595
|
+
],
|
|
1596
|
+
url: "/api/artifacts/{artifactId}/comments",
|
|
1597
|
+
...options,
|
|
1598
|
+
headers: {
|
|
1599
|
+
"Content-Type": "application/json",
|
|
1600
|
+
...options.headers
|
|
1601
|
+
}
|
|
1602
|
+
});
|
|
1603
|
+
var resolveArtifactComment2 = (options) => (options.client ?? client2).post({
|
|
1604
|
+
security: [
|
|
1605
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1606
|
+
{ scheme: "bearer", type: "http" },
|
|
1607
|
+
{ scheme: "bearer", type: "http" }
|
|
1608
|
+
],
|
|
1609
|
+
url: "/api/artifacts/{artifactId}/comments/{commentId}/resolve",
|
|
1610
|
+
...options,
|
|
1611
|
+
headers: {
|
|
1612
|
+
"Content-Type": "application/json",
|
|
1613
|
+
...options.headers
|
|
1614
|
+
}
|
|
1615
|
+
});
|
|
1616
|
+
var deleteArtifactComment2 = (options) => (options.client ?? client2).delete({
|
|
1617
|
+
security: [
|
|
1618
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1619
|
+
{ scheme: "bearer", type: "http" },
|
|
1620
|
+
{ scheme: "bearer", type: "http" }
|
|
1621
|
+
],
|
|
1622
|
+
url: "/api/artifacts/{artifactId}/comments/{commentId}",
|
|
1623
|
+
...options
|
|
1624
|
+
});
|
|
1625
|
+
var listArtifactRestorePoints2 = (options) => (options.client ?? client2).get({
|
|
1626
|
+
security: [
|
|
1627
|
+
{ scheme: "bearer", type: "http" },
|
|
1628
|
+
{ scheme: "bearer", type: "http" }
|
|
1629
|
+
],
|
|
1630
|
+
url: "/api/artifacts/{artifactId}/restore-points",
|
|
1631
|
+
...options
|
|
1632
|
+
});
|
|
1633
|
+
var getArtifactRestorePoint2 = (options) => (options.client ?? client2).get({
|
|
1634
|
+
security: [
|
|
1635
|
+
{ scheme: "bearer", type: "http" },
|
|
1636
|
+
{ scheme: "bearer", type: "http" }
|
|
1637
|
+
],
|
|
1638
|
+
url: "/api/artifacts/{artifactId}/restore-points/{revision}",
|
|
1639
|
+
...options
|
|
1640
|
+
});
|
|
1641
|
+
var getArtifactRestorePointFileContent2 = (options) => (options.client ?? client2).get({
|
|
1642
|
+
security: [
|
|
1643
|
+
{ scheme: "bearer", type: "http" },
|
|
1644
|
+
{ scheme: "bearer", type: "http" }
|
|
1645
|
+
],
|
|
1646
|
+
url: "/api/artifacts/{artifactId}/restore-points/{revision}/content",
|
|
1647
|
+
...options
|
|
1648
|
+
});
|
|
1649
|
+
var restoreArtifact2 = (options) => (options.client ?? client2).post({
|
|
1650
|
+
security: [
|
|
1651
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1652
|
+
{ scheme: "bearer", type: "http" },
|
|
1653
|
+
{ scheme: "bearer", type: "http" }
|
|
1654
|
+
],
|
|
1655
|
+
url: "/api/artifacts/{artifactId}/restore-points/{revision}/restore",
|
|
1656
|
+
...options,
|
|
1657
|
+
headers: {
|
|
1658
|
+
"Content-Type": "application/json",
|
|
1659
|
+
...options.headers
|
|
1660
|
+
}
|
|
1661
|
+
});
|
|
1662
|
+
var createArtifactFrame2 = (options) => (options.client ?? client2).post({
|
|
1663
|
+
security: [
|
|
1664
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1665
|
+
{ scheme: "bearer", type: "http" },
|
|
1666
|
+
{ scheme: "bearer", type: "http" },
|
|
1667
|
+
{ name: "x-sixb-share-grant", type: "apiKey" }
|
|
1668
|
+
],
|
|
2347
1669
|
url: "/api/artifacts/{artifactId}/versions/{version}/frame",
|
|
2348
1670
|
...options
|
|
2349
1671
|
});
|
|
2350
1672
|
var getArtifactVersion2 = (options) => (options.client ?? client2).get({
|
|
2351
1673
|
security: [
|
|
2352
1674
|
{ scheme: "bearer", type: "http" },
|
|
2353
|
-
{ scheme: "bearer", type: "http" }
|
|
1675
|
+
{ scheme: "bearer", type: "http" },
|
|
1676
|
+
{ name: "x-sixb-share-grant", type: "apiKey" }
|
|
2354
1677
|
],
|
|
2355
1678
|
url: "/api/artifacts/{artifactId}/versions/{version}",
|
|
2356
1679
|
...options
|
|
2357
1680
|
});
|
|
1681
|
+
var getArtifactBoardPreview2 = (options) => (options.client ?? client2).get({
|
|
1682
|
+
security: [
|
|
1683
|
+
{ scheme: "bearer", type: "http" },
|
|
1684
|
+
{ scheme: "bearer", type: "http" },
|
|
1685
|
+
{ name: "x-sixb-share-grant", type: "apiKey" }
|
|
1686
|
+
],
|
|
1687
|
+
url: "/api/artifacts/{artifactId}/versions/{version}/boards/{board}/preview",
|
|
1688
|
+
...options
|
|
1689
|
+
});
|
|
2358
1690
|
var getArtifactQuery2 = (options) => (options.client ?? client2).get({
|
|
2359
1691
|
security: [
|
|
2360
1692
|
{ scheme: "bearer", type: "http" },
|
|
2361
|
-
{ scheme: "bearer", type: "http" }
|
|
1693
|
+
{ scheme: "bearer", type: "http" },
|
|
1694
|
+
{ name: "x-sixb-share-grant", type: "apiKey" }
|
|
2362
1695
|
],
|
|
2363
1696
|
url: "/api/artifacts/{artifactId}/versions/{version}/queries/{name}",
|
|
2364
1697
|
...options
|
|
@@ -2366,7 +1699,8 @@ var getArtifactQuery2 = (options) => (options.client ?? client2).get({
|
|
|
2366
1699
|
var getArtifactFileContent2 = (options) => (options.client ?? client2).get({
|
|
2367
1700
|
security: [
|
|
2368
1701
|
{ scheme: "bearer", type: "http" },
|
|
2369
|
-
{ scheme: "bearer", type: "http" }
|
|
1702
|
+
{ scheme: "bearer", type: "http" },
|
|
1703
|
+
{ name: "x-sixb-share-grant", type: "apiKey" }
|
|
2370
1704
|
],
|
|
2371
1705
|
url: "/api/artifacts/{artifactId}/versions/{version}/content",
|
|
2372
1706
|
...options
|
|
@@ -2374,7 +1708,8 @@ var getArtifactFileContent2 = (options) => (options.client ?? client2).get({
|
|
|
2374
1708
|
var headArtifactFileContent2 = (options) => (options.client ?? client2).head({
|
|
2375
1709
|
security: [
|
|
2376
1710
|
{ scheme: "bearer", type: "http" },
|
|
2377
|
-
{ scheme: "bearer", type: "http" }
|
|
1711
|
+
{ scheme: "bearer", type: "http" },
|
|
1712
|
+
{ name: "x-sixb-share-grant", type: "apiKey" }
|
|
2378
1713
|
],
|
|
2379
1714
|
url: "/api/artifacts/{artifactId}/versions/{version}/content",
|
|
2380
1715
|
...options
|
|
@@ -2554,6 +1889,6 @@ var listWebhookRuns2 = (options) => (options?.client ?? client2).get({
|
|
|
2554
1889
|
...options
|
|
2555
1890
|
});
|
|
2556
1891
|
|
|
2557
|
-
export {
|
|
1892
|
+
export { createDeviceAuthorization2, exchangeDeviceAuthorization2, refreshAuthSession2, getAuthSession2, signOut2, listAuthSessions2, revokeAuthSession2, signOutAll2, getAuthProfile2, updateAuthProfile2, getAuthAccessManagementOptions2, listAuthAccessTokens2, createAuthPersonalAccessToken2, revokeAuthAccessToken2, listAuthServiceAccounts2, createAuthServiceAccount2, disableAuthServiceAccount2, listAuthServiceAccountAccessTokens2, createAuthServiceAccountAccessToken2, revokeAuthServiceAccountAccessToken2, listAuthInvitations2, createAuthInvitation2, getAuthInvitationOptions2, revokeAuthInvitation2, getAuthMembershipOptions2, listAuthMembers2, updateAuthMemberGroups2, suspendAuthMember2, reactivateAuthMember2, getAiAccountingOverview2, listAiModelCalls2, listAiLimitPolicies2, createAiLimitPolicy2, getAiLimitStatus2, getAiLimitSubjectOptions2, deleteAiLimitPolicy2, updateAiLimitPolicy2, listAiModelCallGroups2, getAiModelCallFiles2, getAiModelCallFileContent2, headAiModelCallFileContent2, generateText2, generateImages2, generateSpeech2, transcribeAudio2, getProjectInfo2, getStatus2, listConnectors2, getConnector2, listConnectorConnections2, disconnectConnectorConnection2, revokeConnectorConnection2, listPendingConnectorConnectionRuns2, startConnectorConnectionRun2, getConnectorConnectionRun2, addConnectorConnection2, selectConnectorConnectionRunAccount2, reauthorizeConnectorConnection2, listDatasets2, getDataset2, listDatasetVersions2, getDatasetVersion2, getDatasetVersionLineage2, listDatasetRows2, getLakeHealth2, listSyncs2, getSync2, listSyncRuns2, requestSyncRun2, listPipelines2, getPipeline2, listPipelineRuns2, getPipelineRun2, requestPipelineRun2, listWorkflows2, getWorkflow2, listWorkflowInterventions2, getWorkflowIntervention2, submitWorkflowIntervention2, cancelWorkflowIntervention2, listWorkflowRuns2, getWorkflowRun2, getWorkflowAgentNodeExecution2, cancelWorkflowRun2, getWorkflowRunFileContent2, headWorkflowRunFileContent2, getWorkflowNodeRunFileContent2, headWorkflowNodeRunFileContent2, requestWorkflowRun2, listRules2, getRule2, listRuleStates2, listSharedAccessGrants2, issueSharedAccessGrant2, revokeSharedAccessGrant2, exchangeSharedAccess2, getSharedAccessSession2, setSharedAccessGuestName2, signOutSharedAccess2, listObjectTypes2, getObjectType2, searchObjects2, listObjects2, queryObjects2, queryObjectLinks2, countObjects2, existsObjects2, facetObjects2, getObjectFileContent2, headObjectFileContent2, getObject2, getObjectLineage2, getObjectByUniqueProperty2, listActions2, getAction2, requestAction2, uploadFileRaw2, createFileUpload2, uploadFileContent2, signFileUploadPart2, completeFileUpload2, abortFileUpload2, listActionRuns2, getActionRun2, getActionRunFileContent2, headActionRunFileContent2, getAgent2, listAgentThreads2, createAgentThread2, getAgentThread2, addAgentThreadParticipants2, removeAgentThreadParticipant2, forkAgentThread2, recreateAgentThreadSandbox2, listAgentThreadMessages2, postAgentThreadMessage2, getAgentMessageFileContent2, headAgentMessageFileContent2, cancelAgentRun2, retryAgentRun2, getAgentThreadContext2, listAgentThreadRuns2, getAgentRun2, cancelAgentRunById2, listAgentThreadChildren2, getAgentChildFileContent2, headAgentChildFileContent2, listAgentComputers2, moveAgentThreadToCloud2, moveAgentThreadToComputer2, releaseAgentComputerSession2, holdAgentComputerSession2, stopAgentBackgroundCommand2, getAgentPreferences2, updateAgentPreferences2, setAgentThreadApprovalMode2, listAgentThreadApprovals2, decideAgentApproval2, listAgentApprovals2, getObservedAgentThread2, listObservedAgentThreadMessages2, getObservedAgentMessageFileContent2, listObservedAgentThreadRuns2, listObservedAgentThreadChildren2, getObservedAgentChildFileContent2, deleteAgentMemory2, getAgentMemory2, listAgentMemoryRevisions2, saveAgentMemory2, listArtifacts2, createArtifact2, deleteArtifact2, getArtifact2, listArtifactHolders2, clearArtifactState2, getArtifactState2, deleteArtifactStateValue2, setArtifactState2, updateArtifact2, freezeArtifactVersion2, listArtifactComments2, addArtifactComment2, resolveArtifactComment2, deleteArtifactComment2, listArtifactRestorePoints2, getArtifactRestorePoint2, getArtifactRestorePointFileContent2, restoreArtifact2, createArtifactFrame2, getArtifactVersion2, getArtifactBoardPreview2, getArtifactQuery2, getArtifactFileContent2, headArtifactFileContent2, listModels2, getObjectLinkLineage2, getBulkTelemetryHistory2, getTelemetryHistory2, getLatestTelemetry2, listEvents2, listLogs2, getActivityCaptureConfig2, captureActivity2, listActivityVisits2, listActivityUsers2, getActivitySummary2, getActivityCalendar2, getActivityVisitTimeline2, listActivityConnections2, listUsers2, getUser2, listProjections2, getProjection2, listProjectionRuns2, getProjectionRun2, listWebhookRuns2 };
|
|
2558
1893
|
|
|
2559
|
-
//# debugId=
|
|
1894
|
+
//# debugId=89910FCCB680765864756E2164756E21
|