@omnara/sdk 0.1.0
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 +37 -0
- package/dist/auth-CnOxLjlL.d.ts +6 -0
- package/dist/browser.d.ts +32 -0
- package/dist/browser.js +121 -0
- package/dist/browser.js.map +1 -0
- package/dist/chunk-CT4AUW4R.js +3657 -0
- package/dist/chunk-CT4AUW4R.js.map +1 -0
- package/dist/chunk-DGGYBF7D.js +3642 -0
- package/dist/chunk-DGGYBF7D.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-TMPF6DRL.js +35 -0
- package/dist/chunk-TMPF6DRL.js.map +1 -0
- package/dist/index.d.ts +86 -0
- package/dist/index.js +254 -0
- package/dist/index.js.map +1 -0
- package/dist/sdk.gen-j-xlf6lr.d.ts +12953 -0
- package/dist/tanstack.d.ts +2786 -0
- package/dist/tanstack.js +2954 -0
- package/dist/tanstack.js.map +1 -0
- package/dist/zod.d.ts +12526 -0
- package/dist/zod.js +1428 -0
- package/dist/zod.js.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,3642 @@
|
|
|
1
|
+
import {
|
|
2
|
+
zAcceptInvitationResponse,
|
|
3
|
+
zArchiveAgentResponse,
|
|
4
|
+
zBootstrapDaemonResponse2,
|
|
5
|
+
zCancelAgentResponse2,
|
|
6
|
+
zCancelQueuedBacklogInputResponse,
|
|
7
|
+
zConnectByoMachineResponse2,
|
|
8
|
+
zCreateAgentConfigResponse,
|
|
9
|
+
zCreateAgentInputResponse,
|
|
10
|
+
zCreateAgentProfileResponse,
|
|
11
|
+
zCreateAgentResponse,
|
|
12
|
+
zCreateByoMachineDaemonTokenResponse,
|
|
13
|
+
zCreateConfiguredModelResponse,
|
|
14
|
+
zCreateCronTriggerResponse,
|
|
15
|
+
zCreateIntegrationOAuthSetupResponse,
|
|
16
|
+
zCreateMachinePoolResponse,
|
|
17
|
+
zCreateMachineResponse,
|
|
18
|
+
zCreateModelProviderConfigResponse2,
|
|
19
|
+
zCreateOrgApiKeyResponse2,
|
|
20
|
+
zCreateOrgInvitationResponse,
|
|
21
|
+
zCreateOrganizationResponse2,
|
|
22
|
+
zCreatePersonalAccessTokenResponse2,
|
|
23
|
+
zCreateProjectMachineGrantResponse2,
|
|
24
|
+
zCreateProjectMachinePoolGrantResponse,
|
|
25
|
+
zCreateProjectModelGrantResponse,
|
|
26
|
+
zCreateProjectResponse,
|
|
27
|
+
zCreateSecretGrantResponse,
|
|
28
|
+
zCreateSecretResponse,
|
|
29
|
+
zCreateSecretVersionResponse,
|
|
30
|
+
zCreateSkillGrantResponse,
|
|
31
|
+
zCreateSkillResponse,
|
|
32
|
+
zCreateSlackSetupResponse,
|
|
33
|
+
zDeclineInvitationResponse,
|
|
34
|
+
zDeleteAgentProfileResponse,
|
|
35
|
+
zDeleteConfiguredModelResponse,
|
|
36
|
+
zDeleteCronTriggerResponse,
|
|
37
|
+
zDeleteCurrentUserResponse,
|
|
38
|
+
zDeleteIntegrationInstallResponse,
|
|
39
|
+
zDeleteMachinePoolResponse,
|
|
40
|
+
zDeleteMachineResponse,
|
|
41
|
+
zDeleteModelProviderConfigResponse,
|
|
42
|
+
zDeleteOrgInvitationResponse,
|
|
43
|
+
zDeleteOrganizationResponse,
|
|
44
|
+
zDeleteProjectMachineGrantResponse,
|
|
45
|
+
zDeleteProjectMachinePoolGrantResponse,
|
|
46
|
+
zDeleteProjectModelGrantResponse,
|
|
47
|
+
zDeleteProjectResponse,
|
|
48
|
+
zDeleteSecretGrantResponse,
|
|
49
|
+
zDeleteSecretResponse,
|
|
50
|
+
zDeleteSkillGrantResponse,
|
|
51
|
+
zDeleteSkillResponse,
|
|
52
|
+
zDemoteSteeringInputToQueuedResponse,
|
|
53
|
+
zEndMachineDaemonRuntimeResponse,
|
|
54
|
+
zGetActorResponse,
|
|
55
|
+
zGetAgentConfigResponse,
|
|
56
|
+
zGetAgentProfileResponse,
|
|
57
|
+
zGetAgentResponse2,
|
|
58
|
+
zGetArtifactContentResponse,
|
|
59
|
+
zGetArtifactResponse,
|
|
60
|
+
zGetCronTriggerResponse,
|
|
61
|
+
zGetCurrentUserResponse,
|
|
62
|
+
zGetDaemonSkillArchiveResponse,
|
|
63
|
+
zGetMachinePoolResponse,
|
|
64
|
+
zGetMachineResponse,
|
|
65
|
+
zGetModelCatalogResponse,
|
|
66
|
+
zGetModelProviderConfigResponse,
|
|
67
|
+
zGetOrgApiKeyResponse,
|
|
68
|
+
zGetOrgOverviewResponse,
|
|
69
|
+
zGetProjectAvailableSecretResponse,
|
|
70
|
+
zGetProjectMachinePoolGrantResponse,
|
|
71
|
+
zGetSecretResponse,
|
|
72
|
+
zGetSkillResponse,
|
|
73
|
+
zGetToolCatalogResponse,
|
|
74
|
+
zListActorsResponse2,
|
|
75
|
+
zListAgentInteractionsResponse2,
|
|
76
|
+
zListAgentProfilesResponse2,
|
|
77
|
+
zListAgentsResponse2,
|
|
78
|
+
zListByoMachineDaemonTokensResponse,
|
|
79
|
+
zListConfiguredModelsResponse,
|
|
80
|
+
zListCronTriggersResponse2,
|
|
81
|
+
zListEventsResponse,
|
|
82
|
+
zListIntegrationInstallsResponse2,
|
|
83
|
+
zListMachinePoolsResponse2,
|
|
84
|
+
zListMemberProjectAccessResponse,
|
|
85
|
+
zListModelProviderConfigsResponse,
|
|
86
|
+
zListOrgApiKeyProjectAccessResponse,
|
|
87
|
+
zListOrgApiKeysResponse2,
|
|
88
|
+
zListOrgInvitationsResponse2,
|
|
89
|
+
zListOrgMembersResponse2,
|
|
90
|
+
zListPendingInvitationsResponse,
|
|
91
|
+
zListPersonalAccessTokensResponse2,
|
|
92
|
+
zListProjectAvailableSecretsResponse,
|
|
93
|
+
zListProjectAvailableSkillsResponse,
|
|
94
|
+
zListProjectMachineGrantsResponse2,
|
|
95
|
+
zListProjectMachinePoolGrantsResponse2,
|
|
96
|
+
zListProjectModelGrantsResponse2,
|
|
97
|
+
zListQueuedBacklogInputsResponse,
|
|
98
|
+
zListSecretGrantsResponse2,
|
|
99
|
+
zListSecretsResponse2,
|
|
100
|
+
zListSkillGrantsResponse2,
|
|
101
|
+
zListSkillsResponse2,
|
|
102
|
+
zListToolCallsResponse2,
|
|
103
|
+
zListTurnEventsResponse2,
|
|
104
|
+
zListTurnsResponse,
|
|
105
|
+
zListVisibleMachinesResponse2,
|
|
106
|
+
zListVisibleProjectMachinesResponse,
|
|
107
|
+
zListVisibleProjectsResponse,
|
|
108
|
+
zMoveQueuedBacklogInputResponse,
|
|
109
|
+
zPromoteQueuedInputToSteeringResponse,
|
|
110
|
+
zPutActorResponse,
|
|
111
|
+
zRecordMachineFailureResponse,
|
|
112
|
+
zRegisterMachineDaemonRuntimeResponse,
|
|
113
|
+
zRemoveMemberProjectAccessResponse,
|
|
114
|
+
zRemoveOrgApiKeyProjectRoleResponse,
|
|
115
|
+
zRemoveOrgMemberResponse,
|
|
116
|
+
zRenameAgentProfileResponse,
|
|
117
|
+
zResolveAgentInteractionResponse,
|
|
118
|
+
zRevokeMachineDaemonTokenResponse,
|
|
119
|
+
zRevokeOrgApiKeyResponse,
|
|
120
|
+
zRevokePersonalAccessTokenResponse,
|
|
121
|
+
zSetMemberProjectAccessResponse,
|
|
122
|
+
zSetOrgApiKeyProjectRoleResponse,
|
|
123
|
+
zSleepMachineDaemonRuntimeResponse,
|
|
124
|
+
zStartSecretMcpoAuthResponse,
|
|
125
|
+
zStreamEventsResponse,
|
|
126
|
+
zSubmitToolCallResultResponse2,
|
|
127
|
+
zUpdateAgentConfigResponse2,
|
|
128
|
+
zUpdateAgentProfileResponse,
|
|
129
|
+
zUpdateConfiguredModelResponse,
|
|
130
|
+
zUpdateCronTriggerResponse,
|
|
131
|
+
zUpdateMachinePoolResponse,
|
|
132
|
+
zUpdateMachineResponse,
|
|
133
|
+
zUpdateModelProviderConfigResponse,
|
|
134
|
+
zUpdateOrgApiKeyResponse,
|
|
135
|
+
zUpdateOrgMemberResponse,
|
|
136
|
+
zUpdateProjectMachinePoolGrantResponse,
|
|
137
|
+
zUpdateProjectModelGrantResponse,
|
|
138
|
+
zUpdateSecretResponse
|
|
139
|
+
} from "./chunk-CT4AUW4R.js";
|
|
140
|
+
import {
|
|
141
|
+
__export
|
|
142
|
+
} from "./chunk-PZ5AY32C.js";
|
|
143
|
+
|
|
144
|
+
// src/generated/core/bodySerializer.gen.ts
|
|
145
|
+
var serializeFormDataPair = (data, key, value) => {
|
|
146
|
+
if (typeof value === "string" || value instanceof Blob) {
|
|
147
|
+
data.append(key, value);
|
|
148
|
+
} else if (value instanceof Date) {
|
|
149
|
+
data.append(key, value.toISOString());
|
|
150
|
+
} else {
|
|
151
|
+
data.append(key, JSON.stringify(value));
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
var formDataBodySerializer = {
|
|
155
|
+
bodySerializer: (body) => {
|
|
156
|
+
const data = new FormData();
|
|
157
|
+
Object.entries(body).forEach(([key, value]) => {
|
|
158
|
+
if (value === void 0 || value === null) {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
if (Array.isArray(value)) {
|
|
162
|
+
value.forEach((v) => serializeFormDataPair(data, key, v));
|
|
163
|
+
} else {
|
|
164
|
+
serializeFormDataPair(data, key, value);
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
return data;
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
var jsonBodySerializer = {
|
|
171
|
+
bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
// src/generated/core/params.gen.ts
|
|
175
|
+
var extraPrefixesMap = {
|
|
176
|
+
$body_: "body",
|
|
177
|
+
$headers_: "headers",
|
|
178
|
+
$path_: "path",
|
|
179
|
+
$query_: "query"
|
|
180
|
+
};
|
|
181
|
+
var extraPrefixes = Object.entries(extraPrefixesMap);
|
|
182
|
+
|
|
183
|
+
// src/generated/core/serverSentEvents.gen.ts
|
|
184
|
+
function createSseClient({
|
|
185
|
+
onRequest,
|
|
186
|
+
onSseError,
|
|
187
|
+
onSseEvent,
|
|
188
|
+
responseTransformer,
|
|
189
|
+
responseValidator,
|
|
190
|
+
sseDefaultRetryDelay,
|
|
191
|
+
sseMaxRetryAttempts,
|
|
192
|
+
sseMaxRetryDelay,
|
|
193
|
+
sseSleepFn,
|
|
194
|
+
url,
|
|
195
|
+
...options
|
|
196
|
+
}) {
|
|
197
|
+
let lastEventId;
|
|
198
|
+
const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
|
|
199
|
+
const createStream = async function* () {
|
|
200
|
+
let retryDelay = sseDefaultRetryDelay ?? 3e3;
|
|
201
|
+
let attempt = 0;
|
|
202
|
+
const signal = options.signal ?? new AbortController().signal;
|
|
203
|
+
while (true) {
|
|
204
|
+
if (signal.aborted) break;
|
|
205
|
+
attempt++;
|
|
206
|
+
const headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers);
|
|
207
|
+
if (lastEventId !== void 0) {
|
|
208
|
+
headers.set("Last-Event-ID", lastEventId);
|
|
209
|
+
}
|
|
210
|
+
try {
|
|
211
|
+
const requestInit = {
|
|
212
|
+
redirect: "follow",
|
|
213
|
+
...options,
|
|
214
|
+
body: options.serializedBody,
|
|
215
|
+
headers,
|
|
216
|
+
signal
|
|
217
|
+
};
|
|
218
|
+
let request = new Request(url, requestInit);
|
|
219
|
+
if (onRequest) {
|
|
220
|
+
request = await onRequest(url, requestInit);
|
|
221
|
+
}
|
|
222
|
+
const _fetch = options.fetch ?? globalThis.fetch;
|
|
223
|
+
const response = await _fetch(request);
|
|
224
|
+
if (!response.ok) throw new Error(`SSE failed: ${response.status} ${response.statusText}`);
|
|
225
|
+
if (!response.body) throw new Error("No body in SSE response");
|
|
226
|
+
const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
|
|
227
|
+
let buffer = "";
|
|
228
|
+
const abortHandler = () => {
|
|
229
|
+
try {
|
|
230
|
+
reader.cancel();
|
|
231
|
+
} catch {
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
signal.addEventListener("abort", abortHandler);
|
|
235
|
+
try {
|
|
236
|
+
while (true) {
|
|
237
|
+
const { done, value } = await reader.read();
|
|
238
|
+
if (done) break;
|
|
239
|
+
buffer += value;
|
|
240
|
+
buffer = buffer.replace(/\r\n?/g, "\n");
|
|
241
|
+
const chunks = buffer.split("\n\n");
|
|
242
|
+
buffer = chunks.pop() ?? "";
|
|
243
|
+
for (const chunk of chunks) {
|
|
244
|
+
const lines = chunk.split("\n");
|
|
245
|
+
const dataLines = [];
|
|
246
|
+
let eventName;
|
|
247
|
+
for (const line of lines) {
|
|
248
|
+
if (line.startsWith("data:")) {
|
|
249
|
+
dataLines.push(line.replace(/^data:\s*/, ""));
|
|
250
|
+
} else if (line.startsWith("event:")) {
|
|
251
|
+
eventName = line.replace(/^event:\s*/, "");
|
|
252
|
+
} else if (line.startsWith("id:")) {
|
|
253
|
+
lastEventId = line.replace(/^id:\s*/, "");
|
|
254
|
+
} else if (line.startsWith("retry:")) {
|
|
255
|
+
const parsed = Number.parseInt(line.replace(/^retry:\s*/, ""), 10);
|
|
256
|
+
if (!Number.isNaN(parsed)) {
|
|
257
|
+
retryDelay = parsed;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
let data;
|
|
262
|
+
let parsedJson = false;
|
|
263
|
+
if (dataLines.length) {
|
|
264
|
+
const rawData = dataLines.join("\n");
|
|
265
|
+
try {
|
|
266
|
+
data = JSON.parse(rawData);
|
|
267
|
+
parsedJson = true;
|
|
268
|
+
} catch {
|
|
269
|
+
data = rawData;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
if (parsedJson) {
|
|
273
|
+
if (responseValidator) {
|
|
274
|
+
await responseValidator(data);
|
|
275
|
+
}
|
|
276
|
+
if (responseTransformer) {
|
|
277
|
+
data = await responseTransformer(data);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
onSseEvent?.({
|
|
281
|
+
data,
|
|
282
|
+
event: eventName,
|
|
283
|
+
id: lastEventId,
|
|
284
|
+
retry: retryDelay
|
|
285
|
+
});
|
|
286
|
+
if (dataLines.length) {
|
|
287
|
+
yield data;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
} finally {
|
|
292
|
+
signal.removeEventListener("abort", abortHandler);
|
|
293
|
+
reader.releaseLock();
|
|
294
|
+
}
|
|
295
|
+
break;
|
|
296
|
+
} catch (error) {
|
|
297
|
+
onSseError?.(error);
|
|
298
|
+
if (sseMaxRetryAttempts !== void 0 && attempt >= sseMaxRetryAttempts) {
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 3e4);
|
|
302
|
+
await sleep(backoff);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
const stream = createStream();
|
|
307
|
+
return { stream };
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// src/generated/core/pathSerializer.gen.ts
|
|
311
|
+
var separatorArrayExplode = (style) => {
|
|
312
|
+
switch (style) {
|
|
313
|
+
case "label":
|
|
314
|
+
return ".";
|
|
315
|
+
case "matrix":
|
|
316
|
+
return ";";
|
|
317
|
+
case "simple":
|
|
318
|
+
return ",";
|
|
319
|
+
default:
|
|
320
|
+
return "&";
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
var separatorArrayNoExplode = (style) => {
|
|
324
|
+
switch (style) {
|
|
325
|
+
case "form":
|
|
326
|
+
return ",";
|
|
327
|
+
case "pipeDelimited":
|
|
328
|
+
return "|";
|
|
329
|
+
case "spaceDelimited":
|
|
330
|
+
return "%20";
|
|
331
|
+
default:
|
|
332
|
+
return ",";
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
var separatorObjectExplode = (style) => {
|
|
336
|
+
switch (style) {
|
|
337
|
+
case "label":
|
|
338
|
+
return ".";
|
|
339
|
+
case "matrix":
|
|
340
|
+
return ";";
|
|
341
|
+
case "simple":
|
|
342
|
+
return ",";
|
|
343
|
+
default:
|
|
344
|
+
return "&";
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
var serializeArrayParam = ({
|
|
348
|
+
allowReserved,
|
|
349
|
+
explode,
|
|
350
|
+
name,
|
|
351
|
+
style,
|
|
352
|
+
value
|
|
353
|
+
}) => {
|
|
354
|
+
if (!explode) {
|
|
355
|
+
const joinedValues2 = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
|
|
356
|
+
switch (style) {
|
|
357
|
+
case "label":
|
|
358
|
+
return `.${joinedValues2}`;
|
|
359
|
+
case "matrix":
|
|
360
|
+
return `;${name}=${joinedValues2}`;
|
|
361
|
+
case "simple":
|
|
362
|
+
return joinedValues2;
|
|
363
|
+
default:
|
|
364
|
+
return `${name}=${joinedValues2}`;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
const separator = separatorArrayExplode(style);
|
|
368
|
+
const joinedValues = value.map((v) => {
|
|
369
|
+
if (style === "label" || style === "simple") {
|
|
370
|
+
return allowReserved ? v : encodeURIComponent(v);
|
|
371
|
+
}
|
|
372
|
+
return serializePrimitiveParam({
|
|
373
|
+
allowReserved,
|
|
374
|
+
name,
|
|
375
|
+
value: v
|
|
376
|
+
});
|
|
377
|
+
}).join(separator);
|
|
378
|
+
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
379
|
+
};
|
|
380
|
+
var serializePrimitiveParam = ({
|
|
381
|
+
allowReserved,
|
|
382
|
+
name,
|
|
383
|
+
value
|
|
384
|
+
}) => {
|
|
385
|
+
if (value === void 0 || value === null) {
|
|
386
|
+
return "";
|
|
387
|
+
}
|
|
388
|
+
if (typeof value === "object") {
|
|
389
|
+
throw new Error(
|
|
390
|
+
"Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these."
|
|
391
|
+
);
|
|
392
|
+
}
|
|
393
|
+
return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
|
|
394
|
+
};
|
|
395
|
+
var serializeObjectParam = ({
|
|
396
|
+
allowReserved,
|
|
397
|
+
explode,
|
|
398
|
+
name,
|
|
399
|
+
style,
|
|
400
|
+
value,
|
|
401
|
+
valueOnly
|
|
402
|
+
}) => {
|
|
403
|
+
if (value instanceof Date) {
|
|
404
|
+
return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
|
|
405
|
+
}
|
|
406
|
+
if (style !== "deepObject" && !explode) {
|
|
407
|
+
let values = [];
|
|
408
|
+
Object.entries(value).forEach(([key, v]) => {
|
|
409
|
+
values = [...values, key, allowReserved ? v : encodeURIComponent(v)];
|
|
410
|
+
});
|
|
411
|
+
const joinedValues2 = values.join(",");
|
|
412
|
+
switch (style) {
|
|
413
|
+
case "form":
|
|
414
|
+
return `${name}=${joinedValues2}`;
|
|
415
|
+
case "label":
|
|
416
|
+
return `.${joinedValues2}`;
|
|
417
|
+
case "matrix":
|
|
418
|
+
return `;${name}=${joinedValues2}`;
|
|
419
|
+
default:
|
|
420
|
+
return joinedValues2;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
const separator = separatorObjectExplode(style);
|
|
424
|
+
const joinedValues = Object.entries(value).map(
|
|
425
|
+
([key, v]) => serializePrimitiveParam({
|
|
426
|
+
allowReserved,
|
|
427
|
+
name: style === "deepObject" ? `${name}[${key}]` : key,
|
|
428
|
+
value: v
|
|
429
|
+
})
|
|
430
|
+
).join(separator);
|
|
431
|
+
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
// src/generated/core/utils.gen.ts
|
|
435
|
+
var PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
436
|
+
var defaultPathSerializer = ({ path, url: _url }) => {
|
|
437
|
+
let url = _url;
|
|
438
|
+
const matches = _url.match(PATH_PARAM_RE);
|
|
439
|
+
if (matches) {
|
|
440
|
+
for (const match of matches) {
|
|
441
|
+
let explode = false;
|
|
442
|
+
let name = match.substring(1, match.length - 1);
|
|
443
|
+
let style = "simple";
|
|
444
|
+
if (name.endsWith("*")) {
|
|
445
|
+
explode = true;
|
|
446
|
+
name = name.substring(0, name.length - 1);
|
|
447
|
+
}
|
|
448
|
+
if (name.startsWith(".")) {
|
|
449
|
+
name = name.substring(1);
|
|
450
|
+
style = "label";
|
|
451
|
+
} else if (name.startsWith(";")) {
|
|
452
|
+
name = name.substring(1);
|
|
453
|
+
style = "matrix";
|
|
454
|
+
}
|
|
455
|
+
const value = path[name];
|
|
456
|
+
if (value === void 0 || value === null) {
|
|
457
|
+
continue;
|
|
458
|
+
}
|
|
459
|
+
if (Array.isArray(value)) {
|
|
460
|
+
url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
|
|
461
|
+
continue;
|
|
462
|
+
}
|
|
463
|
+
if (typeof value === "object") {
|
|
464
|
+
url = url.replace(
|
|
465
|
+
match,
|
|
466
|
+
serializeObjectParam({
|
|
467
|
+
explode,
|
|
468
|
+
name,
|
|
469
|
+
style,
|
|
470
|
+
value,
|
|
471
|
+
valueOnly: true
|
|
472
|
+
})
|
|
473
|
+
);
|
|
474
|
+
continue;
|
|
475
|
+
}
|
|
476
|
+
if (style === "matrix") {
|
|
477
|
+
url = url.replace(
|
|
478
|
+
match,
|
|
479
|
+
`;${serializePrimitiveParam({
|
|
480
|
+
name,
|
|
481
|
+
value
|
|
482
|
+
})}`
|
|
483
|
+
);
|
|
484
|
+
continue;
|
|
485
|
+
}
|
|
486
|
+
const replaceValue = encodeURIComponent(
|
|
487
|
+
style === "label" ? `.${value}` : value
|
|
488
|
+
);
|
|
489
|
+
url = url.replace(match, replaceValue);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
return url;
|
|
493
|
+
};
|
|
494
|
+
var getUrl = ({
|
|
495
|
+
baseUrl,
|
|
496
|
+
path,
|
|
497
|
+
query,
|
|
498
|
+
querySerializer,
|
|
499
|
+
url: _url
|
|
500
|
+
}) => {
|
|
501
|
+
const pathUrl = _url.startsWith("/") ? _url : `/${_url}`;
|
|
502
|
+
let url = (baseUrl ?? "") + pathUrl;
|
|
503
|
+
if (path) {
|
|
504
|
+
url = defaultPathSerializer({ path, url });
|
|
505
|
+
}
|
|
506
|
+
let search = query ? querySerializer(query) : "";
|
|
507
|
+
if (search.startsWith("?")) {
|
|
508
|
+
search = search.substring(1);
|
|
509
|
+
}
|
|
510
|
+
if (search) {
|
|
511
|
+
url += `?${search}`;
|
|
512
|
+
}
|
|
513
|
+
return url;
|
|
514
|
+
};
|
|
515
|
+
function getValidRequestBody(options) {
|
|
516
|
+
const hasBody = options.body !== void 0;
|
|
517
|
+
const isSerializedBody = hasBody && options.bodySerializer;
|
|
518
|
+
if (isSerializedBody) {
|
|
519
|
+
if ("serializedBody" in options) {
|
|
520
|
+
const hasSerializedBody = options.serializedBody !== void 0 && options.serializedBody !== "";
|
|
521
|
+
return hasSerializedBody ? options.serializedBody : null;
|
|
522
|
+
}
|
|
523
|
+
return options.body !== "" ? options.body : null;
|
|
524
|
+
}
|
|
525
|
+
if (hasBody) {
|
|
526
|
+
return options.body;
|
|
527
|
+
}
|
|
528
|
+
return void 0;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
// src/generated/core/auth.gen.ts
|
|
532
|
+
var getAuthToken = async (auth, callback) => {
|
|
533
|
+
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
534
|
+
if (!token) {
|
|
535
|
+
return;
|
|
536
|
+
}
|
|
537
|
+
if (auth.scheme === "bearer") {
|
|
538
|
+
return `Bearer ${token}`;
|
|
539
|
+
}
|
|
540
|
+
if (auth.scheme === "basic") {
|
|
541
|
+
return `Basic ${btoa(token)}`;
|
|
542
|
+
}
|
|
543
|
+
return token;
|
|
544
|
+
};
|
|
545
|
+
|
|
546
|
+
// src/generated/client/utils.gen.ts
|
|
547
|
+
var createQuerySerializer = ({
|
|
548
|
+
parameters = {},
|
|
549
|
+
...args
|
|
550
|
+
} = {}) => {
|
|
551
|
+
const querySerializer = (queryParams) => {
|
|
552
|
+
const search = [];
|
|
553
|
+
if (queryParams && typeof queryParams === "object") {
|
|
554
|
+
for (const name in queryParams) {
|
|
555
|
+
const value = queryParams[name];
|
|
556
|
+
if (value === void 0 || value === null) {
|
|
557
|
+
continue;
|
|
558
|
+
}
|
|
559
|
+
const options = parameters[name] || args;
|
|
560
|
+
if (Array.isArray(value)) {
|
|
561
|
+
const serializedArray = serializeArrayParam({
|
|
562
|
+
allowReserved: options.allowReserved,
|
|
563
|
+
explode: true,
|
|
564
|
+
name,
|
|
565
|
+
style: "form",
|
|
566
|
+
value,
|
|
567
|
+
...options.array
|
|
568
|
+
});
|
|
569
|
+
if (serializedArray) search.push(serializedArray);
|
|
570
|
+
} else if (typeof value === "object") {
|
|
571
|
+
const serializedObject = serializeObjectParam({
|
|
572
|
+
allowReserved: options.allowReserved,
|
|
573
|
+
explode: true,
|
|
574
|
+
name,
|
|
575
|
+
style: "deepObject",
|
|
576
|
+
value,
|
|
577
|
+
...options.object
|
|
578
|
+
});
|
|
579
|
+
if (serializedObject) search.push(serializedObject);
|
|
580
|
+
} else {
|
|
581
|
+
const serializedPrimitive = serializePrimitiveParam({
|
|
582
|
+
allowReserved: options.allowReserved,
|
|
583
|
+
name,
|
|
584
|
+
value
|
|
585
|
+
});
|
|
586
|
+
if (serializedPrimitive) search.push(serializedPrimitive);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
return search.join("&");
|
|
591
|
+
};
|
|
592
|
+
return querySerializer;
|
|
593
|
+
};
|
|
594
|
+
var getParseAs = (contentType) => {
|
|
595
|
+
if (!contentType) {
|
|
596
|
+
return "stream";
|
|
597
|
+
}
|
|
598
|
+
const cleanContent = contentType.split(";")[0]?.trim();
|
|
599
|
+
if (!cleanContent) {
|
|
600
|
+
return;
|
|
601
|
+
}
|
|
602
|
+
if (cleanContent.startsWith("application/json") || cleanContent.endsWith("+json")) {
|
|
603
|
+
return "json";
|
|
604
|
+
}
|
|
605
|
+
if (cleanContent === "multipart/form-data") {
|
|
606
|
+
return "formData";
|
|
607
|
+
}
|
|
608
|
+
if (["application/", "audio/", "image/", "video/"].some((type) => cleanContent.startsWith(type))) {
|
|
609
|
+
return "blob";
|
|
610
|
+
}
|
|
611
|
+
if (cleanContent.startsWith("text/")) {
|
|
612
|
+
return "text";
|
|
613
|
+
}
|
|
614
|
+
return;
|
|
615
|
+
};
|
|
616
|
+
var checkForExistence = (options, name) => {
|
|
617
|
+
if (!name) {
|
|
618
|
+
return false;
|
|
619
|
+
}
|
|
620
|
+
if (options.headers.has(name) || options.query?.[name] || options.headers.get("Cookie")?.includes(`${name}=`)) {
|
|
621
|
+
return true;
|
|
622
|
+
}
|
|
623
|
+
return false;
|
|
624
|
+
};
|
|
625
|
+
async function setAuthParams(options) {
|
|
626
|
+
for (const auth of options.security ?? []) {
|
|
627
|
+
if (checkForExistence(options, auth.name)) {
|
|
628
|
+
continue;
|
|
629
|
+
}
|
|
630
|
+
const token = await getAuthToken(auth, options.auth);
|
|
631
|
+
if (!token) {
|
|
632
|
+
continue;
|
|
633
|
+
}
|
|
634
|
+
const name = auth.name ?? "Authorization";
|
|
635
|
+
switch (auth.in) {
|
|
636
|
+
case "query":
|
|
637
|
+
if (!options.query) {
|
|
638
|
+
options.query = {};
|
|
639
|
+
}
|
|
640
|
+
options.query[name] = token;
|
|
641
|
+
break;
|
|
642
|
+
case "cookie":
|
|
643
|
+
options.headers.append("Cookie", `${name}=${token}`);
|
|
644
|
+
break;
|
|
645
|
+
case "header":
|
|
646
|
+
default:
|
|
647
|
+
options.headers.set(name, token);
|
|
648
|
+
break;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
var buildUrl = (options) => getUrl({
|
|
653
|
+
baseUrl: options.baseUrl,
|
|
654
|
+
path: options.path,
|
|
655
|
+
query: options.query,
|
|
656
|
+
querySerializer: typeof options.querySerializer === "function" ? options.querySerializer : createQuerySerializer(options.querySerializer),
|
|
657
|
+
url: options.url
|
|
658
|
+
});
|
|
659
|
+
var mergeConfigs = (a, b) => {
|
|
660
|
+
const config = { ...a, ...b };
|
|
661
|
+
if (config.baseUrl?.endsWith("/")) {
|
|
662
|
+
config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);
|
|
663
|
+
}
|
|
664
|
+
config.headers = mergeHeaders(a.headers, b.headers);
|
|
665
|
+
return config;
|
|
666
|
+
};
|
|
667
|
+
var headersEntries = (headers) => {
|
|
668
|
+
const entries = [];
|
|
669
|
+
headers.forEach((value, key) => {
|
|
670
|
+
entries.push([key, value]);
|
|
671
|
+
});
|
|
672
|
+
return entries;
|
|
673
|
+
};
|
|
674
|
+
var mergeHeaders = (...headers) => {
|
|
675
|
+
const mergedHeaders = new Headers();
|
|
676
|
+
for (const header of headers) {
|
|
677
|
+
if (!header) {
|
|
678
|
+
continue;
|
|
679
|
+
}
|
|
680
|
+
const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header);
|
|
681
|
+
for (const [key, value] of iterator) {
|
|
682
|
+
if (value === null) {
|
|
683
|
+
mergedHeaders.delete(key);
|
|
684
|
+
} else if (Array.isArray(value)) {
|
|
685
|
+
for (const v of value) {
|
|
686
|
+
mergedHeaders.append(key, v);
|
|
687
|
+
}
|
|
688
|
+
} else if (value !== void 0) {
|
|
689
|
+
mergedHeaders.set(
|
|
690
|
+
key,
|
|
691
|
+
typeof value === "object" ? JSON.stringify(value) : value
|
|
692
|
+
);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
return mergedHeaders;
|
|
697
|
+
};
|
|
698
|
+
var Interceptors = class {
|
|
699
|
+
fns = [];
|
|
700
|
+
clear() {
|
|
701
|
+
this.fns = [];
|
|
702
|
+
}
|
|
703
|
+
eject(id) {
|
|
704
|
+
const index = this.getInterceptorIndex(id);
|
|
705
|
+
if (this.fns[index]) {
|
|
706
|
+
this.fns[index] = null;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
exists(id) {
|
|
710
|
+
const index = this.getInterceptorIndex(id);
|
|
711
|
+
return Boolean(this.fns[index]);
|
|
712
|
+
}
|
|
713
|
+
getInterceptorIndex(id) {
|
|
714
|
+
if (typeof id === "number") {
|
|
715
|
+
return this.fns[id] ? id : -1;
|
|
716
|
+
}
|
|
717
|
+
return this.fns.indexOf(id);
|
|
718
|
+
}
|
|
719
|
+
update(id, fn) {
|
|
720
|
+
const index = this.getInterceptorIndex(id);
|
|
721
|
+
if (this.fns[index]) {
|
|
722
|
+
this.fns[index] = fn;
|
|
723
|
+
return id;
|
|
724
|
+
}
|
|
725
|
+
return false;
|
|
726
|
+
}
|
|
727
|
+
use(fn) {
|
|
728
|
+
this.fns.push(fn);
|
|
729
|
+
return this.fns.length - 1;
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
var createInterceptors = () => ({
|
|
733
|
+
error: new Interceptors(),
|
|
734
|
+
request: new Interceptors(),
|
|
735
|
+
response: new Interceptors()
|
|
736
|
+
});
|
|
737
|
+
var defaultQuerySerializer = createQuerySerializer({
|
|
738
|
+
allowReserved: false,
|
|
739
|
+
array: {
|
|
740
|
+
explode: true,
|
|
741
|
+
style: "form"
|
|
742
|
+
},
|
|
743
|
+
object: {
|
|
744
|
+
explode: true,
|
|
745
|
+
style: "deepObject"
|
|
746
|
+
}
|
|
747
|
+
});
|
|
748
|
+
var defaultHeaders = {
|
|
749
|
+
"Content-Type": "application/json"
|
|
750
|
+
};
|
|
751
|
+
var createConfig = (override = {}) => ({
|
|
752
|
+
...jsonBodySerializer,
|
|
753
|
+
headers: defaultHeaders,
|
|
754
|
+
parseAs: "auto",
|
|
755
|
+
querySerializer: defaultQuerySerializer,
|
|
756
|
+
...override
|
|
757
|
+
});
|
|
758
|
+
|
|
759
|
+
// src/generated/client/client.gen.ts
|
|
760
|
+
var createClient = (config = {}) => {
|
|
761
|
+
let _config = mergeConfigs(createConfig(), config);
|
|
762
|
+
const getConfig = () => ({ ..._config });
|
|
763
|
+
const setConfig = (config2) => {
|
|
764
|
+
_config = mergeConfigs(_config, config2);
|
|
765
|
+
return getConfig();
|
|
766
|
+
};
|
|
767
|
+
const interceptors = createInterceptors();
|
|
768
|
+
const beforeRequest = async (options) => {
|
|
769
|
+
const opts = {
|
|
770
|
+
..._config,
|
|
771
|
+
...options,
|
|
772
|
+
fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
|
|
773
|
+
headers: mergeHeaders(_config.headers, options.headers),
|
|
774
|
+
serializedBody: void 0
|
|
775
|
+
};
|
|
776
|
+
if (opts.security) {
|
|
777
|
+
await setAuthParams(opts);
|
|
778
|
+
}
|
|
779
|
+
if (opts.requestValidator) {
|
|
780
|
+
await opts.requestValidator(opts);
|
|
781
|
+
}
|
|
782
|
+
if (opts.body !== void 0 && opts.bodySerializer) {
|
|
783
|
+
opts.serializedBody = opts.bodySerializer(opts.body);
|
|
784
|
+
}
|
|
785
|
+
if (opts.body === void 0 || opts.serializedBody === "") {
|
|
786
|
+
opts.headers.delete("Content-Type");
|
|
787
|
+
}
|
|
788
|
+
const resolvedOpts = opts;
|
|
789
|
+
const url = buildUrl(resolvedOpts);
|
|
790
|
+
return { opts: resolvedOpts, url };
|
|
791
|
+
};
|
|
792
|
+
const request = async (options) => {
|
|
793
|
+
const throwOnError = options.throwOnError ?? _config.throwOnError;
|
|
794
|
+
const responseStyle = options.responseStyle ?? _config.responseStyle;
|
|
795
|
+
let request2;
|
|
796
|
+
let response;
|
|
797
|
+
try {
|
|
798
|
+
const { opts, url } = await beforeRequest(options);
|
|
799
|
+
const requestInit = {
|
|
800
|
+
redirect: "follow",
|
|
801
|
+
...opts,
|
|
802
|
+
body: getValidRequestBody(opts)
|
|
803
|
+
};
|
|
804
|
+
request2 = new Request(url, requestInit);
|
|
805
|
+
for (const fn of interceptors.request.fns) {
|
|
806
|
+
if (fn) {
|
|
807
|
+
request2 = await fn(request2, opts);
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
const _fetch = opts.fetch;
|
|
811
|
+
response = await _fetch(request2);
|
|
812
|
+
for (const fn of interceptors.response.fns) {
|
|
813
|
+
if (fn) {
|
|
814
|
+
response = await fn(response, request2, opts);
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
const result = {
|
|
818
|
+
request: request2,
|
|
819
|
+
response
|
|
820
|
+
};
|
|
821
|
+
if (response.ok) {
|
|
822
|
+
const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
|
|
823
|
+
if (response.status === 204 || response.headers.get("Content-Length") === "0") {
|
|
824
|
+
let emptyData;
|
|
825
|
+
switch (parseAs) {
|
|
826
|
+
case "arrayBuffer":
|
|
827
|
+
case "blob":
|
|
828
|
+
case "text":
|
|
829
|
+
emptyData = await response[parseAs]();
|
|
830
|
+
break;
|
|
831
|
+
case "formData":
|
|
832
|
+
emptyData = new FormData();
|
|
833
|
+
break;
|
|
834
|
+
case "stream":
|
|
835
|
+
emptyData = response.body;
|
|
836
|
+
break;
|
|
837
|
+
case "json":
|
|
838
|
+
default:
|
|
839
|
+
emptyData = {};
|
|
840
|
+
break;
|
|
841
|
+
}
|
|
842
|
+
return opts.responseStyle === "data" ? emptyData : {
|
|
843
|
+
data: emptyData,
|
|
844
|
+
...result
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
let data;
|
|
848
|
+
switch (parseAs) {
|
|
849
|
+
case "arrayBuffer":
|
|
850
|
+
case "blob":
|
|
851
|
+
case "formData":
|
|
852
|
+
case "text":
|
|
853
|
+
data = await response[parseAs]();
|
|
854
|
+
break;
|
|
855
|
+
case "json": {
|
|
856
|
+
const text = await response.text();
|
|
857
|
+
data = text ? JSON.parse(text) : {};
|
|
858
|
+
break;
|
|
859
|
+
}
|
|
860
|
+
case "stream":
|
|
861
|
+
return opts.responseStyle === "data" ? response.body : {
|
|
862
|
+
data: response.body,
|
|
863
|
+
...result
|
|
864
|
+
};
|
|
865
|
+
}
|
|
866
|
+
if (parseAs === "json") {
|
|
867
|
+
if (opts.responseValidator) {
|
|
868
|
+
await opts.responseValidator(data);
|
|
869
|
+
}
|
|
870
|
+
if (opts.responseTransformer) {
|
|
871
|
+
data = await opts.responseTransformer(data);
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
return opts.responseStyle === "data" ? data : {
|
|
875
|
+
data,
|
|
876
|
+
...result
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
const textError = await response.text();
|
|
880
|
+
let jsonError;
|
|
881
|
+
try {
|
|
882
|
+
jsonError = JSON.parse(textError);
|
|
883
|
+
} catch {
|
|
884
|
+
}
|
|
885
|
+
throw jsonError ?? textError;
|
|
886
|
+
} catch (error) {
|
|
887
|
+
let finalError = error;
|
|
888
|
+
for (const fn of interceptors.error.fns) {
|
|
889
|
+
if (fn) {
|
|
890
|
+
finalError = await fn(finalError, response, request2, options);
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
finalError = finalError || {};
|
|
894
|
+
if (throwOnError) {
|
|
895
|
+
throw finalError;
|
|
896
|
+
}
|
|
897
|
+
return responseStyle === "data" ? void 0 : {
|
|
898
|
+
error: finalError,
|
|
899
|
+
request: request2,
|
|
900
|
+
response
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
};
|
|
904
|
+
const makeMethodFn = (method) => (options) => request({ ...options, method });
|
|
905
|
+
const makeSseFn = (method) => async (options) => {
|
|
906
|
+
const { opts, url } = await beforeRequest(options);
|
|
907
|
+
return createSseClient({
|
|
908
|
+
...opts,
|
|
909
|
+
body: opts.body,
|
|
910
|
+
method,
|
|
911
|
+
onRequest: async (url2, init) => {
|
|
912
|
+
let request2 = new Request(url2, init);
|
|
913
|
+
for (const fn of interceptors.request.fns) {
|
|
914
|
+
if (fn) {
|
|
915
|
+
request2 = await fn(request2, opts);
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
return request2;
|
|
919
|
+
},
|
|
920
|
+
serializedBody: getValidRequestBody(opts),
|
|
921
|
+
url
|
|
922
|
+
});
|
|
923
|
+
};
|
|
924
|
+
const _buildUrl = (options) => buildUrl({ ..._config, ...options });
|
|
925
|
+
return {
|
|
926
|
+
buildUrl: _buildUrl,
|
|
927
|
+
connect: makeMethodFn("CONNECT"),
|
|
928
|
+
delete: makeMethodFn("DELETE"),
|
|
929
|
+
get: makeMethodFn("GET"),
|
|
930
|
+
getConfig,
|
|
931
|
+
head: makeMethodFn("HEAD"),
|
|
932
|
+
interceptors,
|
|
933
|
+
options: makeMethodFn("OPTIONS"),
|
|
934
|
+
patch: makeMethodFn("PATCH"),
|
|
935
|
+
post: makeMethodFn("POST"),
|
|
936
|
+
put: makeMethodFn("PUT"),
|
|
937
|
+
request,
|
|
938
|
+
setConfig,
|
|
939
|
+
sse: {
|
|
940
|
+
connect: makeSseFn("CONNECT"),
|
|
941
|
+
delete: makeSseFn("DELETE"),
|
|
942
|
+
get: makeSseFn("GET"),
|
|
943
|
+
head: makeSseFn("HEAD"),
|
|
944
|
+
options: makeSseFn("OPTIONS"),
|
|
945
|
+
patch: makeSseFn("PATCH"),
|
|
946
|
+
post: makeSseFn("POST"),
|
|
947
|
+
put: makeSseFn("PUT"),
|
|
948
|
+
trace: makeSseFn("TRACE")
|
|
949
|
+
},
|
|
950
|
+
trace: makeMethodFn("TRACE")
|
|
951
|
+
};
|
|
952
|
+
};
|
|
953
|
+
|
|
954
|
+
// src/generated/client.gen.ts
|
|
955
|
+
var client = createClient(createConfig({ throwOnError: true }));
|
|
956
|
+
|
|
957
|
+
// src/generated/sdk.gen.ts
|
|
958
|
+
var sdk_gen_exports = {};
|
|
959
|
+
__export(sdk_gen_exports, {
|
|
960
|
+
acceptInvitation: () => acceptInvitation,
|
|
961
|
+
archiveAgent: () => archiveAgent,
|
|
962
|
+
bootstrapDaemon: () => bootstrapDaemon,
|
|
963
|
+
cancelAgent: () => cancelAgent,
|
|
964
|
+
cancelQueuedBacklogInput: () => cancelQueuedBacklogInput,
|
|
965
|
+
connectByoMachine: () => connectByoMachine,
|
|
966
|
+
createAgent: () => createAgent,
|
|
967
|
+
createAgentConfig: () => createAgentConfig,
|
|
968
|
+
createAgentInput: () => createAgentInput,
|
|
969
|
+
createAgentProfile: () => createAgentProfile,
|
|
970
|
+
createByoMachineDaemonToken: () => createByoMachineDaemonToken,
|
|
971
|
+
createConfiguredModel: () => createConfiguredModel,
|
|
972
|
+
createCronTrigger: () => createCronTrigger,
|
|
973
|
+
createIntegrationOAuthSetup: () => createIntegrationOAuthSetup,
|
|
974
|
+
createMachine: () => createMachine,
|
|
975
|
+
createMachinePool: () => createMachinePool,
|
|
976
|
+
createModelProviderConfig: () => createModelProviderConfig,
|
|
977
|
+
createOrgApiKey: () => createOrgApiKey,
|
|
978
|
+
createOrgInvitation: () => createOrgInvitation,
|
|
979
|
+
createOrganization: () => createOrganization,
|
|
980
|
+
createPersonalAccessToken: () => createPersonalAccessToken,
|
|
981
|
+
createProject: () => createProject,
|
|
982
|
+
createProjectMachineGrant: () => createProjectMachineGrant,
|
|
983
|
+
createProjectMachinePoolGrant: () => createProjectMachinePoolGrant,
|
|
984
|
+
createProjectModelGrant: () => createProjectModelGrant,
|
|
985
|
+
createSecret: () => createSecret,
|
|
986
|
+
createSecretGrant: () => createSecretGrant,
|
|
987
|
+
createSecretVersion: () => createSecretVersion,
|
|
988
|
+
createSkill: () => createSkill,
|
|
989
|
+
createSkillGrant: () => createSkillGrant,
|
|
990
|
+
createSlackSetup: () => createSlackSetup,
|
|
991
|
+
declineInvitation: () => declineInvitation,
|
|
992
|
+
deleteAgentProfile: () => deleteAgentProfile,
|
|
993
|
+
deleteConfiguredModel: () => deleteConfiguredModel,
|
|
994
|
+
deleteCronTrigger: () => deleteCronTrigger,
|
|
995
|
+
deleteCurrentUser: () => deleteCurrentUser,
|
|
996
|
+
deleteIntegrationInstall: () => deleteIntegrationInstall,
|
|
997
|
+
deleteMachine: () => deleteMachine,
|
|
998
|
+
deleteMachinePool: () => deleteMachinePool,
|
|
999
|
+
deleteModelProviderConfig: () => deleteModelProviderConfig,
|
|
1000
|
+
deleteOrgInvitation: () => deleteOrgInvitation,
|
|
1001
|
+
deleteOrganization: () => deleteOrganization,
|
|
1002
|
+
deleteProject: () => deleteProject,
|
|
1003
|
+
deleteProjectMachineGrant: () => deleteProjectMachineGrant,
|
|
1004
|
+
deleteProjectMachinePoolGrant: () => deleteProjectMachinePoolGrant,
|
|
1005
|
+
deleteProjectModelGrant: () => deleteProjectModelGrant,
|
|
1006
|
+
deleteSecret: () => deleteSecret,
|
|
1007
|
+
deleteSecretGrant: () => deleteSecretGrant,
|
|
1008
|
+
deleteSkill: () => deleteSkill,
|
|
1009
|
+
deleteSkillGrant: () => deleteSkillGrant,
|
|
1010
|
+
demoteSteeringInputToQueued: () => demoteSteeringInputToQueued,
|
|
1011
|
+
endMachineDaemonRuntime: () => endMachineDaemonRuntime,
|
|
1012
|
+
getActor: () => getActor,
|
|
1013
|
+
getAgent: () => getAgent,
|
|
1014
|
+
getAgentConfig: () => getAgentConfig,
|
|
1015
|
+
getAgentProfile: () => getAgentProfile,
|
|
1016
|
+
getArtifact: () => getArtifact,
|
|
1017
|
+
getArtifactContent: () => getArtifactContent,
|
|
1018
|
+
getCronTrigger: () => getCronTrigger,
|
|
1019
|
+
getCurrentUser: () => getCurrentUser,
|
|
1020
|
+
getDaemonSkillArchive: () => getDaemonSkillArchive,
|
|
1021
|
+
getMachine: () => getMachine,
|
|
1022
|
+
getMachinePool: () => getMachinePool,
|
|
1023
|
+
getModelCatalog: () => getModelCatalog,
|
|
1024
|
+
getModelProviderConfig: () => getModelProviderConfig,
|
|
1025
|
+
getOrgApiKey: () => getOrgApiKey,
|
|
1026
|
+
getOrgOverview: () => getOrgOverview,
|
|
1027
|
+
getProjectAvailableSecret: () => getProjectAvailableSecret,
|
|
1028
|
+
getProjectMachinePoolGrant: () => getProjectMachinePoolGrant,
|
|
1029
|
+
getSecret: () => getSecret,
|
|
1030
|
+
getSkill: () => getSkill,
|
|
1031
|
+
getToolCatalog: () => getToolCatalog,
|
|
1032
|
+
listActors: () => listActors,
|
|
1033
|
+
listAgentInteractions: () => listAgentInteractions,
|
|
1034
|
+
listAgentProfiles: () => listAgentProfiles,
|
|
1035
|
+
listAgents: () => listAgents,
|
|
1036
|
+
listByoMachineDaemonTokens: () => listByoMachineDaemonTokens,
|
|
1037
|
+
listConfiguredModels: () => listConfiguredModels,
|
|
1038
|
+
listCronTriggers: () => listCronTriggers,
|
|
1039
|
+
listEvents: () => listEvents,
|
|
1040
|
+
listIntegrationInstalls: () => listIntegrationInstalls,
|
|
1041
|
+
listMachinePools: () => listMachinePools,
|
|
1042
|
+
listMemberProjectAccess: () => listMemberProjectAccess,
|
|
1043
|
+
listModelProviderConfigs: () => listModelProviderConfigs,
|
|
1044
|
+
listOrgApiKeyProjectAccess: () => listOrgApiKeyProjectAccess,
|
|
1045
|
+
listOrgApiKeys: () => listOrgApiKeys,
|
|
1046
|
+
listOrgInvitations: () => listOrgInvitations,
|
|
1047
|
+
listOrgMembers: () => listOrgMembers,
|
|
1048
|
+
listPendingInvitations: () => listPendingInvitations,
|
|
1049
|
+
listPersonalAccessTokens: () => listPersonalAccessTokens,
|
|
1050
|
+
listProjectAvailableSecrets: () => listProjectAvailableSecrets,
|
|
1051
|
+
listProjectAvailableSkills: () => listProjectAvailableSkills,
|
|
1052
|
+
listProjectMachineGrants: () => listProjectMachineGrants,
|
|
1053
|
+
listProjectMachinePoolGrants: () => listProjectMachinePoolGrants,
|
|
1054
|
+
listProjectModelGrants: () => listProjectModelGrants,
|
|
1055
|
+
listQueuedBacklogInputs: () => listQueuedBacklogInputs,
|
|
1056
|
+
listSecretGrants: () => listSecretGrants,
|
|
1057
|
+
listSecrets: () => listSecrets,
|
|
1058
|
+
listSkillGrants: () => listSkillGrants,
|
|
1059
|
+
listSkills: () => listSkills,
|
|
1060
|
+
listToolCalls: () => listToolCalls,
|
|
1061
|
+
listTurnEvents: () => listTurnEvents,
|
|
1062
|
+
listTurns: () => listTurns,
|
|
1063
|
+
listVisibleMachines: () => listVisibleMachines,
|
|
1064
|
+
listVisibleProjectMachines: () => listVisibleProjectMachines,
|
|
1065
|
+
listVisibleProjects: () => listVisibleProjects,
|
|
1066
|
+
moveQueuedBacklogInput: () => moveQueuedBacklogInput,
|
|
1067
|
+
promoteQueuedInputToSteering: () => promoteQueuedInputToSteering,
|
|
1068
|
+
putActor: () => putActor,
|
|
1069
|
+
recordMachineFailure: () => recordMachineFailure,
|
|
1070
|
+
registerMachineDaemonRuntime: () => registerMachineDaemonRuntime,
|
|
1071
|
+
removeMemberProjectAccess: () => removeMemberProjectAccess,
|
|
1072
|
+
removeOrgApiKeyProjectRole: () => removeOrgApiKeyProjectRole,
|
|
1073
|
+
removeOrgMember: () => removeOrgMember,
|
|
1074
|
+
renameAgentProfile: () => renameAgentProfile,
|
|
1075
|
+
resolveAgentInteraction: () => resolveAgentInteraction,
|
|
1076
|
+
revokeMachineDaemonToken: () => revokeMachineDaemonToken,
|
|
1077
|
+
revokeOrgApiKey: () => revokeOrgApiKey,
|
|
1078
|
+
revokePersonalAccessToken: () => revokePersonalAccessToken,
|
|
1079
|
+
setMemberProjectAccess: () => setMemberProjectAccess,
|
|
1080
|
+
setOrgApiKeyProjectRole: () => setOrgApiKeyProjectRole,
|
|
1081
|
+
sleepMachineDaemonRuntime: () => sleepMachineDaemonRuntime,
|
|
1082
|
+
socketMachineDaemonRuntime: () => socketMachineDaemonRuntime,
|
|
1083
|
+
startSecretMcpoAuth: () => startSecretMcpoAuth,
|
|
1084
|
+
streamEvents: () => streamEvents,
|
|
1085
|
+
submitToolCallResult: () => submitToolCallResult,
|
|
1086
|
+
updateAgentConfig: () => updateAgentConfig,
|
|
1087
|
+
updateAgentProfile: () => updateAgentProfile,
|
|
1088
|
+
updateConfiguredModel: () => updateConfiguredModel,
|
|
1089
|
+
updateCronTrigger: () => updateCronTrigger,
|
|
1090
|
+
updateMachine: () => updateMachine,
|
|
1091
|
+
updateMachinePool: () => updateMachinePool,
|
|
1092
|
+
updateModelProviderConfig: () => updateModelProviderConfig,
|
|
1093
|
+
updateOrgApiKey: () => updateOrgApiKey,
|
|
1094
|
+
updateOrgMember: () => updateOrgMember,
|
|
1095
|
+
updateProjectMachinePoolGrant: () => updateProjectMachinePoolGrant,
|
|
1096
|
+
updateProjectModelGrant: () => updateProjectModelGrant,
|
|
1097
|
+
updateSecret: () => updateSecret
|
|
1098
|
+
});
|
|
1099
|
+
|
|
1100
|
+
// src/validate-response.ts
|
|
1101
|
+
function valueAt(data, path) {
|
|
1102
|
+
let current = data;
|
|
1103
|
+
for (const segment of path) {
|
|
1104
|
+
if (current === null || typeof current !== "object") return void 0;
|
|
1105
|
+
current = current[segment];
|
|
1106
|
+
}
|
|
1107
|
+
return current;
|
|
1108
|
+
}
|
|
1109
|
+
function samePath(a, b) {
|
|
1110
|
+
return a.length === b.length && a.every((segment, index) => segment === b[index]);
|
|
1111
|
+
}
|
|
1112
|
+
function isUnknownEnumIssue(issue, root) {
|
|
1113
|
+
if (issue.code === "invalid_value") {
|
|
1114
|
+
return issue.values.length > 1 && typeof valueAt(root, issue.path) === "string";
|
|
1115
|
+
}
|
|
1116
|
+
if (issue.code !== "invalid_union") return false;
|
|
1117
|
+
const input = valueAt(root, issue.path);
|
|
1118
|
+
if (issue.errors.length === 0) return typeof input === "string";
|
|
1119
|
+
if (issue.errors.some((arm) => arm.every((member) => isUnknownEnumIssue(member, input)))) {
|
|
1120
|
+
return true;
|
|
1121
|
+
}
|
|
1122
|
+
const [first, ...rest] = issue.errors;
|
|
1123
|
+
return (first ?? []).some(
|
|
1124
|
+
(candidate) => candidate.code === "invalid_value" && typeof valueAt(input, candidate.path) === "string" && rest.every(
|
|
1125
|
+
(arm) => arm.some((other) => other.code === "invalid_value" && samePath(other.path, candidate.path))
|
|
1126
|
+
)
|
|
1127
|
+
);
|
|
1128
|
+
}
|
|
1129
|
+
function isUnknownEnumError(error, data) {
|
|
1130
|
+
return error.issues.every((issue) => isUnknownEnumIssue(issue, data));
|
|
1131
|
+
}
|
|
1132
|
+
async function validateResponse(schema, data) {
|
|
1133
|
+
const result = await schema.safeParseAsync(data);
|
|
1134
|
+
if (result.success || isUnknownEnumError(result.error, data)) return;
|
|
1135
|
+
throw result.error;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
// src/generated/sdk.gen.ts
|
|
1139
|
+
var listPersonalAccessTokens = (options) => (options?.client ?? client).get({
|
|
1140
|
+
responseValidator: async (data) => await validateResponse(zListPersonalAccessTokensResponse2, data),
|
|
1141
|
+
security: [{
|
|
1142
|
+
key: "bearerAuth",
|
|
1143
|
+
scheme: "bearer",
|
|
1144
|
+
type: "http"
|
|
1145
|
+
}, {
|
|
1146
|
+
in: "cookie",
|
|
1147
|
+
name: "__Host-omnara_session",
|
|
1148
|
+
type: "apiKey"
|
|
1149
|
+
}],
|
|
1150
|
+
url: "/api/v1/personal-access-tokens",
|
|
1151
|
+
...options
|
|
1152
|
+
});
|
|
1153
|
+
var createPersonalAccessToken = (options) => (options.client ?? client).post({
|
|
1154
|
+
responseValidator: async (data) => await validateResponse(zCreatePersonalAccessTokenResponse2, data),
|
|
1155
|
+
security: [{
|
|
1156
|
+
in: "cookie",
|
|
1157
|
+
name: "__Host-omnara_session",
|
|
1158
|
+
type: "apiKey"
|
|
1159
|
+
}, { name: "X-Omnara-Csrf", type: "apiKey" }],
|
|
1160
|
+
url: "/api/v1/personal-access-tokens",
|
|
1161
|
+
...options,
|
|
1162
|
+
headers: {
|
|
1163
|
+
"Content-Type": "application/json",
|
|
1164
|
+
...options.headers
|
|
1165
|
+
}
|
|
1166
|
+
});
|
|
1167
|
+
var revokePersonalAccessToken = (options) => (options.client ?? client).post({
|
|
1168
|
+
responseValidator: async (data) => await validateResponse(zRevokePersonalAccessTokenResponse, data),
|
|
1169
|
+
security: [
|
|
1170
|
+
{
|
|
1171
|
+
key: "bearerAuth",
|
|
1172
|
+
scheme: "bearer",
|
|
1173
|
+
type: "http"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
in: "cookie",
|
|
1177
|
+
name: "__Host-omnara_session",
|
|
1178
|
+
type: "apiKey"
|
|
1179
|
+
},
|
|
1180
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1181
|
+
],
|
|
1182
|
+
url: "/api/v1/personal-access-tokens/{tokenID}/revoke",
|
|
1183
|
+
...options
|
|
1184
|
+
});
|
|
1185
|
+
var bootstrapDaemon = (options) => (options?.client ?? client).post({
|
|
1186
|
+
responseValidator: async (data) => await validateResponse(zBootstrapDaemonResponse2, data),
|
|
1187
|
+
security: [{
|
|
1188
|
+
key: "machineDaemonAuth",
|
|
1189
|
+
scheme: "bearer",
|
|
1190
|
+
type: "http"
|
|
1191
|
+
}],
|
|
1192
|
+
url: "/api/v1/daemon/bootstrap",
|
|
1193
|
+
...options
|
|
1194
|
+
});
|
|
1195
|
+
var recordMachineFailure = (options) => (options.client ?? client).post({
|
|
1196
|
+
bodySerializer: null,
|
|
1197
|
+
responseValidator: async (data) => await validateResponse(zRecordMachineFailureResponse, data),
|
|
1198
|
+
security: [{
|
|
1199
|
+
key: "machineDaemonAuth",
|
|
1200
|
+
scheme: "bearer",
|
|
1201
|
+
type: "http"
|
|
1202
|
+
}],
|
|
1203
|
+
url: "/api/v1/daemon/failures",
|
|
1204
|
+
...options,
|
|
1205
|
+
headers: {
|
|
1206
|
+
"Content-Type": "text/plain",
|
|
1207
|
+
...options.headers
|
|
1208
|
+
}
|
|
1209
|
+
});
|
|
1210
|
+
var createOrganization = (options) => (options.client ?? client).post({
|
|
1211
|
+
responseValidator: async (data) => await validateResponse(zCreateOrganizationResponse2, data),
|
|
1212
|
+
security: [
|
|
1213
|
+
{
|
|
1214
|
+
key: "bearerAuth",
|
|
1215
|
+
scheme: "bearer",
|
|
1216
|
+
type: "http"
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
in: "cookie",
|
|
1220
|
+
name: "__Host-omnara_session",
|
|
1221
|
+
type: "apiKey"
|
|
1222
|
+
},
|
|
1223
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1224
|
+
],
|
|
1225
|
+
url: "/api/v1/orgs",
|
|
1226
|
+
...options,
|
|
1227
|
+
headers: {
|
|
1228
|
+
"Content-Type": "application/json",
|
|
1229
|
+
...options.headers
|
|
1230
|
+
}
|
|
1231
|
+
});
|
|
1232
|
+
var deleteOrganization = (options) => (options.client ?? client).delete({
|
|
1233
|
+
responseValidator: async (data) => await validateResponse(zDeleteOrganizationResponse, data),
|
|
1234
|
+
security: [
|
|
1235
|
+
{
|
|
1236
|
+
key: "bearerAuth",
|
|
1237
|
+
scheme: "bearer",
|
|
1238
|
+
type: "http"
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
in: "cookie",
|
|
1242
|
+
name: "__Host-omnara_session",
|
|
1243
|
+
type: "apiKey"
|
|
1244
|
+
},
|
|
1245
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1246
|
+
],
|
|
1247
|
+
url: "/api/v1/orgs/{orgID}",
|
|
1248
|
+
...options
|
|
1249
|
+
});
|
|
1250
|
+
var deleteCurrentUser = (options) => (options?.client ?? client).delete({
|
|
1251
|
+
responseValidator: async (data) => await validateResponse(zDeleteCurrentUserResponse, data),
|
|
1252
|
+
security: [
|
|
1253
|
+
{
|
|
1254
|
+
key: "bearerAuth",
|
|
1255
|
+
scheme: "bearer",
|
|
1256
|
+
type: "http"
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
in: "cookie",
|
|
1260
|
+
name: "__Host-omnara_session",
|
|
1261
|
+
type: "apiKey"
|
|
1262
|
+
},
|
|
1263
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1264
|
+
],
|
|
1265
|
+
url: "/api/v1/me",
|
|
1266
|
+
...options
|
|
1267
|
+
});
|
|
1268
|
+
var getCurrentUser = (options) => (options?.client ?? client).get({
|
|
1269
|
+
responseValidator: async (data) => await validateResponse(zGetCurrentUserResponse, data),
|
|
1270
|
+
security: [{
|
|
1271
|
+
key: "bearerAuth",
|
|
1272
|
+
scheme: "bearer",
|
|
1273
|
+
type: "http"
|
|
1274
|
+
}, {
|
|
1275
|
+
in: "cookie",
|
|
1276
|
+
name: "__Host-omnara_session",
|
|
1277
|
+
type: "apiKey"
|
|
1278
|
+
}],
|
|
1279
|
+
url: "/api/v1/me",
|
|
1280
|
+
...options
|
|
1281
|
+
});
|
|
1282
|
+
var listPendingInvitations = (options) => (options?.client ?? client).get({
|
|
1283
|
+
responseValidator: async (data) => await validateResponse(zListPendingInvitationsResponse, data),
|
|
1284
|
+
security: [{
|
|
1285
|
+
key: "bearerAuth",
|
|
1286
|
+
scheme: "bearer",
|
|
1287
|
+
type: "http"
|
|
1288
|
+
}, {
|
|
1289
|
+
in: "cookie",
|
|
1290
|
+
name: "__Host-omnara_session",
|
|
1291
|
+
type: "apiKey"
|
|
1292
|
+
}],
|
|
1293
|
+
url: "/api/v1/invitations",
|
|
1294
|
+
...options
|
|
1295
|
+
});
|
|
1296
|
+
var acceptInvitation = (options) => (options.client ?? client).post({
|
|
1297
|
+
responseValidator: async (data) => await validateResponse(zAcceptInvitationResponse, data),
|
|
1298
|
+
security: [
|
|
1299
|
+
{
|
|
1300
|
+
key: "bearerAuth",
|
|
1301
|
+
scheme: "bearer",
|
|
1302
|
+
type: "http"
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
in: "cookie",
|
|
1306
|
+
name: "__Host-omnara_session",
|
|
1307
|
+
type: "apiKey"
|
|
1308
|
+
},
|
|
1309
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1310
|
+
],
|
|
1311
|
+
url: "/api/v1/invitations/{invitationID}/accept",
|
|
1312
|
+
...options
|
|
1313
|
+
});
|
|
1314
|
+
var declineInvitation = (options) => (options.client ?? client).post({
|
|
1315
|
+
responseValidator: async (data) => await validateResponse(zDeclineInvitationResponse, data),
|
|
1316
|
+
security: [
|
|
1317
|
+
{
|
|
1318
|
+
key: "bearerAuth",
|
|
1319
|
+
scheme: "bearer",
|
|
1320
|
+
type: "http"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
in: "cookie",
|
|
1324
|
+
name: "__Host-omnara_session",
|
|
1325
|
+
type: "apiKey"
|
|
1326
|
+
},
|
|
1327
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1328
|
+
],
|
|
1329
|
+
url: "/api/v1/invitations/{invitationID}/decline",
|
|
1330
|
+
...options
|
|
1331
|
+
});
|
|
1332
|
+
var getOrgOverview = (options) => (options.client ?? client).get({
|
|
1333
|
+
responseValidator: async (data) => await validateResponse(zGetOrgOverviewResponse, data),
|
|
1334
|
+
security: [{
|
|
1335
|
+
key: "bearerAuth",
|
|
1336
|
+
scheme: "bearer",
|
|
1337
|
+
type: "http"
|
|
1338
|
+
}, {
|
|
1339
|
+
in: "cookie",
|
|
1340
|
+
name: "__Host-omnara_session",
|
|
1341
|
+
type: "apiKey"
|
|
1342
|
+
}],
|
|
1343
|
+
url: "/api/v1/orgs/{orgID}/overview",
|
|
1344
|
+
...options
|
|
1345
|
+
});
|
|
1346
|
+
var listVisibleProjects = (options) => (options.client ?? client).get({
|
|
1347
|
+
responseValidator: async (data) => await validateResponse(zListVisibleProjectsResponse, data),
|
|
1348
|
+
security: [{
|
|
1349
|
+
key: "bearerAuth",
|
|
1350
|
+
scheme: "bearer",
|
|
1351
|
+
type: "http"
|
|
1352
|
+
}, {
|
|
1353
|
+
in: "cookie",
|
|
1354
|
+
name: "__Host-omnara_session",
|
|
1355
|
+
type: "apiKey"
|
|
1356
|
+
}],
|
|
1357
|
+
url: "/api/v1/orgs/{orgID}/projects",
|
|
1358
|
+
...options
|
|
1359
|
+
});
|
|
1360
|
+
var createProject = (options) => (options.client ?? client).post({
|
|
1361
|
+
responseValidator: async (data) => await validateResponse(zCreateProjectResponse, data),
|
|
1362
|
+
security: [
|
|
1363
|
+
{
|
|
1364
|
+
key: "bearerAuth",
|
|
1365
|
+
scheme: "bearer",
|
|
1366
|
+
type: "http"
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
in: "cookie",
|
|
1370
|
+
name: "__Host-omnara_session",
|
|
1371
|
+
type: "apiKey"
|
|
1372
|
+
},
|
|
1373
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1374
|
+
],
|
|
1375
|
+
url: "/api/v1/orgs/{orgID}/projects",
|
|
1376
|
+
...options,
|
|
1377
|
+
headers: {
|
|
1378
|
+
"Content-Type": "application/json",
|
|
1379
|
+
...options.headers
|
|
1380
|
+
}
|
|
1381
|
+
});
|
|
1382
|
+
var deleteProject = (options) => (options.client ?? client).delete({
|
|
1383
|
+
responseValidator: async (data) => await validateResponse(zDeleteProjectResponse, data),
|
|
1384
|
+
security: [
|
|
1385
|
+
{
|
|
1386
|
+
key: "bearerAuth",
|
|
1387
|
+
scheme: "bearer",
|
|
1388
|
+
type: "http"
|
|
1389
|
+
},
|
|
1390
|
+
{
|
|
1391
|
+
in: "cookie",
|
|
1392
|
+
name: "__Host-omnara_session",
|
|
1393
|
+
type: "apiKey"
|
|
1394
|
+
},
|
|
1395
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1396
|
+
],
|
|
1397
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}",
|
|
1398
|
+
...options
|
|
1399
|
+
});
|
|
1400
|
+
var listOrgMembers = (options) => (options.client ?? client).get({
|
|
1401
|
+
responseValidator: async (data) => await validateResponse(zListOrgMembersResponse2, data),
|
|
1402
|
+
security: [{
|
|
1403
|
+
key: "bearerAuth",
|
|
1404
|
+
scheme: "bearer",
|
|
1405
|
+
type: "http"
|
|
1406
|
+
}, {
|
|
1407
|
+
in: "cookie",
|
|
1408
|
+
name: "__Host-omnara_session",
|
|
1409
|
+
type: "apiKey"
|
|
1410
|
+
}],
|
|
1411
|
+
url: "/api/v1/orgs/{orgID}/members",
|
|
1412
|
+
...options
|
|
1413
|
+
});
|
|
1414
|
+
var removeOrgMember = (options) => (options.client ?? client).delete({
|
|
1415
|
+
responseValidator: async (data) => await validateResponse(zRemoveOrgMemberResponse, data),
|
|
1416
|
+
security: [
|
|
1417
|
+
{
|
|
1418
|
+
key: "bearerAuth",
|
|
1419
|
+
scheme: "bearer",
|
|
1420
|
+
type: "http"
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
in: "cookie",
|
|
1424
|
+
name: "__Host-omnara_session",
|
|
1425
|
+
type: "apiKey"
|
|
1426
|
+
},
|
|
1427
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1428
|
+
],
|
|
1429
|
+
url: "/api/v1/orgs/{orgID}/members/{userID}",
|
|
1430
|
+
...options
|
|
1431
|
+
});
|
|
1432
|
+
var updateOrgMember = (options) => (options.client ?? client).patch({
|
|
1433
|
+
responseValidator: async (data) => await validateResponse(zUpdateOrgMemberResponse, data),
|
|
1434
|
+
security: [
|
|
1435
|
+
{
|
|
1436
|
+
key: "bearerAuth",
|
|
1437
|
+
scheme: "bearer",
|
|
1438
|
+
type: "http"
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
in: "cookie",
|
|
1442
|
+
name: "__Host-omnara_session",
|
|
1443
|
+
type: "apiKey"
|
|
1444
|
+
},
|
|
1445
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1446
|
+
],
|
|
1447
|
+
url: "/api/v1/orgs/{orgID}/members/{userID}",
|
|
1448
|
+
...options,
|
|
1449
|
+
headers: {
|
|
1450
|
+
"Content-Type": "application/json",
|
|
1451
|
+
...options.headers
|
|
1452
|
+
}
|
|
1453
|
+
});
|
|
1454
|
+
var listMemberProjectAccess = (options) => (options.client ?? client).get({
|
|
1455
|
+
responseValidator: async (data) => await validateResponse(zListMemberProjectAccessResponse, data),
|
|
1456
|
+
security: [{
|
|
1457
|
+
key: "bearerAuth",
|
|
1458
|
+
scheme: "bearer",
|
|
1459
|
+
type: "http"
|
|
1460
|
+
}, {
|
|
1461
|
+
in: "cookie",
|
|
1462
|
+
name: "__Host-omnara_session",
|
|
1463
|
+
type: "apiKey"
|
|
1464
|
+
}],
|
|
1465
|
+
url: "/api/v1/orgs/{orgID}/members/{userID}/projects",
|
|
1466
|
+
...options
|
|
1467
|
+
});
|
|
1468
|
+
var removeMemberProjectAccess = (options) => (options.client ?? client).delete({
|
|
1469
|
+
responseValidator: async (data) => await validateResponse(zRemoveMemberProjectAccessResponse, data),
|
|
1470
|
+
security: [
|
|
1471
|
+
{
|
|
1472
|
+
key: "bearerAuth",
|
|
1473
|
+
scheme: "bearer",
|
|
1474
|
+
type: "http"
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
in: "cookie",
|
|
1478
|
+
name: "__Host-omnara_session",
|
|
1479
|
+
type: "apiKey"
|
|
1480
|
+
},
|
|
1481
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1482
|
+
],
|
|
1483
|
+
url: "/api/v1/orgs/{orgID}/members/{userID}/projects/{projectID}",
|
|
1484
|
+
...options
|
|
1485
|
+
});
|
|
1486
|
+
var setMemberProjectAccess = (options) => (options.client ?? client).put({
|
|
1487
|
+
responseValidator: async (data) => await validateResponse(zSetMemberProjectAccessResponse, data),
|
|
1488
|
+
security: [
|
|
1489
|
+
{
|
|
1490
|
+
key: "bearerAuth",
|
|
1491
|
+
scheme: "bearer",
|
|
1492
|
+
type: "http"
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
in: "cookie",
|
|
1496
|
+
name: "__Host-omnara_session",
|
|
1497
|
+
type: "apiKey"
|
|
1498
|
+
},
|
|
1499
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1500
|
+
],
|
|
1501
|
+
url: "/api/v1/orgs/{orgID}/members/{userID}/projects/{projectID}",
|
|
1502
|
+
...options,
|
|
1503
|
+
headers: {
|
|
1504
|
+
"Content-Type": "application/json",
|
|
1505
|
+
...options.headers
|
|
1506
|
+
}
|
|
1507
|
+
});
|
|
1508
|
+
var listOrgApiKeys = (options) => (options.client ?? client).get({
|
|
1509
|
+
responseValidator: async (data) => await validateResponse(zListOrgApiKeysResponse2, data),
|
|
1510
|
+
security: [{
|
|
1511
|
+
key: "bearerAuth",
|
|
1512
|
+
scheme: "bearer",
|
|
1513
|
+
type: "http"
|
|
1514
|
+
}, {
|
|
1515
|
+
in: "cookie",
|
|
1516
|
+
name: "__Host-omnara_session",
|
|
1517
|
+
type: "apiKey"
|
|
1518
|
+
}],
|
|
1519
|
+
url: "/api/v1/orgs/{orgID}/api-keys",
|
|
1520
|
+
...options
|
|
1521
|
+
});
|
|
1522
|
+
var createOrgApiKey = (options) => (options.client ?? client).post({
|
|
1523
|
+
responseValidator: async (data) => await validateResponse(zCreateOrgApiKeyResponse2, data),
|
|
1524
|
+
security: [{
|
|
1525
|
+
in: "cookie",
|
|
1526
|
+
name: "__Host-omnara_session",
|
|
1527
|
+
type: "apiKey"
|
|
1528
|
+
}, { name: "X-Omnara-Csrf", type: "apiKey" }],
|
|
1529
|
+
url: "/api/v1/orgs/{orgID}/api-keys",
|
|
1530
|
+
...options,
|
|
1531
|
+
headers: {
|
|
1532
|
+
"Content-Type": "application/json",
|
|
1533
|
+
...options.headers
|
|
1534
|
+
}
|
|
1535
|
+
});
|
|
1536
|
+
var getOrgApiKey = (options) => (options.client ?? client).get({
|
|
1537
|
+
responseValidator: async (data) => await validateResponse(zGetOrgApiKeyResponse, data),
|
|
1538
|
+
security: [{
|
|
1539
|
+
key: "bearerAuth",
|
|
1540
|
+
scheme: "bearer",
|
|
1541
|
+
type: "http"
|
|
1542
|
+
}, {
|
|
1543
|
+
in: "cookie",
|
|
1544
|
+
name: "__Host-omnara_session",
|
|
1545
|
+
type: "apiKey"
|
|
1546
|
+
}],
|
|
1547
|
+
url: "/api/v1/orgs/{orgID}/api-keys/{keyID}",
|
|
1548
|
+
...options
|
|
1549
|
+
});
|
|
1550
|
+
var updateOrgApiKey = (options) => (options.client ?? client).patch({
|
|
1551
|
+
responseValidator: async (data) => await validateResponse(zUpdateOrgApiKeyResponse, data),
|
|
1552
|
+
security: [{
|
|
1553
|
+
in: "cookie",
|
|
1554
|
+
name: "__Host-omnara_session",
|
|
1555
|
+
type: "apiKey"
|
|
1556
|
+
}, { name: "X-Omnara-Csrf", type: "apiKey" }],
|
|
1557
|
+
url: "/api/v1/orgs/{orgID}/api-keys/{keyID}",
|
|
1558
|
+
...options,
|
|
1559
|
+
headers: {
|
|
1560
|
+
"Content-Type": "application/json",
|
|
1561
|
+
...options.headers
|
|
1562
|
+
}
|
|
1563
|
+
});
|
|
1564
|
+
var revokeOrgApiKey = (options) => (options.client ?? client).post({
|
|
1565
|
+
responseValidator: async (data) => await validateResponse(zRevokeOrgApiKeyResponse, data),
|
|
1566
|
+
security: [{
|
|
1567
|
+
in: "cookie",
|
|
1568
|
+
name: "__Host-omnara_session",
|
|
1569
|
+
type: "apiKey"
|
|
1570
|
+
}, { name: "X-Omnara-Csrf", type: "apiKey" }],
|
|
1571
|
+
url: "/api/v1/orgs/{orgID}/api-keys/{keyID}/revoke",
|
|
1572
|
+
...options
|
|
1573
|
+
});
|
|
1574
|
+
var listOrgApiKeyProjectAccess = (options) => (options.client ?? client).get({
|
|
1575
|
+
responseValidator: async (data) => await validateResponse(zListOrgApiKeyProjectAccessResponse, data),
|
|
1576
|
+
security: [{
|
|
1577
|
+
key: "bearerAuth",
|
|
1578
|
+
scheme: "bearer",
|
|
1579
|
+
type: "http"
|
|
1580
|
+
}, {
|
|
1581
|
+
in: "cookie",
|
|
1582
|
+
name: "__Host-omnara_session",
|
|
1583
|
+
type: "apiKey"
|
|
1584
|
+
}],
|
|
1585
|
+
url: "/api/v1/orgs/{orgID}/api-keys/{keyID}/projects",
|
|
1586
|
+
...options
|
|
1587
|
+
});
|
|
1588
|
+
var removeOrgApiKeyProjectRole = (options) => (options.client ?? client).delete({
|
|
1589
|
+
responseValidator: async (data) => await validateResponse(zRemoveOrgApiKeyProjectRoleResponse, data),
|
|
1590
|
+
security: [{
|
|
1591
|
+
in: "cookie",
|
|
1592
|
+
name: "__Host-omnara_session",
|
|
1593
|
+
type: "apiKey"
|
|
1594
|
+
}, { name: "X-Omnara-Csrf", type: "apiKey" }],
|
|
1595
|
+
url: "/api/v1/orgs/{orgID}/api-keys/{keyID}/projects/{projectID}",
|
|
1596
|
+
...options
|
|
1597
|
+
});
|
|
1598
|
+
var setOrgApiKeyProjectRole = (options) => (options.client ?? client).put({
|
|
1599
|
+
responseValidator: async (data) => await validateResponse(zSetOrgApiKeyProjectRoleResponse, data),
|
|
1600
|
+
security: [{
|
|
1601
|
+
in: "cookie",
|
|
1602
|
+
name: "__Host-omnara_session",
|
|
1603
|
+
type: "apiKey"
|
|
1604
|
+
}, { name: "X-Omnara-Csrf", type: "apiKey" }],
|
|
1605
|
+
url: "/api/v1/orgs/{orgID}/api-keys/{keyID}/projects/{projectID}",
|
|
1606
|
+
...options,
|
|
1607
|
+
headers: {
|
|
1608
|
+
"Content-Type": "application/json",
|
|
1609
|
+
...options.headers
|
|
1610
|
+
}
|
|
1611
|
+
});
|
|
1612
|
+
var listOrgInvitations = (options) => (options.client ?? client).get({
|
|
1613
|
+
responseValidator: async (data) => await validateResponse(zListOrgInvitationsResponse2, data),
|
|
1614
|
+
security: [{
|
|
1615
|
+
key: "bearerAuth",
|
|
1616
|
+
scheme: "bearer",
|
|
1617
|
+
type: "http"
|
|
1618
|
+
}, {
|
|
1619
|
+
in: "cookie",
|
|
1620
|
+
name: "__Host-omnara_session",
|
|
1621
|
+
type: "apiKey"
|
|
1622
|
+
}],
|
|
1623
|
+
url: "/api/v1/orgs/{orgID}/invitations",
|
|
1624
|
+
...options
|
|
1625
|
+
});
|
|
1626
|
+
var createOrgInvitation = (options) => (options.client ?? client).post({
|
|
1627
|
+
responseValidator: async (data) => await validateResponse(zCreateOrgInvitationResponse, data),
|
|
1628
|
+
security: [
|
|
1629
|
+
{
|
|
1630
|
+
key: "bearerAuth",
|
|
1631
|
+
scheme: "bearer",
|
|
1632
|
+
type: "http"
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
in: "cookie",
|
|
1636
|
+
name: "__Host-omnara_session",
|
|
1637
|
+
type: "apiKey"
|
|
1638
|
+
},
|
|
1639
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1640
|
+
],
|
|
1641
|
+
url: "/api/v1/orgs/{orgID}/invitations",
|
|
1642
|
+
...options,
|
|
1643
|
+
headers: {
|
|
1644
|
+
"Content-Type": "application/json",
|
|
1645
|
+
...options.headers
|
|
1646
|
+
}
|
|
1647
|
+
});
|
|
1648
|
+
var deleteOrgInvitation = (options) => (options.client ?? client).delete({
|
|
1649
|
+
responseValidator: async (data) => await validateResponse(zDeleteOrgInvitationResponse, data),
|
|
1650
|
+
security: [
|
|
1651
|
+
{
|
|
1652
|
+
key: "bearerAuth",
|
|
1653
|
+
scheme: "bearer",
|
|
1654
|
+
type: "http"
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
in: "cookie",
|
|
1658
|
+
name: "__Host-omnara_session",
|
|
1659
|
+
type: "apiKey"
|
|
1660
|
+
},
|
|
1661
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1662
|
+
],
|
|
1663
|
+
url: "/api/v1/orgs/{orgID}/invitations/{invitationID}",
|
|
1664
|
+
...options
|
|
1665
|
+
});
|
|
1666
|
+
var listSkills = (options) => (options.client ?? client).get({
|
|
1667
|
+
responseValidator: async (data) => await validateResponse(zListSkillsResponse2, data),
|
|
1668
|
+
security: [{
|
|
1669
|
+
key: "bearerAuth",
|
|
1670
|
+
scheme: "bearer",
|
|
1671
|
+
type: "http"
|
|
1672
|
+
}, {
|
|
1673
|
+
in: "cookie",
|
|
1674
|
+
name: "__Host-omnara_session",
|
|
1675
|
+
type: "apiKey"
|
|
1676
|
+
}],
|
|
1677
|
+
url: "/api/v1/orgs/{orgID}/skills",
|
|
1678
|
+
...options
|
|
1679
|
+
});
|
|
1680
|
+
var createSkill = (options) => (options.client ?? client).post({
|
|
1681
|
+
...formDataBodySerializer,
|
|
1682
|
+
responseValidator: async (data) => await validateResponse(zCreateSkillResponse, data),
|
|
1683
|
+
security: [
|
|
1684
|
+
{
|
|
1685
|
+
key: "bearerAuth",
|
|
1686
|
+
scheme: "bearer",
|
|
1687
|
+
type: "http"
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
in: "cookie",
|
|
1691
|
+
name: "__Host-omnara_session",
|
|
1692
|
+
type: "apiKey"
|
|
1693
|
+
},
|
|
1694
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1695
|
+
],
|
|
1696
|
+
url: "/api/v1/orgs/{orgID}/skills",
|
|
1697
|
+
...options,
|
|
1698
|
+
headers: {
|
|
1699
|
+
"Content-Type": null,
|
|
1700
|
+
...options.headers
|
|
1701
|
+
}
|
|
1702
|
+
});
|
|
1703
|
+
var deleteSkill = (options) => (options.client ?? client).delete({
|
|
1704
|
+
responseValidator: async (data) => await validateResponse(zDeleteSkillResponse, data),
|
|
1705
|
+
security: [
|
|
1706
|
+
{
|
|
1707
|
+
key: "bearerAuth",
|
|
1708
|
+
scheme: "bearer",
|
|
1709
|
+
type: "http"
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
in: "cookie",
|
|
1713
|
+
name: "__Host-omnara_session",
|
|
1714
|
+
type: "apiKey"
|
|
1715
|
+
},
|
|
1716
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1717
|
+
],
|
|
1718
|
+
url: "/api/v1/orgs/{orgID}/skills/{skillID}",
|
|
1719
|
+
...options
|
|
1720
|
+
});
|
|
1721
|
+
var getSkill = (options) => (options.client ?? client).get({
|
|
1722
|
+
responseValidator: async (data) => await validateResponse(zGetSkillResponse, data),
|
|
1723
|
+
security: [{
|
|
1724
|
+
key: "bearerAuth",
|
|
1725
|
+
scheme: "bearer",
|
|
1726
|
+
type: "http"
|
|
1727
|
+
}, {
|
|
1728
|
+
in: "cookie",
|
|
1729
|
+
name: "__Host-omnara_session",
|
|
1730
|
+
type: "apiKey"
|
|
1731
|
+
}],
|
|
1732
|
+
url: "/api/v1/orgs/{orgID}/skills/{skillID}",
|
|
1733
|
+
...options
|
|
1734
|
+
});
|
|
1735
|
+
var listSkillGrants = (options) => (options.client ?? client).get({
|
|
1736
|
+
responseValidator: async (data) => await validateResponse(zListSkillGrantsResponse2, data),
|
|
1737
|
+
security: [{
|
|
1738
|
+
key: "bearerAuth",
|
|
1739
|
+
scheme: "bearer",
|
|
1740
|
+
type: "http"
|
|
1741
|
+
}, {
|
|
1742
|
+
in: "cookie",
|
|
1743
|
+
name: "__Host-omnara_session",
|
|
1744
|
+
type: "apiKey"
|
|
1745
|
+
}],
|
|
1746
|
+
url: "/api/v1/orgs/{orgID}/skills/{skillID}/grants",
|
|
1747
|
+
...options
|
|
1748
|
+
});
|
|
1749
|
+
var createSkillGrant = (options) => (options.client ?? client).post({
|
|
1750
|
+
responseValidator: async (data) => await validateResponse(zCreateSkillGrantResponse, data),
|
|
1751
|
+
security: [
|
|
1752
|
+
{
|
|
1753
|
+
key: "bearerAuth",
|
|
1754
|
+
scheme: "bearer",
|
|
1755
|
+
type: "http"
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
in: "cookie",
|
|
1759
|
+
name: "__Host-omnara_session",
|
|
1760
|
+
type: "apiKey"
|
|
1761
|
+
},
|
|
1762
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1763
|
+
],
|
|
1764
|
+
url: "/api/v1/orgs/{orgID}/skills/{skillID}/grants",
|
|
1765
|
+
...options,
|
|
1766
|
+
headers: {
|
|
1767
|
+
"Content-Type": "application/json",
|
|
1768
|
+
...options.headers
|
|
1769
|
+
}
|
|
1770
|
+
});
|
|
1771
|
+
var deleteSkillGrant = (options) => (options.client ?? client).delete({
|
|
1772
|
+
responseValidator: async (data) => await validateResponse(zDeleteSkillGrantResponse, data),
|
|
1773
|
+
security: [
|
|
1774
|
+
{
|
|
1775
|
+
key: "bearerAuth",
|
|
1776
|
+
scheme: "bearer",
|
|
1777
|
+
type: "http"
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
in: "cookie",
|
|
1781
|
+
name: "__Host-omnara_session",
|
|
1782
|
+
type: "apiKey"
|
|
1783
|
+
},
|
|
1784
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1785
|
+
],
|
|
1786
|
+
url: "/api/v1/orgs/{orgID}/skills/{skillID}/grants/{grantID}",
|
|
1787
|
+
...options
|
|
1788
|
+
});
|
|
1789
|
+
var listProjectAvailableSkills = (options) => (options.client ?? client).get({
|
|
1790
|
+
responseValidator: async (data) => await validateResponse(zListProjectAvailableSkillsResponse, data),
|
|
1791
|
+
security: [{
|
|
1792
|
+
key: "bearerAuth",
|
|
1793
|
+
scheme: "bearer",
|
|
1794
|
+
type: "http"
|
|
1795
|
+
}, {
|
|
1796
|
+
in: "cookie",
|
|
1797
|
+
name: "__Host-omnara_session",
|
|
1798
|
+
type: "apiKey"
|
|
1799
|
+
}],
|
|
1800
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/skills",
|
|
1801
|
+
...options
|
|
1802
|
+
});
|
|
1803
|
+
var listSecrets = (options) => (options.client ?? client).get({
|
|
1804
|
+
responseValidator: async (data) => await validateResponse(zListSecretsResponse2, data),
|
|
1805
|
+
security: [{
|
|
1806
|
+
key: "bearerAuth",
|
|
1807
|
+
scheme: "bearer",
|
|
1808
|
+
type: "http"
|
|
1809
|
+
}, {
|
|
1810
|
+
in: "cookie",
|
|
1811
|
+
name: "__Host-omnara_session",
|
|
1812
|
+
type: "apiKey"
|
|
1813
|
+
}],
|
|
1814
|
+
url: "/api/v1/orgs/{orgID}/secrets",
|
|
1815
|
+
...options
|
|
1816
|
+
});
|
|
1817
|
+
var createSecret = (options) => (options.client ?? client).post({
|
|
1818
|
+
responseValidator: async (data) => await validateResponse(zCreateSecretResponse, data),
|
|
1819
|
+
security: [
|
|
1820
|
+
{
|
|
1821
|
+
key: "bearerAuth",
|
|
1822
|
+
scheme: "bearer",
|
|
1823
|
+
type: "http"
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
in: "cookie",
|
|
1827
|
+
name: "__Host-omnara_session",
|
|
1828
|
+
type: "apiKey"
|
|
1829
|
+
},
|
|
1830
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1831
|
+
],
|
|
1832
|
+
url: "/api/v1/orgs/{orgID}/secrets",
|
|
1833
|
+
...options,
|
|
1834
|
+
headers: {
|
|
1835
|
+
"Content-Type": "application/json",
|
|
1836
|
+
...options.headers
|
|
1837
|
+
}
|
|
1838
|
+
});
|
|
1839
|
+
var startSecretMcpoAuth = (options) => (options.client ?? client).post({
|
|
1840
|
+
responseValidator: async (data) => await validateResponse(zStartSecretMcpoAuthResponse, data),
|
|
1841
|
+
security: [
|
|
1842
|
+
{
|
|
1843
|
+
key: "bearerAuth",
|
|
1844
|
+
scheme: "bearer",
|
|
1845
|
+
type: "http"
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
in: "cookie",
|
|
1849
|
+
name: "__Host-omnara_session",
|
|
1850
|
+
type: "apiKey"
|
|
1851
|
+
},
|
|
1852
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1853
|
+
],
|
|
1854
|
+
url: "/api/v1/orgs/{orgID}/secrets/mcp-oauth",
|
|
1855
|
+
...options,
|
|
1856
|
+
headers: {
|
|
1857
|
+
"Content-Type": "application/json",
|
|
1858
|
+
...options.headers
|
|
1859
|
+
}
|
|
1860
|
+
});
|
|
1861
|
+
var deleteSecret = (options) => (options.client ?? client).delete({
|
|
1862
|
+
responseValidator: async (data) => await validateResponse(zDeleteSecretResponse, data),
|
|
1863
|
+
security: [
|
|
1864
|
+
{
|
|
1865
|
+
key: "bearerAuth",
|
|
1866
|
+
scheme: "bearer",
|
|
1867
|
+
type: "http"
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
in: "cookie",
|
|
1871
|
+
name: "__Host-omnara_session",
|
|
1872
|
+
type: "apiKey"
|
|
1873
|
+
},
|
|
1874
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1875
|
+
],
|
|
1876
|
+
url: "/api/v1/orgs/{orgID}/secrets/{secretID}",
|
|
1877
|
+
...options
|
|
1878
|
+
});
|
|
1879
|
+
var getSecret = (options) => (options.client ?? client).get({
|
|
1880
|
+
responseValidator: async (data) => await validateResponse(zGetSecretResponse, data),
|
|
1881
|
+
security: [{
|
|
1882
|
+
key: "bearerAuth",
|
|
1883
|
+
scheme: "bearer",
|
|
1884
|
+
type: "http"
|
|
1885
|
+
}, {
|
|
1886
|
+
in: "cookie",
|
|
1887
|
+
name: "__Host-omnara_session",
|
|
1888
|
+
type: "apiKey"
|
|
1889
|
+
}],
|
|
1890
|
+
url: "/api/v1/orgs/{orgID}/secrets/{secretID}",
|
|
1891
|
+
...options
|
|
1892
|
+
});
|
|
1893
|
+
var updateSecret = (options) => (options.client ?? client).patch({
|
|
1894
|
+
responseValidator: async (data) => await validateResponse(zUpdateSecretResponse, data),
|
|
1895
|
+
security: [
|
|
1896
|
+
{
|
|
1897
|
+
key: "bearerAuth",
|
|
1898
|
+
scheme: "bearer",
|
|
1899
|
+
type: "http"
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
in: "cookie",
|
|
1903
|
+
name: "__Host-omnara_session",
|
|
1904
|
+
type: "apiKey"
|
|
1905
|
+
},
|
|
1906
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1907
|
+
],
|
|
1908
|
+
url: "/api/v1/orgs/{orgID}/secrets/{secretID}",
|
|
1909
|
+
...options,
|
|
1910
|
+
headers: {
|
|
1911
|
+
"Content-Type": "application/json",
|
|
1912
|
+
...options.headers
|
|
1913
|
+
}
|
|
1914
|
+
});
|
|
1915
|
+
var createSecretVersion = (options) => (options.client ?? client).post({
|
|
1916
|
+
responseValidator: async (data) => await validateResponse(zCreateSecretVersionResponse, data),
|
|
1917
|
+
security: [
|
|
1918
|
+
{
|
|
1919
|
+
key: "bearerAuth",
|
|
1920
|
+
scheme: "bearer",
|
|
1921
|
+
type: "http"
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
in: "cookie",
|
|
1925
|
+
name: "__Host-omnara_session",
|
|
1926
|
+
type: "apiKey"
|
|
1927
|
+
},
|
|
1928
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1929
|
+
],
|
|
1930
|
+
url: "/api/v1/orgs/{orgID}/secrets/{secretID}/versions",
|
|
1931
|
+
...options,
|
|
1932
|
+
headers: {
|
|
1933
|
+
"Content-Type": "application/json",
|
|
1934
|
+
...options.headers
|
|
1935
|
+
}
|
|
1936
|
+
});
|
|
1937
|
+
var listSecretGrants = (options) => (options.client ?? client).get({
|
|
1938
|
+
responseValidator: async (data) => await validateResponse(zListSecretGrantsResponse2, data),
|
|
1939
|
+
security: [{
|
|
1940
|
+
key: "bearerAuth",
|
|
1941
|
+
scheme: "bearer",
|
|
1942
|
+
type: "http"
|
|
1943
|
+
}, {
|
|
1944
|
+
in: "cookie",
|
|
1945
|
+
name: "__Host-omnara_session",
|
|
1946
|
+
type: "apiKey"
|
|
1947
|
+
}],
|
|
1948
|
+
url: "/api/v1/orgs/{orgID}/secrets/{secretID}/grants",
|
|
1949
|
+
...options
|
|
1950
|
+
});
|
|
1951
|
+
var createSecretGrant = (options) => (options.client ?? client).post({
|
|
1952
|
+
responseValidator: async (data) => await validateResponse(zCreateSecretGrantResponse, data),
|
|
1953
|
+
security: [
|
|
1954
|
+
{
|
|
1955
|
+
key: "bearerAuth",
|
|
1956
|
+
scheme: "bearer",
|
|
1957
|
+
type: "http"
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
in: "cookie",
|
|
1961
|
+
name: "__Host-omnara_session",
|
|
1962
|
+
type: "apiKey"
|
|
1963
|
+
},
|
|
1964
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1965
|
+
],
|
|
1966
|
+
url: "/api/v1/orgs/{orgID}/secrets/{secretID}/grants",
|
|
1967
|
+
...options,
|
|
1968
|
+
headers: {
|
|
1969
|
+
"Content-Type": "application/json",
|
|
1970
|
+
...options.headers
|
|
1971
|
+
}
|
|
1972
|
+
});
|
|
1973
|
+
var deleteSecretGrant = (options) => (options.client ?? client).delete({
|
|
1974
|
+
responseValidator: async (data) => await validateResponse(zDeleteSecretGrantResponse, data),
|
|
1975
|
+
security: [
|
|
1976
|
+
{
|
|
1977
|
+
key: "bearerAuth",
|
|
1978
|
+
scheme: "bearer",
|
|
1979
|
+
type: "http"
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
in: "cookie",
|
|
1983
|
+
name: "__Host-omnara_session",
|
|
1984
|
+
type: "apiKey"
|
|
1985
|
+
},
|
|
1986
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
1987
|
+
],
|
|
1988
|
+
url: "/api/v1/orgs/{orgID}/secrets/{secretID}/grants/{grantID}",
|
|
1989
|
+
...options
|
|
1990
|
+
});
|
|
1991
|
+
var listIntegrationInstalls = (options) => (options.client ?? client).get({
|
|
1992
|
+
responseValidator: async (data) => await validateResponse(zListIntegrationInstallsResponse2, data),
|
|
1993
|
+
security: [{
|
|
1994
|
+
key: "bearerAuth",
|
|
1995
|
+
scheme: "bearer",
|
|
1996
|
+
type: "http"
|
|
1997
|
+
}, {
|
|
1998
|
+
in: "cookie",
|
|
1999
|
+
name: "__Host-omnara_session",
|
|
2000
|
+
type: "apiKey"
|
|
2001
|
+
}],
|
|
2002
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/integration-installs",
|
|
2003
|
+
...options
|
|
2004
|
+
});
|
|
2005
|
+
var deleteIntegrationInstall = (options) => (options.client ?? client).delete({
|
|
2006
|
+
responseValidator: async (data) => await validateResponse(zDeleteIntegrationInstallResponse, data),
|
|
2007
|
+
security: [
|
|
2008
|
+
{
|
|
2009
|
+
key: "bearerAuth",
|
|
2010
|
+
scheme: "bearer",
|
|
2011
|
+
type: "http"
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
in: "cookie",
|
|
2015
|
+
name: "__Host-omnara_session",
|
|
2016
|
+
type: "apiKey"
|
|
2017
|
+
},
|
|
2018
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2019
|
+
],
|
|
2020
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/integration-installs/{integrationInstallID}",
|
|
2021
|
+
...options
|
|
2022
|
+
});
|
|
2023
|
+
var createAgentConfig = (options) => (options.client ?? client).post({
|
|
2024
|
+
responseValidator: async (data) => await validateResponse(zCreateAgentConfigResponse, data),
|
|
2025
|
+
security: [
|
|
2026
|
+
{
|
|
2027
|
+
key: "bearerAuth",
|
|
2028
|
+
scheme: "bearer",
|
|
2029
|
+
type: "http"
|
|
2030
|
+
},
|
|
2031
|
+
{
|
|
2032
|
+
in: "cookie",
|
|
2033
|
+
name: "__Host-omnara_session",
|
|
2034
|
+
type: "apiKey"
|
|
2035
|
+
},
|
|
2036
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2037
|
+
],
|
|
2038
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agent-configs",
|
|
2039
|
+
...options,
|
|
2040
|
+
headers: {
|
|
2041
|
+
"Content-Type": "application/json",
|
|
2042
|
+
...options.headers
|
|
2043
|
+
}
|
|
2044
|
+
});
|
|
2045
|
+
var getToolCatalog = (options) => (options?.client ?? client).get({
|
|
2046
|
+
responseValidator: async (data) => await validateResponse(zGetToolCatalogResponse, data),
|
|
2047
|
+
security: [{
|
|
2048
|
+
key: "bearerAuth",
|
|
2049
|
+
scheme: "bearer",
|
|
2050
|
+
type: "http"
|
|
2051
|
+
}, {
|
|
2052
|
+
in: "cookie",
|
|
2053
|
+
name: "__Host-omnara_session",
|
|
2054
|
+
type: "apiKey"
|
|
2055
|
+
}],
|
|
2056
|
+
url: "/api/v1/tool-catalog",
|
|
2057
|
+
...options
|
|
2058
|
+
});
|
|
2059
|
+
var getAgentConfig = (options) => (options.client ?? client).get({
|
|
2060
|
+
responseValidator: async (data) => await validateResponse(zGetAgentConfigResponse, data),
|
|
2061
|
+
security: [{
|
|
2062
|
+
key: "bearerAuth",
|
|
2063
|
+
scheme: "bearer",
|
|
2064
|
+
type: "http"
|
|
2065
|
+
}, {
|
|
2066
|
+
in: "cookie",
|
|
2067
|
+
name: "__Host-omnara_session",
|
|
2068
|
+
type: "apiKey"
|
|
2069
|
+
}],
|
|
2070
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agent-configs/{agentConfigID}",
|
|
2071
|
+
...options
|
|
2072
|
+
});
|
|
2073
|
+
var listAgentProfiles = (options) => (options.client ?? client).get({
|
|
2074
|
+
responseValidator: async (data) => await validateResponse(zListAgentProfilesResponse2, data),
|
|
2075
|
+
security: [{
|
|
2076
|
+
key: "bearerAuth",
|
|
2077
|
+
scheme: "bearer",
|
|
2078
|
+
type: "http"
|
|
2079
|
+
}, {
|
|
2080
|
+
in: "cookie",
|
|
2081
|
+
name: "__Host-omnara_session",
|
|
2082
|
+
type: "apiKey"
|
|
2083
|
+
}],
|
|
2084
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agent-profiles",
|
|
2085
|
+
...options
|
|
2086
|
+
});
|
|
2087
|
+
var createAgentProfile = (options) => (options.client ?? client).post({
|
|
2088
|
+
responseValidator: async (data) => await validateResponse(zCreateAgentProfileResponse, data),
|
|
2089
|
+
security: [
|
|
2090
|
+
{
|
|
2091
|
+
key: "bearerAuth",
|
|
2092
|
+
scheme: "bearer",
|
|
2093
|
+
type: "http"
|
|
2094
|
+
},
|
|
2095
|
+
{
|
|
2096
|
+
in: "cookie",
|
|
2097
|
+
name: "__Host-omnara_session",
|
|
2098
|
+
type: "apiKey"
|
|
2099
|
+
},
|
|
2100
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2101
|
+
],
|
|
2102
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agent-profiles",
|
|
2103
|
+
...options,
|
|
2104
|
+
headers: {
|
|
2105
|
+
"Content-Type": "application/json",
|
|
2106
|
+
...options.headers
|
|
2107
|
+
}
|
|
2108
|
+
});
|
|
2109
|
+
var deleteAgentProfile = (options) => (options.client ?? client).delete({
|
|
2110
|
+
responseValidator: async (data) => await validateResponse(zDeleteAgentProfileResponse, data),
|
|
2111
|
+
security: [
|
|
2112
|
+
{
|
|
2113
|
+
key: "bearerAuth",
|
|
2114
|
+
scheme: "bearer",
|
|
2115
|
+
type: "http"
|
|
2116
|
+
},
|
|
2117
|
+
{
|
|
2118
|
+
in: "cookie",
|
|
2119
|
+
name: "__Host-omnara_session",
|
|
2120
|
+
type: "apiKey"
|
|
2121
|
+
},
|
|
2122
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2123
|
+
],
|
|
2124
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agent-profiles/{agentProfileID}",
|
|
2125
|
+
...options
|
|
2126
|
+
});
|
|
2127
|
+
var getAgentProfile = (options) => (options.client ?? client).get({
|
|
2128
|
+
responseValidator: async (data) => await validateResponse(zGetAgentProfileResponse, data),
|
|
2129
|
+
security: [{
|
|
2130
|
+
key: "bearerAuth",
|
|
2131
|
+
scheme: "bearer",
|
|
2132
|
+
type: "http"
|
|
2133
|
+
}, {
|
|
2134
|
+
in: "cookie",
|
|
2135
|
+
name: "__Host-omnara_session",
|
|
2136
|
+
type: "apiKey"
|
|
2137
|
+
}],
|
|
2138
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agent-profiles/{agentProfileID}",
|
|
2139
|
+
...options
|
|
2140
|
+
});
|
|
2141
|
+
var renameAgentProfile = (options) => (options.client ?? client).patch({
|
|
2142
|
+
responseValidator: async (data) => await validateResponse(zRenameAgentProfileResponse, data),
|
|
2143
|
+
security: [
|
|
2144
|
+
{
|
|
2145
|
+
key: "bearerAuth",
|
|
2146
|
+
scheme: "bearer",
|
|
2147
|
+
type: "http"
|
|
2148
|
+
},
|
|
2149
|
+
{
|
|
2150
|
+
in: "cookie",
|
|
2151
|
+
name: "__Host-omnara_session",
|
|
2152
|
+
type: "apiKey"
|
|
2153
|
+
},
|
|
2154
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2155
|
+
],
|
|
2156
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agent-profiles/{agentProfileID}",
|
|
2157
|
+
...options,
|
|
2158
|
+
headers: {
|
|
2159
|
+
"Content-Type": "application/json",
|
|
2160
|
+
...options.headers
|
|
2161
|
+
}
|
|
2162
|
+
});
|
|
2163
|
+
var updateAgentProfile = (options) => (options.client ?? client).post({
|
|
2164
|
+
responseValidator: async (data) => await validateResponse(zUpdateAgentProfileResponse, data),
|
|
2165
|
+
security: [
|
|
2166
|
+
{
|
|
2167
|
+
key: "bearerAuth",
|
|
2168
|
+
scheme: "bearer",
|
|
2169
|
+
type: "http"
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
in: "cookie",
|
|
2173
|
+
name: "__Host-omnara_session",
|
|
2174
|
+
type: "apiKey"
|
|
2175
|
+
},
|
|
2176
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2177
|
+
],
|
|
2178
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agent-profiles/{agentProfileID}/config",
|
|
2179
|
+
...options,
|
|
2180
|
+
headers: {
|
|
2181
|
+
"Content-Type": "application/json",
|
|
2182
|
+
...options.headers
|
|
2183
|
+
}
|
|
2184
|
+
});
|
|
2185
|
+
var createIntegrationOAuthSetup = (options) => (options.client ?? client).post({
|
|
2186
|
+
responseValidator: async (data) => await validateResponse(zCreateIntegrationOAuthSetupResponse, data),
|
|
2187
|
+
security: [
|
|
2188
|
+
{
|
|
2189
|
+
key: "bearerAuth",
|
|
2190
|
+
scheme: "bearer",
|
|
2191
|
+
type: "http"
|
|
2192
|
+
},
|
|
2193
|
+
{
|
|
2194
|
+
in: "cookie",
|
|
2195
|
+
name: "__Host-omnara_session",
|
|
2196
|
+
type: "apiKey"
|
|
2197
|
+
},
|
|
2198
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2199
|
+
],
|
|
2200
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agent-profiles/{agentProfileID}/integration-oauth/setup",
|
|
2201
|
+
...options,
|
|
2202
|
+
headers: {
|
|
2203
|
+
"Content-Type": "application/json",
|
|
2204
|
+
...options.headers
|
|
2205
|
+
}
|
|
2206
|
+
});
|
|
2207
|
+
var createSlackSetup = (options) => (options.client ?? client).post({
|
|
2208
|
+
responseValidator: async (data) => await validateResponse(zCreateSlackSetupResponse, data),
|
|
2209
|
+
security: [
|
|
2210
|
+
{
|
|
2211
|
+
key: "bearerAuth",
|
|
2212
|
+
scheme: "bearer",
|
|
2213
|
+
type: "http"
|
|
2214
|
+
},
|
|
2215
|
+
{
|
|
2216
|
+
in: "cookie",
|
|
2217
|
+
name: "__Host-omnara_session",
|
|
2218
|
+
type: "apiKey"
|
|
2219
|
+
},
|
|
2220
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2221
|
+
],
|
|
2222
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agent-profiles/{agentProfileID}/slack-setup",
|
|
2223
|
+
...options,
|
|
2224
|
+
headers: {
|
|
2225
|
+
"Content-Type": "application/json",
|
|
2226
|
+
...options.headers
|
|
2227
|
+
}
|
|
2228
|
+
});
|
|
2229
|
+
var listCronTriggers = (options) => (options.client ?? client).get({
|
|
2230
|
+
responseValidator: async (data) => await validateResponse(zListCronTriggersResponse2, data),
|
|
2231
|
+
security: [{
|
|
2232
|
+
key: "bearerAuth",
|
|
2233
|
+
scheme: "bearer",
|
|
2234
|
+
type: "http"
|
|
2235
|
+
}, {
|
|
2236
|
+
in: "cookie",
|
|
2237
|
+
name: "__Host-omnara_session",
|
|
2238
|
+
type: "apiKey"
|
|
2239
|
+
}],
|
|
2240
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/cron-triggers",
|
|
2241
|
+
...options
|
|
2242
|
+
});
|
|
2243
|
+
var createCronTrigger = (options) => (options.client ?? client).post({
|
|
2244
|
+
responseValidator: async (data) => await validateResponse(zCreateCronTriggerResponse, data),
|
|
2245
|
+
security: [
|
|
2246
|
+
{
|
|
2247
|
+
key: "bearerAuth",
|
|
2248
|
+
scheme: "bearer",
|
|
2249
|
+
type: "http"
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
in: "cookie",
|
|
2253
|
+
name: "__Host-omnara_session",
|
|
2254
|
+
type: "apiKey"
|
|
2255
|
+
},
|
|
2256
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2257
|
+
],
|
|
2258
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/cron-triggers",
|
|
2259
|
+
...options,
|
|
2260
|
+
headers: {
|
|
2261
|
+
"Content-Type": "application/json",
|
|
2262
|
+
...options.headers
|
|
2263
|
+
}
|
|
2264
|
+
});
|
|
2265
|
+
var deleteCronTrigger = (options) => (options.client ?? client).delete({
|
|
2266
|
+
responseValidator: async (data) => await validateResponse(zDeleteCronTriggerResponse, data),
|
|
2267
|
+
security: [
|
|
2268
|
+
{
|
|
2269
|
+
key: "bearerAuth",
|
|
2270
|
+
scheme: "bearer",
|
|
2271
|
+
type: "http"
|
|
2272
|
+
},
|
|
2273
|
+
{
|
|
2274
|
+
in: "cookie",
|
|
2275
|
+
name: "__Host-omnara_session",
|
|
2276
|
+
type: "apiKey"
|
|
2277
|
+
},
|
|
2278
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2279
|
+
],
|
|
2280
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/cron-triggers/{cronTriggerID}",
|
|
2281
|
+
...options
|
|
2282
|
+
});
|
|
2283
|
+
var getCronTrigger = (options) => (options.client ?? client).get({
|
|
2284
|
+
responseValidator: async (data) => await validateResponse(zGetCronTriggerResponse, data),
|
|
2285
|
+
security: [{
|
|
2286
|
+
key: "bearerAuth",
|
|
2287
|
+
scheme: "bearer",
|
|
2288
|
+
type: "http"
|
|
2289
|
+
}, {
|
|
2290
|
+
in: "cookie",
|
|
2291
|
+
name: "__Host-omnara_session",
|
|
2292
|
+
type: "apiKey"
|
|
2293
|
+
}],
|
|
2294
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/cron-triggers/{cronTriggerID}",
|
|
2295
|
+
...options
|
|
2296
|
+
});
|
|
2297
|
+
var updateCronTrigger = (options) => (options.client ?? client).patch({
|
|
2298
|
+
responseValidator: async (data) => await validateResponse(zUpdateCronTriggerResponse, data),
|
|
2299
|
+
security: [
|
|
2300
|
+
{
|
|
2301
|
+
key: "bearerAuth",
|
|
2302
|
+
scheme: "bearer",
|
|
2303
|
+
type: "http"
|
|
2304
|
+
},
|
|
2305
|
+
{
|
|
2306
|
+
in: "cookie",
|
|
2307
|
+
name: "__Host-omnara_session",
|
|
2308
|
+
type: "apiKey"
|
|
2309
|
+
},
|
|
2310
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2311
|
+
],
|
|
2312
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/cron-triggers/{cronTriggerID}",
|
|
2313
|
+
...options,
|
|
2314
|
+
headers: {
|
|
2315
|
+
"Content-Type": "application/json",
|
|
2316
|
+
...options.headers
|
|
2317
|
+
}
|
|
2318
|
+
});
|
|
2319
|
+
var listAgents = (options) => (options.client ?? client).get({
|
|
2320
|
+
responseValidator: async (data) => await validateResponse(zListAgentsResponse2, data),
|
|
2321
|
+
security: [{
|
|
2322
|
+
key: "bearerAuth",
|
|
2323
|
+
scheme: "bearer",
|
|
2324
|
+
type: "http"
|
|
2325
|
+
}, {
|
|
2326
|
+
in: "cookie",
|
|
2327
|
+
name: "__Host-omnara_session",
|
|
2328
|
+
type: "apiKey"
|
|
2329
|
+
}],
|
|
2330
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents",
|
|
2331
|
+
...options
|
|
2332
|
+
});
|
|
2333
|
+
var createAgent = (options) => (options.client ?? client).post({
|
|
2334
|
+
responseValidator: async (data) => await validateResponse(zCreateAgentResponse, data),
|
|
2335
|
+
security: [
|
|
2336
|
+
{
|
|
2337
|
+
key: "bearerAuth",
|
|
2338
|
+
scheme: "bearer",
|
|
2339
|
+
type: "http"
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
in: "cookie",
|
|
2343
|
+
name: "__Host-omnara_session",
|
|
2344
|
+
type: "apiKey"
|
|
2345
|
+
},
|
|
2346
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2347
|
+
],
|
|
2348
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents",
|
|
2349
|
+
...options,
|
|
2350
|
+
headers: {
|
|
2351
|
+
"Content-Type": "application/json",
|
|
2352
|
+
...options.headers
|
|
2353
|
+
}
|
|
2354
|
+
});
|
|
2355
|
+
var getAgent = (options) => (options.client ?? client).get({
|
|
2356
|
+
responseValidator: async (data) => await validateResponse(zGetAgentResponse2, data),
|
|
2357
|
+
security: [{
|
|
2358
|
+
key: "bearerAuth",
|
|
2359
|
+
scheme: "bearer",
|
|
2360
|
+
type: "http"
|
|
2361
|
+
}, {
|
|
2362
|
+
in: "cookie",
|
|
2363
|
+
name: "__Host-omnara_session",
|
|
2364
|
+
type: "apiKey"
|
|
2365
|
+
}],
|
|
2366
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}",
|
|
2367
|
+
...options
|
|
2368
|
+
});
|
|
2369
|
+
var archiveAgent = (options) => (options.client ?? client).post({
|
|
2370
|
+
responseValidator: async (data) => await validateResponse(zArchiveAgentResponse, data),
|
|
2371
|
+
security: [
|
|
2372
|
+
{
|
|
2373
|
+
key: "bearerAuth",
|
|
2374
|
+
scheme: "bearer",
|
|
2375
|
+
type: "http"
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
in: "cookie",
|
|
2379
|
+
name: "__Host-omnara_session",
|
|
2380
|
+
type: "apiKey"
|
|
2381
|
+
},
|
|
2382
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2383
|
+
],
|
|
2384
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/archive",
|
|
2385
|
+
...options
|
|
2386
|
+
});
|
|
2387
|
+
var updateAgentConfig = (options) => (options.client ?? client).post({
|
|
2388
|
+
responseValidator: async (data) => await validateResponse(zUpdateAgentConfigResponse2, data),
|
|
2389
|
+
security: [
|
|
2390
|
+
{
|
|
2391
|
+
key: "bearerAuth",
|
|
2392
|
+
scheme: "bearer",
|
|
2393
|
+
type: "http"
|
|
2394
|
+
},
|
|
2395
|
+
{
|
|
2396
|
+
in: "cookie",
|
|
2397
|
+
name: "__Host-omnara_session",
|
|
2398
|
+
type: "apiKey"
|
|
2399
|
+
},
|
|
2400
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2401
|
+
],
|
|
2402
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/config",
|
|
2403
|
+
...options,
|
|
2404
|
+
headers: {
|
|
2405
|
+
"Content-Type": "application/json",
|
|
2406
|
+
...options.headers
|
|
2407
|
+
}
|
|
2408
|
+
});
|
|
2409
|
+
var createAgentInput = (options) => (options.client ?? client).post({
|
|
2410
|
+
responseValidator: async (data) => await validateResponse(zCreateAgentInputResponse, data),
|
|
2411
|
+
security: [
|
|
2412
|
+
{
|
|
2413
|
+
key: "bearerAuth",
|
|
2414
|
+
scheme: "bearer",
|
|
2415
|
+
type: "http"
|
|
2416
|
+
},
|
|
2417
|
+
{
|
|
2418
|
+
in: "cookie",
|
|
2419
|
+
name: "__Host-omnara_session",
|
|
2420
|
+
type: "apiKey"
|
|
2421
|
+
},
|
|
2422
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2423
|
+
],
|
|
2424
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/inputs",
|
|
2425
|
+
...options,
|
|
2426
|
+
headers: {
|
|
2427
|
+
"Content-Type": "application/json",
|
|
2428
|
+
...options.headers
|
|
2429
|
+
}
|
|
2430
|
+
});
|
|
2431
|
+
var listToolCalls = (options) => (options.client ?? client).get({
|
|
2432
|
+
responseValidator: async (data) => await validateResponse(zListToolCallsResponse2, data),
|
|
2433
|
+
security: [{
|
|
2434
|
+
key: "bearerAuth",
|
|
2435
|
+
scheme: "bearer",
|
|
2436
|
+
type: "http"
|
|
2437
|
+
}, {
|
|
2438
|
+
in: "cookie",
|
|
2439
|
+
name: "__Host-omnara_session",
|
|
2440
|
+
type: "apiKey"
|
|
2441
|
+
}],
|
|
2442
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/tool-calls",
|
|
2443
|
+
...options
|
|
2444
|
+
});
|
|
2445
|
+
var submitToolCallResult = (options) => (options.client ?? client).post({
|
|
2446
|
+
responseValidator: async (data) => await validateResponse(zSubmitToolCallResultResponse2, data),
|
|
2447
|
+
security: [
|
|
2448
|
+
{
|
|
2449
|
+
key: "bearerAuth",
|
|
2450
|
+
scheme: "bearer",
|
|
2451
|
+
type: "http"
|
|
2452
|
+
},
|
|
2453
|
+
{
|
|
2454
|
+
in: "cookie",
|
|
2455
|
+
name: "__Host-omnara_session",
|
|
2456
|
+
type: "apiKey"
|
|
2457
|
+
},
|
|
2458
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2459
|
+
],
|
|
2460
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/tool-calls/{toolCallID}/result",
|
|
2461
|
+
...options,
|
|
2462
|
+
headers: {
|
|
2463
|
+
"Content-Type": "application/json",
|
|
2464
|
+
...options.headers
|
|
2465
|
+
}
|
|
2466
|
+
});
|
|
2467
|
+
var listTurns = (options) => (options.client ?? client).get({
|
|
2468
|
+
responseValidator: async (data) => await validateResponse(zListTurnsResponse, data),
|
|
2469
|
+
security: [{
|
|
2470
|
+
key: "bearerAuth",
|
|
2471
|
+
scheme: "bearer",
|
|
2472
|
+
type: "http"
|
|
2473
|
+
}, {
|
|
2474
|
+
in: "cookie",
|
|
2475
|
+
name: "__Host-omnara_session",
|
|
2476
|
+
type: "apiKey"
|
|
2477
|
+
}],
|
|
2478
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/turns",
|
|
2479
|
+
...options
|
|
2480
|
+
});
|
|
2481
|
+
var listTurnEvents = (options) => (options.client ?? client).get({
|
|
2482
|
+
responseValidator: async (data) => await validateResponse(zListTurnEventsResponse2, data),
|
|
2483
|
+
security: [{
|
|
2484
|
+
key: "bearerAuth",
|
|
2485
|
+
scheme: "bearer",
|
|
2486
|
+
type: "http"
|
|
2487
|
+
}, {
|
|
2488
|
+
in: "cookie",
|
|
2489
|
+
name: "__Host-omnara_session",
|
|
2490
|
+
type: "apiKey"
|
|
2491
|
+
}],
|
|
2492
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/turns/{turnID}/events",
|
|
2493
|
+
...options
|
|
2494
|
+
});
|
|
2495
|
+
var listEvents = (options) => (options.client ?? client).get({
|
|
2496
|
+
responseValidator: async (data) => await validateResponse(zListEventsResponse, data),
|
|
2497
|
+
security: [{
|
|
2498
|
+
key: "bearerAuth",
|
|
2499
|
+
scheme: "bearer",
|
|
2500
|
+
type: "http"
|
|
2501
|
+
}, {
|
|
2502
|
+
in: "cookie",
|
|
2503
|
+
name: "__Host-omnara_session",
|
|
2504
|
+
type: "apiKey"
|
|
2505
|
+
}],
|
|
2506
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/events",
|
|
2507
|
+
...options
|
|
2508
|
+
});
|
|
2509
|
+
var streamEvents = (options) => (options.client ?? client).sse.get({
|
|
2510
|
+
responseValidator: async (data) => await validateResponse(zStreamEventsResponse, data),
|
|
2511
|
+
security: [{
|
|
2512
|
+
key: "bearerAuth",
|
|
2513
|
+
scheme: "bearer",
|
|
2514
|
+
type: "http"
|
|
2515
|
+
}, {
|
|
2516
|
+
in: "cookie",
|
|
2517
|
+
name: "__Host-omnara_session",
|
|
2518
|
+
type: "apiKey"
|
|
2519
|
+
}],
|
|
2520
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/events/stream",
|
|
2521
|
+
...options
|
|
2522
|
+
});
|
|
2523
|
+
var cancelAgent = (options) => (options.client ?? client).post({
|
|
2524
|
+
responseValidator: async (data) => await validateResponse(zCancelAgentResponse2, data),
|
|
2525
|
+
security: [
|
|
2526
|
+
{
|
|
2527
|
+
key: "bearerAuth",
|
|
2528
|
+
scheme: "bearer",
|
|
2529
|
+
type: "http"
|
|
2530
|
+
},
|
|
2531
|
+
{
|
|
2532
|
+
in: "cookie",
|
|
2533
|
+
name: "__Host-omnara_session",
|
|
2534
|
+
type: "apiKey"
|
|
2535
|
+
},
|
|
2536
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2537
|
+
],
|
|
2538
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/cancel",
|
|
2539
|
+
...options,
|
|
2540
|
+
headers: {
|
|
2541
|
+
"Content-Type": "application/json",
|
|
2542
|
+
...options.headers
|
|
2543
|
+
}
|
|
2544
|
+
});
|
|
2545
|
+
var listAgentInteractions = (options) => (options.client ?? client).get({
|
|
2546
|
+
responseValidator: async (data) => await validateResponse(zListAgentInteractionsResponse2, data),
|
|
2547
|
+
security: [{
|
|
2548
|
+
key: "bearerAuth",
|
|
2549
|
+
scheme: "bearer",
|
|
2550
|
+
type: "http"
|
|
2551
|
+
}, {
|
|
2552
|
+
in: "cookie",
|
|
2553
|
+
name: "__Host-omnara_session",
|
|
2554
|
+
type: "apiKey"
|
|
2555
|
+
}],
|
|
2556
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/interactions",
|
|
2557
|
+
...options
|
|
2558
|
+
});
|
|
2559
|
+
var resolveAgentInteraction = (options) => (options.client ?? client).post({
|
|
2560
|
+
responseValidator: async (data) => await validateResponse(zResolveAgentInteractionResponse, data),
|
|
2561
|
+
security: [
|
|
2562
|
+
{
|
|
2563
|
+
key: "bearerAuth",
|
|
2564
|
+
scheme: "bearer",
|
|
2565
|
+
type: "http"
|
|
2566
|
+
},
|
|
2567
|
+
{
|
|
2568
|
+
in: "cookie",
|
|
2569
|
+
name: "__Host-omnara_session",
|
|
2570
|
+
type: "apiKey"
|
|
2571
|
+
},
|
|
2572
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2573
|
+
],
|
|
2574
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/interactions/{interactionID}/resolve",
|
|
2575
|
+
...options,
|
|
2576
|
+
headers: {
|
|
2577
|
+
"Content-Type": "application/json",
|
|
2578
|
+
...options.headers
|
|
2579
|
+
}
|
|
2580
|
+
});
|
|
2581
|
+
var listQueuedBacklogInputs = (options) => (options.client ?? client).get({
|
|
2582
|
+
responseValidator: async (data) => await validateResponse(zListQueuedBacklogInputsResponse, data),
|
|
2583
|
+
security: [{
|
|
2584
|
+
key: "bearerAuth",
|
|
2585
|
+
scheme: "bearer",
|
|
2586
|
+
type: "http"
|
|
2587
|
+
}, {
|
|
2588
|
+
in: "cookie",
|
|
2589
|
+
name: "__Host-omnara_session",
|
|
2590
|
+
type: "apiKey"
|
|
2591
|
+
}],
|
|
2592
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/inputs/backlog",
|
|
2593
|
+
...options
|
|
2594
|
+
});
|
|
2595
|
+
var cancelQueuedBacklogInput = (options) => (options.client ?? client).post({
|
|
2596
|
+
responseValidator: async (data) => await validateResponse(zCancelQueuedBacklogInputResponse, data),
|
|
2597
|
+
security: [
|
|
2598
|
+
{
|
|
2599
|
+
key: "bearerAuth",
|
|
2600
|
+
scheme: "bearer",
|
|
2601
|
+
type: "http"
|
|
2602
|
+
},
|
|
2603
|
+
{
|
|
2604
|
+
in: "cookie",
|
|
2605
|
+
name: "__Host-omnara_session",
|
|
2606
|
+
type: "apiKey"
|
|
2607
|
+
},
|
|
2608
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2609
|
+
],
|
|
2610
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/inputs/{inputID}/cancel",
|
|
2611
|
+
...options
|
|
2612
|
+
});
|
|
2613
|
+
var moveQueuedBacklogInput = (options) => (options.client ?? client).post({
|
|
2614
|
+
responseValidator: async (data) => await validateResponse(zMoveQueuedBacklogInputResponse, data),
|
|
2615
|
+
security: [
|
|
2616
|
+
{
|
|
2617
|
+
key: "bearerAuth",
|
|
2618
|
+
scheme: "bearer",
|
|
2619
|
+
type: "http"
|
|
2620
|
+
},
|
|
2621
|
+
{
|
|
2622
|
+
in: "cookie",
|
|
2623
|
+
name: "__Host-omnara_session",
|
|
2624
|
+
type: "apiKey"
|
|
2625
|
+
},
|
|
2626
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2627
|
+
],
|
|
2628
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/inputs/{inputID}/move",
|
|
2629
|
+
...options,
|
|
2630
|
+
headers: {
|
|
2631
|
+
"Content-Type": "application/json",
|
|
2632
|
+
...options.headers
|
|
2633
|
+
}
|
|
2634
|
+
});
|
|
2635
|
+
var promoteQueuedInputToSteering = (options) => (options.client ?? client).post({
|
|
2636
|
+
responseValidator: async (data) => await validateResponse(zPromoteQueuedInputToSteeringResponse, data),
|
|
2637
|
+
security: [
|
|
2638
|
+
{
|
|
2639
|
+
key: "bearerAuth",
|
|
2640
|
+
scheme: "bearer",
|
|
2641
|
+
type: "http"
|
|
2642
|
+
},
|
|
2643
|
+
{
|
|
2644
|
+
in: "cookie",
|
|
2645
|
+
name: "__Host-omnara_session",
|
|
2646
|
+
type: "apiKey"
|
|
2647
|
+
},
|
|
2648
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2649
|
+
],
|
|
2650
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/inputs/{inputID}/promote_to_steering",
|
|
2651
|
+
...options,
|
|
2652
|
+
headers: {
|
|
2653
|
+
"Content-Type": "application/json",
|
|
2654
|
+
...options.headers
|
|
2655
|
+
}
|
|
2656
|
+
});
|
|
2657
|
+
var demoteSteeringInputToQueued = (options) => (options.client ?? client).post({
|
|
2658
|
+
responseValidator: async (data) => await validateResponse(zDemoteSteeringInputToQueuedResponse, data),
|
|
2659
|
+
security: [
|
|
2660
|
+
{
|
|
2661
|
+
key: "bearerAuth",
|
|
2662
|
+
scheme: "bearer",
|
|
2663
|
+
type: "http"
|
|
2664
|
+
},
|
|
2665
|
+
{
|
|
2666
|
+
in: "cookie",
|
|
2667
|
+
name: "__Host-omnara_session",
|
|
2668
|
+
type: "apiKey"
|
|
2669
|
+
},
|
|
2670
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2671
|
+
],
|
|
2672
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/inputs/{inputID}/demote_to_queued",
|
|
2673
|
+
...options
|
|
2674
|
+
});
|
|
2675
|
+
var getArtifact = (options) => (options.client ?? client).get({
|
|
2676
|
+
responseValidator: async (data) => await validateResponse(zGetArtifactResponse, data),
|
|
2677
|
+
security: [{
|
|
2678
|
+
key: "bearerAuth",
|
|
2679
|
+
scheme: "bearer",
|
|
2680
|
+
type: "http"
|
|
2681
|
+
}, {
|
|
2682
|
+
in: "cookie",
|
|
2683
|
+
name: "__Host-omnara_session",
|
|
2684
|
+
type: "apiKey"
|
|
2685
|
+
}],
|
|
2686
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/artifacts/{artifactID}",
|
|
2687
|
+
...options
|
|
2688
|
+
});
|
|
2689
|
+
var getArtifactContent = (options) => (options.client ?? client).get({
|
|
2690
|
+
responseValidator: async (data) => await validateResponse(zGetArtifactContentResponse, data),
|
|
2691
|
+
security: [{
|
|
2692
|
+
key: "bearerAuth",
|
|
2693
|
+
scheme: "bearer",
|
|
2694
|
+
type: "http"
|
|
2695
|
+
}, {
|
|
2696
|
+
in: "cookie",
|
|
2697
|
+
name: "__Host-omnara_session",
|
|
2698
|
+
type: "apiKey"
|
|
2699
|
+
}],
|
|
2700
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/artifacts/{artifactID}/content",
|
|
2701
|
+
...options
|
|
2702
|
+
});
|
|
2703
|
+
var listVisibleProjectMachines = (options) => (options.client ?? client).get({
|
|
2704
|
+
responseValidator: async (data) => await validateResponse(zListVisibleProjectMachinesResponse, data),
|
|
2705
|
+
security: [{
|
|
2706
|
+
key: "bearerAuth",
|
|
2707
|
+
scheme: "bearer",
|
|
2708
|
+
type: "http"
|
|
2709
|
+
}, {
|
|
2710
|
+
in: "cookie",
|
|
2711
|
+
name: "__Host-omnara_session",
|
|
2712
|
+
type: "apiKey"
|
|
2713
|
+
}],
|
|
2714
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/machines",
|
|
2715
|
+
...options
|
|
2716
|
+
});
|
|
2717
|
+
var listProjectMachineGrants = (options) => (options.client ?? client).get({
|
|
2718
|
+
responseValidator: async (data) => await validateResponse(zListProjectMachineGrantsResponse2, data),
|
|
2719
|
+
security: [{
|
|
2720
|
+
key: "bearerAuth",
|
|
2721
|
+
scheme: "bearer",
|
|
2722
|
+
type: "http"
|
|
2723
|
+
}, {
|
|
2724
|
+
in: "cookie",
|
|
2725
|
+
name: "__Host-omnara_session",
|
|
2726
|
+
type: "apiKey"
|
|
2727
|
+
}],
|
|
2728
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/machine-grants",
|
|
2729
|
+
...options
|
|
2730
|
+
});
|
|
2731
|
+
var createProjectMachineGrant = (options) => (options.client ?? client).post({
|
|
2732
|
+
responseValidator: async (data) => await validateResponse(zCreateProjectMachineGrantResponse2, data),
|
|
2733
|
+
security: [
|
|
2734
|
+
{
|
|
2735
|
+
key: "bearerAuth",
|
|
2736
|
+
scheme: "bearer",
|
|
2737
|
+
type: "http"
|
|
2738
|
+
},
|
|
2739
|
+
{
|
|
2740
|
+
in: "cookie",
|
|
2741
|
+
name: "__Host-omnara_session",
|
|
2742
|
+
type: "apiKey"
|
|
2743
|
+
},
|
|
2744
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2745
|
+
],
|
|
2746
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/machine-grants",
|
|
2747
|
+
...options,
|
|
2748
|
+
headers: {
|
|
2749
|
+
"Content-Type": "application/json",
|
|
2750
|
+
...options.headers
|
|
2751
|
+
}
|
|
2752
|
+
});
|
|
2753
|
+
var deleteProjectMachineGrant = (options) => (options.client ?? client).delete({
|
|
2754
|
+
responseValidator: async (data) => await validateResponse(zDeleteProjectMachineGrantResponse, data),
|
|
2755
|
+
security: [
|
|
2756
|
+
{
|
|
2757
|
+
key: "bearerAuth",
|
|
2758
|
+
scheme: "bearer",
|
|
2759
|
+
type: "http"
|
|
2760
|
+
},
|
|
2761
|
+
{
|
|
2762
|
+
in: "cookie",
|
|
2763
|
+
name: "__Host-omnara_session",
|
|
2764
|
+
type: "apiKey"
|
|
2765
|
+
},
|
|
2766
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2767
|
+
],
|
|
2768
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/machine-grants/{grantID}",
|
|
2769
|
+
...options
|
|
2770
|
+
});
|
|
2771
|
+
var listProjectAvailableSecrets = (options) => (options.client ?? client).get({
|
|
2772
|
+
responseValidator: async (data) => await validateResponse(zListProjectAvailableSecretsResponse, data),
|
|
2773
|
+
security: [{
|
|
2774
|
+
key: "bearerAuth",
|
|
2775
|
+
scheme: "bearer",
|
|
2776
|
+
type: "http"
|
|
2777
|
+
}, {
|
|
2778
|
+
in: "cookie",
|
|
2779
|
+
name: "__Host-omnara_session",
|
|
2780
|
+
type: "apiKey"
|
|
2781
|
+
}],
|
|
2782
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/secrets",
|
|
2783
|
+
...options
|
|
2784
|
+
});
|
|
2785
|
+
var getProjectAvailableSecret = (options) => (options.client ?? client).get({
|
|
2786
|
+
responseValidator: async (data) => await validateResponse(zGetProjectAvailableSecretResponse, data),
|
|
2787
|
+
security: [{
|
|
2788
|
+
key: "bearerAuth",
|
|
2789
|
+
scheme: "bearer",
|
|
2790
|
+
type: "http"
|
|
2791
|
+
}, {
|
|
2792
|
+
in: "cookie",
|
|
2793
|
+
name: "__Host-omnara_session",
|
|
2794
|
+
type: "apiKey"
|
|
2795
|
+
}],
|
|
2796
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/secrets/{secretID}",
|
|
2797
|
+
...options
|
|
2798
|
+
});
|
|
2799
|
+
var listActors = (options) => (options.client ?? client).get({
|
|
2800
|
+
responseValidator: async (data) => await validateResponse(zListActorsResponse2, data),
|
|
2801
|
+
security: [{
|
|
2802
|
+
key: "bearerAuth",
|
|
2803
|
+
scheme: "bearer",
|
|
2804
|
+
type: "http"
|
|
2805
|
+
}, {
|
|
2806
|
+
in: "cookie",
|
|
2807
|
+
name: "__Host-omnara_session",
|
|
2808
|
+
type: "apiKey"
|
|
2809
|
+
}],
|
|
2810
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/actors",
|
|
2811
|
+
...options
|
|
2812
|
+
});
|
|
2813
|
+
var putActor = (options) => (options.client ?? client).put({
|
|
2814
|
+
responseValidator: async (data) => await validateResponse(zPutActorResponse, data),
|
|
2815
|
+
security: [
|
|
2816
|
+
{
|
|
2817
|
+
key: "bearerAuth",
|
|
2818
|
+
scheme: "bearer",
|
|
2819
|
+
type: "http"
|
|
2820
|
+
},
|
|
2821
|
+
{
|
|
2822
|
+
in: "cookie",
|
|
2823
|
+
name: "__Host-omnara_session",
|
|
2824
|
+
type: "apiKey"
|
|
2825
|
+
},
|
|
2826
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2827
|
+
],
|
|
2828
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/actors",
|
|
2829
|
+
...options,
|
|
2830
|
+
headers: {
|
|
2831
|
+
"Content-Type": "application/json",
|
|
2832
|
+
...options.headers
|
|
2833
|
+
}
|
|
2834
|
+
});
|
|
2835
|
+
var getActor = (options) => (options.client ?? client).get({
|
|
2836
|
+
responseValidator: async (data) => await validateResponse(zGetActorResponse, data),
|
|
2837
|
+
security: [{
|
|
2838
|
+
key: "bearerAuth",
|
|
2839
|
+
scheme: "bearer",
|
|
2840
|
+
type: "http"
|
|
2841
|
+
}, {
|
|
2842
|
+
in: "cookie",
|
|
2843
|
+
name: "__Host-omnara_session",
|
|
2844
|
+
type: "apiKey"
|
|
2845
|
+
}],
|
|
2846
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/actors/{actorID}",
|
|
2847
|
+
...options
|
|
2848
|
+
});
|
|
2849
|
+
var listVisibleMachines = (options) => (options.client ?? client).get({
|
|
2850
|
+
responseValidator: async (data) => await validateResponse(zListVisibleMachinesResponse2, data),
|
|
2851
|
+
security: [{
|
|
2852
|
+
key: "bearerAuth",
|
|
2853
|
+
scheme: "bearer",
|
|
2854
|
+
type: "http"
|
|
2855
|
+
}, {
|
|
2856
|
+
in: "cookie",
|
|
2857
|
+
name: "__Host-omnara_session",
|
|
2858
|
+
type: "apiKey"
|
|
2859
|
+
}],
|
|
2860
|
+
url: "/api/v1/orgs/{orgID}/machines",
|
|
2861
|
+
...options
|
|
2862
|
+
});
|
|
2863
|
+
var createMachine = (options) => (options.client ?? client).post({
|
|
2864
|
+
responseValidator: async (data) => await validateResponse(zCreateMachineResponse, data),
|
|
2865
|
+
security: [
|
|
2866
|
+
{
|
|
2867
|
+
key: "bearerAuth",
|
|
2868
|
+
scheme: "bearer",
|
|
2869
|
+
type: "http"
|
|
2870
|
+
},
|
|
2871
|
+
{
|
|
2872
|
+
in: "cookie",
|
|
2873
|
+
name: "__Host-omnara_session",
|
|
2874
|
+
type: "apiKey"
|
|
2875
|
+
},
|
|
2876
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2877
|
+
],
|
|
2878
|
+
url: "/api/v1/orgs/{orgID}/machines",
|
|
2879
|
+
...options,
|
|
2880
|
+
headers: {
|
|
2881
|
+
"Content-Type": "application/json",
|
|
2882
|
+
...options.headers
|
|
2883
|
+
}
|
|
2884
|
+
});
|
|
2885
|
+
var connectByoMachine = (options) => (options.client ?? client).post({
|
|
2886
|
+
responseValidator: async (data) => await validateResponse(zConnectByoMachineResponse2, data),
|
|
2887
|
+
security: [{
|
|
2888
|
+
in: "cookie",
|
|
2889
|
+
name: "__Host-omnara_session",
|
|
2890
|
+
type: "apiKey"
|
|
2891
|
+
}, { name: "X-Omnara-Csrf", type: "apiKey" }],
|
|
2892
|
+
url: "/api/v1/orgs/{orgID}/machines/connect",
|
|
2893
|
+
...options,
|
|
2894
|
+
headers: {
|
|
2895
|
+
"Content-Type": "application/json",
|
|
2896
|
+
...options.headers
|
|
2897
|
+
}
|
|
2898
|
+
});
|
|
2899
|
+
var deleteMachine = (options) => (options.client ?? client).delete({
|
|
2900
|
+
responseValidator: async (data) => await validateResponse(zDeleteMachineResponse, data),
|
|
2901
|
+
security: [
|
|
2902
|
+
{
|
|
2903
|
+
key: "bearerAuth",
|
|
2904
|
+
scheme: "bearer",
|
|
2905
|
+
type: "http"
|
|
2906
|
+
},
|
|
2907
|
+
{
|
|
2908
|
+
in: "cookie",
|
|
2909
|
+
name: "__Host-omnara_session",
|
|
2910
|
+
type: "apiKey"
|
|
2911
|
+
},
|
|
2912
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2913
|
+
],
|
|
2914
|
+
url: "/api/v1/orgs/{orgID}/machines/{machineID}",
|
|
2915
|
+
...options
|
|
2916
|
+
});
|
|
2917
|
+
var getMachine = (options) => (options.client ?? client).get({
|
|
2918
|
+
responseValidator: async (data) => await validateResponse(zGetMachineResponse, data),
|
|
2919
|
+
security: [{
|
|
2920
|
+
key: "bearerAuth",
|
|
2921
|
+
scheme: "bearer",
|
|
2922
|
+
type: "http"
|
|
2923
|
+
}, {
|
|
2924
|
+
in: "cookie",
|
|
2925
|
+
name: "__Host-omnara_session",
|
|
2926
|
+
type: "apiKey"
|
|
2927
|
+
}],
|
|
2928
|
+
url: "/api/v1/orgs/{orgID}/machines/{machineID}",
|
|
2929
|
+
...options
|
|
2930
|
+
});
|
|
2931
|
+
var updateMachine = (options) => (options.client ?? client).patch({
|
|
2932
|
+
responseValidator: async (data) => await validateResponse(zUpdateMachineResponse, data),
|
|
2933
|
+
security: [
|
|
2934
|
+
{
|
|
2935
|
+
key: "bearerAuth",
|
|
2936
|
+
scheme: "bearer",
|
|
2937
|
+
type: "http"
|
|
2938
|
+
},
|
|
2939
|
+
{
|
|
2940
|
+
in: "cookie",
|
|
2941
|
+
name: "__Host-omnara_session",
|
|
2942
|
+
type: "apiKey"
|
|
2943
|
+
},
|
|
2944
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2945
|
+
],
|
|
2946
|
+
url: "/api/v1/orgs/{orgID}/machines/{machineID}",
|
|
2947
|
+
...options,
|
|
2948
|
+
headers: {
|
|
2949
|
+
"Content-Type": "application/json",
|
|
2950
|
+
...options.headers
|
|
2951
|
+
}
|
|
2952
|
+
});
|
|
2953
|
+
var listModelProviderConfigs = (options) => (options.client ?? client).get({
|
|
2954
|
+
responseValidator: async (data) => await validateResponse(zListModelProviderConfigsResponse, data),
|
|
2955
|
+
security: [{
|
|
2956
|
+
key: "bearerAuth",
|
|
2957
|
+
scheme: "bearer",
|
|
2958
|
+
type: "http"
|
|
2959
|
+
}, {
|
|
2960
|
+
in: "cookie",
|
|
2961
|
+
name: "__Host-omnara_session",
|
|
2962
|
+
type: "apiKey"
|
|
2963
|
+
}],
|
|
2964
|
+
url: "/api/v1/orgs/{orgID}/model-provider-configs",
|
|
2965
|
+
...options
|
|
2966
|
+
});
|
|
2967
|
+
var createModelProviderConfig = (options) => (options.client ?? client).post({
|
|
2968
|
+
responseValidator: async (data) => await validateResponse(zCreateModelProviderConfigResponse2, data),
|
|
2969
|
+
security: [
|
|
2970
|
+
{
|
|
2971
|
+
key: "bearerAuth",
|
|
2972
|
+
scheme: "bearer",
|
|
2973
|
+
type: "http"
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
in: "cookie",
|
|
2977
|
+
name: "__Host-omnara_session",
|
|
2978
|
+
type: "apiKey"
|
|
2979
|
+
},
|
|
2980
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
2981
|
+
],
|
|
2982
|
+
url: "/api/v1/orgs/{orgID}/model-provider-configs",
|
|
2983
|
+
...options,
|
|
2984
|
+
headers: {
|
|
2985
|
+
"Content-Type": "application/json",
|
|
2986
|
+
...options.headers
|
|
2987
|
+
}
|
|
2988
|
+
});
|
|
2989
|
+
var deleteModelProviderConfig = (options) => (options.client ?? client).delete({
|
|
2990
|
+
responseValidator: async (data) => await validateResponse(zDeleteModelProviderConfigResponse, data),
|
|
2991
|
+
security: [
|
|
2992
|
+
{
|
|
2993
|
+
key: "bearerAuth",
|
|
2994
|
+
scheme: "bearer",
|
|
2995
|
+
type: "http"
|
|
2996
|
+
},
|
|
2997
|
+
{
|
|
2998
|
+
in: "cookie",
|
|
2999
|
+
name: "__Host-omnara_session",
|
|
3000
|
+
type: "apiKey"
|
|
3001
|
+
},
|
|
3002
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3003
|
+
],
|
|
3004
|
+
url: "/api/v1/orgs/{orgID}/model-provider-configs/{modelProviderConfigID}",
|
|
3005
|
+
...options
|
|
3006
|
+
});
|
|
3007
|
+
var getModelProviderConfig = (options) => (options.client ?? client).get({
|
|
3008
|
+
responseValidator: async (data) => await validateResponse(zGetModelProviderConfigResponse, data),
|
|
3009
|
+
security: [{
|
|
3010
|
+
key: "bearerAuth",
|
|
3011
|
+
scheme: "bearer",
|
|
3012
|
+
type: "http"
|
|
3013
|
+
}, {
|
|
3014
|
+
in: "cookie",
|
|
3015
|
+
name: "__Host-omnara_session",
|
|
3016
|
+
type: "apiKey"
|
|
3017
|
+
}],
|
|
3018
|
+
url: "/api/v1/orgs/{orgID}/model-provider-configs/{modelProviderConfigID}",
|
|
3019
|
+
...options
|
|
3020
|
+
});
|
|
3021
|
+
var updateModelProviderConfig = (options) => (options.client ?? client).put({
|
|
3022
|
+
responseValidator: async (data) => await validateResponse(zUpdateModelProviderConfigResponse, data),
|
|
3023
|
+
security: [
|
|
3024
|
+
{
|
|
3025
|
+
key: "bearerAuth",
|
|
3026
|
+
scheme: "bearer",
|
|
3027
|
+
type: "http"
|
|
3028
|
+
},
|
|
3029
|
+
{
|
|
3030
|
+
in: "cookie",
|
|
3031
|
+
name: "__Host-omnara_session",
|
|
3032
|
+
type: "apiKey"
|
|
3033
|
+
},
|
|
3034
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3035
|
+
],
|
|
3036
|
+
url: "/api/v1/orgs/{orgID}/model-provider-configs/{modelProviderConfigID}",
|
|
3037
|
+
...options,
|
|
3038
|
+
headers: {
|
|
3039
|
+
"Content-Type": "application/json",
|
|
3040
|
+
...options.headers
|
|
3041
|
+
}
|
|
3042
|
+
});
|
|
3043
|
+
var getModelCatalog = (options) => (options.client ?? client).get({
|
|
3044
|
+
responseValidator: async (data) => await validateResponse(zGetModelCatalogResponse, data),
|
|
3045
|
+
security: [{
|
|
3046
|
+
key: "bearerAuth",
|
|
3047
|
+
scheme: "bearer",
|
|
3048
|
+
type: "http"
|
|
3049
|
+
}, {
|
|
3050
|
+
in: "cookie",
|
|
3051
|
+
name: "__Host-omnara_session",
|
|
3052
|
+
type: "apiKey"
|
|
3053
|
+
}],
|
|
3054
|
+
url: "/api/v1/orgs/{orgID}/model-provider-configs/{modelProviderConfigID}/model-catalog",
|
|
3055
|
+
...options
|
|
3056
|
+
});
|
|
3057
|
+
var listConfiguredModels = (options) => (options.client ?? client).get({
|
|
3058
|
+
responseValidator: async (data) => await validateResponse(zListConfiguredModelsResponse, data),
|
|
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: "/api/v1/orgs/{orgID}/model-provider-configs/{modelProviderConfigID}/models",
|
|
3069
|
+
...options
|
|
3070
|
+
});
|
|
3071
|
+
var createConfiguredModel = (options) => (options.client ?? client).post({
|
|
3072
|
+
responseValidator: async (data) => await validateResponse(zCreateConfiguredModelResponse, data),
|
|
3073
|
+
security: [
|
|
3074
|
+
{
|
|
3075
|
+
key: "bearerAuth",
|
|
3076
|
+
scheme: "bearer",
|
|
3077
|
+
type: "http"
|
|
3078
|
+
},
|
|
3079
|
+
{
|
|
3080
|
+
in: "cookie",
|
|
3081
|
+
name: "__Host-omnara_session",
|
|
3082
|
+
type: "apiKey"
|
|
3083
|
+
},
|
|
3084
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3085
|
+
],
|
|
3086
|
+
url: "/api/v1/orgs/{orgID}/model-provider-configs/{modelProviderConfigID}/models",
|
|
3087
|
+
...options,
|
|
3088
|
+
headers: {
|
|
3089
|
+
"Content-Type": "application/json",
|
|
3090
|
+
...options.headers
|
|
3091
|
+
}
|
|
3092
|
+
});
|
|
3093
|
+
var deleteConfiguredModel = (options) => (options.client ?? client).delete({
|
|
3094
|
+
responseValidator: async (data) => await validateResponse(zDeleteConfiguredModelResponse, data),
|
|
3095
|
+
security: [
|
|
3096
|
+
{
|
|
3097
|
+
key: "bearerAuth",
|
|
3098
|
+
scheme: "bearer",
|
|
3099
|
+
type: "http"
|
|
3100
|
+
},
|
|
3101
|
+
{
|
|
3102
|
+
in: "cookie",
|
|
3103
|
+
name: "__Host-omnara_session",
|
|
3104
|
+
type: "apiKey"
|
|
3105
|
+
},
|
|
3106
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3107
|
+
],
|
|
3108
|
+
url: "/api/v1/orgs/{orgID}/model-provider-configs/{modelProviderConfigID}/models/{configuredModelID}",
|
|
3109
|
+
...options
|
|
3110
|
+
});
|
|
3111
|
+
var updateConfiguredModel = (options) => (options.client ?? client).put({
|
|
3112
|
+
responseValidator: async (data) => await validateResponse(zUpdateConfiguredModelResponse, data),
|
|
3113
|
+
security: [
|
|
3114
|
+
{
|
|
3115
|
+
key: "bearerAuth",
|
|
3116
|
+
scheme: "bearer",
|
|
3117
|
+
type: "http"
|
|
3118
|
+
},
|
|
3119
|
+
{
|
|
3120
|
+
in: "cookie",
|
|
3121
|
+
name: "__Host-omnara_session",
|
|
3122
|
+
type: "apiKey"
|
|
3123
|
+
},
|
|
3124
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3125
|
+
],
|
|
3126
|
+
url: "/api/v1/orgs/{orgID}/model-provider-configs/{modelProviderConfigID}/models/{configuredModelID}",
|
|
3127
|
+
...options,
|
|
3128
|
+
headers: {
|
|
3129
|
+
"Content-Type": "application/json",
|
|
3130
|
+
...options.headers
|
|
3131
|
+
}
|
|
3132
|
+
});
|
|
3133
|
+
var listProjectModelGrants = (options) => (options.client ?? client).get({
|
|
3134
|
+
responseValidator: async (data) => await validateResponse(zListProjectModelGrantsResponse2, data),
|
|
3135
|
+
security: [{
|
|
3136
|
+
key: "bearerAuth",
|
|
3137
|
+
scheme: "bearer",
|
|
3138
|
+
type: "http"
|
|
3139
|
+
}, {
|
|
3140
|
+
in: "cookie",
|
|
3141
|
+
name: "__Host-omnara_session",
|
|
3142
|
+
type: "apiKey"
|
|
3143
|
+
}],
|
|
3144
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/model-grants",
|
|
3145
|
+
...options
|
|
3146
|
+
});
|
|
3147
|
+
var createProjectModelGrant = (options) => (options.client ?? client).post({
|
|
3148
|
+
responseValidator: async (data) => await validateResponse(zCreateProjectModelGrantResponse, data),
|
|
3149
|
+
security: [
|
|
3150
|
+
{
|
|
3151
|
+
key: "bearerAuth",
|
|
3152
|
+
scheme: "bearer",
|
|
3153
|
+
type: "http"
|
|
3154
|
+
},
|
|
3155
|
+
{
|
|
3156
|
+
in: "cookie",
|
|
3157
|
+
name: "__Host-omnara_session",
|
|
3158
|
+
type: "apiKey"
|
|
3159
|
+
},
|
|
3160
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3161
|
+
],
|
|
3162
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/model-grants",
|
|
3163
|
+
...options,
|
|
3164
|
+
headers: {
|
|
3165
|
+
"Content-Type": "application/json",
|
|
3166
|
+
...options.headers
|
|
3167
|
+
}
|
|
3168
|
+
});
|
|
3169
|
+
var deleteProjectModelGrant = (options) => (options.client ?? client).delete({
|
|
3170
|
+
responseValidator: async (data) => await validateResponse(zDeleteProjectModelGrantResponse, data),
|
|
3171
|
+
security: [
|
|
3172
|
+
{
|
|
3173
|
+
key: "bearerAuth",
|
|
3174
|
+
scheme: "bearer",
|
|
3175
|
+
type: "http"
|
|
3176
|
+
},
|
|
3177
|
+
{
|
|
3178
|
+
in: "cookie",
|
|
3179
|
+
name: "__Host-omnara_session",
|
|
3180
|
+
type: "apiKey"
|
|
3181
|
+
},
|
|
3182
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3183
|
+
],
|
|
3184
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/model-grants/{modelGrantID}",
|
|
3185
|
+
...options
|
|
3186
|
+
});
|
|
3187
|
+
var updateProjectModelGrant = (options) => (options.client ?? client).patch({
|
|
3188
|
+
responseValidator: async (data) => await validateResponse(zUpdateProjectModelGrantResponse, data),
|
|
3189
|
+
security: [
|
|
3190
|
+
{
|
|
3191
|
+
key: "bearerAuth",
|
|
3192
|
+
scheme: "bearer",
|
|
3193
|
+
type: "http"
|
|
3194
|
+
},
|
|
3195
|
+
{
|
|
3196
|
+
in: "cookie",
|
|
3197
|
+
name: "__Host-omnara_session",
|
|
3198
|
+
type: "apiKey"
|
|
3199
|
+
},
|
|
3200
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3201
|
+
],
|
|
3202
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/model-grants/{modelGrantID}",
|
|
3203
|
+
...options,
|
|
3204
|
+
headers: {
|
|
3205
|
+
"Content-Type": "application/json",
|
|
3206
|
+
...options.headers
|
|
3207
|
+
}
|
|
3208
|
+
});
|
|
3209
|
+
var listMachinePools = (options) => (options.client ?? client).get({
|
|
3210
|
+
responseValidator: async (data) => await validateResponse(zListMachinePoolsResponse2, data),
|
|
3211
|
+
security: [{
|
|
3212
|
+
key: "bearerAuth",
|
|
3213
|
+
scheme: "bearer",
|
|
3214
|
+
type: "http"
|
|
3215
|
+
}, {
|
|
3216
|
+
in: "cookie",
|
|
3217
|
+
name: "__Host-omnara_session",
|
|
3218
|
+
type: "apiKey"
|
|
3219
|
+
}],
|
|
3220
|
+
url: "/api/v1/orgs/{orgID}/machine-pools",
|
|
3221
|
+
...options
|
|
3222
|
+
});
|
|
3223
|
+
var createMachinePool = (options) => (options.client ?? client).post({
|
|
3224
|
+
responseValidator: async (data) => await validateResponse(zCreateMachinePoolResponse, data),
|
|
3225
|
+
security: [
|
|
3226
|
+
{
|
|
3227
|
+
key: "bearerAuth",
|
|
3228
|
+
scheme: "bearer",
|
|
3229
|
+
type: "http"
|
|
3230
|
+
},
|
|
3231
|
+
{
|
|
3232
|
+
in: "cookie",
|
|
3233
|
+
name: "__Host-omnara_session",
|
|
3234
|
+
type: "apiKey"
|
|
3235
|
+
},
|
|
3236
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3237
|
+
],
|
|
3238
|
+
url: "/api/v1/orgs/{orgID}/machine-pools",
|
|
3239
|
+
...options,
|
|
3240
|
+
headers: {
|
|
3241
|
+
"Content-Type": "application/json",
|
|
3242
|
+
...options.headers
|
|
3243
|
+
}
|
|
3244
|
+
});
|
|
3245
|
+
var deleteMachinePool = (options) => (options.client ?? client).delete({
|
|
3246
|
+
responseValidator: async (data) => await validateResponse(zDeleteMachinePoolResponse, data),
|
|
3247
|
+
security: [
|
|
3248
|
+
{
|
|
3249
|
+
key: "bearerAuth",
|
|
3250
|
+
scheme: "bearer",
|
|
3251
|
+
type: "http"
|
|
3252
|
+
},
|
|
3253
|
+
{
|
|
3254
|
+
in: "cookie",
|
|
3255
|
+
name: "__Host-omnara_session",
|
|
3256
|
+
type: "apiKey"
|
|
3257
|
+
},
|
|
3258
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3259
|
+
],
|
|
3260
|
+
url: "/api/v1/orgs/{orgID}/machine-pools/{poolID}",
|
|
3261
|
+
...options
|
|
3262
|
+
});
|
|
3263
|
+
var getMachinePool = (options) => (options.client ?? client).get({
|
|
3264
|
+
responseValidator: async (data) => await validateResponse(zGetMachinePoolResponse, data),
|
|
3265
|
+
security: [{
|
|
3266
|
+
key: "bearerAuth",
|
|
3267
|
+
scheme: "bearer",
|
|
3268
|
+
type: "http"
|
|
3269
|
+
}, {
|
|
3270
|
+
in: "cookie",
|
|
3271
|
+
name: "__Host-omnara_session",
|
|
3272
|
+
type: "apiKey"
|
|
3273
|
+
}],
|
|
3274
|
+
url: "/api/v1/orgs/{orgID}/machine-pools/{poolID}",
|
|
3275
|
+
...options
|
|
3276
|
+
});
|
|
3277
|
+
var updateMachinePool = (options) => (options.client ?? client).put({
|
|
3278
|
+
responseValidator: async (data) => await validateResponse(zUpdateMachinePoolResponse, data),
|
|
3279
|
+
security: [
|
|
3280
|
+
{
|
|
3281
|
+
key: "bearerAuth",
|
|
3282
|
+
scheme: "bearer",
|
|
3283
|
+
type: "http"
|
|
3284
|
+
},
|
|
3285
|
+
{
|
|
3286
|
+
in: "cookie",
|
|
3287
|
+
name: "__Host-omnara_session",
|
|
3288
|
+
type: "apiKey"
|
|
3289
|
+
},
|
|
3290
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3291
|
+
],
|
|
3292
|
+
url: "/api/v1/orgs/{orgID}/machine-pools/{poolID}",
|
|
3293
|
+
...options,
|
|
3294
|
+
headers: {
|
|
3295
|
+
"Content-Type": "application/json",
|
|
3296
|
+
...options.headers
|
|
3297
|
+
}
|
|
3298
|
+
});
|
|
3299
|
+
var listProjectMachinePoolGrants = (options) => (options.client ?? client).get({
|
|
3300
|
+
responseValidator: async (data) => await validateResponse(zListProjectMachinePoolGrantsResponse2, data),
|
|
3301
|
+
security: [{
|
|
3302
|
+
key: "bearerAuth",
|
|
3303
|
+
scheme: "bearer",
|
|
3304
|
+
type: "http"
|
|
3305
|
+
}, {
|
|
3306
|
+
in: "cookie",
|
|
3307
|
+
name: "__Host-omnara_session",
|
|
3308
|
+
type: "apiKey"
|
|
3309
|
+
}],
|
|
3310
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/machine-pool-grants",
|
|
3311
|
+
...options
|
|
3312
|
+
});
|
|
3313
|
+
var createProjectMachinePoolGrant = (options) => (options.client ?? client).post({
|
|
3314
|
+
responseValidator: async (data) => await validateResponse(zCreateProjectMachinePoolGrantResponse, data),
|
|
3315
|
+
security: [
|
|
3316
|
+
{
|
|
3317
|
+
key: "bearerAuth",
|
|
3318
|
+
scheme: "bearer",
|
|
3319
|
+
type: "http"
|
|
3320
|
+
},
|
|
3321
|
+
{
|
|
3322
|
+
in: "cookie",
|
|
3323
|
+
name: "__Host-omnara_session",
|
|
3324
|
+
type: "apiKey"
|
|
3325
|
+
},
|
|
3326
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3327
|
+
],
|
|
3328
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/machine-pool-grants",
|
|
3329
|
+
...options,
|
|
3330
|
+
headers: {
|
|
3331
|
+
"Content-Type": "application/json",
|
|
3332
|
+
...options.headers
|
|
3333
|
+
}
|
|
3334
|
+
});
|
|
3335
|
+
var deleteProjectMachinePoolGrant = (options) => (options.client ?? client).delete({
|
|
3336
|
+
responseValidator: async (data) => await validateResponse(zDeleteProjectMachinePoolGrantResponse, data),
|
|
3337
|
+
security: [
|
|
3338
|
+
{
|
|
3339
|
+
key: "bearerAuth",
|
|
3340
|
+
scheme: "bearer",
|
|
3341
|
+
type: "http"
|
|
3342
|
+
},
|
|
3343
|
+
{
|
|
3344
|
+
in: "cookie",
|
|
3345
|
+
name: "__Host-omnara_session",
|
|
3346
|
+
type: "apiKey"
|
|
3347
|
+
},
|
|
3348
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3349
|
+
],
|
|
3350
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/machine-pool-grants/{poolGrantID}",
|
|
3351
|
+
...options
|
|
3352
|
+
});
|
|
3353
|
+
var getProjectMachinePoolGrant = (options) => (options.client ?? client).get({
|
|
3354
|
+
responseValidator: async (data) => await validateResponse(zGetProjectMachinePoolGrantResponse, data),
|
|
3355
|
+
security: [{
|
|
3356
|
+
key: "bearerAuth",
|
|
3357
|
+
scheme: "bearer",
|
|
3358
|
+
type: "http"
|
|
3359
|
+
}, {
|
|
3360
|
+
in: "cookie",
|
|
3361
|
+
name: "__Host-omnara_session",
|
|
3362
|
+
type: "apiKey"
|
|
3363
|
+
}],
|
|
3364
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/machine-pool-grants/{poolGrantID}",
|
|
3365
|
+
...options
|
|
3366
|
+
});
|
|
3367
|
+
var updateProjectMachinePoolGrant = (options) => (options.client ?? client).patch({
|
|
3368
|
+
responseValidator: async (data) => await validateResponse(zUpdateProjectMachinePoolGrantResponse, data),
|
|
3369
|
+
security: [
|
|
3370
|
+
{
|
|
3371
|
+
key: "bearerAuth",
|
|
3372
|
+
scheme: "bearer",
|
|
3373
|
+
type: "http"
|
|
3374
|
+
},
|
|
3375
|
+
{
|
|
3376
|
+
in: "cookie",
|
|
3377
|
+
name: "__Host-omnara_session",
|
|
3378
|
+
type: "apiKey"
|
|
3379
|
+
},
|
|
3380
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3381
|
+
],
|
|
3382
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/machine-pool-grants/{poolGrantID}",
|
|
3383
|
+
...options,
|
|
3384
|
+
headers: {
|
|
3385
|
+
"Content-Type": "application/json",
|
|
3386
|
+
...options.headers
|
|
3387
|
+
}
|
|
3388
|
+
});
|
|
3389
|
+
var listByoMachineDaemonTokens = (options) => (options.client ?? client).get({
|
|
3390
|
+
responseValidator: async (data) => await validateResponse(zListByoMachineDaemonTokensResponse, data),
|
|
3391
|
+
security: [{
|
|
3392
|
+
key: "bearerAuth",
|
|
3393
|
+
scheme: "bearer",
|
|
3394
|
+
type: "http"
|
|
3395
|
+
}, {
|
|
3396
|
+
in: "cookie",
|
|
3397
|
+
name: "__Host-omnara_session",
|
|
3398
|
+
type: "apiKey"
|
|
3399
|
+
}],
|
|
3400
|
+
url: "/api/v1/orgs/{orgID}/machines/{machineID}/daemon-tokens",
|
|
3401
|
+
...options
|
|
3402
|
+
});
|
|
3403
|
+
var createByoMachineDaemonToken = (options) => (options.client ?? client).post({
|
|
3404
|
+
responseValidator: async (data) => await validateResponse(zCreateByoMachineDaemonTokenResponse, data),
|
|
3405
|
+
security: [
|
|
3406
|
+
{
|
|
3407
|
+
key: "bearerAuth",
|
|
3408
|
+
scheme: "bearer",
|
|
3409
|
+
type: "http"
|
|
3410
|
+
},
|
|
3411
|
+
{
|
|
3412
|
+
in: "cookie",
|
|
3413
|
+
name: "__Host-omnara_session",
|
|
3414
|
+
type: "apiKey"
|
|
3415
|
+
},
|
|
3416
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3417
|
+
],
|
|
3418
|
+
url: "/api/v1/orgs/{orgID}/machines/{machineID}/daemon-tokens",
|
|
3419
|
+
...options,
|
|
3420
|
+
headers: {
|
|
3421
|
+
"Content-Type": "application/json",
|
|
3422
|
+
...options.headers
|
|
3423
|
+
}
|
|
3424
|
+
});
|
|
3425
|
+
var revokeMachineDaemonToken = (options) => (options.client ?? client).post({
|
|
3426
|
+
responseValidator: async (data) => await validateResponse(zRevokeMachineDaemonTokenResponse, data),
|
|
3427
|
+
security: [
|
|
3428
|
+
{
|
|
3429
|
+
key: "bearerAuth",
|
|
3430
|
+
scheme: "bearer",
|
|
3431
|
+
type: "http"
|
|
3432
|
+
},
|
|
3433
|
+
{
|
|
3434
|
+
in: "cookie",
|
|
3435
|
+
name: "__Host-omnara_session",
|
|
3436
|
+
type: "apiKey"
|
|
3437
|
+
},
|
|
3438
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
3439
|
+
],
|
|
3440
|
+
url: "/api/v1/orgs/{orgID}/machines/{machineID}/daemon-tokens/{tokenID}/revoke",
|
|
3441
|
+
...options
|
|
3442
|
+
});
|
|
3443
|
+
var registerMachineDaemonRuntime = (options) => (options.client ?? client).post({
|
|
3444
|
+
responseValidator: async (data) => await validateResponse(zRegisterMachineDaemonRuntimeResponse, data),
|
|
3445
|
+
security: [{
|
|
3446
|
+
key: "machineDaemonAuth",
|
|
3447
|
+
scheme: "bearer",
|
|
3448
|
+
type: "http"
|
|
3449
|
+
}],
|
|
3450
|
+
url: "/api/v1/daemon/runtimes",
|
|
3451
|
+
...options,
|
|
3452
|
+
headers: {
|
|
3453
|
+
"Content-Type": "application/json",
|
|
3454
|
+
...options.headers
|
|
3455
|
+
}
|
|
3456
|
+
});
|
|
3457
|
+
var socketMachineDaemonRuntime = (options) => (options.client ?? client).get({
|
|
3458
|
+
security: [{
|
|
3459
|
+
key: "machineDaemonAuth",
|
|
3460
|
+
scheme: "bearer",
|
|
3461
|
+
type: "http"
|
|
3462
|
+
}],
|
|
3463
|
+
url: "/api/v1/daemon/runtimes/{runtimeID}/socket",
|
|
3464
|
+
...options
|
|
3465
|
+
});
|
|
3466
|
+
var endMachineDaemonRuntime = (options) => (options.client ?? client).post({
|
|
3467
|
+
responseValidator: async (data) => await validateResponse(zEndMachineDaemonRuntimeResponse, data),
|
|
3468
|
+
security: [{
|
|
3469
|
+
key: "machineDaemonAuth",
|
|
3470
|
+
scheme: "bearer",
|
|
3471
|
+
type: "http"
|
|
3472
|
+
}],
|
|
3473
|
+
url: "/api/v1/daemon/runtimes/{runtimeID}/end",
|
|
3474
|
+
...options
|
|
3475
|
+
});
|
|
3476
|
+
var sleepMachineDaemonRuntime = (options) => (options.client ?? client).post({
|
|
3477
|
+
responseValidator: async (data) => await validateResponse(zSleepMachineDaemonRuntimeResponse, data),
|
|
3478
|
+
security: [{
|
|
3479
|
+
key: "machineDaemonAuth",
|
|
3480
|
+
scheme: "bearer",
|
|
3481
|
+
type: "http"
|
|
3482
|
+
}],
|
|
3483
|
+
url: "/api/v1/daemon/runtimes/{runtimeID}/sleep",
|
|
3484
|
+
...options
|
|
3485
|
+
});
|
|
3486
|
+
var getDaemonSkillArchive = (options) => (options.client ?? client).get({
|
|
3487
|
+
responseValidator: async (data) => await validateResponse(zGetDaemonSkillArchiveResponse, data),
|
|
3488
|
+
security: [{
|
|
3489
|
+
key: "machineDaemonAuth",
|
|
3490
|
+
scheme: "bearer",
|
|
3491
|
+
type: "http"
|
|
3492
|
+
}],
|
|
3493
|
+
url: "/api/v1/daemon/skills/{skillID}/archive",
|
|
3494
|
+
...options
|
|
3495
|
+
});
|
|
3496
|
+
|
|
3497
|
+
export {
|
|
3498
|
+
createConfig,
|
|
3499
|
+
createClient,
|
|
3500
|
+
client,
|
|
3501
|
+
isUnknownEnumError,
|
|
3502
|
+
listPersonalAccessTokens,
|
|
3503
|
+
createPersonalAccessToken,
|
|
3504
|
+
revokePersonalAccessToken,
|
|
3505
|
+
bootstrapDaemon,
|
|
3506
|
+
recordMachineFailure,
|
|
3507
|
+
createOrganization,
|
|
3508
|
+
deleteOrganization,
|
|
3509
|
+
deleteCurrentUser,
|
|
3510
|
+
getCurrentUser,
|
|
3511
|
+
listPendingInvitations,
|
|
3512
|
+
acceptInvitation,
|
|
3513
|
+
declineInvitation,
|
|
3514
|
+
getOrgOverview,
|
|
3515
|
+
listVisibleProjects,
|
|
3516
|
+
createProject,
|
|
3517
|
+
deleteProject,
|
|
3518
|
+
listOrgMembers,
|
|
3519
|
+
removeOrgMember,
|
|
3520
|
+
updateOrgMember,
|
|
3521
|
+
listMemberProjectAccess,
|
|
3522
|
+
removeMemberProjectAccess,
|
|
3523
|
+
setMemberProjectAccess,
|
|
3524
|
+
listOrgApiKeys,
|
|
3525
|
+
createOrgApiKey,
|
|
3526
|
+
getOrgApiKey,
|
|
3527
|
+
updateOrgApiKey,
|
|
3528
|
+
revokeOrgApiKey,
|
|
3529
|
+
listOrgApiKeyProjectAccess,
|
|
3530
|
+
removeOrgApiKeyProjectRole,
|
|
3531
|
+
setOrgApiKeyProjectRole,
|
|
3532
|
+
listOrgInvitations,
|
|
3533
|
+
createOrgInvitation,
|
|
3534
|
+
deleteOrgInvitation,
|
|
3535
|
+
listSkills,
|
|
3536
|
+
createSkill,
|
|
3537
|
+
deleteSkill,
|
|
3538
|
+
getSkill,
|
|
3539
|
+
listSkillGrants,
|
|
3540
|
+
createSkillGrant,
|
|
3541
|
+
deleteSkillGrant,
|
|
3542
|
+
listProjectAvailableSkills,
|
|
3543
|
+
listSecrets,
|
|
3544
|
+
createSecret,
|
|
3545
|
+
startSecretMcpoAuth,
|
|
3546
|
+
deleteSecret,
|
|
3547
|
+
getSecret,
|
|
3548
|
+
updateSecret,
|
|
3549
|
+
createSecretVersion,
|
|
3550
|
+
listSecretGrants,
|
|
3551
|
+
createSecretGrant,
|
|
3552
|
+
deleteSecretGrant,
|
|
3553
|
+
listIntegrationInstalls,
|
|
3554
|
+
deleteIntegrationInstall,
|
|
3555
|
+
createAgentConfig,
|
|
3556
|
+
getToolCatalog,
|
|
3557
|
+
getAgentConfig,
|
|
3558
|
+
listAgentProfiles,
|
|
3559
|
+
createAgentProfile,
|
|
3560
|
+
deleteAgentProfile,
|
|
3561
|
+
getAgentProfile,
|
|
3562
|
+
renameAgentProfile,
|
|
3563
|
+
updateAgentProfile,
|
|
3564
|
+
createIntegrationOAuthSetup,
|
|
3565
|
+
createSlackSetup,
|
|
3566
|
+
listCronTriggers,
|
|
3567
|
+
createCronTrigger,
|
|
3568
|
+
deleteCronTrigger,
|
|
3569
|
+
getCronTrigger,
|
|
3570
|
+
updateCronTrigger,
|
|
3571
|
+
listAgents,
|
|
3572
|
+
createAgent,
|
|
3573
|
+
getAgent,
|
|
3574
|
+
archiveAgent,
|
|
3575
|
+
updateAgentConfig,
|
|
3576
|
+
createAgentInput,
|
|
3577
|
+
listToolCalls,
|
|
3578
|
+
submitToolCallResult,
|
|
3579
|
+
listTurns,
|
|
3580
|
+
listTurnEvents,
|
|
3581
|
+
listEvents,
|
|
3582
|
+
streamEvents,
|
|
3583
|
+
cancelAgent,
|
|
3584
|
+
listAgentInteractions,
|
|
3585
|
+
resolveAgentInteraction,
|
|
3586
|
+
listQueuedBacklogInputs,
|
|
3587
|
+
cancelQueuedBacklogInput,
|
|
3588
|
+
moveQueuedBacklogInput,
|
|
3589
|
+
promoteQueuedInputToSteering,
|
|
3590
|
+
demoteSteeringInputToQueued,
|
|
3591
|
+
getArtifact,
|
|
3592
|
+
getArtifactContent,
|
|
3593
|
+
listVisibleProjectMachines,
|
|
3594
|
+
listProjectMachineGrants,
|
|
3595
|
+
createProjectMachineGrant,
|
|
3596
|
+
deleteProjectMachineGrant,
|
|
3597
|
+
listProjectAvailableSecrets,
|
|
3598
|
+
getProjectAvailableSecret,
|
|
3599
|
+
listActors,
|
|
3600
|
+
putActor,
|
|
3601
|
+
getActor,
|
|
3602
|
+
listVisibleMachines,
|
|
3603
|
+
createMachine,
|
|
3604
|
+
connectByoMachine,
|
|
3605
|
+
deleteMachine,
|
|
3606
|
+
getMachine,
|
|
3607
|
+
updateMachine,
|
|
3608
|
+
listModelProviderConfigs,
|
|
3609
|
+
createModelProviderConfig,
|
|
3610
|
+
deleteModelProviderConfig,
|
|
3611
|
+
getModelProviderConfig,
|
|
3612
|
+
updateModelProviderConfig,
|
|
3613
|
+
getModelCatalog,
|
|
3614
|
+
listConfiguredModels,
|
|
3615
|
+
createConfiguredModel,
|
|
3616
|
+
deleteConfiguredModel,
|
|
3617
|
+
updateConfiguredModel,
|
|
3618
|
+
listProjectModelGrants,
|
|
3619
|
+
createProjectModelGrant,
|
|
3620
|
+
deleteProjectModelGrant,
|
|
3621
|
+
updateProjectModelGrant,
|
|
3622
|
+
listMachinePools,
|
|
3623
|
+
createMachinePool,
|
|
3624
|
+
deleteMachinePool,
|
|
3625
|
+
getMachinePool,
|
|
3626
|
+
updateMachinePool,
|
|
3627
|
+
listProjectMachinePoolGrants,
|
|
3628
|
+
createProjectMachinePoolGrant,
|
|
3629
|
+
deleteProjectMachinePoolGrant,
|
|
3630
|
+
getProjectMachinePoolGrant,
|
|
3631
|
+
updateProjectMachinePoolGrant,
|
|
3632
|
+
listByoMachineDaemonTokens,
|
|
3633
|
+
createByoMachineDaemonToken,
|
|
3634
|
+
revokeMachineDaemonToken,
|
|
3635
|
+
registerMachineDaemonRuntime,
|
|
3636
|
+
socketMachineDaemonRuntime,
|
|
3637
|
+
endMachineDaemonRuntime,
|
|
3638
|
+
sleepMachineDaemonRuntime,
|
|
3639
|
+
getDaemonSkillArchive,
|
|
3640
|
+
sdk_gen_exports
|
|
3641
|
+
};
|
|
3642
|
+
//# sourceMappingURL=chunk-DGGYBF7D.js.map
|