@mutagent/sdk 0.13.51 → 0.13.53
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 +1118 -1080
- package/dist/commonjs/funcs/software-factory-answer-software-factory-escalation.d.ts +1 -1
- package/dist/commonjs/funcs/software-factory-answer-software-factory-escalation.js +1 -1
- package/dist/commonjs/funcs/software-factory-approve-software-factory-run.d.ts +1 -1
- package/dist/commonjs/funcs/software-factory-approve-software-factory-run.js +1 -1
- package/dist/commonjs/funcs/software-factory-ask-software-factory-session.d.ts +1 -1
- package/dist/commonjs/funcs/software-factory-ask-software-factory-session.js +1 -1
- package/dist/commonjs/funcs/software-factory-repin-software-factory-run-form.d.ts +20 -0
- package/dist/commonjs/funcs/software-factory-repin-software-factory-run-form.d.ts.map +1 -0
- package/dist/commonjs/funcs/software-factory-repin-software-factory-run-form.js +129 -0
- package/dist/commonjs/funcs/software-factory-repin-software-factory-run-form.js.map +1 -0
- package/dist/commonjs/funcs/software-factory-repin-software-factory-run-multipart.d.ts +20 -0
- package/dist/commonjs/funcs/software-factory-repin-software-factory-run-multipart.d.ts.map +1 -0
- package/dist/commonjs/funcs/software-factory-repin-software-factory-run-multipart.js +131 -0
- package/dist/commonjs/funcs/software-factory-repin-software-factory-run-multipart.js.map +1 -0
- package/dist/commonjs/funcs/software-factory-repin-software-factory-run.d.ts +20 -0
- package/dist/commonjs/funcs/software-factory-repin-software-factory-run.d.ts.map +1 -0
- package/dist/commonjs/funcs/software-factory-repin-software-factory-run.js +127 -0
- package/dist/commonjs/funcs/software-factory-repin-software-factory-run.js.map +1 -0
- package/dist/commonjs/funcs/software-factory-resume-software-factory-run.d.ts +20 -0
- package/dist/commonjs/funcs/software-factory-resume-software-factory-run.d.ts.map +1 -0
- package/dist/commonjs/funcs/software-factory-resume-software-factory-run.js +127 -0
- package/dist/commonjs/funcs/software-factory-resume-software-factory-run.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/errors/index.d.ts +4 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +4 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/repin-software-factory-run-form.d.ts +151 -0
- package/dist/commonjs/models/errors/repin-software-factory-run-form.d.ts.map +1 -0
- package/dist/commonjs/models/errors/repin-software-factory-run-form.js +242 -0
- package/dist/commonjs/models/errors/repin-software-factory-run-form.js.map +1 -0
- package/dist/commonjs/models/errors/repin-software-factory-run-multipart.d.ts +151 -0
- package/dist/commonjs/models/errors/repin-software-factory-run-multipart.d.ts.map +1 -0
- package/dist/commonjs/models/errors/repin-software-factory-run-multipart.js +249 -0
- package/dist/commonjs/models/errors/repin-software-factory-run-multipart.js.map +1 -0
- package/dist/commonjs/models/errors/repin-software-factory-run.d.ts +151 -0
- package/dist/commonjs/models/errors/repin-software-factory-run.d.ts.map +1 -0
- package/dist/commonjs/models/errors/repin-software-factory-run.js +243 -0
- package/dist/commonjs/models/errors/repin-software-factory-run.js.map +1 -0
- package/dist/commonjs/models/errors/resume-software-factory-run.d.ts +193 -0
- package/dist/commonjs/models/errors/resume-software-factory-run.d.ts.map +1 -0
- package/dist/commonjs/models/errors/resume-software-factory-run.js +303 -0
- package/dist/commonjs/models/errors/resume-software-factory-run.js.map +1 -0
- package/dist/commonjs/models/operations/approve-software-factory-run.d.ts +5 -0
- package/dist/commonjs/models/operations/approve-software-factory-run.d.ts.map +1 -1
- package/dist/commonjs/models/operations/approve-software-factory-run.js +1 -0
- package/dist/commonjs/models/operations/approve-software-factory-run.js.map +1 -1
- package/dist/commonjs/models/operations/ask-software-factory-session.d.ts +2 -1
- package/dist/commonjs/models/operations/ask-software-factory-session.d.ts.map +1 -1
- package/dist/commonjs/models/operations/ask-software-factory-session.js +1 -0
- package/dist/commonjs/models/operations/ask-software-factory-session.js.map +1 -1
- package/dist/commonjs/models/operations/get-software-factory-run.d.ts +57 -1
- package/dist/commonjs/models/operations/get-software-factory-run.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-software-factory-run.js +75 -1
- package/dist/commonjs/models/operations/get-software-factory-run.js.map +1 -1
- 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-factory-builds.d.ts +3 -3
- package/dist/commonjs/models/operations/list-factory-builds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/list-factory-builds.js +5 -5
- package/dist/commonjs/models/operations/list-factory-builds.js.map +1 -1
- package/dist/commonjs/models/operations/list-software-factory-runs.d.ts +46 -2
- package/dist/commonjs/models/operations/list-software-factory-runs.d.ts.map +1 -1
- package/dist/commonjs/models/operations/list-software-factory-runs.js +63 -1
- package/dist/commonjs/models/operations/list-software-factory-runs.js.map +1 -1
- package/dist/commonjs/models/operations/list-software-factory-trigger-activity.d.ts +2 -2
- package/dist/commonjs/models/operations/push-factory-spec.d.ts +12 -12
- package/dist/commonjs/models/operations/push-factory-spec.d.ts.map +1 -1
- package/dist/commonjs/models/operations/push-factory-spec.js +17 -29
- package/dist/commonjs/models/operations/push-factory-spec.js.map +1 -1
- package/dist/commonjs/models/operations/repin-software-factory-run-form.d.ts +137 -0
- package/dist/commonjs/models/operations/repin-software-factory-run-form.d.ts.map +1 -0
- package/dist/commonjs/models/operations/repin-software-factory-run-form.js +175 -0
- package/dist/commonjs/models/operations/repin-software-factory-run-form.js.map +1 -0
- package/dist/commonjs/models/operations/repin-software-factory-run-multipart.d.ts +137 -0
- package/dist/commonjs/models/operations/repin-software-factory-run-multipart.d.ts.map +1 -0
- package/dist/commonjs/models/operations/repin-software-factory-run-multipart.js +177 -0
- package/dist/commonjs/models/operations/repin-software-factory-run-multipart.js.map +1 -0
- package/dist/commonjs/models/operations/repin-software-factory-run.d.ts +150 -0
- package/dist/commonjs/models/operations/repin-software-factory-run.d.ts.map +1 -0
- package/dist/commonjs/models/operations/repin-software-factory-run.js +186 -0
- package/dist/commonjs/models/operations/repin-software-factory-run.js.map +1 -0
- package/dist/commonjs/models/operations/resume-software-factory-run.d.ts +152 -0
- package/dist/commonjs/models/operations/resume-software-factory-run.d.ts.map +1 -0
- package/dist/commonjs/models/operations/resume-software-factory-run.js +174 -0
- package/dist/commonjs/models/operations/resume-software-factory-run.js.map +1 -0
- package/dist/commonjs/sdk/software-factory.d.ts +31 -3
- package/dist/commonjs/sdk/software-factory.d.ts.map +1 -1
- package/dist/commonjs/sdk/software-factory.js +43 -3
- package/dist/commonjs/sdk/software-factory.js.map +1 -1
- package/dist/esm/funcs/software-factory-answer-software-factory-escalation.d.ts +1 -1
- package/dist/esm/funcs/software-factory-answer-software-factory-escalation.js +1 -1
- package/dist/esm/funcs/software-factory-approve-software-factory-run.d.ts +1 -1
- package/dist/esm/funcs/software-factory-approve-software-factory-run.js +1 -1
- package/dist/esm/funcs/software-factory-ask-software-factory-session.d.ts +1 -1
- package/dist/esm/funcs/software-factory-ask-software-factory-session.js +1 -1
- package/dist/esm/funcs/software-factory-repin-software-factory-run-form.d.ts +20 -0
- package/dist/esm/funcs/software-factory-repin-software-factory-run-form.d.ts.map +1 -0
- package/dist/esm/funcs/software-factory-repin-software-factory-run-form.js +93 -0
- package/dist/esm/funcs/software-factory-repin-software-factory-run-form.js.map +1 -0
- package/dist/esm/funcs/software-factory-repin-software-factory-run-multipart.d.ts +20 -0
- package/dist/esm/funcs/software-factory-repin-software-factory-run-multipart.d.ts.map +1 -0
- package/dist/esm/funcs/software-factory-repin-software-factory-run-multipart.js +95 -0
- package/dist/esm/funcs/software-factory-repin-software-factory-run-multipart.js.map +1 -0
- package/dist/esm/funcs/software-factory-repin-software-factory-run.d.ts +20 -0
- package/dist/esm/funcs/software-factory-repin-software-factory-run.d.ts.map +1 -0
- package/dist/esm/funcs/software-factory-repin-software-factory-run.js +91 -0
- package/dist/esm/funcs/software-factory-repin-software-factory-run.js.map +1 -0
- package/dist/esm/funcs/software-factory-resume-software-factory-run.d.ts +20 -0
- package/dist/esm/funcs/software-factory-resume-software-factory-run.d.ts.map +1 -0
- package/dist/esm/funcs/software-factory-resume-software-factory-run.js +91 -0
- package/dist/esm/funcs/software-factory-resume-software-factory-run.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/errors/index.d.ts +4 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +4 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/repin-software-factory-run-form.d.ts +151 -0
- package/dist/esm/models/errors/repin-software-factory-run-form.d.ts.map +1 -0
- package/dist/esm/models/errors/repin-software-factory-run-form.js +199 -0
- package/dist/esm/models/errors/repin-software-factory-run-form.js.map +1 -0
- package/dist/esm/models/errors/repin-software-factory-run-multipart.d.ts +151 -0
- package/dist/esm/models/errors/repin-software-factory-run-multipart.d.ts.map +1 -0
- package/dist/esm/models/errors/repin-software-factory-run-multipart.js +206 -0
- package/dist/esm/models/errors/repin-software-factory-run-multipart.js.map +1 -0
- package/dist/esm/models/errors/repin-software-factory-run.d.ts +151 -0
- package/dist/esm/models/errors/repin-software-factory-run.d.ts.map +1 -0
- package/dist/esm/models/errors/repin-software-factory-run.js +200 -0
- package/dist/esm/models/errors/repin-software-factory-run.js.map +1 -0
- package/dist/esm/models/errors/resume-software-factory-run.d.ts +193 -0
- package/dist/esm/models/errors/resume-software-factory-run.d.ts.map +1 -0
- package/dist/esm/models/errors/resume-software-factory-run.js +258 -0
- package/dist/esm/models/errors/resume-software-factory-run.js.map +1 -0
- package/dist/esm/models/operations/approve-software-factory-run.d.ts +5 -0
- package/dist/esm/models/operations/approve-software-factory-run.d.ts.map +1 -1
- package/dist/esm/models/operations/approve-software-factory-run.js +1 -0
- package/dist/esm/models/operations/approve-software-factory-run.js.map +1 -1
- package/dist/esm/models/operations/ask-software-factory-session.d.ts +2 -1
- package/dist/esm/models/operations/ask-software-factory-session.d.ts.map +1 -1
- package/dist/esm/models/operations/ask-software-factory-session.js +1 -0
- package/dist/esm/models/operations/ask-software-factory-session.js.map +1 -1
- package/dist/esm/models/operations/get-software-factory-run.d.ts +57 -1
- package/dist/esm/models/operations/get-software-factory-run.d.ts.map +1 -1
- package/dist/esm/models/operations/get-software-factory-run.js +68 -0
- package/dist/esm/models/operations/get-software-factory-run.js.map +1 -1
- 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-factory-builds.d.ts +3 -3
- package/dist/esm/models/operations/list-factory-builds.d.ts.map +1 -1
- package/dist/esm/models/operations/list-factory-builds.js +3 -3
- package/dist/esm/models/operations/list-factory-builds.js.map +1 -1
- package/dist/esm/models/operations/list-software-factory-runs.d.ts +46 -2
- package/dist/esm/models/operations/list-software-factory-runs.d.ts.map +1 -1
- package/dist/esm/models/operations/list-software-factory-runs.js +57 -0
- package/dist/esm/models/operations/list-software-factory-runs.js.map +1 -1
- package/dist/esm/models/operations/list-software-factory-trigger-activity.d.ts +2 -2
- package/dist/esm/models/operations/push-factory-spec.d.ts +12 -12
- package/dist/esm/models/operations/push-factory-spec.d.ts.map +1 -1
- package/dist/esm/models/operations/push-factory-spec.js +12 -24
- package/dist/esm/models/operations/push-factory-spec.js.map +1 -1
- package/dist/esm/models/operations/repin-software-factory-run-form.d.ts +137 -0
- package/dist/esm/models/operations/repin-software-factory-run-form.d.ts.map +1 -0
- package/dist/esm/models/operations/repin-software-factory-run-form.js +126 -0
- package/dist/esm/models/operations/repin-software-factory-run-form.js.map +1 -0
- package/dist/esm/models/operations/repin-software-factory-run-multipart.d.ts +137 -0
- package/dist/esm/models/operations/repin-software-factory-run-multipart.d.ts.map +1 -0
- package/dist/esm/models/operations/repin-software-factory-run-multipart.js +128 -0
- package/dist/esm/models/operations/repin-software-factory-run-multipart.js.map +1 -0
- package/dist/esm/models/operations/repin-software-factory-run.d.ts +150 -0
- package/dist/esm/models/operations/repin-software-factory-run.d.ts.map +1 -0
- package/dist/esm/models/operations/repin-software-factory-run.js +136 -0
- package/dist/esm/models/operations/repin-software-factory-run.js.map +1 -0
- package/dist/esm/models/operations/resume-software-factory-run.d.ts +152 -0
- package/dist/esm/models/operations/resume-software-factory-run.d.ts.map +1 -0
- package/dist/esm/models/operations/resume-software-factory-run.js +126 -0
- package/dist/esm/models/operations/resume-software-factory-run.js.map +1 -0
- package/dist/esm/sdk/software-factory.d.ts +31 -3
- package/dist/esm/sdk/software-factory.d.ts.map +1 -1
- package/dist/esm/sdk/software-factory.js +43 -3
- package/dist/esm/sdk/software-factory.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Answer an escalation
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* The first answer, from any channel (the item, Slack, here), resumes the paused stage; a later one is recorded, not applied, and the answer says who answered first.
|
|
15
|
+
* The first answer, from any channel (the item, Slack, here), resumes the paused stage unless the selected option carries a wait mark; a later one is recorded, not applied, and the answer says who answered first.
|
|
16
16
|
*
|
|
17
17
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
18
18
|
*/
|
|
@@ -52,7 +52,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
52
52
|
* Answer an escalation
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* The first answer, from any channel (the item, Slack, here), resumes the paused stage; a later one is recorded, not applied, and the answer says who answered first.
|
|
55
|
+
* The first answer, from any channel (the item, Slack, here), resumes the paused stage unless the selected option carries a wait mark; a later one is recorded, not applied, and the answer says who answered first.
|
|
56
56
|
*
|
|
57
57
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
58
58
|
*/
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Approve, reject or request changes at a waiting gate
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Resolves the gate the run waits for: plan (AWAITING_APPROVAL) or pr (a SubItem waiting for its merge approval; subItem picks one). A gate the run does not wait for: 409 GATE_NOT_PENDING. A rejected plan cancels the run; a refused merge sends the SubItem back. changes_requested (plan gate only, else 422 CHANGES_PLAN_GATE_ONLY) returns the same run to PLANNING with note as the planner's revision input; the revised plan comes back to this gate. Without a note: 422 CHANGE_NOTE_MISSING. An approval with a substantive note: 422 APPROVAL_HAS_CHANGES.
|
|
15
|
+
* Resolves the gate the run waits for: plan (AWAITING_APPROVAL) or pr (a SubItem waiting for its merge approval; subItem picks one). A gate the run does not wait for: 409 GATE_NOT_PENDING. To approve a replacement plan directly, an identified person must supply the reviewed plan-ok stage run ID as gateStageRunId (missing or stale: 409 PLAN_APPROVAL_GATE_MISMATCH). A rejected plan cancels the run; a refused merge sends the SubItem back. changes_requested (plan gate only, else 422 CHANGES_PLAN_GATE_ONLY) returns the same run to PLANNING with note as the planner's revision input; the revised plan comes back to this gate. Without a note: 422 CHANGE_NOTE_MISSING. An approval with a substantive note: 422 APPROVAL_HAS_CHANGES.
|
|
16
16
|
*
|
|
17
17
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
18
18
|
*/
|
|
@@ -52,7 +52,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
52
52
|
* Approve, reject or request changes at a waiting gate
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* Resolves the gate the run waits for: plan (AWAITING_APPROVAL) or pr (a SubItem waiting for its merge approval; subItem picks one). A gate the run does not wait for: 409 GATE_NOT_PENDING. A rejected plan cancels the run; a refused merge sends the SubItem back. changes_requested (plan gate only, else 422 CHANGES_PLAN_GATE_ONLY) returns the same run to PLANNING with note as the planner's revision input; the revised plan comes back to this gate. Without a note: 422 CHANGE_NOTE_MISSING. An approval with a substantive note: 422 APPROVAL_HAS_CHANGES.
|
|
55
|
+
* Resolves the gate the run waits for: plan (AWAITING_APPROVAL) or pr (a SubItem waiting for its merge approval; subItem picks one). A gate the run does not wait for: 409 GATE_NOT_PENDING. To approve a replacement plan directly, an identified person must supply the reviewed plan-ok stage run ID as gateStageRunId (missing or stale: 409 PLAN_APPROVAL_GATE_MISMATCH). A rejected plan cancels the run; a refused merge sends the SubItem back. changes_requested (plan gate only, else 422 CHANGES_PLAN_GATE_ONLY) returns the same run to PLANNING with note as the planner's revision input; the revised plan comes back to this gate. Without a note: 422 CHANGE_NOTE_MISSING. An approval with a substantive note: 422 APPROVAL_HAS_CHANGES.
|
|
56
56
|
*
|
|
57
57
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
58
58
|
*/
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Ask a person (session door)
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* A stage session asks one question with options: the stage pauses, its sandbox is released, and the first answer resumes it in a new session.
|
|
15
|
+
* A stage session asks one question with options: the stage pauses, its sandbox is released, and the first answer resumes it in a new session unless the selected option carries a wait mark. A selected [hold] needs an explicit manual release.
|
|
16
16
|
*
|
|
17
17
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
18
18
|
*/
|
|
@@ -52,7 +52,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
52
52
|
* Ask a person (session door)
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* A stage session asks one question with options: the stage pauses, its sandbox is released, and the first answer resumes it in a new session.
|
|
55
|
+
* A stage session asks one question with options: the stage pauses, its sandbox is released, and the first answer resumes it in a new session unless the selected option carries a wait mark. A selected [hold] needs an explicit manual release.
|
|
56
56
|
*
|
|
57
57
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
58
58
|
*/
|
|
@@ -0,0 +1,20 @@
|
|
|
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 operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Move a run to the current factory version
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* New launches use the current factory version; existing assignments, sessions and work are retained. 409: RUN_REPIN_SAME_VERSION, RUN_REPIN_NO_CURRENT_VERSION, RUN_REPIN_MODE_MISMATCH, RUN_REPIN_SHAPE_MISMATCH, RUN_REPIN_ENDED or RUN_BUSY. 422: RUN_REPIN_FRAMEWORK_UNSERVABLE or invalid input.
|
|
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 softwareFactoryRepinSoftwareFactoryRunForm(client: MutagentCore, request: operations.RepinSoftwareFactoryRunFormRequest, options?: RequestOptions): APIPromise<Result<operations.RepinSoftwareFactoryRunFormResponse, errors.RepinSoftwareFactoryRunFormBadRequestError | errors.RepinSoftwareFactoryRunFormUnauthorizedError | errors.RepinSoftwareFactoryRunFormForbiddenError | errors.RepinSoftwareFactoryRunFormNotFoundError | errors.RepinSoftwareFactoryRunFormConflictError | errors.RepinSoftwareFactoryRunFormUnprocessableEntityError | errors.RepinSoftwareFactoryRunFormServiceUnavailableError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
+
//# sourceMappingURL=software-factory-repin-software-factory-run-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"software-factory-repin-software-factory-run-form.d.ts","sourceRoot":"","sources":["../../../src/funcs/software-factory-repin-software-factory-run-form.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,0CAA0C,CACxD,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,kCAAkC,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,mCAAmC,EAC5C,MAAM,CAAC,0CAA0C,GACjD,MAAM,CAAC,4CAA4C,GACnD,MAAM,CAAC,yCAAyC,GAChD,MAAM,CAAC,wCAAwC,GAC/C,MAAM,CAAC,wCAAwC,GAC/C,MAAM,CAAC,mDAAmD,GAC1D,MAAM,CAAC,kDAAkD,GACzD,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,129 @@
|
|
|
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.softwareFactoryRepinSoftwareFactoryRunForm = softwareFactoryRepinSoftwareFactoryRunForm;
|
|
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
|
+
* Move a run to the current factory version
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* New launches use the current factory version; existing assignments, sessions and work are retained. 409: RUN_REPIN_SAME_VERSION, RUN_REPIN_NO_CURRENT_VERSION, RUN_REPIN_MODE_MISMATCH, RUN_REPIN_SHAPE_MISMATCH, RUN_REPIN_ENDED or RUN_BUSY. 422: RUN_REPIN_FRAMEWORK_UNSERVABLE or invalid input.
|
|
56
|
+
*
|
|
57
|
+
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
58
|
+
*/
|
|
59
|
+
function softwareFactoryRepinSoftwareFactoryRunForm(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.RepinSoftwareFactoryRunFormRequest$outboundSchema, value), "Input validation failed");
|
|
64
|
+
if (!parsed.ok) {
|
|
65
|
+
return [parsed, { status: "invalid" }];
|
|
66
|
+
}
|
|
67
|
+
const payload = parsed.value;
|
|
68
|
+
const body = Object.entries(payload.body || {}).map(([k, v]) => {
|
|
69
|
+
return (0, encodings_js_1.encodeBodyForm)(k, v, { charEncoding: "percent" });
|
|
70
|
+
}).join("&");
|
|
71
|
+
const pathParams = {
|
|
72
|
+
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
73
|
+
explode: false,
|
|
74
|
+
charEncoding: "percent",
|
|
75
|
+
}),
|
|
76
|
+
};
|
|
77
|
+
const path = (0, url_js_1.pathToFunc)("/api/architech/factory/runs/{id}/repin")(pathParams);
|
|
78
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
79
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
80
|
+
Accept: "application/json",
|
|
81
|
+
}));
|
|
82
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
83
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput, [0, 1]);
|
|
84
|
+
const context = {
|
|
85
|
+
options: client._options,
|
|
86
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
87
|
+
operationID: "repinSoftwareFactoryRun_form",
|
|
88
|
+
oAuth2Scopes: null,
|
|
89
|
+
resolvedSecurity: requestSecurity,
|
|
90
|
+
securitySource: client._options.security,
|
|
91
|
+
retryConfig: options?.retries
|
|
92
|
+
|| client._options.retryConfig
|
|
93
|
+
|| { strategy: "none" },
|
|
94
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
95
|
+
};
|
|
96
|
+
const requestRes = client._createRequest(context, {
|
|
97
|
+
security: requestSecurity,
|
|
98
|
+
method: "POST",
|
|
99
|
+
baseURL: options?.serverURL,
|
|
100
|
+
path: path,
|
|
101
|
+
headers: headers,
|
|
102
|
+
body: body,
|
|
103
|
+
userAgent: client._options.userAgent,
|
|
104
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
105
|
+
}, options);
|
|
106
|
+
if (!requestRes.ok) {
|
|
107
|
+
return [requestRes, { status: "invalid" }];
|
|
108
|
+
}
|
|
109
|
+
const req = requestRes.value;
|
|
110
|
+
const doResult = await client._do(req, {
|
|
111
|
+
context,
|
|
112
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
113
|
+
retryConfig: context.retryConfig,
|
|
114
|
+
retryCodes: context.retryCodes,
|
|
115
|
+
});
|
|
116
|
+
if (!doResult.ok) {
|
|
117
|
+
return [doResult, { status: "request-error", request: req }];
|
|
118
|
+
}
|
|
119
|
+
const response = doResult.value;
|
|
120
|
+
const responseFields = {
|
|
121
|
+
HttpMeta: { Response: response, Request: req },
|
|
122
|
+
};
|
|
123
|
+
const [result] = await M.match(M.json(200, operations.RepinSoftwareFactoryRunFormResponse$inboundSchema), M.jsonErr(400, errors.RepinSoftwareFactoryRunFormBadRequestError$inboundSchema), M.jsonErr(401, errors.RepinSoftwareFactoryRunFormUnauthorizedError$inboundSchema), M.jsonErr(403, errors.RepinSoftwareFactoryRunFormForbiddenError$inboundSchema), M.jsonErr(404, errors.RepinSoftwareFactoryRunFormNotFoundError$inboundSchema), M.jsonErr(409, errors.RepinSoftwareFactoryRunFormConflictError$inboundSchema), M.jsonErr(422, errors.RepinSoftwareFactoryRunFormUnprocessableEntityError$inboundSchema), M.jsonErr(503, errors.RepinSoftwareFactoryRunFormServiceUnavailableError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
124
|
+
if (!result.ok) {
|
|
125
|
+
return [result, { status: "complete", request: req, response }];
|
|
126
|
+
}
|
|
127
|
+
return [result, { status: "complete", request: req, response }];
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=software-factory-repin-software-factory-run-form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"software-factory-repin-software-factory-run-form.js","sourceRoot":"","sources":["../../../src/funcs/software-factory-repin-software-factory-run-form.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,gGA6BC;AA9DD,+CAAiC;AAEjC,sDAAmE;AACnE,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;GAOG;AACH,SAAgB,0CAA0C,CACxD,MAAoB,EACpB,OAAsD,EACtD,OAAwB;IAqBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAAsD,EACtD,OAAwB;IAwBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CACL,UAAU,CAAC,iDAAiD,EAC5D,KAAK,CACN,EACH,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAE7B,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE;QAC7D,OAAO,IAAA,6BAAc,EAAC,CAAC,EAAE,CAAC,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG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,MAAM,CAAC,wDAAwD,CAChE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,0DAA0D,CAClE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,uDAAuD,CAC/D,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,sDAAsD,CAC9D,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,sDAAsD,CAC9D,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,iEAAiE,CACzE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,gEAAgE,CACxE,EACD,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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Move a run to the current factory version
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* New launches use the current factory version; existing assignments, sessions and work are retained. 409: RUN_REPIN_SAME_VERSION, RUN_REPIN_NO_CURRENT_VERSION, RUN_REPIN_MODE_MISMATCH, RUN_REPIN_SHAPE_MISMATCH, RUN_REPIN_ENDED or RUN_BUSY. 422: RUN_REPIN_FRAMEWORK_UNSERVABLE or invalid input.
|
|
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 softwareFactoryRepinSoftwareFactoryRunMultipart(client: MutagentCore, request: operations.RepinSoftwareFactoryRunMultipartRequest, options?: RequestOptions): APIPromise<Result<operations.RepinSoftwareFactoryRunMultipartResponse, errors.RepinSoftwareFactoryRunMultipartBadRequestError | errors.RepinSoftwareFactoryRunMultipartUnauthorizedError | errors.RepinSoftwareFactoryRunMultipartForbiddenError | errors.RepinSoftwareFactoryRunMultipartNotFoundError | errors.RepinSoftwareFactoryRunMultipartConflictError | errors.RepinSoftwareFactoryRunMultipartUnprocessableEntityError | errors.RepinSoftwareFactoryRunMultipartServiceUnavailableError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
+
//# sourceMappingURL=software-factory-repin-software-factory-run-multipart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"software-factory-repin-software-factory-run-multipart.d.ts","sourceRoot":"","sources":["../../../src/funcs/software-factory-repin-software-factory-run-multipart.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,+CAA+C,CAC7D,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,uCAAuC,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,wCAAwC,EACjD,MAAM,CAAC,+CAA+C,GACtD,MAAM,CAAC,iDAAiD,GACxD,MAAM,CAAC,8CAA8C,GACrD,MAAM,CAAC,6CAA6C,GACpD,MAAM,CAAC,6CAA6C,GACpD,MAAM,CAAC,wDAAwD,GAC/D,MAAM,CAAC,uDAAuD,GAC9D,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,131 @@
|
|
|
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.softwareFactoryRepinSoftwareFactoryRunMultipart = softwareFactoryRepinSoftwareFactoryRunMultipart;
|
|
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
|
+
* Move a run to the current factory version
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* New launches use the current factory version; existing assignments, sessions and work are retained. 409: RUN_REPIN_SAME_VERSION, RUN_REPIN_NO_CURRENT_VERSION, RUN_REPIN_MODE_MISMATCH, RUN_REPIN_SHAPE_MISMATCH, RUN_REPIN_ENDED or RUN_BUSY. 422: RUN_REPIN_FRAMEWORK_UNSERVABLE or invalid input.
|
|
56
|
+
*
|
|
57
|
+
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
58
|
+
*/
|
|
59
|
+
function softwareFactoryRepinSoftwareFactoryRunMultipart(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.RepinSoftwareFactoryRunMultipartRequest$outboundSchema, value), "Input validation failed");
|
|
64
|
+
if (!parsed.ok) {
|
|
65
|
+
return [parsed, { status: "invalid" }];
|
|
66
|
+
}
|
|
67
|
+
const payload = parsed.value;
|
|
68
|
+
const body = new FormData();
|
|
69
|
+
for (const [key, value] of Object.entries(payload.body || {})) {
|
|
70
|
+
(0, encodings_js_1.appendForm)(body, key, value);
|
|
71
|
+
}
|
|
72
|
+
const pathParams = {
|
|
73
|
+
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
74
|
+
explode: false,
|
|
75
|
+
charEncoding: "percent",
|
|
76
|
+
}),
|
|
77
|
+
};
|
|
78
|
+
const path = (0, url_js_1.pathToFunc)("/api/architech/factory/runs/{id}/repin")(pathParams);
|
|
79
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
80
|
+
Accept: "application/json",
|
|
81
|
+
}));
|
|
82
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
83
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput, [0, 1]);
|
|
84
|
+
const context = {
|
|
85
|
+
options: client._options,
|
|
86
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
87
|
+
operationID: "repinSoftwareFactoryRun_multipart",
|
|
88
|
+
oAuth2Scopes: null,
|
|
89
|
+
resolvedSecurity: requestSecurity,
|
|
90
|
+
securitySource: client._options.security,
|
|
91
|
+
retryConfig: options?.retries
|
|
92
|
+
|| client._options.retryConfig
|
|
93
|
+
|| { strategy: "none" },
|
|
94
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
95
|
+
};
|
|
96
|
+
const requestRes = client._createRequest(context, {
|
|
97
|
+
security: requestSecurity,
|
|
98
|
+
method: "POST",
|
|
99
|
+
baseURL: options?.serverURL,
|
|
100
|
+
path: path,
|
|
101
|
+
headers: headers,
|
|
102
|
+
body: body,
|
|
103
|
+
userAgent: client._options.userAgent,
|
|
104
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
105
|
+
}, options);
|
|
106
|
+
if (!requestRes.ok) {
|
|
107
|
+
return [requestRes, { status: "invalid" }];
|
|
108
|
+
}
|
|
109
|
+
const req = requestRes.value;
|
|
110
|
+
const doResult = await client._do(req, {
|
|
111
|
+
context,
|
|
112
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
113
|
+
retryConfig: context.retryConfig,
|
|
114
|
+
retryCodes: context.retryCodes,
|
|
115
|
+
});
|
|
116
|
+
if (!doResult.ok) {
|
|
117
|
+
return [doResult, { status: "request-error", request: req }];
|
|
118
|
+
}
|
|
119
|
+
const response = doResult.value;
|
|
120
|
+
const responseFields = {
|
|
121
|
+
HttpMeta: { Response: response, Request: req },
|
|
122
|
+
};
|
|
123
|
+
const [result] = await M.match(M.json(200, operations.RepinSoftwareFactoryRunMultipartResponse$inboundSchema), M.jsonErr(400, errors.RepinSoftwareFactoryRunMultipartBadRequestError$inboundSchema), M.jsonErr(401, errors.RepinSoftwareFactoryRunMultipartUnauthorizedError$inboundSchema), M.jsonErr(403, errors.RepinSoftwareFactoryRunMultipartForbiddenError$inboundSchema), M.jsonErr(404, errors.RepinSoftwareFactoryRunMultipartNotFoundError$inboundSchema), M.jsonErr(409, errors.RepinSoftwareFactoryRunMultipartConflictError$inboundSchema), M.jsonErr(422, errors
|
|
124
|
+
.RepinSoftwareFactoryRunMultipartUnprocessableEntityError$inboundSchema), M.jsonErr(503, errors
|
|
125
|
+
.RepinSoftwareFactoryRunMultipartServiceUnavailableError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
126
|
+
if (!result.ok) {
|
|
127
|
+
return [result, { status: "complete", request: req, response }];
|
|
128
|
+
}
|
|
129
|
+
return [result, { status: "complete", request: req, response }];
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=software-factory-repin-software-factory-run-multipart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"software-factory-repin-software-factory-run-multipart.js","sourceRoot":"","sources":["../../../src/funcs/software-factory-repin-software-factory-run-multipart.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,0GA6BC;AA9DD,+CAAiC;AAEjC,sDAA+D;AAC/D,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;GAOG;AAC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C,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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Move a run to the current factory version
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* New launches use the current factory version; existing assignments, sessions and work are retained. 409: RUN_REPIN_SAME_VERSION, RUN_REPIN_NO_CURRENT_VERSION, RUN_REPIN_MODE_MISMATCH, RUN_REPIN_SHAPE_MISMATCH, RUN_REPIN_ENDED or RUN_BUSY. 422: RUN_REPIN_FRAMEWORK_UNSERVABLE or invalid input.
|
|
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 softwareFactoryRepinSoftwareFactoryRun(client: MutagentCore, request: operations.RepinSoftwareFactoryRunRequest, options?: RequestOptions): APIPromise<Result<operations.RepinSoftwareFactoryRunResponse, errors.RepinSoftwareFactoryRunBadRequestError | errors.RepinSoftwareFactoryRunUnauthorizedError | errors.RepinSoftwareFactoryRunForbiddenError | errors.RepinSoftwareFactoryRunNotFoundError | errors.RepinSoftwareFactoryRunConflictError | errors.RepinSoftwareFactoryRunUnprocessableEntityError | errors.RepinSoftwareFactoryRunServiceUnavailableError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
+
//# sourceMappingURL=software-factory-repin-software-factory-run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"software-factory-repin-software-factory-run.d.ts","sourceRoot":"","sources":["../../../src/funcs/software-factory-repin-software-factory-run.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,sCAAsC,CACpD,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,+BAA+B,EACxC,MAAM,CAAC,sCAAsC,GAC7C,MAAM,CAAC,wCAAwC,GAC/C,MAAM,CAAC,qCAAqC,GAC5C,MAAM,CAAC,oCAAoC,GAC3C,MAAM,CAAC,oCAAoC,GAC3C,MAAM,CAAC,+CAA+C,GACtD,MAAM,CAAC,8CAA8C,GACrD,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,127 @@
|
|
|
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.softwareFactoryRepinSoftwareFactoryRun = softwareFactoryRepinSoftwareFactoryRun;
|
|
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
|
+
* Move a run to the current factory version
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* New launches use the current factory version; existing assignments, sessions and work are retained. 409: RUN_REPIN_SAME_VERSION, RUN_REPIN_NO_CURRENT_VERSION, RUN_REPIN_MODE_MISMATCH, RUN_REPIN_SHAPE_MISMATCH, RUN_REPIN_ENDED or RUN_BUSY. 422: RUN_REPIN_FRAMEWORK_UNSERVABLE or invalid input.
|
|
56
|
+
*
|
|
57
|
+
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
58
|
+
*/
|
|
59
|
+
function softwareFactoryRepinSoftwareFactoryRun(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.RepinSoftwareFactoryRunRequest$outboundSchema, value), "Input validation failed");
|
|
64
|
+
if (!parsed.ok) {
|
|
65
|
+
return [parsed, { status: "invalid" }];
|
|
66
|
+
}
|
|
67
|
+
const payload = parsed.value;
|
|
68
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload.body, { explode: true });
|
|
69
|
+
const pathParams = {
|
|
70
|
+
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
71
|
+
explode: false,
|
|
72
|
+
charEncoding: "percent",
|
|
73
|
+
}),
|
|
74
|
+
};
|
|
75
|
+
const path = (0, url_js_1.pathToFunc)("/api/architech/factory/runs/{id}/repin")(pathParams);
|
|
76
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
77
|
+
"Content-Type": "application/json",
|
|
78
|
+
Accept: "application/json",
|
|
79
|
+
}));
|
|
80
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
81
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput, [0, 1]);
|
|
82
|
+
const context = {
|
|
83
|
+
options: client._options,
|
|
84
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
85
|
+
operationID: "repinSoftwareFactoryRun",
|
|
86
|
+
oAuth2Scopes: null,
|
|
87
|
+
resolvedSecurity: requestSecurity,
|
|
88
|
+
securitySource: client._options.security,
|
|
89
|
+
retryConfig: options?.retries
|
|
90
|
+
|| client._options.retryConfig
|
|
91
|
+
|| { strategy: "none" },
|
|
92
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
93
|
+
};
|
|
94
|
+
const requestRes = client._createRequest(context, {
|
|
95
|
+
security: requestSecurity,
|
|
96
|
+
method: "POST",
|
|
97
|
+
baseURL: options?.serverURL,
|
|
98
|
+
path: path,
|
|
99
|
+
headers: headers,
|
|
100
|
+
body: body,
|
|
101
|
+
userAgent: client._options.userAgent,
|
|
102
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
103
|
+
}, options);
|
|
104
|
+
if (!requestRes.ok) {
|
|
105
|
+
return [requestRes, { status: "invalid" }];
|
|
106
|
+
}
|
|
107
|
+
const req = requestRes.value;
|
|
108
|
+
const doResult = await client._do(req, {
|
|
109
|
+
context,
|
|
110
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
111
|
+
retryConfig: context.retryConfig,
|
|
112
|
+
retryCodes: context.retryCodes,
|
|
113
|
+
});
|
|
114
|
+
if (!doResult.ok) {
|
|
115
|
+
return [doResult, { status: "request-error", request: req }];
|
|
116
|
+
}
|
|
117
|
+
const response = doResult.value;
|
|
118
|
+
const responseFields = {
|
|
119
|
+
HttpMeta: { Response: response, Request: req },
|
|
120
|
+
};
|
|
121
|
+
const [result] = await M.match(M.json(200, operations.RepinSoftwareFactoryRunResponse$inboundSchema), M.jsonErr(400, errors.RepinSoftwareFactoryRunBadRequestError$inboundSchema), M.jsonErr(401, errors.RepinSoftwareFactoryRunUnauthorizedError$inboundSchema), M.jsonErr(403, errors.RepinSoftwareFactoryRunForbiddenError$inboundSchema), M.jsonErr(404, errors.RepinSoftwareFactoryRunNotFoundError$inboundSchema), M.jsonErr(409, errors.RepinSoftwareFactoryRunConflictError$inboundSchema), M.jsonErr(422, errors.RepinSoftwareFactoryRunUnprocessableEntityError$inboundSchema), M.jsonErr(503, errors.RepinSoftwareFactoryRunServiceUnavailableError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
122
|
+
if (!result.ok) {
|
|
123
|
+
return [result, { status: "complete", request: req, response }];
|
|
124
|
+
}
|
|
125
|
+
return [result, { status: "complete", request: req, response }];
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=software-factory-repin-software-factory-run.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"software-factory-repin-software-factory-run.js","sourceRoot":"","sources":["../../../src/funcs/software-factory-repin-software-factory-run.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,wFA6BC;AA9DD,+CAAiC;AAEjC,sDAA+D;AAC/D,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;GAOG;AACH,SAAgB,sCAAsC,CACpD,MAAoB,EACpB,OAAkD,EAClD,OAAwB;IAqBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAAkD,EAClD,OAAwB;IAwBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,6CAA6C,EAAE,KAAK,CAAC,EAC1E,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,CAAC,IAAI,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E,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,oDAAoD,CAAC,EAC3E,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,sDAAsD,CAC9D,EACD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,mDAAmD,CAAC,EAC1E,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,kDAAkD,CAAC,EACzE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,kDAAkD,CAAC,EACzE,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,6DAA6D,CACrE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,4DAA4D,CACpE,EACD,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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Release a manual hold on a run
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* A person with workspace update permission can release one stage selected from manualHolds in run detail. This is not an approval and does not release PR waits or siblings. Stale selections: 409 MANUAL_HOLD_NOT_ACTIVE.
|
|
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 softwareFactoryResumeSoftwareFactoryRun(client: MutagentCore, request: operations.ResumeSoftwareFactoryRunRequest, options?: RequestOptions): APIPromise<Result<operations.ResumeSoftwareFactoryRunResponse, errors.ResumeSoftwareFactoryRunBadRequestError | errors.ResumeSoftwareFactoryRunUnauthorizedError | errors.ResumeSoftwareFactoryRunForbiddenError | errors.ResumeSoftwareFactoryRunNotFoundError | errors.ResumeSoftwareFactoryRunConflictError | errors.ResumeSoftwareFactoryRunPreconditionFailedError | errors.ResumeSoftwareFactoryRunUnprocessableEntityError | errors.ResumeSoftwareFactoryRunPreconditionRequiredError | errors.ResumeSoftwareFactoryRunServiceUnavailableError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
+
//# sourceMappingURL=software-factory-resume-software-factory-run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"software-factory-resume-software-factory-run.d.ts","sourceRoot":"","sources":["../../../src/funcs/software-factory-resume-software-factory-run.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,uCAAuC,CACrD,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,gCAAgC,EACzC,MAAM,CAAC,uCAAuC,GAC9C,MAAM,CAAC,yCAAyC,GAChD,MAAM,CAAC,sCAAsC,GAC7C,MAAM,CAAC,qCAAqC,GAC5C,MAAM,CAAC,qCAAqC,GAC5C,MAAM,CAAC,+CAA+C,GACtD,MAAM,CAAC,gDAAgD,GACvD,MAAM,CAAC,iDAAiD,GACxD,MAAM,CAAC,+CAA+C,GACtD,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|