ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

netlify_openapi_swagger.json · Lines 19501–21000

Source identity, revision, and recovered contents.

archive memberSource text recovered

A continuation of netlify_openapi_swagger.json. The complete source identity, every recorded occurrence, and linked equations are on its first page.

Source transcript · continued

Download complete source text ↓24,715 lines · 705.9 KB
"parameters": [ { "name": "site_id", "type": "string", "in": "path", "required": true }, { "name": "name", "type": "string", "in": "path", "required": true, "description": "The migration name" } ], "get": { "operationId": "getSiteDatabaseMigration", "tags": [ "database" ], "description": "Returns the contents of a named migration for the specified branch.", "parameters": [ { "name": "branch", "type": "string", "in": "query", "description": "The branch ID to look up the migration on. Defaults to the currently published deploy's branch." } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "description": "A migration with its file contents", "properties": { "version": { "type": "integer", "format": "int64", "description": "The migration version number" }, "name": { "type": "string", "description": "The migration name" }, "path": { "type": "string", "description": "The path to the migration file in the deploy bundle" }, "content": { "type": "string", "description": "The raw contents of the migration file" } } } }, "404": { "description": "Migration, database, or branch not found" }, "423": { "description": "Database is disabled" }, "default": { "description": "error", "schema": { "type": "object", "required": [ "message" ], "properties": { "code": { "type": "integer", "format": "int64" }, "message": { "type": "string", "x-nullable": false } } } } } } }, "/sites/{site_id}/database/migrations/{deploy_id}": { "parameters": [ { "name": "site_id", "type": "string", "in": "path", "required": true }, { "name": "deploy_id", "type": "string", "in": "path", "required": true, "description": "The deploy ID to run migrations for" } ], "post": { "operationId": "runSiteDatabaseMigrations", "tags": [ "database" ], "description": "Runs database migrations for the specified deploy. Finds the deploy and determines the appropriate branch.", "consumes": [ "application/json" ], "parameters": [ { "name": "migrations", "in": "body", "schema": { "type": "object", "description": "Request body for running database migrations", "properties": { "dry_run": { "type": "boolean", "description": "If true, validates migrations without applying them." } } } } ], "responses": { "200": { "description": "OK" }, "409": { "description": "Migration conflict - migration modified or removed after being applied" }, "422": { "description": "Migration validation failed" }, "default": { "description": "error", "schema": { "type": "object", "required": [ "message" ], "properties": { "code": { "type": "integer", "format": "int64" }, "message": { "type": "string", "x-nullable": false } } } } } } }, "/sites/{site_id}/database/snapshot": { "parameters": [ { "name": "site_id", "type": "string", "in": "path", "required": true } ], "post": { "operationId": "createSiteDatabaseSnapshot", "tags": [ "database" ], "description": "Creates a point-in-time snapshot of a database branch. Defaults to the production branch if no branch name is specified.", "consumes": [ "application/json" ], "parameters": [ { "name": "snapshot", "in": "body", "schema": { "type": "object", "description": "Request body for creating a database snapshot", "properties": { "branch_id": { "type": "string", "description": "The ID of the branch to snapshot. Defaults to \"production\" if not specified." }, "name": { "type": "string", "description": "A name for the snapshot" }, "metadata": { "type": "object", "description": "Metadata associated with a snapshot", "properties": { "deploy": { "type": "object", "description": "Deploy information associated with the snapshot", "additionalProperties": true }, "source": { "type": "string", "description": "The source that created the snapshot" } } } } } } ], "responses": { "201": { "description": "Created", "schema": { "type": "object", "description": "A point-in-time snapshot of a database branch", "properties": { "id": { "type": "string", "description": "The unique identifier of the snapshot" }, "source_branch_id": { "type": "string", "description": "The ID of the branch that was snapshotted" }, "manual": { "type": "boolean", "description": "Whether this snapshot was manually created" }, "created_at": { "type": "string", "format": "dateTime", "description": "When the snapshot was created" }, "expires_at": { "type": "string", "format": "dateTime", "description": "When the snapshot expires" }, "timestamp": { "type": "string", "format": "dateTime", "description": "The point-in-time timestamp of the snapshot" }, "metadata": { "type": "object", "description": "Metadata associated with a snapshot", "properties": { "deploy": { "type": "object", "description": "Deploy information associated with the snapshot", "additionalProperties": true }, "source": { "type": "string", "description": "The source that created the snapshot" } } } } } }, "default": { "description": "error", "schema": { "type": "object", "required": [ "message" ], "properties": { "code": { "type": "integer", "format": "int64" }, "message": { "type": "string", "x-nullable": false } } } } } } }, "/sites/{site_id}/database/snapshots": { "parameters": [ { "name": "site_id", "type": "string", "in": "path", "required": true } ], "get": { "operationId": "listSiteDatabaseSnapshots", "tags": [ "database" ], "description": "Returns all snapshots for the site's database.", "responses": { "200": { "description": "OK", "schema": { "type": "object", "description": "Response containing a list of database snapshots", "properties": { "snapshots": { "type": "array", "items": { "type": "object", "description": "A point-in-time snapshot of a database branch", "properties": { "id": { "type": "string", "description": "The unique identifier of the snapshot" }, "source_branch_id": { "type": "string", "description": "The ID of the branch that was snapshotted" }, "manual": { "type": "boolean", "description": "Whether this snapshot was manually created" }, "created_at": { "type": "string", "format": "dateTime", "description": "When the snapshot was created" }, "expires_at": { "type": "string", "format": "dateTime", "description": "When the snapshot expires" }, "timestamp": { "type": "string", "format": "dateTime", "description": "The point-in-time timestamp of the snapshot" }, "metadata": { "type": "object", "description": "Metadata associated with a snapshot", "properties": { "deploy": { "type": "object", "description": "Deploy information associated with the snapshot", "additionalProperties": true }, "source": { "type": "string", "description": "The source that created the snapshot" } } } } }, "description": "List of database snapshots" } } } }, "default": { "description": "error", "schema": { "type": "object", "required": [ "message" ], "properties": { "code": { "type": "integer", "format": "int64" }, "message": { "type": "string", "x-nullable": false } } } } } } }, "/sites/{site_id}/database/snapshot/{snapshot_id}": { "parameters": [ { "name": "site_id", "type": "string", "in": "path", "required": true }, { "name": "snapshot_id", "type": "string", "in": "path", "required": true, "description": "The snapshot ID" } ], "delete": { "operationId": "deleteSiteDatabaseSnapshot", "tags": [ "database" ], "description": "Deletes a database snapshot.", "responses": { "204": { "description": "Deleted" }, "default": { "description": "error", "schema": { "type": "object", "required": [ "message" ], "properties": { "code": { "type": "integer", "format": "int64" }, "message": { "type": "string", "x-nullable": false } } } } } } }, "/sites/{site_id}/database/snapshot/{snapshot_id}/restore": { "parameters": [ { "name": "site_id", "type": "string", "in": "path", "required": true }, { "name": "snapshot_id", "type": "string", "in": "path", "required": true, "description": "The snapshot ID to restore" } ], "post": { "operationId": "restoreSiteDatabaseSnapshot", "tags": [ "database" ], "description": "Restores a snapshot to a database branch. Defaults to the production branch if no branch_name is specified.", "consumes": [ "application/json" ], "parameters": [ { "name": "restore", "in": "body", "schema": { "type": "object", "description": "Request body for restoring a database snapshot", "properties": { "branch_id": { "type": "string", "description": "The ID of the branch to restore the snapshot to. Defaults to \"production\" if not specified." } } } } ], "responses": { "200": { "description": "OK" }, "default": { "description": "error", "schema": { "type": "object", "required": [ "message" ], "properties": { "code": { "type": "integer", "format": "int64" }, "message": { "type": "string", "x-nullable": false } } } } } } } }, "definitions": { "createDatabaseRequest": { "type": "object", "description": "Request body for creating a database", "properties": { "region": { "type": "string", "description": "The region where the database should be created. Defaults to the site's functions region if not specified." } } }, "databaseResponse": { "type": "object", "description": "Response containing the database connection string", "properties": { "connection_string": { "type": "string", "description": "The connection string for the database" } } }, "createDatabaseBranchRequest": { "type": "object", "description": "Request body for creating a database branch", "required": [ "branch_id" ], "properties": { "parent_branch_id": { "type": "string", "description": "The ID of the parent branch to create the new branch from. Defaults to the production branch if not specified." }, "branch_id": { "type": "string", "description": "The branch identifier" }, "metadata": { "type": "object", "description": "Arbitrary metadata to associate with the branch", "additionalProperties": true } } }, "databaseBranchResponse": { "type": "object", "description": "Response containing the database branch connection string", "properties": { "connection_string": { "type": "string", "description": "The connection string for the database branch" }, "metadata": { "type": "object", "description": "Metadata associated with the branch", "additionalProperties": true } } }, "databaseBranchesResponse": { "type": "object", "description": "Response containing a list of database branches", "properties": { "branches": { "type": "array", "items": { "type": "object", "description": "Detailed information about a database branch", "properties": { "branch_id": { "type": "string", "description": "The branch identifier" }, "name": { "type": "string", "description": "The branch name" }, "connection_string": { "type": "string", "description": "The connection string for the branch" }, "state": { "type": "string", "description": "The current state of the branch", "enum": [ "init", "creating", "resetting", "ready", "archived" ] }, "logical_size_bytes": { "type": "integer", "format": "int64", "description": "The logical size of the branch in bytes" }, "created_at": { "type": "string", "format": "dateTime", "description": "When the branch was created" }, "updated_at": { "type": "string", "format": "dateTime", "description": "When the branch was last updated" }, "last_active_at": { "type": "string", "format": "dateTime", "description": "When the branch was last active" }, "compute": { "type": "object", "description": "Compute endpoint status for a branch", "properties": { "current_state": { "type": "string", "description": "The current state of the compute endpoint", "enum": [ "active", "idle" ] }, "autoscaling_limit_min_cu": { "type": "number", "format": "double", "description": "Minimum compute units for autoscaling" }, "autoscaling_limit_max_cu": { "type": "number", "format": "double", "description": "Maximum compute units for autoscaling" }, "suspend_timeout_seconds": { "type": "integer", "format": "int64", "description": "Seconds of inactivity before the compute endpoint is suspended" }, "last_active": { "type": "string", "format": "dateTime", "description": "When the compute endpoint was last active" } } }, "metadata": { "type": "object", "description": "Metadata associated with the branch", "additionalProperties": true } } }, "description": "List of database branches" } } }, "databaseBranchDetail": { "type": "object", "description": "Detailed information about a database branch", "properties": { "branch_id": { "type": "string", "description": "The branch identifier" }, "name": { "type": "string", "description": "The branch name" }, "connection_string": { "type": "string", "description": "The connection string for the branch" }, "state": { "type": "string", "description": "The current state of the branch", "enum": [ "init", "creating", "resetting", "ready", "archived" ] }, "logical_size_bytes": { "type": "integer", "format": "int64", "description": "The logical size of the branch in bytes" }, "created_at": { "type": "string", "format": "dateTime", "description": "When the branch was created" }, "updated_at": { "type": "string", "format": "dateTime", "description": "When the branch was last updated" }, "last_active_at": { "type": "string", "format": "dateTime", "description": "When the branch was last active" }, "compute": { "type": "object", "description": "Compute endpoint status for a branch", "properties": { "current_state": { "type": "string", "description": "The current state of the compute endpoint", "enum": [ "active", "idle" ] }, "autoscaling_limit_min_cu": { "type": "number", "format": "double", "description": "Minimum compute units for autoscaling" }, "autoscaling_limit_max_cu": { "type": "number", "format": "double", "description": "Maximum compute units for autoscaling" }, "suspend_timeout_seconds": { "type": "integer", "format": "int64", "description": "Seconds of inactivity before the compute endpoint is suspended" }, "last_active": { "type": "string", "format": "dateTime", "description": "When the compute endpoint was last active" } } }, "metadata": { "type": "object", "description": "Metadata associated with the branch", "additionalProperties": true } } }, "databaseBranchCompute": { "type": "object", "description": "Compute endpoint status for a branch", "properties": { "current_state": { "type": "string", "description": "The current state of the compute endpoint", "enum": [ "active", "idle" ] }, "autoscaling_limit_min_cu": { "type": "number", "format": "double", "description": "Minimum compute units for autoscaling" }, "autoscaling_limit_max_cu": { "type": "number", "format": "double", "description": "Maximum compute units for autoscaling" }, "suspend_timeout_seconds": { "type": "integer", "format": "int64", "description": "Seconds of inactivity before the compute endpoint is suspended" }, "last_active": { "type": "string", "format": "dateTime", "description": "When the compute endpoint was last active" } } }, "createDatabaseSnapshotRequest": { "type": "object", "description": "Request body for creating a database snapshot", "properties": { "branch_id": { "type": "string", "description": "The ID of the branch to snapshot. Defaults to \"production\" if not specified." }, "name": { "type": "string", "description": "A name for the snapshot" }, "metadata": { "type": "object", "description": "Metadata associated with a snapshot", "properties": { "deploy": { "type": "object", "description": "Deploy information associated with the snapshot", "additionalProperties": true }, "source": { "type": "string", "description": "The source that created the snapshot" } } } } }, "databaseSnapshot": { "type": "object", "description": "A point-in-time snapshot of a database branch", "properties": { "id": { "type": "string", "description": "The unique identifier of the snapshot" }, "source_branch_id": { "type": "string", "description": "The ID of the branch that was snapshotted" }, "manual": { "type": "boolean", "description": "Whether this snapshot was manually created" }, "created_at": { "type": "string", "format": "dateTime", "description": "When the snapshot was created" }, "expires_at": { "type": "string", "format": "dateTime", "description": "When the snapshot expires" }, "timestamp": { "type": "string", "format": "dateTime", "description": "The point-in-time timestamp of the snapshot" }, "metadata": { "type": "object", "description": "Metadata associated with a snapshot", "properties": { "deploy": { "type": "object", "description": "Deploy information associated with the snapshot", "additionalProperties": true }, "source": { "type": "string", "description": "The source that created the snapshot" } } } } }, "databaseSnapshotMetadata": { "type": "object", "description": "Metadata associated with a snapshot", "properties": { "deploy": { "type": "object", "description": "Deploy information associated with the snapshot", "additionalProperties": true }, "source": { "type": "string", "description": "The source that created the snapshot" } } }, "databaseSnapshotsResponse": { "type": "object", "description": "Response containing a list of database snapshots", "properties": { "snapshots": { "type": "array", "items": { "type": "object", "description": "A point-in-time snapshot of a database branch", "properties": { "id": { "type": "string", "description": "The unique identifier of the snapshot" }, "source_branch_id": { "type": "string", "description": "The ID of the branch that was snapshotted" }, "manual": { "type": "boolean", "description": "Whether this snapshot was manually created" }, "created_at": { "type": "string", "format": "dateTime", "description": "When the snapshot was created" }, "expires_at": { "type": "string", "format": "dateTime", "description": "When the snapshot expires" }, "timestamp": { "type": "string", "format": "dateTime", "description": "The point-in-time timestamp of the snapshot" }, "metadata": { "type": "object", "description": "Metadata associated with a snapshot", "properties": { "deploy": { "type": "object", "description": "Deploy information associated with the snapshot", "additionalProperties": true }, "source": { "type": "string", "description": "The source that created the snapshot" } } } } }, "description": "List of database snapshots" } } }, "restoreDatabaseSnapshotRequest": { "type": "object", "description": "Request body for restoring a database snapshot", "properties": { "branch_id": { "type": "string", "description": "The ID of the branch to restore the snapshot to. Defaults to \"production\" if not specified." } } }, "databaseComputeSettingsRequest": { "type": "object", "description": "Request body for setting compute settings. All fields are optional; only provided fields are updated.", "properties": { "min_cu": { "type": "number", "format": "double", "minimum": 0.25, "maximum": 16, "x-nullable": true, "description": "Minimum compute units (0.25 to 16.0). Must be less than or equal to max_cu." }, "max_cu": { "type": "number", "format": "double", "minimum": 0.25, "maximum": 16, "x-nullable": true, "description": "Maximum compute units (0.25 to 16.0). Must be greater than or equal to min_cu. max_cu - min_cu must not exceed 8.0." }, "sleep_timeout_seconds": { "type": "integer", "format": "int64", "minimum": -1, "x-nullable": true, "description": "Seconds of inactivity before the compute endpoint is suspended. Use -1 for always on, or a non-negative value." } } }, "databaseComputeSettings": { "type": "object", "description": "Compute settings for a database or branch", "properties": { "min_cu": { "type": "number", "format": "double", "description": "Minimum compute units" }, "max_cu": { "type": "number", "format": "double", "description": "Maximum compute units" }, "sleep_timeout_seconds": { "type": "integer", "format": "int64", "description": "Seconds of inactivity before suspension" } } }, "runDatabaseMigrationsRequest": { "type": "object", "description": "Request body for running database migrations", "properties": { "dry_run": { "type": "boolean", "description": "If true, validates migrations without applying them." } } }, "resetDatabaseBranchRequest": { "type": "object", "description": "Request body for resetting a database branch", "properties": { "source_branch_id": { "type": "string", "description": "The ID of the branch to re-fork the target branch from. Defaults to \"production\" if not specified." } } }, "resetDatabaseBranchResponse": { "type": "object", "description": "Response for a database branch reset", "properties": { "reset": { "type": "boolean", "description": "Whether the branch was actually re-forked. False when the target was already in sync with the source and `force=true` was not set." }, "connection_string": { "type": "string", "description": "The connection string for the reset (or unchanged) branch" }, "metadata": { "type": "object", "description": "Metadata associated with the branch", "additionalProperties": true } } }, "listDatabaseMigrationsResponse": { "type": "object", "description": "Response containing the list of migrations for a branch", "properties": { "migrations": { "type": "array", "items": { "type": "object", "description": "A migration available to a database branch", "properties": { "version": { "type": "integer", "format": "int64", "description": "The migration version number" }, "name": { "type": "string", "description": "The migration name" }, "path": { "type": "string", "description": "The path to the migration file in the deploy bundle" }, "applied": { "type": "boolean", "description": "Whether this migration has been applied to the branch" } } }, "description": "List of migrations" } } }, "databaseMigration": { "type": "object", "description": "A migration available to a database branch", "properties": { "version": { "type": "integer", "format": "int64", "description": "The migration version number" }, "name": { "type": "string", "description": "The migration name" }, "path": { "type": "string", "description": "The path to the migration file in the deploy bundle" }, "applied": { "type": "boolean", "description": "Whether this migration has been applied to the branch" } } }, "databaseMigrationDetail": { "type": "object", "description": "A migration with its file contents", "properties": { "version": { "type": "integer", "format": "int64", "description": "The migration version number" }, "name": { "type": "string", "description": "The migration name" }, "path": { "type": "string", "description": "The path to the migration file in the deploy bundle" }, "content": { "type": "string", "description": "The raw contents of the migration file" } } }, "DeployValidationsReport": { "type": "object", "properties": { "id": { "type": "string", "description": "The id of the deploy validations report" }, "deploy_id": { "type": "string", "description": "The id of the deploy" }, "secret_scan_result": { "type": "object", "properties": { "scannedFilesCount": { "type": "integer", "description": "The number of files scanned" }, "secretsScanMatches": { "type": "array", "items": { "type": "string" }, "description": "The list of secrets scan matches" } } } } }, "DeployValidationsReport_SecretScanResult": { "type": "object", "properties": { "scannedFilesCount": { "type": "integer", "description": "The number of files scanned" }, "secretsScanMatches": { "type": "array", "items": { "type": "string" }, "description": "The list of secrets scan matches" } } }, "splitTestSetup": { "type": "object", "properties": { "branch_tests": { "type": "object" } } }, "splitTests": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "site_id": { "type": "string" }, "name": { "type": "string" }, "path": { "type": "string" }, "branches": { "type": "array", "items": { "type": "object" } }, "active": { "type": "boolean" }, "created_at": { "type": "string", "format": "dateTime" }, "updated_at": { "type": "string", "format": "dateTime" }, "unpublished_at": { "type": "string", "format": "dateTime" } } } }, "splitTest": { "type": "object", "properties": { "id": { "type": "string" }, "site_id": { "type": "string" }, "name": { "type": "string" }, "path": { "type": "string" }, "branches": { "type": "array", "items": { "type": "object" } }, "active": { "type": "boolean" }, "created_at": { "type": "string", "format": "dateTime" }, "updated_at": { "type": "string", "format": "dateTime" }, "unpublished_at": { "type": "string", "format": "dateTime" } } }, "serviceInstance": { "type": "object", "properties": { "id": { "type": "string" }, "url": { "type": "string" }, "config": { "type": "object" }, "external_attributes": { "type": "object" }, "service_slug": { "type": "string" }, "service_path": { "type": "string" }, "service_name": { "type": "string" }, "env": { "type": "object" }, "snippets": { "type": "array", "items": { "type": "object" } }, "auth_url": { "type": "string" }, "created_at": { "type": "string", "format": "dateTime" }, "updated_at": { "type": "string", "format": "dateTime" } } }, "service": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "slug": { "type": "string" }, "service_path": { "type": "string" }, "long_description": { "type": "string" }, "description": { "type": "string" }, "events": { "type": "array", "items": { "type": "object" } }, "tags": { "type": "array", "items": { "type": "string" } }, "icon": { "type": "string" }, "manifest_url": { "type": "string" }, "environments": { "type": "array", "items": { "type": "string" } }, "created_at": { "type": "string", "format": "dateTime" }, "updated_at": { "type": "string", "format": "dateTime" } } }, "site": { "type": "object", "properties": { "id": { "type": "string" }, "state": { "type": "string" }, "plan": { "type": "string" }, "name": { "type": "string" }, "custom_domain": { "type": "string" }, "domain_aliases": { "type": "array", "items": { "type": "string" } }, "branch_deploy_custom_domain": { "type": "string" }, "deploy_preview_custom_domain": { "type": "string" }, "password": { "type": "string" }, "notification_email": { "type": "string" }, "url": { "type": "string" }, "ssl_url": { "type": "string" }, "admin_url": { "type": "string" }, "screenshot_url": { "type": "string" }, "created_at": { "type": "string", "format": "dateTime" }, "updated_at": { "type": "string", "format": "dateTime" }, "user_id": { "type": "string" }, "session_id": { "type": "string" }, "ssl": { "type": "boolean" }, "force_ssl": { "type": "boolean" }, "managed_dns": { "type": "boolean" }, "deploy_url": { "type": "string" }, "published_deploy": { "type": "object", "properties": { "id": { "type": "string" }, "site_id": { "type": "string" }, "user_id": { "type": "string" }, "build_id": { "type": "string" }, "state": { "type": "string" }, "name": { "type": "string" }, "url": { "type": "string" }, "ssl_url": { "type": "string" }, "admin_url": { "type": "string" }, "deploy_url": { "type": "string" }, "deploy_ssl_url": { "type": "string" }, "screenshot_url": { "type": "string" }, "review_id": { "type": "number" }, "draft": { "type": "boolean" }, "required": { "type": "array", "items": { "type": "string" } }, "required_functions": { "type": "array", "items": { "type": "string" } }, "required_edge_functions": { "type": "array", "items": { "type": "string" }, "description": "An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n" }, "required_server": { "type": "array", "items": { "type": "string" }, "description": "The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n" }, "error_message": { "type": "string" }, "branch": { "type": "string" }, "commit_ref": { "type": "string" }, "commit_url": { "type": "string" }, "skipped": { "type": "boolean" }, "created_at": { "type": "string",

Search equations, builds, manuscript text, and recovered sources.