@boxrouter/sdk 0.0.1-alpha.0 → 0.12.190
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/NOTICE +29 -5
- package/README.md +497 -24
- package/dist/addresses.d.ts +5 -0
- package/dist/addresses.js +10 -0
- package/dist/api-error.d.ts +62 -0
- package/dist/api-error.js +264 -0
- package/dist/boxrouter.d.ts +68 -0
- package/dist/boxrouter.js +291 -0
- package/dist/browser-session/index.d.ts +17 -0
- package/dist/browser-session/index.js +48 -0
- package/dist/browser-session/operations.gen.d.ts +272 -0
- package/dist/browser-session/operations.gen.js +58 -0
- package/dist/browser-session/responseContracts/api_keys.d.ts +2 -0
- package/dist/browser-session/responseContracts/api_keys.js +10 -0
- package/dist/browser-session/responseContracts/credits.d.ts +2 -0
- package/dist/browser-session/responseContracts/credits.js +8 -0
- package/dist/browser-session/responseContracts/github.d.ts +2 -0
- package/dist/browser-session/responseContracts/github.js +11 -0
- package/dist/browser-session/responseContracts/identity.d.ts +2 -0
- package/dist/browser-session/responseContracts/identity.js +30 -0
- package/dist/browser-session/responseContracts/organizations.d.ts +2 -0
- package/dist/browser-session/responseContracts/organizations.js +17 -0
- package/dist/browser-session/responseContracts/privacy.d.ts +2 -0
- package/dist/browser-session/responseContracts/privacy.js +7 -0
- package/dist/browser-session/responseContracts.gen.d.ts +3 -0
- package/dist/browser-session/responseContracts.gen.js +10 -0
- package/dist/browser-session/responseValidators/api_keys-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/api_keys-diagnostics.d.cts +4 -0
- package/dist/browser-session/responseValidators/api_keys.cjs +2 -0
- package/dist/browser-session/responseValidators/api_keys.d.cts +4 -0
- package/dist/browser-session/responseValidators/credits-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/credits-diagnostics.d.cts +3 -0
- package/dist/browser-session/responseValidators/credits.cjs +2 -0
- package/dist/browser-session/responseValidators/credits.d.cts +3 -0
- package/dist/browser-session/responseValidators/github-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/github-diagnostics.d.cts +3 -0
- package/dist/browser-session/responseValidators/github.cjs +2 -0
- package/dist/browser-session/responseValidators/github.d.cts +3 -0
- package/dist/browser-session/responseValidators/identity-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/identity-diagnostics.d.cts +23 -0
- package/dist/browser-session/responseValidators/identity.cjs +2 -0
- package/dist/browser-session/responseValidators/identity.d.cts +23 -0
- package/dist/browser-session/responseValidators/organizations-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/organizations-diagnostics.d.cts +15 -0
- package/dist/browser-session/responseValidators/organizations.cjs +2 -0
- package/dist/browser-session/responseValidators/organizations.d.cts +15 -0
- package/dist/browser-session/responseValidators/privacy-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/privacy-diagnostics.d.cts +2 -0
- package/dist/browser-session/responseValidators/privacy.cjs +2 -0
- package/dist/browser-session/responseValidators/privacy.d.cts +2 -0
- package/dist/client/client.gen.d.ts +1 -1
- package/dist/client/client.gen.js +46 -94
- package/dist/client/index.d.ts +10 -10
- package/dist/client/index.js +16 -5
- package/dist/client/types.gen.d.ts +6 -6
- package/dist/client/types.gen.js +2 -1
- package/dist/client/utils.gen.d.ts +2 -2
- package/dist/client/utils.gen.js +31 -20
- package/dist/client.gen.d.ts +2 -2
- package/dist/client.gen.js +5 -2
- package/dist/command-check.gen.d.ts +14 -0
- package/dist/command-check.gen.js +23 -0
- package/dist/command-input.gen.d.ts +6 -0
- package/dist/command-input.gen.js +45 -0
- package/dist/core/auth.gen.js +5 -1
- package/dist/core/binaryStream.d.ts +8 -0
- package/dist/core/binaryStream.js +76 -0
- package/dist/core/bodySerializer.gen.d.ts +1 -1
- package/dist/core/bodySerializer.gen.js +8 -5
- package/dist/core/commandValidators.cjs +1 -0
- package/dist/core/commandValidators.d.cts +14 -0
- package/dist/core/eventValidation.d.ts +17 -0
- package/dist/core/eventValidation.js +56 -0
- package/dist/core/eventValidators.cjs +1 -0
- package/dist/core/eventValidators.d.cts +2 -0
- package/dist/core/json.d.ts +3 -0
- package/dist/core/json.js +33 -0
- package/dist/core/params.gen.js +4 -1
- package/dist/core/pathSerializer.gen.js +20 -11
- package/dist/core/queryKeySerializer.gen.js +12 -6
- package/dist/core/responseContracts/actions.d.ts +2 -0
- package/dist/core/responseContracts/actions.js +30 -0
- package/dist/core/responseContracts/agents.d.ts +2 -0
- package/dist/core/responseContracts/agents.js +7 -0
- package/dist/core/responseContracts/artifacts.d.ts +2 -0
- package/dist/core/responseContracts/artifacts.js +8 -0
- package/dist/core/responseContracts/commands.d.ts +2 -0
- package/dist/core/responseContracts/commands.js +6 -0
- package/dist/core/responseContracts/credits.d.ts +2 -0
- package/dist/core/responseContracts/credits.js +27 -0
- package/dist/core/responseContracts/files.d.ts +2 -0
- package/dist/core/responseContracts/files.js +15 -0
- package/dist/core/responseContracts/github.d.ts +2 -0
- package/dist/core/responseContracts/github.js +8 -0
- package/dist/core/responseContracts/images.d.ts +2 -0
- package/dist/core/responseContracts/images.js +8 -0
- package/dist/core/responseContracts/launchRuns.d.ts +2 -0
- package/dist/core/responseContracts/launchRuns.js +10 -0
- package/dist/core/responseContracts/launches.d.ts +2 -0
- package/dist/core/responseContracts/launches.js +10 -0
- package/dist/core/responseContracts/operations.d.ts +2 -0
- package/dist/core/responseContracts/operations.js +7 -0
- package/dist/core/responseContracts/previews.d.ts +2 -0
- package/dist/core/responseContracts/previews.js +8 -0
- package/dist/core/responseContracts/pricing.d.ts +2 -0
- package/dist/core/responseContracts/pricing.js +6 -0
- package/dist/core/responseContracts/processes.d.ts +2 -0
- package/dist/core/responseContracts/processes.js +11 -0
- package/dist/core/responseContracts/provider_accounts.d.ts +2 -0
- package/dist/core/responseContracts/provider_accounts.js +13 -0
- package/dist/core/responseContracts/providers.d.ts +2 -0
- package/dist/core/responseContracts/providers.js +6 -0
- package/dist/core/responseContracts/routing.d.ts +2 -0
- package/dist/core/responseContracts/routing.js +8 -0
- package/dist/core/responseContracts/sandboxes.d.ts +2 -0
- package/dist/core/responseContracts/sandboxes.js +15 -0
- package/dist/core/responseContracts/secrets.d.ts +2 -0
- package/dist/core/responseContracts/secrets.js +8 -0
- package/dist/core/responseContracts/spend_limits.d.ts +2 -0
- package/dist/core/responseContracts/spend_limits.js +8 -0
- package/dist/core/responseContracts/terminals.d.ts +2 -0
- package/dist/core/responseContracts/terminals.js +11 -0
- package/dist/core/responseContracts/usage.d.ts +2 -0
- package/dist/core/responseContracts/usage.js +7 -0
- package/dist/core/responseContracts/volumes.d.ts +2 -0
- package/dist/core/responseContracts/volumes.js +19 -0
- package/dist/core/responseContracts.gen.d.ts +3 -0
- package/dist/core/responseContracts.gen.js +27 -0
- package/dist/core/responseModes.d.ts +19 -0
- package/dist/core/responseModes.js +13 -0
- package/dist/core/responseValidation.d.ts +44 -0
- package/dist/core/responseValidation.js +174 -0
- package/dist/core/responseValidators/actions-diagnostics.cjs +4 -0
- package/dist/core/responseValidators/actions-diagnostics.d.cts +24 -0
- package/dist/core/responseValidators/actions.cjs +2 -0
- package/dist/core/responseValidators/actions.d.cts +24 -0
- package/dist/core/responseValidators/agents-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/agents-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/agents.cjs +2 -0
- package/dist/core/responseValidators/agents.d.cts +2 -0
- package/dist/core/responseValidators/artifacts-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/artifacts-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/artifacts.cjs +2 -0
- package/dist/core/responseValidators/artifacts.d.cts +2 -0
- package/dist/core/responseValidators/commands-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/commands-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/commands.cjs +2 -0
- package/dist/core/responseValidators/commands.d.cts +1 -0
- package/dist/core/responseValidators/compact.cjs +122 -0
- package/dist/core/responseValidators/credits-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/credits-diagnostics.d.cts +21 -0
- package/dist/core/responseValidators/credits.cjs +2 -0
- package/dist/core/responseValidators/credits.d.cts +21 -0
- package/dist/core/responseValidators/files-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/files-diagnostics.d.cts +5 -0
- package/dist/core/responseValidators/files.cjs +2 -0
- package/dist/core/responseValidators/files.d.cts +5 -0
- package/dist/core/responseValidators/github-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/github-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/github.cjs +2 -0
- package/dist/core/responseValidators/github.d.cts +2 -0
- package/dist/core/responseValidators/images-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/images-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/images.cjs +2 -0
- package/dist/core/responseValidators/images.d.cts +3 -0
- package/dist/core/responseValidators/launchRuns-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/launchRuns-diagnostics.d.cts +5 -0
- package/dist/core/responseValidators/launchRuns.cjs +2 -0
- package/dist/core/responseValidators/launchRuns.d.cts +5 -0
- package/dist/core/responseValidators/launches-diagnostics.cjs +10 -0
- package/dist/core/responseValidators/launches-diagnostics.d.cts +5 -0
- package/dist/core/responseValidators/launches.cjs +2 -0
- package/dist/core/responseValidators/launches.d.cts +5 -0
- package/dist/core/responseValidators/operations-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/operations-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/operations.cjs +2 -0
- package/dist/core/responseValidators/operations.d.cts +2 -0
- package/dist/core/responseValidators/previews-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/previews-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/previews.cjs +2 -0
- package/dist/core/responseValidators/previews.d.cts +3 -0
- package/dist/core/responseValidators/pricing-diagnostics.cjs +7 -0
- package/dist/core/responseValidators/pricing-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/pricing.cjs +2 -0
- package/dist/core/responseValidators/pricing.d.cts +1 -0
- package/dist/core/responseValidators/processes-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/processes-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/processes.cjs +2 -0
- package/dist/core/responseValidators/processes.d.cts +2 -0
- package/dist/core/responseValidators/provider_accounts-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/provider_accounts-diagnostics.d.cts +8 -0
- package/dist/core/responseValidators/provider_accounts.cjs +2 -0
- package/dist/core/responseValidators/provider_accounts.d.cts +8 -0
- package/dist/core/responseValidators/providers-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/providers-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/providers.cjs +2 -0
- package/dist/core/responseValidators/providers.d.cts +1 -0
- package/dist/core/responseValidators/routing-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/routing-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/routing.cjs +2 -0
- package/dist/core/responseValidators/routing.d.cts +3 -0
- package/dist/core/responseValidators/sandboxes-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/sandboxes-diagnostics.d.cts +10 -0
- package/dist/core/responseValidators/sandboxes.cjs +2 -0
- package/dist/core/responseValidators/sandboxes.d.cts +10 -0
- package/dist/core/responseValidators/secrets-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/secrets-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/secrets.cjs +2 -0
- package/dist/core/responseValidators/secrets.d.cts +1 -0
- package/dist/core/responseValidators/spend_limits-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/spend_limits-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/spend_limits.cjs +2 -0
- package/dist/core/responseValidators/spend_limits.d.cts +3 -0
- package/dist/core/responseValidators/terminals-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/terminals-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/terminals.cjs +2 -0
- package/dist/core/responseValidators/terminals.d.cts +2 -0
- package/dist/core/responseValidators/usage-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/usage-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/usage.cjs +2 -0
- package/dist/core/responseValidators/usage.d.cts +1 -0
- package/dist/core/responseValidators/volumes-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/volumes-diagnostics.d.cts +10 -0
- package/dist/core/responseValidators/volumes.cjs +2 -0
- package/dist/core/responseValidators/volumes.d.cts +10 -0
- package/dist/core/serverSentEvents.gen.d.ts +21 -62
- package/dist/core/serverSentEvents.gen.js +297 -116
- package/dist/core/streamErrors.d.ts +32 -0
- package/dist/core/streamErrors.js +51 -0
- package/dist/core/types.gen.d.ts +2 -2
- package/dist/core/types.gen.js +2 -1
- package/dist/core/utils.gen.d.ts +1 -1
- package/dist/core/utils.gen.js +16 -10
- package/dist/creation.gen.d.ts +21 -0
- package/dist/creation.gen.js +35 -0
- package/dist/data-origin.d.ts +25 -0
- package/dist/data-origin.js +57 -0
- package/dist/error-codes.gen.d.ts +2 -0
- package/dist/error-codes.gen.js +2 -0
- package/dist/idempotency.gen.d.ts +1 -0
- package/dist/idempotency.gen.js +60 -0
- package/dist/images.d.ts +74 -0
- package/dist/images.js +88 -0
- package/dist/index.d.ts +22 -2
- package/dist/index.js +79 -1
- package/dist/launch-input.gen.d.ts +9 -0
- package/dist/launch-input.gen.js +83 -0
- package/dist/launch.d.ts +28 -0
- package/dist/launch.js +222 -0
- package/dist/namespace-actions.d.mts +307 -0
- package/dist/namespace-actions.mjs +595 -0
- package/dist/namespace-agents.d.mts +33 -0
- package/dist/namespace-agents.mjs +40 -0
- package/dist/namespace-artifacts.d.mts +46 -0
- package/dist/namespace-artifacts.mjs +69 -0
- package/dist/namespace-base.d.mts +7 -0
- package/dist/namespace-base.mjs +7 -0
- package/dist/namespace-commands.d.mts +57 -0
- package/dist/namespace-commands.mjs +57 -0
- package/dist/namespace-credits.d.mts +213 -0
- package/dist/namespace-credits.mjs +476 -0
- package/dist/namespace-files.d.mts +203 -0
- package/dist/namespace-files.mjs +334 -0
- package/dist/namespace-github.d.mts +50 -0
- package/dist/namespace-github.mjs +68 -0
- package/dist/namespace-images.d.mts +52 -0
- package/dist/namespace-images.mjs +78 -0
- package/dist/namespace-launch_runs.d.mts +89 -0
- package/dist/namespace-launch_runs.mjs +133 -0
- package/dist/namespace-launches.d.mts +89 -0
- package/dist/namespace-launches.mjs +133 -0
- package/dist/namespace-operations.d.mts +45 -0
- package/dist/namespace-operations.mjs +52 -0
- package/dist/namespace-previews.d.mts +79 -0
- package/dist/namespace-previews.mjs +101 -0
- package/dist/namespace-pricing.d.mts +31 -0
- package/dist/namespace-pricing.mjs +22 -0
- package/dist/namespace-processes.d.mts +125 -0
- package/dist/namespace-processes.mjs +184 -0
- package/dist/namespace-provider_accounts.d.mts +156 -0
- package/dist/namespace-provider_accounts.mjs +241 -0
- package/dist/namespace-providers.d.mts +28 -0
- package/dist/namespace-providers.mjs +24 -0
- package/dist/namespace-routing.d.mts +64 -0
- package/dist/namespace-routing.mjs +86 -0
- package/dist/namespace-sandboxes.d.mts +287 -0
- package/dist/namespace-sandboxes.mjs +402 -0
- package/dist/namespace-secrets.d.mts +46 -0
- package/dist/namespace-secrets.mjs +68 -0
- package/dist/namespace-spend_limits.d.mts +48 -0
- package/dist/namespace-spend_limits.mjs +70 -0
- package/dist/namespace-terminals.d.mts +112 -0
- package/dist/namespace-terminals.mjs +177 -0
- package/dist/namespace-usage.d.mts +46 -0
- package/dist/namespace-usage.mjs +53 -0
- package/dist/namespace-volumes.d.mts +110 -0
- package/dist/namespace-volumes.mjs +269 -0
- package/dist/operations.d.ts +14 -0
- package/dist/operations.js +31 -0
- package/dist/retry.d.ts +8 -0
- package/dist/retry.js +63 -0
- package/dist/routing-choices.gen.d.ts +132 -0
- package/dist/routing-choices.gen.js +136 -0
- package/dist/routing.d.ts +23 -0
- package/dist/routing.js +38 -0
- package/dist/sandbox-handle.gen.d.ts +8 -0
- package/dist/sandbox-handle.gen.js +14 -0
- package/dist/sandboxes.d.ts +213 -0
- package/dist/sandboxes.js +507 -0
- package/dist/sdk.gen.d.ts +2016 -12
- package/dist/sdk.gen.js +3862 -16
- package/dist/server-timing.d.ts +19 -0
- package/dist/server-timing.gen.d.ts +265 -0
- package/dist/server-timing.gen.js +254 -0
- package/dist/server-timing.js +421 -0
- package/dist/spend-limits.d.ts +17 -0
- package/dist/spend-limits.js +26 -0
- package/dist/telemetry.d.ts +51 -0
- package/dist/telemetry.gen.d.ts +1 -0
- package/dist/telemetry.gen.js +5 -0
- package/dist/telemetry.js +438 -0
- package/dist/terminal.d.ts +61 -0
- package/dist/terminal.js +266 -0
- package/dist/transfer.d.ts +75 -0
- package/dist/transfer.js +389 -0
- package/dist/types.gen.d.ts +14936 -110
- package/dist/types.gen.js +2 -1
- package/dist/user-agent.d.ts +2 -0
- package/dist/user-agent.js +18 -0
- package/dist/version.gen.d.ts +1 -0
- package/dist/version.gen.js +5 -0
- package/dist/volumes.d.ts +33 -0
- package/dist/volumes.js +221 -0
- package/dist/waits.d.ts +31 -0
- package/dist/waits.js +42 -0
- package/dist/workflow-policy.gen.d.ts +41 -0
- package/dist/workflow-policy.gen.js +45 -0
- package/package.json +124 -14
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.APIError = exports.browserSessionOperations = void 0;
|
|
4
|
+
exports.browserSessionOperation = browserSessionOperation;
|
|
5
|
+
exports.parseBrowserSessionResponse = parseBrowserSessionResponse;
|
|
6
|
+
exports.loadBrowserSessionValidator = loadBrowserSessionValidator;
|
|
7
|
+
// Response validation for the web app's browser-session operations. This is a validation
|
|
8
|
+
// interface, not an operation client: it never dispatches a request, holds credentials or
|
|
9
|
+
// exposes a callable method per operation. The caller owns transport and authentication.
|
|
10
|
+
const responseValidation_1 = require("../core/responseValidation");
|
|
11
|
+
const responseContracts_gen_1 = require("./responseContracts.gen");
|
|
12
|
+
const operations_gen_1 = require("./operations.gen");
|
|
13
|
+
var operations_gen_2 = require("./operations.gen");
|
|
14
|
+
Object.defineProperty(exports, "browserSessionOperations", { enumerable: true, get: function () { return operations_gen_2.browserSessionOperations; } });
|
|
15
|
+
var api_error_1 = require("../api-error");
|
|
16
|
+
Object.defineProperty(exports, "APIError", { enumerable: true, get: function () { return api_error_1.APIError; } });
|
|
17
|
+
const index = { groups: responseContracts_gen_1.responseGroups, loaders: responseContracts_gen_1.responseContractLoaders };
|
|
18
|
+
function operationFor(id) {
|
|
19
|
+
const operation = Object.hasOwn(operations_gen_1.browserSessionOperations, id) ? operations_gen_1.browserSessionOperations[id] : undefined;
|
|
20
|
+
if (!operation)
|
|
21
|
+
throw new TypeError(`Unknown browser-session operation: ${String(id)}`);
|
|
22
|
+
return operation;
|
|
23
|
+
}
|
|
24
|
+
/** The HTTP method and path of an operation, as data. */
|
|
25
|
+
function browserSessionOperation(id) {
|
|
26
|
+
return operationFor(id);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Validate a response the caller received for `request` against the operation's declared
|
|
30
|
+
* contract. Returns the parsed body (`undefined` for a body-less success) or throws the
|
|
31
|
+
* SDK's `APIError`.
|
|
32
|
+
*/
|
|
33
|
+
async function parseBrowserSessionResponse(id, response, request) {
|
|
34
|
+
const { method, path } = operationFor(id);
|
|
35
|
+
const prepared = await (0, responseValidation_1.prepareResponseValidation)(method, path, request.signal, index);
|
|
36
|
+
const { data } = await (0, responseValidation_1.parseValidatedResponse)(response, request, prepared, 'json');
|
|
37
|
+
return data;
|
|
38
|
+
}
|
|
39
|
+
/** The compiled validator for one declared success status, for build-time checks such as an early read. */
|
|
40
|
+
async function loadBrowserSessionValidator(id, status) {
|
|
41
|
+
const { method, path } = operationFor(id);
|
|
42
|
+
const prepared = await (0, responseValidation_1.prepareResponseValidation)(method, path, undefined, index);
|
|
43
|
+
const name = prepared.contract?.[status]?.validator;
|
|
44
|
+
const validator = name === undefined ? undefined : prepared.validators?.[name];
|
|
45
|
+
if (!validator)
|
|
46
|
+
throw new TypeError(`${id} declares no JSON validator for status ${status}`);
|
|
47
|
+
return validator;
|
|
48
|
+
}
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import type { AccountDeleteResult, AccountDeletionStatus, AccountProfile, AccountSessions, AccountSessionsRevoked, AccountSignInMethods, ApiKeyList, BrowserIdentitySession, CreatedApiKey, CreditRefund, CreditRefundPreview, GitHubConnectCompletion, GitHubExistingInstallationDiscovery, GitHubExistingInstallationSelection, PasswordResetComplete, PasswordResetRequested, PasswordSignInResult, PrivacySetting, SignInForm, SignInProviders, SignInVerificationRequired, SocialStart, TeamInvitation, TeamInvitationList, TeamMemberChange, TeamMemberList, TeamOrganization, TermsAcceptance, TermsAcceptanceStatus } from "../types.gen";
|
|
2
|
+
export declare const browserSessionOperations: {
|
|
3
|
+
readonly acceptTerms: {
|
|
4
|
+
readonly method: "POST";
|
|
5
|
+
readonly path: "/auth/terms-acceptance";
|
|
6
|
+
};
|
|
7
|
+
readonly beginExistingGithubConnect: {
|
|
8
|
+
readonly method: "GET";
|
|
9
|
+
readonly path: "/github/connect/existing";
|
|
10
|
+
};
|
|
11
|
+
readonly beginGithubConnect: {
|
|
12
|
+
readonly method: "GET";
|
|
13
|
+
readonly path: "/github/connect";
|
|
14
|
+
};
|
|
15
|
+
readonly beginSignIn: {
|
|
16
|
+
readonly method: "GET";
|
|
17
|
+
readonly path: "/auth/login";
|
|
18
|
+
};
|
|
19
|
+
readonly completeGithubConnect: {
|
|
20
|
+
readonly method: "POST";
|
|
21
|
+
readonly path: "/github/callback";
|
|
22
|
+
};
|
|
23
|
+
readonly completeGithubConnectRedirect: {
|
|
24
|
+
readonly method: "GET";
|
|
25
|
+
readonly path: "/github/callback";
|
|
26
|
+
};
|
|
27
|
+
readonly completeSignIn: {
|
|
28
|
+
readonly method: "GET";
|
|
29
|
+
readonly path: "/auth/callback";
|
|
30
|
+
};
|
|
31
|
+
readonly confirmPasswordReset: {
|
|
32
|
+
readonly method: "POST";
|
|
33
|
+
readonly path: "/auth/password-reset/confirm";
|
|
34
|
+
};
|
|
35
|
+
readonly createApiKey: {
|
|
36
|
+
readonly method: "POST";
|
|
37
|
+
readonly path: "/keys";
|
|
38
|
+
};
|
|
39
|
+
readonly createTeamInvitation: {
|
|
40
|
+
readonly method: "POST";
|
|
41
|
+
readonly path: "/organizations/{organization_id}/invitations";
|
|
42
|
+
};
|
|
43
|
+
readonly createTeamOrganization: {
|
|
44
|
+
readonly method: "POST";
|
|
45
|
+
readonly path: "/organizations";
|
|
46
|
+
};
|
|
47
|
+
readonly deleteAccount: {
|
|
48
|
+
readonly method: "DELETE";
|
|
49
|
+
readonly path: "/account";
|
|
50
|
+
};
|
|
51
|
+
readonly discoverExistingGithubInstallations: {
|
|
52
|
+
readonly method: "POST";
|
|
53
|
+
readonly path: "/github/existing/discover";
|
|
54
|
+
};
|
|
55
|
+
readonly emailSignIn: {
|
|
56
|
+
readonly method: "POST";
|
|
57
|
+
readonly path: "/auth/email/session";
|
|
58
|
+
};
|
|
59
|
+
readonly getAccountDeletionStatus: {
|
|
60
|
+
readonly method: "GET";
|
|
61
|
+
readonly path: "/account/deletion";
|
|
62
|
+
};
|
|
63
|
+
readonly getApiKeyPrivacy: {
|
|
64
|
+
readonly method: "GET";
|
|
65
|
+
readonly path: "/keys/{key_id}/privacy";
|
|
66
|
+
};
|
|
67
|
+
readonly getCreditRefund: {
|
|
68
|
+
readonly method: "GET";
|
|
69
|
+
readonly path: "/credits/refunds/{refund_id}";
|
|
70
|
+
};
|
|
71
|
+
readonly getSession: {
|
|
72
|
+
readonly method: "GET";
|
|
73
|
+
readonly path: "/auth/me";
|
|
74
|
+
};
|
|
75
|
+
readonly getSignInForm: {
|
|
76
|
+
readonly method: "GET";
|
|
77
|
+
readonly path: "/auth/form";
|
|
78
|
+
};
|
|
79
|
+
readonly getTeamOrganization: {
|
|
80
|
+
readonly method: "GET";
|
|
81
|
+
readonly path: "/organizations/{organization_id}";
|
|
82
|
+
};
|
|
83
|
+
readonly getTermsAcceptance: {
|
|
84
|
+
readonly method: "GET";
|
|
85
|
+
readonly path: "/auth/terms-acceptance";
|
|
86
|
+
};
|
|
87
|
+
readonly getWorkspacePrivacy: {
|
|
88
|
+
readonly method: "GET";
|
|
89
|
+
readonly path: "/privacy";
|
|
90
|
+
};
|
|
91
|
+
readonly leaveTeam: {
|
|
92
|
+
readonly method: "POST";
|
|
93
|
+
readonly path: "/organizations/{organization_id}/leave";
|
|
94
|
+
};
|
|
95
|
+
readonly listAccountSessions: {
|
|
96
|
+
readonly method: "GET";
|
|
97
|
+
readonly path: "/account/sessions";
|
|
98
|
+
};
|
|
99
|
+
readonly listAccountSignInMethods: {
|
|
100
|
+
readonly method: "GET";
|
|
101
|
+
readonly path: "/account/sign-in-methods";
|
|
102
|
+
};
|
|
103
|
+
readonly listApiKeys: {
|
|
104
|
+
readonly method: "GET";
|
|
105
|
+
readonly path: "/keys";
|
|
106
|
+
};
|
|
107
|
+
readonly listTeamInvitations: {
|
|
108
|
+
readonly method: "GET";
|
|
109
|
+
readonly path: "/organizations/{organization_id}/invitations";
|
|
110
|
+
};
|
|
111
|
+
readonly listTeamMembers: {
|
|
112
|
+
readonly method: "GET";
|
|
113
|
+
readonly path: "/organizations/{organization_id}/members";
|
|
114
|
+
};
|
|
115
|
+
readonly openPasswordResetLink: {
|
|
116
|
+
readonly method: "GET";
|
|
117
|
+
readonly path: "/auth/password-reset/callback";
|
|
118
|
+
};
|
|
119
|
+
readonly previewCreditRefund: {
|
|
120
|
+
readonly method: "POST";
|
|
121
|
+
readonly path: "/credits/purchases/{purchase_id}/refund/preview";
|
|
122
|
+
};
|
|
123
|
+
readonly removeTeamMember: {
|
|
124
|
+
readonly method: "DELETE";
|
|
125
|
+
readonly path: "/organizations/{organization_id}/members/{member_id}";
|
|
126
|
+
};
|
|
127
|
+
readonly requestCreditRefund: {
|
|
128
|
+
readonly method: "POST";
|
|
129
|
+
readonly path: "/credits/purchases/{purchase_id}/refund";
|
|
130
|
+
};
|
|
131
|
+
readonly requestPasswordReset: {
|
|
132
|
+
readonly method: "POST";
|
|
133
|
+
readonly path: "/auth/password-reset/request";
|
|
134
|
+
};
|
|
135
|
+
readonly resendEmailCode: {
|
|
136
|
+
readonly method: "POST";
|
|
137
|
+
readonly path: "/auth/email/resend";
|
|
138
|
+
};
|
|
139
|
+
readonly resendTeamInvitation: {
|
|
140
|
+
readonly method: "POST";
|
|
141
|
+
readonly path: "/organizations/{organization_id}/invitations/{invitation_id}/resend";
|
|
142
|
+
};
|
|
143
|
+
readonly revokeAccountSession: {
|
|
144
|
+
readonly method: "DELETE";
|
|
145
|
+
readonly path: "/account/sessions/{id}";
|
|
146
|
+
};
|
|
147
|
+
readonly revokeApiKey: {
|
|
148
|
+
readonly method: "DELETE";
|
|
149
|
+
readonly path: "/keys/{key_id}";
|
|
150
|
+
};
|
|
151
|
+
readonly revokeOtherAccountSessions: {
|
|
152
|
+
readonly method: "POST";
|
|
153
|
+
readonly path: "/account/sessions/revoke-others";
|
|
154
|
+
};
|
|
155
|
+
readonly revokeTeamInvitation: {
|
|
156
|
+
readonly method: "DELETE";
|
|
157
|
+
readonly path: "/organizations/{organization_id}/invitations/{invitation_id}";
|
|
158
|
+
};
|
|
159
|
+
readonly selectExistingGithubInstallation: {
|
|
160
|
+
readonly method: "POST";
|
|
161
|
+
readonly path: "/github/existing/select";
|
|
162
|
+
};
|
|
163
|
+
readonly selectHostedOrganization: {
|
|
164
|
+
readonly method: "POST";
|
|
165
|
+
readonly path: "/auth/organization";
|
|
166
|
+
};
|
|
167
|
+
readonly setApiKeyPrivacy: {
|
|
168
|
+
readonly method: "PUT";
|
|
169
|
+
readonly path: "/keys/{key_id}/privacy";
|
|
170
|
+
};
|
|
171
|
+
readonly setTeamBillingContact: {
|
|
172
|
+
readonly method: "PUT";
|
|
173
|
+
readonly path: "/organizations/{organization_id}/billing-contact";
|
|
174
|
+
};
|
|
175
|
+
readonly setWorkspacePrivacy: {
|
|
176
|
+
readonly method: "PUT";
|
|
177
|
+
readonly path: "/privacy";
|
|
178
|
+
};
|
|
179
|
+
readonly signInProviders: {
|
|
180
|
+
readonly method: "GET";
|
|
181
|
+
readonly path: "/auth/providers";
|
|
182
|
+
};
|
|
183
|
+
readonly signInWithPassword: {
|
|
184
|
+
readonly method: "POST";
|
|
185
|
+
readonly path: "/auth/email/sign-in";
|
|
186
|
+
};
|
|
187
|
+
readonly signOut: {
|
|
188
|
+
readonly method: "POST";
|
|
189
|
+
readonly path: "/auth/logout";
|
|
190
|
+
};
|
|
191
|
+
readonly signUpWithPassword: {
|
|
192
|
+
readonly method: "POST";
|
|
193
|
+
readonly path: "/auth/email/sign-up";
|
|
194
|
+
};
|
|
195
|
+
readonly startSocialSignIn: {
|
|
196
|
+
readonly method: "POST";
|
|
197
|
+
readonly path: "/auth/social/start";
|
|
198
|
+
};
|
|
199
|
+
readonly updateAccount: {
|
|
200
|
+
readonly method: "PATCH";
|
|
201
|
+
readonly path: "/account";
|
|
202
|
+
};
|
|
203
|
+
readonly updateTeamMember: {
|
|
204
|
+
readonly method: "PATCH";
|
|
205
|
+
readonly path: "/organizations/{organization_id}/members/{member_id}";
|
|
206
|
+
};
|
|
207
|
+
readonly updateTeamOrganization: {
|
|
208
|
+
readonly method: "PATCH";
|
|
209
|
+
readonly path: "/organizations/{organization_id}";
|
|
210
|
+
};
|
|
211
|
+
readonly verifyEmailCode: {
|
|
212
|
+
readonly method: "POST";
|
|
213
|
+
readonly path: "/auth/email/verify";
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
export type BrowserSessionOperationId = keyof typeof browserSessionOperations;
|
|
217
|
+
/** What each operation's successful response parses to. */
|
|
218
|
+
export interface BrowserSessionResponses {
|
|
219
|
+
acceptTerms: TermsAcceptance;
|
|
220
|
+
beginExistingGithubConnect: never;
|
|
221
|
+
beginGithubConnect: never;
|
|
222
|
+
beginSignIn: never;
|
|
223
|
+
completeGithubConnect: GitHubConnectCompletion;
|
|
224
|
+
completeGithubConnectRedirect: never;
|
|
225
|
+
completeSignIn: never;
|
|
226
|
+
confirmPasswordReset: PasswordResetComplete;
|
|
227
|
+
createApiKey: CreatedApiKey;
|
|
228
|
+
createTeamInvitation: TeamInvitation;
|
|
229
|
+
createTeamOrganization: TeamOrganization;
|
|
230
|
+
deleteAccount: AccountDeleteResult;
|
|
231
|
+
discoverExistingGithubInstallations: GitHubExistingInstallationDiscovery;
|
|
232
|
+
emailSignIn: undefined;
|
|
233
|
+
getAccountDeletionStatus: AccountDeletionStatus;
|
|
234
|
+
getApiKeyPrivacy: PrivacySetting;
|
|
235
|
+
getCreditRefund: CreditRefund;
|
|
236
|
+
getSession: BrowserIdentitySession;
|
|
237
|
+
getSignInForm: SignInForm;
|
|
238
|
+
getTeamOrganization: TeamOrganization;
|
|
239
|
+
getTermsAcceptance: TermsAcceptanceStatus;
|
|
240
|
+
getWorkspacePrivacy: PrivacySetting;
|
|
241
|
+
leaveTeam: TeamMemberChange;
|
|
242
|
+
listAccountSessions: AccountSessions;
|
|
243
|
+
listAccountSignInMethods: AccountSignInMethods;
|
|
244
|
+
listApiKeys: ApiKeyList;
|
|
245
|
+
listTeamInvitations: TeamInvitationList;
|
|
246
|
+
listTeamMembers: TeamMemberList;
|
|
247
|
+
openPasswordResetLink: never;
|
|
248
|
+
previewCreditRefund: CreditRefundPreview;
|
|
249
|
+
removeTeamMember: TeamMemberChange;
|
|
250
|
+
requestCreditRefund: CreditRefund;
|
|
251
|
+
requestPasswordReset: PasswordResetRequested;
|
|
252
|
+
resendEmailCode: SignInVerificationRequired;
|
|
253
|
+
resendTeamInvitation: TeamInvitation;
|
|
254
|
+
revokeAccountSession: undefined;
|
|
255
|
+
revokeApiKey: undefined;
|
|
256
|
+
revokeOtherAccountSessions: AccountSessionsRevoked;
|
|
257
|
+
revokeTeamInvitation: TeamInvitation;
|
|
258
|
+
selectExistingGithubInstallation: GitHubExistingInstallationSelection;
|
|
259
|
+
selectHostedOrganization: BrowserIdentitySession;
|
|
260
|
+
setApiKeyPrivacy: PrivacySetting;
|
|
261
|
+
setTeamBillingContact: TeamOrganization;
|
|
262
|
+
setWorkspacePrivacy: PrivacySetting;
|
|
263
|
+
signInProviders: SignInProviders;
|
|
264
|
+
signInWithPassword: PasswordSignInResult | SignInVerificationRequired;
|
|
265
|
+
signOut: undefined | unknown;
|
|
266
|
+
signUpWithPassword: PasswordSignInResult | SignInVerificationRequired;
|
|
267
|
+
startSocialSignIn: SocialStart;
|
|
268
|
+
updateAccount: AccountProfile;
|
|
269
|
+
updateTeamMember: TeamMemberChange;
|
|
270
|
+
updateTeamOrganization: TeamOrganization;
|
|
271
|
+
verifyEmailCode: PasswordSignInResult | SignInVerificationRequired;
|
|
272
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.browserSessionOperations = void 0;
|
|
4
|
+
exports.browserSessionOperations = {
|
|
5
|
+
acceptTerms: { method: "POST", path: "/auth/terms-acceptance" },
|
|
6
|
+
beginExistingGithubConnect: { method: "GET", path: "/github/connect/existing" },
|
|
7
|
+
beginGithubConnect: { method: "GET", path: "/github/connect" },
|
|
8
|
+
beginSignIn: { method: "GET", path: "/auth/login" },
|
|
9
|
+
completeGithubConnect: { method: "POST", path: "/github/callback" },
|
|
10
|
+
completeGithubConnectRedirect: { method: "GET", path: "/github/callback" },
|
|
11
|
+
completeSignIn: { method: "GET", path: "/auth/callback" },
|
|
12
|
+
confirmPasswordReset: { method: "POST", path: "/auth/password-reset/confirm" },
|
|
13
|
+
createApiKey: { method: "POST", path: "/keys" },
|
|
14
|
+
createTeamInvitation: { method: "POST", path: "/organizations/{organization_id}/invitations" },
|
|
15
|
+
createTeamOrganization: { method: "POST", path: "/organizations" },
|
|
16
|
+
deleteAccount: { method: "DELETE", path: "/account" },
|
|
17
|
+
discoverExistingGithubInstallations: { method: "POST", path: "/github/existing/discover" },
|
|
18
|
+
emailSignIn: { method: "POST", path: "/auth/email/session" },
|
|
19
|
+
getAccountDeletionStatus: { method: "GET", path: "/account/deletion" },
|
|
20
|
+
getApiKeyPrivacy: { method: "GET", path: "/keys/{key_id}/privacy" },
|
|
21
|
+
getCreditRefund: { method: "GET", path: "/credits/refunds/{refund_id}" },
|
|
22
|
+
getSession: { method: "GET", path: "/auth/me" },
|
|
23
|
+
getSignInForm: { method: "GET", path: "/auth/form" },
|
|
24
|
+
getTeamOrganization: { method: "GET", path: "/organizations/{organization_id}" },
|
|
25
|
+
getTermsAcceptance: { method: "GET", path: "/auth/terms-acceptance" },
|
|
26
|
+
getWorkspacePrivacy: { method: "GET", path: "/privacy" },
|
|
27
|
+
leaveTeam: { method: "POST", path: "/organizations/{organization_id}/leave" },
|
|
28
|
+
listAccountSessions: { method: "GET", path: "/account/sessions" },
|
|
29
|
+
listAccountSignInMethods: { method: "GET", path: "/account/sign-in-methods" },
|
|
30
|
+
listApiKeys: { method: "GET", path: "/keys" },
|
|
31
|
+
listTeamInvitations: { method: "GET", path: "/organizations/{organization_id}/invitations" },
|
|
32
|
+
listTeamMembers: { method: "GET", path: "/organizations/{organization_id}/members" },
|
|
33
|
+
openPasswordResetLink: { method: "GET", path: "/auth/password-reset/callback" },
|
|
34
|
+
previewCreditRefund: { method: "POST", path: "/credits/purchases/{purchase_id}/refund/preview" },
|
|
35
|
+
removeTeamMember: { method: "DELETE", path: "/organizations/{organization_id}/members/{member_id}" },
|
|
36
|
+
requestCreditRefund: { method: "POST", path: "/credits/purchases/{purchase_id}/refund" },
|
|
37
|
+
requestPasswordReset: { method: "POST", path: "/auth/password-reset/request" },
|
|
38
|
+
resendEmailCode: { method: "POST", path: "/auth/email/resend" },
|
|
39
|
+
resendTeamInvitation: { method: "POST", path: "/organizations/{organization_id}/invitations/{invitation_id}/resend" },
|
|
40
|
+
revokeAccountSession: { method: "DELETE", path: "/account/sessions/{id}" },
|
|
41
|
+
revokeApiKey: { method: "DELETE", path: "/keys/{key_id}" },
|
|
42
|
+
revokeOtherAccountSessions: { method: "POST", path: "/account/sessions/revoke-others" },
|
|
43
|
+
revokeTeamInvitation: { method: "DELETE", path: "/organizations/{organization_id}/invitations/{invitation_id}" },
|
|
44
|
+
selectExistingGithubInstallation: { method: "POST", path: "/github/existing/select" },
|
|
45
|
+
selectHostedOrganization: { method: "POST", path: "/auth/organization" },
|
|
46
|
+
setApiKeyPrivacy: { method: "PUT", path: "/keys/{key_id}/privacy" },
|
|
47
|
+
setTeamBillingContact: { method: "PUT", path: "/organizations/{organization_id}/billing-contact" },
|
|
48
|
+
setWorkspacePrivacy: { method: "PUT", path: "/privacy" },
|
|
49
|
+
signInProviders: { method: "GET", path: "/auth/providers" },
|
|
50
|
+
signInWithPassword: { method: "POST", path: "/auth/email/sign-in" },
|
|
51
|
+
signOut: { method: "POST", path: "/auth/logout" },
|
|
52
|
+
signUpWithPassword: { method: "POST", path: "/auth/email/sign-up" },
|
|
53
|
+
startSocialSignIn: { method: "POST", path: "/auth/social/start" },
|
|
54
|
+
updateAccount: { method: "PATCH", path: "/account" },
|
|
55
|
+
updateTeamMember: { method: "PATCH", path: "/organizations/{organization_id}/members/{member_id}" },
|
|
56
|
+
updateTeamOrganization: { method: "PATCH", path: "/organizations/{organization_id}" },
|
|
57
|
+
verifyEmailCode: { method: "POST", path: "/auth/email/verify" },
|
|
58
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.operations = void 0;
|
|
4
|
+
const loadValidators = () => import("../responseValidators/api_keys.cjs").then(module => module.default);
|
|
5
|
+
const loadDiagnostics = () => import("../responseValidators/api_keys-diagnostics.cjs").then(module => module.default);
|
|
6
|
+
exports.operations = { "GET /keys": { responses: { "200": { "media": ["application/json"], "validator": "validate0" } }, completeErrors: { "400": false, "default": false }, loadValidators, loadDiagnostics },
|
|
7
|
+
"POST /keys": { responses: { "201": { "media": ["application/json"], "validator": "validate1" } }, completeErrors: { "400": false, "default": false }, loadValidators, loadDiagnostics },
|
|
8
|
+
"DELETE /keys/{key_id}": { responses: { "204": { "media": [] } }, completeErrors: { "400": false, "default": false } },
|
|
9
|
+
"GET /keys/{key_id}/privacy": { responses: { "200": { "media": ["application/json"], "validator": "validate2" } }, completeErrors: { "401": false, "403": false, "404": false, "default": false }, loadValidators, loadDiagnostics },
|
|
10
|
+
"PUT /keys/{key_id}/privacy": { responses: { "200": { "media": ["application/json"], "validator": "validate3" } }, completeErrors: { "400": false, "401": false, "403": false, "404": false, "409": false, "default": false }, loadValidators, loadDiagnostics } };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.operations = void 0;
|
|
4
|
+
const loadValidators = () => import("../responseValidators/credits.cjs").then(module => module.default);
|
|
5
|
+
const loadDiagnostics = () => import("../responseValidators/credits-diagnostics.cjs").then(module => module.default);
|
|
6
|
+
exports.operations = { "POST /credits/purchases/{purchase_id}/refund/preview": { responses: { "200": { "media": ["application/json"], "validator": "validate0" } }, completeErrors: { "403": false, "404": false, "409": false, "422": false, "429": false, "502": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
7
|
+
"POST /credits/purchases/{purchase_id}/refund": { responses: { "201": { "media": ["application/json"], "validator": "validate1" } }, completeErrors: { "403": false, "404": false, "409": false, "422": false, "429": false, "502": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
8
|
+
"GET /credits/refunds/{refund_id}": { responses: { "200": { "media": ["application/json"], "validator": "validate2" } }, completeErrors: { "403": false, "404": false, "503": false, "default": false }, loadValidators, loadDiagnostics } };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.operations = void 0;
|
|
4
|
+
const loadValidators = () => import("../responseValidators/github.cjs").then(module => module.default);
|
|
5
|
+
const loadDiagnostics = () => import("../responseValidators/github-diagnostics.cjs").then(module => module.default);
|
|
6
|
+
exports.operations = { "GET /github/connect": { responses: {}, completeErrors: { "302": false, "401": false, "403": false, "default": false } },
|
|
7
|
+
"GET /github/connect/existing": { responses: {}, completeErrors: { "302": false, "401": false, "403": false, "default": false } },
|
|
8
|
+
"GET /github/callback": { responses: {}, completeErrors: { "303": false, "401": false, "403": false, "default": false } },
|
|
9
|
+
"POST /github/callback": { responses: { "200": { "media": ["application/json"], "validator": "validate0" } }, completeErrors: { "400": false, "401": false, "403": false, "408": false, "413": false, "default": false }, loadValidators, loadDiagnostics },
|
|
10
|
+
"POST /github/existing/discover": { responses: { "200": { "media": ["application/json"], "validator": "validate1" } }, completeErrors: { "400": false, "401": false, "403": false, "408": false, "413": false, "default": false }, loadValidators, loadDiagnostics },
|
|
11
|
+
"POST /github/existing/select": { responses: { "200": { "media": ["application/json"], "validator": "validate2" } }, completeErrors: { "400": false, "401": false, "403": false, "408": false, "413": false, "default": false }, loadValidators, loadDiagnostics } };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.operations = void 0;
|
|
4
|
+
const loadValidators = () => import("../responseValidators/identity.cjs").then(module => module.default);
|
|
5
|
+
const loadDiagnostics = () => import("../responseValidators/identity-diagnostics.cjs").then(module => module.default);
|
|
6
|
+
exports.operations = { "GET /auth/providers": { responses: { "200": { "media": ["application/json"], "validator": "validate0" } }, completeErrors: { "400": false, "default": false }, loadValidators, loadDiagnostics },
|
|
7
|
+
"GET /auth/form": { responses: { "200": { "media": ["application/json"], "validator": "validate1" } }, completeErrors: { "400": false, "404": false, "429": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
8
|
+
"POST /auth/email/sign-in": { responses: { "200": { "media": ["application/json"], "validator": "validate2" }, "202": { "media": ["application/json"], "validator": "validate3" } }, completeErrors: { "400": false, "401": false, "403": false, "429": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
9
|
+
"POST /auth/email/sign-up": { responses: { "200": { "media": ["application/json"], "validator": "validate4" }, "202": { "media": ["application/json"], "validator": "validate5" } }, completeErrors: { "400": false, "401": false, "403": false, "429": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
10
|
+
"POST /auth/email/verify": { responses: { "200": { "media": ["application/json"], "validator": "validate6" }, "202": { "media": ["application/json"], "validator": "validate7" } }, completeErrors: { "400": false, "401": false, "403": false, "429": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
11
|
+
"POST /auth/email/resend": { responses: { "202": { "media": ["application/json"], "validator": "validate8" } }, completeErrors: { "400": false, "403": false, "429": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
12
|
+
"POST /auth/email/session": { responses: { "204": { "media": [] } }, completeErrors: { "400": false, "401": false, "403": false, "404": false, "409": false, "503": false, "default": false } },
|
|
13
|
+
"POST /auth/password-reset/request": { responses: { "202": { "media": ["application/json"], "validator": "validate9" } }, completeErrors: { "400": false, "403": false, "429": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
14
|
+
"GET /auth/password-reset/callback": { responses: {}, completeErrors: { "303": false, "400": false, "default": false } },
|
|
15
|
+
"POST /auth/password-reset/confirm": { responses: { "200": { "media": ["application/json"], "validator": "validate10" } }, completeErrors: { "400": false, "403": false, "429": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
16
|
+
"POST /auth/social/start": { responses: { "200": { "media": ["application/json"], "validator": "validate11" } }, completeErrors: { "400": false, "403": false, "429": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
17
|
+
"GET /auth/login": { responses: {}, completeErrors: { "302": false, "303": false, "400": false, "default": false } },
|
|
18
|
+
"GET /auth/callback": { responses: {}, completeErrors: { "302": false, "303": false, "400": false, "default": false } },
|
|
19
|
+
"GET /auth/me": { responses: { "200": { "media": ["application/json"], "validator": "validate12" } }, completeErrors: { "401": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
20
|
+
"GET /auth/terms-acceptance": { responses: { "200": { "media": ["application/json"], "validator": "validate13" } }, completeErrors: { "401": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
21
|
+
"POST /auth/terms-acceptance": { responses: { "200": { "media": ["application/json"], "validator": "validate14" } }, completeErrors: { "400": false, "401": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
22
|
+
"POST /auth/organization": { responses: { "200": { "media": ["application/json"], "validator": "validate15" } }, completeErrors: { "400": false, "403": false, "409": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
23
|
+
"POST /auth/logout": { responses: { "200": { "media": ["application/json"], "validator": "validate16" }, "204": { "media": [] } }, completeErrors: { "400": false, "default": false }, loadValidators, loadDiagnostics },
|
|
24
|
+
"PATCH /account": { responses: { "200": { "media": ["application/json"], "validator": "validate17" } }, completeErrors: { "400": false, "401": false, "403": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
25
|
+
"DELETE /account": { responses: { "200": { "media": ["application/json"], "validator": "validate18" } }, completeErrors: { "400": false, "401": false, "403": false, "409": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
26
|
+
"GET /account/sign-in-methods": { responses: { "200": { "media": ["application/json"], "validator": "validate19" } }, completeErrors: { "401": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
27
|
+
"GET /account/sessions": { responses: { "200": { "media": ["application/json"], "validator": "validate20" } }, completeErrors: { "401": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
28
|
+
"DELETE /account/sessions/{id}": { responses: { "204": { "media": [] } }, completeErrors: { "400": false, "401": false, "403": false, "404": false, "503": false, "default": false } },
|
|
29
|
+
"POST /account/sessions/revoke-others": { responses: { "200": { "media": ["application/json"], "validator": "validate21" } }, completeErrors: { "400": false, "401": false, "403": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
30
|
+
"GET /account/deletion": { responses: { "200": { "media": ["application/json"], "validator": "validate22" } }, completeErrors: { "401": false, "503": false, "default": false }, loadValidators, loadDiagnostics } };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.operations = void 0;
|
|
4
|
+
const loadValidators = () => import("../responseValidators/organizations.cjs").then(module => module.default);
|
|
5
|
+
const loadDiagnostics = () => import("../responseValidators/organizations-diagnostics.cjs").then(module => module.default);
|
|
6
|
+
exports.operations = { "POST /organizations": { responses: { "201": { "media": ["application/json"], "validator": "validate0" } }, completeErrors: { "400": false, "401": false, "403": false, "409": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
7
|
+
"GET /organizations/{organization_id}": { responses: { "200": { "media": ["application/json"], "validator": "validate1" } }, completeErrors: { "401": false, "403": false, "404": false, "default": false }, loadValidators, loadDiagnostics },
|
|
8
|
+
"PATCH /organizations/{organization_id}": { responses: { "200": { "media": ["application/json"], "validator": "validate2" } }, completeErrors: { "400": false, "401": false, "403": false, "404": false, "default": false }, loadValidators, loadDiagnostics },
|
|
9
|
+
"PUT /organizations/{organization_id}/billing-contact": { responses: { "200": { "media": ["application/json"], "validator": "validate3" } }, completeErrors: { "400": false, "401": false, "403": false, "404": false, "default": false }, loadValidators, loadDiagnostics },
|
|
10
|
+
"GET /organizations/{organization_id}/invitations": { responses: { "200": { "media": ["application/json"], "validator": "validate4" } }, completeErrors: { "401": false, "403": false, "404": false, "default": false }, loadValidators, loadDiagnostics },
|
|
11
|
+
"POST /organizations/{organization_id}/invitations": { responses: { "201": { "media": ["application/json"], "validator": "validate5" } }, completeErrors: { "400": false, "401": false, "403": false, "404": false, "409": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
12
|
+
"POST /organizations/{organization_id}/invitations/{invitation_id}/resend": { responses: { "200": { "media": ["application/json"], "validator": "validate6" } }, completeErrors: { "401": false, "403": false, "404": false, "409": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
13
|
+
"DELETE /organizations/{organization_id}/invitations/{invitation_id}": { responses: { "200": { "media": ["application/json"], "validator": "validate7" } }, completeErrors: { "401": false, "403": false, "404": false, "409": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
14
|
+
"GET /organizations/{organization_id}/members": { responses: { "200": { "media": ["application/json"], "validator": "validate8" } }, completeErrors: { "401": false, "404": false, "default": false }, loadValidators, loadDiagnostics },
|
|
15
|
+
"PATCH /organizations/{organization_id}/members/{member_id}": { responses: { "200": { "media": ["application/json"], "validator": "validate9" }, "202": { "media": ["application/json"], "validator": "validate10" } }, completeErrors: { "400": false, "401": false, "403": false, "404": false, "409": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
16
|
+
"DELETE /organizations/{organization_id}/members/{member_id}": { responses: { "200": { "media": ["application/json"], "validator": "validate11" }, "202": { "media": ["application/json"], "validator": "validate12" } }, completeErrors: { "400": false, "401": false, "403": false, "404": false, "409": false, "503": false, "default": false }, loadValidators, loadDiagnostics },
|
|
17
|
+
"POST /organizations/{organization_id}/leave": { responses: { "200": { "media": ["application/json"], "validator": "validate13" }, "202": { "media": ["application/json"], "validator": "validate14" } }, completeErrors: { "401": false, "403": false, "404": false, "409": false, "503": false, "default": false }, loadValidators, loadDiagnostics } };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.operations = void 0;
|
|
4
|
+
const loadValidators = () => import("../responseValidators/privacy.cjs").then(module => module.default);
|
|
5
|
+
const loadDiagnostics = () => import("../responseValidators/privacy-diagnostics.cjs").then(module => module.default);
|
|
6
|
+
exports.operations = { "GET /privacy": { responses: { "200": { "media": ["application/json"], "validator": "validate0" } }, completeErrors: { "401": false, "403": false, "default": false }, loadValidators, loadDiagnostics },
|
|
7
|
+
"PUT /privacy": { responses: { "200": { "media": ["application/json"], "validator": "validate1" } }, completeErrors: { "400": false, "401": false, "403": false, "409": false, "default": false }, loadValidators, loadDiagnostics } };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.responseContractLoaders = exports.responseGroups = void 0;
|
|
4
|
+
exports.responseGroups = { "GET /auth/providers": "identity", "GET /auth/form": "identity", "POST /auth/email/sign-in": "identity", "POST /auth/email/sign-up": "identity", "POST /auth/email/verify": "identity", "POST /auth/email/resend": "identity", "POST /auth/email/session": "identity", "POST /auth/password-reset/request": "identity", "GET /auth/password-reset/callback": "identity", "POST /auth/password-reset/confirm": "identity", "POST /auth/social/start": "identity", "GET /auth/login": "identity", "GET /auth/callback": "identity", "GET /auth/me": "identity", "GET /auth/terms-acceptance": "identity", "POST /auth/terms-acceptance": "identity", "POST /auth/organization": "identity", "POST /auth/logout": "identity", "PATCH /account": "identity", "DELETE /account": "identity", "GET /account/sign-in-methods": "identity", "GET /account/sessions": "identity", "DELETE /account/sessions/{id}": "identity", "POST /account/sessions/revoke-others": "identity", "GET /account/deletion": "identity", "POST /organizations": "organizations", "GET /organizations/{organization_id}": "organizations", "PATCH /organizations/{organization_id}": "organizations", "PUT /organizations/{organization_id}/billing-contact": "organizations", "GET /organizations/{organization_id}/invitations": "organizations", "POST /organizations/{organization_id}/invitations": "organizations", "POST /organizations/{organization_id}/invitations/{invitation_id}/resend": "organizations", "DELETE /organizations/{organization_id}/invitations/{invitation_id}": "organizations", "GET /organizations/{organization_id}/members": "organizations", "PATCH /organizations/{organization_id}/members/{member_id}": "organizations", "DELETE /organizations/{organization_id}/members/{member_id}": "organizations", "POST /organizations/{organization_id}/leave": "organizations", "GET /github/connect": "github", "GET /github/connect/existing": "github", "GET /github/callback": "github", "POST /github/callback": "github", "POST /github/existing/discover": "github", "POST /github/existing/select": "github", "GET /keys": "api_keys", "POST /keys": "api_keys", "DELETE /keys/{key_id}": "api_keys", "GET /privacy": "privacy", "PUT /privacy": "privacy", "GET /keys/{key_id}/privacy": "api_keys", "PUT /keys/{key_id}/privacy": "api_keys", "POST /credits/purchases/{purchase_id}/refund/preview": "credits", "POST /credits/purchases/{purchase_id}/refund": "credits", "GET /credits/refunds/{refund_id}": "credits" };
|
|
5
|
+
exports.responseContractLoaders = { "identity": () => import("./responseContracts/identity.js").then(module => module.operations),
|
|
6
|
+
"organizations": () => import("./responseContracts/organizations.js").then(module => module.operations),
|
|
7
|
+
"github": () => import("./responseContracts/github.js").then(module => module.operations),
|
|
8
|
+
"api_keys": () => import("./responseContracts/api_keys.js").then(module => module.operations),
|
|
9
|
+
"privacy": () => import("./responseContracts/privacy.js").then(module => module.operations),
|
|
10
|
+
"credits": () => import("./responseContracts/credits.js").then(module => module.operations) };
|