@mutagent/sdk 0.13.43 → 0.13.45
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 +1087 -1067
- package/dist/commonjs/funcs/architech-sessions-launch-architech-session.d.ts +1 -1
- package/dist/commonjs/funcs/architech-sessions-launch-architech-session.js +1 -1
- package/dist/commonjs/funcs/artifacts-get-artifact-version-file.d.ts +20 -0
- package/dist/commonjs/funcs/artifacts-get-artifact-version-file.d.ts.map +1 -0
- package/dist/commonjs/funcs/artifacts-get-artifact-version-file.js +134 -0
- package/dist/commonjs/funcs/artifacts-get-artifact-version-file.js.map +1 -0
- package/dist/commonjs/funcs/artifacts-get-artifact.d.ts +2 -2
- package/dist/commonjs/funcs/artifacts-get-artifact.d.ts.map +1 -1
- package/dist/commonjs/funcs/artifacts-get-artifact.js +2 -2
- package/dist/commonjs/funcs/artifacts-get-artifact.js.map +1 -1
- package/dist/commonjs/funcs/artifacts-list-artifact-versions.d.ts +2 -2
- package/dist/commonjs/funcs/artifacts-list-artifact-versions.d.ts.map +1 -1
- package/dist/commonjs/funcs/artifacts-list-artifact-versions.js +2 -2
- package/dist/commonjs/funcs/artifacts-list-artifact-versions.js.map +1 -1
- package/dist/commonjs/funcs/artifacts-list-artifacts.d.ts +2 -2
- package/dist/commonjs/funcs/artifacts-list-artifacts.d.ts.map +1 -1
- package/dist/commonjs/funcs/artifacts-list-artifacts.js +2 -2
- package/dist/commonjs/funcs/artifacts-list-artifacts.js.map +1 -1
- package/dist/commonjs/funcs/gateway-claim-gateway-git-hub-installation.d.ts +1 -1
- package/dist/commonjs/funcs/gateway-claim-gateway-git-hub-installation.js +1 -1
- package/dist/commonjs/funcs/gateway-list-gateway-git-hub-installation-grants.d.ts +20 -0
- package/dist/commonjs/funcs/gateway-list-gateway-git-hub-installation-grants.d.ts.map +1 -0
- package/dist/commonjs/funcs/gateway-list-gateway-git-hub-installation-grants.js +127 -0
- package/dist/commonjs/funcs/gateway-list-gateway-git-hub-installation-grants.js.map +1 -0
- package/dist/commonjs/funcs/gateway-restore-gateway-git-hub-installation-grant.d.ts +20 -0
- package/dist/commonjs/funcs/gateway-restore-gateway-git-hub-installation-grant.d.ts.map +1 -0
- package/dist/commonjs/funcs/gateway-restore-gateway-git-hub-installation-grant.js +131 -0
- package/dist/commonjs/funcs/gateway-restore-gateway-git-hub-installation-grant.js.map +1 -0
- package/dist/commonjs/funcs/gateway-revoke-gateway-git-hub-installation-grant.d.ts +20 -0
- package/dist/commonjs/funcs/gateway-revoke-gateway-git-hub-installation-grant.d.ts.map +1 -0
- package/dist/commonjs/funcs/gateway-revoke-gateway-git-hub-installation-grant.js +131 -0
- package/dist/commonjs/funcs/gateway-revoke-gateway-git-hub-installation-grant.js.map +1 -0
- package/dist/commonjs/funcs/helix-cloud-start-helix-cloud-session.d.ts +1 -1
- package/dist/commonjs/funcs/helix-cloud-start-helix-cloud-session.js +1 -1
- package/dist/commonjs/funcs/helix-sessions-launch-helix-session-deprecated.d.ts +1 -1
- package/dist/commonjs/funcs/helix-sessions-launch-helix-session-deprecated.js +1 -1
- package/dist/commonjs/funcs/helix-sessions-launch-helix-session.d.ts +1 -1
- package/dist/commonjs/funcs/helix-sessions-launch-helix-session.js +1 -1
- package/dist/commonjs/funcs/sandbox-sessions-launch-sandbox-session.d.ts +1 -1
- package/dist/commonjs/funcs/sandbox-sessions-launch-sandbox-session.js +1 -1
- package/dist/commonjs/funcs/sandbox-sessions-start-sandbox-web-session.d.ts +1 -1
- package/dist/commonjs/funcs/sandbox-sessions-start-sandbox-web-session.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/errors/get-artifact.d.ts +20 -0
- package/dist/commonjs/models/errors/get-artifact.d.ts.map +1 -0
- package/dist/commonjs/models/errors/get-artifact.js +23 -0
- package/dist/commonjs/models/errors/get-artifact.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +6 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +6 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/list-artifact-versions.d.ts +20 -0
- package/dist/commonjs/models/errors/list-artifact-versions.d.ts.map +1 -0
- package/dist/commonjs/models/errors/list-artifact-versions.js +23 -0
- package/dist/commonjs/models/errors/list-artifact-versions.js.map +1 -0
- package/dist/commonjs/models/errors/list-artifacts.d.ts +20 -0
- package/dist/commonjs/models/errors/list-artifacts.d.ts.map +1 -0
- package/dist/commonjs/models/errors/list-artifacts.js +23 -0
- package/dist/commonjs/models/errors/list-artifacts.js.map +1 -0
- package/dist/commonjs/models/errors/list-gateway-git-hub-installation-grants.d.ts +135 -0
- package/dist/commonjs/models/errors/list-gateway-git-hub-installation-grants.d.ts.map +1 -0
- package/dist/commonjs/models/errors/list-gateway-git-hub-installation-grants.js +171 -0
- package/dist/commonjs/models/errors/list-gateway-git-hub-installation-grants.js.map +1 -0
- package/dist/commonjs/models/errors/restore-gateway-git-hub-installation-grant.d.ts +135 -0
- package/dist/commonjs/models/errors/restore-gateway-git-hub-installation-grant.d.ts.map +1 -0
- package/dist/commonjs/models/errors/restore-gateway-git-hub-installation-grant.js +167 -0
- package/dist/commonjs/models/errors/restore-gateway-git-hub-installation-grant.js.map +1 -0
- package/dist/commonjs/models/errors/revoke-gateway-git-hub-installation-grant.d.ts +135 -0
- package/dist/commonjs/models/errors/revoke-gateway-git-hub-installation-grant.d.ts.map +1 -0
- package/dist/commonjs/models/errors/revoke-gateway-git-hub-installation-grant.js +167 -0
- package/dist/commonjs/models/errors/revoke-gateway-git-hub-installation-grant.js.map +1 -0
- package/dist/commonjs/models/operations/ask-software-factory-session.d.ts +15 -0
- package/dist/commonjs/models/operations/ask-software-factory-session.d.ts.map +1 -1
- package/dist/commonjs/models/operations/ask-software-factory-session.js +13 -1
- package/dist/commonjs/models/operations/ask-software-factory-session.js.map +1 -1
- package/dist/commonjs/models/operations/claim-gateway-git-hub-installation.d.ts +32 -0
- package/dist/commonjs/models/operations/claim-gateway-git-hub-installation.d.ts.map +1 -1
- package/dist/commonjs/models/operations/claim-gateway-git-hub-installation.js +29 -1
- package/dist/commonjs/models/operations/claim-gateway-git-hub-installation.js.map +1 -1
- package/dist/commonjs/models/operations/disconnect-gateway-integration.d.ts +18 -0
- package/dist/commonjs/models/operations/disconnect-gateway-integration.d.ts.map +1 -1
- package/dist/commonjs/models/operations/disconnect-gateway-integration.js +18 -1
- package/dist/commonjs/models/operations/disconnect-gateway-integration.js.map +1 -1
- package/dist/commonjs/models/operations/get-artifact-version-file.d.ts +25 -0
- package/dist/commonjs/models/operations/get-artifact-version-file.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-artifact-version-file.js +51 -0
- package/dist/commonjs/models/operations/get-artifact-version-file.js.map +1 -0
- package/dist/commonjs/models/operations/get-gateway-git-hub-claim.d.ts +5 -4
- package/dist/commonjs/models/operations/get-gateway-git-hub-claim.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-gateway-git-hub-claim.js +2 -1
- package/dist/commonjs/models/operations/get-gateway-git-hub-claim.js.map +1 -1
- package/dist/commonjs/models/operations/get-gateway-integration-attempt.d.ts +18 -0
- package/dist/commonjs/models/operations/get-gateway-integration-attempt.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-gateway-integration-attempt.js +18 -1
- package/dist/commonjs/models/operations/get-gateway-integration-attempt.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-gateway-git-hub-installation-grants.d.ts +57 -0
- package/dist/commonjs/models/operations/list-gateway-git-hub-installation-grants.d.ts.map +1 -0
- package/dist/commonjs/models/operations/list-gateway-git-hub-installation-grants.js +81 -0
- package/dist/commonjs/models/operations/list-gateway-git-hub-installation-grants.js.map +1 -0
- package/dist/commonjs/models/operations/list-gateway-integrations.d.ts +18 -0
- package/dist/commonjs/models/operations/list-gateway-integrations.d.ts.map +1 -1
- package/dist/commonjs/models/operations/list-gateway-integrations.js +18 -1
- package/dist/commonjs/models/operations/list-gateway-integrations.js.map +1 -1
- package/dist/commonjs/models/operations/restore-gateway-git-hub-installation-grant.d.ts +31 -0
- package/dist/commonjs/models/operations/restore-gateway-git-hub-installation-grant.d.ts.map +1 -0
- package/dist/commonjs/models/operations/restore-gateway-git-hub-installation-grant.js +68 -0
- package/dist/commonjs/models/operations/restore-gateway-git-hub-installation-grant.js.map +1 -0
- package/dist/commonjs/models/operations/revoke-gateway-git-hub-installation-grant.d.ts +31 -0
- package/dist/commonjs/models/operations/revoke-gateway-git-hub-installation-grant.d.ts.map +1 -0
- package/dist/commonjs/models/operations/revoke-gateway-git-hub-installation-grant.js +68 -0
- package/dist/commonjs/models/operations/revoke-gateway-git-hub-installation-grant.js.map +1 -0
- package/dist/commonjs/models/operations/use-gateway-git-hub-org-installation.d.ts +18 -0
- package/dist/commonjs/models/operations/use-gateway-git-hub-org-installation.d.ts.map +1 -1
- package/dist/commonjs/models/operations/use-gateway-git-hub-org-installation.js +18 -1
- package/dist/commonjs/models/operations/use-gateway-git-hub-org-installation.js.map +1 -1
- package/dist/commonjs/sdk/architech-sessions.d.ts +1 -1
- package/dist/commonjs/sdk/architech-sessions.js +1 -1
- package/dist/commonjs/sdk/artifacts.d.ts +10 -3
- package/dist/commonjs/sdk/artifacts.d.ts.map +1 -1
- package/dist/commonjs/sdk/artifacts.js +13 -3
- package/dist/commonjs/sdk/artifacts.js.map +1 -1
- package/dist/commonjs/sdk/gateway.d.ts +22 -1
- package/dist/commonjs/sdk/gateway.d.ts.map +1 -1
- package/dist/commonjs/sdk/gateway.js +31 -1
- package/dist/commonjs/sdk/gateway.js.map +1 -1
- package/dist/commonjs/sdk/helix-cloud.d.ts +1 -1
- package/dist/commonjs/sdk/helix-cloud.js +1 -1
- package/dist/commonjs/sdk/helix-sessions.d.ts +2 -2
- package/dist/commonjs/sdk/helix-sessions.js +2 -2
- package/dist/commonjs/sdk/sandbox-sessions.d.ts +2 -2
- package/dist/commonjs/sdk/sandbox-sessions.js +2 -2
- package/dist/esm/funcs/architech-sessions-launch-architech-session.d.ts +1 -1
- package/dist/esm/funcs/architech-sessions-launch-architech-session.js +1 -1
- package/dist/esm/funcs/artifacts-get-artifact-version-file.d.ts +20 -0
- package/dist/esm/funcs/artifacts-get-artifact-version-file.d.ts.map +1 -0
- package/dist/esm/funcs/artifacts-get-artifact-version-file.js +98 -0
- package/dist/esm/funcs/artifacts-get-artifact-version-file.js.map +1 -0
- package/dist/esm/funcs/artifacts-get-artifact.d.ts +2 -2
- package/dist/esm/funcs/artifacts-get-artifact.d.ts.map +1 -1
- package/dist/esm/funcs/artifacts-get-artifact.js +2 -2
- package/dist/esm/funcs/artifacts-get-artifact.js.map +1 -1
- package/dist/esm/funcs/artifacts-list-artifact-versions.d.ts +2 -2
- package/dist/esm/funcs/artifacts-list-artifact-versions.d.ts.map +1 -1
- package/dist/esm/funcs/artifacts-list-artifact-versions.js +2 -2
- package/dist/esm/funcs/artifacts-list-artifact-versions.js.map +1 -1
- package/dist/esm/funcs/artifacts-list-artifacts.d.ts +2 -2
- package/dist/esm/funcs/artifacts-list-artifacts.d.ts.map +1 -1
- package/dist/esm/funcs/artifacts-list-artifacts.js +2 -2
- package/dist/esm/funcs/artifacts-list-artifacts.js.map +1 -1
- package/dist/esm/funcs/gateway-claim-gateway-git-hub-installation.d.ts +1 -1
- package/dist/esm/funcs/gateway-claim-gateway-git-hub-installation.js +1 -1
- package/dist/esm/funcs/gateway-list-gateway-git-hub-installation-grants.d.ts +20 -0
- package/dist/esm/funcs/gateway-list-gateway-git-hub-installation-grants.d.ts.map +1 -0
- package/dist/esm/funcs/gateway-list-gateway-git-hub-installation-grants.js +91 -0
- package/dist/esm/funcs/gateway-list-gateway-git-hub-installation-grants.js.map +1 -0
- package/dist/esm/funcs/gateway-restore-gateway-git-hub-installation-grant.d.ts +20 -0
- package/dist/esm/funcs/gateway-restore-gateway-git-hub-installation-grant.d.ts.map +1 -0
- package/dist/esm/funcs/gateway-restore-gateway-git-hub-installation-grant.js +95 -0
- package/dist/esm/funcs/gateway-restore-gateway-git-hub-installation-grant.js.map +1 -0
- package/dist/esm/funcs/gateway-revoke-gateway-git-hub-installation-grant.d.ts +20 -0
- package/dist/esm/funcs/gateway-revoke-gateway-git-hub-installation-grant.d.ts.map +1 -0
- package/dist/esm/funcs/gateway-revoke-gateway-git-hub-installation-grant.js +95 -0
- package/dist/esm/funcs/gateway-revoke-gateway-git-hub-installation-grant.js.map +1 -0
- package/dist/esm/funcs/helix-cloud-start-helix-cloud-session.d.ts +1 -1
- package/dist/esm/funcs/helix-cloud-start-helix-cloud-session.js +1 -1
- package/dist/esm/funcs/helix-sessions-launch-helix-session-deprecated.d.ts +1 -1
- package/dist/esm/funcs/helix-sessions-launch-helix-session-deprecated.js +1 -1
- package/dist/esm/funcs/helix-sessions-launch-helix-session.d.ts +1 -1
- package/dist/esm/funcs/helix-sessions-launch-helix-session.js +1 -1
- package/dist/esm/funcs/sandbox-sessions-launch-sandbox-session.d.ts +1 -1
- package/dist/esm/funcs/sandbox-sessions-launch-sandbox-session.js +1 -1
- package/dist/esm/funcs/sandbox-sessions-start-sandbox-web-session.d.ts +1 -1
- package/dist/esm/funcs/sandbox-sessions-start-sandbox-web-session.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/errors/get-artifact.d.ts +20 -0
- package/dist/esm/models/errors/get-artifact.d.ts.map +1 -0
- package/dist/esm/models/errors/get-artifact.js +18 -0
- package/dist/esm/models/errors/get-artifact.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +6 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +6 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/list-artifact-versions.d.ts +20 -0
- package/dist/esm/models/errors/list-artifact-versions.d.ts.map +1 -0
- package/dist/esm/models/errors/list-artifact-versions.js +18 -0
- package/dist/esm/models/errors/list-artifact-versions.js.map +1 -0
- package/dist/esm/models/errors/list-artifacts.d.ts +20 -0
- package/dist/esm/models/errors/list-artifacts.d.ts.map +1 -0
- package/dist/esm/models/errors/list-artifacts.js +18 -0
- package/dist/esm/models/errors/list-artifacts.js.map +1 -0
- package/dist/esm/models/errors/list-gateway-git-hub-installation-grants.d.ts +135 -0
- package/dist/esm/models/errors/list-gateway-git-hub-installation-grants.d.ts.map +1 -0
- package/dist/esm/models/errors/list-gateway-git-hub-installation-grants.js +130 -0
- package/dist/esm/models/errors/list-gateway-git-hub-installation-grants.js.map +1 -0
- package/dist/esm/models/errors/restore-gateway-git-hub-installation-grant.d.ts +135 -0
- package/dist/esm/models/errors/restore-gateway-git-hub-installation-grant.d.ts.map +1 -0
- package/dist/esm/models/errors/restore-gateway-git-hub-installation-grant.js +126 -0
- package/dist/esm/models/errors/restore-gateway-git-hub-installation-grant.js.map +1 -0
- package/dist/esm/models/errors/revoke-gateway-git-hub-installation-grant.d.ts +135 -0
- package/dist/esm/models/errors/revoke-gateway-git-hub-installation-grant.d.ts.map +1 -0
- package/dist/esm/models/errors/revoke-gateway-git-hub-installation-grant.js +126 -0
- package/dist/esm/models/errors/revoke-gateway-git-hub-installation-grant.js.map +1 -0
- package/dist/esm/models/operations/ask-software-factory-session.d.ts +15 -0
- package/dist/esm/models/operations/ask-software-factory-session.d.ts.map +1 -1
- package/dist/esm/models/operations/ask-software-factory-session.js +12 -0
- package/dist/esm/models/operations/ask-software-factory-session.js.map +1 -1
- package/dist/esm/models/operations/claim-gateway-git-hub-installation.d.ts +32 -0
- package/dist/esm/models/operations/claim-gateway-git-hub-installation.d.ts.map +1 -1
- package/dist/esm/models/operations/claim-gateway-git-hub-installation.js +27 -0
- package/dist/esm/models/operations/claim-gateway-git-hub-installation.js.map +1 -1
- package/dist/esm/models/operations/disconnect-gateway-integration.d.ts +18 -0
- package/dist/esm/models/operations/disconnect-gateway-integration.d.ts.map +1 -1
- package/dist/esm/models/operations/disconnect-gateway-integration.js +16 -0
- package/dist/esm/models/operations/disconnect-gateway-integration.js.map +1 -1
- package/dist/esm/models/operations/get-artifact-version-file.d.ts +25 -0
- package/dist/esm/models/operations/get-artifact-version-file.d.ts.map +1 -0
- package/dist/esm/models/operations/get-artifact-version-file.js +14 -0
- package/dist/esm/models/operations/get-artifact-version-file.js.map +1 -0
- package/dist/esm/models/operations/get-gateway-git-hub-claim.d.ts +5 -4
- package/dist/esm/models/operations/get-gateway-git-hub-claim.d.ts.map +1 -1
- package/dist/esm/models/operations/get-gateway-git-hub-claim.js +2 -1
- package/dist/esm/models/operations/get-gateway-git-hub-claim.js.map +1 -1
- package/dist/esm/models/operations/get-gateway-integration-attempt.d.ts +18 -0
- package/dist/esm/models/operations/get-gateway-integration-attempt.d.ts.map +1 -1
- package/dist/esm/models/operations/get-gateway-integration-attempt.js +16 -0
- package/dist/esm/models/operations/get-gateway-integration-attempt.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-gateway-git-hub-installation-grants.d.ts +57 -0
- package/dist/esm/models/operations/list-gateway-git-hub-installation-grants.d.ts.map +1 -0
- package/dist/esm/models/operations/list-gateway-git-hub-installation-grants.js +42 -0
- package/dist/esm/models/operations/list-gateway-git-hub-installation-grants.js.map +1 -0
- package/dist/esm/models/operations/list-gateway-integrations.d.ts +18 -0
- package/dist/esm/models/operations/list-gateway-integrations.d.ts.map +1 -1
- package/dist/esm/models/operations/list-gateway-integrations.js +16 -0
- package/dist/esm/models/operations/list-gateway-integrations.js.map +1 -1
- package/dist/esm/models/operations/restore-gateway-git-hub-installation-grant.d.ts +31 -0
- package/dist/esm/models/operations/restore-gateway-git-hub-installation-grant.d.ts.map +1 -0
- package/dist/esm/models/operations/restore-gateway-git-hub-installation-grant.js +30 -0
- package/dist/esm/models/operations/restore-gateway-git-hub-installation-grant.js.map +1 -0
- package/dist/esm/models/operations/revoke-gateway-git-hub-installation-grant.d.ts +31 -0
- package/dist/esm/models/operations/revoke-gateway-git-hub-installation-grant.d.ts.map +1 -0
- package/dist/esm/models/operations/revoke-gateway-git-hub-installation-grant.js +30 -0
- package/dist/esm/models/operations/revoke-gateway-git-hub-installation-grant.js.map +1 -0
- package/dist/esm/models/operations/use-gateway-git-hub-org-installation.d.ts +18 -0
- package/dist/esm/models/operations/use-gateway-git-hub-org-installation.d.ts.map +1 -1
- package/dist/esm/models/operations/use-gateway-git-hub-org-installation.js +16 -0
- package/dist/esm/models/operations/use-gateway-git-hub-org-installation.js.map +1 -1
- package/dist/esm/sdk/architech-sessions.d.ts +1 -1
- package/dist/esm/sdk/architech-sessions.js +1 -1
- package/dist/esm/sdk/artifacts.d.ts +10 -3
- package/dist/esm/sdk/artifacts.d.ts.map +1 -1
- package/dist/esm/sdk/artifacts.js +13 -3
- package/dist/esm/sdk/artifacts.js.map +1 -1
- package/dist/esm/sdk/gateway.d.ts +22 -1
- package/dist/esm/sdk/gateway.d.ts.map +1 -1
- package/dist/esm/sdk/gateway.js +31 -1
- package/dist/esm/sdk/gateway.js.map +1 -1
- package/dist/esm/sdk/helix-cloud.d.ts +1 -1
- package/dist/esm/sdk/helix-cloud.js +1 -1
- package/dist/esm/sdk/helix-sessions.d.ts +2 -2
- package/dist/esm/sdk/helix-sessions.js +2 -2
- package/dist/esm/sdk/sandbox-sessions.d.ts +2 -2
- package/dist/esm/sdk/sandbox-sessions.js +2 -2
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Launch a session (the architech harness)
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Starts a session of the architech harness. With `agent`, runs a managed agent on the agent arm (the slot, agent and `environment`, selects the revision; the response names `agent.slug` and `agent.revision`); args may carry only `-p <task>`, which runs it headless. An unknown agent is a 404 `AGENT_NOT_FOUND`. Another harness runs its own preset when `preset` is omitted; a preset of another harness is a 422 `SESSION_HARNESS_MISMATCH`. Returns the session reference. If the new sandbox cannot be set up, the start is refused after the sandbox is released: 503 `SANDBOX_SETUP_TIMEOUT` (retry)
|
|
15
|
+
* Starts a session of the architech harness. With `agent`, runs a managed agent on the agent arm (the slot, agent and `environment`, selects the revision; the response names `agent.slug` and `agent.revision`); args may carry only `-p <task>`, which runs it headless. An unknown agent is a 404 `AGENT_NOT_FOUND`. Another harness runs its own preset when `preset` is omitted; a preset of another harness is a 422 `SESSION_HARNESS_MISMATCH`. Returns the session reference. If the new sandbox cannot be set up, the start is refused after the sandbox is released: 503 `SANDBOX_SETUP_TIMEOUT` (retry), 502 `SANDBOX_SETUP_FAILED`, or 409 `SUBSCRIPTION_NEEDS_RELOGIN` when the selected subscription login is no longer valid (sign in again in Configuration > LLM providers). Disconnecting does not stop the session; an idle sandbox stops after 15 minutes.
|
|
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
|
* Launch a session (the architech harness)
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* Starts a session of the architech harness. With `agent`, runs a managed agent on the agent arm (the slot, agent and `environment`, selects the revision; the response names `agent.slug` and `agent.revision`); args may carry only `-p <task>`, which runs it headless. An unknown agent is a 404 `AGENT_NOT_FOUND`. Another harness runs its own preset when `preset` is omitted; a preset of another harness is a 422 `SESSION_HARNESS_MISMATCH`. Returns the session reference. If the new sandbox cannot be set up, the start is refused after the sandbox is released: 503 `SANDBOX_SETUP_TIMEOUT` (retry)
|
|
55
|
+
* Starts a session of the architech harness. With `agent`, runs a managed agent on the agent arm (the slot, agent and `environment`, selects the revision; the response names `agent.slug` and `agent.revision`); args may carry only `-p <task>`, which runs it headless. An unknown agent is a 404 `AGENT_NOT_FOUND`. Another harness runs its own preset when `preset` is omitted; a preset of another harness is a 422 `SESSION_HARNESS_MISMATCH`. Returns the session reference. If the new sandbox cannot be set up, the start is refused after the sandbox is released: 503 `SANDBOX_SETUP_TIMEOUT` (retry), 502 `SANDBOX_SETUP_FAILED`, or 409 `SUBSCRIPTION_NEEDS_RELOGIN` when the selected subscription login is no longer valid (sign in again in Configuration > LLM providers). Disconnecting does not stop the session; an idle sandbox stops after 15 minutes.
|
|
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
|
+
* Download one file of an artifact version (sandbox)
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* One file of one version, as bytes (content-disposition: attachment), for a sandbox's own task token (Bearer) with artifacts:read: the artifact must be in the token's workspace and open to it, or published by the token's own session (else 404 ARTIFACT_NOT_FOUND, also for a path the version does not list). `path` is the file's manifest path as published (e.g. assets/app.css); an empty or dot segment, a backslash or a control character is 400 ARTIFACT_PATH_INVALID. An expired token, or any caller without a sandbox token, is 401; a token without the scope 403 SANDBOX_SCOPE. Members read files through a view token (POST /artifacts/{id}/view).
|
|
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 artifactsGetArtifactVersionFile(client: MutagentCore, request: operations.GetArtifactVersionFileRequest, options?: RequestOptions): APIPromise<Result<ReadableStream<Uint8Array>, errors.ErrorResponse | errors.ErrorResponseWithStatus | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
+
//# sourceMappingURL=artifacts-get-artifact-version-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifacts-get-artifact-version-file.d.ts","sourceRoot":"","sources":["../../../src/funcs/artifacts-get-artifact-version-file.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,+BAA+B,CAC7C,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,cAAc,CAAC,UAAU,CAAC,EACxB,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,uBAAuB,GAC9B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,134 @@
|
|
|
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.artifactsGetArtifactVersionFile = artifactsGetArtifactVersionFile;
|
|
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
|
+
* Download one file of an artifact version (sandbox)
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* One file of one version, as bytes (content-disposition: attachment), for a sandbox's own task token (Bearer) with artifacts:read: the artifact must be in the token's workspace and open to it, or published by the token's own session (else 404 ARTIFACT_NOT_FOUND, also for a path the version does not list). `path` is the file's manifest path as published (e.g. assets/app.css); an empty or dot segment, a backslash or a control character is 400 ARTIFACT_PATH_INVALID. An expired token, or any caller without a sandbox token, is 401; a token without the scope 403 SANDBOX_SCOPE. Members read files through a view token (POST /artifacts/{id}/view).
|
|
56
|
+
*
|
|
57
|
+
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
58
|
+
*/
|
|
59
|
+
function artifactsGetArtifactVersionFile(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.GetArtifactVersionFileRequest$outboundSchema, value), "Input validation failed");
|
|
64
|
+
if (!parsed.ok) {
|
|
65
|
+
return [parsed, { status: "invalid" }];
|
|
66
|
+
}
|
|
67
|
+
const payload = parsed.value;
|
|
68
|
+
const body = null;
|
|
69
|
+
const pathParams = {
|
|
70
|
+
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
71
|
+
explode: false,
|
|
72
|
+
charEncoding: "percent",
|
|
73
|
+
}),
|
|
74
|
+
version: (0, encodings_js_1.encodeSimple)("version", payload.version, {
|
|
75
|
+
explode: false,
|
|
76
|
+
charEncoding: "percent",
|
|
77
|
+
}),
|
|
78
|
+
};
|
|
79
|
+
const path = (0, url_js_1.pathToFunc)("/api/artifacts/{id}/versions/{version}/file")(pathParams);
|
|
80
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
81
|
+
"path": payload.path,
|
|
82
|
+
});
|
|
83
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
84
|
+
Accept: "application/octet-stream",
|
|
85
|
+
}));
|
|
86
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
87
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput, [0, 1]);
|
|
88
|
+
const context = {
|
|
89
|
+
options: client._options,
|
|
90
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
91
|
+
operationID: "getArtifactVersionFile",
|
|
92
|
+
oAuth2Scopes: null,
|
|
93
|
+
resolvedSecurity: requestSecurity,
|
|
94
|
+
securitySource: client._options.security,
|
|
95
|
+
retryConfig: options?.retries
|
|
96
|
+
|| client._options.retryConfig
|
|
97
|
+
|| { strategy: "none" },
|
|
98
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
99
|
+
};
|
|
100
|
+
const requestRes = client._createRequest(context, {
|
|
101
|
+
security: requestSecurity,
|
|
102
|
+
method: "GET",
|
|
103
|
+
baseURL: options?.serverURL,
|
|
104
|
+
path: path,
|
|
105
|
+
headers: headers,
|
|
106
|
+
query: query,
|
|
107
|
+
body: body,
|
|
108
|
+
userAgent: client._options.userAgent,
|
|
109
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
110
|
+
}, options);
|
|
111
|
+
if (!requestRes.ok) {
|
|
112
|
+
return [requestRes, { status: "invalid" }];
|
|
113
|
+
}
|
|
114
|
+
const req = requestRes.value;
|
|
115
|
+
const doResult = await client._do(req, {
|
|
116
|
+
context,
|
|
117
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
118
|
+
retryConfig: context.retryConfig,
|
|
119
|
+
retryCodes: context.retryCodes,
|
|
120
|
+
});
|
|
121
|
+
if (!doResult.ok) {
|
|
122
|
+
return [doResult, { status: "request-error", request: req }];
|
|
123
|
+
}
|
|
124
|
+
const response = doResult.value;
|
|
125
|
+
const responseFields = {
|
|
126
|
+
HttpMeta: { Response: response, Request: req },
|
|
127
|
+
};
|
|
128
|
+
const [result] = await M.match(M.stream(200, z.custom(x => x instanceof ReadableStream)), M.jsonErr([400, 401, 403, 404], errors.ErrorResponse$inboundSchema), M.jsonErr(500, errors.ErrorResponseWithStatus$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
129
|
+
if (!result.ok) {
|
|
130
|
+
return [result, { status: "complete", request: req, response }];
|
|
131
|
+
}
|
|
132
|
+
return [result, { status: "complete", request: req, response }];
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=artifacts-get-artifact-version-file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifacts-get-artifact-version-file.js","sourceRoot":"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AE,MAAM,CAAC,2BAA2B,CAAC,EACnE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,qCAAqC,CAAC,EAC5D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -13,9 +13,9 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Read an artifact
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* The artifact with one version (the current one, or ?version=n): its entry and file list, and the named members. 404 ARTIFACT_NOT_FOUND for an artifact you cannot open.
|
|
16
|
+
* The artifact with one version (the current one, or ?version=n): its entry and file list, and the named members. 404 ARTIFACT_NOT_FOUND for an artifact you cannot open. Also takes a sandbox’s own task token (Bearer) with artifacts:read, for an artifact of the token’s workspace open to it or published by its own session (else 404); members is then empty. An expired token is 401, one without the scope 403 SANDBOX_SCOPE.
|
|
17
17
|
*
|
|
18
18
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
19
19
|
*/
|
|
20
|
-
export declare function artifactsGetArtifact(client: MutagentCore, request: operations.GetArtifactRequest, options?: RequestOptions): APIPromise<Result<models.ArtifactDetail, errors.ArtifactsError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
+
export declare function artifactsGetArtifact(client: MutagentCore, request: operations.GetArtifactRequest, options?: RequestOptions): APIPromise<Result<models.ArtifactDetail, errors.GetArtifactUnauthorized | errors.GetArtifactForbidden | errors.ArtifactsError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
21
21
|
//# sourceMappingURL=artifacts-get-artifact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts-get-artifact.d.ts","sourceRoot":"","sources":["../../../src/funcs/artifacts-get-artifact.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,cAAc,EACnB,MAAM,CAAC,cAAc,GACrB,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
1
|
+
{"version":3,"file":"artifacts-get-artifact.d.ts","sourceRoot":"","sources":["../../../src/funcs/artifacts-get-artifact.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,cAAc,EACnB,MAAM,CAAC,uBAAuB,GAC9B,MAAM,CAAC,oBAAoB,GAC3B,MAAM,CAAC,cAAc,GACrB,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -53,7 +53,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
53
53
|
* Read an artifact
|
|
54
54
|
*
|
|
55
55
|
* @remarks
|
|
56
|
-
* The artifact with one version (the current one, or ?version=n): its entry and file list, and the named members. 404 ARTIFACT_NOT_FOUND for an artifact you cannot open.
|
|
56
|
+
* The artifact with one version (the current one, or ?version=n): its entry and file list, and the named members. 404 ARTIFACT_NOT_FOUND for an artifact you cannot open. Also takes a sandbox’s own task token (Bearer) with artifacts:read, for an artifact of the token’s workspace open to it or published by its own session (else 404); members is then empty. An expired token is 401, one without the scope 403 SANDBOX_SCOPE.
|
|
57
57
|
*
|
|
58
58
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
59
59
|
*/
|
|
@@ -122,7 +122,7 @@ async function $do(client, request, options) {
|
|
|
122
122
|
const responseFields = {
|
|
123
123
|
HttpMeta: { Response: response, Request: req },
|
|
124
124
|
};
|
|
125
|
-
const [result] = await M.match(M.json(200, models.ArtifactDetail$inboundSchema), M.jsonErr(404, errors.ArtifactsError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
125
|
+
const [result] = await M.match(M.json(200, models.ArtifactDetail$inboundSchema), M.jsonErr(401, errors.GetArtifactUnauthorized$inboundSchema), M.jsonErr(403, errors.GetArtifactForbidden$inboundSchema), M.jsonErr(404, errors.ArtifactsError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
126
126
|
if (!result.ok) {
|
|
127
127
|
return [result, { status: "complete", request: req, response }];
|
|
128
128
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts-get-artifact.js","sourceRoot":"","sources":["../../../src/funcs/artifacts-get-artifact.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,
|
|
1
|
+
{"version":3,"file":"artifacts-get-artifact.js","sourceRoot":"","sources":["../../../src/funcs/artifacts-get-artifact.ts"],"names":[],"mappings":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,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"}
|
|
@@ -13,9 +13,9 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* List an artifact's versions
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Newest first, with who published each and whether it was a rollback.
|
|
16
|
+
* Newest first, with who published each and whether it was a rollback. Also takes a sandbox’s own task token (Bearer) with artifacts:read, as GET /artifacts/{id}.
|
|
17
17
|
*
|
|
18
18
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
19
19
|
*/
|
|
20
|
-
export declare function artifactsListArtifactVersions(client: MutagentCore, request: operations.ListArtifactVersionsRequest, options?: RequestOptions): APIPromise<Result<models.ArtifactVersionList, errors.ArtifactsError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
+
export declare function artifactsListArtifactVersions(client: MutagentCore, request: operations.ListArtifactVersionsRequest, options?: RequestOptions): APIPromise<Result<models.ArtifactVersionList, errors.ListArtifactVersionsUnauthorized | errors.ListArtifactVersionsForbidden | errors.ArtifactsError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
21
21
|
//# sourceMappingURL=artifacts-list-artifact-versions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts-list-artifact-versions.d.ts","sourceRoot":"","sources":["../../../src/funcs/artifacts-list-artifact-versions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,mBAAmB,EACxB,MAAM,CAAC,cAAc,GACrB,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
1
|
+
{"version":3,"file":"artifacts-list-artifact-versions.d.ts","sourceRoot":"","sources":["../../../src/funcs/artifacts-list-artifact-versions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,mBAAmB,EACxB,MAAM,CAAC,gCAAgC,GACvC,MAAM,CAAC,6BAA6B,GACpC,MAAM,CAAC,cAAc,GACrB,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -53,7 +53,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
53
53
|
* List an artifact's versions
|
|
54
54
|
*
|
|
55
55
|
* @remarks
|
|
56
|
-
* Newest first, with who published each and whether it was a rollback.
|
|
56
|
+
* Newest first, with who published each and whether it was a rollback. Also takes a sandbox’s own task token (Bearer) with artifacts:read, as GET /artifacts/{id}.
|
|
57
57
|
*
|
|
58
58
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
59
59
|
*/
|
|
@@ -118,7 +118,7 @@ async function $do(client, request, options) {
|
|
|
118
118
|
const responseFields = {
|
|
119
119
|
HttpMeta: { Response: response, Request: req },
|
|
120
120
|
};
|
|
121
|
-
const [result] = await M.match(M.json(200, models.ArtifactVersionList$inboundSchema), M.jsonErr(404, errors.ArtifactsError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
121
|
+
const [result] = await M.match(M.json(200, models.ArtifactVersionList$inboundSchema), M.jsonErr(401, errors.ListArtifactVersionsUnauthorized$inboundSchema), M.jsonErr(403, errors.ListArtifactVersionsForbidden$inboundSchema), M.jsonErr(404, errors.ArtifactsError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
122
122
|
if (!result.ok) {
|
|
123
123
|
return [result, { status: "complete", request: req, response }];
|
|
124
124
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts-list-artifact-versions.js","sourceRoot":"","sources":["../../../src/funcs/artifacts-list-artifact-versions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,
|
|
1
|
+
{"version":3,"file":"artifacts-list-artifact-versions.js","sourceRoot":"","sources":["../../../src/funcs/artifacts-list-artifact-versions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,sEAyBC;AA3DD,+CAAiC;AAEjC,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,2DAA6C;AAC7C,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;GAOG;AACH,SAAgB,6BAA6B,CAC3C,MAAoB,EACpB,OAA+C,EAC/C,OAAwB;IAiBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;A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Q,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAc5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACrD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,8CAA8C,CAAC,EACrE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,2CAA2C,CAAC,EAClE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,4BAA4B,CAAC,EACnD,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"}
|
|
@@ -13,9 +13,9 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* List artifacts
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Most recently updated first (order=asc: oldest first). scope=mine (yours in this workspace), workspace (the default: what you can open in this workspace), shared (artifacts you are named on, from any workspace). With groupBy=session each page answers `groups` by harness session instead of `items`. session=<id> keeps one session’s artifacts (the harness’s own id or the hs1_ reference), inside the chosen scope. search=<text> keeps artifacts whose title contains it (case-insensitive), owner=me|<user id> one owner’s; both narrow the scope, and paging walks the matches only. Pass nextCursor as ?cursor to continue, with the same filters and order. 400 INVALID_FILTER for an unknown scope, groupBy or order.
|
|
16
|
+
* Most recently updated first (order=asc: oldest first). scope=mine (yours in this workspace), workspace (the default: what you can open in this workspace), shared (artifacts you are named on, from any workspace). With groupBy=session each page answers `groups` by harness session instead of `items`. session=<id> keeps one session’s artifacts (the harness’s own id or the hs1_ reference), inside the chosen scope. search=<text> keeps artifacts whose title contains it (case-insensitive), owner=me|<user id> one owner’s; both narrow the scope, and paging walks the matches only. Pass nextCursor as ?cursor to continue, with the same filters and order. 400 INVALID_FILTER for an unknown scope, groupBy or order. Also takes a sandbox’s own task token (Bearer) with artifacts:read: the workspace is the token’s, and it lists what is open to that workspace plus what its own session published (scope=mine: only those; shared: none). An expired token is 401, one without the scope 403 SANDBOX_SCOPE.
|
|
17
17
|
*
|
|
18
18
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
19
19
|
*/
|
|
20
|
-
export declare function artifactsListArtifacts(client: MutagentCore, request?: operations.ListArtifactsRequest | undefined, options?: RequestOptions): APIPromise<Result<models.ArtifactList, errors.ArtifactsError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
+
export declare function artifactsListArtifacts(client: MutagentCore, request?: operations.ListArtifactsRequest | undefined, options?: RequestOptions): APIPromise<Result<models.ArtifactList, errors.ArtifactsError | errors.ListArtifactsUnauthorized | errors.ListArtifactsForbidden | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
21
21
|
//# sourceMappingURL=artifacts-list-artifacts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts-list-artifacts.d.ts","sourceRoot":"","sources":["../../../src/funcs/artifacts-list-artifacts.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,UAAU,CAAC,oBAAoB,GAAG,SAAS,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,YAAY,EACjB,MAAM,CAAC,cAAc,GACrB,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
1
|
+
{"version":3,"file":"artifacts-list-artifacts.d.ts","sourceRoot":"","sources":["../../../src/funcs/artifacts-list-artifacts.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,UAAU,CAAC,oBAAoB,GAAG,SAAS,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,YAAY,EACjB,MAAM,CAAC,cAAc,GACrB,MAAM,CAAC,yBAAyB,GAChC,MAAM,CAAC,sBAAsB,GAC7B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -53,7 +53,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
53
53
|
* List artifacts
|
|
54
54
|
*
|
|
55
55
|
* @remarks
|
|
56
|
-
* Most recently updated first (order=asc: oldest first). scope=mine (yours in this workspace), workspace (the default: what you can open in this workspace), shared (artifacts you are named on, from any workspace). With groupBy=session each page answers `groups` by harness session instead of `items`. session=<id> keeps one session’s artifacts (the harness’s own id or the hs1_ reference), inside the chosen scope. search=<text> keeps artifacts whose title contains it (case-insensitive), owner=me|<user id> one owner’s; both narrow the scope, and paging walks the matches only. Pass nextCursor as ?cursor to continue, with the same filters and order. 400 INVALID_FILTER for an unknown scope, groupBy or order.
|
|
56
|
+
* Most recently updated first (order=asc: oldest first). scope=mine (yours in this workspace), workspace (the default: what you can open in this workspace), shared (artifacts you are named on, from any workspace). With groupBy=session each page answers `groups` by harness session instead of `items`. session=<id> keeps one session’s artifacts (the harness’s own id or the hs1_ reference), inside the chosen scope. search=<text> keeps artifacts whose title contains it (case-insensitive), owner=me|<user id> one owner’s; both narrow the scope, and paging walks the matches only. Pass nextCursor as ?cursor to continue, with the same filters and order. 400 INVALID_FILTER for an unknown scope, groupBy or order. Also takes a sandbox’s own task token (Bearer) with artifacts:read: the workspace is the token’s, and it lists what is open to that workspace plus what its own session published (scope=mine: only those; shared: none). An expired token is 401, one without the scope 403 SANDBOX_SCOPE.
|
|
57
57
|
*
|
|
58
58
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
59
59
|
*/
|
|
@@ -123,7 +123,7 @@ async function $do(client, request, options) {
|
|
|
123
123
|
const responseFields = {
|
|
124
124
|
HttpMeta: { Response: response, Request: req },
|
|
125
125
|
};
|
|
126
|
-
const [result] = await M.match(M.json(200, models.ArtifactList$inboundSchema), M.jsonErr(400, errors.ArtifactsError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
126
|
+
const [result] = await M.match(M.json(200, models.ArtifactList$inboundSchema), M.jsonErr(400, errors.ArtifactsError$inboundSchema), M.jsonErr(401, errors.ListArtifactsUnauthorized$inboundSchema), M.jsonErr(403, errors.ListArtifactsForbidden$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
127
127
|
if (!result.ok) {
|
|
128
128
|
return [result, { status: "complete", request: req, response }];
|
|
129
129
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts-list-artifacts.js","sourceRoot":"","sources":["../../../src/funcs/artifacts-list-artifacts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,
|
|
1
|
+
{"version":3,"file":"artifacts-list-artifacts.js","sourceRoot":"","sources":["../../../src/funcs/artifacts-list-artifacts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,wDAyBC;AA3DD,+CAAiC;AAEjC,sDAAsD;AACtD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,2DAA6C;AAC7C,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;GAOG;AACH,SAAgB,sBAAsB,CACpC,MAAoB,EACpB,OAAqD,EACrD,OAAwB;IAiBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAAqD,EACrD,OAAwB;IAoBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CACL,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,mCAAmC,CAAC,EAC1D,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;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,iBAAiB,CAAC,EAAE,CAAC;IAE7C,M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AC,GAAG,EAAE,MAAM,CAAC,0BAA0B,CAAC,EAC9C,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,4BAA4B,CAAC,EACnD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,uCAAuC,CAAC,EAC9D,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,oCAAoC,CAAC,EAC3D,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"}
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Claim an existing GitHub installation for this organization and workspace
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* One of the claim’s candidates, by the user who authorized it, once. Needs resources:create (a viewer: 403). 403 installation_not_authorized (the authorizing GitHub user cannot access it) or installation_not_admin (they do not control the account: not its personal owner, not an active org admin, or the org has not approved the App's Members: read permission); 404 claim_not_found / installation_not_found; 409 claim_not_ready, installation_suspended, or installation_owned_elsewhere (connected to a different MutagenT organization, never named); 503 provider_unavailable or integration_unconfigured. Then link repositories with POST /api/gateway/repositories/link.
|
|
15
|
+
* One of the claim’s candidates, by the user who authorized it, once. Needs resources:create (a viewer: 403). 403 installation_not_authorized (the authorizing GitHub user cannot access it) or installation_not_admin (they do not control the account: not its personal owner, not an active org admin, or the org has not approved the App's Members: read permission); 404 claim_not_found / installation_not_found; 409 claim_not_ready, installation_suspended, or installation_owned_elsewhere (connected to a different MutagenT organization, never named; join it with mode 'join' when you are an active member of its GitHub organization: 403 installation_not_member otherwise, 403 installation_grant_revoked when that organization revoked yours: only it can restore it); 503 provider_unavailable or integration_unconfigured. Then link repositories with POST /api/gateway/repositories/link.
|
|
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
|
* Claim an existing GitHub installation for this organization and workspace
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* One of the claim’s candidates, by the user who authorized it, once. Needs resources:create (a viewer: 403). 403 installation_not_authorized (the authorizing GitHub user cannot access it) or installation_not_admin (they do not control the account: not its personal owner, not an active org admin, or the org has not approved the App's Members: read permission); 404 claim_not_found / installation_not_found; 409 claim_not_ready, installation_suspended, or installation_owned_elsewhere (connected to a different MutagenT organization, never named); 503 provider_unavailable or integration_unconfigured. Then link repositories with POST /api/gateway/repositories/link.
|
|
55
|
+
* One of the claim’s candidates, by the user who authorized it, once. Needs resources:create (a viewer: 403). 403 installation_not_authorized (the authorizing GitHub user cannot access it) or installation_not_admin (they do not control the account: not its personal owner, not an active org admin, or the org has not approved the App's Members: read permission); 404 claim_not_found / installation_not_found; 409 claim_not_ready, installation_suspended, or installation_owned_elsewhere (connected to a different MutagenT organization, never named; join it with mode 'join' when you are an active member of its GitHub organization: 403 installation_not_member otherwise, 403 installation_grant_revoked when that organization revoked yours: only it can restore it); 503 provider_unavailable or integration_unconfigured. Then link repositories with POST /api/gateway/repositories/link.
|
|
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
|
+
* List the organizations that joined this GitHub installation (owner view)
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* For the organization that holds the installation (its admins and owners): each grant another MutagenT organization holds through a verified member of the GitHub organization: grantId, githubLogin, organizationName, joinedAt, status and membershipLapsedAt (a flag the daily re-check sets; never enforced). Nothing else of the joining organization. Another organization: 404; a member who is not an admin: 403.
|
|
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 gatewayListGatewayGitHubInstallationGrants(client: MutagentCore, request: operations.ListGatewayGitHubInstallationGrantsRequest, options?: RequestOptions): APIPromise<Result<operations.ListGatewayGitHubInstallationGrantsResponse, errors.ListGatewayGitHubInstallationGrantsForbidden | errors.ListGatewayGitHubInstallationGrantsNotFoundError | errors.ListGatewayGitHubInstallationGrantsServiceUnavailableError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
+
//# sourceMappingURL=gateway-list-gateway-git-hub-installation-grants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway-list-gateway-git-hub-installation-grants.d.ts","sourceRoot":"","sources":["../../../src/funcs/gateway-list-gateway-git-hub-installation-grants.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,0CAA0C,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,2CAA2C,EACpD,MAAM,CAAC,4CAA4C,GACnD,MAAM,CAAC,gDAAgD,GACvD,MAAM,CAAC,0DAA0D,GACjE,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.gatewayListGatewayGitHubInstallationGrants = gatewayListGatewayGitHubInstallationGrants;
|
|
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
|
+
* List the organizations that joined this GitHub installation (owner view)
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* For the organization that holds the installation (its admins and owners): each grant another MutagenT organization holds through a verified member of the GitHub organization: grantId, githubLogin, organizationName, joinedAt, status and membershipLapsedAt (a flag the daily re-check sets; never enforced). Nothing else of the joining organization. Another organization: 404; a member who is not an admin: 403.
|
|
56
|
+
*
|
|
57
|
+
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
58
|
+
*/
|
|
59
|
+
function gatewayListGatewayGitHubInstallationGrants(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.ListGatewayGitHubInstallationGrantsRequest$outboundSchema, value), "Input validation failed");
|
|
64
|
+
if (!parsed.ok) {
|
|
65
|
+
return [parsed, { status: "invalid" }];
|
|
66
|
+
}
|
|
67
|
+
const payload = parsed.value;
|
|
68
|
+
const body = null;
|
|
69
|
+
const pathParams = {
|
|
70
|
+
installationId: (0, encodings_js_1.encodeSimple)("installationId", payload.installationId, {
|
|
71
|
+
explode: false,
|
|
72
|
+
charEncoding: "percent",
|
|
73
|
+
}),
|
|
74
|
+
};
|
|
75
|
+
const path = (0, url_js_1.pathToFunc)("/api/gateway/integrations/github/installations/{installationId}/grants")(pathParams);
|
|
76
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
77
|
+
Accept: "application/json",
|
|
78
|
+
}));
|
|
79
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
80
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput, [0, 1]);
|
|
81
|
+
const context = {
|
|
82
|
+
options: client._options,
|
|
83
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
84
|
+
operationID: "listGatewayGitHubInstallationGrants",
|
|
85
|
+
oAuth2Scopes: null,
|
|
86
|
+
resolvedSecurity: requestSecurity,
|
|
87
|
+
securitySource: client._options.security,
|
|
88
|
+
retryConfig: options?.retries
|
|
89
|
+
|| client._options.retryConfig
|
|
90
|
+
|| { strategy: "none" },
|
|
91
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
92
|
+
};
|
|
93
|
+
const requestRes = client._createRequest(context, {
|
|
94
|
+
security: requestSecurity,
|
|
95
|
+
method: "GET",
|
|
96
|
+
baseURL: options?.serverURL,
|
|
97
|
+
path: path,
|
|
98
|
+
headers: headers,
|
|
99
|
+
body: body,
|
|
100
|
+
userAgent: client._options.userAgent,
|
|
101
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
102
|
+
}, options);
|
|
103
|
+
if (!requestRes.ok) {
|
|
104
|
+
return [requestRes, { status: "invalid" }];
|
|
105
|
+
}
|
|
106
|
+
const req = requestRes.value;
|
|
107
|
+
const doResult = await client._do(req, {
|
|
108
|
+
context,
|
|
109
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
110
|
+
retryConfig: context.retryConfig,
|
|
111
|
+
retryCodes: context.retryCodes,
|
|
112
|
+
});
|
|
113
|
+
if (!doResult.ok) {
|
|
114
|
+
return [doResult, { status: "request-error", request: req }];
|
|
115
|
+
}
|
|
116
|
+
const response = doResult.value;
|
|
117
|
+
const responseFields = {
|
|
118
|
+
HttpMeta: { Response: response, Request: req },
|
|
119
|
+
};
|
|
120
|
+
const [result] = await M.match(M.json(200, operations.ListGatewayGitHubInstallationGrantsResponse$inboundSchema), M.jsonErr(403, errors.ListGatewayGitHubInstallationGrantsForbidden$inboundSchema), M.jsonErr(404, errors.ListGatewayGitHubInstallationGrantsNotFoundError$inboundSchema), M.jsonErr(503, errors
|
|
121
|
+
.ListGatewayGitHubInstallationGrantsServiceUnavailableError$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=gateway-list-gateway-git-hub-installation-grants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway-list-gateway-git-hub-installation-grants.js","sourceRoot":"","sources":["../../../src/funcs/gateway-list-gateway-git-hub-installation-grants.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,gGAyBC;AA1DD,+CAAiC;AAEjC,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;GAOG;AACH,SAAgB,0CAA0C,CACxD,MAAoB,EACpB,OAA8D,EAC9D,OAAwB;IAiBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAA8D,EAC9D,OAAwB;IAoBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CACL,UAAU,CAAC,yDAAyD,EACpE,KAAK,CACN,E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AAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAc5B,CAAC,CAAC,IAAI,CACJ,GAAG,EACH,UAAU,CAAC,yDAAyD,CACrE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,0DAA0D,CAClE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,8DAA8D,CACtE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM;SACH,wEAAwE,CAC5E,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
|
+
* Restore another organization's revoked grant on this GitHub installation
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* The custodian organization’s admins and owners lift a revoke: the grant is active again with its last verified member and repository cap, and the joining organization's links that the revoke ended connect again. A grant that is not revoked: 404 grant_not_found. Another organization: 404; a member who is not an admin: 403.
|
|
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 gatewayRestoreGatewayGitHubInstallationGrant(client: MutagentCore, request: operations.RestoreGatewayGitHubInstallationGrantRequest, options?: RequestOptions): APIPromise<Result<operations.RestoreGatewayGitHubInstallationGrantResponse, errors.RestoreGatewayGitHubInstallationGrantForbidden | errors.RestoreGatewayGitHubInstallationGrantNotFoundError | errors.RestoreGatewayGitHubInstallationGrantServiceUnavailableError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
+
//# sourceMappingURL=gateway-restore-gateway-git-hub-installation-grant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway-restore-gateway-git-hub-installation-grant.d.ts","sourceRoot":"","sources":["../../../src/funcs/gateway-restore-gateway-git-hub-installation-grant.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,4CAA4C,CAC1D,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,4CAA4C,EAChE,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,6CAA6C,EACtD,MAAM,CAAC,8CAA8C,GACrD,MAAM,CAAC,kDAAkD,GACzD,MAAM,CAAC,4DAA4D,GACnE,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|