@mutagent/sdk 0.12.99 → 0.13.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 +1069 -1057
- package/dist/commonjs/funcs/sandbox-images-admin-list-sandbox-images.d.ts +16 -0
- package/dist/commonjs/funcs/sandbox-images-admin-list-sandbox-images.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-images-admin-list-sandbox-images.js +117 -0
- package/dist/commonjs/funcs/sandbox-images-admin-list-sandbox-images.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-images-admin-publish-sandbox-image.d.ts +16 -0
- package/dist/commonjs/funcs/sandbox-images-admin-publish-sandbox-image.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-images-admin-publish-sandbox-image.js +118 -0
- package/dist/commonjs/funcs/sandbox-images-admin-publish-sandbox-image.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-images-admin-set-sandbox-image-default.d.ts +16 -0
- package/dist/commonjs/funcs/sandbox-images-admin-set-sandbox-image-default.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-images-admin-set-sandbox-image-default.js +118 -0
- package/dist/commonjs/funcs/sandbox-images-admin-set-sandbox-image-default.js.map +1 -0
- package/dist/commonjs/funcs/software-factory-get-software-factory-run-recovery-bundle.d.ts +20 -0
- package/dist/commonjs/funcs/software-factory-get-software-factory-run-recovery-bundle.d.ts.map +1 -0
- package/dist/commonjs/funcs/software-factory-get-software-factory-run-recovery-bundle.js +130 -0
- package/dist/commonjs/funcs/software-factory-get-software-factory-run-recovery-bundle.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/sandbox-image-refusal-error.d.ts +22 -0
- package/dist/commonjs/models/errors/sandbox-image-refusal-error.d.ts.map +1 -0
- package/dist/commonjs/models/errors/sandbox-image-refusal-error.js +72 -0
- package/dist/commonjs/models/errors/sandbox-image-refusal-error.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +6 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +6 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/get-software-factory-run-recovery-bundle.d.ts +17 -0
- package/dist/commonjs/models/operations/get-software-factory-run-recovery-bundle.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-software-factory-run-recovery-bundle.js +50 -0
- package/dist/commonjs/models/operations/get-software-factory-run-recovery-bundle.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +4 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +4 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/list-sandbox-images.d.ts +15 -0
- package/dist/commonjs/models/operations/list-sandbox-images.d.ts.map +1 -0
- package/dist/commonjs/models/operations/list-sandbox-images.js +54 -0
- package/dist/commonjs/models/operations/list-sandbox-images.js.map +1 -0
- package/dist/commonjs/models/operations/publish-sandbox-image.d.ts +18 -0
- package/dist/commonjs/models/operations/publish-sandbox-image.d.ts.map +1 -0
- package/dist/commonjs/models/operations/publish-sandbox-image.js +56 -0
- package/dist/commonjs/models/operations/publish-sandbox-image.js.map +1 -0
- package/dist/commonjs/models/operations/set-sandbox-image-default.d.ts +18 -0
- package/dist/commonjs/models/operations/set-sandbox-image-default.d.ts.map +1 -0
- package/dist/commonjs/models/operations/set-sandbox-image-default.js +56 -0
- package/dist/commonjs/models/operations/set-sandbox-image-default.js.map +1 -0
- package/dist/commonjs/models/publish-sandbox-image-body.d.ts +89 -0
- package/dist/commonjs/models/publish-sandbox-image-body.d.ts.map +1 -0
- package/dist/commonjs/models/publish-sandbox-image-body.js +89 -0
- package/dist/commonjs/models/publish-sandbox-image-body.js.map +1 -0
- package/dist/commonjs/models/publish-sandbox-image-result.d.ts +20 -0
- package/dist/commonjs/models/publish-sandbox-image-result.d.ts.map +1 -0
- package/dist/commonjs/models/publish-sandbox-image-result.js +61 -0
- package/dist/commonjs/models/publish-sandbox-image-result.js.map +1 -0
- package/dist/commonjs/models/sandbox-image-list.d.ts +12 -0
- package/dist/commonjs/models/sandbox-image-list.d.ts.map +1 -0
- package/dist/commonjs/models/sandbox-image-list.js +53 -0
- package/dist/commonjs/models/sandbox-image-list.js.map +1 -0
- package/dist/commonjs/models/sandbox-image-release.d.ts +57 -0
- package/dist/commonjs/models/sandbox-image-release.d.ts.map +1 -0
- package/dist/commonjs/models/sandbox-image-release.js +94 -0
- package/dist/commonjs/models/sandbox-image-release.js.map +1 -0
- package/dist/commonjs/models/set-sandbox-image-default-body.d.ts +15 -0
- package/dist/commonjs/models/set-sandbox-image-default-body.d.ts.map +1 -0
- package/dist/commonjs/models/set-sandbox-image-default-body.js +49 -0
- package/dist/commonjs/models/set-sandbox-image-default-body.js.map +1 -0
- package/dist/commonjs/models/set-sandbox-image-default-result.d.ts +11 -0
- package/dist/commonjs/models/set-sandbox-image-default-result.d.ts.map +1 -0
- package/dist/commonjs/models/set-sandbox-image-default-result.js +52 -0
- package/dist/commonjs/models/set-sandbox-image-default-result.js.map +1 -0
- package/dist/commonjs/sdk/sandbox-images-admin.d.ts +18 -0
- package/dist/commonjs/sdk/sandbox-images-admin.d.ts.map +1 -0
- package/dist/commonjs/sdk/sandbox-images-admin.js +33 -0
- package/dist/commonjs/sdk/sandbox-images-admin.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/software-factory.d.ts +7 -0
- package/dist/commonjs/sdk/software-factory.d.ts.map +1 -1
- package/dist/commonjs/sdk/software-factory.js +10 -0
- package/dist/commonjs/sdk/software-factory.js.map +1 -1
- package/dist/esm/funcs/sandbox-images-admin-list-sandbox-images.d.ts +16 -0
- package/dist/esm/funcs/sandbox-images-admin-list-sandbox-images.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-images-admin-list-sandbox-images.js +81 -0
- package/dist/esm/funcs/sandbox-images-admin-list-sandbox-images.js.map +1 -0
- package/dist/esm/funcs/sandbox-images-admin-publish-sandbox-image.d.ts +16 -0
- package/dist/esm/funcs/sandbox-images-admin-publish-sandbox-image.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-images-admin-publish-sandbox-image.js +82 -0
- package/dist/esm/funcs/sandbox-images-admin-publish-sandbox-image.js.map +1 -0
- package/dist/esm/funcs/sandbox-images-admin-set-sandbox-image-default.d.ts +16 -0
- package/dist/esm/funcs/sandbox-images-admin-set-sandbox-image-default.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-images-admin-set-sandbox-image-default.js +82 -0
- package/dist/esm/funcs/sandbox-images-admin-set-sandbox-image-default.js.map +1 -0
- package/dist/esm/funcs/software-factory-get-software-factory-run-recovery-bundle.d.ts +20 -0
- package/dist/esm/funcs/software-factory-get-software-factory-run-recovery-bundle.d.ts.map +1 -0
- package/dist/esm/funcs/software-factory-get-software-factory-run-recovery-bundle.js +94 -0
- package/dist/esm/funcs/software-factory-get-software-factory-run-recovery-bundle.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/sandbox-image-refusal-error.d.ts +22 -0
- package/dist/esm/models/errors/sandbox-image-refusal-error.d.ts.map +1 -0
- package/dist/esm/models/errors/sandbox-image-refusal-error.js +35 -0
- package/dist/esm/models/errors/sandbox-image-refusal-error.js.map +1 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/get-software-factory-run-recovery-bundle.d.ts +17 -0
- package/dist/esm/models/operations/get-software-factory-run-recovery-bundle.d.ts.map +1 -0
- package/dist/esm/models/operations/get-software-factory-run-recovery-bundle.js +13 -0
- package/dist/esm/models/operations/get-software-factory-run-recovery-bundle.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +4 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +4 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/list-sandbox-images.d.ts +15 -0
- package/dist/esm/models/operations/list-sandbox-images.d.ts.map +1 -0
- package/dist/esm/models/operations/list-sandbox-images.js +17 -0
- package/dist/esm/models/operations/list-sandbox-images.js.map +1 -0
- package/dist/esm/models/operations/publish-sandbox-image.d.ts +18 -0
- package/dist/esm/models/operations/publish-sandbox-image.d.ts.map +1 -0
- package/dist/esm/models/operations/publish-sandbox-image.js +19 -0
- package/dist/esm/models/operations/publish-sandbox-image.js.map +1 -0
- package/dist/esm/models/operations/set-sandbox-image-default.d.ts +18 -0
- package/dist/esm/models/operations/set-sandbox-image-default.d.ts.map +1 -0
- package/dist/esm/models/operations/set-sandbox-image-default.js +19 -0
- package/dist/esm/models/operations/set-sandbox-image-default.js.map +1 -0
- package/dist/esm/models/publish-sandbox-image-body.d.ts +89 -0
- package/dist/esm/models/publish-sandbox-image-body.d.ts.map +1 -0
- package/dist/esm/models/publish-sandbox-image-body.js +48 -0
- package/dist/esm/models/publish-sandbox-image-body.js.map +1 -0
- package/dist/esm/models/publish-sandbox-image-result.d.ts +20 -0
- package/dist/esm/models/publish-sandbox-image-result.d.ts.map +1 -0
- package/dist/esm/models/publish-sandbox-image-result.js +24 -0
- package/dist/esm/models/publish-sandbox-image-result.js.map +1 -0
- package/dist/esm/models/sandbox-image-list.d.ts +12 -0
- package/dist/esm/models/sandbox-image-list.d.ts.map +1 -0
- package/dist/esm/models/sandbox-image-list.js +16 -0
- package/dist/esm/models/sandbox-image-list.js.map +1 -0
- package/dist/esm/models/sandbox-image-release.d.ts +57 -0
- package/dist/esm/models/sandbox-image-release.d.ts.map +1 -0
- package/dist/esm/models/sandbox-image-release.js +53 -0
- package/dist/esm/models/sandbox-image-release.js.map +1 -0
- package/dist/esm/models/set-sandbox-image-default-body.d.ts +15 -0
- package/dist/esm/models/set-sandbox-image-default-body.d.ts.map +1 -0
- package/dist/esm/models/set-sandbox-image-default-body.js +12 -0
- package/dist/esm/models/set-sandbox-image-default-body.js.map +1 -0
- package/dist/esm/models/set-sandbox-image-default-result.d.ts +11 -0
- package/dist/esm/models/set-sandbox-image-default-result.d.ts.map +1 -0
- package/dist/esm/models/set-sandbox-image-default-result.js +15 -0
- package/dist/esm/models/set-sandbox-image-default-result.js.map +1 -0
- package/dist/esm/sdk/sandbox-images-admin.d.ts +18 -0
- package/dist/esm/sdk/sandbox-images-admin.d.ts.map +1 -0
- package/dist/esm/sdk/sandbox-images-admin.js +29 -0
- package/dist/esm/sdk/sandbox-images-admin.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/software-factory.d.ts +7 -0
- package/dist/esm/sdk/software-factory.d.ts.map +1 -1
- package/dist/esm/sdk/software-factory.js +10 -0
- package/dist/esm/sdk/software-factory.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MutagentCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { MutagentError } from "../models/errors/mutagent-error.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as models from "../models/index.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { APIPromise } from "../types/async.js";
|
|
11
|
+
import { Result } from "../types/fp.js";
|
|
12
|
+
/**
|
|
13
|
+
* List sandbox image releases and the default
|
|
14
|
+
*/
|
|
15
|
+
export declare function sandboxImagesAdminListSandboxImages(client: MutagentCore, request?: operations.ListSandboxImagesRequest | undefined, options?: RequestOptions): APIPromise<Result<models.SandboxImageList, errors.ErrorResponse | errors.ErrorResponseWithStatus | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
16
|
+
//# sourceMappingURL=sandbox-images-admin-list-sandbox-images.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-images-admin-list-sandbox-images.d.ts","sourceRoot":"","sources":["../../../src/funcs/sandbox-images-admin-list-sandbox-images.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,UAAU,CAAC,wBAAwB,GAAG,SAAS,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,gBAAgB,EACrB,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,uBAAuB,GAC9B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.sandboxImagesAdminListSandboxImages = sandboxImagesAdminListSandboxImages;
|
|
40
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
41
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
|
+
const http_js_1 = require("../lib/http.js");
|
|
43
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
44
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
45
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
46
|
+
const security_js_1 = require("../lib/security.js");
|
|
47
|
+
const url_js_1 = require("../lib/url.js");
|
|
48
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
49
|
+
const models = __importStar(require("../models/index.js"));
|
|
50
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
51
|
+
const async_js_1 = require("../types/async.js");
|
|
52
|
+
/**
|
|
53
|
+
* List sandbox image releases and the default
|
|
54
|
+
*/
|
|
55
|
+
function sandboxImagesAdminListSandboxImages(client, request, options) {
|
|
56
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
57
|
+
}
|
|
58
|
+
async function $do(client, request, options) {
|
|
59
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => z.parse(z.optional(operations.ListSandboxImagesRequest$outboundSchema), value), "Input validation failed");
|
|
60
|
+
if (!parsed.ok) {
|
|
61
|
+
return [parsed, { status: "invalid" }];
|
|
62
|
+
}
|
|
63
|
+
const payload = parsed.value;
|
|
64
|
+
const body = null;
|
|
65
|
+
const path = (0, url_js_1.pathToFunc)("/api/admin/sandbox/images")();
|
|
66
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
67
|
+
Accept: "application/json",
|
|
68
|
+
"x-internal-api-key": (0, encodings_js_1.encodeSimple)("x-internal-api-key", payload?.["x-internal-api-key"], { explode: false, charEncoding: "none" }),
|
|
69
|
+
}));
|
|
70
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
71
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
72
|
+
const context = {
|
|
73
|
+
options: client._options,
|
|
74
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
75
|
+
operationID: "listSandboxImages",
|
|
76
|
+
oAuth2Scopes: null,
|
|
77
|
+
resolvedSecurity: requestSecurity,
|
|
78
|
+
securitySource: client._options.security,
|
|
79
|
+
retryConfig: options?.retries
|
|
80
|
+
|| client._options.retryConfig
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
83
|
+
};
|
|
84
|
+
const requestRes = client._createRequest(context, {
|
|
85
|
+
security: requestSecurity,
|
|
86
|
+
method: "GET",
|
|
87
|
+
baseURL: options?.serverURL,
|
|
88
|
+
path: path,
|
|
89
|
+
headers: headers,
|
|
90
|
+
body: body,
|
|
91
|
+
userAgent: client._options.userAgent,
|
|
92
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
93
|
+
}, options);
|
|
94
|
+
if (!requestRes.ok) {
|
|
95
|
+
return [requestRes, { status: "invalid" }];
|
|
96
|
+
}
|
|
97
|
+
const req = requestRes.value;
|
|
98
|
+
const doResult = await client._do(req, {
|
|
99
|
+
context,
|
|
100
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
101
|
+
retryConfig: context.retryConfig,
|
|
102
|
+
retryCodes: context.retryCodes,
|
|
103
|
+
});
|
|
104
|
+
if (!doResult.ok) {
|
|
105
|
+
return [doResult, { status: "request-error", request: req }];
|
|
106
|
+
}
|
|
107
|
+
const response = doResult.value;
|
|
108
|
+
const responseFields = {
|
|
109
|
+
HttpMeta: { Response: response, Request: req },
|
|
110
|
+
};
|
|
111
|
+
const [result] = await M.match(M.json(200, models.SandboxImageList$inboundSchema), M.jsonErr([400, 401, 403, 404], errors.ErrorResponse$inboundSchema), M.jsonErr(500, errors.ErrorResponseWithStatus$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
112
|
+
if (!result.ok) {
|
|
113
|
+
return [result, { status: "complete", request: req, response }];
|
|
114
|
+
}
|
|
115
|
+
return [result, { status: "complete", request: req, response }];
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=sandbox-images-admin-list-sandbox-images.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-images-admin-list-sandbox-images.js","sourceRoot":"","sources":["../../../src/funcs/sandbox-images-admin-list-sandbox-images.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,kFAwBC;AArDD,+CAAiC;AAEjC,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,2DAA6C;AAC7C,0EAA4D;AAC5D,gDAAwD;AAGxD;;GAEG;AACH,SAAgB,mCA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+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { MutagentError } from "../models/errors/mutagent-error.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as models from "../models/index.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { APIPromise } from "../types/async.js";
|
|
11
|
+
import { Result } from "../types/fp.js";
|
|
12
|
+
/**
|
|
13
|
+
* Publish a sandbox image release (does not change the default)
|
|
14
|
+
*/
|
|
15
|
+
export declare function sandboxImagesAdminPublishSandboxImage(client: MutagentCore, request: operations.PublishSandboxImageRequest, options?: RequestOptions): APIPromise<Result<models.PublishSandboxImageResult, errors.SandboxImageRefusalError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
16
|
+
//# sourceMappingURL=sandbox-images-admin-publish-sandbox-image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-images-admin-publish-sandbox-image.d.ts","sourceRoot":"","sources":["../../../src/funcs/sandbox-images-admin-publish-sandbox-image.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,yBAAyB,EAC9B,MAAM,CAAC,wBAAwB,GAC/B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.sandboxImagesAdminPublishSandboxImage = sandboxImagesAdminPublishSandboxImage;
|
|
40
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
41
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
|
+
const http_js_1 = require("../lib/http.js");
|
|
43
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
44
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
45
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
46
|
+
const security_js_1 = require("../lib/security.js");
|
|
47
|
+
const url_js_1 = require("../lib/url.js");
|
|
48
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
49
|
+
const models = __importStar(require("../models/index.js"));
|
|
50
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
51
|
+
const async_js_1 = require("../types/async.js");
|
|
52
|
+
/**
|
|
53
|
+
* Publish a sandbox image release (does not change the default)
|
|
54
|
+
*/
|
|
55
|
+
function sandboxImagesAdminPublishSandboxImage(client, request, options) {
|
|
56
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
57
|
+
}
|
|
58
|
+
async function $do(client, request, options) {
|
|
59
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => z.parse(operations.PublishSandboxImageRequest$outboundSchema, value), "Input validation failed");
|
|
60
|
+
if (!parsed.ok) {
|
|
61
|
+
return [parsed, { status: "invalid" }];
|
|
62
|
+
}
|
|
63
|
+
const payload = parsed.value;
|
|
64
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload.body, { explode: true });
|
|
65
|
+
const path = (0, url_js_1.pathToFunc)("/api/admin/sandbox/images")();
|
|
66
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
67
|
+
"Content-Type": "application/json",
|
|
68
|
+
Accept: "application/json",
|
|
69
|
+
"x-internal-api-key": (0, encodings_js_1.encodeSimple)("x-internal-api-key", payload["x-internal-api-key"], { explode: false, charEncoding: "none" }),
|
|
70
|
+
}));
|
|
71
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
72
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
73
|
+
const context = {
|
|
74
|
+
options: client._options,
|
|
75
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
76
|
+
operationID: "publishSandboxImage",
|
|
77
|
+
oAuth2Scopes: null,
|
|
78
|
+
resolvedSecurity: requestSecurity,
|
|
79
|
+
securitySource: client._options.security,
|
|
80
|
+
retryConfig: options?.retries
|
|
81
|
+
|| client._options.retryConfig
|
|
82
|
+
|| { strategy: "none" },
|
|
83
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
84
|
+
};
|
|
85
|
+
const requestRes = client._createRequest(context, {
|
|
86
|
+
security: requestSecurity,
|
|
87
|
+
method: "POST",
|
|
88
|
+
baseURL: options?.serverURL,
|
|
89
|
+
path: path,
|
|
90
|
+
headers: headers,
|
|
91
|
+
body: body,
|
|
92
|
+
userAgent: client._options.userAgent,
|
|
93
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
94
|
+
}, options);
|
|
95
|
+
if (!requestRes.ok) {
|
|
96
|
+
return [requestRes, { status: "invalid" }];
|
|
97
|
+
}
|
|
98
|
+
const req = requestRes.value;
|
|
99
|
+
const doResult = await client._do(req, {
|
|
100
|
+
context,
|
|
101
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
104
|
+
});
|
|
105
|
+
if (!doResult.ok) {
|
|
106
|
+
return [doResult, { status: "request-error", request: req }];
|
|
107
|
+
}
|
|
108
|
+
const response = doResult.value;
|
|
109
|
+
const responseFields = {
|
|
110
|
+
HttpMeta: { Response: response, Request: req },
|
|
111
|
+
};
|
|
112
|
+
const [result] = await M.match(M.json([200, 201], models.PublishSandboxImageResult$inboundSchema), M.jsonErr([409, 422], errors.SandboxImageRefusalError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
113
|
+
if (!result.ok) {
|
|
114
|
+
return [result, { status: "complete", request: req, response }];
|
|
115
|
+
}
|
|
116
|
+
return [result, { status: "complete", request: req, response }];
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=sandbox-images-admin-publish-sandbox-image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-images-admin-publish-sandbox-image.js","sourceRoot":"","sources":["../../../src/funcs/sandbox-images-admin-publish-sandbox-image.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,sFAuBC;AApDD,+CAAiC;AAEjC,sDAA+D;AAC/D,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,2DAA6C;AAC7C,0EAA4D;AAC5D,gDAAwD;A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
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { MutagentError } from "../models/errors/mutagent-error.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as models from "../models/index.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { APIPromise } from "../types/async.js";
|
|
11
|
+
import { Result } from "../types/fp.js";
|
|
12
|
+
/**
|
|
13
|
+
* Switch the default sandbox image release (rollback: name the previous tag)
|
|
14
|
+
*/
|
|
15
|
+
export declare function sandboxImagesAdminSetSandboxImageDefault(client: MutagentCore, request: operations.SetSandboxImageDefaultRequest, options?: RequestOptions): APIPromise<Result<models.SetSandboxImageDefaultResult, errors.SandboxImageRefusalError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
16
|
+
//# sourceMappingURL=sandbox-images-admin-set-sandbox-image-default.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-images-admin-set-sandbox-image-default.d.ts","sourceRoot":"","sources":["../../../src/funcs/sandbox-images-admin-set-sandbox-image-default.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,wCAAwC,CACtD,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,4BAA4B,EACjC,MAAM,CAAC,wBAAwB,GAC/B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.sandboxImagesAdminSetSandboxImageDefault = sandboxImagesAdminSetSandboxImageDefault;
|
|
40
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
41
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
|
+
const http_js_1 = require("../lib/http.js");
|
|
43
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
44
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
45
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
46
|
+
const security_js_1 = require("../lib/security.js");
|
|
47
|
+
const url_js_1 = require("../lib/url.js");
|
|
48
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
49
|
+
const models = __importStar(require("../models/index.js"));
|
|
50
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
51
|
+
const async_js_1 = require("../types/async.js");
|
|
52
|
+
/**
|
|
53
|
+
* Switch the default sandbox image release (rollback: name the previous tag)
|
|
54
|
+
*/
|
|
55
|
+
function sandboxImagesAdminSetSandboxImageDefault(client, request, options) {
|
|
56
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
57
|
+
}
|
|
58
|
+
async function $do(client, request, options) {
|
|
59
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => z.parse(operations.SetSandboxImageDefaultRequest$outboundSchema, value), "Input validation failed");
|
|
60
|
+
if (!parsed.ok) {
|
|
61
|
+
return [parsed, { status: "invalid" }];
|
|
62
|
+
}
|
|
63
|
+
const payload = parsed.value;
|
|
64
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload.body, { explode: true });
|
|
65
|
+
const path = (0, url_js_1.pathToFunc)("/api/admin/sandbox/images/default")();
|
|
66
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
67
|
+
"Content-Type": "application/json",
|
|
68
|
+
Accept: "application/json",
|
|
69
|
+
"x-internal-api-key": (0, encodings_js_1.encodeSimple)("x-internal-api-key", payload["x-internal-api-key"], { explode: false, charEncoding: "none" }),
|
|
70
|
+
}));
|
|
71
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
72
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
73
|
+
const context = {
|
|
74
|
+
options: client._options,
|
|
75
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
76
|
+
operationID: "setSandboxImageDefault",
|
|
77
|
+
oAuth2Scopes: null,
|
|
78
|
+
resolvedSecurity: requestSecurity,
|
|
79
|
+
securitySource: client._options.security,
|
|
80
|
+
retryConfig: options?.retries
|
|
81
|
+
|| client._options.retryConfig
|
|
82
|
+
|| { strategy: "none" },
|
|
83
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
84
|
+
};
|
|
85
|
+
const requestRes = client._createRequest(context, {
|
|
86
|
+
security: requestSecurity,
|
|
87
|
+
method: "PUT",
|
|
88
|
+
baseURL: options?.serverURL,
|
|
89
|
+
path: path,
|
|
90
|
+
headers: headers,
|
|
91
|
+
body: body,
|
|
92
|
+
userAgent: client._options.userAgent,
|
|
93
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
94
|
+
}, options);
|
|
95
|
+
if (!requestRes.ok) {
|
|
96
|
+
return [requestRes, { status: "invalid" }];
|
|
97
|
+
}
|
|
98
|
+
const req = requestRes.value;
|
|
99
|
+
const doResult = await client._do(req, {
|
|
100
|
+
context,
|
|
101
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
104
|
+
});
|
|
105
|
+
if (!doResult.ok) {
|
|
106
|
+
return [doResult, { status: "request-error", request: req }];
|
|
107
|
+
}
|
|
108
|
+
const response = doResult.value;
|
|
109
|
+
const responseFields = {
|
|
110
|
+
HttpMeta: { Response: response, Request: req },
|
|
111
|
+
};
|
|
112
|
+
const [result] = await M.match(M.json(200, models.SetSandboxImageDefaultResult$inboundSchema), M.jsonErr(404, errors.SandboxImageRefusalError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
113
|
+
if (!result.ok) {
|
|
114
|
+
return [result, { status: "complete", request: req, response }];
|
|
115
|
+
}
|
|
116
|
+
return [result, { status: "complete", request: req, response }];
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=sandbox-images-admin-set-sandbox-image-default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-images-admin-set-sandbox-image-default.js","sourceRoot":"","sources":["../../../src/funcs/sandbox-images-admin-set-sandbox-image-default.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,4FAuBC;AApDD,+CAAiC;AAEjC,sDAA+D;AAC/D,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;A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import { MutagentCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { MutagentError } from "../models/errors/mutagent-error.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* A run's recovery bundle of one commit
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* The git bundle of a build commit the factory could not push to its branch (for example a workflow change the App may not make), kept with the run until the run ends. `git fetch ./recovery.bundle <commit>` it, then push the commit to the branch its question names with your own account. Another workspace's run, or a commit the run keeps no bundle of: 404 RECOVERY_BUNDLE_NOT_FOUND.
|
|
16
|
+
*
|
|
17
|
+
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
18
|
+
*/
|
|
19
|
+
export declare function softwareFactoryGetSoftwareFactoryRunRecoveryBundle(client: MutagentCore, request: operations.GetSoftwareFactoryRunRecoveryBundleRequest, options?: RequestOptions): APIPromise<Result<ReadableStream<Uint8Array>, errors.ErrorResponse | errors.ErrorResponseWithStatus | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
+
//# sourceMappingURL=software-factory-get-software-factory-run-recovery-bundle.d.ts.map
|
package/dist/commonjs/funcs/software-factory-get-software-factory-run-recovery-bundle.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"software-factory-get-software-factory-run-recovery-bundle.d.ts","sourceRoot":"","sources":["../../../src/funcs/software-factory-get-software-factory-run-recovery-bundle.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,kDAAkD,CAChE,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,0CAA0C,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,cAAc,CAAC,UAAU,CAAC,EACxB,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,uBAAuB,GAC9B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.softwareFactoryGetSoftwareFactoryRunRecoveryBundle = softwareFactoryGetSoftwareFactoryRunRecoveryBundle;
|
|
40
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
41
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
|
+
const http_js_1 = require("../lib/http.js");
|
|
43
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
44
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
45
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
46
|
+
const security_js_1 = require("../lib/security.js");
|
|
47
|
+
const url_js_1 = require("../lib/url.js");
|
|
48
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
49
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
50
|
+
const async_js_1 = require("../types/async.js");
|
|
51
|
+
/**
|
|
52
|
+
* A run's recovery bundle of one commit
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* The git bundle of a build commit the factory could not push to its branch (for example a workflow change the App may not make), kept with the run until the run ends. `git fetch ./recovery.bundle <commit>` it, then push the commit to the branch its question names with your own account. Another workspace's run, or a commit the run keeps no bundle of: 404 RECOVERY_BUNDLE_NOT_FOUND.
|
|
56
|
+
*
|
|
57
|
+
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
58
|
+
*/
|
|
59
|
+
function softwareFactoryGetSoftwareFactoryRunRecoveryBundle(client, request, options) {
|
|
60
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
61
|
+
}
|
|
62
|
+
async function $do(client, request, options) {
|
|
63
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => z.parse(operations.GetSoftwareFactoryRunRecoveryBundleRequest$outboundSchema, value), "Input validation failed");
|
|
64
|
+
if (!parsed.ok) {
|
|
65
|
+
return [parsed, { status: "invalid" }];
|
|
66
|
+
}
|
|
67
|
+
const payload = parsed.value;
|
|
68
|
+
const body = null;
|
|
69
|
+
const pathParams = {
|
|
70
|
+
head: (0, encodings_js_1.encodeSimple)("head", payload.head, {
|
|
71
|
+
explode: false,
|
|
72
|
+
charEncoding: "percent",
|
|
73
|
+
}),
|
|
74
|
+
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
75
|
+
explode: false,
|
|
76
|
+
charEncoding: "percent",
|
|
77
|
+
}),
|
|
78
|
+
};
|
|
79
|
+
const path = (0, url_js_1.pathToFunc)("/api/architech/factory/runs/{id}/recovery/{head}")(pathParams);
|
|
80
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
81
|
+
Accept: "application/octet-stream",
|
|
82
|
+
}));
|
|
83
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
84
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput, [0, 1]);
|
|
85
|
+
const context = {
|
|
86
|
+
options: client._options,
|
|
87
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
88
|
+
operationID: "getSoftwareFactoryRunRecoveryBundle",
|
|
89
|
+
oAuth2Scopes: null,
|
|
90
|
+
resolvedSecurity: requestSecurity,
|
|
91
|
+
securitySource: client._options.security,
|
|
92
|
+
retryConfig: options?.retries
|
|
93
|
+
|| client._options.retryConfig
|
|
94
|
+
|| { strategy: "none" },
|
|
95
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
96
|
+
};
|
|
97
|
+
const requestRes = client._createRequest(context, {
|
|
98
|
+
security: requestSecurity,
|
|
99
|
+
method: "GET",
|
|
100
|
+
baseURL: options?.serverURL,
|
|
101
|
+
path: path,
|
|
102
|
+
headers: headers,
|
|
103
|
+
body: body,
|
|
104
|
+
userAgent: client._options.userAgent,
|
|
105
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
106
|
+
}, options);
|
|
107
|
+
if (!requestRes.ok) {
|
|
108
|
+
return [requestRes, { status: "invalid" }];
|
|
109
|
+
}
|
|
110
|
+
const req = requestRes.value;
|
|
111
|
+
const doResult = await client._do(req, {
|
|
112
|
+
context,
|
|
113
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
114
|
+
retryConfig: context.retryConfig,
|
|
115
|
+
retryCodes: context.retryCodes,
|
|
116
|
+
});
|
|
117
|
+
if (!doResult.ok) {
|
|
118
|
+
return [doResult, { status: "request-error", request: req }];
|
|
119
|
+
}
|
|
120
|
+
const response = doResult.value;
|
|
121
|
+
const responseFields = {
|
|
122
|
+
HttpMeta: { Response: response, Request: req },
|
|
123
|
+
};
|
|
124
|
+
const [result] = await M.match(M.stream(200, z.custom(x => x instanceof ReadableStream)), M.jsonErr([400, 401, 403, 404], errors.ErrorResponse$inboundSchema), M.jsonErr(500, errors.ErrorResponseWithStatus$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
125
|
+
if (!result.ok) {
|
|
126
|
+
return [result, { status: "complete", request: req, response }];
|
|
127
|
+
}
|
|
128
|
+
return [result, { status: "complete", request: req, response }];
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=software-factory-get-software-factory-run-recovery-bundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"software-factory-get-software-factory-run-recovery-bundle.js","sourceRoot":"","sources":["../../../src/funcs/software-factory-get-software-factory-run-recovery-bundle.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,gHAwBC;AAzDD,+CAAiC;AAEjC,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;GAOG;AACH,SAAgB,kDAAkD,CAChE,MAAoB,EACpB,OAA8D,EAC9D,OAAwB;IAgBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAA8D,EAC9D,OAAwB;IAmBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CACL,UAAU,C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AAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAa5B,CAAC,CAAC,MAAM,CACN,GAAG,EACH,CAAC,CAAC,MAAM,CAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,cAAc,CAAC,CACvE,EACD,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,2BAA2B,CAAC,EACnE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,qCAAqC,CAAC,EAC5D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "2.0.0";
|
|
38
|
-
readonly sdkVersion: "0.
|
|
38
|
+
readonly sdkVersion: "0.13.0";
|
|
39
39
|
readonly genVersion: "2.938.0";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.13.0 2.938.0 2.0.0 @mutagent/sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|