{ "components": { "parameters": {}, "responses": {}, "schemas": { "access-token": { "additionalProperties": false, "properties": { "refresh_token": { "type": "string" } }, "required": [ "refresh_token" ], "type": "object" }, "access-token-capabilities": { "items": {}, "type": "array" }, "access-token-create": { "additionalProperties": false, "properties": { "capabilities": { "$ref": "#/components/schemas/access-token-capabilities" }, "name": { "type": "string" } }, "required": [ "name", "capabilities" ], "type": "object" }, "access-token-item": { "additionalProperties": false, "properties": { "capabilities": { "$ref": "#/components/schemas/access-token-capabilities" }, "id": { "type": "string" }, "name": { "type": "string" } }, "required": [ "capabilities", "id", "name" ], "type": "object" }, "access-token-page": { "additionalProperties": false, "properties": { "results": { "items": { "$ref": "#/components/schemas/access-token-item" }, "type": "array" } }, "required": [ "results" ], "type": "object" }, "bad-request-err": { "additionalProperties": false, "properties": { "data": { "type": "string" }, "id": { "type": "string" } }, "required": [ "id" ], "type": "object" }, "dirspace": { "additionalProperties": false, "properties": { "dir": { "type": "string" }, "workspace": { "type": "string" } }, "required": [ "dir", "workspace" ], "type": "object" }, "dirspace-state": { "enum": [ "aborted", "failure", "queued", "running", "success", "unknown" ], "type": "string" }, "error": { "additionalProperties": false, "properties": { "msg": { "type": "string" } }, "required": [ "msg" ], "type": "object" }, "error-response": { "additionalProperties": false, "properties": { "data": { "type": "string" }, "id": { "type": "string" } }, "required": [ "id" ], "type": "object" }, "gate": { "additionalProperties": false, "properties": { "all_of": { "items": { "type": "string" }, "type": "array" }, "any_of": { "items": { "type": "string" }, "type": "array" }, "any_of_count": { "type": "integer" }, "dir": { "type": "string" }, "name": { "type": "string" }, "token": { "type": "string" }, "workspace": { "type": "string" } }, "type": "object" }, "github-user": { "additionalProperties": false, "properties": { "avatar_url": { "type": "string" }, "username": { "type": "string" } }, "required": [ "username" ], "type": "object" }, "gitlab-access-token": { "additionalProperties": false, "properties": { "access_token": { "type": "string" } }, "required": [ "access_token" ], "type": "object" }, "gitlab-group": { "additionalProperties": false, "properties": { "id": { "type": "integer" }, "name": { "type": "string" } }, "required": [ "id", "name" ], "type": "object" }, "gitlab-user": { "additionalProperties": false, "properties": { "avatar_url": { "type": "string" }, "username": { "type": "string" } }, "required": [ "username" ], "type": "object" }, "gitlab-webhook": { "additionalProperties": false, "properties": { "state": { "type": "string" }, "webhook_secret": { "type": "string" }, "webhook_url": { "type": "string" } }, "required": [ "state", "webhook_url" ], "type": "object" }, "gitlab-whoareyou": { "additionalProperties": false, "properties": { "id": { "type": "integer" }, "username": { "type": "string" } }, "required": [ "id", "username" ], "type": "object" }, "hook-outputs": { "additionalProperties": false, "properties": { "post": { "items": { "oneOf": [ { "$ref": "#/components/schemas/workflow-output-drift-create-issue" }, { "$ref": "#/components/schemas/workflow-output-run" }, { "$ref": "#/components/schemas/workflow-output-env" }, { "$ref": "#/components/schemas/workflow-output-oidc" } ] }, "type": "array" }, "pre": { "items": { "oneOf": [ { "$ref": "#/components/schemas/workflow-output-run" }, { "$ref": "#/components/schemas/workflow-output-env" }, { "$ref": "#/components/schemas/workflow-output-checkout" }, { "$ref": "#/components/schemas/workflow-output-cost-estimation" }, { "$ref": "#/components/schemas/workflow-output-oidc" } ] }, "type": "array" } }, "required": [ "pre", "post" ], "type": "object" }, "installation": { "additionalProperties": false, "properties": { "account_status": { "type": "string" }, "created_at": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "tier": { "$ref": "#/components/schemas/tier" }, "trial_ends_at": { "type": "string" } }, "required": [ "account_status", "created_at", "id", "name", "tier" ], "type": "object" }, "installation-dirspace": { "additionalProperties": false, "properties": { "base_branch": { "type": "string" }, "base_ref": { "type": "string" }, "branch": { "type": "string" }, "branch_ref": { "type": "string" }, "completed_at": { "type": "string" }, "created_at": { "type": "string" }, "dir": { "type": "string" }, "environment": { "type": "string" }, "id": { "type": "string" }, "kind": { "oneOf": [ { "$ref": "#/components/schemas/kind-drift" }, { "$ref": "#/components/schemas/kind-index" }, { "$ref": "#/components/schemas/kind-pull-request" } ] }, "owner": { "type": "string" }, "repo": { "type": "string" }, "run_id": { "type": "string" }, "run_type": { "$ref": "#/components/schemas/run-type" }, "state": { "$ref": "#/components/schemas/dirspace-state" }, "tag_query": { "type": "string" }, "user": { "type": "string" }, "workspace": { "type": "string" } }, "required": [ "base_branch", "base_ref", "branch", "branch_ref", "created_at", "dir", "dirspaces", "id", "kind", "owner", "ref", "repo", "run_type", "state", "tag_query", "workspace" ], "type": "object" }, "installation-pull-request": { "additionalProperties": false, "properties": { "base_branch": { "type": "string" }, "base_sha": { "type": "string" }, "branch": { "type": "string" }, "latest_work_manifest_run_at": { "type": "string" }, "merged_at": { "type": "string" }, "merged_sha": { "type": "string" }, "name": { "type": "string" }, "owner": { "type": "string" }, "pull_number": { "type": "integer" }, "repository": { "type": "integer" }, "sha": { "type": "string" }, "state": { "enum": [ "open", "closed", "merged" ], "type": "string" }, "title": { "type": "string" }, "user": { "type": "string" } }, "required": [ "base_branch", "base_sha", "branch", "name", "owner", "pull_number", "repository", "sha", "state" ], "type": "object" }, "installation-repo": { "additionalProperties": false, "properties": { "id": { "type": "string" }, "installation_id": { "type": "string" }, "name": { "type": "string" }, "setup": { "type": "boolean" }, "updated_at": { "type": "string" } }, "required": [ "id", "installation_id", "name", "setup", "updated_at" ], "type": "object" }, "installation-work-manifest": { "additionalProperties": false, "properties": { "base_branch": { "type": "string" }, "base_ref": { "type": "string" }, "branch": { "type": "string" }, "branch_ref": { "type": "string" }, "completed_at": { "type": "string" }, "created_at": { "type": "string" }, "dirspaces": { "items": { "$ref": "#/components/schemas/work-manifest-dirspace" }, "type": "array" }, "environment": { "type": "string" }, "id": { "type": "string" }, "kind": { "oneOf": [ { "$ref": "#/components/schemas/kind-drift" }, { "$ref": "#/components/schemas/kind-index" }, { "$ref": "#/components/schemas/kind-pull-request" } ] }, "owner": { "type": "string" }, "repo": { "type": "string" }, "repo_id": { "type": "string" }, "run_id": { "type": "string" }, "run_type": { "$ref": "#/components/schemas/run-type" }, "state": { "$ref": "#/components/schemas/work-manifest-state" }, "tag_query": { "type": "string" }, "user": { "type": "string" } }, "required": [ "base_branch", "base_ref", "branch", "branch", "branch_ref", "created_at", "dirspaces", "id", "kind", "owner", "ref", "repo", "repo_id", "repository", "run_type", "state", "tag_query" ], "type": "object" }, "installation-work-manifest-target-pull-request": { "additionalProperties": false, "properties": { "pull_number": { "type": "integer" }, "pull_request_title": { "type": "string" } }, "required": [ "pull_number" ], "type": "object" }, "installation-workflow-step-output": { "additionalProperties": false, "properties": { "created_at": { "type": "string" }, "idx": { "type": "integer" }, "ignore_errors": { "type": "boolean" }, "payload": { "additionalProperties": { "type": null }, "properties": {}, "type": "object" }, "scope": { "$ref": "#/components/schemas/workflow-step-output-scope" }, "state": { "type": "string" }, "step": { "type": "string" } }, "required": [ "created_at", "idx", "ignore_errors", "location", "scope", "state", "step" ], "type": "object" }, "kind-drift": { "const": "drift", "type": "string" }, "kind-index": { "const": "index", "type": "string" }, "kind-pull-request": { "additionalProperties": false, "properties": { "pull_number": { "type": "integer" }, "pull_request_title": { "type": "string" } }, "required": [ "pull_number" ], "type": "object" }, "kv-cas": { "additionalProperties": false, "properties": { "committed": { "type": "boolean" }, "data": {}, "idx": { "type": "integer" }, "read_caps": {}, "version": { "type": "integer" }, "write_caps": {} }, "required": [ "data" ], "type": "object" }, "kv-commit": { "additionalProperties": false, "properties": { "keys": { "items": { "additionalProperties": false, "properties": { "idx": { "type": "integer" }, "key": { "type": "string" } }, "required": [ "key" ], "type": "object" }, "type": "array" } }, "required": [ "keys" ], "type": "object" }, "kv-commit-result": { "additionalProperties": false, "properties": { "keys": { "items": { "additionalProperties": false, "properties": { "idx": { "type": "integer" }, "key": { "type": "string" } }, "required": [ "key", "idx" ], "type": "object" }, "type": "array" } }, "required": [ "keys" ], "type": "object" }, "kv-count": { "additionalProperties": false, "properties": { "count": { "type": "integer" }, "max_idx": { "type": "integer" } }, "required": [ "count", "max_idx" ], "type": "object" }, "kv-delete": { "additionalProperties": false, "properties": { "result": { "type": "boolean" } }, "required": [ "result" ], "type": "object" }, "kv-record": { "additionalProperties": false, "properties": { "committed": { "type": "boolean" }, "created_at": { "type": "string" }, "data": {}, "idx": { "type": "integer" }, "key": { "type": "string" }, "read_caps": {}, "size": { "type": "integer" }, "version": { "type": "integer" }, "write_caps": {} }, "required": [ "committed", "created_at", "data", "idx", "key", "size", "version" ], "type": "object" }, "kv-record-list": { "additionalProperties": false, "properties": { "results": { "items": { "$ref": "#/components/schemas/kv-record" }, "type": "array" } }, "required": [ "results" ], "type": "object" }, "kv-set": { "additionalProperties": false, "properties": { "committed": { "type": "boolean" }, "data": {}, "idx": { "type": "integer" }, "read_caps": {}, "write_caps": {} }, "required": [ "data" ], "type": "object" }, "kv-size": { "additionalProperties": false, "properties": { "size": { "type": "integer" } }, "required": [ "size" ], "type": "object" }, "output-cost-estimation": { "additionalProperties": false, "properties": { "cost_estimation": { "additionalProperties": false, "properties": { "currency": { "type": "string" }, "diff_monthly_cost": { "type": "number" }, "dirspaces": { "items": { "additionalProperties": false, "properties": { "diff_monthly_cost": { "type": "number" }, "path": { "type": "string" }, "prev_monthly_cost": { "type": "number" }, "total_monthly_cost": { "type": "number" }, "workspace": { "type": "string" } }, "required": [ "path", "workspace", "prev_monthly_cost", "total_monthly_cost", "diff_monthly_cost" ], "type": "object" }, "type": "array" }, "prev_monthly_cost": { "type": "number" }, "total_monthly_cost": { "type": "number" } }, "required": [ "prev_monthly_cost", "total_monthly_cost", "diff_monthly_cost", "currency", "dirspaces" ], "type": "object" } }, "required": [ "cost_estimation" ], "type": "object" }, "output-plan": { "additionalProperties": false, "properties": { "has_changes": { "default": true, "type": "boolean" }, "plan": { "type": "string" }, "plan_text": { "type": "string" } }, "required": [ "plan", "plan_text" ], "type": "object" }, "output-text": { "additionalProperties": false, "properties": { "output_key": { "type": "string" }, "text": { "type": "string" } }, "required": [ "text" ], "type": "object" }, "plan-create": { "additionalProperties": false, "properties": { "has_changes": { "default": true, "type": "boolean" }, "path": { "type": "string" }, "plan_data": { "type": "string" }, "workspace": { "type": "string" } }, "required": [ "path", "workspace", "plan_data" ], "type": "object" }, "run-kind-data-pull-request": { "additionalProperties": false, "properties": { "id": { "type": "string" } }, "required": [ "id" ], "type": "object" }, "run-type": { "enum": [ "apply", "build-config", "build-tree", "index", "plan" ], "type": "string" }, "server-config": { "additionalProperties": false, "properties": { "github": { "$ref": "#/components/schemas/server-config-github" }, "gitlab": { "$ref": "#/components/schemas/server-config-gitlab" } }, "type": "object" }, "server-config-github": { "additionalProperties": false, "properties": { "api_base_url": { "type": "string" }, "app_client_id": { "type": "string" }, "app_url": { "type": "string" }, "web_base_url": { "type": "string" } }, "required": [ "api_base_url", "app_client_id", "app_url", "web_base_url" ], "type": "object" }, "server-config-gitlab": { "additionalProperties": false, "properties": { "api_base_url": { "type": "string" }, "app_id": { "type": "string" }, "redirect_url": { "type": "string" }, "web_base_url": { "type": "string" } }, "required": [ "api_base_url", "app_id", "redirect_url", "web_base_url" ], "type": "object" }, "stack-inner": { "additionalProperties": false, "properties": { "dirspaces": { "items": { "additionalProperties": false, "properties": { "dirspace": { "$ref": "#/components/schemas/dirspace" }, "state": { "$ref": "#/components/schemas/stack-state" } }, "required": [ "dirspace", "state" ], "type": "object" }, "type": "array" }, "name": { "type": "string" }, "paths": { "items": { "$ref": "#/components/schemas/stack-path" }, "type": "array" }, "state": { "$ref": "#/components/schemas/stack-state" } }, "required": [ "dirspaces", "name", "paths", "state" ], "type": "object" }, "stack-outer": { "additionalProperties": false, "properties": { "name": { "type": "string" }, "stacks": { "items": { "$ref": "#/components/schemas/stack-inner" }, "type": "array" }, "state": { "$ref": "#/components/schemas/stack-state" } }, "required": [ "name", "stacks", "state" ], "type": "object" }, "stack-path": { "items": { "type": "string" }, "type": "array" }, "stack-state": { "enum": [ "apply_failed", "apply_pending", "apply_ready", "apply_success", "no_changes", "plan_failed", "plan_pending" ], "type": "string" }, "stacks": { "additionalProperties": false, "properties": { "stacks": { "items": { "$ref": "#/components/schemas/stack-outer" }, "type": "array" } }, "required": [ "stacks" ], "type": "object" }, "task": { "additionalProperties": false, "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "state": { "enum": [ "aborted", "pending", "running", "completed", "failed" ], "type": "string" }, "updated_at": { "type": "string" } }, "required": [ "id", "name", "state", "updated_at" ], "type": "object" }, "tier": { "additionalProperties": false, "properties": { "features": { "additionalProperties": false, "properties": { "num_users_per_month": { "type": "integer" } }, "type": "object" }, "name": { "type": "string" } }, "required": [ "features", "name" ], "type": "object" }, "user": { "additionalProperties": false, "properties": { "id": { "type": "string" }, "vcs": { "items": { "type": "string" }, "type": "array" } }, "required": [ "id", "vcs" ], "type": "object" }, "work-manifest": { "oneOf": [ { "$ref": "#/components/schemas/work-manifest-plan" }, { "$ref": "#/components/schemas/work-manifest-apply" }, { "$ref": "#/components/schemas/work-manifest-index" }, { "$ref": "#/components/schemas/work-manifest-unsafe-apply" }, { "$ref": "#/components/schemas/work-manifest-build-config" }, { "$ref": "#/components/schemas/work-manifest-done" }, { "$ref": "#/components/schemas/work-manifest-build-tree" } ] }, "work-manifest-apply": { "additionalProperties": false, "properties": { "api_base_url": { "type": "string" }, "base_ref": { "type": "string" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "changed_dirspaces": { "items": { "$ref": "#/components/schemas/work-manifest-dir" }, "type": "array" }, "config": { "type": null }, "installation_id": { "type": "string" }, "protocol_version": { "type": "integer" }, "result_version": { "type": "integer" }, "run_kind": { "type": "string" }, "run_kind_data": { "oneOf": [ { "$ref": "#/components/schemas/run-kind-data-pull-request" } ] }, "token": { "type": "string" }, "type": { "const": "apply", "type": "string" } }, "required": [ "api_base_url", "base_ref", "capabilities", "changed_dirspaces", "config", "installation_id", "result_version", "run_kind", "token", "type" ], "type": "object" }, "work-manifest-build-config": { "additionalProperties": false, "properties": { "base_ref": { "type": "string" }, "config": { "type": null }, "token": { "type": "string" }, "type": { "const": "build-config", "type": "string" } }, "required": [ "base_ref", "config", "token", "type" ], "type": "object" }, "work-manifest-build-config-result": { "additionalProperties": false, "properties": { "config": { "type": null } }, "required": [ "config" ], "type": "object" }, "work-manifest-build-result-failure": { "additionalProperties": false, "properties": { "msg": { "type": "string" } }, "required": [ "msg" ], "type": "object" }, "work-manifest-build-tree": { "additionalProperties": false, "properties": { "base_ref": { "type": "string" }, "config": { "type": null }, "token": { "type": "string" }, "type": { "const": "build-tree", "type": "string" } }, "required": [ "base_ref", "config", "token", "type" ], "type": "object" }, "work-manifest-build-tree-result": { "additionalProperties": false, "properties": { "files": { "items": { "additionalProperties": false, "properties": { "changed": { "type": "boolean" }, "id": { "type": "string" }, "path": { "type": "string" } }, "required": [ "path" ], "type": "object" }, "type": "array" } }, "required": [ "files" ], "type": "object" }, "work-manifest-dir": { "additionalProperties": false, "properties": { "path": { "type": "string" }, "rank": { "description": "Starts at 0, relative dependency order to perform operation on dir.", "type": "integer" }, "stack_name": { "type": "string" }, "variables": { "additionalProperties": { "type": "string" }, "type": "object" }, "workflow": { "type": "integer" }, "workspace": { "type": "string" } }, "required": [ "path", "rank", "stack_name", "workspace" ], "type": "object" }, "work-manifest-dirspace": { "additionalProperties": false, "properties": { "dir": { "type": "string" }, "success": { "type": "boolean" }, "workspace": { "type": "string" } }, "required": [ "dir", "workspace" ], "type": "object" }, "work-manifest-dirspace-result": { "additionalProperties": false, "properties": { "outputs": { "$ref": "#/components/schemas/workflow-outputs" }, "path": { "type": "string" }, "success": { "type": "boolean" }, "workspace": { "type": "string" } }, "required": [ "path", "workspace", "success", "outputs" ], "type": "object" }, "work-manifest-dirspace-results": { "items": { "$ref": "#/components/schemas/work-manifest-dirspace-result" }, "type": "array" }, "work-manifest-done": { "additionalProperties": false, "properties": { "type": { "const": "done", "type": "string" } }, "required": [ "type" ], "type": "object" }, "work-manifest-index": { "additionalProperties": false, "properties": { "base_ref": { "type": "string" }, "config": { "type": null }, "dirs": { "items": { "type": "string" }, "type": "array" }, "token": { "type": "string" }, "type": { "const": "index", "type": "string" } }, "required": [ "base_ref", "config", "dirs", "token", "type" ], "type": "object" }, "work-manifest-index-paths": { "additionalProperties": { "additionalProperties": false, "properties": { "failures": { "additionalProperties": { "additionalProperties": false, "properties": { "lnum": { "type": "integer" }, "msg": { "type": "string" } }, "required": [ "msg" ], "type": "object" }, "type": "object" }, "modules": { "items": { "type": "string" }, "type": "array" } }, "required": [ "failures", "modules" ], "type": "object" }, "type": "object" }, "work-manifest-index-result": { "additionalProperties": false, "properties": { "paths": { "$ref": "#/components/schemas/work-manifest-index-paths" }, "success": { "type": "boolean" }, "symlinks": { "$ref": "#/components/schemas/work-manifest-index-symlinks" }, "version": { "const": 1, "type": "integer" } }, "required": [ "paths", "success", "version" ], "type": "object" }, "work-manifest-index-symlinks": { "additionalProperties": { "type": "string" }, "type": "object" }, "work-manifest-initiate": { "additionalProperties": false, "properties": { "run_id": { "type": "string" }, "sha": { "type": "string" } }, "required": [ "run_id", "sha" ], "type": "object" }, "work-manifest-plan": { "additionalProperties": false, "properties": { "api_base_url": { "type": "string" }, "base_dirspaces": { "items": { "$ref": "#/components/schemas/work-manifest-dir" }, "type": "array" }, "base_ref": { "type": "string" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "changed_dirspaces": { "items": { "$ref": "#/components/schemas/work-manifest-dir" }, "type": "array" }, "config": { "type": null }, "dirspaces": { "items": { "$ref": "#/components/schemas/work-manifest-dir" }, "type": "array" }, "installation_id": { "type": "string" }, "protocol_version": { "type": "integer" }, "result_version": { "type": "integer" }, "run_kind": { "type": "string" }, "run_kind_data": { "oneOf": [ { "$ref": "#/components/schemas/run-kind-data-pull-request" } ] }, "token": { "type": "string" }, "type": { "const": "plan", "type": "string" } }, "required": [ "api_base_url", "base_dirspaces", "base_ref", "capabilities", "changed_dirspaces", "config", "dirspaces", "installation_id", "result_version", "run_kind", "token", "type" ], "type": "object" }, "work-manifest-result": { "oneOf": [ { "$ref": "#/components/schemas/work-manifest-index-result" }, { "$ref": "#/components/schemas/work-manifest-build-config-result" }, { "$ref": "#/components/schemas/work-manifest-build-tree-result" }, { "$ref": "#/components/schemas/work-manifest-build-result-failure" }, { "$ref": "#/components/schemas/work-manifest-tf-operation-result" }, { "$ref": "#/components/schemas/work-manifest-tf-operation-result2" } ] }, "work-manifest-state": { "enum": [ "aborted", "completed", "queued", "running" ], "type": "string" }, "work-manifest-tf-operation-result": { "additionalProperties": false, "properties": { "dirspaces": { "$ref": "#/components/schemas/work-manifest-dirspace-results" }, "overall": { "additionalProperties": false, "properties": { "outputs": { "$ref": "#/components/schemas/hook-outputs" }, "success": { "type": "boolean" } }, "required": [ "success", "outputs" ], "type": "object" } }, "required": [ "dirspaces", "overall" ], "type": "object" }, "work-manifest-tf-operation-result2": { "additionalProperties": false, "properties": { "gates": { "items": { "$ref": "#/components/schemas/gate" }, "type": "array" }, "steps": { "items": { "$ref": "#/components/schemas/workflow-step-output" }, "type": "array" } }, "required": [ "steps" ], "type": "object" }, "work-manifest-unsafe-apply": { "additionalProperties": false, "properties": { "base_ref": { "type": "string" }, "changed_dirspaces": { "items": { "$ref": "#/components/schemas/work-manifest-dir" }, "type": "array" }, "config": { "type": null }, "run_kind": { "type": "string" }, "token": { "type": "string" }, "type": { "const": "unsafe-apply", "type": "string" } }, "required": [ "base_ref", "changed_dirspaces", "config", "run_kind", "token", "type" ], "type": "object" }, "work-manifest-workspaces": { "items": { "additionalProperties": false, "properties": { "dir": { "type": "string" }, "workspace": { "type": "string" } }, "required": [ "dir", "workspace" ], "type": "object" }, "type": "array" }, "workflow-output-apply": { "additionalProperties": false, "properties": { "outputs": { "$ref": "#/components/schemas/output-text" }, "success": { "type": "boolean" }, "workflow_step": { "additionalProperties": false, "properties": { "type": { "const": "apply", "type": "string" } }, "required": [ "type" ], "type": "object" } }, "required": [ "workflow_step", "success" ], "type": "object" }, "workflow-output-checkout": { "additionalProperties": false, "properties": { "outputs": { "$ref": "#/components/schemas/output-text" }, "success": { "type": "boolean" }, "workflow_step": { "additionalProperties": false, "properties": { "type": { "const": "checkout", "type": "string" } }, "required": [ "type" ], "type": "object" } }, "required": [ "workflow_step", "success", "outputs" ], "type": "object" }, "workflow-output-cost-estimation": { "additionalProperties": false, "properties": { "outputs": { "oneOf": [ { "$ref": "#/components/schemas/output-text" }, { "$ref": "#/components/schemas/output-cost-estimation" } ] }, "success": { "type": "boolean" }, "workflow_step": { "additionalProperties": false, "properties": { "type": { "const": "cost-estimation", "type": "string" } }, "required": [ "type" ], "type": "object" } }, "required": [ "workflow_step", "success", "outputs" ], "type": "object" }, "workflow-output-drift-create-issue": { "additionalProperties": false, "properties": { "outputs": { "$ref": "#/components/schemas/output-text" }, "success": { "type": "boolean" }, "workflow_step": { "additionalProperties": false, "properties": { "type": { "const": "drift-create-issue", "type": "string" } }, "required": [ "type" ], "type": "object" } }, "required": [ "workflow_step", "success" ], "type": "object" }, "workflow-output-env": { "additionalProperties": false, "properties": { "outputs": { "$ref": "#/components/schemas/output-text" }, "success": { "type": "boolean" }, "workflow_step": { "additionalProperties": false, "properties": { "cmd": { "items": { "type": "string" }, "type": "array" }, "method": { "type": "string" }, "name": { "type": "string" }, "type": { "const": "env", "type": "string" } }, "required": [ "type", "cmd" ], "type": "object" } }, "required": [ "workflow_step", "success" ], "type": "object" }, "workflow-output-init": { "additionalProperties": false, "properties": { "outputs": { "$ref": "#/components/schemas/output-text" }, "success": { "type": "boolean" }, "workflow_step": { "additionalProperties": false, "properties": { "type": { "const": "init", "type": "string" } }, "required": [ "type" ], "type": "object" } }, "required": [ "workflow_step", "success" ], "type": "object" }, "workflow-output-oidc": { "additionalProperties": false, "properties": { "outputs": { "$ref": "#/components/schemas/output-text" }, "success": { "type": "boolean" }, "workflow_step": { "additionalProperties": false, "properties": { "type": { "const": "oidc", "type": "string" } }, "required": [ "type" ], "type": "object" } }, "required": [ "workflow_step", "success" ], "type": "object" }, "workflow-output-plan": { "additionalProperties": false, "properties": { "outputs": { "oneOf": [ { "$ref": "#/components/schemas/output-text" }, { "$ref": "#/components/schemas/output-plan" } ] }, "success": { "type": "boolean" }, "workflow_step": { "additionalProperties": false, "properties": { "type": { "const": "plan", "type": "string" } }, "required": [ "type" ], "type": "object" } }, "required": [ "workflow_step", "success" ], "type": "object" }, "workflow-output-run": { "additionalProperties": false, "properties": { "outputs": { "$ref": "#/components/schemas/output-text" }, "success": { "type": "boolean" }, "workflow_step": { "additionalProperties": false, "properties": { "cmd": { "items": { "type": "string" }, "type": "array" }, "exit_code": { "type": "integer" }, "type": { "const": "run", "type": "string" } }, "required": [ "type", "cmd" ], "type": "object" } }, "required": [ "workflow_step", "success" ], "type": "object" }, "workflow-outputs": { "items": { "oneOf": [ { "$ref": "#/components/schemas/workflow-output-apply" }, { "$ref": "#/components/schemas/workflow-output-env" }, { "$ref": "#/components/schemas/workflow-output-init" }, { "$ref": "#/components/schemas/workflow-output-oidc" }, { "$ref": "#/components/schemas/workflow-output-plan" }, { "$ref": "#/components/schemas/workflow-output-run" } ] }, "type": "array" }, "workflow-step-output": { "additionalProperties": false, "properties": { "ignore_errors": { "type": "boolean" }, "payload": { "additionalProperties": { "type": null }, "properties": {}, "type": "object" }, "scope": { "$ref": "#/components/schemas/workflow-step-output-scope" }, "step": { "type": "string" }, "success": { "type": "boolean" } }, "required": [ "ignore_errors", "location", "payload", "scope", "step", "success" ], "type": "object" }, "workflow-step-output-scope": { "oneOf": [ { "$ref": "#/components/schemas/workflow-step-output-scope-dirspace" }, { "$ref": "#/components/schemas/workflow-step-output-scope-run" } ] }, "workflow-step-output-scope-dirspace": { "additionalProperties": false, "properties": { "dir": { "type": "string" }, "type": { "const": "dirspace", "type": "string" }, "workspace": { "type": "string" } }, "required": [ "dir", "workspace" ], "type": "object" }, "workflow-step-output-scope-run": { "additionalProperties": false, "properties": { "flow": { "type": "string" }, "subflow": { "type": "string" }, "type": { "const": "run", "type": "string" } }, "required": [ "flow", "subflow" ], "type": "object" } } }, "openapi": "3.0.3", "paths": { "/api/github/v1/work-manifests/{work_manifest_id}": { "put": { "operationId": "work-manifest/results", "parameters": [ { "in": "path", "name": "work_manifest_id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/work-manifest-result" } } }, "required": true }, "responses": { "200": {}, "403": {} } } }, "/api/github/v1/work-manifests/{work_manifest_id}/access-token": { "post": { "operationId": "work-manifest/get-access-token", "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "access_token": { "type": "string" } }, "required": [ "access_token" ], "type": "object" } } } } } } }, "/api/github/v1/work-manifests/{work_manifest_id}/initiate": { "post": { "operationId": "work-manifest/initiate", "parameters": [ { "in": "path", "name": "work_manifest_id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/work-manifest-initiate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/work-manifest" } } } }, "403": {} } } }, "/api/github/v1/work-manifests/{work_manifest_id}/plans": { "get": { "operationId": "work-manifest/plan-get", "parameters": [ { "in": "path", "name": "work_manifest_id", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "dir", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "workspace", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "data": { "type": "string" } }, "required": [ "data" ], "type": "object" } } } } } }, "post": { "operationId": "work-manifest/plan-create", "parameters": [ { "in": "path", "name": "work_manifest_id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/plan-create" } } }, "required": true }, "responses": { "200": {}, "403": {} } } }, "/api/github/v1/work-manifests/{work_manifest_id}/workspaces": { "post": { "operationId": "work-manifest/workspaces", "parameters": [ { "in": "path", "name": "work_manifest_id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/work-manifest-workspaces" } } } }, "403": {} } } }, "/api/v1/access-token/refresh": { "post": { "operationId": "access-token/refresh", "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "token": { "type": "string" } }, "required": [ "token" ], "type": "object" } } } }, "403": {} } } }, "/api/v1/admin/drifts": { "get": { "operationId": "admin/drifts", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "results": { "items": { "additionalProperties": false, "properties": { "completed_at": { "type": "string" }, "created_at": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "owner": { "type": "string" }, "run_type": { "$ref": "#/components/schemas/run-type" }, "state": { "type": "string" }, "unlocked": { "type": "boolean" } }, "required": [ "created_at", "id", "name", "owner", "run_type", "state", "unlocked" ], "type": "object" }, "type": "array" } }, "required": [ "results" ], "type": "object" } } } } } } }, "/api/v1/github/client_id": { "get": { "operationId": "api_v1/client_id", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "client_id": { "type": "string" } }, "required": [ "client_id" ], "type": "object" } } } }, "403": { "content": {} } } } }, "/api/v1/github/installations/{installation_id}/dirspaces": { "get": { "operationId": "installations/list-dirspaces", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "items": { "type": "string" }, "type": "array" } }, { "in": "query", "name": "q", "required": false, "schema": { "type": "string" } }, { "in": "query", "name": "d", "required": false, "schema": { "enum": [ "asc", "desc" ], "type": "string" } }, { "in": "query", "name": "tz", "required": false, "schema": { "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "dirspaces": { "items": { "$ref": "#/components/schemas/installation-dirspace" }, "type": "array" } }, "required": [ "dirspaces" ], "type": "object" } } } }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/bad-request-err" } } } }, "403": { "content": {} } } } }, "/api/v1/github/installations/{installation_id}/pull-requests": { "get": { "operationId": "installations/list-pull-requests", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "items": { "type": "string" }, "type": "array" } }, { "in": "query", "name": "pr", "required": false, "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "pull_requests": { "items": { "$ref": "#/components/schemas/installation-pull-request" }, "type": "array" } }, "required": [ "pull_requests" ], "type": "object" } } } }, "403": { "content": {} } } } }, "/api/v1/github/installations/{installation_id}/repos": { "get": { "operationId": "installations/list-repos", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "items": { "type": "string" }, "type": "array" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "repositories": { "items": { "$ref": "#/components/schemas/installation-repo" }, "type": "array" } }, "required": [ "repositories" ], "type": "object" } } } }, "403": { "content": {} } } } }, "/api/v1/github/installations/{installation_id}/repos/refresh": { "post": { "operationId": "installations/repo-refresh", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "id": { "type": "string" } }, "required": [ "id" ], "type": "object" } } } }, "403": { "content": {} } } } }, "/api/v1/github/installations/{installation_id}/repos/{repo_id}": { "delete": { "operationId": "installations/delete-repo", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "repo_id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object" } } } }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/error-response" } } } }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/error-response" } } } }, "403": { "content": {} } } } }, "/api/v1/github/installations/{installation_id}/work-manifests": { "get": { "operationId": "installations/list-work-manifests", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "items": { "type": "string" }, "type": "array" } }, { "in": "query", "name": "q", "required": false, "schema": { "type": "string" } }, { "in": "query", "name": "d", "required": false, "schema": { "enum": [ "asc", "desc" ], "type": "string" } }, { "in": "query", "name": "tz", "required": false, "schema": { "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "work_manifests": { "items": { "$ref": "#/components/schemas/installation-work-manifest" }, "type": "array" } }, "required": [ "work_manifests" ], "type": "object" } } } }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/bad-request-err" } } } }, "403": { "content": {} } } } }, "/api/v1/github/installations/{installation_id}/work-manifests/{work_manifest_id}": { "get": { "operationId": "installations/get-work-manifest", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "work_manifest_id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/installation-work-manifest" } } } }, "403": { "content": {} }, "404": { "content": {} } } } }, "/api/v1/github/installations/{installation_id}/work-manifests/{work_manifest_id}/outputs": { "get": { "operationId": "installations/get-work-manifest-outputs", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "work_manifest_id", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "q", "required": false, "schema": { "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "items": { "type": "string" }, "type": "array" } }, { "in": "query", "name": "tz", "required": false, "schema": { "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "integer" } }, { "in": "query", "name": "lite", "required": false, "schema": { "default": false, "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "steps": { "items": { "$ref": "#/components/schemas/installation-workflow-step-output" }, "type": "array" } }, "required": [ "steps" ], "type": "object" } } } }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/bad-request-err" } } } }, "403": { "content": {} }, "404": { "content": {} } } } }, "/api/v1/github/whoami": { "get": { "operationId": "github-user/whoami", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github-user" } } } }, "403": { "content": {} } } } }, "/api/v1/gitlab/groups": { "get": { "operationId": "gitlab-groups/list", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/gitlab-group" }, "type": "array" } } } } } } }, "/api/v1/gitlab/groups/{id}/is-member": { "get": { "operationId": "gitlab-groups/is-member", "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "result": { "type": "boolean" } }, "required": [ "result" ], "type": "object" } } } } } } }, "/api/v1/gitlab/installations": { "get": { "operationId": "gitlab-installations/list", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "installations": { "items": { "$ref": "#/components/schemas/installation" }, "type": "array" } }, "required": [ "installations" ], "type": "object" } } } }, "403": { "content": {} } } } }, "/api/v1/gitlab/installations/{id}/webhook": { "get": { "operationId": "gitlab-installations/get-webhook", "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/gitlab-webhook" } } } } } } }, "/api/v1/gitlab/installations/{installation_id}/access-token": { "put": { "operationId": "gitlab-installations/create-access-token", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/gitlab-access-token" } } }, "required": true }, "responses": { "200": { "content": {} }, "403": { "content": {} } } } }, "/api/v1/gitlab/installations/{installation_id}/dirspaces": { "get": { "operationId": "gitlab-installations/list-dirspaces", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "items": { "type": "string" }, "type": "array" } }, { "in": "query", "name": "q", "required": false, "schema": { "type": "string" } }, { "in": "query", "name": "d", "required": false, "schema": { "enum": [ "asc", "desc" ], "type": "string" } }, { "in": "query", "name": "tz", "required": false, "schema": { "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "dirspaces": { "items": { "$ref": "#/components/schemas/installation-dirspace" }, "type": "array" } }, "required": [ "dirspaces" ], "type": "object" } } } }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/bad-request-err" } } } }, "403": { "content": {} } } } }, "/api/v1/gitlab/installations/{installation_id}/repos": { "get": { "operationId": "gitlab-installations/list-repos", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "items": { "type": "string" }, "type": "array" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "repositories": { "items": { "$ref": "#/components/schemas/installation-repo" }, "type": "array" } }, "required": [ "repositories" ], "type": "object" } } } }, "403": { "content": {} } } } }, "/api/v1/gitlab/installations/{installation_id}/repos/{repo_id}": { "delete": { "operationId": "gitlab-installations/delete-repo", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "repo_id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object" } } } }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/error-response" } } } }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/error-response" } } } }, "403": { "content": {} } } } }, "/api/v1/gitlab/installations/{installation_id}/work-manifests": { "get": { "operationId": "gitlab-installations/list-work-manifests", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "items": { "type": "string" }, "type": "array" } }, { "in": "query", "name": "q", "required": false, "schema": { "type": "string" } }, { "in": "query", "name": "d", "required": false, "schema": { "enum": [ "asc", "desc" ], "type": "string" } }, { "in": "query", "name": "tz", "required": false, "schema": { "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "work_manifests": { "items": { "$ref": "#/components/schemas/installation-work-manifest" }, "type": "array" } }, "required": [ "work_manifests" ], "type": "object" } } } }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/bad-request-err" } } } }, "403": { "content": {} } } } }, "/api/v1/gitlab/installations/{installation_id}/work-manifests/{work_manifest_id}": { "get": { "operationId": "gitlab-installations/get-work-manifest", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "work_manifest_id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/installation-work-manifest" } } } }, "403": { "content": {} }, "404": { "content": {} } } } }, "/api/v1/gitlab/installations/{installation_id}/work-manifests/{work_manifest_id}/outputs": { "get": { "operationId": "gitlab-installations/get-work-manifest-outputs", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "work_manifest_id", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "q", "required": false, "schema": { "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "items": { "type": "string" }, "type": "array" } }, { "in": "query", "name": "tz", "required": false, "schema": { "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "integer" } }, { "in": "query", "name": "lite", "required": false, "schema": { "default": false, "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "steps": { "items": { "$ref": "#/components/schemas/installation-workflow-step-output" }, "type": "array" } }, "required": [ "steps" ], "type": "object" } } } }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/bad-request-err" } } } }, "403": { "content": {} }, "404": { "content": {} } } } }, "/api/v1/gitlab/whoami": { "get": { "operationId": "gitlab-user/whoami", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/gitlab-user" } } } }, "403": { "content": {} } } } }, "/api/v1/gitlab/whoareyou": { "get": { "operationId": "gitlab-user/whoareyou", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/gitlab-whoareyou" } } } } } } }, "/api/v1/logout": { "post": { "operationId": "user/logout", "parameters": [], "responses": { "200": { "content": {} }, "403": { "content": {} } } } }, "/api/v1/server/config": { "get": { "operationId": "server/config", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/server-config" } } } } } } }, "/api/v1/tasks/{id}": { "get": { "operationId": "tasks/get", "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/task" } } } }, "403": { "content": {} } } } }, "/api/v1/user/github/installations": { "get": { "operationId": "user/list-github-installations", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "installations": { "items": { "$ref": "#/components/schemas/installation" }, "type": "array" } }, "required": [ "installations" ], "type": "object" } } } }, "403": { "content": {} } } } }, "/api/v1/whoami": { "get": { "operationId": "user/whoami", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/user" } } } }, "403": { "content": {} } } } }, "/api/v1/{vcs}/access-token": { "delete": { "operationId": "access-token/delete", "parameters": [ { "in": "path", "name": "vcs", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": {}, "403": {}, "404": {} } }, "get": { "operationId": "access-token/list", "parameters": [ { "in": "path", "name": "vcs", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "integer" } }, { "in": "query", "name": "page", "required": false, "schema": { "items": { "type": "string" }, "type": "array" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/access-token-page" } } } }, "403": {} } }, "post": { "operationId": "access-token/create", "parameters": [ { "in": "path", "name": "vcs", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/access-token-create" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/access-token" } } } }, "400": {}, "403": {} } } }, "/api/v1/{vcs}/installations/{installation_id}/repos/{repo_id}/prs/{pull_request_id}/stacks": { "get": { "operationId": "installations/get-pull-requests-stack", "parameters": [ { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "vcs", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "repo_id", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "pull_request_id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/stacks" } } } }, "403": {} } } }, "/api/v1/{vcs}/kv/{installation_id}/cas/key/{key}": { "put": { "operationId": "kv/cas", "parameters": [ { "in": "path", "name": "vcs", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "key", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/kv-cas" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/kv-record" } } } }, "400": {}, "403": {} } } }, "/api/v1/{vcs}/kv/{installation_id}/commit": { "post": { "operationId": "kv/commit", "parameters": [ { "in": "path", "name": "vcs", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/kv-commit" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/kv-commit-result" } } } }, "403": {} } } }, "/api/v1/{vcs}/kv/{installation_id}/count/key/{key}": { "get": { "operationId": "kv/count", "parameters": [ { "in": "path", "name": "vcs", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "key", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "committed", "schema": { "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/kv-count" } } } }, "403": {}, "404": {} } } }, "/api/v1/{vcs}/kv/{installation_id}/iter/{key}": { "get": { "operationId": "kv/iter", "parameters": [ { "in": "path", "name": "vcs", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "key", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "committed", "schema": { "type": "boolean" } }, { "in": "query", "name": "idx", "schema": { "type": "integer" } }, { "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "in": "query", "name": "include_data", "schema": { "type": "boolean" } }, { "in": "query", "name": "inclusive", "schema": { "type": "boolean" } }, { "in": "query", "name": "prefix", "schema": { "type": "boolean" } }, { "in": "query", "name": "select", "schema": { "items": { "type": "string" }, "type": "array" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/kv-record-list" } } } }, "403": {} } } }, "/api/v1/{vcs}/kv/{installation_id}/key/{key}": { "delete": { "operationId": "kv/delete", "parameters": [ { "in": "path", "name": "vcs", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "key", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "idx", "schema": { "type": "integer" } }, { "in": "query", "name": "version", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/kv-delete" } } } }, "403": {} } }, "get": { "operationId": "kv/get", "parameters": [ { "in": "path", "name": "vcs", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "key", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "committed", "schema": { "type": "boolean" } }, { "in": "query", "name": "idx", "schema": { "type": "integer" } }, { "in": "query", "name": "select", "schema": { "items": { "type": "string" }, "type": "array" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/kv-record" } } } }, "403": {}, "404": {} } }, "put": { "operationId": "kv/set", "parameters": [ { "in": "path", "name": "vcs", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "key", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/kv-set" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/kv-record" } } } }, "403": {} } } }, "/api/v1/{vcs}/kv/{installation_id}/size/key/{key}": { "get": { "operationId": "kv/size", "parameters": [ { "in": "path", "name": "vcs", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "installation_id", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "key", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "committed", "schema": { "type": "boolean" } }, { "in": "query", "name": "idx", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/kv-size" } } } }, "403": {}, "404": {} } } } } }