{"openapi":"3.1.0","info":{"title":"Blackbird API","version":"0.1.0","description":"# Blackbird API\n\nThe Blackbird API lets your applications work with Blackbird's AI orchestration, context, and governance layer around multilingual content. It is organized around two resource areas:\n\n- **Lakes** hold multilingual content and its context. Lake endpoints let you search and retrieve content, units, changes, variants, metadata, strategies, style guides, and termbases. They also support content-processing flows such as leveraging existing translations and committing content from an external application.\n- **Nests** are workspaces for automation. Nest endpoints let you discover apps and their actions/events, manage supported connections, build and operate Birds, inspect Flights and logs, and retrieve notifications.\n\nStart by listing the Lakes and Nests available to your token. Those resource identifiers scope the rest of the API. Every operation in this reference states the permission it requires.\n\n## What you can build\n\nHere are a few common ways to use the API:\n\n- **Monitor automation:** retrieve a Bird's Flights, filter for failed or active runs, inspect Flight logs and the last completed output, and send that information to your observability or incident-management system.\n- **Connect an external content system to a Lake:** search Lake content before processing it, upload source or translated content with **Commit**, and use variants, metadata, style guides, and termbases to retain the context needed for multilingual work.\n- **Reuse translation context:** send content to **Leverage** to retrieve relevant prior translations or translation-memory matches before deciding how to process new content.\n- **Operate workflows programmatically:** discover available app actions and events, manage supported connections, create or update Birds, start a manual Bird, and inspect its execution afterwards.\n- **Maintain language governance:** manage termbases, terminology entries, style guides, variants, strategies, and metadata from a CMS, PIM, TMS, or internal administration tool.\n\n## Authentication and access control\n\nAll `/v1` endpoints require an organization API token in the `Authorization` header:\n\n```http\nAuthorization: Bearer <your-organization-api-token>\n```\n\nCreate and manage tokens in **Organization management** in Blackbird. When creating a token, choose both:\n\n1. The Lakes and Nests the token may access.\n2. The permissions it may use within those resources, such as viewing content, managing assets, managing Birds, triggering Birds, or viewing Flights.\n\nThe API enforces both scopes. Possessing a valid token does not grant access to unselected Lakes/Nests or permissions that were not assigned to it. Use a separate, least-privileged token for each integration and store it as a secret; never expose it in client-side code or commit it to source control.\n\n## Using this reference\n\nThis page is rendered with [Scalar](https://github.com/scalar/scalar), an interactive OpenAPI reference. Scalar lets you browse endpoint documentation, inspect schemas and examples, enter a bearer token, and send test requests from the browser.\n\nScalar is optional. The same machine-readable OpenAPI document is available at `/openapi.json`, so you can generate a client, import it into another API tool, or call the HTTP endpoints directly from your own code. If you use Scalar to make requests, treat the browser session as a privileged API client and use an appropriately scoped token.\n\n## Upcoming endpoints\n\nThe following capabilities are planned for upcoming API iterations:\n\n- Start a Flight with additional input parameters supplied through the API.\n- Work with Libraries and their reusable workflow resources.\n- Manage webhooks, including their lifecycle and configuration.\n\n\n## Building Bird definitions\n\nA Bird is an automation in a Nest. Its editable definition contains one trigger and a directed set of steps. The `Create bird` and `Update bird definition` operations include runnable request examples for the structures below. Use the exact actions, events, connections, input names, and output paths returned by the app-discovery and schema endpoints; the names in these examples are illustrative.\n\nCreating or updating a definition saves a draft by default. Pass `publish=true` to publish in the same request, or use `Publish bird definition` after reviewing the draft. The Bird's `status` describes what is running, while `isPublished` describes whether its latest saved definition is live; an active Bird can therefore have a pending draft.\n\n### Actions and events\n\nAn **event trigger** starts a Flight when an app reports a change. A **manual trigger** starts only when a user or API call flies the Bird. An **action** performs work in an app. Both triggers and actions use a resolved external `name` and a connection ID. Bind a later input to an earlier output with `source: \"step\"`, or use `source: \"custom\"` for a fixed value.\n\n```json\n{\n  \"trigger\": {\n    \"id\": \"content-created\",\n    \"type\": \"webhook\",\n    \"event\": { \"name\": \"Example.App.Events.ContentCreated\" },\n    \"connection\": 12345,\n    \"mode\": \"subscription\",\n    \"next\": \"download-content\"\n  },\n  \"steps\": [\n    {\n      \"id\": \"download-content\",\n      \"type\": \"action\",\n      \"action\": { \"name\": \"Example.App.Actions.DownloadContent\" },\n      \"connection\": 12345,\n      \"inputs\": {\n        \"contentId\": { \"source\": \"step\", \"stepId\": \"content-created\", \"output\": \"content.id\" }\n      },\n      \"next\": null\n    }\n  ]\n}\n```\n\n### Decisions\n\nA **decision** routes the Flight to one branch based on run-time data. Each branch has a comparison and destination step ID; exactly one `otherwise: true` branch is required as the fallback. Keep any work shared by multiple branches outside the decision and route those branches to it.\n\n```json\n{\n  \"id\": \"has-content\",\n  \"type\": \"decision\",\n  \"next\": null,\n  \"branches\": [\n    {\n      \"when\": {\n        \"left\": { \"source\": \"step\", \"stepId\": \"download-content\", \"output\": \"hasContent\" },\n        \"operator\": \"equal\",\n        \"right\": { \"source\": \"custom\", \"value\": true }\n      },\n      \"next\": \"process-content\"\n    },\n    { \"otherwise\": true, \"next\": \"record-skip\" }\n  ]\n}\n```\n\n### Loops\n\nA **loop** processes each item of a list. Its `forEach` must receive a collection. The `body` contains all repeated step IDs; the loop's `next` runs only after all iterations have finished. Use a `loopItem` binding inside the body when an action expects one item rather than the whole collection.\n\n```json\n{\n  \"id\": \"for-each-document\",\n  \"type\": \"loop\",\n  \"forEach\": { \"source\": \"step\", \"stepId\": \"download-content\", \"output\": \"documents\" },\n  \"body\": [\"translate-document\", \"finish-document\"],\n  \"next\": \"notify-complete\"\n}\n```\n\n```json\n{\n  \"id\": \"translate-document\",\n  \"type\": \"action\",\n  \"action\": { \"name\": \"Example.Tms.Actions.TranslateDocument\" },\n  \"connection\": 67890,\n  \"inputs\": {\n    \"document\": { \"source\": \"loopItem\", \"loopId\": \"for-each-document\" }\n  },\n  \"next\": \"finish-document\"\n}\n```\n\n### Checkpoints\n\nA **checkpoint** pauses one Flight. Use `mode: \"delay\"` with a duration for a time-based wait. Use `mode: \"event\"` to wait for an external completion or approval, binding the specific object ID produced earlier whenever the event supports it. Link-mode checkpoints can return webhook payload URLs after create or update; register those URLs in the external app.\n\n```json\n{\n  \"id\": \"wait-for-completion\",\n  \"type\": \"checkpoint\",\n  \"mode\": \"event\",\n  \"event\": { \"name\": \"Example.Tms.Events.ProjectCompleted\" },\n  \"connection\": 67890,\n  \"webhookMode\": \"subscription\",\n  \"inputs\": {\n    \"projectId\": { \"source\": \"step\", \"stepId\": \"create-project\", \"output\": \"project.id\" }\n  },\n  \"next\": \"download-translation\"\n}\n```\n\n### Composable inputs\n\nUse a **composable input** to interpolate values from earlier steps into text. Each `{{ placeholder }}` in `template` must have a same-named entry in `variables`; each entry is an ordinary input binding. This example creates a text variable from two fields returned by the trigger:\n\n```json\n{\n  \"id\": \"compose-translation-text\",\n  \"type\": \"operator\",\n  \"operator\": \"variable.create\",\n  \"inputs\": {\n    \"value\": {\n      \"source\": \"composable\",\n      \"template\": \"The text to translate is: {{ messageText }} and is from {{ channelId }}\",\n      \"variables\": {\n        \"messageText\": {\n          \"source\": \"step\",\n          \"stepId\": \"content-created\",\n          \"output\": \"MessageText\"\n        },\n        \"channelId\": {\n          \"source\": \"step\",\n          \"stepId\": \"content-created\",\n          \"output\": \"ChannelId\"\n        }\n      }\n    }\n  },\n  \"output\": {\n    \"name\": \"translationText\",\n    \"type\": \"string\"\n  },\n  \"next\": \"translate-text\"\n}\n```\n\nThe later action can bind its text field directly to this operator output, or use another composable input when it needs to combine it with more values.\n\n### Operators\n\nAn **operator** is a built-in workflow operation, rather than an app action. Use the exact operator names and input keys in the compact reference below. The full machine-readable catalog remains available in `/openapi.json`.\n\n\n## Operators\n\nSupported operators: `variable.create`, `variable.update`, `array.length`, `string.length`, `string.split`, `arithmetic.add`, `arithmetic.subtract`, `arithmetic.multiply`, `arithmetic.divide`, `arithmetic.mod`, `logical.and`, `logical.or`, `entityLink.set`, `entityLink.get`, `entityLink.getMany`, `convert.single`, `convert.multiple`, `flow.endLoop`, `flow.endFlight`.\n\nFor each operator's exact inputs, outputs, and examples, see `x-operatorCatalog` in `/openapi.json`.\n\n`flow.endLoop` and `flow.endFlight` are unconditional in this API dialect. Use a decision step to make either outcome conditional."},"components":{"securitySchemes":{"API Key":{"type":"http","scheme":"bearer","bearerFormat":"API key","description":"An API key for the organization you want to access."}},"schemas":{},"parameters":{}},"paths":{"/health":{"get":{"tags":["Health"],"summary":"Check API health","x-required-permissions":[],"responses":{"200":{"description":"The API is healthy.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ok"]}},"required":["status"]}}}}},"description":"Permissions required: none."}},"/v1/lakes":{"get":{"tags":["Lakes"],"summary":"List lakes","description":"Lists the Lakes available in the Blacklake installation configured for your organization and that have been configured for this API key.\n\nPermissions required: none.","security":[{"API Key":[]}],"x-required-permissions":[],"responses":{"200":{"description":"The organization lakes.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","createdAt"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lakes/{lakeId}/content":{"get":{"tags":["Content"],"summary":"Search content","description":"Lists content in a lake, with optional search, filters, and cursor pagination.\n\nPermissions required: `lake:content:view`.","security":[{"API Key":[]}],"x-required-permissions":["lake:content:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","description":"Fuzzy searches the content names with this query text"},"required":false,"description":"Fuzzy searches the content names with this query text","name":"searchText","in":"query"},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Repeat this query parameter or provide a comma-separated list to filter by multiple IDs."},"required":false,"description":"Repeat this query parameter or provide a comma-separated list to filter by multiple IDs.","name":"variantIds","in":"query"},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Repeat this query parameter or provide a comma-separated list to filter by multiple IDs."},"required":false,"description":"Repeat this query parameter or provide a comma-separated list to filter by multiple IDs.","name":"systemIds","in":"query"},{"schema":{"type":"integer","minimum":0,"exclusiveMinimum":true},"required":false,"name":"pageSize","in":"query"},{"schema":{"type":"string"},"required":false,"name":"lastId","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"lastCreatedAt","in":"query"},{"schema":{"type":"string","format":"date-time","description":"Only returns content where draft commits have been created since this date. Useful when polling for new draft changes that need to be pushed to the source."},"required":false,"description":"Only returns content where draft commits have been created since this date. Useful when polling for new draft changes that need to be pushed to the source.","name":"draftChangedSince","in":"query"}],"responses":{"200":{"description":"A page of lake content.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"variantId":{"type":"string"},"systemId":{"type":"string","nullable":true},"createdAt":{"type":"string"}},"required":["id","name","variantId","systemId","createdAt"]}},"nextCursor":{"type":"object","properties":{"lastId":{"type":"string"},"lastCreatedAt":{"type":"string"}}}},"required":["items"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lakes/{lakeId}/content/{contentId}":{"get":{"tags":["Content"],"summary":"Get content","description":"Gets a content item from a lake.\n\nPermissions required: `lake:content:view`.","security":[{"API Key":[]}],"x-required-permissions":["lake:content:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"contentId","in":"path"}],"responses":{"200":{"description":"The requested content item.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"externalId":{"type":"string","nullable":true},"adminUrl":{"type":"string","nullable":true},"publicUrl":{"type":"string","nullable":true},"sourceExternalId":{"type":"string","nullable":true},"mediaType":{"type":"string","nullable":true},"variantId":{"type":"string"},"createdAt":{"type":"string","nullable":true,"format":"date-time"},"variant":{"type":"object","properties":{"id":{"type":"string"},"defaultAliasId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}},"required":["id","defaultAliasId","name","description"]},"system":{"type":"object","nullable":true,"properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"reference":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"contentCount":{"type":"number","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","reference","type","createdAt"]},"commit":{"type":"object","properties":{"id":{"type":"string"},"isDraft":{"type":"boolean"},"qualityThreshold":{"type":"number","nullable":true},"qualityFraction":{"type":"number","nullable":true},"translationProvenance":{"type":"object","properties":{"person":{"type":"string","nullable":true},"personReference":{"type":"string","nullable":true},"organization":{"type":"string","nullable":true},"organizationReference":{"type":"string","nullable":true},"tool":{"type":"string","nullable":true},"toolReference":{"type":"string","nullable":true}},"required":["person","personReference","organization","organizationReference","tool","toolReference"]},"reviewProvenance":{"type":"object","properties":{"person":{"type":"string","nullable":true},"personReference":{"type":"string","nullable":true},"organization":{"type":"string","nullable":true},"organizationReference":{"type":"string","nullable":true},"tool":{"type":"string","nullable":true},"toolReference":{"type":"string","nullable":true}},"required":["person","personReference","organization","organizationReference","tool","toolReference"]},"workflow":{"type":"string","nullable":true},"workflowReference":{"type":"string","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","qualityThreshold","qualityFraction","translationProvenance","reviewProvenance","workflow","workflowReference","createdAt"]}},"required":["id","name","externalId","adminUrl","publicUrl","sourceExternalId","mediaType","variantId","createdAt","variant","system","commit"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}},"delete":{"tags":["Content"],"summary":"Delete content","description":"Deletes a content item from a lake.\n\nPermissions required: `lake:content:manage`.","security":[{"API Key":[]}],"x-required-permissions":["lake:content:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"contentId","in":"path"}],"responses":{"204":{"description":"The content item was deleted."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lakes/{lakeId}/content/external/{externalId}/variants/{variantId}":{"get":{"tags":["Content"],"summary":"Get content by external ID","description":"Gets a content item from a lake by its external ID and variant ID.\n\nPermissions required: `lake:content:view`.","security":[{"API Key":[]}],"x-required-permissions":["lake:content:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"externalId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"variantId","in":"path"}],"responses":{"200":{"description":"The requested content item.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"variantId":{"type":"string"},"systemId":{"type":"string","nullable":true},"createdAt":{"type":"string"}},"required":["id","name","variantId","systemId","createdAt"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lakes/{lakeId}/content/{contentId}/siblings":{"get":{"tags":["Content"],"summary":"Get content siblings","description":"Lists the sibling content items for a content item.\n\nPermissions required: `lake:content:view`.","security":[{"API Key":[]}],"x-required-permissions":["lake:content:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"contentId","in":"path"}],"responses":{"200":{"description":"The content siblings.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"variantId":{"type":"string"},"systemId":{"type":"string","nullable":true},"createdAt":{"type":"string"}},"required":["id","name","variantId","systemId","createdAt"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lakes/{lakeId}/content/{contentId}/draft-commit":{"post":{"tags":["Content"],"summary":"Create a content draft commit","description":"Creates draft changes for a content item. Expected change IDs provide optimistic concurrency protection.\n\nPermissions required: `lake:content:manage`.","security":[{"API Key":[]}],"x-required-permissions":["lake:content:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"contentId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"unitId":{"type":"string","format":"uuid"},"text":{"type":"string"},"expectedLatestChangeId":{"type":"string","format":"uuid"},"expectedLastDraftChangeId":{"type":"string","nullable":true,"format":"uuid"},"qualityScore":{"type":"number","nullable":true},"usages":{"type":"array","items":{"type":"object","properties":{"tool":{"type":"string"},"value":{"type":"number"},"unit":{"type":"string"}},"required":["tool","value","unit"]}}}},"minItems":1},"qualityThreshold":{"type":"number","nullable":true},"qualityFraction":{"type":"number","nullable":true},"translationProvenance":{"type":"object","properties":{"person":{"type":"string","nullable":true},"personReference":{"type":"string","nullable":true},"organization":{"type":"string","nullable":true},"organizationReference":{"type":"string","nullable":true},"tool":{"type":"string","nullable":true},"toolReference":{"type":"string","nullable":true}},"required":["person","personReference","organization","organizationReference","tool","toolReference"]},"reviewProvenance":{"type":"object","properties":{"person":{"type":"string","nullable":true},"personReference":{"type":"string","nullable":true},"organization":{"type":"string","nullable":true},"organizationReference":{"type":"string","nullable":true},"tool":{"type":"string","nullable":true},"toolReference":{"type":"string","nullable":true}},"required":["person","personReference","organization","organizationReference","tool","toolReference"]}},"required":["changes"]}}}},"responses":{"200":{"description":"The draft commit was created."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lakes/{lakeId}/content/{contentId}/metadata":{"get":{"tags":["Content","Metadata"],"summary":"Get content metadata","description":"Lists the metadata values for a content item.\n\nPermissions required: `lake:content:view`.","security":[{"API Key":[]}],"x-required-permissions":["lake:content:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"contentId","in":"path"}],"responses":{"200":{"description":"The content metadata values.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"required":["id","name","description","value"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lakes/{lakeId}/metadata":{"get":{"summary":"List metadata fields","description":"Lists the metadata fields configured for a lake.\n\nPermissions required: `lake:content:view`.","security":[{"API Key":[]}],"tags":["Metadata"],"x-required-permissions":["lake:content:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"}],"responses":{"200":{"description":"The lake metadata fields.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["text","number","boolean"]},"name":{"type":"string"},"description":{"type":"string"},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","type","name","description","createdAt"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}},"post":{"summary":"Create metadata field","description":"Creates a metadata field for a lake.\n\nPermissions required: `lake:metadata:manage`.","security":[{"API Key":[]}],"tags":["Metadata"],"x-required-permissions":["lake:metadata:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":4,"maxLength":128},"description":{"type":"string"},"type":{"type":"string","enum":["text","number","boolean"]}},"required":["name","type"]}}}},"responses":{"204":{"description":"The metadata field was created."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lakes/{lakeId}/metadata/{metaFieldId}":{"put":{"summary":"Update metadata field","description":"Updates a metadata field for a lake.\n\nPermissions required: `lake:metadata:manage`.","security":[{"API Key":[]}],"tags":["Metadata"],"x-required-permissions":["lake:metadata:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"metaFieldId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"description":{"type":"string"}}}}}},"responses":{"204":{"description":"The metadata field was updated."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}},"delete":{"summary":"Delete metadata field","description":"Deletes a metadata field from a lake.\n\nPermissions required: `lake:metadata:manage`.","security":[{"API Key":[]}],"tags":["Metadata"],"x-required-permissions":["lake:metadata:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"metaFieldId","in":"path"}],"responses":{"204":{"description":"The metadata field was deleted."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lakes/{lakeId}/content/{contentId}/units":{"get":{"summary":"List content units","description":"Lists the units belonging to a content item.\n\nPermissions required: `lake:content:view`.","tags":["Content","Units"],"security":[{"API Key":[]}],"x-required-permissions":["lake:content:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"contentId","in":"path"},{"schema":{"type":"string","enum":["true","false"],"description":"When true, returns the latest draft change for units that have one."},"required":false,"description":"When true, returns the latest draft change for units that have one.","name":"drafts","in":"query"}],"responses":{"200":{"description":"The content units.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"contentId":{"type":"string"},"latestChangeId":{"type":"string"},"lastDraftChangeId":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"sourceText":{"type":"string","nullable":true},"active":{"type":"boolean"},"renderOrder":{"type":"number"},"reference":{"type":"string","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"},"change":{"type":"object","properties":{"id":{"type":"string"},"unitId":{"type":"string"},"commitId":{"type":"string"},"text":{"type":"string"},"renderedText":{"type":"string"},"plainText":{"type":"string"},"normalizedText":{"type":"string"},"active":{"type":"boolean"},"isDraft":{"type":"boolean"},"qualityScore":{"type":"number","nullable":true},"translationProvenance":{"type":"object","properties":{"person":{"type":"string","nullable":true},"personReference":{"type":"string","nullable":true},"organization":{"type":"string","nullable":true},"organizationReference":{"type":"string","nullable":true},"tool":{"type":"string","nullable":true},"toolReference":{"type":"string","nullable":true}},"required":["person","personReference","organization","organizationReference","tool","toolReference"]},"reviewProvenance":{"type":"object","properties":{"person":{"type":"string","nullable":true},"personReference":{"type":"string","nullable":true},"organization":{"type":"string","nullable":true},"organizationReference":{"type":"string","nullable":true},"tool":{"type":"string","nullable":true},"toolReference":{"type":"string","nullable":true}},"required":["person","personReference","organization","organizationReference","tool","toolReference"]},"usages":{"type":"array","items":{"type":"object","properties":{"tool":{"type":"string"},"value":{"type":"number"},"unit":{"type":"string"}},"required":["tool","value","unit"]}},"editDistance":{"type":"number","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","unitId","commitId","text","renderedText","plainText","normalizedText","active","qualityScore","translationProvenance","reviewProvenance","usages","editDistance","createdAt"]}},"required":["id","contentId","latestChangeId","key","sourceText","active","renderOrder","reference","createdAt","change"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lakes/{lakeId}/units":{"get":{"summary":"Search units","description":"Performs a fuzzy full-text search across all active content in a lake.\n\nPermissions required: `lake:content:view`.","tags":["Units"],"security":[{"API Key":[]}],"x-required-permissions":["lake:content:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"Fuzzy text to search for."},"required":true,"description":"Fuzzy text to search for.","name":"text","in":"query"}],"responses":{"200":{"description":"The matching units.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"contentId":{"type":"string"},"latestChangeId":{"type":"string"},"lastDraftChangeId":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"sourceText":{"type":"string","nullable":true},"active":{"type":"boolean"},"renderOrder":{"type":"number"},"reference":{"type":"string","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","contentId","latestChangeId","key","sourceText","active","renderOrder","reference","createdAt"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lakes/{lakeId}/units/{unitId}/changes":{"get":{"summary":"List unit changes","description":"Lists the changes and commits for a unit.\n\nPermissions required: `lake:content:view`.","tags":["Units"],"security":[{"API Key":[]}],"x-required-permissions":["lake:content:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"unitId","in":"path"}],"responses":{"200":{"description":"The unit changes.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"change":{"type":"object","properties":{"id":{"type":"string"},"unitId":{"type":"string"},"commitId":{"type":"string"},"text":{"type":"string"},"renderedText":{"type":"string"},"plainText":{"type":"string"},"normalizedText":{"type":"string"},"active":{"type":"boolean"},"isDraft":{"type":"boolean"},"qualityScore":{"type":"number","nullable":true},"translationProvenance":{"type":"object","properties":{"person":{"type":"string","nullable":true},"personReference":{"type":"string","nullable":true},"organization":{"type":"string","nullable":true},"organizationReference":{"type":"string","nullable":true},"tool":{"type":"string","nullable":true},"toolReference":{"type":"string","nullable":true}},"required":["person","personReference","organization","organizationReference","tool","toolReference"]},"reviewProvenance":{"type":"object","properties":{"person":{"type":"string","nullable":true},"personReference":{"type":"string","nullable":true},"organization":{"type":"string","nullable":true},"organizationReference":{"type":"string","nullable":true},"tool":{"type":"string","nullable":true},"toolReference":{"type":"string","nullable":true}},"required":["person","personReference","organization","organizationReference","tool","toolReference"]},"usages":{"type":"array","items":{"type":"object","properties":{"tool":{"type":"string"},"value":{"type":"number"},"unit":{"type":"string"}},"required":["tool","value","unit"]}},"editDistance":{"type":"number","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","unitId","commitId","text","renderedText","plainText","normalizedText","active","qualityScore","translationProvenance","reviewProvenance","usages","editDistance","createdAt"]},"commit":{"type":"object","properties":{"id":{"type":"string"},"isDraft":{"type":"boolean"},"qualityThreshold":{"type":"number","nullable":true},"qualityFraction":{"type":"number","nullable":true},"translationProvenance":{"type":"object","properties":{"person":{"type":"string","nullable":true},"personReference":{"type":"string","nullable":true},"organization":{"type":"string","nullable":true},"organizationReference":{"type":"string","nullable":true},"tool":{"type":"string","nullable":true},"toolReference":{"type":"string","nullable":true}},"required":["person","personReference","organization","organizationReference","tool","toolReference"]},"reviewProvenance":{"type":"object","properties":{"person":{"type":"string","nullable":true},"personReference":{"type":"string","nullable":true},"organization":{"type":"string","nullable":true},"organizationReference":{"type":"string","nullable":true},"tool":{"type":"string","nullable":true},"toolReference":{"type":"string","nullable":true}},"required":["person","personReference","organization","organizationReference","tool","toolReference"]},"workflow":{"type":"string","nullable":true},"workflowReference":{"type":"string","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","qualityThreshold","qualityFraction","translationProvenance","reviewProvenance","workflow","workflowReference","createdAt"]}},"required":["change","commit"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lake/{lakeId}/systems":{"get":{"tags":["Systems"],"summary":"List systems","description":"Lists the systems configured for a lake.\n\nPermissions required: `lake:content:view`.","security":[{"API Key":[]}],"x-required-permissions":["lake:content:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"}],"responses":{"200":{"description":"The lake systems.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"reference":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"contentCount":{"type":"number","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","reference","type","createdAt"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lakes/{lakeId}/variants":{"get":{"summary":"List variants","tags":["Variants"],"security":[{"API Key":[]}],"x-required-permissions":["lake:variants:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"}],"responses":{"200":{"description":"The lake variants.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"contentCount":{"type":"number","nullable":true},"defaultCode":{"type":"string"},"allCodes":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","description","defaultCode","allCodes","createdAt"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:variants:view`."},"post":{"summary":"Create variant","tags":["Variants"],"security":[{"API Key":[]}],"x-required-permissions":["lake:variants:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"description":{"type":"string"},"defaultCode":{"type":"string","minLength":2}},"required":["name","defaultCode"]}}}},"responses":{"204":{"description":"The variant was created."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:variants:manage`."}},"/v1/lakes/{lakeId}/variants/{variantId}":{"get":{"summary":"Get variant","tags":["Variants"],"security":[{"API Key":[]}],"x-required-permissions":["lake:variants:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"variantId","in":"path"}],"responses":{"200":{"description":"The requested variant.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"contentCount":{"type":"number","nullable":true},"defaultCode":{"type":"string"},"allCodes":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","description","defaultCode","allCodes","createdAt"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:variants:view`."},"put":{"summary":"Update variant","tags":["Variants"],"security":[{"API Key":[]}],"x-required-permissions":["lake:variants:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"variantId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"204":{"description":"The variant was updated."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:variants:manage`."},"delete":{"summary":"Delete variant","tags":["Variants"],"security":[{"API Key":[]}],"x-required-permissions":["lake:variants:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"variantId","in":"path"}],"responses":{"204":{"description":"The variant was deleted."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:variants:manage`."}},"/v1/lakes/{lakeId}/variants/{variantId}/styleguides":{"get":{"summary":"List variant styleguides","tags":["Variants"],"security":[{"API Key":[]}],"x-required-permissions":["lake:variants:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"variantId","in":"path"}],"responses":{"200":{"description":"The variant styleguides.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"templateLanguage":{"type":"string","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","description","templateLanguage","createdAt"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:variants:view`."},"post":{"summary":"Add variant styleguide","tags":["Variants"],"security":[{"API Key":[]}],"x-required-permissions":["lake:variants:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"variantId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"styleguideId":{"type":"string","format":"uuid"}},"required":["styleguideId"]}}}},"responses":{"204":{"description":"The styleguide was added."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:variants:manage`."}},"/v1/lakes/{lakeId}/variants/{variantId}/aliases":{"put":{"summary":"Add variant alias","tags":["Variants"],"security":[{"API Key":[]}],"x-required-permissions":["lake:variants:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"variantId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":2}},"required":["code"]}}}},"responses":{"204":{"description":"The alias was added."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:variants:manage`."}},"/v1/lakes/{lakeId}/variants/{variantId}/aliases/{code}":{"delete":{"summary":"Delete variant alias","tags":["Variants"],"security":[{"API Key":[]}],"x-required-permissions":["lake:variants:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"variantId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"code","in":"path"}],"responses":{"204":{"description":"The alias was deleted."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:variants:manage`."}},"/v1/lakes/{lakeId}/variants/{variantId}/styleguides/{styleguideId}":{"delete":{"summary":"Delete variant styleguide","tags":["Variants"],"security":[{"API Key":[]}],"x-required-permissions":["lake:variants:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"variantId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"styleguideId","in":"path"}],"responses":{"204":{"description":"The styleguide was removed."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:variants:manage`."}},"/v1/lakes/{lakeId}/strategies":{"get":{"summary":"List strategies","tags":["Strategies"],"security":[{"API Key":[]}],"x-required-permissions":["lake:strategies:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"}],"responses":{"200":{"description":"The lake strategies.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"filters":{"type":"object","properties":{"diff":{"type":"boolean"},"leverage":{"type":"boolean"},"leverageDrafts":{"type":"boolean"},"inactive":{"type":"boolean"},"translatedByPerson":{"type":"boolean"},"reviewedByPerson":{"type":"boolean"},"minimumQualityScore":{"type":"number","nullable":true},"allowedContentSystems":{"type":"array","nullable":true,"items":{"type":"string"}},"notAllowedContentSystems":{"type":"array","nullable":true,"items":{"type":"string"}},"translatedByTools":{"type":"array","nullable":true,"items":{"type":"string"}},"notTranslatedByTools":{"type":"array","nullable":true,"items":{"type":"string"}},"translatedByPersons":{"type":"array","nullable":true,"items":{"type":"string"}},"notTranslatedByPersons":{"type":"array","nullable":true,"items":{"type":"string"}},"createdAfter":{"type":"string","nullable":true,"format":"date-time"},"createdBefore":{"type":"string","nullable":true,"format":"date-time"},"metadataFilters":{"type":"array","nullable":true,"items":{"type":"object","properties":{"metaFieldId":{"type":"string"},"operator":{"type":"string","enum":["<","<=","=","=>",">"]},"value":{"type":"string"}},"required":["metaFieldId","operator","value"]}}},"required":["diff","leverage","leverageDrafts","inactive","translatedByPerson","reviewedByPerson"]},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","description","filters","createdAt"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:strategies:view`."},"post":{"summary":"Create strategy","description":"Creates a strategy with Blacklake default filters. This endpoint accepts only a name and description; retrieve the strategy ID and use the update endpoint to replace its complete filter configuration.\n\nPermissions required: `lake:strategies:manage`.","tags":["Strategies"],"security":[{"API Key":[]}],"x-required-permissions":["lake:strategies:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":4,"maxLength":128},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"204":{"description":"The strategy was created."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lakes/{lakeId}/strategies/{strategyId}":{"get":{"summary":"Get strategy","tags":["Strategies"],"security":[{"API Key":[]}],"x-required-permissions":["lake:strategies:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"strategyId","in":"path"}],"responses":{"200":{"description":"The requested strategy.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"filters":{"type":"object","properties":{"diff":{"type":"boolean"},"leverage":{"type":"boolean"},"leverageDrafts":{"type":"boolean"},"inactive":{"type":"boolean"},"translatedByPerson":{"type":"boolean"},"reviewedByPerson":{"type":"boolean"},"minimumQualityScore":{"type":"number","nullable":true},"allowedContentSystems":{"type":"array","nullable":true,"items":{"type":"string"}},"notAllowedContentSystems":{"type":"array","nullable":true,"items":{"type":"string"}},"translatedByTools":{"type":"array","nullable":true,"items":{"type":"string"}},"notTranslatedByTools":{"type":"array","nullable":true,"items":{"type":"string"}},"translatedByPersons":{"type":"array","nullable":true,"items":{"type":"string"}},"notTranslatedByPersons":{"type":"array","nullable":true,"items":{"type":"string"}},"createdAfter":{"type":"string","nullable":true,"format":"date-time"},"createdBefore":{"type":"string","nullable":true,"format":"date-time"},"metadataFilters":{"type":"array","nullable":true,"items":{"type":"object","properties":{"metaFieldId":{"type":"string"},"operator":{"type":"string","enum":["<","<=","=","=>",">"]},"value":{"type":"string"}},"required":["metaFieldId","operator","value"]}}},"required":["diff","leverage","leverageDrafts","inactive","translatedByPerson","reviewedByPerson"]},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","description","filters","createdAt"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:strategies:view`."},"put":{"summary":"Update strategy","tags":["Strategies"],"security":[{"API Key":[]}],"x-required-permissions":["lake:strategies:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"strategyId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"description":{"type":"string"},"filters":{"type":"object","properties":{"diff":{"type":"boolean"},"leverage":{"type":"boolean"},"leverageDrafts":{"type":"boolean"},"inactive":{"type":"boolean"},"translatedByPerson":{"type":"boolean"},"reviewedByPerson":{"type":"boolean"},"minimumQualityScore":{"type":"number","nullable":true},"allowedContentSystems":{"type":"array","nullable":true,"items":{"type":"string"}},"notAllowedContentSystems":{"type":"array","nullable":true,"items":{"type":"string"}},"translatedByTools":{"type":"array","nullable":true,"items":{"type":"string"}},"notTranslatedByTools":{"type":"array","nullable":true,"items":{"type":"string"}},"translatedByPersons":{"type":"array","nullable":true,"items":{"type":"string"}},"notTranslatedByPersons":{"type":"array","nullable":true,"items":{"type":"string"}},"createdAfter":{"type":"string","nullable":true,"format":"date-time"},"createdBefore":{"type":"string","nullable":true,"format":"date-time"},"metadataFilters":{"type":"array","nullable":true,"items":{"type":"object","properties":{"metaFieldId":{"type":"string"},"operator":{"type":"string","enum":["<","<=","=","=>",">"]},"value":{"type":"string"}},"required":["metaFieldId","operator","value"]}}},"required":["diff","leverage","leverageDrafts","inactive","translatedByPerson","reviewedByPerson"]}},"required":["name","filters"]}}}},"responses":{"204":{"description":"The strategy was updated."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:strategies:manage`."},"delete":{"summary":"Delete strategy","tags":["Strategies"],"security":[{"API Key":[]}],"x-required-permissions":["lake:strategies:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"strategyId","in":"path"}],"responses":{"204":{"description":"The strategy was deleted."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:strategies:manage`."}},"/v1/lakes/{lakeId}/styleguides":{"get":{"summary":"List styleguides","tags":["Styleguides"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"}],"responses":{"200":{"description":"The lake styleguides.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"templateLanguage":{"type":"string","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","description","templateLanguage","createdAt"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:view`."},"post":{"summary":"Create styleguide","tags":["Styleguides"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":4,"maxLength":128},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"204":{"description":"The styleguide was created."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:manage`."}},"/v1/lakes/{lakeId}/styleguides/{styleguideId}":{"get":{"summary":"Get styleguide","tags":["Styleguides"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"styleguideId","in":"path"}],"responses":{"200":{"description":"The requested styleguide.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"templateLanguage":{"type":"string","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","description","templateLanguage","createdAt"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:view`."},"put":{"summary":"Update styleguide","tags":["Styleguides"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:edit"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"styleguideId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"description":{"type":"string"},"templateLanguage":{"type":"string"}}}}}},"responses":{"204":{"description":"The styleguide was updated."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:edit`."},"delete":{"summary":"Delete styleguide","tags":["Styleguides"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"styleguideId","in":"path"}],"responses":{"204":{"description":"The styleguide was deleted."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:manage`."}},"/v1/lakes/{lakeId}/styleguides/{styleguideId}/rules":{"get":{"summary":"List styleguide rules","tags":["Styleguides"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"styleguideId","in":"path"}],"responses":{"200":{"description":"The styleguide rules.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string"},"category":{"type":"string","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","description","category","createdAt"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:view`."},"post":{"summary":"Create styleguide rule","tags":["Styleguides"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:edit"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"styleguideId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string"},"category":{"type":"string"}},"required":["description","category"]}}}},"responses":{"204":{"description":"The rule was created."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:edit`."}},"/v1/lakes/{lakeId}/styleguides/{styleguideId}/rules/{styleruleId}":{"put":{"summary":"Update styleguide rule","tags":["Styleguides"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:edit"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"styleguideId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"styleruleId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string"},"category":{"type":"string"}},"required":["description","category"]}}}},"responses":{"204":{"description":"The rule was updated."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:edit`."},"delete":{"summary":"Delete styleguide rule","tags":["Styleguides"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:edit"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"styleguideId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"styleruleId","in":"path"}],"responses":{"204":{"description":"The rule was deleted."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:edit`."}},"/v1/lake/{lakeId}/leverage":{"post":{"tags":["Leverage"],"summary":"Leverage content","description":"Leverages a file against the content in a lake.\n\nPermissions required: `lake:content:manage`.","security":[{"API Key":[]}],"x-required-permissions":["lake:content:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","title":"The file to be leveraged"},"variant":{"type":"string","title":"Target variant code","description":"The variant code to prepare content for."},"sourceExternalContentId":{"type":"string","nullable":true,"title":"Source content ID","description":"Specify the source content ID. Use when your CMS stores translations without links to each other."},"strategyId":{"type":"string","nullable":true,"format":"uuid","title":"Strategy ID","description":"Select a leveraging strategy configured in your Blacklake. If not set, content is only diffed."},"prepareFor":{"type":"string","nullable":true,"title":"Prepare for","description":"Whether to prepare for translation (default) or editing."},"termbaseIds":{"type":"array","nullable":true,"items":{"type":"string","format":"uuid"},"title":"Termbase IDs","description":"Select termbases to be leveraged."},"diffDrafts":{"type":"boolean","nullable":true,"title":"IsDraft","description":"Whether to diff draft changes in Blacklake into the output. This is useful in a workflow where draft changes need to be diffed into the original file before publishing it to the source system. Defaults to false."}},"required":["file","variant"]}}}},"responses":{"200":{"description":"The leverage metadata and transformed XLIFF file.","content":{"multipart/mixed":{"schema":{"type":"string","format":"binary","description":"Parse the response using the boundary in the Content-Type header. The first MIME part is application/json leverage metrics; the second is an application/xliff+xml attachment. Use the attachment filename from its Content-Disposition header."}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lake/{lakeId}/commit":{"post":{"tags":["Commit"],"summary":"Commit content","description":"Commits a bilingual file to a lake.\n\nPermissions required: `lake:content:manage`.","security":[{"API Key":[]}],"x-required-permissions":["lake:content:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","title":"The bilingual file to commit"},"preview":{"type":"boolean","nullable":true,"title":"Preview","description":"Whether to preview the commit without storing changes (true) or whether to actually save the content to Blacklake (false). Defaults to false."},"isDraft":{"type":"boolean","nullable":true,"title":"IsDraft","description":"Whether to store the commit as a draft, indicating the content is not live in the source system. Defaults to false."},"sourceExternalContentId":{"type":"string","nullable":true,"title":"Source content ID","description":"If you are storing monolingual content and aligning it, specify the source content ID. Relevant when your CMS stores translations without links to each other."},"externalContentId":{"type":"string","nullable":true,"title":"External content ID"},"variant":{"type":"string","nullable":true,"title":"Language variant code","description":"Set or overwrite the variant this content should be stored as."},"sourceVariant":{"type":"string","nullable":true,"title":"Align with variant code","description":"If you are storing monolingual content, use this input to align it with a source variant."},"workflow":{"type":"string","nullable":true,"title":"Workflow","description":"Stored in Blacklake for reference purposes"},"workflowReference":{"type":"string","nullable":true,"title":"Workflow reference","description":"Stored in Blacklake for reference purposes"}},"required":["file"]}}}},"responses":{"200":{"description":"The committed content changes and applied rules.","content":{"application/json":{"schema":{"type":"object","properties":{"rules":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","nullable":true},"text":{"type":"string"}},"required":["category","text"]}},"changes":{"type":"array","items":{"type":"object","properties":{"contentId":{"type":"string"},"name":{"type":"string","nullable":true},"externalId":{"type":"string","nullable":true},"variantId":{"type":"string","nullable":true},"changes":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","nullable":true},"added":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"sourceText":{"type":"string","nullable":true}},"required":["text","sourceText"]}},"updated":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"oldText":{"type":"string"},"newText":{"type":"string"},"editDistance":{"type":"integer"}},"required":["id","oldText","newText","editDistance"]}},"metadataUpdated":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"oldText":{"type":"string"},"newText":{"type":"string"},"editDistance":{"type":"integer"}},"required":["id","oldText","newText","editDistance"]}},"removed":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"}},"required":["id","text"]}}},"required":["key","added","updated","metadataUpdated","removed"]}}},"required":["contentId","name","externalId","variantId","changes"]}}},"required":["rules","changes"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/lakes/{lakeId}/termbases":{"get":{"summary":"List termbases","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"}],"responses":{"200":{"description":"The lake termbases.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","description","createdAt"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:view`."},"post":{"summary":"Create termbase","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":4,"maxLength":128},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"204":{"description":"The termbase was created."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:manage`."}},"/v1/lakes/{lakeId}/termbases/{termbaseId}":{"get":{"summary":"Get termbase","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termbaseId","in":"path"}],"responses":{"200":{"description":"The requested termbase.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","description","createdAt"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:view`."},"put":{"summary":"Update termbase","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:edit"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termbaseId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"description":{"type":"string"}}}}}},"responses":{"204":{"description":"The termbase was updated."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:edit`."},"delete":{"summary":"Delete termbase","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termbaseId","in":"path"}],"responses":{"204":{"description":"The termbase was deleted."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:manage`."}},"/v1/lakes/{lakeId}/termbases/import":{"post":{"summary":"Import termbase","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"The imported termbase.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","description","createdAt"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:manage`."}},"/v1/lakes/{lakeId}/termbases/{termbaseId}/import":{"post":{"summary":"Import into termbase","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:manage"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termbaseId","in":"path"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"},"deleteMissingTermsAndGroups":{"type":"boolean","nullable":true}},"required":["file"]}}}},"responses":{"200":{"description":"The updated termbase.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","description","createdAt"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:manage`."}},"/v1/lakes/{lakeId}/termbases/{termbaseId}/groups":{"get":{"summary":"List term groups","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termbaseId","in":"path"}],"responses":{"200":{"description":"The termbase term groups.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"termbaseId":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","termbaseId","name","createdAt"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:view`."}},"/v1/lakes/{lakeId}/termbases/{termbaseId}/groups/{termgroupId}":{"get":{"summary":"Get term group","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termbaseId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termgroupId","in":"path"}],"responses":{"200":{"description":"The requested term group.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"termbaseId":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","termbaseId","name","createdAt"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:view`."},"put":{"summary":"Update term group","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:edit"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termbaseId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termgroupId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128}}}}}},"responses":{"204":{"description":"The term group was updated."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:edit`."},"delete":{"summary":"Delete term group","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:edit"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termbaseId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termgroupId","in":"path"}],"responses":{"204":{"description":"The term group was deleted."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:edit`."}},"/v1/lakes/{lakeId}/termbases/{termbaseId}/terms":{"get":{"summary":"List terms","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termbaseId","in":"path"},{"schema":{"type":"string"},"required":false,"name":"termGroupId","in":"query"}],"responses":{"200":{"description":"The termbase terms.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"termbaseId":{"type":"string"},"termGroupId":{"type":"string"},"variantId":{"type":"string"},"term":{"type":"string"},"description":{"type":"string"},"notes":{"type":"string"},"status":{"type":"string","enum":["not recommended","admitted","preferred","desired","forbidden"]},"variant":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"contentCount":{"type":"number","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","description","createdAt"]},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","termbaseId","termGroupId","variantId","term","description","notes","status","variant","createdAt"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:view`."},"post":{"summary":"Create term","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:edit"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termbaseId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"variantId":{"type":"string","format":"uuid"},"term":{"type":"string"},"description":{"type":"string"},"notes":{"type":"string","default":""},"status":{"type":"string","enum":["not recommended","admitted","preferred","desired","forbidden"]},"termGroupId":{"type":"string","format":"uuid"}},"required":["variantId","term","status"]}}}},"responses":{"200":{"description":"The created term.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"termbaseId":{"type":"string"},"termGroupId":{"type":"string"},"variantId":{"type":"string"},"term":{"type":"string"},"description":{"type":"string"},"notes":{"type":"string"},"status":{"type":"string","enum":["not recommended","admitted","preferred","desired","forbidden"]},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","termbaseId","termGroupId","variantId","term","description","notes","status","createdAt"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:edit`."}},"/v1/lakes/{lakeId}/termbases/{termbaseId}/terms/{termId}":{"get":{"summary":"Get term","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:view"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termbaseId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termId","in":"path"}],"responses":{"200":{"description":"The requested term.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"termbaseId":{"type":"string"},"termGroupId":{"type":"string"},"variantId":{"type":"string"},"term":{"type":"string"},"description":{"type":"string"},"notes":{"type":"string"},"status":{"type":"string","enum":["not recommended","admitted","preferred","desired","forbidden"]},"variant":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"contentCount":{"type":"number","nullable":true},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","description","createdAt"]},"createdAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","termbaseId","termGroupId","variantId","term","description","notes","status","variant","createdAt"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:view`."},"put":{"summary":"Update term","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:edit"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termbaseId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"term":{"type":"string"},"description":{"type":"string"},"notes":{"type":"string"},"status":{"type":"string","enum":["not recommended","admitted","preferred","desired","forbidden"]}},"required":["term","status"]}}}},"responses":{"204":{"description":"The term was updated."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:edit`."},"delete":{"summary":"Delete term","tags":["Termbases"],"security":[{"API Key":[]}],"x-required-permissions":["lake:assets:edit"],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lakeId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termbaseId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"termId","in":"path"}],"responses":{"204":{"description":"The term was deleted."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `lake:assets:edit`."}},"/v1/nests":{"get":{"summary":"List nests","tags":["Nests"],"security":[{"API Key":[]}],"x-required-permissions":[],"responses":{"200":{"description":"The Blackbird nests.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"parentId":{"type":"string","nullable":true}},"required":["id","name","parentId"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: none."}},"/v1/nests/{nestId}":{"get":{"summary":"Get nest","tags":["Nests"],"security":[{"API Key":[]}],"x-required-permissions":[],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"}],"responses":{"200":{"description":"The requested nest.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"parentId":{"type":"string","nullable":true}},"required":["id","name","parentId"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: none."}},"/v1/nests/{nestId}/birds":{"get":{"summary":"List birds","tags":["Birds"],"security":[{"API Key":[]}],"x-required-permissions":["nest:birds:view"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","enum":["manual","event","scheduled"]},"required":false,"name":"triggerType","in":"query"},{"schema":{"type":"string","enum":["active","unpublished","suspended"]},"required":false,"name":"status","in":"query"},{"schema":{"type":"string","description":"Case-insensitive contains filter for the Bird name."},"required":false,"description":"Case-insensitive contains filter for the Bird name.","name":"name","in":"query"}],"responses":{"200":{"description":"The nest birds, optionally filtered by lifecycle status or name.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"nestId":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["active","unpublished","suspended"]},"triggerType":{"type":"string","nullable":true,"enum":["manual","event","scheduled",null],"description":"Null when an unfinished draft has no trigger configured."},"isPublished":{"type":"boolean"}},"required":["id","nestId","name","status","triggerType","isPublished"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `nest:birds:view`."}},"/v1/nests/{nestId}/birds/definition":{"post":{"summary":"Create bird","description":"Creates a Bird as a draft by default. Set publish=true to publish it immediately. Connector actions and events resolve by name against the active app version; omit their numeric ids when authoring.\n\nPermissions required: `nest:birds:manage`.","tags":["Birds"],"security":[{"API Key":[]}],"x-required-permissions":["nest:birds:manage"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","enum":["true","false"],"description":"Publish the saved definition immediately. Defaults to false."},"required":false,"description":"Publish the saved definition immediately. Defaults to false.","name":"publish","in":"query"}],"requestBody":{"content":{"application/json":{"examples":{"manualAction":{"summary":"Manual Bird with one action","description":"A safe starting point while building and testing a workflow.","value":{"name":"Send content for translation","trigger":{"id":"manual-start","type":"manual","next":"download-content"},"steps":[{"id":"download-content","type":"action","name":"Download content","action":{"name":"Example.Cms.Actions.DownloadContent"},"connection":12345,"inputs":{"contentId":{"source":"custom","value":"content-123"}},"next":null}]}},"eventAction":{"summary":"Event-triggered Bird with an action","description":"Replace the event/action names, connection, inputs, and output path with values from the app schemas.","value":{"name":"Process new content","trigger":{"id":"content-created","type":"webhook","event":{"name":"Example.Cms.Events.ContentCreated"},"connection":12345,"mode":"subscription","next":"download-content"},"steps":[{"id":"download-content","type":"action","action":{"name":"Example.Cms.Actions.DownloadContent"},"connection":12345,"inputs":{"contentId":{"source":"step","stepId":"content-created","output":"content.id"}},"next":null}]}},"controlFlow":{"summary":"Loop, decision, checkpoint, and operator","description":"A structural example. Confirm every action schema and operator contract before using it in a real Bird.","value":{"name":"Process each completed document","trigger":{"id":"manual-start","type":"manual","next":"find-documents"},"steps":[{"id":"find-documents","type":"action","action":{"name":"Example.Cms.Actions.ListDocuments"},"connection":12345,"next":"for-each-document"},{"id":"for-each-document","type":"loop","forEach":{"source":"step","stepId":"find-documents","output":"documents"},"body":["is-translatable","finish-document"],"next":"notify-complete"},{"id":"is-translatable","type":"decision","next":null,"branches":[{"when":{"left":{"source":"loopItem","loopId":"for-each-document","path":"isTranslatable"},"operator":"equal","right":{"source":"custom","value":true}},"next":"wait-for-approval"},{"otherwise":true,"next":"finish-document"}]},{"id":"wait-for-approval","type":"checkpoint","mode":"delay","duration":{"minutes":5},"next":"finish-document"},{"id":"finish-document","type":"operator","operator":"flow.endLoop","loopId":"for-each-document","next":null},{"id":"notify-complete","type":"operator","operator":"flow.endFlight","next":null}]}}},"schema":{"type":"object","properties":{"id":{"type":"integer","nullable":true,"description":"Bird id emitted by GET and ignored on POST or PUT."},"birdId":{"type":"string","description":"Legacy informational identifier; the URL identifies an existing bird."},"name":{"type":"string","description":"Bird name."},"version":{"type":"string","nullable":true,"description":"Definition schema version. Omit it to select the latest supported version."},"trigger":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Stable trigger id. Reuse the id emitted by GET when updating a bird."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The first step id."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"type":{"type":"string","enum":["manual"]}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable trigger id. Reuse the id emitted by GET when updating a bird."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The first step id."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"type":{"type":"string","enum":["schedule"]},"frequency":{"type":"string","enum":["interval","daily","weekly","monthly"]},"configuration":{"type":"object","properties":{"value":{"type":"integer","nullable":true,"description":"Interval value; interval schedules require at least five minutes."},"unit":{"type":"string","nullable":true,"description":"Interval unit, for example 'minute' or 'hour'."},"days":{"type":"array","nullable":true,"items":{"type":"integer"},"description":"Days of the week or month for weekly or monthly schedules."},"hour":{"type":"integer","nullable":true},"minute":{"type":"integer","nullable":true},"timeZone":{"type":"string","nullable":true}}}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable trigger id. Reuse the id emitted by GET when updating a bird."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The first step id."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"type":{"type":"string","enum":["webhook"]},"event":{"type":"object","properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true}},"connection":{"type":"integer","nullable":true},"mode":{"type":"string","nullable":true,"enum":["subscription","link",null]}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable trigger id. Reuse the id emitted by GET when updating a bird."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The first step id."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"type":{"type":"string","enum":["polling"]},"event":{"type":"object","properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true}},"connection":{"type":"integer","nullable":true},"interval":{"type":"object","properties":{"minutes":{"type":"integer","nullable":true},"hours":{"type":"integer","nullable":true},"days":{"type":"integer","nullable":true}}}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable trigger id. Reuse the id emitted by GET when updating a bird."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The first step id."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"type":{"type":"string","enum":["bucketing"]},"event":{"type":"object","properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true}},"connection":{"type":"integer","nullable":true},"mode":{"type":"string","nullable":true,"enum":["subscription","link",null]},"amount":{"type":"integer"},"timer":{"type":"object","nullable":true,"properties":{"hours":{"type":"integer"}}}},"required":["type"],"additionalProperties":{"nullable":true}}]},"steps":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Stable, bird-unique step id. Reuse ids emitted by GET when updating a bird."},"name":{"type":"string","nullable":true,"description":"Optional display label. Change this property to rename a step."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The following step id; null ends this branch."},"onError":{"type":"object","nullable":true,"properties":{"retry":{"type":"object","nullable":true,"properties":{"count":{"type":"integer"},"intervalSeconds":{"type":"integer"}}},"skipStep":{"type":"boolean"},"skipLoopIteration":{"type":"boolean"}}},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true}},"connection":{"type":"integer","nullable":true,"description":"Required for normal apps. Omit it for connectionless utility apps and when an app has one preselected connection."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable, bird-unique step id. Reuse ids emitted by GET when updating a bird."},"name":{"type":"string","nullable":true,"description":"Optional display label. Change this property to rename a step."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The following step id; null ends this branch."},"onError":{"type":"object","nullable":true,"properties":{"retry":{"type":"object","nullable":true,"properties":{"count":{"type":"integer"},"intervalSeconds":{"type":"integer"}}},"skipStep":{"type":"boolean"},"skipLoopIteration":{"type":"boolean"}}},"type":{"type":"string","enum":["operator"]},"operator":{"type":"string","enum":["variable.create","variable.update","array.length","string.length","string.split","arithmetic.add","arithmetic.subtract","arithmetic.multiply","arithmetic.divide","arithmetic.mod","logical.and","logical.or","entityLink.set","entityLink.get","entityLink.getMany","convert.single","convert.multiple","flow.endLoop","flow.endFlight"],"description":"Built-in operation. The document-level x-operatorCatalog gives the exact input keys, required inputs, output behavior, and examples for every supported operator."},"parameter":{"type":"string","nullable":true},"loopId":{"type":"string","nullable":true,"description":"Only for flow.endLoop; inferred from the enclosing loop when omitted."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"output":{"type":"object","nullable":true,"properties":{"name":{"type":"string"},"type":{"type":"string","enum":["string","integer","double","boolean","date","file","object","array","text","number","int","float","decimal","bool","datetime","bytes","json"],"description":"Canonical types are string, integer, double, boolean, date, file, object, and array. PUT also accepts aliases: text, number/int, float/decimal, bool, datetime, bytes, and json."}}}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable, bird-unique step id. Reuse ids emitted by GET when updating a bird."},"name":{"type":"string","nullable":true,"description":"Optional display label. Change this property to rename a step."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The following step id; null ends this branch."},"onError":{"type":"object","nullable":true,"properties":{"retry":{"type":"object","nullable":true,"properties":{"count":{"type":"integer"},"intervalSeconds":{"type":"integer"}}},"skipStep":{"type":"boolean"},"skipLoopIteration":{"type":"boolean"}}},"type":{"type":"string","enum":["decision"]},"branches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"when":{"type":"object","nullable":true,"properties":{"left":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"operator":{"type":"string"},"right":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."}}},"otherwise":{"type":"boolean","description":"The fallback branch. A decision needs exactly one fallback branch."},"next":{"type":"string","nullable":true,"description":"The step id to continue to."}}},"description":"Conditional branches; exactly one must be the fallback branch."}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable, bird-unique step id. Reuse ids emitted by GET when updating a bird."},"name":{"type":"string","nullable":true,"description":"Optional display label. Change this property to rename a step."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The following step id; null ends this branch."},"onError":{"type":"object","nullable":true,"properties":{"retry":{"type":"object","nullable":true,"properties":{"count":{"type":"integer"},"intervalSeconds":{"type":"integer"}}},"skipStep":{"type":"boolean"},"skipLoopIteration":{"type":"boolean"}}},"type":{"type":"string","enum":["loop"]},"forEach":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"The collection to iterate."},"itemName":{"type":"string","nullable":true,"description":"Display-only label for the current item."},"body":{"type":"array","items":{"type":"string"},"description":"Ordered step ids in the loop body; the first id is its entry step."}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable, bird-unique step id. Reuse ids emitted by GET when updating a bird."},"name":{"type":"string","nullable":true,"description":"Optional display label. Change this property to rename a step."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The following step id; null ends this branch."},"onError":{"type":"object","nullable":true,"properties":{"retry":{"type":"object","nullable":true,"properties":{"count":{"type":"integer"},"intervalSeconds":{"type":"integer"}}},"skipStep":{"type":"boolean"},"skipLoopIteration":{"type":"boolean"}}},"type":{"type":"string","enum":["checkpoint"]},"mode":{"type":"string","enum":["delay","event"]},"duration":{"type":"object","nullable":true,"properties":{"years":{"type":"integer","nullable":true},"months":{"type":"integer","nullable":true},"weeks":{"type":"integer","nullable":true},"days":{"type":"integer","nullable":true},"hours":{"type":"integer","nullable":true},"minutes":{"type":"integer","nullable":true},"seconds":{"type":"integer","nullable":true}},"description":"Only for a delay checkpoint."},"event":{"type":"object","nullable":true,"properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true},"description":"Only for an event checkpoint."},"connection":{"type":"integer","nullable":true,"description":"For event checkpoints, follow the same connection rules as action steps; omit it for connectionless utility apps."},"webhookMode":{"type":"string","nullable":true,"enum":["subscription","link","polling",null]},"interval":{"type":"object","nullable":true,"properties":{"minutes":{"type":"integer","nullable":true},"hours":{"type":"integer","nullable":true},"days":{"type":"integer","nullable":true}},"description":"Polling interval; only with webhookMode=polling."},"bucketing":{"type":"object","nullable":true,"properties":{"amount":{"type":"integer"},"timer":{"type":"object","nullable":true,"properties":{"hours":{"type":"integer"}}}}},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."}},"required":["type"],"additionalProperties":{"nullable":true}}]}}},"required":["name","trigger"],"additionalProperties":{"nullable":true},"description":"The full editable bird definition. Preserve ids returned by GET; connector action and event refs resolve by name, so omit their numeric ids when authoring."}}}},"responses":{"201":{"description":"The Bird was created, and was published when publish=true.","content":{"application/json":{"schema":{"type":"object","properties":{"birdId":{"type":"string"},"status":{"type":"string","enum":["active","unpublished","suspended"]},"isPublished":{"type":"boolean"},"webhookPayloadUrls":{"type":"object","nullable":true,"additionalProperties":{"type":"string","format":"uri"},"description":"Link-mode webhook step id to payload URL. Register each URL externally; URLs rotate after every definition update."}},"required":["birdId","status","isPublished"],"description":"Result of saving or publishing a Bird. status describes the running version; isPublished says whether the latest saved definition is live."}}}},"400":{"description":"Blackbird rejected the Bird definition.","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/nests/{nestId}/birds/{birdId}":{"get":{"summary":"Get bird","tags":["Birds"],"security":[{"API Key":[]}],"x-required-permissions":["nest:birds:view"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"birdId","in":"path"}],"responses":{"200":{"description":"The requested bird.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"nestId":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["active","unpublished","suspended"]},"triggerType":{"type":"string","nullable":true,"enum":["manual","event","scheduled",null],"description":"Null when an unfinished draft has no trigger configured."},"isPublished":{"type":"boolean"}},"required":["id","nestId","name","status","triggerType","isPublished"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `nest:birds:view`."},"patch":{"summary":"Rename bird","description":"Updates a bird name.\n\nPermissions required: `nest:birds:manage`.","tags":["Birds"],"security":[{"API Key":[]}],"x-required-permissions":["nest:birds:manage"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"birdId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","pattern":"\\S"}},"required":["name"],"additionalProperties":false}}}},"responses":{"204":{"description":"The bird was renamed."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}},"delete":{"summary":"Delete bird","tags":["Birds"],"security":[{"API Key":[]}],"x-required-permissions":["nest:birds:manage"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"birdId","in":"path"}],"responses":{"204":{"description":"The bird was deleted."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `nest:birds:manage`."},"post":{"summary":"Fly a manual bird","tags":["Birds"],"security":[{"API Key":[]}],"x-required-permissions":["nest:birds:trigger"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"birdId","in":"path"}],"responses":{"204":{"description":"Bird start accepted. Find the new run in the bird or nest flight list."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `nest:birds:trigger`."}},"/v1/nests/{nestId}/birds/{birdId}/definition":{"get":{"summary":"Get bird definition","description":"Returns the latest saved editable definition by default. Set published=true to retrieve the live definition; this returns 204 when the Bird has never been published.\n\nPermissions required: `nest:birds:view`.","tags":["Birds"],"security":[{"API Key":[]}],"x-required-permissions":["nest:birds:view"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"birdId","in":"path"},{"schema":{"type":"string","enum":["true","false"],"description":"Return the live definition instead of the latest saved definition."},"required":false,"description":"Return the live definition instead of the latest saved definition.","name":"published","in":"query"}],"responses":{"200":{"description":"The bird definition.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","nullable":true,"description":"Bird id emitted by GET and ignored on POST or PUT."},"birdId":{"type":"string","description":"Legacy informational identifier; the URL identifies an existing bird."},"name":{"type":"string","description":"Bird name."},"version":{"type":"string","nullable":true,"description":"Definition schema version. Omit it to select the latest supported version."},"trigger":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Stable trigger id. Reuse the id emitted by GET when updating a bird."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The first step id."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"type":{"type":"string","enum":["manual"]}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable trigger id. Reuse the id emitted by GET when updating a bird."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The first step id."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"type":{"type":"string","enum":["schedule"]},"frequency":{"type":"string","enum":["interval","daily","weekly","monthly"]},"configuration":{"type":"object","properties":{"value":{"type":"integer","nullable":true,"description":"Interval value; interval schedules require at least five minutes."},"unit":{"type":"string","nullable":true,"description":"Interval unit, for example 'minute' or 'hour'."},"days":{"type":"array","nullable":true,"items":{"type":"integer"},"description":"Days of the week or month for weekly or monthly schedules."},"hour":{"type":"integer","nullable":true},"minute":{"type":"integer","nullable":true},"timeZone":{"type":"string","nullable":true}}}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable trigger id. Reuse the id emitted by GET when updating a bird."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The first step id."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"type":{"type":"string","enum":["webhook"]},"event":{"type":"object","properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true}},"connection":{"type":"integer","nullable":true},"mode":{"type":"string","nullable":true,"enum":["subscription","link",null]}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable trigger id. Reuse the id emitted by GET when updating a bird."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The first step id."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"type":{"type":"string","enum":["polling"]},"event":{"type":"object","properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true}},"connection":{"type":"integer","nullable":true},"interval":{"type":"object","properties":{"minutes":{"type":"integer","nullable":true},"hours":{"type":"integer","nullable":true},"days":{"type":"integer","nullable":true}}}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable trigger id. Reuse the id emitted by GET when updating a bird."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The first step id."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"type":{"type":"string","enum":["bucketing"]},"event":{"type":"object","properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true}},"connection":{"type":"integer","nullable":true},"mode":{"type":"string","nullable":true,"enum":["subscription","link",null]},"amount":{"type":"integer"},"timer":{"type":"object","nullable":true,"properties":{"hours":{"type":"integer"}}}},"required":["type"],"additionalProperties":{"nullable":true}}]},"steps":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Stable, bird-unique step id. Reuse ids emitted by GET when updating a bird."},"name":{"type":"string","nullable":true,"description":"Optional display label. Change this property to rename a step."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The following step id; null ends this branch."},"onError":{"type":"object","nullable":true,"properties":{"retry":{"type":"object","nullable":true,"properties":{"count":{"type":"integer"},"intervalSeconds":{"type":"integer"}}},"skipStep":{"type":"boolean"},"skipLoopIteration":{"type":"boolean"}}},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true}},"connection":{"type":"integer","nullable":true,"description":"Required for normal apps. Omit it for connectionless utility apps and when an app has one preselected connection."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable, bird-unique step id. Reuse ids emitted by GET when updating a bird."},"name":{"type":"string","nullable":true,"description":"Optional display label. Change this property to rename a step."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The following step id; null ends this branch."},"onError":{"type":"object","nullable":true,"properties":{"retry":{"type":"object","nullable":true,"properties":{"count":{"type":"integer"},"intervalSeconds":{"type":"integer"}}},"skipStep":{"type":"boolean"},"skipLoopIteration":{"type":"boolean"}}},"type":{"type":"string","enum":["operator"]},"operator":{"type":"string","enum":["variable.create","variable.update","array.length","string.length","string.split","arithmetic.add","arithmetic.subtract","arithmetic.multiply","arithmetic.divide","arithmetic.mod","logical.and","logical.or","entityLink.set","entityLink.get","entityLink.getMany","convert.single","convert.multiple","flow.endLoop","flow.endFlight"],"description":"Built-in operation. The document-level x-operatorCatalog gives the exact input keys, required inputs, output behavior, and examples for every supported operator."},"parameter":{"type":"string","nullable":true},"loopId":{"type":"string","nullable":true,"description":"Only for flow.endLoop; inferred from the enclosing loop when omitted."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"output":{"type":"object","nullable":true,"properties":{"name":{"type":"string"},"type":{"type":"string","enum":["string","integer","double","boolean","date","file","object","array","text","number","int","float","decimal","bool","datetime","bytes","json"],"description":"Canonical types are string, integer, double, boolean, date, file, object, and array. PUT also accepts aliases: text, number/int, float/decimal, bool, datetime, bytes, and json."}}}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable, bird-unique step id. Reuse ids emitted by GET when updating a bird."},"name":{"type":"string","nullable":true,"description":"Optional display label. Change this property to rename a step."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The following step id; null ends this branch."},"onError":{"type":"object","nullable":true,"properties":{"retry":{"type":"object","nullable":true,"properties":{"count":{"type":"integer"},"intervalSeconds":{"type":"integer"}}},"skipStep":{"type":"boolean"},"skipLoopIteration":{"type":"boolean"}}},"type":{"type":"string","enum":["decision"]},"branches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"when":{"type":"object","nullable":true,"properties":{"left":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"operator":{"type":"string"},"right":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."}}},"otherwise":{"type":"boolean","description":"The fallback branch. A decision needs exactly one fallback branch."},"next":{"type":"string","nullable":true,"description":"The step id to continue to."}}},"description":"Conditional branches; exactly one must be the fallback branch."}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable, bird-unique step id. Reuse ids emitted by GET when updating a bird."},"name":{"type":"string","nullable":true,"description":"Optional display label. Change this property to rename a step."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The following step id; null ends this branch."},"onError":{"type":"object","nullable":true,"properties":{"retry":{"type":"object","nullable":true,"properties":{"count":{"type":"integer"},"intervalSeconds":{"type":"integer"}}},"skipStep":{"type":"boolean"},"skipLoopIteration":{"type":"boolean"}}},"type":{"type":"string","enum":["loop"]},"forEach":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"The collection to iterate."},"itemName":{"type":"string","nullable":true,"description":"Display-only label for the current item."},"body":{"type":"array","items":{"type":"string"},"description":"Ordered step ids in the loop body; the first id is its entry step."}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable, bird-unique step id. Reuse ids emitted by GET when updating a bird."},"name":{"type":"string","nullable":true,"description":"Optional display label. Change this property to rename a step."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The following step id; null ends this branch."},"onError":{"type":"object","nullable":true,"properties":{"retry":{"type":"object","nullable":true,"properties":{"count":{"type":"integer"},"intervalSeconds":{"type":"integer"}}},"skipStep":{"type":"boolean"},"skipLoopIteration":{"type":"boolean"}}},"type":{"type":"string","enum":["checkpoint"]},"mode":{"type":"string","enum":["delay","event"]},"duration":{"type":"object","nullable":true,"properties":{"years":{"type":"integer","nullable":true},"months":{"type":"integer","nullable":true},"weeks":{"type":"integer","nullable":true},"days":{"type":"integer","nullable":true},"hours":{"type":"integer","nullable":true},"minutes":{"type":"integer","nullable":true},"seconds":{"type":"integer","nullable":true}},"description":"Only for a delay checkpoint."},"event":{"type":"object","nullable":true,"properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true},"description":"Only for an event checkpoint."},"connection":{"type":"integer","nullable":true,"description":"For event checkpoints, follow the same connection rules as action steps; omit it for connectionless utility apps."},"webhookMode":{"type":"string","nullable":true,"enum":["subscription","link","polling",null]},"interval":{"type":"object","nullable":true,"properties":{"minutes":{"type":"integer","nullable":true},"hours":{"type":"integer","nullable":true},"days":{"type":"integer","nullable":true}},"description":"Polling interval; only with webhookMode=polling."},"bucketing":{"type":"object","nullable":true,"properties":{"amount":{"type":"integer"},"timer":{"type":"object","nullable":true,"properties":{"hours":{"type":"integer"}}}}},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."}},"required":["type"],"additionalProperties":{"nullable":true}}]}}},"required":["name","trigger"],"additionalProperties":{"nullable":true},"description":"Editable bird definition. GET it, edit it, then PUT the same document back."}}}},"204":{"description":"The Bird has never been published."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}},"put":{"summary":"Update bird definition","description":"Replaces the editable definition as a draft by default. Set publish=true to republish immediately. Link-mode webhook payload URLs are returned only when this request publishes the Bird and rotate after every republish.\n\nPermissions required: `nest:birds:manage`.","tags":["Birds"],"security":[{"API Key":[]}],"x-required-permissions":["nest:birds:manage"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"birdId","in":"path"},{"schema":{"type":"string","enum":["true","false"],"description":"Publish the saved definition immediately. Defaults to false."},"required":false,"description":"Publish the saved definition immediately. Defaults to false.","name":"publish","in":"query"}],"requestBody":{"content":{"application/json":{"examples":{"manualAction":{"summary":"Manual Bird with one action","description":"A safe starting point while building and testing a workflow.","value":{"name":"Send content for translation","trigger":{"id":"manual-start","type":"manual","next":"download-content"},"steps":[{"id":"download-content","type":"action","name":"Download content","action":{"name":"Example.Cms.Actions.DownloadContent"},"connection":12345,"inputs":{"contentId":{"source":"custom","value":"content-123"}},"next":null}]}},"eventAction":{"summary":"Event-triggered Bird with an action","description":"Replace the event/action names, connection, inputs, and output path with values from the app schemas.","value":{"name":"Process new content","trigger":{"id":"content-created","type":"webhook","event":{"name":"Example.Cms.Events.ContentCreated"},"connection":12345,"mode":"subscription","next":"download-content"},"steps":[{"id":"download-content","type":"action","action":{"name":"Example.Cms.Actions.DownloadContent"},"connection":12345,"inputs":{"contentId":{"source":"step","stepId":"content-created","output":"content.id"}},"next":null}]}},"controlFlow":{"summary":"Loop, decision, checkpoint, and operator","description":"A structural example. Confirm every action schema and operator contract before using it in a real Bird.","value":{"name":"Process each completed document","trigger":{"id":"manual-start","type":"manual","next":"find-documents"},"steps":[{"id":"find-documents","type":"action","action":{"name":"Example.Cms.Actions.ListDocuments"},"connection":12345,"next":"for-each-document"},{"id":"for-each-document","type":"loop","forEach":{"source":"step","stepId":"find-documents","output":"documents"},"body":["is-translatable","finish-document"],"next":"notify-complete"},{"id":"is-translatable","type":"decision","next":null,"branches":[{"when":{"left":{"source":"loopItem","loopId":"for-each-document","path":"isTranslatable"},"operator":"equal","right":{"source":"custom","value":true}},"next":"wait-for-approval"},{"otherwise":true,"next":"finish-document"}]},{"id":"wait-for-approval","type":"checkpoint","mode":"delay","duration":{"minutes":5},"next":"finish-document"},{"id":"finish-document","type":"operator","operator":"flow.endLoop","loopId":"for-each-document","next":null},{"id":"notify-complete","type":"operator","operator":"flow.endFlight","next":null}]}}},"schema":{"type":"object","properties":{"id":{"type":"integer","nullable":true,"description":"Bird id emitted by GET and ignored on POST or PUT."},"birdId":{"type":"string","description":"Legacy informational identifier; the URL identifies an existing bird."},"name":{"type":"string","description":"Bird name."},"version":{"type":"string","nullable":true,"description":"Definition schema version. Omit it to select the latest supported version."},"trigger":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Stable trigger id. Reuse the id emitted by GET when updating a bird."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The first step id."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"type":{"type":"string","enum":["manual"]}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable trigger id. Reuse the id emitted by GET when updating a bird."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The first step id."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"type":{"type":"string","enum":["schedule"]},"frequency":{"type":"string","enum":["interval","daily","weekly","monthly"]},"configuration":{"type":"object","properties":{"value":{"type":"integer","nullable":true,"description":"Interval value; interval schedules require at least five minutes."},"unit":{"type":"string","nullable":true,"description":"Interval unit, for example 'minute' or 'hour'."},"days":{"type":"array","nullable":true,"items":{"type":"integer"},"description":"Days of the week or month for weekly or monthly schedules."},"hour":{"type":"integer","nullable":true},"minute":{"type":"integer","nullable":true},"timeZone":{"type":"string","nullable":true}}}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable trigger id. Reuse the id emitted by GET when updating a bird."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The first step id."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"type":{"type":"string","enum":["webhook"]},"event":{"type":"object","properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true}},"connection":{"type":"integer","nullable":true},"mode":{"type":"string","nullable":true,"enum":["subscription","link",null]}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable trigger id. Reuse the id emitted by GET when updating a bird."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The first step id."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"type":{"type":"string","enum":["polling"]},"event":{"type":"object","properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true}},"connection":{"type":"integer","nullable":true},"interval":{"type":"object","properties":{"minutes":{"type":"integer","nullable":true},"hours":{"type":"integer","nullable":true},"days":{"type":"integer","nullable":true}}}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable trigger id. Reuse the id emitted by GET when updating a bird."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The first step id."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"type":{"type":"string","enum":["bucketing"]},"event":{"type":"object","properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true}},"connection":{"type":"integer","nullable":true},"mode":{"type":"string","nullable":true,"enum":["subscription","link",null]},"amount":{"type":"integer"},"timer":{"type":"object","nullable":true,"properties":{"hours":{"type":"integer"}}}},"required":["type"],"additionalProperties":{"nullable":true}}]},"steps":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Stable, bird-unique step id. Reuse ids emitted by GET when updating a bird."},"name":{"type":"string","nullable":true,"description":"Optional display label. Change this property to rename a step."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The following step id; null ends this branch."},"onError":{"type":"object","nullable":true,"properties":{"retry":{"type":"object","nullable":true,"properties":{"count":{"type":"integer"},"intervalSeconds":{"type":"integer"}}},"skipStep":{"type":"boolean"},"skipLoopIteration":{"type":"boolean"}}},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true}},"connection":{"type":"integer","nullable":true,"description":"Required for normal apps. Omit it for connectionless utility apps and when an app has one preselected connection."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable, bird-unique step id. Reuse ids emitted by GET when updating a bird."},"name":{"type":"string","nullable":true,"description":"Optional display label. Change this property to rename a step."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The following step id; null ends this branch."},"onError":{"type":"object","nullable":true,"properties":{"retry":{"type":"object","nullable":true,"properties":{"count":{"type":"integer"},"intervalSeconds":{"type":"integer"}}},"skipStep":{"type":"boolean"},"skipLoopIteration":{"type":"boolean"}}},"type":{"type":"string","enum":["operator"]},"operator":{"type":"string","enum":["variable.create","variable.update","array.length","string.length","string.split","arithmetic.add","arithmetic.subtract","arithmetic.multiply","arithmetic.divide","arithmetic.mod","logical.and","logical.or","entityLink.set","entityLink.get","entityLink.getMany","convert.single","convert.multiple","flow.endLoop","flow.endFlight"],"description":"Built-in operation. The document-level x-operatorCatalog gives the exact input keys, required inputs, output behavior, and examples for every supported operator."},"parameter":{"type":"string","nullable":true},"loopId":{"type":"string","nullable":true,"description":"Only for flow.endLoop; inferred from the enclosing loop when omitted."},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."},"output":{"type":"object","nullable":true,"properties":{"name":{"type":"string"},"type":{"type":"string","enum":["string","integer","double","boolean","date","file","object","array","text","number","int","float","decimal","bool","datetime","bytes","json"],"description":"Canonical types are string, integer, double, boolean, date, file, object, and array. PUT also accepts aliases: text, number/int, float/decimal, bool, datetime, bytes, and json."}}}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable, bird-unique step id. Reuse ids emitted by GET when updating a bird."},"name":{"type":"string","nullable":true,"description":"Optional display label. Change this property to rename a step."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The following step id; null ends this branch."},"onError":{"type":"object","nullable":true,"properties":{"retry":{"type":"object","nullable":true,"properties":{"count":{"type":"integer"},"intervalSeconds":{"type":"integer"}}},"skipStep":{"type":"boolean"},"skipLoopIteration":{"type":"boolean"}}},"type":{"type":"string","enum":["decision"]},"branches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"when":{"type":"object","nullable":true,"properties":{"left":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"operator":{"type":"string"},"right":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."}}},"otherwise":{"type":"boolean","description":"The fallback branch. A decision needs exactly one fallback branch."},"next":{"type":"string","nullable":true,"description":"The step id to continue to."}}},"description":"Conditional branches; exactly one must be the fallback branch."}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable, bird-unique step id. Reuse ids emitted by GET when updating a bird."},"name":{"type":"string","nullable":true,"description":"Optional display label. Change this property to rename a step."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The following step id; null ends this branch."},"onError":{"type":"object","nullable":true,"properties":{"retry":{"type":"object","nullable":true,"properties":{"count":{"type":"integer"},"intervalSeconds":{"type":"integer"}}},"skipStep":{"type":"boolean"},"skipLoopIteration":{"type":"boolean"}}},"type":{"type":"string","enum":["loop"]},"forEach":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"The collection to iterate."},"itemName":{"type":"string","nullable":true,"description":"Display-only label for the current item."},"body":{"type":"array","items":{"type":"string"},"description":"Ordered step ids in the loop body; the first id is its entry step."}},"required":["type"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"id":{"type":"string","description":"Stable, bird-unique step id. Reuse ids emitted by GET when updating a bird."},"name":{"type":"string","nullable":true,"description":"Optional display label. Change this property to rename a step."},"note":{"type":"string","nullable":true},"next":{"type":"string","nullable":true,"description":"The following step id; null ends this branch."},"onError":{"type":"object","nullable":true,"properties":{"retry":{"type":"object","nullable":true,"properties":{"count":{"type":"integer"},"intervalSeconds":{"type":"integer"}}},"skipStep":{"type":"boolean"},"skipLoopIteration":{"type":"boolean"}}},"type":{"type":"string","enum":["checkpoint"]},"mode":{"type":"string","enum":["delay","event"]},"duration":{"type":"object","nullable":true,"properties":{"years":{"type":"integer","nullable":true},"months":{"type":"integer","nullable":true},"weeks":{"type":"integer","nullable":true},"days":{"type":"integer","nullable":true},"hours":{"type":"integer","nullable":true},"minutes":{"type":"integer","nullable":true},"seconds":{"type":"integer","nullable":true}},"description":"Only for a delay checkpoint."},"event":{"type":"object","nullable":true,"properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true},"description":"Only for an event checkpoint."},"connection":{"type":"integer","nullable":true,"description":"For event checkpoints, follow the same connection rules as action steps; omit it for connectionless utility apps."},"webhookMode":{"type":"string","nullable":true,"enum":["subscription","link","polling",null]},"interval":{"type":"object","nullable":true,"properties":{"minutes":{"type":"integer","nullable":true},"hours":{"type":"integer","nullable":true},"days":{"type":"integer","nullable":true}},"description":"Polling interval; only with webhookMode=polling."},"bucketing":{"type":"object","nullable":true,"properties":{"amount":{"type":"integer"},"timer":{"type":"object","nullable":true,"properties":{"hours":{"type":"integer"}}}}},"inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."},"description":"Input parameter name to value binding."}},"required":["type"],"additionalProperties":{"nullable":true}}]}}},"required":["name","trigger"],"additionalProperties":{"nullable":true},"description":"The full editable bird definition. Preserve ids returned by GET; connector action and event refs resolve by name, so omit their numeric ids when authoring."}}}},"responses":{"200":{"description":"The Bird definition was saved, and was published when publish=true.","content":{"application/json":{"schema":{"type":"object","properties":{"birdId":{"type":"string"},"status":{"type":"string","enum":["active","unpublished","suspended"]},"isPublished":{"type":"boolean"},"webhookPayloadUrls":{"type":"object","nullable":true,"additionalProperties":{"type":"string","format":"uri"},"description":"Link-mode webhook step id to payload URL. Register each URL externally; URLs rotate after every definition update."}},"required":["birdId","status","isPublished"],"description":"Result of saving or publishing a Bird. status describes the running version; isPublished says whether the latest saved definition is live."}}}},"400":{"description":"Blackbird rejected the Bird definition.","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/nests/{nestId}/birds/{birdId}/publish":{"post":{"summary":"Publish bird definition","description":"Publishes the latest saved Bird definition. A suspended Bird remains suspended.\n\nPermissions required: `nest:birds:manage`.","tags":["Birds"],"security":[{"API Key":[]}],"x-required-permissions":["nest:birds:manage"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"birdId","in":"path"}],"responses":{"200":{"description":"The Bird was published.","content":{"application/json":{"schema":{"type":"object","properties":{"birdId":{"type":"string"},"status":{"type":"string","enum":["active","unpublished","suspended"]},"isPublished":{"type":"boolean"},"webhookPayloadUrls":{"type":"object","nullable":true,"additionalProperties":{"type":"string","format":"uri"},"description":"Link-mode webhook step id to payload URL. Register each URL externally; URLs rotate after every definition update."}},"required":["birdId","status","isPublished"],"description":"Result of saving or publishing a Bird. status describes the running version; isPublished says whether the latest saved definition is live."}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The latest saved definition is already published.","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/nests/{nestId}/birds/{birdId}/schema":{"get":{"summary":"Get bird schema","description":"Returns a read-only authoring reference: each element’s input parameter definitions, current bindings, and referenceable outputs. Do not PUT this document to the definition endpoint; its inputs are descriptor arrays, whereas definitions use binding maps.\n\nPermissions required: `nest:birds:view`.","tags":["Birds"],"security":[{"API Key":[]}],"x-required-permissions":["nest:birds:view"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"birdId","in":"path"}],"responses":{"200":{"description":"The bird schema.","content":{"application/json":{"schema":{"type":"object","properties":{"birdId":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"trigger":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"event":{"type":"object","nullable":true,"properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true}},"connection":{"type":"integer","nullable":true},"inputs":{"type":"array","items":{"allOf":[{"type":"object","properties":{"name":{"type":"string"},"displayName":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"type":{"type":"string","nullable":true,"enum":["string","integer","double","boolean","date","file","object","array",null],"description":"The emitted canonical value type: string, integer, double, boolean, date, file, object, or array."},"subType":{"type":"string","nullable":true},"contentType":{"type":"string","nullable":true},"properties":{"type":"array","nullable":true,"items":{"nullable":true},"description":"Nested output descriptors, each with the same OutputSchema shape."}}},{"type":"object","properties":{"required":{"type":"boolean","nullable":true},"binding":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}},{"nullable":true}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."}}}]}},"outputs":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"displayName":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"type":{"type":"string","nullable":true,"enum":["string","integer","double","boolean","date","file","object","array",null],"description":"The emitted canonical value type: string, integer, double, boolean, date, file, object, or array."},"subType":{"type":"string","nullable":true},"contentType":{"type":"string","nullable":true},"properties":{"type":"array","nullable":true,"items":{"nullable":true},"description":"Nested output descriptors, each with the same OutputSchema shape."}}}}}},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string","nullable":true},"element":{"type":"object","nullable":true,"properties":{"id":{"type":"integer","nullable":true,"description":"Informational connector-element id. Omit it when authoring because app republishes make it stale."},"app":{"type":"string","nullable":true,"description":"Informational app identifier."},"name":{"type":"string","description":"External full name used to resolve the connector action or event on publish."},"displayName":{"type":"string","nullable":true,"description":"Informational human-readable element label."}},"required":["name"],"additionalProperties":{"nullable":true}},"operator":{"type":"string","nullable":true},"connection":{"type":"integer","nullable":true},"inputs":{"type":"array","items":{"allOf":[{"type":"object","properties":{"name":{"type":"string"},"displayName":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"type":{"type":"string","nullable":true,"enum":["string","integer","double","boolean","date","file","object","array",null],"description":"The emitted canonical value type: string, integer, double, boolean, date, file, object, or array."},"subType":{"type":"string","nullable":true},"contentType":{"type":"string","nullable":true},"properties":{"type":"array","nullable":true,"items":{"nullable":true},"description":"Nested output descriptors, each with the same OutputSchema shape."}}},{"type":"object","properties":{"required":{"type":"boolean","nullable":true},"binding":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","enum":["step"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"stepId":{"type":"string","description":"The producing step or trigger id."},"output":{"type":"string","description":"Output name; use '.' for nested paths."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["custom"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"nullable":true}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["dynamic"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected dynamic data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["static"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"value":{"type":"string","description":"The selected static data-source value; this is the value the engine uses."},"displayName":{"type":"string","nullable":true,"description":"Optional cosmetic label for the editor. Omit it when unavailable; the engine does not use it."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["composable"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"template":{"type":"string","description":"Text template that interpolates the named variables."},"variables":{"type":"object","additionalProperties":{"nullable":true},"description":"Template variable name to another input binding. Bindings may themselves be nested."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["loopItem"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"loopId":{"type":"string","description":"The loop step id."},"item":{"type":"string","description":"Accepted alias for loopId."},"path":{"type":"string","nullable":true,"description":"Property on the current item; omit for scalar items."}},"required":["source"],"additionalProperties":{"nullable":true}},{"type":"object","properties":{"source":{"type":"string","enum":["object"]},"required":{"type":"boolean","nullable":true,"description":"Set false only to explicitly mark this input optional. True and omission both use the connector-defined requiredness."},"properties":{"type":"object","additionalProperties":{"nullable":true},"description":"Named child input bindings. Each value follows the InputBinding shape."},"items":{"type":"array","items":{"nullable":true},"description":"Child input bindings. Each item follows the InputBinding shape."}},"required":["source"],"additionalProperties":{"nullable":true}},{"nullable":true}],"description":"How an input receives its value. Input types are inferred from the connector or operator definition on publish; do not send a type in the binding."}}}]}},"outputs":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"displayName":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"type":{"type":"string","nullable":true,"enum":["string","integer","double","boolean","date","file","object","array",null],"description":"The emitted canonical value type: string, integer, double, boolean, date, file, object, or array."},"subType":{"type":"string","nullable":true},"contentType":{"type":"string","nullable":true},"properties":{"type":"array","nullable":true,"items":{"nullable":true},"description":"Nested output descriptors, each with the same OutputSchema shape."}}}}}}}},"required":["birdId","name","version","trigger","steps"],"description":"Read-only authoring reference. Its input arrays are parameter descriptors, not the binding maps accepted by the definition endpoint."}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/nests/{nestId}/birds/{birdId}/activate":{"post":{"summary":"Activate bird","description":"Resumes a published bird so its trigger can accept events and start new flights. This operation is not idempotent.\n\nPermissions required: `nest:birds:manage`.","tags":["Birds"],"security":[{"API Key":[]}],"x-required-permissions":["nest:birds:manage"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"birdId","in":"path"}],"responses":{"204":{"description":"The bird was activated."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/nests/{nestId}/birds/{birdId}/deactivate":{"post":{"summary":"Deactivate bird","description":"Suspends a published bird so it stops accepting new trigger events and starting new flights. This operation is not idempotent.\n\nPermissions required: `nest:birds:manage`.","tags":["Birds"],"security":[{"API Key":[]}],"x-required-permissions":["nest:birds:manage"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"birdId","in":"path"}],"responses":{"204":{"description":"The bird was deactivated."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/nests/{nestId}/birds/{birdId}/logs":{"get":{"summary":"Get bird logs","tags":["Birds"],"security":[{"API Key":[]}],"x-required-permissions":["nest:birds:view"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"birdId","in":"path"},{"schema":{"type":"integer","nullable":true,"minimum":0},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":0,"exclusiveMinimum":true},"required":false,"name":"pageSize","in":"query"},{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"ascending","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"from","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"to","in":"query"}],"responses":{"200":{"description":"The bird logs.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"workspaceId":{"type":"integer"},"workflowId":{"type":"integer"},"eventType":{"type":"string"},"message":{"type":"string","nullable":true},"eventFailedBy":{"type":"string","nullable":true},"errorType":{"type":"string","nullable":true},"initiator":{"type":"string","nullable":true}},"required":["id","createdAt","workspaceId","workflowId","eventType"]}},"totalCount":{"type":"integer"},"page":{"type":"integer"},"pageSize":{"type":"integer"}},"required":["items","totalCount","page","pageSize"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `nest:birds:view`."}},"/v1/nests/{nestId}/flights":{"get":{"summary":"List nest flights","description":"Lists flights across all Birds in the Nest, newest first. Filters combine with AND.\n\nPermissions required: `nest:flights:view`.","tags":["Flights"],"security":[{"API Key":[]}],"x-required-permissions":["nest:flights:view"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"minStartDate","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"maxStartDate","in":"query"},{"schema":{"type":"string","enum":["succeeded","failed","active","waiting","stopped"]},"required":false,"name":"status","in":"query"},{"schema":{"type":"string"},"required":false,"name":"name","in":"query"},{"schema":{"type":"integer","nullable":true,"minimum":0,"default":0},"required":false,"name":"pageIndex","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"required":false,"name":"pageSize","in":"query"}],"responses":{"200":{"description":"The paginated nest flights.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"birdId":{"type":"string"},"nestId":{"type":"string"},"status":{"type":"string","enum":["succeeded","failed","cancelled","active","waiting","stopped"]},"errorMessages":{"type":"string","nullable":true},"startDate":{"type":"string","format":"date-time"},"duration":{"type":"integer","description":"Seconds."},"birdName":{"type":"string","nullable":true}},"required":["id","birdId","nestId","status","errorMessages","startDate","duration","birdName"]}},"totalCount":{"type":"integer"}},"required":["items","totalCount"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/nests/{nestId}/flights/{flightId}":{"get":{"summary":"Get nest flight","description":"Gets a flight by id within the Nest without requiring its Bird id.\n\nPermissions required: `nest:flights:view`.","tags":["Flights"],"security":[{"API Key":[]}],"x-required-permissions":["nest:flights:view"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"flightId","in":"path"}],"responses":{"200":{"description":"The requested flight with its step execution history and full error detail.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"birdId":{"type":"string"},"nestId":{"type":"string"},"status":{"type":"string","enum":["succeeded","failed","cancelled","active","waiting","stopped"]},"errorMessages":{"type":"string","nullable":true},"startDate":{"type":"string","format":"date-time"},"duration":{"type":"integer","description":"Seconds."},"birdName":{"type":"string","nullable":true},"steps":{"type":"array","items":{"type":"object","properties":{"stepId":{"type":"string"},"state":{"type":"string","enum":["flying","succeeded","failed","stopped"]},"startTime":{"type":"string","nullable":true,"format":"date-time"},"endTime":{"type":"string","nullable":true,"format":"date-time"},"duration":{"type":"integer","description":"Seconds."},"errorMessage":{"type":"string","nullable":true},"loopStepId":{"type":"string","nullable":true},"loopIteration":{"type":"integer","nullable":true},"inputs":{"type":"object","nullable":true,"additionalProperties":{"nullable":true}},"outputs":{"type":"object","nullable":true,"additionalProperties":{"nullable":true}}},"required":["stepId","state","startTime","endTime","duration","errorMessage","loopStepId","loopIteration","inputs","outputs"]}}},"required":["id","birdId","nestId","status","errorMessages","startDate","duration","birdName","steps"],"description":"A flight with its ordered step execution history and full error detail."}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/nests/{nestId}/birds/{birdId}/flights":{"get":{"summary":"List flights","tags":["Flights"],"security":[{"API Key":[]}],"x-required-permissions":["nest:flights:view"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"birdId","in":"path"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"minStartDate","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"maxStartDate","in":"query"},{"schema":{"type":"string","enum":["succeeded","failed","cancelled","active"]},"required":false,"name":"status","in":"query"}],"responses":{"200":{"description":"The bird flights.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"birdId":{"type":"string"},"nestId":{"type":"string"},"status":{"type":"string","enum":["succeeded","failed","cancelled","active","waiting","stopped"]},"errorMessages":{"type":"string","nullable":true},"startDate":{"type":"string","format":"date-time"},"duration":{"type":"integer","description":"Seconds."}},"required":["id","birdId","nestId","status","errorMessages","startDate","duration"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `nest:flights:view`."}},"/v1/nests/{nestId}/birds/{birdId}/flights/{flightId}":{"get":{"summary":"Get flight","tags":["Flights"],"security":[{"API Key":[]}],"x-required-permissions":["nest:flights:view"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"birdId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"flightId","in":"path"}],"responses":{"200":{"description":"The requested flight.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"birdId":{"type":"string"},"nestId":{"type":"string"},"status":{"type":"string","enum":["succeeded","failed","cancelled","active","waiting","stopped"]},"errorMessages":{"type":"string","nullable":true},"startDate":{"type":"string","format":"date-time"},"duration":{"type":"integer","description":"Seconds."}},"required":["id","birdId","nestId","status","errorMessages","startDate","duration"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `nest:flights:view`."}},"/v1/nests/{nestId}/birds/{birdId}/flights/{flightId}/logs":{"get":{"summary":"Get flight logs","tags":["Flights"],"security":[{"API Key":[]}],"x-required-permissions":["nest:flights:view"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"birdId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"flightId","in":"path"},{"schema":{"type":"integer","nullable":true,"minimum":0},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":0,"exclusiveMinimum":true},"required":false,"name":"pageSize","in":"query"},{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"ascending","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"from","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"to","in":"query"}],"responses":{"200":{"description":"The flight logs.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"workspaceId":{"type":"integer"},"flowInstanceId":{"type":"string"},"initiator":{"type":"string","nullable":true},"message":{"type":"string","nullable":true},"eventType":{"type":"integer"},"durationInSeconds":{"type":"integer","nullable":true},"eventFailedBy":{"type":"string","nullable":true},"isSkipped":{"type":"boolean","nullable":true},"isRetried":{"type":"boolean","nullable":true},"sdkLogType":{"type":"string","nullable":true},"stepId":{"type":"string","nullable":true},"scope":{"type":"string","nullable":true},"errorType":{"type":"integer","nullable":true}},"required":["id","createdAt","workspaceId","flowInstanceId","eventType"]}},"totalCount":{"type":"integer"},"page":{"type":"integer"},"pageSize":{"type":"integer"}},"required":["items","totalCount","page","pageSize"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `nest:flights:view`."}},"/v1/nests/{nestId}/birds/{birdId}/flights/{flightId}/output":{"get":{"summary":"Get flight output","description":"Returns the output of the flight’s last step. Output fields vary according to that action’s schema.\n\nPermissions required: `nest:flights:view`.","tags":["Flights"],"security":[{"API Key":[]}],"x-required-permissions":["nest:flights:view"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"birdId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"flightId","in":"path"}],"responses":{"200":{"description":"The flight output.","content":{"application/json":{"schema":{"type":"object","properties":{"flightId":{"type":"string"},"stepId":{"type":"string"},"output":{"type":"object","additionalProperties":{"nullable":true}}},"required":["flightId","stepId","output"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/nests/{nestId}/apps":{"get":{"summary":"Search apps","tags":["Apps"],"security":[{"API Key":[]}],"description":"Includes connectionless utility apps, and totalCount matches the complete result set.\n\nPermissions required: none.","x-required-permissions":[],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","description":"Search parameter: searches app names for this value."},"required":false,"description":"Search parameter: searches app names for this value.","name":"name","in":"query"},{"schema":{"type":"string","enum":["NotConnected","NeedAttention","Connected"]},"required":false,"name":"status","in":"query"},{"schema":{"type":"integer","nullable":true,"minimum":0},"required":false,"name":"pageIndex","in":"query"},{"schema":{"type":"integer","minimum":0,"exclusiveMinimum":true},"required":false,"name":"pageSize","in":"query"}],"responses":{"200":{"description":"The nest apps.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","nullable":true,"items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"iconPath":{"type":"string","nullable":true},"connectionStatus":{"type":"string","enum":["NotConnected","NeedAttention","Connected"]},"access":{"type":"string","enum":["Custom","Public"]},"externalPluginId":{"type":"string","nullable":true},"version":{"type":"string","format":"date-time"}},"required":["id"]}},"totalCount":{"type":"integer"}}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/nests/{nestId}/apps/{appId}":{"get":{"summary":"Get app","tags":["Apps"],"security":[{"API Key":[]}],"x-required-permissions":[],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"appId","in":"path"}],"responses":{"200":{"description":"The requested app.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"iconPath":{"type":"string","nullable":true},"connectionStatus":{"type":"string","enum":["NotConnected","NeedAttention","Connected"]},"access":{"type":"string","enum":["Custom","Public"]},"externalPluginId":{"type":"string","nullable":true},"version":{"type":"string","format":"date-time"}},"required":["id"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: none."}},"/v1/nests/{nestId}/apps/{appId}/versions":{"get":{"summary":"List app versions","tags":["Apps"],"security":[{"API Key":[]}],"x-required-permissions":[],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"appId","in":"path"}],"responses":{"200":{"description":"The app versions.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string","nullable":true},"notes":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"}}}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: none."}},"/v1/nests/{nestId}/apps/{appId}/connections/schema":{"get":{"summary":"Get connection schema","tags":["Apps"],"security":[{"API Key":[]}],"x-required-permissions":[],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"appId","in":"path"}],"responses":{"200":{"description":"The connection schema.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"displayName":{"type":"string","nullable":true},"typeId":{"type":"integer"},"authenticationType":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[1]}],"description":"0 uses token/key authentication and provides required connection inputs; 1 uses OAuth and can only be connected through the UI."},"definition":{"type":"array","nullable":true,"items":{"type":"object","properties":{"name":{"type":"string"},"displayName":{"type":"string"},"description":{"type":"string","nullable":true},"sensitive":{"type":"boolean"},"dataItems":{"type":"array","nullable":true,"items":{"type":"object","properties":{"value":{"type":"string"},"name":{"type":"string"}},"required":["value","name"]},"description":"The finite values permitted for this input, or null when the input accepts any value."}},"required":["name","displayName","description","sensitive","dataItems"]},"description":"The required inputs for creating a connection, or null for OAuth connections."}}}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: none."}},"/v1/nests/{nestId}/apps/{appId}/connections":{"get":{"summary":"List app connections","tags":["Apps"],"security":[{"API Key":[]}],"x-required-permissions":["nest:connections:view"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"appId","in":"path"},{"schema":{"type":"string","enum":["Connected","Disconnected"]},"required":false,"name":"status","in":"query"}],"responses":{"200":{"description":"The app connections.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string","nullable":true},"isValid":{"type":"boolean","nullable":true},"isAvailable":{"type":"boolean"},"typeId":{"type":"integer"},"connectedAt":{"type":"string","nullable":true,"format":"date-time"},"errorMessage":{"type":"string","nullable":true}},"required":["id"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `nest:connections:view`."},"post":{"summary":"Create app connection","tags":["Apps"],"security":[{"API Key":[]}],"x-required-permissions":["nest:connections:manage"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"appId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"typeId":{"type":"integer","description":"The typeId from a connection-schema entry with authenticationType 0. OAuth entries (authenticationType 1) cannot be connected through the API."},"appConfiguration":{"type":"object","nullable":true,"additionalProperties":{"type":"string"},"description":"An object whose keys are input names from the connection schema and whose values are the corresponding connection values."}},"required":["name","typeId"]}}}},"responses":{"200":{"description":"The created connection.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string","nullable":true},"isValid":{"type":"boolean","nullable":true},"isAvailable":{"type":"boolean"},"typeId":{"type":"integer"},"connectedAt":{"type":"string","nullable":true,"format":"date-time"},"errorMessage":{"type":"string","nullable":true}},"required":["id"]}}}},"400":{"description":"Blackbird rejected the request.","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `nest:connections:manage`."}},"/v1/nests/{nestId}/apps/{appId}/logs":{"get":{"summary":"Get app connection logs","tags":["Apps"],"security":[{"API Key":[]}],"x-required-permissions":["nest:connections:view"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"appId","in":"path"},{"schema":{"type":"integer","nullable":true,"minimum":0},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":0,"exclusiveMinimum":true},"required":false,"name":"pageSize","in":"query"},{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"ascending","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"from","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"to","in":"query"},{"schema":{"type":"string","enum":["Established","Updated","Renamed","Deleted","Disconnected"]},"required":false,"name":"eventType","in":"query"}],"responses":{"200":{"description":"The app connection logs.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","nullable":true,"items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"connectionName":{"type":"string","nullable":true},"eventType":{"type":"string","enum":["Established","Updated","Renamed","Deleted","Disconnected"]},"initiator":{"type":"string","nullable":true},"message":{"type":"string","nullable":true}},"required":["id","createdAt"]}},"totalCount":{"type":"integer"},"page":{"type":"integer"},"pageSize":{"type":"integer"}}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `nest:connections:view`."}},"/v1/nests/{nestId}/apps/{appId}/connections/{connectionId}":{"put":{"summary":"Update app connection","tags":["Apps"],"security":[{"API Key":[]}],"x-required-permissions":["nest:connections:manage"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"appId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"connectionId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","nullable":true},"typeId":{"type":"integer","description":"The typeId from a connection-schema entry with authenticationType 0. OAuth entries (authenticationType 1) cannot be connected through the API."},"appConfiguration":{"type":"object","nullable":true,"additionalProperties":{"type":"string"},"description":"An object whose keys are input names from the connection schema and whose values are the corresponding connection values."}},"required":["typeId"]}}}},"responses":{"204":{"description":"The connection was updated."},"400":{"description":"Blackbird rejected the request.","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `nest:connections:manage`."},"delete":{"summary":"Delete app connection","tags":["Apps"],"security":[{"API Key":[]}],"x-required-permissions":["nest:connections:manage"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"appId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"connectionId","in":"path"}],"responses":{"204":{"description":"The connection was deleted."},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `nest:connections:manage`."}},"/v1/nests/{nestId}/apps/{appId}/actions":{"get":{"summary":"List app actions","tags":["Apps"],"security":[{"API Key":[]}],"x-required-permissions":[],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"appId","in":"path"}],"responses":{"200":{"description":"The app actions.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string","nullable":true},"externalFullName":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"group":{"type":"string","nullable":true}}}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: none."}},"/v1/nests/{nestId}/apps/{appId}/actions/{actionId}/schema":{"get":{"summary":"Get action schema","tags":["Apps"],"security":[{"API Key":[]}],"x-required-permissions":[],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"appId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"actionId","in":"path"},{"schema":{"type":"string"},"required":false,"name":"version","in":"query"}],"responses":{"200":{"description":"The action schema.","content":{"application/json":{"schema":{"type":"object","properties":{"rootElement":{"type":"object","properties":{"definition":{"type":"object","properties":{"name":{"type":"string","description":"Internal action or event name. Informational; use the selected list item’s externalFullName as action.name or event.name in a Bird definition."},"action":{"type":"string","description":"Human-readable action or event label. Informational; do not use this as action.name or event.name in a Bird definition."},"values":{"type":"object","additionalProperties":{"nullable":true}},"groupName":{"type":"string","nullable":true},"invocableInfo":{"type":"object","properties":{"methodName":{"type":"string"},"declaringTypeFullName":{"type":"string"}},"required":["methodName","declaringTypeFullName"]},"actionDescription":{"type":"string"}},"required":["name","action","values","groupName","invocableInfo","actionDescription"],"additionalProperties":{"nullable":true}},"inputParameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"subType":{"type":"string"},"dataSource":{"type":"object","nullable":true,"properties":{"type":{"type":"integer","description":"Data-source kind when the app provides it. A missing type is valid and must not prevent schema discovery."},"declaringTypeFullName":{"type":"string"}},"required":["declaringTypeFullName"],"additionalProperties":{"nullable":true}},"isOptional":{"type":"boolean"},"description":{"type":"string","nullable":true},"displayName":{"type":"string"},"staticDataSource":{"nullable":true},"variableContentType":{"type":"integer"},"isSubscriptionDepends":{"type":"boolean"}},"required":["name","type","subType","dataSource","isOptional","description","displayName","variableContentType","isSubscriptionDepends"],"additionalProperties":{"nullable":true}}},"outputParameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"subType":{"type":"string"},"properties":{"type":"array","nullable":true,"items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"subType":{"type":"string"},"properties":{"nullable":true},"description":{"type":"string","nullable":true},"displayName":{"type":"string"},"variableContentType":{"type":"integer"}},"required":["name","type","subType","description","displayName","variableContentType"],"additionalProperties":{"nullable":true}}},"description":{"type":"string","nullable":true},"displayName":{"type":"string"},"variableContentType":{"type":"integer"}},"required":["name","type","subType","properties","description","displayName","variableContentType"],"additionalProperties":{"nullable":true}}},"blueprintItemInfo":{"type":"object","nullable":true,"properties":{"blueprintItem":{"type":"integer"},"blueprintItemCategory":{"type":"string"}},"required":["blueprintItem","blueprintItemCategory"]}},"required":["definition","inputParameters","outputParameters","blueprintItemInfo"],"additionalProperties":{"nullable":true}}},"required":["rootElement"],"additionalProperties":{"nullable":true}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: none."}},"/v1/nests/{nestId}/apps/{appId}/actions/{actionId}/inputs/{inputName}/options":{"post":{"summary":"Get action input options","tags":["Apps"],"security":[{"API Key":[]}],"description":"Returns the current selectable options for a KeyValue dynamic action input. Provide a connection for connected apps and sibling values when the data source depends on them. File/folder data sources are not supported.\n\nPermissions required: `nest:birds:manage`.","x-required-permissions":["nest:birds:manage"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"appId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"actionId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"inputName","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"connection":{"type":"integer","description":"Connection id used to invoke the data source. Omit it for connectionless apps."},"values":{"type":"object","additionalProperties":{"nullable":true},"description":"Raw values already selected for sibling input parameters, keyed by their schema names."},"search":{"type":"string","description":"Best-effort text passed to the app data source to narrow its options."}}}}}},"responses":{"200":{"description":"The available input options.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"displayName":{"type":"string","nullable":true}},"required":["value","displayName"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/nests/{nestId}/apps/{appId}/events":{"get":{"summary":"List app events","tags":["Apps"],"security":[{"API Key":[]}],"x-required-permissions":[],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"appId","in":"path"}],"responses":{"200":{"description":"The app events.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string","nullable":true},"externalFullName":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"group":{"type":"string","nullable":true},"multipleUse":{"type":"boolean"},"isAbleToUse":{"type":"boolean"}}}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: none."}},"/v1/nests/{nestId}/apps/{appId}/events/{eventId}/schema":{"get":{"summary":"Get event schema","tags":["Apps"],"security":[{"API Key":[]}],"x-required-permissions":[],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"appId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"eventId","in":"path"},{"schema":{"type":"string"},"required":false,"name":"version","in":"query"}],"responses":{"200":{"description":"The event schema.","content":{"application/json":{"schema":{"type":"object","properties":{"definition":{"type":"object","properties":{"name":{"type":"string","description":"Internal action or event name. Informational; use the selected list item’s externalFullName as action.name or event.name in a Bird definition."},"action":{"type":"string","description":"Human-readable action or event label. Informational; do not use this as action.name or event.name in a Bird definition."},"values":{"type":"object","additionalProperties":{"nullable":true}},"groupName":{"type":"string","nullable":true},"invocableInfo":{"type":"object","properties":{"methodName":{"type":"string"},"declaringTypeFullName":{"type":"string"}},"required":["methodName","declaringTypeFullName"]},"actionDescription":{"type":"string"}},"required":["name","action","values","groupName","invocableInfo","actionDescription"],"additionalProperties":{"nullable":true}},"webhookType":{"type":"integer"},"inputParameters":{"type":"array","nullable":true,"items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"subType":{"type":"string"},"dataSource":{"type":"object","nullable":true,"properties":{"type":{"type":"integer","description":"Data-source kind when the app provides it. A missing type is valid and must not prevent schema discovery."},"declaringTypeFullName":{"type":"string"}},"required":["declaringTypeFullName"],"additionalProperties":{"nullable":true}},"isOptional":{"type":"boolean"},"description":{"type":"string","nullable":true},"displayName":{"type":"string"},"staticDataSource":{"nullable":true},"variableContentType":{"type":"integer"},"isSubscriptionDepends":{"type":"boolean"}},"required":["name","type","subType","dataSource","isOptional","description","displayName","variableContentType","isSubscriptionDepends"],"additionalProperties":{"nullable":true}}},"outputParameters":{"type":"array","nullable":true,"items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"subType":{"type":"string"},"properties":{"type":"array","nullable":true,"items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"subType":{"type":"string"},"properties":{"nullable":true},"description":{"type":"string","nullable":true},"displayName":{"type":"string"},"variableContentType":{"type":"integer"}},"required":["name","type","subType","description","displayName","variableContentType"],"additionalProperties":{"nullable":true}}},"description":{"type":"string","nullable":true},"displayName":{"type":"string"},"variableContentType":{"type":"integer"}},"required":["name","type","subType","properties","description","displayName","variableContentType"],"additionalProperties":{"nullable":true}}},"blueprintItemInfo":{"type":"object","nullable":true,"properties":{"blueprintItem":{"type":"integer"},"blueprintItemCategory":{"type":"string"}},"required":["blueprintItem","blueprintItemCategory"]},"afterSubscriptionEventInfo":{"nullable":true},"renewableSubscriptionPeriodMinutes":{"type":"integer","nullable":true}},"required":["definition","webhookType","blueprintItemInfo"],"additionalProperties":{"nullable":true}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: none."}},"/v1/nests/{nestId}/apps/{appId}/events/{eventId}/inputs/{inputName}/options":{"post":{"summary":"Get event input options","tags":["Apps"],"security":[{"API Key":[]}],"description":"Returns the current selectable options for a KeyValue dynamic event input. Provide a connection for connected apps and sibling values when the data source depends on them. File/folder data sources are not supported.\n\nPermissions required: `nest:birds:manage`.","x-required-permissions":["nest:birds:manage"],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"nestId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"appId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"eventId","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"inputName","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"connection":{"type":"integer","description":"Connection id used to invoke the data source. Omit it for connectionless apps."},"values":{"type":"object","additionalProperties":{"nullable":true},"description":"Raw values already selected for sibling input parameters, keyed by their schema names."},"search":{"type":"string","description":"Best-effort text passed to the app data source to narrow its options."}}}}}},"responses":{"200":{"description":"The available input options.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"displayName":{"type":"string","nullable":true}},"required":["value","displayName"]}}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/notifications":{"get":{"tags":["Notifications"],"summary":"Get notifications","security":[{"API Key":[]}],"x-required-permissions":["notifications:view"],"parameters":[{"schema":{"type":"integer","nullable":true,"minimum":0},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":0,"exclusiveMinimum":true},"required":false,"name":"pageSize","in":"query"},{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"ascending","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"from","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"to","in":"query"}],"responses":{"200":{"description":"The Blackbird notifications.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"workspaceId":{"type":"integer"},"entityId":{"type":"integer"},"entityName":{"type":"string"},"entityType":{"type":"string"},"eventType":{"type":"string"},"isSeen":{"type":"boolean"},"message":{"type":"string"}},"required":["id","createdAt","entityId","entityName","entityType","eventType","isSeen"]}},"totalCount":{"type":"integer"},"page":{"type":"integer"},"pageSize":{"type":"integer"}},"required":["items","totalCount","page","pageSize"]}}}},"400":{"description":"A downstream service rejected the request.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"401":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"The API key is not authorized to access this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"The requested downstream resource was not found.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"409":{"description":"The request conflicts with the current resource state.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},{"type":"object","properties":{"title":{"type":"string","nullable":true},"status":{"type":"integer","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}}}]}}}},"422":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["code","path","message"]}}},"required":["error","issues"]}}}},"429":{"description":"The API key or downstream service rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"An unexpected server or downstream error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"502":{"description":"A downstream service returned an unexpected response.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Authentication or a downstream service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}},"description":"Permissions required: `notifications:view`."}}},"x-operatorCatalog":{"_about":"Grounded in WorkflowService OperatorCatalogV1/OperatorParameterCatalogV1 (schema v1). Each entry: what the operator does, the exact input parameter names to use as keys in the step's `inputs` map, whether each is required, and how the output is exposed. Operators marked \"notDescribed\" exist in the catalog but have no editor/converter support or no statically enumerable parameters - avoid them when authoring.","variable.create":{"description":"Creates a flight variable. The variable NAME comes from the output declaration, not from an input. Exactly ONE input is allowed (the initial value; the key name is free). A legacy input keyed 'name' is tolerated but ignored and dropped; two or more value inputs are rejected.","inputs":[{"name":"value","type":null,"required":false,"description":"Value to assign to the new variable (any binding)."}],"output":"Required in practice: output.name is the variable name, output.type its type (string, integer, array, object, ...). Declare the produced value via the step's `output` {name, type}; later steps reference it with a step binding {source:'step', stepId: <this step id>, output: <output.name>}.","example":{"id":"greet","type":"operator","operator":"variable.create","inputs":{"value":{"source":"custom","value":"hello"}},"output":{"name":"greeting","type":"string"},"next":null}},"variable.update":{"description":"Updates an existing flight variable.","inputs":[{"name":"variable","type":null,"required":false,"description":"Reference to the variable being updated (typically a step binding to the creating step's output)."},{"name":"value","type":null,"required":false,"description":"New value."}],"output":"Declare the produced value via the step's `output` {name, type}; later steps reference it with a step binding {source:'step', stepId: <this step id>, output: <output.name>}."},"array.length":{"description":"Counts items across ALL inputs, ordered by key: each array-valued input contributes its items (flattened one level), each scalar input counts as 1. With the conventional single collection input this is simply the array length.","inputs":[{"name":"blackbird_operator_arrayVariable","type":"array","required":true,"description":"Collection whose length is measured.","contentType":"collection"}],"output":"Integer result. Declare it via the step's `output` {name, type:'integer'}; later steps reference it with a step binding.","note":"Collection-typed inputs are conventionally bound as an object binding wrapping the source, e.g. { source: 'object', items: [ { source: 'step', stepId: 'x', output: 'value' } ] }.","example":{"id":"countTags","type":"operator","operator":"array.length","inputs":{"blackbird_operator_arrayVariable":{"source":"object","items":[{"source":"step","stepId":"splitTags","output":"tags"}]}},"output":{"name":"tagCount","type":"integer"},"next":null}},"string.length":{"description":"Length of a text value. The engine measures the FIRST input (by key order); supply exactly one.","inputs":[{"name":"blackbird_operator_stringVariable","type":"string","required":true,"description":"Text whose length is measured."}],"output":"Integer result. Declare it via the step's `output` {name, type:'integer'}; later steps reference it with a step binding."},"string.split":{"description":"Splits text on a separator into a collection of strings.","inputs":[{"name":"blackbird_operator_stringVariable","type":"string","required":true,"description":"Text to split."},{"name":"splitted_string","type":"string","required":true,"description":"Separator to split on - conventionally a custom binding, e.g. { source: 'custom', value: ',' }. Defaults to a single space when empty."}],"output":"Array-of-strings result. Declare it via the step's `output` {name, type:'array'}; iterate it with a loop step or measure it with array.length.","example":{"id":"splitTags","type":"operator","operator":"string.split","inputs":{"blackbird_operator_stringVariable":{"source":"step","stepId":"prev","output":"csvTags"},"splitted_string":{"source":"custom","value":","}},"output":{"name":"tags","type":"array"},"next":null}},"arithmetic.add":{"description":"Adds two numbers.","inputs":[{"name":"blackbird_operator_variable1","type":"integer","required":true,"description":"First operand."},{"name":"blackbird_operator_variable2","type":"integer","required":true,"description":"Second operand."}],"output":"Declare the produced value via the step's `output` {name, type}; later steps reference it with a step binding {source:'step', stepId: <this step id>, output: <output.name>}."},"arithmetic.subtract":{"description":"Subtracts the second operand.","inputs":[{"name":"blackbird_operator_variable1","type":"integer","required":true,"description":"Value to subtract from."},{"name":"blackbird_operator_variable2","type":"integer","required":true,"description":"Value to subtract."}],"output":"Declare the produced value via the step's `output` {name, type}; later steps reference it with a step binding {source:'step', stepId: <this step id>, output: <output.name>}."},"arithmetic.multiply":{"description":"Multiplies two numbers.","inputs":[{"name":"blackbird_operator_variable1","type":"integer","required":true,"description":"First factor."},{"name":"blackbird_operator_variable2","type":"integer","required":true,"description":"Second factor."}],"output":"Declare the produced value via the step's `output` {name, type}; later steps reference it with a step binding {source:'step', stepId: <this step id>, output: <output.name>}."},"arithmetic.divide":{"description":"Divides the first operand.","inputs":[{"name":"blackbird_operator_variable1","type":"integer","required":true,"description":"Dividend."},{"name":"blackbird_operator_variable2","type":"integer","required":true,"description":"Divisor; must not be zero."}],"output":"Declare the produced value via the step's `output` {name, type}; later steps reference it with a step binding {source:'step', stepId: <this step id>, output: <output.name>}."},"arithmetic.mod":{"description":"Remainder of integer division.","inputs":[{"name":"blackbird_operator_variable1","type":"integer","required":true,"description":"Dividend."},{"name":"blackbird_operator_variable2","type":"integer","required":true,"description":"Divisor."}],"output":"Declare the produced value via the step's `output` {name, type}; later steps reference it with a step binding {source:'step', stepId: <this step id>, output: <output.name>}."},"logical.and":{"description":"Logical AND over ALL inputs, ordered by key - n-ary, not just binary (the two blackbird_operator_variable1/2 names are the editor's convention; any keys work). Tri-state: false as soon as ANY input is false; true only when ALL inputs are true; otherwise the result is null (inputs that cannot be read as boolean - strings parse leniently, numbers are truthy when non-zero - become null).","inputs":[{"name":"blackbird_operator_variable1","type":"boolean","required":true,"description":"First operand."},{"name":"blackbird_operator_variable2","type":"boolean","required":true,"description":"Second operand."}],"output":"Boolean (nullable) result. Declare it via the step's `output` {name, type:'boolean'}; later steps reference it with a step binding."},"logical.or":{"description":"Logical OR over ALL inputs, ordered by key - n-ary, not just binary (the two blackbird_operator_variable1/2 names are the editor's convention; any keys work). Tri-state: true as soon as ANY input is true; false only when ALL inputs are false; otherwise the result is null (inputs that cannot be read as boolean - strings parse leniently, numbers are truthy when non-zero - become null).","inputs":[{"name":"blackbird_operator_variable1","type":"boolean","required":true,"description":"First operand."},{"name":"blackbird_operator_variable2","type":"boolean","required":true,"description":"Second operand."}],"output":"Boolean (nullable) result. Declare it via the step's `output` {name, type:'boolean'}; later steps reference it with a step binding."},"entityLink.set":{"description":"Links two business entities (e.g. a greeting to an order) so they can be looked up later.","inputs":[{"name":"blackbird_operator_entity_name","type":"string","required":true,"description":"Name of the entity to link from."},{"name":"blackbird_operator_entity_value","type":null,"required":true,"description":"Identifier of the entity to link from."},{"name":"blackbird_operator_link_entity_name","type":"string","required":true,"description":"Name of the entity to link to."},{"name":"blackbird_operator_link_entity_value","type":null,"required":true,"description":"Identifier of the entity to link to."}],"example":{"id":"link1","type":"operator","operator":"entityLink.set","inputs":{"blackbird_operator_entity_name":{"source":"custom","value":"greeting"},"blackbird_operator_entity_value":{"source":"step","stepId":"greet","output":"greeting"},"blackbird_operator_link_entity_name":{"source":"custom","value":"order"},"blackbird_operator_link_entity_value":{"source":"custom","value":"ORD-1"}},"next":null}},"entityLink.get":{"description":"Looks up the single linked entity value for an entity.","inputs":[{"name":"blackbird_operator_entity_name","type":"string","required":true,"description":"Name of the entity to look up links for."},{"name":"blackbird_operator_entity_value","type":null,"required":true,"description":"Identifier of the entity to look up links for."},{"name":"blackbird_operator_link_entity_name","type":"string","required":true,"description":"Name of the linked entity to return."}],"output":"Declare the produced value via the step's `output` {name, type}; later steps reference it with a step binding {source:'step', stepId: <this step id>, output: <output.name>}."},"entityLink.getMany":{"description":"Looks up all linked entity values for an entity; produces a collection.","inputs":[{"name":"blackbird_operator_entity_name","type":"string","required":true,"description":"Name of the entity to look up links for."},{"name":"blackbird_operator_entity_value","type":null,"required":true,"description":"Identifier of the entity to look up links for."},{"name":"blackbird_operator_link_entity_name","type":"string","required":true,"description":"Name of the linked entity to return."}],"output":"Declare the produced value via the step's `output` {name, type}; later steps reference it with a step binding {source:'step', stepId: <this step id>, output: <output.name>}."},"convert.single":{"description":"Converts one value between formats using a conversion library (see the Libraries feature).","inputs":[{"name":"blackbird_operator_library_id","type":"string","required":true,"description":"Identifier of the conversion library."},{"name":"blackbird_operator_library_source","type":"string","required":true,"description":"Source format."},{"name":"blackbird_operator_library_destination","type":"string","required":true,"description":"Destination format."},{"name":"blackbird_operator_library_value","type":null,"required":true,"description":"Value to convert."}],"output":"Declare the produced value via the step's `output` {name, type}; later steps reference it with a step binding {source:'step', stepId: <this step id>, output: <output.name>}."},"convert.multiple":{"description":"Converts a collection of values between formats using a conversion library.","inputs":[{"name":"blackbird_operator_library_id","type":"string","required":true,"description":"Identifier of the conversion library."},{"name":"blackbird_operator_library_source","type":"string","required":true,"description":"Source format."},{"name":"blackbird_operator_library_destination","type":"string","required":true,"description":"Destination format."},{"name":"blackbird_operator_library_value","type":null,"required":true,"description":"Values to convert.","contentType":"collection"}],"output":"Declare the produced value via the step's `output` {name, type}; later steps reference it with a step binding {source:'step', stepId: <this step id>, output: <output.name>}."},"flow.endLoop":{"description":"Breaks out of the enclosing loop. Takes no inputs.","inputs":[],"parameterNote":"Set the step's `loopId` property to the api step id of the loop to end; when omitted it is inferred from the enclosing loop scope.","conditionNote":"CONDITION: the engine and the UI editor support an optional condition on this operator (\"only when X\"), but the v1 API definition dialect does NOT carry it - GET omits any condition set in the UI, and PUT always publishes the operator as UNCONDITIONAL. Round-tripping (GET -> PUT) a UI-authored bird whose end operator has a condition therefore silently strips that condition - check for this before PUTting birds authored in the editor. To express a conditional break/termination via the API, use a decision step: route the matching branch to this flow.* step and the otherwise branch onward.","example":{"id":"stopEarly","type":"operator","operator":"flow.endLoop","loopId":"myLoop"}},"flow.endFlight":{"description":"Terminates the flight immediately. Takes no inputs and produces no output.","inputs":[],"conditionNote":"CONDITION: the engine and the UI editor support an optional condition on this operator (\"only when X\"), but the v1 API definition dialect does NOT carry it - GET omits any condition set in the UI, and PUT always publishes the operator as UNCONDITIONAL. Round-tripping (GET -> PUT) a UI-authored bird whose end operator has a condition therefore silently strips that condition - check for this before PUTting birds authored in the editor. To express a conditional break/termination via the API, use a decision step: route the matching branch to this flow.* step and the otherwise branch onward."},"_patterns":{"conditionalBreak":{"description":"API-dialect equivalent of a conditional loop break (since flow.* operators cannot carry a condition through the API):","steps":[{"id":"check","type":"decision","branches":[{"name":"stop","when":{"left":{"source":"loopItem","loopId":"myLoop"},"operator":"equals","right":{"source":"custom","value":3}},"otherwise":false,"next":"break"},{"name":"continue","otherwise":true}]},{"id":"break","type":"operator","operator":"flow.endLoop","loopId":"myLoop"}]}}}}