@omnara/sdk 0.1.43 → 0.1.45
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/README.md +98 -0
- package/dist/browser.js +22 -13
- package/dist/browser.js.map +1 -1
- package/dist/{chunk-WM4BXMLD.js → chunk-BUM22BVJ.js} +194 -11
- package/dist/chunk-BUM22BVJ.js.map +1 -0
- package/dist/chunk-HFFDN2XF.js +1604 -0
- package/dist/chunk-HFFDN2XF.js.map +1 -0
- package/dist/{chunk-PPREVIWL.js → chunk-WVD6U2JJ.js} +217 -820
- package/dist/chunk-WVD6U2JJ.js.map +1 -0
- package/dist/index.d.ts +104 -13
- package/dist/index.js +344 -138
- package/dist/index.js.map +1 -1
- package/dist/{sdk.gen-Bp5seXss.d.ts → sdk.gen-BG9nJQHq.d.ts} +1600 -515
- package/dist/tanstack.d.ts +426 -2206
- package/dist/tanstack.js +305 -32
- package/dist/tanstack.js.map +1 -1
- package/dist/zod.d.ts +1 -1
- package/dist/{zod.gen-ArHIe1NX.d.ts → zod.gen-CncNKxHI.d.ts} +862 -21
- package/dist/zod.js +61 -1
- package/package.json +9 -6
- package/dist/chunk-6YKVAVCM.js +0 -73
- package/dist/chunk-6YKVAVCM.js.map +0 -1
- package/dist/chunk-NZCMY3BC.js +0 -50
- package/dist/chunk-NZCMY3BC.js.map +0 -1
- package/dist/chunk-PPREVIWL.js.map +0 -1
- package/dist/chunk-WM4BXMLD.js.map +0 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
+
client,
|
|
3
|
+
formDataBodySerializer,
|
|
2
4
|
relaxedResponseValidator
|
|
3
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HFFDN2XF.js";
|
|
4
6
|
import {
|
|
5
7
|
__export,
|
|
6
8
|
zAcceptInvitationResponse,
|
|
@@ -78,11 +80,14 @@ import {
|
|
|
78
80
|
zGetAgentUsageResponse,
|
|
79
81
|
zGetArtifactContentResponse,
|
|
80
82
|
zGetArtifactResponse,
|
|
83
|
+
zGetConfiguredModelResponse,
|
|
81
84
|
zGetCronTriggerResponse,
|
|
82
85
|
zGetCurrentUserResponse,
|
|
83
86
|
zGetDaemonGitCredentialsResponse,
|
|
84
87
|
zGetDaemonSkillArchiveResponse,
|
|
88
|
+
zGetEventWebhookResponse,
|
|
85
89
|
zGetIntegrationResponse,
|
|
90
|
+
zGetIntegrationSubscriptionResponse,
|
|
86
91
|
zGetMachinePoolResponse,
|
|
87
92
|
zGetMachineResponse,
|
|
88
93
|
zGetMemoryStoreResponse,
|
|
@@ -93,10 +98,16 @@ import {
|
|
|
93
98
|
zGetOrgUsageResponse,
|
|
94
99
|
zGetOrgUsageTimeseriesResponse,
|
|
95
100
|
zGetProjectAvailableSecretResponse,
|
|
101
|
+
zGetProjectMachineGrantResponse,
|
|
96
102
|
zGetProjectMachinePoolGrantResponse,
|
|
103
|
+
zGetProjectModelGrantResponse,
|
|
104
|
+
zGetProjectResponse,
|
|
97
105
|
zGetProjectUsageResponse,
|
|
106
|
+
zGetSecretGrantResponse,
|
|
98
107
|
zGetSecretResponse,
|
|
108
|
+
zGetSkillGrantResponse,
|
|
99
109
|
zGetSkillResponse,
|
|
110
|
+
zGetToolCallResponse,
|
|
100
111
|
zGetToolCatalogResponse,
|
|
101
112
|
zInspectIntegrationGitHubInstallationsResponse,
|
|
102
113
|
zListActorsResponse2,
|
|
@@ -132,9 +143,11 @@ import {
|
|
|
132
143
|
zListPersonalAccessTokensResponse2,
|
|
133
144
|
zListProjectAvailableSecretsResponse,
|
|
134
145
|
zListProjectAvailableSkillsResponse,
|
|
146
|
+
zListProjectInteractionsResponse,
|
|
135
147
|
zListProjectMachineGrantsResponse2,
|
|
136
148
|
zListProjectMachinePoolGrantsResponse2,
|
|
137
149
|
zListProjectModelGrantsResponse2,
|
|
150
|
+
zListProjectToolCallsResponse,
|
|
138
151
|
zListQueuedBacklogInputsResponse,
|
|
139
152
|
zListSecretGrantsResponse2,
|
|
140
153
|
zListSecretsResponse2,
|
|
@@ -180,824 +193,12 @@ import {
|
|
|
180
193
|
zUpdateOrgMemberResponse,
|
|
181
194
|
zUpdateProjectMachinePoolGrantResponse,
|
|
182
195
|
zUpdateProjectModelGrantResponse,
|
|
196
|
+
zUpdateProjectResponse,
|
|
183
197
|
zUpdateSecretResponse,
|
|
184
198
|
zUpdateSkillResponse,
|
|
185
199
|
zUploadDaemonFileResponse,
|
|
186
200
|
zWriteMemoryFileResponse
|
|
187
|
-
} from "./chunk-
|
|
188
|
-
|
|
189
|
-
// src/generated/core/bodySerializer.gen.ts
|
|
190
|
-
var serializeFormDataPair = (data, key, value) => {
|
|
191
|
-
if (typeof value === "string" || value instanceof Blob) {
|
|
192
|
-
data.append(key, value);
|
|
193
|
-
} else if (value instanceof Date) {
|
|
194
|
-
data.append(key, value.toISOString());
|
|
195
|
-
} else {
|
|
196
|
-
data.append(key, JSON.stringify(value));
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
var formDataBodySerializer = {
|
|
200
|
-
bodySerializer: (body) => {
|
|
201
|
-
const data = new FormData();
|
|
202
|
-
Object.entries(body).forEach(([key, value]) => {
|
|
203
|
-
if (value === void 0 || value === null) {
|
|
204
|
-
return;
|
|
205
|
-
}
|
|
206
|
-
if (Array.isArray(value)) {
|
|
207
|
-
value.forEach((v) => serializeFormDataPair(data, key, v));
|
|
208
|
-
} else {
|
|
209
|
-
serializeFormDataPair(data, key, value);
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
return data;
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
|
-
var jsonBodySerializer = {
|
|
216
|
-
bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
// src/generated/core/params.gen.ts
|
|
220
|
-
var extraPrefixesMap = {
|
|
221
|
-
$body_: "body",
|
|
222
|
-
$headers_: "headers",
|
|
223
|
-
$path_: "path",
|
|
224
|
-
$query_: "query"
|
|
225
|
-
};
|
|
226
|
-
var extraPrefixes = Object.entries(extraPrefixesMap);
|
|
227
|
-
|
|
228
|
-
// src/generated/core/serverSentEvents.gen.ts
|
|
229
|
-
function createSseClient({
|
|
230
|
-
onRequest,
|
|
231
|
-
onSseError,
|
|
232
|
-
onSseEvent,
|
|
233
|
-
responseTransformer,
|
|
234
|
-
responseValidator,
|
|
235
|
-
sseDefaultRetryDelay,
|
|
236
|
-
sseMaxRetryAttempts,
|
|
237
|
-
sseMaxRetryDelay,
|
|
238
|
-
sseSleepFn,
|
|
239
|
-
url,
|
|
240
|
-
...options
|
|
241
|
-
}) {
|
|
242
|
-
let lastEventId;
|
|
243
|
-
const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
|
|
244
|
-
const createStream = async function* () {
|
|
245
|
-
let retryDelay = sseDefaultRetryDelay ?? 3e3;
|
|
246
|
-
let attempt = 0;
|
|
247
|
-
const signal = options.signal ?? new AbortController().signal;
|
|
248
|
-
while (true) {
|
|
249
|
-
if (signal.aborted) break;
|
|
250
|
-
attempt++;
|
|
251
|
-
const headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers);
|
|
252
|
-
if (lastEventId !== void 0) {
|
|
253
|
-
headers.set("Last-Event-ID", lastEventId);
|
|
254
|
-
}
|
|
255
|
-
try {
|
|
256
|
-
const requestInit = {
|
|
257
|
-
redirect: "follow",
|
|
258
|
-
...options,
|
|
259
|
-
body: options.serializedBody,
|
|
260
|
-
headers,
|
|
261
|
-
signal
|
|
262
|
-
};
|
|
263
|
-
let request = new Request(url, requestInit);
|
|
264
|
-
if (onRequest) {
|
|
265
|
-
request = await onRequest(url, requestInit);
|
|
266
|
-
}
|
|
267
|
-
const _fetch = options.fetch ?? globalThis.fetch;
|
|
268
|
-
const response = await _fetch(request);
|
|
269
|
-
if (!response.ok) throw new Error(`SSE failed: ${response.status} ${response.statusText}`);
|
|
270
|
-
if (!response.body) throw new Error("No body in SSE response");
|
|
271
|
-
const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
|
|
272
|
-
let buffer = "";
|
|
273
|
-
const abortHandler = () => {
|
|
274
|
-
try {
|
|
275
|
-
reader.cancel();
|
|
276
|
-
} catch {
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
signal.addEventListener("abort", abortHandler);
|
|
280
|
-
try {
|
|
281
|
-
while (true) {
|
|
282
|
-
const { done, value } = await reader.read();
|
|
283
|
-
if (done) break;
|
|
284
|
-
buffer += value;
|
|
285
|
-
buffer = buffer.replace(/\r\n?/g, "\n");
|
|
286
|
-
const chunks = buffer.split("\n\n");
|
|
287
|
-
buffer = chunks.pop() ?? "";
|
|
288
|
-
for (const chunk of chunks) {
|
|
289
|
-
const lines = chunk.split("\n");
|
|
290
|
-
const dataLines = [];
|
|
291
|
-
let eventName;
|
|
292
|
-
for (const line of lines) {
|
|
293
|
-
if (line.startsWith("data:")) {
|
|
294
|
-
dataLines.push(line.replace(/^data:\s*/, ""));
|
|
295
|
-
} else if (line.startsWith("event:")) {
|
|
296
|
-
eventName = line.replace(/^event:\s*/, "");
|
|
297
|
-
} else if (line.startsWith("id:")) {
|
|
298
|
-
lastEventId = line.replace(/^id:\s*/, "");
|
|
299
|
-
} else if (line.startsWith("retry:")) {
|
|
300
|
-
const parsed = Number.parseInt(line.replace(/^retry:\s*/, ""), 10);
|
|
301
|
-
if (!Number.isNaN(parsed)) {
|
|
302
|
-
retryDelay = parsed;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
let data;
|
|
307
|
-
let parsedJson = false;
|
|
308
|
-
if (dataLines.length) {
|
|
309
|
-
const rawData = dataLines.join("\n");
|
|
310
|
-
try {
|
|
311
|
-
data = JSON.parse(rawData);
|
|
312
|
-
parsedJson = true;
|
|
313
|
-
} catch {
|
|
314
|
-
data = rawData;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
if (parsedJson) {
|
|
318
|
-
if (responseValidator) {
|
|
319
|
-
await responseValidator(data);
|
|
320
|
-
}
|
|
321
|
-
if (responseTransformer) {
|
|
322
|
-
data = await responseTransformer(data);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
onSseEvent?.({
|
|
326
|
-
data,
|
|
327
|
-
event: eventName,
|
|
328
|
-
id: lastEventId,
|
|
329
|
-
retry: retryDelay
|
|
330
|
-
});
|
|
331
|
-
if (dataLines.length) {
|
|
332
|
-
yield data;
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
} finally {
|
|
337
|
-
signal.removeEventListener("abort", abortHandler);
|
|
338
|
-
reader.releaseLock();
|
|
339
|
-
}
|
|
340
|
-
break;
|
|
341
|
-
} catch (error) {
|
|
342
|
-
onSseError?.(error);
|
|
343
|
-
if (sseMaxRetryAttempts !== void 0 && attempt >= sseMaxRetryAttempts) {
|
|
344
|
-
break;
|
|
345
|
-
}
|
|
346
|
-
const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 3e4);
|
|
347
|
-
await sleep(backoff);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
const stream = createStream();
|
|
352
|
-
return { stream };
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
// src/generated/core/pathSerializer.gen.ts
|
|
356
|
-
var separatorArrayExplode = (style) => {
|
|
357
|
-
switch (style) {
|
|
358
|
-
case "label":
|
|
359
|
-
return ".";
|
|
360
|
-
case "matrix":
|
|
361
|
-
return ";";
|
|
362
|
-
case "simple":
|
|
363
|
-
return ",";
|
|
364
|
-
default:
|
|
365
|
-
return "&";
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
|
-
var separatorArrayNoExplode = (style) => {
|
|
369
|
-
switch (style) {
|
|
370
|
-
case "form":
|
|
371
|
-
return ",";
|
|
372
|
-
case "pipeDelimited":
|
|
373
|
-
return "|";
|
|
374
|
-
case "spaceDelimited":
|
|
375
|
-
return "%20";
|
|
376
|
-
default:
|
|
377
|
-
return ",";
|
|
378
|
-
}
|
|
379
|
-
};
|
|
380
|
-
var separatorObjectExplode = (style) => {
|
|
381
|
-
switch (style) {
|
|
382
|
-
case "label":
|
|
383
|
-
return ".";
|
|
384
|
-
case "matrix":
|
|
385
|
-
return ";";
|
|
386
|
-
case "simple":
|
|
387
|
-
return ",";
|
|
388
|
-
default:
|
|
389
|
-
return "&";
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
|
-
var serializeArrayParam = ({
|
|
393
|
-
allowReserved,
|
|
394
|
-
explode,
|
|
395
|
-
name,
|
|
396
|
-
style,
|
|
397
|
-
value
|
|
398
|
-
}) => {
|
|
399
|
-
if (!explode) {
|
|
400
|
-
const joinedValues2 = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
|
|
401
|
-
switch (style) {
|
|
402
|
-
case "label":
|
|
403
|
-
return `.${joinedValues2}`;
|
|
404
|
-
case "matrix":
|
|
405
|
-
return `;${name}=${joinedValues2}`;
|
|
406
|
-
case "simple":
|
|
407
|
-
return joinedValues2;
|
|
408
|
-
default:
|
|
409
|
-
return `${name}=${joinedValues2}`;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
const separator = separatorArrayExplode(style);
|
|
413
|
-
const joinedValues = value.map((v) => {
|
|
414
|
-
if (style === "label" || style === "simple") {
|
|
415
|
-
return allowReserved ? v : encodeURIComponent(v);
|
|
416
|
-
}
|
|
417
|
-
return serializePrimitiveParam({
|
|
418
|
-
allowReserved,
|
|
419
|
-
name,
|
|
420
|
-
value: v
|
|
421
|
-
});
|
|
422
|
-
}).join(separator);
|
|
423
|
-
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
424
|
-
};
|
|
425
|
-
var serializePrimitiveParam = ({
|
|
426
|
-
allowReserved,
|
|
427
|
-
name,
|
|
428
|
-
value
|
|
429
|
-
}) => {
|
|
430
|
-
if (value === void 0 || value === null) {
|
|
431
|
-
return "";
|
|
432
|
-
}
|
|
433
|
-
if (typeof value === "object") {
|
|
434
|
-
throw new Error(
|
|
435
|
-
"Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these."
|
|
436
|
-
);
|
|
437
|
-
}
|
|
438
|
-
return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
|
|
439
|
-
};
|
|
440
|
-
var serializeObjectParam = ({
|
|
441
|
-
allowReserved,
|
|
442
|
-
explode,
|
|
443
|
-
name,
|
|
444
|
-
style,
|
|
445
|
-
value,
|
|
446
|
-
valueOnly
|
|
447
|
-
}) => {
|
|
448
|
-
if (value instanceof Date) {
|
|
449
|
-
return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
|
|
450
|
-
}
|
|
451
|
-
if (style !== "deepObject" && !explode) {
|
|
452
|
-
let values = [];
|
|
453
|
-
Object.entries(value).forEach(([key, v]) => {
|
|
454
|
-
values = [...values, key, allowReserved ? v : encodeURIComponent(v)];
|
|
455
|
-
});
|
|
456
|
-
const joinedValues2 = values.join(",");
|
|
457
|
-
switch (style) {
|
|
458
|
-
case "form":
|
|
459
|
-
return `${name}=${joinedValues2}`;
|
|
460
|
-
case "label":
|
|
461
|
-
return `.${joinedValues2}`;
|
|
462
|
-
case "matrix":
|
|
463
|
-
return `;${name}=${joinedValues2}`;
|
|
464
|
-
default:
|
|
465
|
-
return joinedValues2;
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
const separator = separatorObjectExplode(style);
|
|
469
|
-
const joinedValues = Object.entries(value).map(
|
|
470
|
-
([key, v]) => serializePrimitiveParam({
|
|
471
|
-
allowReserved,
|
|
472
|
-
name: style === "deepObject" ? `${name}[${key}]` : key,
|
|
473
|
-
value: v
|
|
474
|
-
})
|
|
475
|
-
).join(separator);
|
|
476
|
-
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
477
|
-
};
|
|
478
|
-
|
|
479
|
-
// src/generated/core/utils.gen.ts
|
|
480
|
-
var PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
481
|
-
var defaultPathSerializer = ({ path, url: _url }) => {
|
|
482
|
-
let url = _url;
|
|
483
|
-
const matches = _url.match(PATH_PARAM_RE);
|
|
484
|
-
if (matches) {
|
|
485
|
-
for (const match of matches) {
|
|
486
|
-
let explode = false;
|
|
487
|
-
let name = match.substring(1, match.length - 1);
|
|
488
|
-
let style = "simple";
|
|
489
|
-
if (name.endsWith("*")) {
|
|
490
|
-
explode = true;
|
|
491
|
-
name = name.substring(0, name.length - 1);
|
|
492
|
-
}
|
|
493
|
-
if (name.startsWith(".")) {
|
|
494
|
-
name = name.substring(1);
|
|
495
|
-
style = "label";
|
|
496
|
-
} else if (name.startsWith(";")) {
|
|
497
|
-
name = name.substring(1);
|
|
498
|
-
style = "matrix";
|
|
499
|
-
}
|
|
500
|
-
const value = path[name];
|
|
501
|
-
if (value === void 0 || value === null) {
|
|
502
|
-
continue;
|
|
503
|
-
}
|
|
504
|
-
if (Array.isArray(value)) {
|
|
505
|
-
url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
|
|
506
|
-
continue;
|
|
507
|
-
}
|
|
508
|
-
if (typeof value === "object") {
|
|
509
|
-
url = url.replace(
|
|
510
|
-
match,
|
|
511
|
-
serializeObjectParam({
|
|
512
|
-
explode,
|
|
513
|
-
name,
|
|
514
|
-
style,
|
|
515
|
-
value,
|
|
516
|
-
valueOnly: true
|
|
517
|
-
})
|
|
518
|
-
);
|
|
519
|
-
continue;
|
|
520
|
-
}
|
|
521
|
-
if (style === "matrix") {
|
|
522
|
-
url = url.replace(
|
|
523
|
-
match,
|
|
524
|
-
`;${serializePrimitiveParam({
|
|
525
|
-
name,
|
|
526
|
-
value
|
|
527
|
-
})}`
|
|
528
|
-
);
|
|
529
|
-
continue;
|
|
530
|
-
}
|
|
531
|
-
const replaceValue = encodeURIComponent(
|
|
532
|
-
style === "label" ? `.${value}` : value
|
|
533
|
-
);
|
|
534
|
-
url = url.replace(match, replaceValue);
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
return url;
|
|
538
|
-
};
|
|
539
|
-
var getUrl = ({
|
|
540
|
-
baseUrl,
|
|
541
|
-
path,
|
|
542
|
-
query,
|
|
543
|
-
querySerializer,
|
|
544
|
-
url: _url
|
|
545
|
-
}) => {
|
|
546
|
-
const pathUrl = _url.startsWith("/") ? _url : `/${_url}`;
|
|
547
|
-
let url = (baseUrl ?? "") + pathUrl;
|
|
548
|
-
if (path) {
|
|
549
|
-
url = defaultPathSerializer({ path, url });
|
|
550
|
-
}
|
|
551
|
-
let search = query ? querySerializer(query) : "";
|
|
552
|
-
if (search.startsWith("?")) {
|
|
553
|
-
search = search.substring(1);
|
|
554
|
-
}
|
|
555
|
-
if (search) {
|
|
556
|
-
url += `?${search}`;
|
|
557
|
-
}
|
|
558
|
-
return url;
|
|
559
|
-
};
|
|
560
|
-
function getValidRequestBody(options) {
|
|
561
|
-
const hasBody = options.body !== void 0;
|
|
562
|
-
const isSerializedBody = hasBody && options.bodySerializer;
|
|
563
|
-
if (isSerializedBody) {
|
|
564
|
-
if ("serializedBody" in options) {
|
|
565
|
-
const hasSerializedBody = options.serializedBody !== void 0 && options.serializedBody !== "";
|
|
566
|
-
return hasSerializedBody ? options.serializedBody : null;
|
|
567
|
-
}
|
|
568
|
-
return options.body !== "" ? options.body : null;
|
|
569
|
-
}
|
|
570
|
-
if (hasBody) {
|
|
571
|
-
return options.body;
|
|
572
|
-
}
|
|
573
|
-
return void 0;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
// src/generated/core/auth.gen.ts
|
|
577
|
-
var getAuthToken = async (auth, callback) => {
|
|
578
|
-
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
579
|
-
if (!token) {
|
|
580
|
-
return;
|
|
581
|
-
}
|
|
582
|
-
if (auth.scheme === "bearer") {
|
|
583
|
-
return `Bearer ${token}`;
|
|
584
|
-
}
|
|
585
|
-
if (auth.scheme === "basic") {
|
|
586
|
-
return `Basic ${btoa(token)}`;
|
|
587
|
-
}
|
|
588
|
-
return token;
|
|
589
|
-
};
|
|
590
|
-
|
|
591
|
-
// src/generated/client/utils.gen.ts
|
|
592
|
-
var createQuerySerializer = ({
|
|
593
|
-
parameters = {},
|
|
594
|
-
...args
|
|
595
|
-
} = {}) => {
|
|
596
|
-
const querySerializer = (queryParams) => {
|
|
597
|
-
const search = [];
|
|
598
|
-
if (queryParams && typeof queryParams === "object") {
|
|
599
|
-
for (const name in queryParams) {
|
|
600
|
-
const value = queryParams[name];
|
|
601
|
-
if (value === void 0 || value === null) {
|
|
602
|
-
continue;
|
|
603
|
-
}
|
|
604
|
-
const options = parameters[name] || args;
|
|
605
|
-
if (Array.isArray(value)) {
|
|
606
|
-
const serializedArray = serializeArrayParam({
|
|
607
|
-
allowReserved: options.allowReserved,
|
|
608
|
-
explode: true,
|
|
609
|
-
name,
|
|
610
|
-
style: "form",
|
|
611
|
-
value,
|
|
612
|
-
...options.array
|
|
613
|
-
});
|
|
614
|
-
if (serializedArray) search.push(serializedArray);
|
|
615
|
-
} else if (typeof value === "object") {
|
|
616
|
-
const serializedObject = serializeObjectParam({
|
|
617
|
-
allowReserved: options.allowReserved,
|
|
618
|
-
explode: true,
|
|
619
|
-
name,
|
|
620
|
-
style: "deepObject",
|
|
621
|
-
value,
|
|
622
|
-
...options.object
|
|
623
|
-
});
|
|
624
|
-
if (serializedObject) search.push(serializedObject);
|
|
625
|
-
} else {
|
|
626
|
-
const serializedPrimitive = serializePrimitiveParam({
|
|
627
|
-
allowReserved: options.allowReserved,
|
|
628
|
-
name,
|
|
629
|
-
value
|
|
630
|
-
});
|
|
631
|
-
if (serializedPrimitive) search.push(serializedPrimitive);
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
return search.join("&");
|
|
636
|
-
};
|
|
637
|
-
return querySerializer;
|
|
638
|
-
};
|
|
639
|
-
var getParseAs = (contentType) => {
|
|
640
|
-
if (!contentType) {
|
|
641
|
-
return "stream";
|
|
642
|
-
}
|
|
643
|
-
const cleanContent = contentType.split(";")[0]?.trim();
|
|
644
|
-
if (!cleanContent) {
|
|
645
|
-
return;
|
|
646
|
-
}
|
|
647
|
-
if (cleanContent.startsWith("application/json") || cleanContent.endsWith("+json")) {
|
|
648
|
-
return "json";
|
|
649
|
-
}
|
|
650
|
-
if (cleanContent === "multipart/form-data") {
|
|
651
|
-
return "formData";
|
|
652
|
-
}
|
|
653
|
-
if (["application/", "audio/", "image/", "video/"].some((type) => cleanContent.startsWith(type))) {
|
|
654
|
-
return "blob";
|
|
655
|
-
}
|
|
656
|
-
if (cleanContent.startsWith("text/")) {
|
|
657
|
-
return "text";
|
|
658
|
-
}
|
|
659
|
-
return;
|
|
660
|
-
};
|
|
661
|
-
var checkForExistence = (options, name) => {
|
|
662
|
-
if (!name) {
|
|
663
|
-
return false;
|
|
664
|
-
}
|
|
665
|
-
if (options.headers.has(name) || options.query?.[name] || options.headers.get("Cookie")?.includes(`${name}=`)) {
|
|
666
|
-
return true;
|
|
667
|
-
}
|
|
668
|
-
return false;
|
|
669
|
-
};
|
|
670
|
-
async function setAuthParams(options) {
|
|
671
|
-
for (const auth of options.security ?? []) {
|
|
672
|
-
if (checkForExistence(options, auth.name)) {
|
|
673
|
-
continue;
|
|
674
|
-
}
|
|
675
|
-
const token = await getAuthToken(auth, options.auth);
|
|
676
|
-
if (!token) {
|
|
677
|
-
continue;
|
|
678
|
-
}
|
|
679
|
-
const name = auth.name ?? "Authorization";
|
|
680
|
-
switch (auth.in) {
|
|
681
|
-
case "query":
|
|
682
|
-
if (!options.query) {
|
|
683
|
-
options.query = {};
|
|
684
|
-
}
|
|
685
|
-
options.query[name] = token;
|
|
686
|
-
break;
|
|
687
|
-
case "cookie":
|
|
688
|
-
options.headers.append("Cookie", `${name}=${token}`);
|
|
689
|
-
break;
|
|
690
|
-
case "header":
|
|
691
|
-
default:
|
|
692
|
-
options.headers.set(name, token);
|
|
693
|
-
break;
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
var buildUrl = (options) => getUrl({
|
|
698
|
-
baseUrl: options.baseUrl,
|
|
699
|
-
path: options.path,
|
|
700
|
-
query: options.query,
|
|
701
|
-
querySerializer: typeof options.querySerializer === "function" ? options.querySerializer : createQuerySerializer(options.querySerializer),
|
|
702
|
-
url: options.url
|
|
703
|
-
});
|
|
704
|
-
var mergeConfigs = (a, b) => {
|
|
705
|
-
const config = { ...a, ...b };
|
|
706
|
-
if (config.baseUrl?.endsWith("/")) {
|
|
707
|
-
config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);
|
|
708
|
-
}
|
|
709
|
-
config.headers = mergeHeaders(a.headers, b.headers);
|
|
710
|
-
return config;
|
|
711
|
-
};
|
|
712
|
-
var headersEntries = (headers) => {
|
|
713
|
-
const entries = [];
|
|
714
|
-
headers.forEach((value, key) => {
|
|
715
|
-
entries.push([key, value]);
|
|
716
|
-
});
|
|
717
|
-
return entries;
|
|
718
|
-
};
|
|
719
|
-
var mergeHeaders = (...headers) => {
|
|
720
|
-
const mergedHeaders = new Headers();
|
|
721
|
-
for (const header of headers) {
|
|
722
|
-
if (!header) {
|
|
723
|
-
continue;
|
|
724
|
-
}
|
|
725
|
-
const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header);
|
|
726
|
-
for (const [key, value] of iterator) {
|
|
727
|
-
if (value === null) {
|
|
728
|
-
mergedHeaders.delete(key);
|
|
729
|
-
} else if (Array.isArray(value)) {
|
|
730
|
-
for (const v of value) {
|
|
731
|
-
mergedHeaders.append(key, v);
|
|
732
|
-
}
|
|
733
|
-
} else if (value !== void 0) {
|
|
734
|
-
mergedHeaders.set(
|
|
735
|
-
key,
|
|
736
|
-
typeof value === "object" ? JSON.stringify(value) : value
|
|
737
|
-
);
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
return mergedHeaders;
|
|
742
|
-
};
|
|
743
|
-
var Interceptors = class {
|
|
744
|
-
fns = [];
|
|
745
|
-
clear() {
|
|
746
|
-
this.fns = [];
|
|
747
|
-
}
|
|
748
|
-
eject(id) {
|
|
749
|
-
const index = this.getInterceptorIndex(id);
|
|
750
|
-
if (this.fns[index]) {
|
|
751
|
-
this.fns[index] = null;
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
exists(id) {
|
|
755
|
-
const index = this.getInterceptorIndex(id);
|
|
756
|
-
return Boolean(this.fns[index]);
|
|
757
|
-
}
|
|
758
|
-
getInterceptorIndex(id) {
|
|
759
|
-
if (typeof id === "number") {
|
|
760
|
-
return this.fns[id] ? id : -1;
|
|
761
|
-
}
|
|
762
|
-
return this.fns.indexOf(id);
|
|
763
|
-
}
|
|
764
|
-
update(id, fn) {
|
|
765
|
-
const index = this.getInterceptorIndex(id);
|
|
766
|
-
if (this.fns[index]) {
|
|
767
|
-
this.fns[index] = fn;
|
|
768
|
-
return id;
|
|
769
|
-
}
|
|
770
|
-
return false;
|
|
771
|
-
}
|
|
772
|
-
use(fn) {
|
|
773
|
-
this.fns.push(fn);
|
|
774
|
-
return this.fns.length - 1;
|
|
775
|
-
}
|
|
776
|
-
};
|
|
777
|
-
var createInterceptors = () => ({
|
|
778
|
-
error: new Interceptors(),
|
|
779
|
-
request: new Interceptors(),
|
|
780
|
-
response: new Interceptors()
|
|
781
|
-
});
|
|
782
|
-
var defaultQuerySerializer = createQuerySerializer({
|
|
783
|
-
allowReserved: false,
|
|
784
|
-
array: {
|
|
785
|
-
explode: true,
|
|
786
|
-
style: "form"
|
|
787
|
-
},
|
|
788
|
-
object: {
|
|
789
|
-
explode: true,
|
|
790
|
-
style: "deepObject"
|
|
791
|
-
}
|
|
792
|
-
});
|
|
793
|
-
var defaultHeaders = {
|
|
794
|
-
"Content-Type": "application/json"
|
|
795
|
-
};
|
|
796
|
-
var createConfig = (override = {}) => ({
|
|
797
|
-
...jsonBodySerializer,
|
|
798
|
-
headers: defaultHeaders,
|
|
799
|
-
parseAs: "auto",
|
|
800
|
-
querySerializer: defaultQuerySerializer,
|
|
801
|
-
...override
|
|
802
|
-
});
|
|
803
|
-
|
|
804
|
-
// src/generated/client/client.gen.ts
|
|
805
|
-
var createClient = (config = {}) => {
|
|
806
|
-
let _config = mergeConfigs(createConfig(), config);
|
|
807
|
-
const getConfig = () => ({ ..._config });
|
|
808
|
-
const setConfig = (config2) => {
|
|
809
|
-
_config = mergeConfigs(_config, config2);
|
|
810
|
-
return getConfig();
|
|
811
|
-
};
|
|
812
|
-
const interceptors = createInterceptors();
|
|
813
|
-
const beforeRequest = async (options) => {
|
|
814
|
-
const opts = {
|
|
815
|
-
..._config,
|
|
816
|
-
...options,
|
|
817
|
-
fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
|
|
818
|
-
headers: mergeHeaders(_config.headers, options.headers),
|
|
819
|
-
serializedBody: void 0
|
|
820
|
-
};
|
|
821
|
-
if (opts.security) {
|
|
822
|
-
await setAuthParams(opts);
|
|
823
|
-
}
|
|
824
|
-
if (opts.requestValidator) {
|
|
825
|
-
await opts.requestValidator(opts);
|
|
826
|
-
}
|
|
827
|
-
if (opts.body !== void 0 && opts.bodySerializer) {
|
|
828
|
-
opts.serializedBody = opts.bodySerializer(opts.body);
|
|
829
|
-
}
|
|
830
|
-
if (opts.body === void 0 || opts.serializedBody === "") {
|
|
831
|
-
opts.headers.delete("Content-Type");
|
|
832
|
-
}
|
|
833
|
-
const resolvedOpts = opts;
|
|
834
|
-
const url = buildUrl(resolvedOpts);
|
|
835
|
-
return { opts: resolvedOpts, url };
|
|
836
|
-
};
|
|
837
|
-
const request = async (options) => {
|
|
838
|
-
const throwOnError = options.throwOnError ?? _config.throwOnError;
|
|
839
|
-
const responseStyle = options.responseStyle ?? _config.responseStyle;
|
|
840
|
-
let request2;
|
|
841
|
-
let response;
|
|
842
|
-
try {
|
|
843
|
-
const { opts, url } = await beforeRequest(options);
|
|
844
|
-
const requestInit = {
|
|
845
|
-
redirect: "follow",
|
|
846
|
-
...opts,
|
|
847
|
-
body: getValidRequestBody(opts)
|
|
848
|
-
};
|
|
849
|
-
request2 = new Request(url, requestInit);
|
|
850
|
-
for (const fn of interceptors.request.fns) {
|
|
851
|
-
if (fn) {
|
|
852
|
-
request2 = await fn(request2, opts);
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
const _fetch = opts.fetch;
|
|
856
|
-
response = await _fetch(request2);
|
|
857
|
-
for (const fn of interceptors.response.fns) {
|
|
858
|
-
if (fn) {
|
|
859
|
-
response = await fn(response, request2, opts);
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
const result = {
|
|
863
|
-
request: request2,
|
|
864
|
-
response
|
|
865
|
-
};
|
|
866
|
-
if (response.ok) {
|
|
867
|
-
const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
|
|
868
|
-
if (response.status === 204 || response.headers.get("Content-Length") === "0") {
|
|
869
|
-
let emptyData;
|
|
870
|
-
switch (parseAs) {
|
|
871
|
-
case "arrayBuffer":
|
|
872
|
-
case "blob":
|
|
873
|
-
case "text":
|
|
874
|
-
emptyData = await response[parseAs]();
|
|
875
|
-
break;
|
|
876
|
-
case "formData":
|
|
877
|
-
emptyData = new FormData();
|
|
878
|
-
break;
|
|
879
|
-
case "stream":
|
|
880
|
-
emptyData = response.body;
|
|
881
|
-
break;
|
|
882
|
-
case "json":
|
|
883
|
-
default:
|
|
884
|
-
emptyData = {};
|
|
885
|
-
break;
|
|
886
|
-
}
|
|
887
|
-
return opts.responseStyle === "data" ? emptyData : {
|
|
888
|
-
data: emptyData,
|
|
889
|
-
...result
|
|
890
|
-
};
|
|
891
|
-
}
|
|
892
|
-
let data;
|
|
893
|
-
switch (parseAs) {
|
|
894
|
-
case "arrayBuffer":
|
|
895
|
-
case "blob":
|
|
896
|
-
case "formData":
|
|
897
|
-
case "text":
|
|
898
|
-
data = await response[parseAs]();
|
|
899
|
-
break;
|
|
900
|
-
case "json": {
|
|
901
|
-
const text = await response.text();
|
|
902
|
-
data = text ? JSON.parse(text) : {};
|
|
903
|
-
break;
|
|
904
|
-
}
|
|
905
|
-
case "stream":
|
|
906
|
-
return opts.responseStyle === "data" ? response.body : {
|
|
907
|
-
data: response.body,
|
|
908
|
-
...result
|
|
909
|
-
};
|
|
910
|
-
}
|
|
911
|
-
if (parseAs === "json") {
|
|
912
|
-
if (opts.responseValidator) {
|
|
913
|
-
await opts.responseValidator(data);
|
|
914
|
-
}
|
|
915
|
-
if (opts.responseTransformer) {
|
|
916
|
-
data = await opts.responseTransformer(data);
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
return opts.responseStyle === "data" ? data : {
|
|
920
|
-
data,
|
|
921
|
-
...result
|
|
922
|
-
};
|
|
923
|
-
}
|
|
924
|
-
const textError = await response.text();
|
|
925
|
-
let jsonError;
|
|
926
|
-
try {
|
|
927
|
-
jsonError = JSON.parse(textError);
|
|
928
|
-
} catch {
|
|
929
|
-
}
|
|
930
|
-
throw jsonError ?? textError;
|
|
931
|
-
} catch (error) {
|
|
932
|
-
let finalError = error;
|
|
933
|
-
for (const fn of interceptors.error.fns) {
|
|
934
|
-
if (fn) {
|
|
935
|
-
finalError = await fn(finalError, response, request2, options);
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
finalError = finalError || {};
|
|
939
|
-
if (throwOnError) {
|
|
940
|
-
throw finalError;
|
|
941
|
-
}
|
|
942
|
-
return responseStyle === "data" ? void 0 : {
|
|
943
|
-
error: finalError,
|
|
944
|
-
request: request2,
|
|
945
|
-
response
|
|
946
|
-
};
|
|
947
|
-
}
|
|
948
|
-
};
|
|
949
|
-
const makeMethodFn = (method) => (options) => request({ ...options, method });
|
|
950
|
-
const makeSseFn = (method) => async (options) => {
|
|
951
|
-
const { opts, url } = await beforeRequest(options);
|
|
952
|
-
return createSseClient({
|
|
953
|
-
...opts,
|
|
954
|
-
body: opts.body,
|
|
955
|
-
method,
|
|
956
|
-
onRequest: async (url2, init) => {
|
|
957
|
-
let request2 = new Request(url2, init);
|
|
958
|
-
for (const fn of interceptors.request.fns) {
|
|
959
|
-
if (fn) {
|
|
960
|
-
request2 = await fn(request2, opts);
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
return request2;
|
|
964
|
-
},
|
|
965
|
-
serializedBody: getValidRequestBody(opts),
|
|
966
|
-
url
|
|
967
|
-
});
|
|
968
|
-
};
|
|
969
|
-
const _buildUrl = (options) => buildUrl({ ..._config, ...options });
|
|
970
|
-
return {
|
|
971
|
-
buildUrl: _buildUrl,
|
|
972
|
-
connect: makeMethodFn("CONNECT"),
|
|
973
|
-
delete: makeMethodFn("DELETE"),
|
|
974
|
-
get: makeMethodFn("GET"),
|
|
975
|
-
getConfig,
|
|
976
|
-
head: makeMethodFn("HEAD"),
|
|
977
|
-
interceptors,
|
|
978
|
-
options: makeMethodFn("OPTIONS"),
|
|
979
|
-
patch: makeMethodFn("PATCH"),
|
|
980
|
-
post: makeMethodFn("POST"),
|
|
981
|
-
put: makeMethodFn("PUT"),
|
|
982
|
-
request,
|
|
983
|
-
setConfig,
|
|
984
|
-
sse: {
|
|
985
|
-
connect: makeSseFn("CONNECT"),
|
|
986
|
-
delete: makeSseFn("DELETE"),
|
|
987
|
-
get: makeSseFn("GET"),
|
|
988
|
-
head: makeSseFn("HEAD"),
|
|
989
|
-
options: makeSseFn("OPTIONS"),
|
|
990
|
-
patch: makeSseFn("PATCH"),
|
|
991
|
-
post: makeSseFn("POST"),
|
|
992
|
-
put: makeSseFn("PUT"),
|
|
993
|
-
trace: makeSseFn("TRACE")
|
|
994
|
-
},
|
|
995
|
-
trace: makeMethodFn("TRACE")
|
|
996
|
-
};
|
|
997
|
-
};
|
|
998
|
-
|
|
999
|
-
// src/generated/client.gen.ts
|
|
1000
|
-
var client = createClient(createConfig({ baseUrl: "https://api.omnara.com/v1", throwOnError: true }));
|
|
201
|
+
} from "./chunk-BUM22BVJ.js";
|
|
1001
202
|
|
|
1002
203
|
// src/generated/sdk.gen.ts
|
|
1003
204
|
var sdk_gen_exports = {};
|
|
@@ -1077,11 +278,14 @@ __export(sdk_gen_exports, {
|
|
|
1077
278
|
getAgentUsage: () => getAgentUsage,
|
|
1078
279
|
getArtifact: () => getArtifact,
|
|
1079
280
|
getArtifactContent: () => getArtifactContent,
|
|
281
|
+
getConfiguredModel: () => getConfiguredModel,
|
|
1080
282
|
getCronTrigger: () => getCronTrigger,
|
|
1081
283
|
getCurrentUser: () => getCurrentUser,
|
|
1082
284
|
getDaemonGitCredentials: () => getDaemonGitCredentials,
|
|
1083
285
|
getDaemonSkillArchive: () => getDaemonSkillArchive,
|
|
286
|
+
getEventWebhook: () => getEventWebhook,
|
|
1084
287
|
getIntegration: () => getIntegration,
|
|
288
|
+
getIntegrationSubscription: () => getIntegrationSubscription,
|
|
1085
289
|
getMachine: () => getMachine,
|
|
1086
290
|
getMachinePool: () => getMachinePool,
|
|
1087
291
|
getMemoryStore: () => getMemoryStore,
|
|
@@ -1091,11 +295,17 @@ __export(sdk_gen_exports, {
|
|
|
1091
295
|
getOrgOverview: () => getOrgOverview,
|
|
1092
296
|
getOrgUsage: () => getOrgUsage,
|
|
1093
297
|
getOrgUsageTimeseries: () => getOrgUsageTimeseries,
|
|
298
|
+
getProject: () => getProject,
|
|
1094
299
|
getProjectAvailableSecret: () => getProjectAvailableSecret,
|
|
300
|
+
getProjectMachineGrant: () => getProjectMachineGrant,
|
|
1095
301
|
getProjectMachinePoolGrant: () => getProjectMachinePoolGrant,
|
|
302
|
+
getProjectModelGrant: () => getProjectModelGrant,
|
|
1096
303
|
getProjectUsage: () => getProjectUsage,
|
|
1097
304
|
getSecret: () => getSecret,
|
|
305
|
+
getSecretGrant: () => getSecretGrant,
|
|
1098
306
|
getSkill: () => getSkill,
|
|
307
|
+
getSkillGrant: () => getSkillGrant,
|
|
308
|
+
getToolCall: () => getToolCall,
|
|
1099
309
|
getToolCatalog: () => getToolCatalog,
|
|
1100
310
|
inspectIntegrationGitHubInstallations: () => inspectIntegrationGitHubInstallations,
|
|
1101
311
|
listActors: () => listActors,
|
|
@@ -1131,9 +341,11 @@ __export(sdk_gen_exports, {
|
|
|
1131
341
|
listPersonalAccessTokens: () => listPersonalAccessTokens,
|
|
1132
342
|
listProjectAvailableSecrets: () => listProjectAvailableSecrets,
|
|
1133
343
|
listProjectAvailableSkills: () => listProjectAvailableSkills,
|
|
344
|
+
listProjectInteractions: () => listProjectInteractions,
|
|
1134
345
|
listProjectMachineGrants: () => listProjectMachineGrants,
|
|
1135
346
|
listProjectMachinePoolGrants: () => listProjectMachinePoolGrants,
|
|
1136
347
|
listProjectModelGrants: () => listProjectModelGrants,
|
|
348
|
+
listProjectToolCalls: () => listProjectToolCalls,
|
|
1137
349
|
listQueuedBacklogInputs: () => listQueuedBacklogInputs,
|
|
1138
350
|
listSecretGrants: () => listSecretGrants,
|
|
1139
351
|
listSecrets: () => listSecrets,
|
|
@@ -1178,6 +390,7 @@ __export(sdk_gen_exports, {
|
|
|
1178
390
|
updateModelProviderConfig: () => updateModelProviderConfig,
|
|
1179
391
|
updateOrgApiKey: () => updateOrgApiKey,
|
|
1180
392
|
updateOrgMember: () => updateOrgMember,
|
|
393
|
+
updateProject: () => updateProject,
|
|
1181
394
|
updateProjectMachinePoolGrant: () => updateProjectMachinePoolGrant,
|
|
1182
395
|
updateProjectModelGrant: () => updateProjectModelGrant,
|
|
1183
396
|
updateSecret: () => updateSecret,
|
|
@@ -1239,6 +452,20 @@ var deleteEventWebhook = (options) => (options.client ?? client).delete({
|
|
|
1239
452
|
url: "/orgs/{orgID}/projects/{projectID}/event-webhooks/{webhookID}",
|
|
1240
453
|
...options
|
|
1241
454
|
});
|
|
455
|
+
var getEventWebhook = (options) => (options.client ?? client).get({
|
|
456
|
+
responseValidator: relaxedResponseValidator(zGetEventWebhookResponse),
|
|
457
|
+
security: [{
|
|
458
|
+
key: "bearerAuth",
|
|
459
|
+
scheme: "bearer",
|
|
460
|
+
type: "http"
|
|
461
|
+
}, {
|
|
462
|
+
in: "cookie",
|
|
463
|
+
name: "__Host-omnara_session",
|
|
464
|
+
type: "apiKey"
|
|
465
|
+
}],
|
|
466
|
+
url: "/orgs/{orgID}/projects/{projectID}/event-webhooks/{webhookID}",
|
|
467
|
+
...options
|
|
468
|
+
});
|
|
1242
469
|
var updateEventWebhook = (options) => (options.client ?? client).patch({
|
|
1243
470
|
responseValidator: relaxedResponseValidator(zUpdateEventWebhookResponse),
|
|
1244
471
|
security: [
|
|
@@ -1592,6 +819,42 @@ var deleteProject = (options) => (options.client ?? client).delete({
|
|
|
1592
819
|
url: "/orgs/{orgID}/projects/{projectID}",
|
|
1593
820
|
...options
|
|
1594
821
|
});
|
|
822
|
+
var getProject = (options) => (options.client ?? client).get({
|
|
823
|
+
responseValidator: relaxedResponseValidator(zGetProjectResponse),
|
|
824
|
+
security: [{
|
|
825
|
+
key: "bearerAuth",
|
|
826
|
+
scheme: "bearer",
|
|
827
|
+
type: "http"
|
|
828
|
+
}, {
|
|
829
|
+
in: "cookie",
|
|
830
|
+
name: "__Host-omnara_session",
|
|
831
|
+
type: "apiKey"
|
|
832
|
+
}],
|
|
833
|
+
url: "/orgs/{orgID}/projects/{projectID}",
|
|
834
|
+
...options
|
|
835
|
+
});
|
|
836
|
+
var updateProject = (options) => (options.client ?? client).patch({
|
|
837
|
+
responseValidator: relaxedResponseValidator(zUpdateProjectResponse),
|
|
838
|
+
security: [
|
|
839
|
+
{
|
|
840
|
+
key: "bearerAuth",
|
|
841
|
+
scheme: "bearer",
|
|
842
|
+
type: "http"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
in: "cookie",
|
|
846
|
+
name: "__Host-omnara_session",
|
|
847
|
+
type: "apiKey"
|
|
848
|
+
},
|
|
849
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
850
|
+
],
|
|
851
|
+
url: "/orgs/{orgID}/projects/{projectID}",
|
|
852
|
+
...options,
|
|
853
|
+
headers: {
|
|
854
|
+
"Content-Type": "application/json",
|
|
855
|
+
...options.headers
|
|
856
|
+
}
|
|
857
|
+
});
|
|
1595
858
|
var getProjectUsage = (options) => (options.client ?? client).get({
|
|
1596
859
|
responseValidator: relaxedResponseValidator(zGetProjectUsageResponse),
|
|
1597
860
|
security: [{
|
|
@@ -2018,6 +1281,20 @@ var deleteSkillGrant = (options) => (options.client ?? client).delete({
|
|
|
2018
1281
|
url: "/orgs/{orgID}/skills/{skillID}/grants/{grantID}",
|
|
2019
1282
|
...options
|
|
2020
1283
|
});
|
|
1284
|
+
var getSkillGrant = (options) => (options.client ?? client).get({
|
|
1285
|
+
responseValidator: relaxedResponseValidator(zGetSkillGrantResponse),
|
|
1286
|
+
security: [{
|
|
1287
|
+
key: "bearerAuth",
|
|
1288
|
+
scheme: "bearer",
|
|
1289
|
+
type: "http"
|
|
1290
|
+
}, {
|
|
1291
|
+
in: "cookie",
|
|
1292
|
+
name: "__Host-omnara_session",
|
|
1293
|
+
type: "apiKey"
|
|
1294
|
+
}],
|
|
1295
|
+
url: "/orgs/{orgID}/skills/{skillID}/grants/{grantID}",
|
|
1296
|
+
...options
|
|
1297
|
+
});
|
|
2021
1298
|
var listProjectAvailableSkills = (options) => (options.client ?? client).get({
|
|
2022
1299
|
responseValidator: relaxedResponseValidator(zListProjectAvailableSkillsResponse),
|
|
2023
1300
|
security: [{
|
|
@@ -2393,6 +1670,20 @@ var deleteSecretGrant = (options) => (options.client ?? client).delete({
|
|
|
2393
1670
|
url: "/orgs/{orgID}/secrets/{secretID}/grants/{grantID}",
|
|
2394
1671
|
...options
|
|
2395
1672
|
});
|
|
1673
|
+
var getSecretGrant = (options) => (options.client ?? client).get({
|
|
1674
|
+
responseValidator: relaxedResponseValidator(zGetSecretGrantResponse),
|
|
1675
|
+
security: [{
|
|
1676
|
+
key: "bearerAuth",
|
|
1677
|
+
scheme: "bearer",
|
|
1678
|
+
type: "http"
|
|
1679
|
+
}, {
|
|
1680
|
+
in: "cookie",
|
|
1681
|
+
name: "__Host-omnara_session",
|
|
1682
|
+
type: "apiKey"
|
|
1683
|
+
}],
|
|
1684
|
+
url: "/orgs/{orgID}/secrets/{secretID}/grants/{grantID}",
|
|
1685
|
+
...options
|
|
1686
|
+
});
|
|
2396
1687
|
var resolveAgentConfigTools = (options) => (options.client ?? client).post({
|
|
2397
1688
|
responseValidator: relaxedResponseValidator(zResolveAgentConfigToolsResponse),
|
|
2398
1689
|
security: [
|
|
@@ -2929,6 +2220,20 @@ var createAgentInput = (options) => (options.client ?? client).post({
|
|
|
2929
2220
|
...options.headers
|
|
2930
2221
|
}
|
|
2931
2222
|
});
|
|
2223
|
+
var listProjectToolCalls = (options) => (options.client ?? client).get({
|
|
2224
|
+
responseValidator: relaxedResponseValidator(zListProjectToolCallsResponse),
|
|
2225
|
+
security: [{
|
|
2226
|
+
key: "bearerAuth",
|
|
2227
|
+
scheme: "bearer",
|
|
2228
|
+
type: "http"
|
|
2229
|
+
}, {
|
|
2230
|
+
in: "cookie",
|
|
2231
|
+
name: "__Host-omnara_session",
|
|
2232
|
+
type: "apiKey"
|
|
2233
|
+
}],
|
|
2234
|
+
url: "/orgs/{orgID}/projects/{projectID}/tool-calls",
|
|
2235
|
+
...options
|
|
2236
|
+
});
|
|
2932
2237
|
var listToolCalls = (options) => (options.client ?? client).get({
|
|
2933
2238
|
responseValidator: relaxedResponseValidator(zListToolCallsResponse2),
|
|
2934
2239
|
security: [{
|
|
@@ -2943,6 +2248,20 @@ var listToolCalls = (options) => (options.client ?? client).get({
|
|
|
2943
2248
|
url: "/orgs/{orgID}/projects/{projectID}/agents/{agentID}/tool-calls",
|
|
2944
2249
|
...options
|
|
2945
2250
|
});
|
|
2251
|
+
var getToolCall = (options) => (options.client ?? client).get({
|
|
2252
|
+
responseValidator: relaxedResponseValidator(zGetToolCallResponse),
|
|
2253
|
+
security: [{
|
|
2254
|
+
key: "bearerAuth",
|
|
2255
|
+
scheme: "bearer",
|
|
2256
|
+
type: "http"
|
|
2257
|
+
}, {
|
|
2258
|
+
in: "cookie",
|
|
2259
|
+
name: "__Host-omnara_session",
|
|
2260
|
+
type: "apiKey"
|
|
2261
|
+
}],
|
|
2262
|
+
url: "/orgs/{orgID}/projects/{projectID}/agents/{agentID}/tool-calls/{toolCallID}",
|
|
2263
|
+
...options
|
|
2264
|
+
});
|
|
2946
2265
|
var submitToolCallResult = (options) => (options.client ?? client).post({
|
|
2947
2266
|
responseValidator: relaxedResponseValidator(zSubmitToolCallResultResponse2),
|
|
2948
2267
|
security: [
|
|
@@ -3043,6 +2362,20 @@ var cancelAgent = (options) => (options.client ?? client).post({
|
|
|
3043
2362
|
...options.headers
|
|
3044
2363
|
}
|
|
3045
2364
|
});
|
|
2365
|
+
var listProjectInteractions = (options) => (options.client ?? client).get({
|
|
2366
|
+
responseValidator: relaxedResponseValidator(zListProjectInteractionsResponse),
|
|
2367
|
+
security: [{
|
|
2368
|
+
key: "bearerAuth",
|
|
2369
|
+
scheme: "bearer",
|
|
2370
|
+
type: "http"
|
|
2371
|
+
}, {
|
|
2372
|
+
in: "cookie",
|
|
2373
|
+
name: "__Host-omnara_session",
|
|
2374
|
+
type: "apiKey"
|
|
2375
|
+
}],
|
|
2376
|
+
url: "/orgs/{orgID}/projects/{projectID}/interactions",
|
|
2377
|
+
...options
|
|
2378
|
+
});
|
|
3046
2379
|
var listAgentInteractions = (options) => (options.client ?? client).get({
|
|
3047
2380
|
responseValidator: relaxedResponseValidator(zListAgentInteractionsResponse2),
|
|
3048
2381
|
security: [{
|
|
@@ -3269,6 +2602,20 @@ var deleteProjectMachineGrant = (options) => (options.client ?? client).delete({
|
|
|
3269
2602
|
url: "/orgs/{orgID}/projects/{projectID}/machine-grants/{grantID}",
|
|
3270
2603
|
...options
|
|
3271
2604
|
});
|
|
2605
|
+
var getProjectMachineGrant = (options) => (options.client ?? client).get({
|
|
2606
|
+
responseValidator: relaxedResponseValidator(zGetProjectMachineGrantResponse),
|
|
2607
|
+
security: [{
|
|
2608
|
+
key: "bearerAuth",
|
|
2609
|
+
scheme: "bearer",
|
|
2610
|
+
type: "http"
|
|
2611
|
+
}, {
|
|
2612
|
+
in: "cookie",
|
|
2613
|
+
name: "__Host-omnara_session",
|
|
2614
|
+
type: "apiKey"
|
|
2615
|
+
}],
|
|
2616
|
+
url: "/orgs/{orgID}/projects/{projectID}/machine-grants/{grantID}",
|
|
2617
|
+
...options
|
|
2618
|
+
});
|
|
3272
2619
|
var listProjectAvailableSecrets = (options) => (options.client ?? client).get({
|
|
3273
2620
|
responseValidator: relaxedResponseValidator(zListProjectAvailableSecretsResponse),
|
|
3274
2621
|
security: [{
|
|
@@ -3617,6 +2964,20 @@ var deleteConfiguredModel = (options) => (options.client ?? client).delete({
|
|
|
3617
2964
|
url: "/orgs/{orgID}/model-provider-configs/{modelProviderConfigID}/models/{configuredModelID}",
|
|
3618
2965
|
...options
|
|
3619
2966
|
});
|
|
2967
|
+
var getConfiguredModel = (options) => (options.client ?? client).get({
|
|
2968
|
+
responseValidator: relaxedResponseValidator(zGetConfiguredModelResponse),
|
|
2969
|
+
security: [{
|
|
2970
|
+
key: "bearerAuth",
|
|
2971
|
+
scheme: "bearer",
|
|
2972
|
+
type: "http"
|
|
2973
|
+
}, {
|
|
2974
|
+
in: "cookie",
|
|
2975
|
+
name: "__Host-omnara_session",
|
|
2976
|
+
type: "apiKey"
|
|
2977
|
+
}],
|
|
2978
|
+
url: "/orgs/{orgID}/model-provider-configs/{modelProviderConfigID}/models/{configuredModelID}",
|
|
2979
|
+
...options
|
|
2980
|
+
});
|
|
3620
2981
|
var updateConfiguredModel = (options) => (options.client ?? client).put({
|
|
3621
2982
|
responseValidator: relaxedResponseValidator(zUpdateConfiguredModelResponse),
|
|
3622
2983
|
security: [
|
|
@@ -3693,6 +3054,20 @@ var deleteProjectModelGrant = (options) => (options.client ?? client).delete({
|
|
|
3693
3054
|
url: "/orgs/{orgID}/projects/{projectID}/model-grants/{modelGrantID}",
|
|
3694
3055
|
...options
|
|
3695
3056
|
});
|
|
3057
|
+
var getProjectModelGrant = (options) => (options.client ?? client).get({
|
|
3058
|
+
responseValidator: relaxedResponseValidator(zGetProjectModelGrantResponse),
|
|
3059
|
+
security: [{
|
|
3060
|
+
key: "bearerAuth",
|
|
3061
|
+
scheme: "bearer",
|
|
3062
|
+
type: "http"
|
|
3063
|
+
}, {
|
|
3064
|
+
in: "cookie",
|
|
3065
|
+
name: "__Host-omnara_session",
|
|
3066
|
+
type: "apiKey"
|
|
3067
|
+
}],
|
|
3068
|
+
url: "/orgs/{orgID}/projects/{projectID}/model-grants/{modelGrantID}",
|
|
3069
|
+
...options
|
|
3070
|
+
});
|
|
3696
3071
|
var updateProjectModelGrant = (options) => (options.client ?? client).patch({
|
|
3697
3072
|
responseValidator: relaxedResponseValidator(zUpdateProjectModelGrantResponse),
|
|
3698
3073
|
security: [
|
|
@@ -4217,6 +3592,20 @@ var deleteIntegrationSubscription = (options) => (options.client ?? client).dele
|
|
|
4217
3592
|
url: "/orgs/{orgID}/projects/{projectID}/integrations/{integrationID}/subscriptions/{subscriptionID}",
|
|
4218
3593
|
...options
|
|
4219
3594
|
});
|
|
3595
|
+
var getIntegrationSubscription = (options) => (options.client ?? client).get({
|
|
3596
|
+
responseValidator: relaxedResponseValidator(zGetIntegrationSubscriptionResponse),
|
|
3597
|
+
security: [{
|
|
3598
|
+
key: "bearerAuth",
|
|
3599
|
+
scheme: "bearer",
|
|
3600
|
+
type: "http"
|
|
3601
|
+
}, {
|
|
3602
|
+
in: "cookie",
|
|
3603
|
+
name: "__Host-omnara_session",
|
|
3604
|
+
type: "apiKey"
|
|
3605
|
+
}],
|
|
3606
|
+
url: "/orgs/{orgID}/projects/{projectID}/integrations/{integrationID}/subscriptions/{subscriptionID}",
|
|
3607
|
+
...options
|
|
3608
|
+
});
|
|
4220
3609
|
var configureIntegration = (options) => (options.client ?? client).post({
|
|
4221
3610
|
responseValidator: relaxedResponseValidator(zConfigureIntegrationResponse),
|
|
4222
3611
|
security: [
|
|
@@ -4287,13 +3676,10 @@ var listIntegrationDefinitions = (options) => (options.client ?? client).get({
|
|
|
4287
3676
|
});
|
|
4288
3677
|
|
|
4289
3678
|
export {
|
|
4290
|
-
formDataBodySerializer,
|
|
4291
|
-
createConfig,
|
|
4292
|
-
createClient,
|
|
4293
|
-
client,
|
|
4294
3679
|
listEventWebhooks,
|
|
4295
3680
|
createEventWebhook,
|
|
4296
3681
|
deleteEventWebhook,
|
|
3682
|
+
getEventWebhook,
|
|
4297
3683
|
updateEventWebhook,
|
|
4298
3684
|
listPersonalAccessTokens,
|
|
4299
3685
|
createPersonalAccessToken,
|
|
@@ -4316,6 +3702,8 @@ export {
|
|
|
4316
3702
|
listVisibleProjects,
|
|
4317
3703
|
createProject,
|
|
4318
3704
|
deleteProject,
|
|
3705
|
+
getProject,
|
|
3706
|
+
updateProject,
|
|
4319
3707
|
getProjectUsage,
|
|
4320
3708
|
listOrgMembers,
|
|
4321
3709
|
removeOrgMember,
|
|
@@ -4342,6 +3730,7 @@ export {
|
|
|
4342
3730
|
listSkillGrants,
|
|
4343
3731
|
createSkillGrant,
|
|
4344
3732
|
deleteSkillGrant,
|
|
3733
|
+
getSkillGrant,
|
|
4345
3734
|
listProjectAvailableSkills,
|
|
4346
3735
|
listOrgMemoryStores,
|
|
4347
3736
|
listMemoryStores,
|
|
@@ -4363,6 +3752,7 @@ export {
|
|
|
4363
3752
|
listSecretGrants,
|
|
4364
3753
|
createSecretGrant,
|
|
4365
3754
|
deleteSecretGrant,
|
|
3755
|
+
getSecretGrant,
|
|
4366
3756
|
resolveAgentConfigTools,
|
|
4367
3757
|
createAgentConfig,
|
|
4368
3758
|
getToolCatalog,
|
|
@@ -4393,12 +3783,15 @@ export {
|
|
|
4393
3783
|
archiveAgent,
|
|
4394
3784
|
updateAgentConfig,
|
|
4395
3785
|
createAgentInput,
|
|
3786
|
+
listProjectToolCalls,
|
|
4396
3787
|
listToolCalls,
|
|
3788
|
+
getToolCall,
|
|
4397
3789
|
submitToolCallResult,
|
|
4398
3790
|
listTurns,
|
|
4399
3791
|
listTurnEvents,
|
|
4400
3792
|
listEvents,
|
|
4401
3793
|
cancelAgent,
|
|
3794
|
+
listProjectInteractions,
|
|
4402
3795
|
listAgentInteractions,
|
|
4403
3796
|
resolveAgentInteraction,
|
|
4404
3797
|
listQueuedBacklogInputs,
|
|
@@ -4412,6 +3805,7 @@ export {
|
|
|
4412
3805
|
listProjectMachineGrants,
|
|
4413
3806
|
createProjectMachineGrant,
|
|
4414
3807
|
deleteProjectMachineGrant,
|
|
3808
|
+
getProjectMachineGrant,
|
|
4415
3809
|
listProjectAvailableSecrets,
|
|
4416
3810
|
getProjectAvailableSecret,
|
|
4417
3811
|
listActors,
|
|
@@ -4432,10 +3826,12 @@ export {
|
|
|
4432
3826
|
listConfiguredModels,
|
|
4433
3827
|
createConfiguredModel,
|
|
4434
3828
|
deleteConfiguredModel,
|
|
3829
|
+
getConfiguredModel,
|
|
4435
3830
|
updateConfiguredModel,
|
|
4436
3831
|
listProjectModelGrants,
|
|
4437
3832
|
createProjectModelGrant,
|
|
4438
3833
|
deleteProjectModelGrant,
|
|
3834
|
+
getProjectModelGrant,
|
|
4439
3835
|
updateProjectModelGrant,
|
|
4440
3836
|
listMachinePools,
|
|
4441
3837
|
createMachinePool,
|
|
@@ -4468,10 +3864,11 @@ export {
|
|
|
4468
3864
|
listIntegrationSubscriptions,
|
|
4469
3865
|
createIntegrationSubscription,
|
|
4470
3866
|
deleteIntegrationSubscription,
|
|
3867
|
+
getIntegrationSubscription,
|
|
4471
3868
|
configureIntegration,
|
|
4472
3869
|
disconnectIntegration,
|
|
4473
3870
|
listIntegrationGitHubRepositories,
|
|
4474
3871
|
listIntegrationDefinitions,
|
|
4475
3872
|
sdk_gen_exports
|
|
4476
3873
|
};
|
|
4477
|
-
//# sourceMappingURL=chunk-
|
|
3874
|
+
//# sourceMappingURL=chunk-WVD6U2JJ.js.map
|