@factory/droid-sdk 0.9.1 → 0.11.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.
Files changed (41) hide show
  1. package/README.md +53 -0
  2. package/dist/api.d.mts +15058 -0
  3. package/dist/api.d.ts +15058 -0
  4. package/dist/api.js +253 -0
  5. package/dist/api.js.map +1 -0
  6. package/dist/api.mjs +253 -0
  7. package/dist/api.mjs.map +1 -0
  8. package/dist/chunk-7ZD7MMNA.mjs +2268 -0
  9. package/dist/chunk-7ZD7MMNA.mjs.map +1 -0
  10. package/dist/{chunk-YSKO6SPT.js → chunk-KAAWCHO4.js} +32033 -17088
  11. package/dist/chunk-KAAWCHO4.js.map +1 -0
  12. package/dist/chunk-NWFX4MPJ.mjs +41630 -0
  13. package/dist/chunk-NWFX4MPJ.mjs.map +1 -0
  14. package/dist/chunk-ZQ7TS73S.js +2268 -0
  15. package/dist/chunk-ZQ7TS73S.js.map +1 -0
  16. package/dist/{index-C06W9tbN.d.mts → index-Cf2WtJqJ.d.mts} +134169 -84330
  17. package/dist/{index-C06W9tbN.d.ts → index-Cf2WtJqJ.d.ts} +134169 -84330
  18. package/dist/index.d.mts +1 -1
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.js +91 -2
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.mjs +99 -10
  23. package/dist/node.d.mts +223 -43
  24. package/dist/node.d.ts +223 -43
  25. package/dist/node.js +2033 -776
  26. package/dist/node.js.map +1 -1
  27. package/dist/node.mjs +1756 -499
  28. package/dist/node.mjs.map +1 -1
  29. package/examples/browser/daemon-lifecycle.ts +4 -6
  30. package/examples/node/custom-model-editing-disposable.sh +88 -0
  31. package/examples/node/custom-model-editing-disposable.ts +171 -0
  32. package/examples/node/custom-model-editing.ts +55 -0
  33. package/examples/node/hook-execution.ts +3 -2
  34. package/examples/node/rest-api.ts +55 -0
  35. package/examples/node/sdk-mcp-tool.ts +5 -3
  36. package/examples/node/start-workstream.ts +76 -0
  37. package/examples/node/tool-controls.ts +7 -5
  38. package/package.json +14 -3
  39. package/dist/chunk-TWSTJMV7.mjs +0 -26685
  40. package/dist/chunk-TWSTJMV7.mjs.map +0 -1
  41. package/dist/chunk-YSKO6SPT.js.map +0 -1
@@ -0,0 +1,2268 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
26
+
27
+ // ../api/src/constants.ts
28
+ var DEFAULT_BASE_URL = "https://api.factory.ai";
29
+
30
+ // ../api/src/generated/core/bodySerializer.gen.ts
31
+ var jsonBodySerializer = {
32
+ bodySerializer: (body) => JSON.stringify(
33
+ body,
34
+ (_key, value) => typeof value === "bigint" ? value.toString() : value
35
+ )
36
+ };
37
+
38
+ // ../api/src/generated/core/params.gen.ts
39
+ var extraPrefixesMap = {
40
+ $body_: "body",
41
+ $headers_: "headers",
42
+ $path_: "path",
43
+ $query_: "query"
44
+ };
45
+ var extraPrefixes = Object.entries(extraPrefixesMap);
46
+
47
+ // ../api/src/generated/core/pathSerializer.gen.ts
48
+ var separatorArrayExplode = (style) => {
49
+ switch (style) {
50
+ case "label":
51
+ return ".";
52
+ case "matrix":
53
+ return ";";
54
+ case "simple":
55
+ return ",";
56
+ default:
57
+ return "&";
58
+ }
59
+ };
60
+ var separatorArrayNoExplode = (style) => {
61
+ switch (style) {
62
+ case "form":
63
+ return ",";
64
+ case "pipeDelimited":
65
+ return "|";
66
+ case "spaceDelimited":
67
+ return "%20";
68
+ default:
69
+ return ",";
70
+ }
71
+ };
72
+ var separatorObjectExplode = (style) => {
73
+ switch (style) {
74
+ case "label":
75
+ return ".";
76
+ case "matrix":
77
+ return ";";
78
+ case "simple":
79
+ return ",";
80
+ default:
81
+ return "&";
82
+ }
83
+ };
84
+ var serializeArrayParam = ({
85
+ allowReserved,
86
+ explode,
87
+ name,
88
+ style,
89
+ value
90
+ }) => {
91
+ if (!explode) {
92
+ const joinedValues2 = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
93
+ switch (style) {
94
+ case "label":
95
+ return `.${joinedValues2}`;
96
+ case "matrix":
97
+ return `;${name}=${joinedValues2}`;
98
+ case "simple":
99
+ return joinedValues2;
100
+ default:
101
+ return `${name}=${joinedValues2}`;
102
+ }
103
+ }
104
+ const separator = separatorArrayExplode(style);
105
+ const joinedValues = value.map((v) => {
106
+ if (style === "label" || style === "simple") {
107
+ return allowReserved ? v : encodeURIComponent(v);
108
+ }
109
+ return serializePrimitiveParam({
110
+ allowReserved,
111
+ name,
112
+ value: v
113
+ });
114
+ }).join(separator);
115
+ return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
116
+ };
117
+ var serializePrimitiveParam = ({
118
+ allowReserved,
119
+ name,
120
+ value
121
+ }) => {
122
+ if (value === void 0 || value === null) {
123
+ return "";
124
+ }
125
+ if (typeof value === "object") {
126
+ throw new Error(
127
+ "Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these."
128
+ );
129
+ }
130
+ return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
131
+ };
132
+ var serializeObjectParam = ({
133
+ allowReserved,
134
+ explode,
135
+ name,
136
+ style,
137
+ value,
138
+ valueOnly
139
+ }) => {
140
+ if (value instanceof Date) {
141
+ return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
142
+ }
143
+ if (style !== "deepObject" && !explode) {
144
+ let values = [];
145
+ Object.entries(value).forEach(([key, v]) => {
146
+ values = [
147
+ ...values,
148
+ key,
149
+ allowReserved ? v : encodeURIComponent(v)
150
+ ];
151
+ });
152
+ const joinedValues2 = values.join(",");
153
+ switch (style) {
154
+ case "form":
155
+ return `${name}=${joinedValues2}`;
156
+ case "label":
157
+ return `.${joinedValues2}`;
158
+ case "matrix":
159
+ return `;${name}=${joinedValues2}`;
160
+ default:
161
+ return joinedValues2;
162
+ }
163
+ }
164
+ const separator = separatorObjectExplode(style);
165
+ const joinedValues = Object.entries(value).map(
166
+ ([key, v]) => serializePrimitiveParam({
167
+ allowReserved,
168
+ name: style === "deepObject" ? `${name}[${key}]` : key,
169
+ value: v
170
+ })
171
+ ).join(separator);
172
+ return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
173
+ };
174
+
175
+ // ../api/src/generated/core/utils.gen.ts
176
+ var PATH_PARAM_RE = /\{[^{}]+\}/g;
177
+ var defaultPathSerializer = ({
178
+ path,
179
+ url: _url
180
+ }) => {
181
+ let url = _url;
182
+ const matches = _url.match(PATH_PARAM_RE);
183
+ if (matches) {
184
+ for (const match of matches) {
185
+ let explode = false;
186
+ let name = match.substring(1, match.length - 1);
187
+ let style = "simple";
188
+ if (name.endsWith("*")) {
189
+ explode = true;
190
+ name = name.substring(0, name.length - 1);
191
+ }
192
+ if (name.startsWith(".")) {
193
+ name = name.substring(1);
194
+ style = "label";
195
+ } else if (name.startsWith(";")) {
196
+ name = name.substring(1);
197
+ style = "matrix";
198
+ }
199
+ const value = path[name];
200
+ if (value === void 0 || value === null) {
201
+ continue;
202
+ }
203
+ if (Array.isArray(value)) {
204
+ url = url.replace(
205
+ match,
206
+ serializeArrayParam({ explode, name, style, value })
207
+ );
208
+ continue;
209
+ }
210
+ if (typeof value === "object") {
211
+ url = url.replace(
212
+ match,
213
+ serializeObjectParam({
214
+ explode,
215
+ name,
216
+ style,
217
+ value,
218
+ valueOnly: true
219
+ })
220
+ );
221
+ continue;
222
+ }
223
+ if (style === "matrix") {
224
+ url = url.replace(
225
+ match,
226
+ `;${serializePrimitiveParam({
227
+ name,
228
+ value
229
+ })}`
230
+ );
231
+ continue;
232
+ }
233
+ const replaceValue = encodeURIComponent(
234
+ style === "label" ? `.${value}` : value
235
+ );
236
+ if (replaceValue === "" || replaceValue === "." || replaceValue === "..") {
237
+ throw new TypeError(
238
+ `Path parameter "${name}" cannot be ${JSON.stringify(replaceValue)}: it would change the request path`
239
+ );
240
+ }
241
+ url = url.replace(match, replaceValue);
242
+ }
243
+ }
244
+ return url;
245
+ };
246
+ var getUrl = ({
247
+ baseUrl,
248
+ path,
249
+ query,
250
+ querySerializer,
251
+ url: _url
252
+ }) => {
253
+ const pathUrl = _url.startsWith("/") ? _url : `/${_url}`;
254
+ let url = (_nullishCoalesce(baseUrl, () => ( ""))) + pathUrl;
255
+ if (path) {
256
+ url = defaultPathSerializer({ path, url });
257
+ }
258
+ let search = query ? querySerializer(query) : "";
259
+ if (search.startsWith("?")) {
260
+ search = search.substring(1);
261
+ }
262
+ if (search) {
263
+ url += `?${search}`;
264
+ }
265
+ return url;
266
+ };
267
+ function getValidRequestBody(options) {
268
+ const hasBody = options.body !== void 0;
269
+ const isSerializedBody = hasBody && options.bodySerializer;
270
+ if (isSerializedBody) {
271
+ if ("serializedBody" in options) {
272
+ const hasSerializedBody = options.serializedBody !== void 0 && options.serializedBody !== "";
273
+ return hasSerializedBody ? options.serializedBody : null;
274
+ }
275
+ return options.body !== "" ? options.body : null;
276
+ }
277
+ if (hasBody) {
278
+ return options.body;
279
+ }
280
+ return void 0;
281
+ }
282
+
283
+ // ../api/src/generated/core/auth.gen.ts
284
+ var getAuthToken = async (auth, callback) => {
285
+ const token = typeof callback === "function" ? await callback(auth) : callback;
286
+ if (!token) {
287
+ return;
288
+ }
289
+ if (auth.scheme === "bearer") {
290
+ return `Bearer ${token}`;
291
+ }
292
+ if (auth.scheme === "basic") {
293
+ return `Basic ${btoa(token)}`;
294
+ }
295
+ return token;
296
+ };
297
+
298
+ // ../api/src/generated/client/utils.gen.ts
299
+ var createQuerySerializer = ({
300
+ parameters = {},
301
+ ...args
302
+ } = {}) => {
303
+ const querySerializer = (queryParams) => {
304
+ const search = [];
305
+ if (queryParams && typeof queryParams === "object") {
306
+ for (const name in queryParams) {
307
+ const value = queryParams[name];
308
+ if (value === void 0 || value === null) {
309
+ continue;
310
+ }
311
+ const options = parameters[name] || args;
312
+ if (Array.isArray(value)) {
313
+ const serializedArray = serializeArrayParam({
314
+ allowReserved: options.allowReserved,
315
+ explode: true,
316
+ name,
317
+ style: "form",
318
+ value,
319
+ ...options.array
320
+ });
321
+ if (serializedArray) search.push(serializedArray);
322
+ } else if (typeof value === "object") {
323
+ const serializedObject = serializeObjectParam({
324
+ allowReserved: options.allowReserved,
325
+ explode: true,
326
+ name,
327
+ style: "deepObject",
328
+ value,
329
+ ...options.object
330
+ });
331
+ if (serializedObject) search.push(serializedObject);
332
+ } else {
333
+ const serializedPrimitive = serializePrimitiveParam({
334
+ allowReserved: options.allowReserved,
335
+ name,
336
+ value
337
+ });
338
+ if (serializedPrimitive) search.push(serializedPrimitive);
339
+ }
340
+ }
341
+ }
342
+ return search.join("&");
343
+ };
344
+ return querySerializer;
345
+ };
346
+ var checkForExistence = (options, name, location) => {
347
+ if (location === "query") {
348
+ return Boolean(_optionalChain([options, 'access', _ => _.query, 'optionalAccess', _2 => _2[name]]));
349
+ }
350
+ if (location === "cookie") {
351
+ return Boolean(_optionalChain([options, 'access', _3 => _3.headers, 'access', _4 => _4.get, 'call', _5 => _5("Cookie"), 'optionalAccess', _6 => _6.includes, 'call', _7 => _7(`${name}=`)]));
352
+ }
353
+ return options.headers.has(name);
354
+ };
355
+ async function setAuthParams(options) {
356
+ for (const auth of _nullishCoalesce(options.security, () => ( []))) {
357
+ const name = _nullishCoalesce(auth.name, () => ( "Authorization"));
358
+ if (checkForExistence(options, name, auth.in)) {
359
+ continue;
360
+ }
361
+ const token = await getAuthToken(auth, options.auth);
362
+ if (!token) {
363
+ continue;
364
+ }
365
+ switch (auth.in) {
366
+ case "query":
367
+ if (!options.query) {
368
+ options.query = {};
369
+ }
370
+ options.query[name] = token;
371
+ break;
372
+ case "cookie":
373
+ options.headers.append("Cookie", `${name}=${token}`);
374
+ break;
375
+ case "header":
376
+ default:
377
+ options.headers.set(name, token);
378
+ break;
379
+ }
380
+ }
381
+ }
382
+ var buildUrl = (options) => getUrl({
383
+ baseUrl: options.baseUrl,
384
+ path: options.path,
385
+ query: options.query,
386
+ querySerializer: typeof options.querySerializer === "function" ? options.querySerializer : createQuerySerializer(options.querySerializer),
387
+ url: options.url
388
+ });
389
+ var mergeConfigs = (a, b) => {
390
+ const config = { ...a, ...b };
391
+ if (_optionalChain([config, 'access', _8 => _8.baseUrl, 'optionalAccess', _9 => _9.endsWith, 'call', _10 => _10("/")])) {
392
+ config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);
393
+ }
394
+ config.headers = mergeHeaders(a.headers, b.headers);
395
+ return config;
396
+ };
397
+ var headersEntries = (headers) => {
398
+ const entries = [];
399
+ headers.forEach((value, key) => {
400
+ entries.push([key, value]);
401
+ });
402
+ return entries;
403
+ };
404
+ var headersToRecord = (headers) => headers instanceof Headers || Array.isArray(headers) ? Object.fromEntries(headersEntries(new Headers(headers))) : _nullishCoalesce(headers, () => ( {}));
405
+ var mergeHeaders = (...headers) => {
406
+ const mergedHeaders = new Headers();
407
+ for (const header of headers) {
408
+ for (const [key, value] of Object.entries(headersToRecord(header))) {
409
+ if (value === null) {
410
+ mergedHeaders.delete(key);
411
+ } else if (Array.isArray(value)) {
412
+ mergedHeaders.delete(key);
413
+ for (const v of value) {
414
+ mergedHeaders.append(key, v);
415
+ }
416
+ } else if (value !== void 0) {
417
+ mergedHeaders.set(
418
+ key,
419
+ typeof value === "object" ? JSON.stringify(value) : value
420
+ );
421
+ }
422
+ }
423
+ }
424
+ return mergedHeaders;
425
+ };
426
+ var Interceptors = (_class = class {constructor() { _class.prototype.__init.call(this); }
427
+ __init() {this.fns = []}
428
+ clear() {
429
+ this.fns = [];
430
+ }
431
+ eject(id) {
432
+ const index = this.getInterceptorIndex(id);
433
+ if (this.fns[index]) {
434
+ this.fns[index] = null;
435
+ }
436
+ }
437
+ exists(id) {
438
+ const index = this.getInterceptorIndex(id);
439
+ return Boolean(this.fns[index]);
440
+ }
441
+ getInterceptorIndex(id) {
442
+ if (typeof id === "number") {
443
+ return this.fns[id] ? id : -1;
444
+ }
445
+ return this.fns.indexOf(id);
446
+ }
447
+ update(id, fn) {
448
+ const index = this.getInterceptorIndex(id);
449
+ if (this.fns[index]) {
450
+ this.fns[index] = fn;
451
+ return id;
452
+ }
453
+ return false;
454
+ }
455
+ use(fn) {
456
+ this.fns.push(fn);
457
+ return this.fns.length - 1;
458
+ }
459
+ }, _class);
460
+ var createInterceptors = () => ({
461
+ error: new Interceptors(),
462
+ request: new Interceptors(),
463
+ response: new Interceptors()
464
+ });
465
+ var defaultQuerySerializer = createQuerySerializer({
466
+ allowReserved: false,
467
+ array: {
468
+ explode: true,
469
+ style: "form"
470
+ },
471
+ object: {
472
+ explode: true,
473
+ style: "deepObject"
474
+ }
475
+ });
476
+ var defaultHeaders = {
477
+ "Content-Type": "application/json"
478
+ };
479
+ var createConfig = (override = {}) => ({
480
+ ...jsonBodySerializer,
481
+ headers: defaultHeaders,
482
+ querySerializer: defaultQuerySerializer,
483
+ ...override
484
+ });
485
+
486
+ // ../api/src/generated/client/client.gen.ts
487
+ var createClient = (config = {}) => {
488
+ let _config = mergeConfigs(createConfig(), config);
489
+ const getConfig = () => ({ ..._config });
490
+ const setConfig = (config2) => {
491
+ _config = mergeConfigs(_config, config2);
492
+ return getConfig();
493
+ };
494
+ const interceptors = createInterceptors();
495
+ const beforeRequest = async (options) => {
496
+ const opts = {
497
+ ..._config,
498
+ ...options,
499
+ fetch: _nullishCoalesce(_nullishCoalesce(options.fetch, () => ( _config.fetch)), () => ( globalThis.fetch)),
500
+ headers: mergeHeaders(_config.headers, options.headers),
501
+ serializedBody: void 0
502
+ };
503
+ if (opts.security) {
504
+ await setAuthParams(opts);
505
+ }
506
+ if (opts.requestValidator) {
507
+ await opts.requestValidator(opts);
508
+ }
509
+ if (opts.body !== void 0 && opts.bodySerializer) {
510
+ opts.serializedBody = opts.bodySerializer(opts.body);
511
+ }
512
+ if (opts.body === void 0 || opts.serializedBody === "") {
513
+ opts.headers.delete("Content-Type");
514
+ }
515
+ const resolvedOpts = opts;
516
+ const url = buildUrl(resolvedOpts);
517
+ return { opts: resolvedOpts, url };
518
+ };
519
+ const request = async (options) => {
520
+ const throwOnError = _nullishCoalesce(options.throwOnError, () => ( _config.throwOnError));
521
+ const { opts, url } = await beforeRequest(options);
522
+ const requestInit = {
523
+ redirect: "follow",
524
+ ...opts,
525
+ body: getValidRequestBody(opts)
526
+ };
527
+ let request2 = new Request(url, requestInit);
528
+ for (const fn of interceptors.request.fns) {
529
+ if (fn) {
530
+ request2 = await fn(request2, opts);
531
+ }
532
+ }
533
+ const _fetch = opts.fetch;
534
+ let response = await _fetch(request2);
535
+ for (const fn of interceptors.response.fns) {
536
+ if (fn) {
537
+ response = await fn(response, request2, opts);
538
+ }
539
+ }
540
+ const result = {
541
+ request: request2,
542
+ response
543
+ };
544
+ const bodyless = response.status === 204 || response.status === 205 || response.status === 304 || request2.method === "HEAD";
545
+ if (response.ok) {
546
+ if (bodyless) {
547
+ return {
548
+ data: void 0,
549
+ ...result
550
+ };
551
+ }
552
+ let data = await response.json();
553
+ if (opts.responseValidator) {
554
+ await opts.responseValidator(data);
555
+ }
556
+ if (opts.responseTransformer) {
557
+ data = await opts.responseTransformer(data);
558
+ }
559
+ return {
560
+ data,
561
+ ...result
562
+ };
563
+ }
564
+ const textError = await response.text();
565
+ const mediaType = _nullishCoalesce(_optionalChain([response, 'access', _11 => _11.headers, 'access', _12 => _12.get, 'call', _13 => _13("Content-Type"), 'optionalAccess', _14 => _14.split, 'call', _15 => _15(";"), 'access', _16 => _16[0], 'optionalAccess', _17 => _17.trim, 'call', _18 => _18(), 'access', _19 => _19.toLowerCase, 'call', _20 => _20()]), () => ( ""));
566
+ let error = !bodyless && (mediaType === "application/json" || mediaType.endsWith("+json")) ? JSON.parse(textError) : textError;
567
+ for (const fn of interceptors.error.fns) {
568
+ if (fn) {
569
+ error = await fn(error, response, request2, opts);
570
+ }
571
+ }
572
+ if (throwOnError) {
573
+ throw error;
574
+ }
575
+ return {
576
+ error,
577
+ ...result
578
+ };
579
+ };
580
+ const makeMethodFn = (method) => (options) => request({ ...options, method });
581
+ const _buildUrl = (options) => buildUrl({ ..._config, ...options });
582
+ return {
583
+ buildUrl: _buildUrl,
584
+ connect: makeMethodFn("CONNECT"),
585
+ delete: makeMethodFn("DELETE"),
586
+ get: makeMethodFn("GET"),
587
+ getConfig,
588
+ head: makeMethodFn("HEAD"),
589
+ interceptors,
590
+ options: makeMethodFn("OPTIONS"),
591
+ patch: makeMethodFn("PATCH"),
592
+ post: makeMethodFn("POST"),
593
+ put: makeMethodFn("PUT"),
594
+ request,
595
+ setConfig,
596
+ trace: makeMethodFn("TRACE")
597
+ };
598
+ };
599
+
600
+ // ../api/src/client.ts
601
+ function createFactoryClient(options = {}) {
602
+ return createClient(
603
+ createConfig({
604
+ baseUrl: _nullishCoalesce(options.baseUrl, () => ( DEFAULT_BASE_URL)),
605
+ ...options.apiKey === void 0 ? {} : { auth: options.apiKey },
606
+ ...options.fetch === void 0 ? {} : { fetch: options.fetch },
607
+ ...options.headers === void 0 ? {} : { headers: options.headers }
608
+ })
609
+ );
610
+ }
611
+
612
+ // ../api/src/generated/sdk.gen.ts
613
+ var verifyActAsGrant = (options) => options.client.post({
614
+ security: [
615
+ {
616
+ key: "ApiKeyAuth",
617
+ scheme: "bearer",
618
+ type: "http"
619
+ }
620
+ ],
621
+ url: "/api/v0/act-as-grants/verify",
622
+ ...options,
623
+ headers: {
624
+ "Content-Type": "application/json",
625
+ ...headersToRecord(options.headers)
626
+ }
627
+ });
628
+ var listAutomations = (options) => options.client.get({
629
+ security: [
630
+ {
631
+ key: "BearerAuth",
632
+ scheme: "bearer",
633
+ type: "http"
634
+ }
635
+ ],
636
+ url: "/api/v0/automations",
637
+ ...options
638
+ });
639
+ var createAutomation = (options) => options.client.post({
640
+ security: [
641
+ {
642
+ key: "BearerAuth",
643
+ scheme: "bearer",
644
+ type: "http"
645
+ }
646
+ ],
647
+ url: "/api/v0/automations",
648
+ ...options,
649
+ headers: {
650
+ "Content-Type": "application/json",
651
+ ...headersToRecord(options.headers)
652
+ }
653
+ });
654
+ var openCiWorkflowPullRequest = (options) => options.client.post({
655
+ security: [
656
+ {
657
+ key: "BearerAuth",
658
+ scheme: "bearer",
659
+ type: "http"
660
+ }
661
+ ],
662
+ url: "/api/v0/automations/ci/edit",
663
+ ...options,
664
+ headers: {
665
+ "Content-Type": "application/json",
666
+ ...headersToRecord(options.headers)
667
+ }
668
+ });
669
+ var listCiAutomationJobs = (options) => options.client.get({
670
+ security: [
671
+ {
672
+ key: "BearerAuth",
673
+ scheme: "bearer",
674
+ type: "http"
675
+ }
676
+ ],
677
+ url: "/api/v0/automations/ci/jobs",
678
+ ...options
679
+ });
680
+ var listCiEligibleRepositories = (options) => options.client.get({
681
+ security: [
682
+ {
683
+ key: "BearerAuth",
684
+ scheme: "bearer",
685
+ type: "http"
686
+ }
687
+ ],
688
+ url: "/api/v0/automations/ci/repositories",
689
+ ...options
690
+ });
691
+ var listCiRepositoryOwners = (options) => options.client.get({
692
+ security: [
693
+ {
694
+ key: "BearerAuth",
695
+ scheme: "bearer",
696
+ type: "http"
697
+ }
698
+ ],
699
+ url: "/api/v0/automations/ci/repository-owners",
700
+ ...options
701
+ });
702
+ var listCiAutomationRuns = (options) => options.client.get({
703
+ security: [
704
+ {
705
+ key: "BearerAuth",
706
+ scheme: "bearer",
707
+ type: "http"
708
+ }
709
+ ],
710
+ url: "/api/v0/automations/ci/runs",
711
+ ...options
712
+ });
713
+ var scanCiRepositories = (options) => options.client.get({
714
+ security: [
715
+ {
716
+ key: "BearerAuth",
717
+ scheme: "bearer",
718
+ type: "http"
719
+ }
720
+ ],
721
+ url: "/api/v0/automations/ci/scan",
722
+ ...options
723
+ });
724
+ var getAutomationHealth = (options) => options.client.post({
725
+ security: [
726
+ {
727
+ key: "BearerAuth",
728
+ scheme: "bearer",
729
+ type: "http"
730
+ }
731
+ ],
732
+ url: "/api/v0/automations/health",
733
+ ...options,
734
+ headers: {
735
+ "Content-Type": "application/json",
736
+ ...headersToRecord(options.headers)
737
+ }
738
+ });
739
+ var getAutomationOrgDefaultTarget = (options) => options.client.get({
740
+ security: [
741
+ {
742
+ key: "BearerAuth",
743
+ scheme: "bearer",
744
+ type: "http"
745
+ }
746
+ ],
747
+ url: "/api/v0/automations/org-default-target",
748
+ ...options
749
+ });
750
+ var getAutomationRunStats = (options) => options.client.get({
751
+ security: [
752
+ {
753
+ key: "BearerAuth",
754
+ scheme: "bearer",
755
+ type: "http"
756
+ }
757
+ ],
758
+ url: "/api/v0/automations/run-stats",
759
+ ...options
760
+ });
761
+ var deleteAutomation = (options) => options.client.delete({
762
+ security: [
763
+ {
764
+ key: "BearerAuth",
765
+ scheme: "bearer",
766
+ type: "http"
767
+ }
768
+ ],
769
+ url: "/api/v0/automations/{automationId}",
770
+ ...options
771
+ });
772
+ var getAutomation = (options) => options.client.get(
773
+ {
774
+ security: [
775
+ {
776
+ key: "BearerAuth",
777
+ scheme: "bearer",
778
+ type: "http"
779
+ }
780
+ ],
781
+ url: "/api/v0/automations/{automationId}",
782
+ ...options
783
+ }
784
+ );
785
+ var updateAutomation = (options) => options.client.patch({
786
+ security: [
787
+ {
788
+ key: "BearerAuth",
789
+ scheme: "bearer",
790
+ type: "http"
791
+ }
792
+ ],
793
+ url: "/api/v0/automations/{automationId}",
794
+ ...options,
795
+ headers: {
796
+ "Content-Type": "application/json",
797
+ ...headersToRecord(options.headers)
798
+ }
799
+ });
800
+ var startAutomationEditSession = (options) => options.client.post({
801
+ security: [
802
+ {
803
+ key: "BearerAuth",
804
+ scheme: "bearer",
805
+ type: "http"
806
+ }
807
+ ],
808
+ url: "/api/v0/automations/{automationId}/edit-session",
809
+ ...options,
810
+ headers: {
811
+ "Content-Type": "application/json",
812
+ ...headersToRecord(options.headers)
813
+ }
814
+ });
815
+ var listAutomationMemory = (options) => options.client.get({
816
+ security: [
817
+ {
818
+ key: "BearerAuth",
819
+ scheme: "bearer",
820
+ type: "http"
821
+ }
822
+ ],
823
+ url: "/api/v0/automations/{automationId}/memory",
824
+ ...options
825
+ });
826
+ var editAutomationMemory = (options) => options.client.post({
827
+ security: [
828
+ {
829
+ key: "BearerAuth",
830
+ scheme: "bearer",
831
+ type: "http"
832
+ }
833
+ ],
834
+ url: "/api/v0/automations/{automationId}/memory/edit",
835
+ ...options,
836
+ headers: {
837
+ "Content-Type": "application/json",
838
+ ...headersToRecord(options.headers)
839
+ }
840
+ });
841
+ var getAutomationMemoryFile = (options) => options.client.get({
842
+ security: [
843
+ {
844
+ key: "BearerAuth",
845
+ scheme: "bearer",
846
+ type: "http"
847
+ }
848
+ ],
849
+ url: "/api/v0/automations/{automationId}/memory/file",
850
+ ...options
851
+ });
852
+ var runAutomation = (options) => options.client.post({
853
+ security: [
854
+ {
855
+ key: "BearerAuth",
856
+ scheme: "bearer",
857
+ type: "http"
858
+ }
859
+ ],
860
+ url: "/api/v0/automations/{automationId}/run",
861
+ ...options
862
+ });
863
+ var listAutomationRunAlerts = (options) => options.client.get({
864
+ security: [
865
+ {
866
+ key: "BearerAuth",
867
+ scheme: "bearer",
868
+ type: "http"
869
+ }
870
+ ],
871
+ url: "/api/v0/automations/{automationId}/run-alerts",
872
+ ...options
873
+ });
874
+ var listAutomationRuns = (options) => options.client.get({
875
+ security: [
876
+ {
877
+ key: "BearerAuth",
878
+ scheme: "bearer",
879
+ type: "http"
880
+ }
881
+ ],
882
+ url: "/api/v0/automations/{automationId}/runs",
883
+ ...options
884
+ });
885
+ var updateAutomationRunOutcome = (options) => options.client.patch({
886
+ security: [
887
+ {
888
+ key: "BearerAuth",
889
+ scheme: "bearer",
890
+ type: "http"
891
+ }
892
+ ],
893
+ url: "/api/v0/automations/{automationId}/runs/{runId}",
894
+ ...options,
895
+ headers: {
896
+ "Content-Type": "application/json",
897
+ ...headersToRecord(options.headers)
898
+ }
899
+ });
900
+ var startAutomationSetupSession = (options) => options.client.post({
901
+ security: [
902
+ {
903
+ key: "BearerAuth",
904
+ scheme: "bearer",
905
+ type: "http"
906
+ }
907
+ ],
908
+ url: "/api/v0/automations/{automationId}/setup-session",
909
+ ...options,
910
+ headers: {
911
+ "Content-Type": "application/json",
912
+ ...headersToRecord(options.headers)
913
+ }
914
+ });
915
+ var listAutomationSkills = (options) => options.client.get({
916
+ security: [
917
+ {
918
+ key: "BearerAuth",
919
+ scheme: "bearer",
920
+ type: "http"
921
+ }
922
+ ],
923
+ url: "/api/v0/automations/{automationId}/skills",
924
+ ...options
925
+ });
926
+ var editAutomationSkill = (options) => options.client.post({
927
+ security: [
928
+ {
929
+ key: "BearerAuth",
930
+ scheme: "bearer",
931
+ type: "http"
932
+ }
933
+ ],
934
+ url: "/api/v0/automations/{automationId}/skills/edit",
935
+ ...options,
936
+ headers: {
937
+ "Content-Type": "application/json",
938
+ ...headersToRecord(options.headers)
939
+ }
940
+ });
941
+ var getAutomationSkillFile = (options) => options.client.get({
942
+ security: [
943
+ {
944
+ key: "BearerAuth",
945
+ scheme: "bearer",
946
+ type: "http"
947
+ }
948
+ ],
949
+ url: "/api/v0/automations/{automationId}/skills/file",
950
+ ...options
951
+ });
952
+ var listAutomationSlackDeliveries = (options) => options.client.get({
953
+ security: [
954
+ {
955
+ key: "BearerAuth",
956
+ scheme: "bearer",
957
+ type: "http"
958
+ }
959
+ ],
960
+ url: "/api/v0/automations/{automationId}/slack/deliveries",
961
+ ...options
962
+ });
963
+ var listAutomationWebhookDeliveries = (options) => options.client.get({
964
+ security: [
965
+ {
966
+ key: "BearerAuth",
967
+ scheme: "bearer",
968
+ type: "http"
969
+ }
970
+ ],
971
+ url: "/api/v0/automations/{automationId}/webhook/deliveries",
972
+ ...options
973
+ });
974
+ var rotateAutomationWebhook = (options) => options.client.post({
975
+ security: [
976
+ {
977
+ key: "BearerAuth",
978
+ scheme: "bearer",
979
+ type: "http"
980
+ }
981
+ ],
982
+ url: "/api/v0/automations/{automationId}/webhook/rotate",
983
+ ...options
984
+ });
985
+ var listComputers = (options) => options.client.get(
986
+ {
987
+ security: [
988
+ {
989
+ key: "BearerAuth",
990
+ scheme: "bearer",
991
+ type: "http"
992
+ }
993
+ ],
994
+ url: "/api/v0/computers",
995
+ ...options
996
+ }
997
+ );
998
+ var createComputer = (options) => options.client.post({
999
+ security: [
1000
+ {
1001
+ key: "BearerAuth",
1002
+ scheme: "bearer",
1003
+ type: "http"
1004
+ }
1005
+ ],
1006
+ url: "/api/v0/computers",
1007
+ ...options,
1008
+ headers: {
1009
+ "Content-Type": "application/json",
1010
+ ...headersToRecord(options.headers)
1011
+ }
1012
+ });
1013
+ var bulkCreateComputers = (options) => options.client.post({
1014
+ security: [
1015
+ {
1016
+ key: "BearerAuth",
1017
+ scheme: "bearer",
1018
+ type: "http"
1019
+ }
1020
+ ],
1021
+ url: "/api/v0/computers/bulk",
1022
+ ...options,
1023
+ headers: {
1024
+ "Content-Type": "application/json",
1025
+ ...headersToRecord(options.headers)
1026
+ }
1027
+ });
1028
+ var getComputerByName = (options) => options.client.get({
1029
+ security: [
1030
+ {
1031
+ key: "BearerAuth",
1032
+ scheme: "bearer",
1033
+ type: "http"
1034
+ }
1035
+ ],
1036
+ url: "/api/v0/computers/name/{name}",
1037
+ ...options
1038
+ });
1039
+ var listAvailableComputerProviders = (options) => options.client.get({
1040
+ security: [
1041
+ {
1042
+ key: "BearerAuth",
1043
+ scheme: "bearer",
1044
+ type: "http"
1045
+ }
1046
+ ],
1047
+ url: "/api/v0/computers/providers",
1048
+ ...options
1049
+ });
1050
+ var deleteComputer = (options) => options.client.delete({
1051
+ security: [
1052
+ {
1053
+ key: "BearerAuth",
1054
+ scheme: "bearer",
1055
+ type: "http"
1056
+ }
1057
+ ],
1058
+ url: "/api/v0/computers/{computerId}",
1059
+ ...options
1060
+ });
1061
+ var getComputer = (options) => options.client.get({
1062
+ security: [
1063
+ {
1064
+ key: "BearerAuth",
1065
+ scheme: "bearer",
1066
+ type: "http"
1067
+ }
1068
+ ],
1069
+ url: "/api/v0/computers/{computerId}",
1070
+ ...options
1071
+ });
1072
+ var updateComputer = (options) => options.client.patch({
1073
+ security: [
1074
+ {
1075
+ key: "BearerAuth",
1076
+ scheme: "bearer",
1077
+ type: "http"
1078
+ }
1079
+ ],
1080
+ url: "/api/v0/computers/{computerId}",
1081
+ ...options,
1082
+ headers: {
1083
+ "Content-Type": "application/json",
1084
+ ...headersToRecord(options.headers)
1085
+ }
1086
+ });
1087
+ var recordComputerActivity = (options) => options.client.post({
1088
+ security: [
1089
+ {
1090
+ key: "BearerAuth",
1091
+ scheme: "bearer",
1092
+ type: "http"
1093
+ }
1094
+ ],
1095
+ url: "/api/v0/computers/{computerId}/activity",
1096
+ ...options
1097
+ });
1098
+ var completeComputerFileUpload = (options) => options.client.post({
1099
+ security: [
1100
+ {
1101
+ key: "BearerAuth",
1102
+ scheme: "bearer",
1103
+ type: "http"
1104
+ }
1105
+ ],
1106
+ url: "/api/v0/computers/{computerId}/files/{fileName}/complete-upload",
1107
+ ...options,
1108
+ headers: {
1109
+ "Content-Type": "application/json",
1110
+ ...headersToRecord(options.headers)
1111
+ }
1112
+ });
1113
+ var createComputerFileDownload = (options) => options.client.post({
1114
+ security: [
1115
+ {
1116
+ key: "BearerAuth",
1117
+ scheme: "bearer",
1118
+ type: "http"
1119
+ }
1120
+ ],
1121
+ url: "/api/v0/computers/{computerId}/files/{fileName}/create-download",
1122
+ ...options,
1123
+ headers: {
1124
+ "Content-Type": "application/json",
1125
+ ...headersToRecord(options.headers)
1126
+ }
1127
+ });
1128
+ var createComputerFileUpload = (options) => options.client.post({
1129
+ security: [
1130
+ {
1131
+ key: "BearerAuth",
1132
+ scheme: "bearer",
1133
+ type: "http"
1134
+ }
1135
+ ],
1136
+ url: "/api/v0/computers/{computerId}/files/{fileName}/create-upload",
1137
+ ...options,
1138
+ headers: {
1139
+ "Content-Type": "application/json",
1140
+ ...headersToRecord(options.headers)
1141
+ }
1142
+ });
1143
+ var retryInstallDeps = (options) => options.client.post({
1144
+ security: [
1145
+ {
1146
+ key: "BearerAuth",
1147
+ scheme: "bearer",
1148
+ type: "http"
1149
+ }
1150
+ ],
1151
+ url: "/api/v0/computers/{computerId}/install-deps",
1152
+ ...options
1153
+ });
1154
+ var getComputerMetrics = (options) => options.client.get({
1155
+ security: [
1156
+ {
1157
+ key: "BearerAuth",
1158
+ scheme: "bearer",
1159
+ type: "http"
1160
+ }
1161
+ ],
1162
+ url: "/api/v0/computers/{computerId}/metrics",
1163
+ ...options
1164
+ });
1165
+ var refreshComputer = (options) => options.client.post({
1166
+ security: [
1167
+ {
1168
+ key: "BearerAuth",
1169
+ scheme: "bearer",
1170
+ type: "http"
1171
+ }
1172
+ ],
1173
+ url: "/api/v0/computers/{computerId}/refresh",
1174
+ ...options
1175
+ });
1176
+ var restartComputer = (options) => options.client.post({
1177
+ security: [
1178
+ {
1179
+ key: "BearerAuth",
1180
+ scheme: "bearer",
1181
+ type: "http"
1182
+ }
1183
+ ],
1184
+ url: "/api/v0/computers/{computerId}/restart",
1185
+ ...options,
1186
+ headers: {
1187
+ "Content-Type": "application/json",
1188
+ ...headersToRecord(options.headers)
1189
+ }
1190
+ });
1191
+ var listDatasets = (options) => options.client.get({
1192
+ security: [
1193
+ {
1194
+ key: "BearerAuth",
1195
+ scheme: "bearer",
1196
+ type: "http"
1197
+ }
1198
+ ],
1199
+ url: "/api/v0/datasets",
1200
+ ...options
1201
+ });
1202
+ var importDataset = (options) => options.client.post({
1203
+ security: [
1204
+ {
1205
+ key: "BearerAuth",
1206
+ scheme: "bearer",
1207
+ type: "http"
1208
+ }
1209
+ ],
1210
+ url: "/api/v0/datasets/imports",
1211
+ ...options,
1212
+ headers: {
1213
+ "Content-Type": "application/json",
1214
+ ...headersToRecord(options.headers)
1215
+ }
1216
+ });
1217
+ var createDatasetUpload = (options) => options.client.post({
1218
+ security: [
1219
+ {
1220
+ key: "BearerAuth",
1221
+ scheme: "bearer",
1222
+ type: "http"
1223
+ }
1224
+ ],
1225
+ url: "/api/v0/datasets/uploads",
1226
+ ...options,
1227
+ headers: {
1228
+ "Content-Type": "application/json",
1229
+ ...headersToRecord(options.headers)
1230
+ }
1231
+ });
1232
+ var finalizeDatasetUpload = (options) => options.client.post({
1233
+ security: [
1234
+ {
1235
+ key: "BearerAuth",
1236
+ scheme: "bearer",
1237
+ type: "http"
1238
+ }
1239
+ ],
1240
+ url: "/api/v0/datasets/uploads/{uploadId}/finalize",
1241
+ ...options
1242
+ });
1243
+ var getDataset = (options) => options.client.get({
1244
+ security: [
1245
+ {
1246
+ key: "BearerAuth",
1247
+ scheme: "bearer",
1248
+ type: "http"
1249
+ }
1250
+ ],
1251
+ url: "/api/v0/datasets/{name}/{version}",
1252
+ ...options
1253
+ });
1254
+ var getDatasetSource = (options) => options.client.get({
1255
+ security: [
1256
+ {
1257
+ key: "BearerAuth",
1258
+ scheme: "bearer",
1259
+ type: "http"
1260
+ }
1261
+ ],
1262
+ url: "/api/v0/datasets/{name}/{version}/source",
1263
+ ...options
1264
+ });
1265
+ var listDatasetTasks = (options) => options.client.get({
1266
+ security: [
1267
+ {
1268
+ key: "BearerAuth",
1269
+ scheme: "bearer",
1270
+ type: "http"
1271
+ }
1272
+ ],
1273
+ url: "/api/v0/datasets/{name}/{version}/tasks",
1274
+ ...options
1275
+ });
1276
+ var getDatasetTaskFiles = (options) => options.client.get({
1277
+ security: [
1278
+ {
1279
+ key: "BearerAuth",
1280
+ scheme: "bearer",
1281
+ type: "http"
1282
+ }
1283
+ ],
1284
+ url: "/api/v0/datasets/{name}/{version}/tasks/{taskName}/files",
1285
+ ...options
1286
+ });
1287
+ var executeDroidTurn = (options) => options.client.post({
1288
+ security: [
1289
+ {
1290
+ key: "BearerAuth",
1291
+ scheme: "bearer",
1292
+ type: "http"
1293
+ }
1294
+ ],
1295
+ url: "/api/v0/droid/execute",
1296
+ ...options,
1297
+ headers: {
1298
+ "Content-Type": "application/json",
1299
+ ...headersToRecord(options.headers)
1300
+ }
1301
+ });
1302
+ var listEnvironments = (options) => options.client.get({
1303
+ security: [
1304
+ {
1305
+ key: "BearerAuth",
1306
+ scheme: "bearer",
1307
+ type: "http"
1308
+ }
1309
+ ],
1310
+ url: "/api/v0/environments",
1311
+ ...options
1312
+ });
1313
+ var createEnvironment = (options) => options.client.post({
1314
+ security: [
1315
+ {
1316
+ key: "BearerAuth",
1317
+ scheme: "bearer",
1318
+ type: "http"
1319
+ }
1320
+ ],
1321
+ url: "/api/v0/environments",
1322
+ ...options,
1323
+ headers: {
1324
+ "Content-Type": "application/json",
1325
+ ...headersToRecord(options.headers)
1326
+ }
1327
+ });
1328
+ var listEnvironmentBuildStatuses = (options) => options.client.get({
1329
+ security: [
1330
+ {
1331
+ key: "BearerAuth",
1332
+ scheme: "bearer",
1333
+ type: "http"
1334
+ }
1335
+ ],
1336
+ url: "/api/v0/environments/build-statuses",
1337
+ ...options
1338
+ });
1339
+ var ensureDefaultEnvironment = (options) => options.client.post({
1340
+ security: [
1341
+ {
1342
+ key: "BearerAuth",
1343
+ scheme: "bearer",
1344
+ type: "http"
1345
+ }
1346
+ ],
1347
+ url: "/api/v0/environments/default",
1348
+ ...options
1349
+ });
1350
+ var setDefaultEnvironment = (options) => options.client.put({
1351
+ security: [
1352
+ {
1353
+ key: "BearerAuth",
1354
+ scheme: "bearer",
1355
+ type: "http"
1356
+ }
1357
+ ],
1358
+ url: "/api/v0/environments/default",
1359
+ ...options,
1360
+ headers: {
1361
+ "Content-Type": "application/json",
1362
+ ...headersToRecord(options.headers)
1363
+ }
1364
+ });
1365
+ var listEnvironmentSources = (options) => options.client.get({
1366
+ security: [
1367
+ {
1368
+ key: "BearerAuth",
1369
+ scheme: "bearer",
1370
+ type: "http"
1371
+ }
1372
+ ],
1373
+ url: "/api/v0/environments/source-options",
1374
+ ...options
1375
+ });
1376
+ var deleteEnvironment = (options) => options.client.delete({
1377
+ security: [
1378
+ {
1379
+ key: "BearerAuth",
1380
+ scheme: "bearer",
1381
+ type: "http"
1382
+ }
1383
+ ],
1384
+ url: "/api/v0/environments/{environmentId}",
1385
+ ...options
1386
+ });
1387
+ var getEnvironment = (options) => options.client.get({
1388
+ security: [
1389
+ {
1390
+ key: "BearerAuth",
1391
+ scheme: "bearer",
1392
+ type: "http"
1393
+ }
1394
+ ],
1395
+ url: "/api/v0/environments/{environmentId}",
1396
+ ...options
1397
+ });
1398
+ var updateEnvironment = (options) => options.client.patch({
1399
+ security: [
1400
+ {
1401
+ key: "BearerAuth",
1402
+ scheme: "bearer",
1403
+ type: "http"
1404
+ }
1405
+ ],
1406
+ url: "/api/v0/environments/{environmentId}",
1407
+ ...options,
1408
+ headers: {
1409
+ "Content-Type": "application/json",
1410
+ ...headersToRecord(options.headers)
1411
+ }
1412
+ });
1413
+ var getEnvironmentBuildDiagnostics = (options) => options.client.get({
1414
+ security: [
1415
+ {
1416
+ key: "BearerAuth",
1417
+ scheme: "bearer",
1418
+ type: "http"
1419
+ }
1420
+ ],
1421
+ url: "/api/v0/environments/{environmentId}/build-diagnostics",
1422
+ ...options
1423
+ });
1424
+ var retryEnvironmentBuild = (options) => options.client.post({
1425
+ security: [
1426
+ {
1427
+ key: "BearerAuth",
1428
+ scheme: "bearer",
1429
+ type: "http"
1430
+ }
1431
+ ],
1432
+ url: "/api/v0/environments/{environmentId}/builds",
1433
+ ...options
1434
+ });
1435
+ var cancelEnvironmentBuild = (options) => options.client.post({
1436
+ security: [
1437
+ {
1438
+ key: "BearerAuth",
1439
+ scheme: "bearer",
1440
+ type: "http"
1441
+ }
1442
+ ],
1443
+ url: "/api/v0/environments/{environmentId}/builds/{buildId}/cancel",
1444
+ ...options
1445
+ });
1446
+ var getEnvironmentBuildAttemptDiagnostics = (options) => options.client.get({
1447
+ security: [
1448
+ {
1449
+ key: "BearerAuth",
1450
+ scheme: "bearer",
1451
+ type: "http"
1452
+ }
1453
+ ],
1454
+ url: "/api/v0/environments/{environmentId}/builds/{buildId}/diagnostics",
1455
+ ...options
1456
+ });
1457
+ var listMachineTemplates = (options) => options.client.get({
1458
+ security: [
1459
+ {
1460
+ key: "BearerAuth",
1461
+ scheme: "bearer",
1462
+ type: "http"
1463
+ }
1464
+ ],
1465
+ url: "/api/v0/machines/templates",
1466
+ ...options
1467
+ });
1468
+ var createMachineTemplate = (options) => options.client.post({
1469
+ security: [
1470
+ {
1471
+ key: "BearerAuth",
1472
+ scheme: "bearer",
1473
+ type: "http"
1474
+ }
1475
+ ],
1476
+ url: "/api/v0/machines/templates",
1477
+ ...options,
1478
+ headers: {
1479
+ "Content-Type": "application/json",
1480
+ ...headersToRecord(options.headers)
1481
+ }
1482
+ });
1483
+ var deleteMachineTemplate = (options) => options.client.delete({
1484
+ security: [
1485
+ {
1486
+ key: "BearerAuth",
1487
+ scheme: "bearer",
1488
+ type: "http"
1489
+ }
1490
+ ],
1491
+ url: "/api/v0/machines/templates/{templateId}",
1492
+ ...options
1493
+ });
1494
+ var getMachineTemplate = (options) => options.client.get({
1495
+ security: [
1496
+ {
1497
+ key: "BearerAuth",
1498
+ scheme: "bearer",
1499
+ type: "http"
1500
+ }
1501
+ ],
1502
+ url: "/api/v0/machines/templates/{templateId}",
1503
+ ...options
1504
+ });
1505
+ var updateMachineTemplate = (options) => options.client.patch({
1506
+ security: [
1507
+ {
1508
+ key: "BearerAuth",
1509
+ scheme: "bearer",
1510
+ type: "http"
1511
+ }
1512
+ ],
1513
+ url: "/api/v0/machines/templates/{templateId}",
1514
+ ...options,
1515
+ headers: {
1516
+ "Content-Type": "application/json",
1517
+ ...headersToRecord(options.headers)
1518
+ }
1519
+ });
1520
+ var listOrganizationAuditEvents = (options) => options.client.get({
1521
+ security: [
1522
+ {
1523
+ key: "BearerAuth",
1524
+ scheme: "bearer",
1525
+ type: "http"
1526
+ }
1527
+ ],
1528
+ url: "/api/v0/organization/audit",
1529
+ ...options
1530
+ });
1531
+ var listOrganizationComputerSecrets = (options) => options.client.get({
1532
+ security: [
1533
+ {
1534
+ key: "BearerAuth",
1535
+ scheme: "bearer",
1536
+ type: "http"
1537
+ }
1538
+ ],
1539
+ url: "/api/v0/organization/computer-secrets",
1540
+ ...options
1541
+ });
1542
+ var updateOrganizationComputerSecrets = (options) => options.client.patch({
1543
+ security: [
1544
+ {
1545
+ key: "BearerAuth",
1546
+ scheme: "bearer",
1547
+ type: "http"
1548
+ }
1549
+ ],
1550
+ url: "/api/v0/organization/computer-secrets",
1551
+ ...options,
1552
+ headers: {
1553
+ "Content-Type": "application/json",
1554
+ ...headersToRecord(options.headers)
1555
+ }
1556
+ });
1557
+ var listEnterpriseControlChangeHistory = (options) => options.client.get({
1558
+ security: [
1559
+ {
1560
+ key: "BearerAuth",
1561
+ scheme: "bearer",
1562
+ type: "http"
1563
+ }
1564
+ ],
1565
+ url: "/api/v0/organization/enterprise-controls/history",
1566
+ ...options
1567
+ });
1568
+ var getGlobalLimit = (options) => options.client.get({
1569
+ security: [
1570
+ {
1571
+ key: "BearerAuth",
1572
+ scheme: "bearer",
1573
+ type: "http"
1574
+ }
1575
+ ],
1576
+ url: "/api/v0/organization/usage/limits/global",
1577
+ ...options
1578
+ });
1579
+ var setGlobalLimit = (options) => options.client.put({
1580
+ security: [
1581
+ {
1582
+ key: "BearerAuth",
1583
+ scheme: "bearer",
1584
+ type: "http"
1585
+ }
1586
+ ],
1587
+ url: "/api/v0/organization/usage/limits/global",
1588
+ ...options,
1589
+ headers: {
1590
+ "Content-Type": "application/json",
1591
+ ...headersToRecord(options.headers)
1592
+ }
1593
+ });
1594
+ var getGroupLimits = (options) => options.client.get({
1595
+ security: [
1596
+ {
1597
+ key: "BearerAuth",
1598
+ scheme: "bearer",
1599
+ type: "http"
1600
+ }
1601
+ ],
1602
+ url: "/api/v0/organization/usage/limits/groups",
1603
+ ...options
1604
+ });
1605
+ var setGroupLimits = (options) => options.client.put({
1606
+ security: [
1607
+ {
1608
+ key: "BearerAuth",
1609
+ scheme: "bearer",
1610
+ type: "http"
1611
+ }
1612
+ ],
1613
+ url: "/api/v0/organization/usage/limits/groups",
1614
+ ...options,
1615
+ headers: {
1616
+ "Content-Type": "application/json",
1617
+ ...headersToRecord(options.headers)
1618
+ }
1619
+ });
1620
+ var getSharedUserLimits = (options) => options.client.get({
1621
+ security: [
1622
+ {
1623
+ key: "BearerAuth",
1624
+ scheme: "bearer",
1625
+ type: "http"
1626
+ }
1627
+ ],
1628
+ url: "/api/v0/organization/usage/limits/shared",
1629
+ ...options
1630
+ });
1631
+ var setSharedUserLimits = (options) => options.client.put({
1632
+ security: [
1633
+ {
1634
+ key: "BearerAuth",
1635
+ scheme: "bearer",
1636
+ type: "http"
1637
+ }
1638
+ ],
1639
+ url: "/api/v0/organization/usage/limits/shared",
1640
+ ...options,
1641
+ headers: {
1642
+ "Content-Type": "application/json",
1643
+ ...headersToRecord(options.headers)
1644
+ }
1645
+ });
1646
+ var getUserLimits = (options) => options.client.get(
1647
+ {
1648
+ security: [
1649
+ {
1650
+ key: "BearerAuth",
1651
+ scheme: "bearer",
1652
+ type: "http"
1653
+ }
1654
+ ],
1655
+ url: "/api/v0/organization/usage/limits/users",
1656
+ ...options
1657
+ }
1658
+ );
1659
+ var setUserLimits = (options) => options.client.put(
1660
+ {
1661
+ security: [
1662
+ {
1663
+ key: "BearerAuth",
1664
+ scheme: "bearer",
1665
+ type: "http"
1666
+ }
1667
+ ],
1668
+ url: "/api/v0/organization/usage/limits/users",
1669
+ ...options,
1670
+ headers: {
1671
+ "Content-Type": "application/json",
1672
+ ...headersToRecord(options.headers)
1673
+ }
1674
+ }
1675
+ );
1676
+ var removeUser = (options) => options.client.delete({
1677
+ security: [
1678
+ {
1679
+ key: "BearerAuth",
1680
+ scheme: "bearer",
1681
+ type: "http"
1682
+ }
1683
+ ],
1684
+ url: "/api/v0/organization/users",
1685
+ ...options
1686
+ });
1687
+ var listOrganizationUsers = (options) => options.client.get({
1688
+ security: [
1689
+ {
1690
+ key: "BearerAuth",
1691
+ scheme: "bearer",
1692
+ type: "http"
1693
+ }
1694
+ ],
1695
+ url: "/api/v0/organization/users",
1696
+ ...options
1697
+ });
1698
+ var inviteUser = (options) => options.client.post({
1699
+ security: [
1700
+ {
1701
+ key: "BearerAuth",
1702
+ scheme: "bearer",
1703
+ type: "http"
1704
+ }
1705
+ ],
1706
+ url: "/api/v0/organization/users/invite",
1707
+ ...options,
1708
+ headers: {
1709
+ "Content-Type": "application/json",
1710
+ ...headersToRecord(options.headers)
1711
+ }
1712
+ });
1713
+ var listServiceAccounts = (options) => options.client.get({
1714
+ security: [
1715
+ {
1716
+ key: "BearerAuth",
1717
+ scheme: "bearer",
1718
+ type: "http"
1719
+ }
1720
+ ],
1721
+ url: "/api/v0/service-accounts",
1722
+ ...options
1723
+ });
1724
+ var createServiceAccount = (options) => options.client.post({
1725
+ security: [
1726
+ {
1727
+ key: "BearerAuth",
1728
+ scheme: "bearer",
1729
+ type: "http"
1730
+ }
1731
+ ],
1732
+ url: "/api/v0/service-accounts",
1733
+ ...options,
1734
+ headers: {
1735
+ "Content-Type": "application/json",
1736
+ ...headersToRecord(options.headers)
1737
+ }
1738
+ });
1739
+ var deleteServiceAccount = (options) => options.client.delete({
1740
+ security: [
1741
+ {
1742
+ key: "BearerAuth",
1743
+ scheme: "bearer",
1744
+ type: "http"
1745
+ }
1746
+ ],
1747
+ url: "/api/v0/service-accounts/{serviceAccountId}",
1748
+ ...options
1749
+ });
1750
+ var getServiceAccount = (options) => options.client.get({
1751
+ security: [
1752
+ {
1753
+ key: "BearerAuth",
1754
+ scheme: "bearer",
1755
+ type: "http"
1756
+ }
1757
+ ],
1758
+ url: "/api/v0/service-accounts/{serviceAccountId}",
1759
+ ...options
1760
+ });
1761
+ var updateServiceAccount = (options) => options.client.patch({
1762
+ security: [
1763
+ {
1764
+ key: "BearerAuth",
1765
+ scheme: "bearer",
1766
+ type: "http"
1767
+ }
1768
+ ],
1769
+ url: "/api/v0/service-accounts/{serviceAccountId}",
1770
+ ...options,
1771
+ headers: {
1772
+ "Content-Type": "application/json",
1773
+ ...headersToRecord(options.headers)
1774
+ }
1775
+ });
1776
+ var listServiceAccountApiKeys = (options) => options.client.get({
1777
+ security: [
1778
+ {
1779
+ key: "BearerAuth",
1780
+ scheme: "bearer",
1781
+ type: "http"
1782
+ }
1783
+ ],
1784
+ url: "/api/v0/service-accounts/{serviceAccountId}/api-keys",
1785
+ ...options
1786
+ });
1787
+ var createServiceAccountApiKey = (options) => options.client.post({
1788
+ security: [
1789
+ {
1790
+ key: "BearerAuth",
1791
+ scheme: "bearer",
1792
+ type: "http"
1793
+ }
1794
+ ],
1795
+ url: "/api/v0/service-accounts/{serviceAccountId}/api-keys",
1796
+ ...options,
1797
+ headers: {
1798
+ "Content-Type": "application/json",
1799
+ ...headersToRecord(options.headers)
1800
+ }
1801
+ });
1802
+ var revokeServiceAccountApiKey = (options) => options.client.post({
1803
+ security: [
1804
+ {
1805
+ key: "BearerAuth",
1806
+ scheme: "bearer",
1807
+ type: "http"
1808
+ }
1809
+ ],
1810
+ url: "/api/v0/service-accounts/{serviceAccountId}/api-keys/{keyId}/revoke",
1811
+ ...options
1812
+ });
1813
+ var rotateServiceAccountApiKey = (options) => options.client.post({
1814
+ security: [
1815
+ {
1816
+ key: "BearerAuth",
1817
+ scheme: "bearer",
1818
+ type: "http"
1819
+ }
1820
+ ],
1821
+ url: "/api/v0/service-accounts/{serviceAccountId}/api-keys/{keyId}/rotate",
1822
+ ...options,
1823
+ headers: {
1824
+ "Content-Type": "application/json",
1825
+ ...headersToRecord(options.headers)
1826
+ }
1827
+ });
1828
+ var listSessions = (options) => options.client.get({
1829
+ security: [
1830
+ {
1831
+ key: "BearerAuth",
1832
+ scheme: "bearer",
1833
+ type: "http"
1834
+ }
1835
+ ],
1836
+ url: "/api/v0/sessions",
1837
+ ...options
1838
+ });
1839
+ var createSession = (options) => options.client.post({
1840
+ security: [
1841
+ {
1842
+ key: "BearerAuth",
1843
+ scheme: "bearer",
1844
+ type: "http"
1845
+ }
1846
+ ],
1847
+ url: "/api/v0/sessions",
1848
+ ...options,
1849
+ headers: {
1850
+ "Content-Type": "application/json",
1851
+ ...headersToRecord(options.headers)
1852
+ }
1853
+ });
1854
+ var listWorkstreams = (options) => options.client.get({
1855
+ security: [
1856
+ {
1857
+ key: "BearerAuth",
1858
+ scheme: "bearer",
1859
+ type: "http"
1860
+ }
1861
+ ],
1862
+ url: "/api/v0/sessions/workstreams",
1863
+ ...options
1864
+ });
1865
+ var createWorkstream = (options) => options.client.post({
1866
+ security: [
1867
+ {
1868
+ key: "BearerAuth",
1869
+ scheme: "bearer",
1870
+ type: "http"
1871
+ }
1872
+ ],
1873
+ url: "/api/v0/sessions/workstreams",
1874
+ ...options,
1875
+ headers: {
1876
+ "Content-Type": "application/json",
1877
+ ...headersToRecord(options.headers)
1878
+ }
1879
+ });
1880
+ var deleteSession = (options) => options.client.delete({
1881
+ security: [
1882
+ {
1883
+ key: "BearerAuth",
1884
+ scheme: "bearer",
1885
+ type: "http"
1886
+ }
1887
+ ],
1888
+ url: "/api/v0/sessions/{sessionId}",
1889
+ ...options
1890
+ });
1891
+ var getSession = (options) => options.client.get({
1892
+ security: [
1893
+ {
1894
+ key: "BearerAuth",
1895
+ scheme: "bearer",
1896
+ type: "http"
1897
+ }
1898
+ ],
1899
+ url: "/api/v0/sessions/{sessionId}",
1900
+ ...options
1901
+ });
1902
+ var updateSession = (options) => options.client.patch({
1903
+ security: [
1904
+ {
1905
+ key: "BearerAuth",
1906
+ scheme: "bearer",
1907
+ type: "http"
1908
+ }
1909
+ ],
1910
+ url: "/api/v0/sessions/{sessionId}",
1911
+ ...options,
1912
+ headers: {
1913
+ "Content-Type": "application/json",
1914
+ ...headersToRecord(options.headers)
1915
+ }
1916
+ });
1917
+ var listChildSessions = (options) => options.client.get({
1918
+ security: [
1919
+ {
1920
+ key: "BearerAuth",
1921
+ scheme: "bearer",
1922
+ type: "http"
1923
+ }
1924
+ ],
1925
+ url: "/api/v0/sessions/{sessionId}/children",
1926
+ ...options
1927
+ });
1928
+ var listSessionElicitations = (options) => options.client.get({
1929
+ security: [
1930
+ {
1931
+ key: "BearerAuth",
1932
+ scheme: "bearer",
1933
+ type: "http"
1934
+ }
1935
+ ],
1936
+ url: "/api/v0/sessions/{sessionId}/elicitations",
1937
+ ...options
1938
+ });
1939
+ var answerSessionElicitation = (options) => options.client.post({
1940
+ security: [
1941
+ {
1942
+ key: "BearerAuth",
1943
+ scheme: "bearer",
1944
+ type: "http"
1945
+ }
1946
+ ],
1947
+ url: "/api/v0/sessions/{sessionId}/elicitations/{requestId}",
1948
+ ...options,
1949
+ headers: {
1950
+ "Content-Type": "application/json",
1951
+ ...headersToRecord(options.headers)
1952
+ }
1953
+ });
1954
+ var interruptSession = (options) => options.client.post({
1955
+ security: [
1956
+ {
1957
+ key: "BearerAuth",
1958
+ scheme: "bearer",
1959
+ type: "http"
1960
+ }
1961
+ ],
1962
+ url: "/api/v0/sessions/{sessionId}/interrupt",
1963
+ ...options
1964
+ });
1965
+ var getMessages = (options) => options.client.get({
1966
+ security: [
1967
+ {
1968
+ key: "BearerAuth",
1969
+ scheme: "bearer",
1970
+ type: "http"
1971
+ }
1972
+ ],
1973
+ url: "/api/v0/sessions/{sessionId}/messages",
1974
+ ...options
1975
+ });
1976
+ var postMessage = (options) => options.client.post({
1977
+ security: [
1978
+ {
1979
+ key: "BearerAuth",
1980
+ scheme: "bearer",
1981
+ type: "http"
1982
+ }
1983
+ ],
1984
+ url: "/api/v0/sessions/{sessionId}/messages",
1985
+ ...options,
1986
+ headers: {
1987
+ "Content-Type": "application/json",
1988
+ ...headersToRecord(options.headers)
1989
+ }
1990
+ });
1991
+ var getMessage = (options) => options.client.get({
1992
+ security: [
1993
+ {
1994
+ key: "BearerAuth",
1995
+ scheme: "bearer",
1996
+ type: "http"
1997
+ }
1998
+ ],
1999
+ url: "/api/v0/sessions/{sessionId}/messages/{messageId}",
2000
+ ...options
2001
+ });
2002
+ var listWikiRuns = (options) => options.client.get({
2003
+ security: [
2004
+ {
2005
+ key: "BearerAuth",
2006
+ scheme: "bearer",
2007
+ type: "http"
2008
+ }
2009
+ ],
2010
+ url: "/api/v0/wiki",
2011
+ ...options
2012
+ });
2013
+ var createWikiRun = (options) => options.client.post({
2014
+ security: [
2015
+ {
2016
+ key: "BearerAuth",
2017
+ scheme: "bearer",
2018
+ type: "http"
2019
+ }
2020
+ ],
2021
+ url: "/api/v0/wiki",
2022
+ ...options,
2023
+ headers: {
2024
+ "Content-Type": "application/json",
2025
+ ...headersToRecord(options.headers)
2026
+ }
2027
+ });
2028
+ var listWikiRunHistory = (options) => options.client.get({
2029
+ security: [
2030
+ {
2031
+ key: "BearerAuth",
2032
+ scheme: "bearer",
2033
+ type: "http"
2034
+ }
2035
+ ],
2036
+ url: "/api/v0/wiki/history/{repoUrl}",
2037
+ ...options
2038
+ });
2039
+ var getWikiUploadAccess = (options) => options.client.get({
2040
+ security: [
2041
+ {
2042
+ key: "BearerAuth",
2043
+ scheme: "bearer",
2044
+ type: "http"
2045
+ }
2046
+ ],
2047
+ url: "/api/v0/wiki/upload-access",
2048
+ ...options
2049
+ });
2050
+ var createWikiVideoUploadUrl = (options) => options.client.post({
2051
+ security: [
2052
+ {
2053
+ key: "BearerAuth",
2054
+ scheme: "bearer",
2055
+ type: "http"
2056
+ }
2057
+ ],
2058
+ url: "/api/v0/wiki/video-upload-url",
2059
+ ...options,
2060
+ headers: {
2061
+ "Content-Type": "application/json",
2062
+ ...headersToRecord(options.headers)
2063
+ }
2064
+ });
2065
+ var deleteWikiRun = (options) => options.client.delete({
2066
+ security: [
2067
+ {
2068
+ key: "BearerAuth",
2069
+ scheme: "bearer",
2070
+ type: "http"
2071
+ }
2072
+ ],
2073
+ url: "/api/v0/wiki/{wikiRunId}",
2074
+ ...options
2075
+ });
2076
+ var getWikiRun = (options) => options.client.get({
2077
+ security: [
2078
+ {
2079
+ key: "BearerAuth",
2080
+ scheme: "bearer",
2081
+ type: "http"
2082
+ }
2083
+ ],
2084
+ url: "/api/v0/wiki/{wikiRunId}",
2085
+ ...options
2086
+ });
2087
+ var exportWikiRun = (options) => options.client.get(
2088
+ {
2089
+ security: [
2090
+ {
2091
+ key: "BearerAuth",
2092
+ scheme: "bearer",
2093
+ type: "http"
2094
+ }
2095
+ ],
2096
+ url: "/api/v0/wiki/{wikiRunId}/export",
2097
+ ...options
2098
+ }
2099
+ );
2100
+ var getWikiPage = (options) => options.client.get({
2101
+ security: [
2102
+ {
2103
+ key: "BearerAuth",
2104
+ scheme: "bearer",
2105
+ type: "http"
2106
+ }
2107
+ ],
2108
+ url: "/api/v0/wiki/{wikiRunId}/pages/{pageId}",
2109
+ ...options
2110
+ });
2111
+ var updateWikiRunPrivacy = (options) => options.client.post({
2112
+ security: [
2113
+ {
2114
+ key: "BearerAuth",
2115
+ scheme: "bearer",
2116
+ type: "http"
2117
+ }
2118
+ ],
2119
+ url: "/api/v0/wiki/{wikiRunId}/privacy",
2120
+ ...options,
2121
+ headers: {
2122
+ "Content-Type": "application/json",
2123
+ ...headersToRecord(options.headers)
2124
+ }
2125
+ });
2126
+ var searchWikiRun = (options) => options.client.get(
2127
+ {
2128
+ security: [
2129
+ {
2130
+ key: "BearerAuth",
2131
+ scheme: "bearer",
2132
+ type: "http"
2133
+ }
2134
+ ],
2135
+ url: "/api/v0/wiki/{wikiRunId}/search",
2136
+ ...options
2137
+ }
2138
+ );
2139
+
2140
+
2141
+
2142
+
2143
+
2144
+
2145
+
2146
+
2147
+
2148
+
2149
+
2150
+
2151
+
2152
+
2153
+
2154
+
2155
+
2156
+
2157
+
2158
+
2159
+
2160
+
2161
+
2162
+
2163
+
2164
+
2165
+
2166
+
2167
+
2168
+
2169
+
2170
+
2171
+
2172
+
2173
+
2174
+
2175
+
2176
+
2177
+
2178
+
2179
+
2180
+
2181
+
2182
+
2183
+
2184
+
2185
+
2186
+
2187
+
2188
+
2189
+
2190
+
2191
+
2192
+
2193
+
2194
+
2195
+
2196
+
2197
+
2198
+
2199
+
2200
+
2201
+
2202
+
2203
+
2204
+
2205
+
2206
+
2207
+
2208
+
2209
+
2210
+
2211
+
2212
+
2213
+
2214
+
2215
+
2216
+
2217
+
2218
+
2219
+
2220
+
2221
+
2222
+
2223
+
2224
+
2225
+
2226
+
2227
+
2228
+
2229
+
2230
+
2231
+
2232
+
2233
+
2234
+
2235
+
2236
+
2237
+
2238
+
2239
+
2240
+
2241
+
2242
+
2243
+
2244
+
2245
+
2246
+
2247
+
2248
+
2249
+
2250
+
2251
+
2252
+
2253
+
2254
+
2255
+
2256
+
2257
+
2258
+
2259
+
2260
+
2261
+
2262
+
2263
+
2264
+
2265
+
2266
+
2267
+ exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.DEFAULT_BASE_URL = DEFAULT_BASE_URL; exports.createFactoryClient = createFactoryClient; exports.verifyActAsGrant = verifyActAsGrant; exports.listAutomations = listAutomations; exports.createAutomation = createAutomation; exports.openCiWorkflowPullRequest = openCiWorkflowPullRequest; exports.listCiAutomationJobs = listCiAutomationJobs; exports.listCiEligibleRepositories = listCiEligibleRepositories; exports.listCiRepositoryOwners = listCiRepositoryOwners; exports.listCiAutomationRuns = listCiAutomationRuns; exports.scanCiRepositories = scanCiRepositories; exports.getAutomationHealth = getAutomationHealth; exports.getAutomationOrgDefaultTarget = getAutomationOrgDefaultTarget; exports.getAutomationRunStats = getAutomationRunStats; exports.deleteAutomation = deleteAutomation; exports.getAutomation = getAutomation; exports.updateAutomation = updateAutomation; exports.startAutomationEditSession = startAutomationEditSession; exports.listAutomationMemory = listAutomationMemory; exports.editAutomationMemory = editAutomationMemory; exports.getAutomationMemoryFile = getAutomationMemoryFile; exports.runAutomation = runAutomation; exports.listAutomationRunAlerts = listAutomationRunAlerts; exports.listAutomationRuns = listAutomationRuns; exports.updateAutomationRunOutcome = updateAutomationRunOutcome; exports.startAutomationSetupSession = startAutomationSetupSession; exports.listAutomationSkills = listAutomationSkills; exports.editAutomationSkill = editAutomationSkill; exports.getAutomationSkillFile = getAutomationSkillFile; exports.listAutomationSlackDeliveries = listAutomationSlackDeliveries; exports.listAutomationWebhookDeliveries = listAutomationWebhookDeliveries; exports.rotateAutomationWebhook = rotateAutomationWebhook; exports.listComputers = listComputers; exports.createComputer = createComputer; exports.bulkCreateComputers = bulkCreateComputers; exports.getComputerByName = getComputerByName; exports.listAvailableComputerProviders = listAvailableComputerProviders; exports.deleteComputer = deleteComputer; exports.getComputer = getComputer; exports.updateComputer = updateComputer; exports.recordComputerActivity = recordComputerActivity; exports.completeComputerFileUpload = completeComputerFileUpload; exports.createComputerFileDownload = createComputerFileDownload; exports.createComputerFileUpload = createComputerFileUpload; exports.retryInstallDeps = retryInstallDeps; exports.getComputerMetrics = getComputerMetrics; exports.refreshComputer = refreshComputer; exports.restartComputer = restartComputer; exports.listDatasets = listDatasets; exports.importDataset = importDataset; exports.createDatasetUpload = createDatasetUpload; exports.finalizeDatasetUpload = finalizeDatasetUpload; exports.getDataset = getDataset; exports.getDatasetSource = getDatasetSource; exports.listDatasetTasks = listDatasetTasks; exports.getDatasetTaskFiles = getDatasetTaskFiles; exports.executeDroidTurn = executeDroidTurn; exports.listEnvironments = listEnvironments; exports.createEnvironment = createEnvironment; exports.listEnvironmentBuildStatuses = listEnvironmentBuildStatuses; exports.ensureDefaultEnvironment = ensureDefaultEnvironment; exports.setDefaultEnvironment = setDefaultEnvironment; exports.listEnvironmentSources = listEnvironmentSources; exports.deleteEnvironment = deleteEnvironment; exports.getEnvironment = getEnvironment; exports.updateEnvironment = updateEnvironment; exports.getEnvironmentBuildDiagnostics = getEnvironmentBuildDiagnostics; exports.retryEnvironmentBuild = retryEnvironmentBuild; exports.cancelEnvironmentBuild = cancelEnvironmentBuild; exports.getEnvironmentBuildAttemptDiagnostics = getEnvironmentBuildAttemptDiagnostics; exports.listMachineTemplates = listMachineTemplates; exports.createMachineTemplate = createMachineTemplate; exports.deleteMachineTemplate = deleteMachineTemplate; exports.getMachineTemplate = getMachineTemplate; exports.updateMachineTemplate = updateMachineTemplate; exports.listOrganizationAuditEvents = listOrganizationAuditEvents; exports.listOrganizationComputerSecrets = listOrganizationComputerSecrets; exports.updateOrganizationComputerSecrets = updateOrganizationComputerSecrets; exports.listEnterpriseControlChangeHistory = listEnterpriseControlChangeHistory; exports.getGlobalLimit = getGlobalLimit; exports.setGlobalLimit = setGlobalLimit; exports.getGroupLimits = getGroupLimits; exports.setGroupLimits = setGroupLimits; exports.getSharedUserLimits = getSharedUserLimits; exports.setSharedUserLimits = setSharedUserLimits; exports.getUserLimits = getUserLimits; exports.setUserLimits = setUserLimits; exports.removeUser = removeUser; exports.listOrganizationUsers = listOrganizationUsers; exports.inviteUser = inviteUser; exports.listServiceAccounts = listServiceAccounts; exports.createServiceAccount = createServiceAccount; exports.deleteServiceAccount = deleteServiceAccount; exports.getServiceAccount = getServiceAccount; exports.updateServiceAccount = updateServiceAccount; exports.listServiceAccountApiKeys = listServiceAccountApiKeys; exports.createServiceAccountApiKey = createServiceAccountApiKey; exports.revokeServiceAccountApiKey = revokeServiceAccountApiKey; exports.rotateServiceAccountApiKey = rotateServiceAccountApiKey; exports.listSessions = listSessions; exports.createSession = createSession; exports.listWorkstreams = listWorkstreams; exports.createWorkstream = createWorkstream; exports.deleteSession = deleteSession; exports.getSession = getSession; exports.updateSession = updateSession; exports.listChildSessions = listChildSessions; exports.listSessionElicitations = listSessionElicitations; exports.answerSessionElicitation = answerSessionElicitation; exports.interruptSession = interruptSession; exports.getMessages = getMessages; exports.postMessage = postMessage; exports.getMessage = getMessage; exports.listWikiRuns = listWikiRuns; exports.createWikiRun = createWikiRun; exports.listWikiRunHistory = listWikiRunHistory; exports.getWikiUploadAccess = getWikiUploadAccess; exports.createWikiVideoUploadUrl = createWikiVideoUploadUrl; exports.deleteWikiRun = deleteWikiRun; exports.getWikiRun = getWikiRun; exports.exportWikiRun = exportWikiRun; exports.getWikiPage = getWikiPage; exports.updateWikiRunPrivacy = updateWikiRunPrivacy; exports.searchWikiRun = searchWikiRun;
2268
+ //# sourceMappingURL=chunk-ZQ7TS73S.js.map