@mutagent/sdk 0.8.66 → 0.8.67
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/dist/commonjs/funcs/helix-cloud-publish-helix-cloud-session.d.ts +1 -1
- package/dist/commonjs/funcs/helix-cloud-publish-helix-cloud-session.js +2 -2
- package/dist/commonjs/funcs/helix-cloud-publish-helix-cloud-session.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/sdk/helix-cloud.d.ts +1 -1
- package/dist/commonjs/sdk/helix-cloud.js +1 -1
- package/dist/esm/funcs/helix-cloud-publish-helix-cloud-session.d.ts +1 -1
- package/dist/esm/funcs/helix-cloud-publish-helix-cloud-session.js +2 -2
- package/dist/esm/funcs/helix-cloud-publish-helix-cloud-session.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/sdk/helix-cloud.d.ts +1 -1
- package/dist/esm/sdk/helix-cloud.js +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Publish a session's work as a pull request
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 503 PUBLISH_UNAVAILABLE. A sandbox token is refused with 403.
|
|
16
|
+
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 502 HELPER_FAILED (the sandbox's helper crashed after it said it could export); 503 PUBLISH_UNAVAILABLE. SANDBOX_UNSUPPORTED means the sandbox's helper does not list both `export_changes` and `read_blob` in its probe. A sandbox token is refused with 403.
|
|
17
17
|
*
|
|
18
18
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
19
19
|
*/
|
|
@@ -53,7 +53,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
53
53
|
* Publish a session's work as a pull request
|
|
54
54
|
*
|
|
55
55
|
* @remarks
|
|
56
|
-
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 503 PUBLISH_UNAVAILABLE. A sandbox token is refused with 403.
|
|
56
|
+
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 502 HELPER_FAILED (the sandbox's helper crashed after it said it could export); 503 PUBLISH_UNAVAILABLE. SANDBOX_UNSUPPORTED means the sandbox's helper does not list both `export_changes` and `read_blob` in its probe. A sandbox token is refused with 403.
|
|
57
57
|
*
|
|
58
58
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
59
59
|
*/
|
|
@@ -119,7 +119,7 @@ async function $do(client, request, options) {
|
|
|
119
119
|
const responseFields = {
|
|
120
120
|
HttpMeta: { Response: response, Request: req },
|
|
121
121
|
};
|
|
122
|
-
const [result] = await M.match(M.json([200, 201], models.HelixCloudPublished$inboundSchema), M.jsonErr([401, 403, 404, 409, 422, 424, 429], errors.HelixCloudPublishError$inboundSchema), M.jsonErr(503, errors.HelixCloudPublishError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
122
|
+
const [result] = await M.match(M.json([200, 201], models.HelixCloudPublished$inboundSchema), M.jsonErr([401, 403, 404, 409, 422, 424, 429], errors.HelixCloudPublishError$inboundSchema), M.jsonErr([502, 503], errors.HelixCloudPublishError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
123
123
|
if (!result.ok) {
|
|
124
124
|
return [result, { status: "complete", request: req, response }];
|
|
125
125
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helix-cloud-publish-helix-cloud-session.js","sourceRoot":"","sources":["../../../src/funcs/helix-cloud-publish-helix-cloud-session.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,gFAuBC;AAzDD,+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;AAGxD;;;;;;;GAOG;AACH,SAAgB,kCAAkC,CAChD,MAAoB,EACpB,OAAmD,EACnD,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAAmD,EACnD,OAAwB;IAkBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,8CAA8C,EAAE,KAAK,CAAC,EAC3E,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,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAEjE,MAAM,UAAU,GAAG;QACjB,SAAS,EAAE,IAAA,2BAAY,EAAC,W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,GAAG,EAAE,GAAG,CAAC,EACnC,MAAM,CAAC,oCAAoC,CAC5C,EACD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,oCAAoC,CAAC,
|
|
1
|
+
{"version":3,"file":"helix-cloud-publish-helix-cloud-session.js","sourceRoot":"","sources":["../../../src/funcs/helix-cloud-publish-helix-cloud-session.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,gFAuBC;AAzDD,+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;AAGxD;;;;;;;GAOG;AACH,SAAgB,kCAAkC,CAChD,MAAoB,EACpB,OAAmD,EACnD,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAAmD,EACnD,OAAwB;IAkBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,8CAA8C,EAAE,KAAK,CAAC,EAC3E,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,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAEjE,MAAM,U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E,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EACnC,MAAM,CAAC,oCAAoC,CAC5C,EACD,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,oCAAoC,CAAC,EAClE,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.8.
|
|
38
|
+
readonly sdkVersion: "0.8.67";
|
|
39
39
|
readonly genVersion: "2.938.0";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.8.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.8.67 2.938.0 2.0.0 @mutagent/sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -35,8 +35,8 @@ function serverURLFromOptions(options) {
|
|
|
35
35
|
exports.SDK_METADATA = {
|
|
36
36
|
language: "typescript",
|
|
37
37
|
openapiDocVersion: "2.0.0",
|
|
38
|
-
sdkVersion: "0.8.
|
|
38
|
+
sdkVersion: "0.8.67",
|
|
39
39
|
genVersion: "2.938.0",
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 0.8.
|
|
40
|
+
userAgent: "speakeasy-sdk/typescript 0.8.67 2.938.0 2.0.0 @mutagent/sdk",
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.js.map
|
|
@@ -111,7 +111,7 @@ export declare class HelixCloud extends ClientSDK {
|
|
|
111
111
|
* Publish a session's work as a pull request
|
|
112
112
|
*
|
|
113
113
|
* @remarks
|
|
114
|
-
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 503 PUBLISH_UNAVAILABLE. A sandbox token is refused with 403.
|
|
114
|
+
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 502 HELPER_FAILED (the sandbox's helper crashed after it said it could export); 503 PUBLISH_UNAVAILABLE. SANDBOX_UNSUPPORTED means the sandbox's helper does not list both `export_changes` and `read_blob` in its probe. A sandbox token is refused with 403.
|
|
115
115
|
*/
|
|
116
116
|
publishHelixCloudSession(request: operations.PublishHelixCloudSessionRequest, options?: RequestOptions): Promise<models.HelixCloudPublished>;
|
|
117
117
|
}
|
|
@@ -162,7 +162,7 @@ class HelixCloud extends sdks_js_1.ClientSDK {
|
|
|
162
162
|
* Publish a session's work as a pull request
|
|
163
163
|
*
|
|
164
164
|
* @remarks
|
|
165
|
-
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 503 PUBLISH_UNAVAILABLE. A sandbox token is refused with 403.
|
|
165
|
+
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 502 HELPER_FAILED (the sandbox's helper crashed after it said it could export); 503 PUBLISH_UNAVAILABLE. SANDBOX_UNSUPPORTED means the sandbox's helper does not list both `export_changes` and `read_blob` in its probe. A sandbox token is refused with 403.
|
|
166
166
|
*/
|
|
167
167
|
async publishHelixCloudSession(request, options) {
|
|
168
168
|
return (0, fp_js_1.unwrapAsync)((0, helix_cloud_publish_helix_cloud_session_js_1.helixCloudPublishHelixCloudSession)(this, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Publish a session's work as a pull request
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 503 PUBLISH_UNAVAILABLE. A sandbox token is refused with 403.
|
|
16
|
+
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 502 HELPER_FAILED (the sandbox's helper crashed after it said it could export); 503 PUBLISH_UNAVAILABLE. SANDBOX_UNSUPPORTED means the sandbox's helper does not list both `export_changes` and `read_blob` in its probe. A sandbox token is refused with 403.
|
|
17
17
|
*
|
|
18
18
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
19
19
|
*/
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Publish a session's work as a pull request
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 503 PUBLISH_UNAVAILABLE. A sandbox token is refused with 403.
|
|
20
|
+
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 502 HELPER_FAILED (the sandbox's helper crashed after it said it could export); 503 PUBLISH_UNAVAILABLE. SANDBOX_UNSUPPORTED means the sandbox's helper does not list both `export_changes` and `read_blob` in its probe. A sandbox token is refused with 403.
|
|
21
21
|
*
|
|
22
22
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
23
23
|
*/
|
|
@@ -83,7 +83,7 @@ async function $do(client, request, options) {
|
|
|
83
83
|
const responseFields = {
|
|
84
84
|
HttpMeta: { Response: response, Request: req },
|
|
85
85
|
};
|
|
86
|
-
const [result] = await M.match(M.json([200, 201], models.HelixCloudPublished$inboundSchema), M.jsonErr([401, 403, 404, 409, 422, 424, 429], errors.HelixCloudPublishError$inboundSchema), M.jsonErr(503, errors.HelixCloudPublishError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
86
|
+
const [result] = await M.match(M.json([200, 201], models.HelixCloudPublished$inboundSchema), M.jsonErr([401, 403, 404, 409, 422, 424, 429], errors.HelixCloudPublishError$inboundSchema), M.jsonErr([502, 503], errors.HelixCloudPublishError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
87
87
|
if (!result.ok) {
|
|
88
88
|
return [result, { status: "complete", request: req, response }];
|
|
89
89
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helix-cloud-publish-helix-cloud-session.js","sourceRoot":"","sources":["../../../src/funcs/helix-cloud-publish-helix-cloud-session.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gBA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C,oCAAoC,CAC5C,EACD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,oCAAoC,CAAC,
|
|
1
|
+
{"version":3,"file":"helix-cloud-publish-helix-cloud-session.js","sourceRoot":"","sources":["../../../src/funcs/helix-cloud-publish-helix-cloud-session.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAIpD,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;;;GAOG;AACH,MAAM,UAAU,kCAAkC,CAChD,MAAoB,EACpB,OAAmD,EACnD,OAAwB;IAexB,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAAmD,EACnD,OAAwB;IAkBxB,MAAM,MAAM,GAAG,SAAS,CACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,8CAA8C,EAAE,KAAK,CAAC,EAC3E,yBAAyB,CAC1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AE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,iCAAiC,CAAC,EAC5D,CAAC,CAAC,OAAO,CACP,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EACnC,MAAM,CAAC,oCAAoC,CAC5C,EACD,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,oCAAoC,CAAC,EAClE,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"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -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.8.
|
|
38
|
+
readonly sdkVersion: "0.8.67";
|
|
39
39
|
readonly genVersion: "2.938.0";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.8.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.8.67 2.938.0 2.0.0 @mutagent/sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
|
|
|
31
31
|
export const SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "2.0.0",
|
|
34
|
-
sdkVersion: "0.8.
|
|
34
|
+
sdkVersion: "0.8.67",
|
|
35
35
|
genVersion: "2.938.0",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.8.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.8.67 2.938.0 2.0.0 @mutagent/sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -111,7 +111,7 @@ export declare class HelixCloud extends ClientSDK {
|
|
|
111
111
|
* Publish a session's work as a pull request
|
|
112
112
|
*
|
|
113
113
|
* @remarks
|
|
114
|
-
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 503 PUBLISH_UNAVAILABLE. A sandbox token is refused with 403.
|
|
114
|
+
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 502 HELPER_FAILED (the sandbox's helper crashed after it said it could export); 503 PUBLISH_UNAVAILABLE. SANDBOX_UNSUPPORTED means the sandbox's helper does not list both `export_changes` and `read_blob` in its probe. A sandbox token is refused with 403.
|
|
115
115
|
*/
|
|
116
116
|
publishHelixCloudSession(request: operations.PublishHelixCloudSessionRequest, options?: RequestOptions): Promise<models.HelixCloudPublished>;
|
|
117
117
|
}
|
|
@@ -159,7 +159,7 @@ export class HelixCloud extends ClientSDK {
|
|
|
159
159
|
* Publish a session's work as a pull request
|
|
160
160
|
*
|
|
161
161
|
* @remarks
|
|
162
|
-
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 503 PUBLISH_UNAVAILABLE. A sandbox token is refused with 403.
|
|
162
|
+
* Recreates the session's committed work (its checkout's HEAD against the commit it started from) as one commit on `helix/session-…` of the session's repository, and opens a pull request into the branch the session started from, as the MutagenT GitHub App. The sandbox never holds the write token: the platform reads the change out of it and writes it through GitHub's Git Data API. The branch is created, or fast-forwarded over this session's own last publish only; it is never forced and never the default branch. Symlinks and any path git refuses are refused. A second publish returns the open pull request (200). The commit and the pull request name the session (`Helix-Session: hs1_…`). The platform also publishes when a session ends. The base is the commit the platform recorded when the session started; the sandbox's claim must equal it. Refusals: 404 SESSION_NOT_FOUND; 409 SESSION_HAS_NO_REPOSITORY, SESSION_ENDED, NO_NEW_COMMITS, CHECKOUT_UNKNOWN, BASE_UNRECORDED, BASE_MISMATCH, BASE_NOT_IN_REPOSITORY, BASE_NOT_ON_BRANCH, BRANCH_DIVERGED, BRANCH_NOT_OURS, SANDBOX_UNSUPPORTED, PULL_REQUEST_REFUSED, REPOSITORY_ACCESS_DENIED, GITHUB_INSTALLATION_SUSPENDED; 422 UNSAFE_PATH, UNSUPPORTED_CHANGE, CHANGE_TOO_LARGE; 424 GITHUB_APP_PERMISSIONS_MISSING (the App installation must grant contents:write and pull_requests:write); 429 GITHUB_RATE_LIMITED; 502 HELPER_FAILED (the sandbox's helper crashed after it said it could export); 503 PUBLISH_UNAVAILABLE. SANDBOX_UNSUPPORTED means the sandbox's helper does not list both `export_changes` and `read_blob` in its probe. A sandbox token is refused with 403.
|
|
163
163
|
*/
|
|
164
164
|
async publishHelixCloudSession(request, options) {
|
|
165
165
|
return unwrapAsync(helixCloudPublishHelixCloudSession(this, request, options));
|