{"owner":"scalar","repo":"cli","hasSkills":true,"totalSkillsCount":4,"totalTokensCount":11966,"categories":["plugin-manifest","anthropic-skill","cursor-rule"],"hasMcp":false,"mcpConfig":null,"found":["packages/cli/README.md","packages/cli/openapi.json","packages/mock-server/README.md",".cursorrules (ankra-cli.mdc)"],"skills":{"packages/cli/README.md":"# Scalar CLI\n\nCommand-line interface to work with OpenAPI files\n\n## Installation\n\nIf you really want to become friends you should install the CLI:\n\n```bash\nnpm -g install @scalar/cli\n```\n\nOtherwise just prefix all commands with `npx @scalar/cli` instead of `scalar`. That’s fine, too.\n\n## Commands\n\n### format\n\nThe given JSON file will be formatted with Prettier.\n\n```bash\nscalar format\n```\n\n### validate\n\nTo check whether your OpenAPI file adheres to the Swagger 2.0, OpenAPI 3.0 or OpenAPI 3.1 specification, run the following command:\n\n```bash\nscalar validate\n```\n\n### share\n\nTo quickly share an OpenAPI file or reference with someone, you can use the share command:\n\n```bash\nscalar share\n```\n\nThis will upload your OpenAPI file to the [Scalar Sandbox](https://sandbox.scalar.com/) to give you a public reference URL and a public URL to your OpenAPI JSON file.\n\n### mock\n\nWe can even mock your API, and it’s just one command:\n\n```bash\nscalar mock\n```\n\nThis will boot up a server on port 3000 which gives you an API returning the dummy data according to your schema.\n\nIf you’d like to watch for file changes (to the OpenAPI file), do it like this:\n\n```bash\nscalar mock openapi.json --watch\n```\n\nYou can also change the port like this:\n\n```bash\nscalar mock openapi.json --watch --port 8080\n```\n\n### bundle\n\nSome OpenAPI files reference other files from the file system or an URL. You can bundle those files and make them a single file:\n\n```bash\nscalar bundle openapi.json --output bundle.json\n```\n\nIf you don’t provide an `output` file name, the input file will be overwritten.\n\n### init\n\nIf you’re tired of passing the file name again and again, just configure it once:\n\n```bash\nscalar init\n```\n\nThis will create a `scalar.config.json` file for you. All commands will use the configured OpenAPI file by default.\n\n## Options\n\n### --version\n\nIf you want to check which version of the CLI is installed, just run this:\n\n```bash\nscalar --version\n```\n\n### --help\n\n```bash\nscalar --help\n```\n\n## Development\n\nSet up the development environment:\n\n```bash\npnpm install\npnpm @scalar/cli --version\n```\n\nTo symlink the package and use it globally on your machine:\n\n```bash\npnpm cli:link\nscalar --version\n```\n","packages/cli/openapi.json":"{\n  \"openapi\": \"3.0.0\",\n  \"info\": {\n    \"title\": \"Outline API\",\n    \"description\": \"# Introduction\\n\\nThe Outline API is structured in an RPC style. It enables you to\\nprogramatically interact with all aspects of Outline’s data – in fact, the\\nmain application is built on exactly the same API.\\n\\nThe API structure is available as an\\n[openapi specification](https://github.com/outline/openapi) if that’s your\\njam – it can be used to generate clients for most programming languages.\\n\\n# Making requests\\n\\nOutline’s API follows simple RPC style conventions where each API endpoint is\\na method on `https://app.getoutline.com/api/method`. Both `GET` and `POST`\\nmethods are supported but it’s recommended that you make all call using POST.\\nOnly HTTPS is supported and all response payloads are JSON.\\n\\nWhen making `POST` requests, request parameters are parsed depending on\\nContent-Type header. To make a call using JSON payload, you must pass\\nContent-Type: application/json header, here’s an example using CURL:\\n\\n```\\ncurl https://app.getoutline.com/api/documents.info \\\\\\n-X 'POST' \\\\\\n-H 'authorization: Bearer MY_API_KEY' \\\\\\n-H 'content-type: application/json' \\\\\\n-H 'accept: application/json' \\\\\\n-d '{\\\"id\\\": \\\"outline-api-NTpezNwhUP\\\"}'\\n```\\n\\nOr, with JavaScript:\\n\\n```javascript\\nconst response = await fetch(\\\"https://app.getoutline.com/api/documents.info\\\", {\\n  method: \\\"POST\\\",\\n  headers: {\\n    Accept: \\\"application/json\\\",\\n    \\\"Content-Type\\\": \\\"application/json\\\",\\n    Authorization: \\\"Bearer MY_API_KEY\\\"\\n  }\\n})\\n\\nconst body = await response.json();\\nconst document = body.data;\\n```\\n\\n# Authentication\\n\\nTo access API endpoints, you must provide a valid API key. You can create new\\nAPI keys in your [account settings](https://app.getoutline.com/settings). Be\\ncareful when handling your keys as they give access to all of your documents,\\nyou should treat them like passwords and they should never be committed to\\nsource control.\\n\\nTo authenticate with API, you can supply the API key as a header\\n(`Authorization: Bearer YOUR_API_KEY`) or as part of the payload using `token`\\nparameter. Header based authentication is highly recommended so that your keys\\ndon’t accidentally leak into logs.\\n\\nSome API endpoints allow unauthenticated requests for public resources and\\nthey can be called without an API key.\\n\\n# Errors\\n\\nAll successful API requests will be returned with a 200 or 201 status code\\nand `ok: true` in the response payload. If there’s an error while making the\\nrequest, the appropriate status code is returned with the error message:\\n\\n```\\n{\\n  \\\"ok\\\": false,\\n  \\\"error\\\": \\\"Not Found\\\"\\n}\\n```\\n\\n# Pagination\\n\\nMost top-level API resources have support for \\\"list\\\" API methods. For instance,\\nyou can list users, documents, and collections. These list methods share\\ncommon parameters, taking both `limit` and `offset`.\\n\\nResponses will echo these parameters in the root `pagination` key, and also\\ninclude a `nextPath` key which can be used as a handy shortcut to fetch the\\nnext page of results. For example:\\n\\n```\\n{\\n  ok: true,\\n  status: 200,\\n  data: […],\\n  pagination: {\\n    limit: 25,\\n    offset: 0,\\n    nextPath: \\\"/api/documents.list?limit=25&offset=25\\\"\\n  }\\n}\\n```\\n\\n# Policies\\n\\nMany API resources have associated \\\"policies\\\", these objects describe the\\ncurrent API keys authorized actions related to an individual resource. It\\nshould be noted that the policy \\\"id\\\" is identical to the resource it is\\nrelated to, policies themselves do not have unique identifiers.\\n\\nFor most usecases of the API, policies can be safely ignored. Calling\\nunauthorized methods will result in the appropriate response code – these are\\nused in the main Outline UI to adjust which elements are visible.\\n\",\n    \"version\": \"0.1.0\",\n    \"contact\": { \"email\": \"hello@getoutline.com\" }\n  },\n  \"servers\": [\n    { \"url\": \"https://app.getoutline.com/api\", \"description\": \"Production\" }\n  ],\n  \"security\": [{ \"http\": [] }],\n  \"tags\": [\n    {\n      \"name\": \"Attachments\",\n      \"description\": \"`Attachments` represent a file uploaded to cloud storage. They are created\\nbefore the upload happens from the client and store all the meta information\\nsuch as file type, size, and location.\\n\"\n    },\n    {\n      \"name\": \"Auth\",\n      \"description\": \"`Auth` represents the current API Keys authentication details. It can be\\nused to check that a token is still valid and load the IDs for the current\\nuser and team.\\n\"\n    },\n    {\n      \"name\": \"Collections\",\n      \"description\": \"`Collections` represent grouping of documents in the knowledge base, they\\noffer a way to structure information in a nested hierarchy and a level\\nat which read and write permissions can be granted to individual users or\\ngroups of users.\\n\"\n    },\n    {\n      \"name\": \"Comments\",\n      \"description\": \"`Comments` represent a comment either on a selection of text in a document\\nor on the document itself.\\n\"\n    },\n    {\n      \"name\": \"Documents\",\n      \"description\": \"`Documents` are what everything else revolves around. A document represents\\na single page of information and always returns the latest version of the\\ncontent. Documents are stored in [Markdown](https://spec.commonmark.org/)\\nformatting.\\n\"\n    },\n    {\n      \"name\": \"Events\",\n      \"description\": \"`Events` represent an artifact of an action. Whether it is creating a user,\\nediting a document, changing permissions, or any other action – an event\\nis created that can be used as an audit trail or activity stream.\\n\"\n    },\n    {\n      \"name\": \"FileOperations\",\n      \"description\": \"`FileOperations` represent background jobs for importing or exporting files.\\nYou can query the file operation to find the state of progress and any\\nresulting output.\\n\"\n    },\n    {\n      \"name\": \"Groups\",\n      \"description\": \"`Groups` represent a list of users that logically belong together, for\\nexample there might be groups for each department in your organization.\\nGroups can be granted access to collections with read or write permissions.\\n\"\n    },\n    {\n      \"name\": \"Revisions\",\n      \"description\": \"`Revisions` represent a snapshop of a document at a point in time. They\\nare used to keep tracking of editing and collaboration history – a document\\ncan also be restored to a previous revision if neccessary.\\n\"\n    },\n    {\n      \"name\": \"Shares\",\n      \"description\": \"`Shares` represent authorization to view a document without being a member\\nof the team. Shares are created in order to give access to documents publicly.\\nEach user that shares a document will have a unique share object.\\n\"\n    },\n    {\n      \"name\": \"Users\",\n      \"description\": \"`Users` represent an individual with access to the knowledge base. Users\\ncan be created automatically when signing in with SSO or when a user is\\ninvited via email.\\n\"\n    },\n    {\n      \"name\": \"Views\",\n      \"description\": \"`Views` represent a compressed record of an individual users views of a\\ndocument. Individual views are not recorded but a first, last and total\\nis kept per user.\\n\"\n    }\n  ],\n  \"paths\": {\n    \"/attachments.create\": {\n      \"post\": {\n        \"tags\": [\"Attachments\"],\n        \"summary\": \"Create an attachment\",\n        \"description\": \"Creating an attachment object creates a database record and returns the inputs needed to generate a signed url and upload the file from the client to cloud storage.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"name\": {\n                    \"type\": \"string\",\n                    \"example\": \"image.png\"\n                  },\n                  \"documentId\": {\n                    \"type\": \"string\",\n                    \"description\": \"Identifier for the associated document, if any.\",\n                    \"format\": \"uuid\"\n                  },\n                  \"contentType\": {\n                    \"type\": \"string\",\n                    \"example\": \"image/png\"\n                  },\n                  \"size\": {\n                    \"type\": \"number\",\n                    \"description\": \"Size of the file attachment in bytes.\"\n                  }\n                },\n                \"required\": [\"name\", \"contentType\", \"size\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"maxUploadSize\": {\n                          \"type\": \"number\"\n                        },\n                        \"uploadUrl\": {\n                          \"type\": \"string\",\n                          \"format\": \"uri\"\n                        },\n                        \"form\": { \"type\": \"object\" },\n                        \"attachment\": {\n                          \"$ref\": \"#/components/schemas/Attachment\"\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/attachments.redirect\": {\n      \"post\": {\n        \"tags\": [\"Attachments\"],\n        \"summary\": \"Retrieve an attachment\",\n        \"description\": \"Load an attachment from where it is stored based on the id. If the attachment is private then a temporary, signed url with embedded credentials is generated on demand.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the attachment.\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"302\": { \"description\": \"The url for the attachment\" }\n        }\n      }\n    },\n    \"/attachments.delete\": {\n      \"post\": {\n        \"tags\": [\"Attachments\"],\n        \"summary\": \"Delete an attachment\",\n        \"description\": \"Deleting an attachment is permanant. It will not delete references or links to the attachment that may exist in your documents.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\",\n                    \"description\": \"Unique identifier for the attachment.\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/auth.info\": {\n      \"post\": {\n        \"tags\": [\"Auth\"],\n        \"summary\": \"Retrieve auth\",\n        \"description\": \"Retrieve authentication details for the current API key\",\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Auth\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" }\n        }\n      }\n    },\n    \"/auth.config\": {\n      \"post\": {\n        \"tags\": [\"Auth\"],\n        \"summary\": \"Retrieve auth config\",\n        \"description\": \"Retrieve authentication options\",\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"name\": {\n                          \"type\": \"string\",\n                          \"example\": \"Acme Inc\"\n                        },\n                        \"hostname\": {\n                          \"type\": \"string\",\n                          \"example\": \"acme-inc.getoutline.com\"\n                        },\n                        \"services\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                              \"id\": {\n                                \"type\": \"string\",\n                                \"example\": \"slack\"\n                              },\n                              \"name\": {\n                                \"type\": \"string\",\n                                \"example\": \"Slack\"\n                              },\n                              \"authUrl\": {\n                                \"type\": \"string\",\n                                \"example\": \"https://acme-inc.getoutline.com/auth/slack\"\n                              }\n                            }\n                          }\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    },\n    \"/collections.info\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Retrieve a collection\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the collection.\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Collection\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.documents\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Retrieve a collections document structure\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the collection.\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/NavigationNode\"\n                      },\n                      \"example\": []\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.list\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"List all collections\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"$ref\": \"#/components/schemas/Pagination\"\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Collection\"\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.create\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Create a collection\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"name\": {\n                    \"type\": \"string\",\n                    \"example\": \"Human Resources\"\n                  },\n                  \"description\": {\n                    \"type\": \"string\",\n                    \"example\": \"\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  },\n                  \"color\": {\n                    \"type\": \"string\",\n                    \"example\": \"#123123\"\n                  },\n                  \"private\": {\n                    \"type\": \"boolean\",\n                    \"example\": false\n                  }\n                },\n                \"required\": [\"name\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Collection\"\n                    },\n                    \"policies\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Policy\"\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.update\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Update a collection\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"name\": {\n                    \"type\": \"string\",\n                    \"example\": \"Human Resources\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  },\n                  \"description\": {\n                    \"type\": \"string\",\n                    \"example\": \"\"\n                  },\n                  \"color\": {\n                    \"type\": \"string\",\n                    \"example\": \"#123123\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Collection\"\n                    },\n                    \"policies\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Policy\"\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.add_user\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Add a collection user\",\n        \"description\": \"This method allows you to add a user membership to the specified collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"userId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  }\n                },\n                \"required\": [\"id\", \"userId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"users\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/User\"\n                          }\n                        },\n                        \"memberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/Membership\"\n                          }\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.remove_user\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Remove a collection user\",\n        \"description\": \"This method allows you to remove a user from the specified collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Identifier for the collection\",\n                    \"format\": \"uuid\"\n                  },\n                  \"userId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\", \"userId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.memberships\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"List all collection memberships\",\n        \"description\": \"This method allows you to list a collections individual memberships. It's important to note that memberships returned from this endpoint do not include group memberships.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"allOf\": [\n                  {\n                    \"$ref\": \"#/components/schemas/Pagination\"\n                  },\n                  {\n                    \"type\": \"object\",\n                    \"properties\": {\n                      \"id\": {\n                        \"type\": \"string\",\n                        \"description\": \"Identifier for the collection\",\n                        \"format\": \"uuid\"\n                      },\n                      \"query\": {\n                        \"type\": \"string\",\n                        \"description\": \"Filter memberships by user names\",\n                        \"example\": \"jenny\"\n                      },\n                      \"permission\": {\n                        \"$ref\": \"#/components/schemas/Permission\"\n                      }\n                    },\n                    \"required\": [\"id\"]\n                  }\n                ]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"users\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/User\"\n                          }\n                        },\n                        \"memberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/Membership\"\n                          }\n                        }\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.add_group\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Add a group to a collection\",\n        \"description\": \"This method allows you to give all members in a group access to a collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"groupId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  }\n                },\n                \"required\": [\"id\", \"groupId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"collectionGroupMemberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/CollectionGroupMembership\"\n                          }\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.remove_group\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Remove a collection group\",\n        \"description\": \"This method allows you to revoke all members in a group access to a collection. Note that members of the group may still retain access through other groups or individual memberships.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Identifier for the collection\",\n                    \"format\": \"uuid\"\n                  },\n                  \"groupId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\", \"groupId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.group_memberships\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"List all collection group members\",\n        \"description\": \"This method allows you to list a collections group memberships. This is the list of groups that have been given access to the collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"allOf\": [\n                  {\n                    \"$ref\": \"#/components/schemas/Pagination\"\n                  },\n                  {\n                    \"type\": \"object\",\n                    \"properties\": {\n                      \"id\": {\n                        \"type\": \"string\",\n                        \"description\": \"Identifier for the collection\",\n                        \"format\": \"uuid\"\n                      },\n                      \"query\": {\n                        \"type\": \"string\",\n                        \"description\": \"Filter memberships by group names\",\n                        \"example\": \"developers\"\n                      },\n                      \"permission\": {\n                        \"$ref\": \"#/components/schemas/Permission\"\n                      }\n                    },\n                    \"required\": [\"id\"]\n                  }\n                ]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"groups\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/Group\"\n                          }\n                        },\n                        \"collectionGroupMemberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/CollectionGroupMembership\"\n                          }\n                        }\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.delete\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Delete a collection\",\n        \"description\": \"Delete a collection and all of its documents. This action can’t be undone so please be careful.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": { \"type\": \"string\", \"format\": \"uuid\" }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.export\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Export a collection\",\n        \"description\": \"Triggers a bulk export of the collection in markdown format and their attachments. If documents are nested then they will be nested in folders inside the zip file. The endpoint returns a `FileOperation` that can be queried to track the progress of the export and get the url for the final file.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"format\": {\n                    \"type\": \"string\",\n                    \"enum\": [\"outline-markdown\", \"json\", \"html\"]\n                  },\n                  \"id\": { \"type\": \"string\", \"format\": \"uuid\" }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"fileOperation\": {\n                          \"$ref\": \"#/components/schemas/FileOperation\"\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.export_all\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Export all collections\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"format\": {\n                    \"type\": \"string\",\n                    \"enum\": [\"outline-markdown\", \"json\", \"html\"]\n                  }\n                }\n              }\n            }\n          }\n        },\n        \"description\": \"Triggers a bulk export of all documents in and their attachments. The endpoint returns a `FileOperation` that can be queried through the fileOperations endpoint to track the progress of the export and get the url for the final file.\",\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"fileOperation\": {\n                          \"$ref\": \"#/components/schemas/FileOperation\"\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.create\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"Create a comment\",\n        \"description\": \"Create a comment\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"documentId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"parentCommentId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"data\": { \"type\": \"object\" }\n                },\n                \"required\": [\"documentId\", \"data\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Comment\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.update\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"Update a comment\",\n        \"description\": \"Update a comment\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"data\": { \"type\": \"object\" }\n                },\n                \"required\": [\"id\", \"data\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Comment\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.delete\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"Delete a comment\",\n        \"description\": \"Delete a comment\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": { \"type\": \"string\", \"format\": \"uuid\" }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.list\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"List all comments\",\n        \"description\": \"This method will list all comments matching the given properties.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"allOf\": [\n                  {\n                    \"$ref\": \"#/components/schemas/Pagination\"\n                  },\n                  { \"$ref\": \"#/components/schemas/Sorting\" },\n                  {\n                    \"type\": \"object\",\n                    \"properties\": {\n                      \"documentId\": {\n                        \"type\": \"string\",\n                        \"format\": \"uuid\",\n                        \"description\": \"Filter to a specific document\"\n                      },\n                      \"collectionId\": {\n                        \"type\": \"string\",\n                        \"format\": \"uuid\",\n                        \"description\": \"Filter to a specific collection\"\n                      }\n                    }\n                  }\n                ]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Document\"\n                      }\n                    },\n                    \"policies\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Policy\"\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/documents.info\": {\n      \"post\": {\n        \"tags\": [\"Documents\"],\n        \"summary\": \"Retrieve a document\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the document. Either the UUID or the urlId is acceptable.\"\n                  },\n                  \"shareId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\",\n                    \"description\": \"Unique identifier for a document share, a shareId may be used in place of a document UUID\"\n                  }\n                }\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Document\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/documents.import\": {\n      \"post\": {\n        \"tags\": [\"Documents\"],\n        \"summary\": \"Import a file as a document\",\n        \"description\": \"This method allows you to create a new document by importing an existing file. By default a document is set to the collection root. If you want to create a nested/child document, you should pass parentDocumentId to set the parent document.\",\n        \"requestBody\": {\n          \"content\": {\n            \"multipart/form-data\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"file\": {\n                    \"type\": \"object\",\n                    \"description\": \"Only plain text, markdown, docx, and html format are supported.\"\n                  },\n                  \"collectionId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"parentDocumentId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"template\": { \"type\": \"boolean\" },\n                  \"publish\": { \"type\": \"boolean\" }\n                }\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Document\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/documents.export\": {\n      \"post\": {\n        \"tags\": [\"Documents\"],\n        \"summary\": \"Export a document as markdown\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the document. Either the UUID or the urlId is acceptable.\"\n                  }\n                }\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"string\",\n                      \"description\": \"The document content in Markdown formatting\"\n                    }\n                  }\n                \n\n<!-- [TRUNCATED AT 50KB] -->","packages/mock-server/README.md":"# Scalar Mock Server\n\nA server returning fake data based on an OpenAPI specification\n\n## Installation\n\n```bash\nnpm install @scalar/mock-server\n```\n\n## Usage\n\n```ts\nimport { serve } from '@hono/node-server'\nimport { createMockServer } from '@scalar/mock-server'\n\n// Your OpenAPI specification\nconst openapi = {\n  openapi: '3.1.0',\n  info: {\n    title: 'Hello World',\n    version: '1.0.0',\n  },\n  paths: {\n    '/foobar': {\n      get: {\n        responses: {\n          '200': {\n            description: 'OK',\n            content: {\n              'application/json': {\n                example: {\n                  foo: 'bar',\n                },\n              },\n            },\n          },\n        },\n      },\n    },\n  },\n}\n\n// Create the mocked routes\nconst app = await createMockServer({\n  openapi,\n  onRequest({ context, operation }) {\n    console.log(context.req.method, context.req.path)\n  },\n})\n\n// Start the server\nserve(\n  {\n    fetch: app.fetch,\n    port: 3000,\n  },\n  (info) => {\n    console.log(`Listening on http://localhost:${info.port}`)\n  },\n)\n```\n",".cursorrules (ankra-cli.mdc)":"---\ndescription: \"Ankra CLI rules and best practices for managing Kubernetes clusters via the Ankra platform\"\nglobs: **/*.sh, **/*.yaml, **/*.yml, Makefile, **/Makefile, **/*.md\nalwaysApply: false\n---\n# Ankra CLI Best Practices\n\nAnkra is a Kubernetes cluster management platform. Its CLI (`ankra`) lets you manage organisations, clusters, add-ons, stacks, Helm releases, credentials, and tokens from the terminal.\n\n## Authentication & Configuration\n\n- Authenticate first: `ankra login`\n- Default config lives at `~/.ankra.yaml`; override with `--config <path>`\n- Override the API base URL with `--base-url` or `ANKRA_BASE_URL`\n- Supply an API token via `--token` or `ANKRA_API_TOKEN` (prefer env var in CI)\n- Logout cleanly: `ankra logout`\n\n```yaml\n# ~/.ankra.yaml example\nbase_url: https://api.ankra.io\ntoken: ${ANKRA_API_TOKEN}\n```\n\n## Organisation Management\n\n```bash\nankra org list                          # List accessible organisations\nankra org switch <org-name>             # Switch active organisation\nankra org create <name>                 # Create a new organisation\nankra org invite <email>                # Invite a user to the current org\nankra org members                       # List members of the current org\n```\n\n## Cluster Lifecycle\n\n```bash\nankra cluster list                      # List all clusters in the org\nankra cluster select <name>             # Set the active cluster context\nankra cluster info                      # Show details about the active cluster\nankra cluster provision                 # Provision a new cluster\nankra cluster deprovision               # Deprovision (destroy) the active cluster\nankra cluster reconcile                 # Reconcile cluster to desired state\nankra delete cluster <name>             # Delete a named cluster\n```\n\n- Always run `ankra cluster info` before destructive operations\n- Use `ankra cluster reconcile` after config changes before assuming state is correct\n\n## Add-ons\n\n```bash\nankra cluster addons list               # List installed add-ons\nankra cluster addons available          # List available (installable) add-ons\nankra cluster addons settings <addon>   # Show current settings for an add-on\nankra cluster addons update <addon>     # Update add-on configuration\nankra cluster addons uninstall <addon>  # Uninstall an add-on\n```\n\n## Stacks (Application Stacks)\n\n```bash\nankra cluster stacks list               # List stacks in the cluster\nankra cluster stacks create <name>      # Create a new stack\nankra cluster stacks delete <name>      # Delete a stack\nankra cluster stacks rename <old> <new> # Rename a stack\nankra cluster stacks clone <src> <dst>  # Clone a stack\nankra cluster stacks history <name>     # View stack change history\n```\n\n- Prefer `clone` over `create` when replicating an existing working stack\n- Check `history` before rolling back to understand what changed\n\n## Manifests & Operations\n\n```bash\nankra cluster manifests list            # List deployed manifests\nankra cluster operations list           # List in-progress or recent operations\nankra cluster operations cancel <id>    # Cancel a running operation\n```\n\n## Cluster Agent\n\n```bash\nankra cluster agent status              # Check agent health\nankra cluster agent token               # Retrieve agent bootstrap token\nankra cluster agent upgrade             # Upgrade the in-cluster agent\n```\n\n- Run `agent status` if cluster commands seem unresponsive\n- Rotate the agent token periodically for security\n\n## Helm\n\n```bash\nankra cluster helm releases             # List Helm releases in the cluster\nankra cluster helm uninstall <release>  # Uninstall a Helm release\nankra helm registries                   # List configured Helm registries\nankra helm credentials                  # List Helm registry credentials\n```\n\n## Hetzner Cloud Clusters\n\n```bash\nankra cluster hetzner create            # Create a Hetzner-backed cluster\nankra cluster hetzner scale             # Scale the cluster node count\nankra cluster hetzner upgrade           # Upgrade Kubernetes version\nankra cluster hetzner workers           # Manage worker node groups\nankra cluster hetzner node-group        # Node group management\n```\n\n## Charts\n\n```bash\nankra charts list                       # List available charts\nankra charts search <term>              # Search charts\nankra charts info <chart>               # Detailed chart information\n```\n\n## Credentials\n\n```bash\nankra credentials list                              # List stored credentials\nankra credentials get <name>                        # Retrieve a credential\nankra credentials validate <name>                   # Validate a credential\nankra credentials delete <name>                     # Delete a credential\nankra credentials hetzner --name <n> --token <t>   # Store Hetzner API token\nankra credentials ovh ...                           # Store OVH credentials\nankra credentials upcloud ...                       # Store UpCloud credentials\n```\n\n- Never commit credentials to source control; use `ANKRA_API_TOKEN` env var\n- Validate credentials immediately after creation: `ankra credentials validate <name>`\n\n## Tokens (API Tokens)\n\n```bash\nankra tokens list                       # List API tokens\nankra tokens create --name <name>       # Create a new API token\nankra tokens revoke <id>                # Revoke a token (keeps record)\nankra tokens delete <id>                # Permanently delete a token\n```\n\n## AI Troubleshooting\n\n```bash\nankra chat                              # Start AI-powered troubleshooting session\n```\n\nUse `ankra chat` when facing ambiguous errors — it provides contextual guidance.\n\n## Global Flags\n\n| Flag | Env Var | Description |\n|------|---------|-------------|\n| `--base-url <url>` | `ANKRA_BASE_URL` | Override API base URL |\n| `--token <token>` | `ANKRA_API_TOKEN` | API authentication token |\n| `--config <path>` | — | Path to config file (default `~/.ankra.yaml`) |\n\n## Scripting & Automation Tips\n\n- Export `ANKRA_API_TOKEN` in CI pipelines; never hard-code tokens\n- Use `--token` for one-off scripts where env var injection is not possible\n- Chain `ankra cluster select` before cluster-scoped commands in scripts\n- Pipe output through `jq` for structured processing where JSON output is available\n- Use `ankra cluster operations list` in CI to poll for async operation completion\n- Add `set -euo pipefail` to shell scripts using the Ankra CLI\n\n## Common Workflows\n\n### Provision and configure a new Hetzner cluster\n\n```bash\nankra login\nankra org switch my-org\nankra cluster hetzner create\nankra cluster select my-new-cluster\nankra cluster agent status\nankra cluster addons available\nankra cluster addons update some-addon\nankra cluster reconcile\n```\n\n### Deploy a stack from a chart\n\n```bash\nankra cluster select my-cluster\nankra charts search my-app\nankra charts info my-app\nankra cluster stacks create my-stack\nankra cluster manifests list\n```\n\n### Rotate credentials safely\n\n```bash\nankra tokens create --name ci-token-new\n# Update CI secret with new token\nankra tokens revoke <old-token-id>\nankra credentials validate my-cloud-cred\n```\n"},"files":{"packages/cli/README.md":"# Scalar CLI\n\nCommand-line interface to work with OpenAPI files\n\n## Installation\n\nIf you really want to become friends you should install the CLI:\n\n```bash\nnpm -g install @scalar/cli\n```\n\nOtherwise just prefix all commands with `npx @scalar/cli` instead of `scalar`. That’s fine, too.\n\n## Commands\n\n### format\n\nThe given JSON file will be formatted with Prettier.\n\n```bash\nscalar format\n```\n\n### validate\n\nTo check whether your OpenAPI file adheres to the Swagger 2.0, OpenAPI 3.0 or OpenAPI 3.1 specification, run the following command:\n\n```bash\nscalar validate\n```\n\n### share\n\nTo quickly share an OpenAPI file or reference with someone, you can use the share command:\n\n```bash\nscalar share\n```\n\nThis will upload your OpenAPI file to the [Scalar Sandbox](https://sandbox.scalar.com/) to give you a public reference URL and a public URL to your OpenAPI JSON file.\n\n### mock\n\nWe can even mock your API, and it’s just one command:\n\n```bash\nscalar mock\n```\n\nThis will boot up a server on port 3000 which gives you an API returning the dummy data according to your schema.\n\nIf you’d like to watch for file changes (to the OpenAPI file), do it like this:\n\n```bash\nscalar mock openapi.json --watch\n```\n\nYou can also change the port like this:\n\n```bash\nscalar mock openapi.json --watch --port 8080\n```\n\n### bundle\n\nSome OpenAPI files reference other files from the file system or an URL. You can bundle those files and make them a single file:\n\n```bash\nscalar bundle openapi.json --output bundle.json\n```\n\nIf you don’t provide an `output` file name, the input file will be overwritten.\n\n### init\n\nIf you’re tired of passing the file name again and again, just configure it once:\n\n```bash\nscalar init\n```\n\nThis will create a `scalar.config.json` file for you. All commands will use the configured OpenAPI file by default.\n\n## Options\n\n### --version\n\nIf you want to check which version of the CLI is installed, just run this:\n\n```bash\nscalar --version\n```\n\n### --help\n\n```bash\nscalar --help\n```\n\n## Development\n\nSet up the development environment:\n\n```bash\npnpm install\npnpm @scalar/cli --version\n```\n\nTo symlink the package and use it globally on your machine:\n\n```bash\npnpm cli:link\nscalar --version\n```\n","packages/cli/openapi.json":"{\n  \"openapi\": \"3.0.0\",\n  \"info\": {\n    \"title\": \"Outline API\",\n    \"description\": \"# Introduction\\n\\nThe Outline API is structured in an RPC style. It enables you to\\nprogramatically interact with all aspects of Outline’s data – in fact, the\\nmain application is built on exactly the same API.\\n\\nThe API structure is available as an\\n[openapi specification](https://github.com/outline/openapi) if that’s your\\njam – it can be used to generate clients for most programming languages.\\n\\n# Making requests\\n\\nOutline’s API follows simple RPC style conventions where each API endpoint is\\na method on `https://app.getoutline.com/api/method`. Both `GET` and `POST`\\nmethods are supported but it’s recommended that you make all call using POST.\\nOnly HTTPS is supported and all response payloads are JSON.\\n\\nWhen making `POST` requests, request parameters are parsed depending on\\nContent-Type header. To make a call using JSON payload, you must pass\\nContent-Type: application/json header, here’s an example using CURL:\\n\\n```\\ncurl https://app.getoutline.com/api/documents.info \\\\\\n-X 'POST' \\\\\\n-H 'authorization: Bearer MY_API_KEY' \\\\\\n-H 'content-type: application/json' \\\\\\n-H 'accept: application/json' \\\\\\n-d '{\\\"id\\\": \\\"outline-api-NTpezNwhUP\\\"}'\\n```\\n\\nOr, with JavaScript:\\n\\n```javascript\\nconst response = await fetch(\\\"https://app.getoutline.com/api/documents.info\\\", {\\n  method: \\\"POST\\\",\\n  headers: {\\n    Accept: \\\"application/json\\\",\\n    \\\"Content-Type\\\": \\\"application/json\\\",\\n    Authorization: \\\"Bearer MY_API_KEY\\\"\\n  }\\n})\\n\\nconst body = await response.json();\\nconst document = body.data;\\n```\\n\\n# Authentication\\n\\nTo access API endpoints, you must provide a valid API key. You can create new\\nAPI keys in your [account settings](https://app.getoutline.com/settings). Be\\ncareful when handling your keys as they give access to all of your documents,\\nyou should treat them like passwords and they should never be committed to\\nsource control.\\n\\nTo authenticate with API, you can supply the API key as a header\\n(`Authorization: Bearer YOUR_API_KEY`) or as part of the payload using `token`\\nparameter. Header based authentication is highly recommended so that your keys\\ndon’t accidentally leak into logs.\\n\\nSome API endpoints allow unauthenticated requests for public resources and\\nthey can be called without an API key.\\n\\n# Errors\\n\\nAll successful API requests will be returned with a 200 or 201 status code\\nand `ok: true` in the response payload. If there’s an error while making the\\nrequest, the appropriate status code is returned with the error message:\\n\\n```\\n{\\n  \\\"ok\\\": false,\\n  \\\"error\\\": \\\"Not Found\\\"\\n}\\n```\\n\\n# Pagination\\n\\nMost top-level API resources have support for \\\"list\\\" API methods. For instance,\\nyou can list users, documents, and collections. These list methods share\\ncommon parameters, taking both `limit` and `offset`.\\n\\nResponses will echo these parameters in the root `pagination` key, and also\\ninclude a `nextPath` key which can be used as a handy shortcut to fetch the\\nnext page of results. For example:\\n\\n```\\n{\\n  ok: true,\\n  status: 200,\\n  data: […],\\n  pagination: {\\n    limit: 25,\\n    offset: 0,\\n    nextPath: \\\"/api/documents.list?limit=25&offset=25\\\"\\n  }\\n}\\n```\\n\\n# Policies\\n\\nMany API resources have associated \\\"policies\\\", these objects describe the\\ncurrent API keys authorized actions related to an individual resource. It\\nshould be noted that the policy \\\"id\\\" is identical to the resource it is\\nrelated to, policies themselves do not have unique identifiers.\\n\\nFor most usecases of the API, policies can be safely ignored. Calling\\nunauthorized methods will result in the appropriate response code – these are\\nused in the main Outline UI to adjust which elements are visible.\\n\",\n    \"version\": \"0.1.0\",\n    \"contact\": { \"email\": \"hello@getoutline.com\" }\n  },\n  \"servers\": [\n    { \"url\": \"https://app.getoutline.com/api\", \"description\": \"Production\" }\n  ],\n  \"security\": [{ \"http\": [] }],\n  \"tags\": [\n    {\n      \"name\": \"Attachments\",\n      \"description\": \"`Attachments` represent a file uploaded to cloud storage. They are created\\nbefore the upload happens from the client and store all the meta information\\nsuch as file type, size, and location.\\n\"\n    },\n    {\n      \"name\": \"Auth\",\n      \"description\": \"`Auth` represents the current API Keys authentication details. It can be\\nused to check that a token is still valid and load the IDs for the current\\nuser and team.\\n\"\n    },\n    {\n      \"name\": \"Collections\",\n      \"description\": \"`Collections` represent grouping of documents in the knowledge base, they\\noffer a way to structure information in a nested hierarchy and a level\\nat which read and write permissions can be granted to individual users or\\ngroups of users.\\n\"\n    },\n    {\n      \"name\": \"Comments\",\n      \"description\": \"`Comments` represent a comment either on a selection of text in a document\\nor on the document itself.\\n\"\n    },\n    {\n      \"name\": \"Documents\",\n      \"description\": \"`Documents` are what everything else revolves around. A document represents\\na single page of information and always returns the latest version of the\\ncontent. Documents are stored in [Markdown](https://spec.commonmark.org/)\\nformatting.\\n\"\n    },\n    {\n      \"name\": \"Events\",\n      \"description\": \"`Events` represent an artifact of an action. Whether it is creating a user,\\nediting a document, changing permissions, or any other action – an event\\nis created that can be used as an audit trail or activity stream.\\n\"\n    },\n    {\n      \"name\": \"FileOperations\",\n      \"description\": \"`FileOperations` represent background jobs for importing or exporting files.\\nYou can query the file operation to find the state of progress and any\\nresulting output.\\n\"\n    },\n    {\n      \"name\": \"Groups\",\n      \"description\": \"`Groups` represent a list of users that logically belong together, for\\nexample there might be groups for each department in your organization.\\nGroups can be granted access to collections with read or write permissions.\\n\"\n    },\n    {\n      \"name\": \"Revisions\",\n      \"description\": \"`Revisions` represent a snapshop of a document at a point in time. They\\nare used to keep tracking of editing and collaboration history – a document\\ncan also be restored to a previous revision if neccessary.\\n\"\n    },\n    {\n      \"name\": \"Shares\",\n      \"description\": \"`Shares` represent authorization to view a document without being a member\\nof the team. Shares are created in order to give access to documents publicly.\\nEach user that shares a document will have a unique share object.\\n\"\n    },\n    {\n      \"name\": \"Users\",\n      \"description\": \"`Users` represent an individual with access to the knowledge base. Users\\ncan be created automatically when signing in with SSO or when a user is\\ninvited via email.\\n\"\n    },\n    {\n      \"name\": \"Views\",\n      \"description\": \"`Views` represent a compressed record of an individual users views of a\\ndocument. Individual views are not recorded but a first, last and total\\nis kept per user.\\n\"\n    }\n  ],\n  \"paths\": {\n    \"/attachments.create\": {\n      \"post\": {\n        \"tags\": [\"Attachments\"],\n        \"summary\": \"Create an attachment\",\n        \"description\": \"Creating an attachment object creates a database record and returns the inputs needed to generate a signed url and upload the file from the client to cloud storage.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"name\": {\n                    \"type\": \"string\",\n                    \"example\": \"image.png\"\n                  },\n                  \"documentId\": {\n                    \"type\": \"string\",\n                    \"description\": \"Identifier for the associated document, if any.\",\n                    \"format\": \"uuid\"\n                  },\n                  \"contentType\": {\n                    \"type\": \"string\",\n                    \"example\": \"image/png\"\n                  },\n                  \"size\": {\n                    \"type\": \"number\",\n                    \"description\": \"Size of the file attachment in bytes.\"\n                  }\n                },\n                \"required\": [\"name\", \"contentType\", \"size\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"maxUploadSize\": {\n                          \"type\": \"number\"\n                        },\n                        \"uploadUrl\": {\n                          \"type\": \"string\",\n                          \"format\": \"uri\"\n                        },\n                        \"form\": { \"type\": \"object\" },\n                        \"attachment\": {\n                          \"$ref\": \"#/components/schemas/Attachment\"\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/attachments.redirect\": {\n      \"post\": {\n        \"tags\": [\"Attachments\"],\n        \"summary\": \"Retrieve an attachment\",\n        \"description\": \"Load an attachment from where it is stored based on the id. If the attachment is private then a temporary, signed url with embedded credentials is generated on demand.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the attachment.\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"302\": { \"description\": \"The url for the attachment\" }\n        }\n      }\n    },\n    \"/attachments.delete\": {\n      \"post\": {\n        \"tags\": [\"Attachments\"],\n        \"summary\": \"Delete an attachment\",\n        \"description\": \"Deleting an attachment is permanant. It will not delete references or links to the attachment that may exist in your documents.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\",\n                    \"description\": \"Unique identifier for the attachment.\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/auth.info\": {\n      \"post\": {\n        \"tags\": [\"Auth\"],\n        \"summary\": \"Retrieve auth\",\n        \"description\": \"Retrieve authentication details for the current API key\",\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Auth\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" }\n        }\n      }\n    },\n    \"/auth.config\": {\n      \"post\": {\n        \"tags\": [\"Auth\"],\n        \"summary\": \"Retrieve auth config\",\n        \"description\": \"Retrieve authentication options\",\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"name\": {\n                          \"type\": \"string\",\n                          \"example\": \"Acme Inc\"\n                        },\n                        \"hostname\": {\n                          \"type\": \"string\",\n                          \"example\": \"acme-inc.getoutline.com\"\n                        },\n                        \"services\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                              \"id\": {\n                                \"type\": \"string\",\n                                \"example\": \"slack\"\n                              },\n                              \"name\": {\n                                \"type\": \"string\",\n                                \"example\": \"Slack\"\n                              },\n                              \"authUrl\": {\n                                \"type\": \"string\",\n                                \"example\": \"https://acme-inc.getoutline.com/auth/slack\"\n                              }\n                            }\n                          }\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    },\n    \"/collections.info\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Retrieve a collection\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the collection.\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Collection\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.documents\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Retrieve a collections document structure\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the collection.\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/NavigationNode\"\n                      },\n                      \"example\": []\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.list\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"List all collections\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"$ref\": \"#/components/schemas/Pagination\"\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Collection\"\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.create\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Create a collection\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"name\": {\n                    \"type\": \"string\",\n                    \"example\": \"Human Resources\"\n                  },\n                  \"description\": {\n                    \"type\": \"string\",\n                    \"example\": \"\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  },\n                  \"color\": {\n                    \"type\": \"string\",\n                    \"example\": \"#123123\"\n                  },\n                  \"private\": {\n                    \"type\": \"boolean\",\n                    \"example\": false\n                  }\n                },\n                \"required\": [\"name\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Collection\"\n                    },\n                    \"policies\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Policy\"\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.update\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Update a collection\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"name\": {\n                    \"type\": \"string\",\n                    \"example\": \"Human Resources\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  },\n                  \"description\": {\n                    \"type\": \"string\",\n                    \"example\": \"\"\n                  },\n                  \"color\": {\n                    \"type\": \"string\",\n                    \"example\": \"#123123\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Collection\"\n                    },\n                    \"policies\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Policy\"\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.add_user\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Add a collection user\",\n        \"description\": \"This method allows you to add a user membership to the specified collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"userId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  }\n                },\n                \"required\": [\"id\", \"userId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"users\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/User\"\n                          }\n                        },\n                        \"memberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/Membership\"\n                          }\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.remove_user\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Remove a collection user\",\n        \"description\": \"This method allows you to remove a user from the specified collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Identifier for the collection\",\n                    \"format\": \"uuid\"\n                  },\n                  \"userId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\", \"userId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.memberships\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"List all collection memberships\",\n        \"description\": \"This method allows you to list a collections individual memberships. It's important to note that memberships returned from this endpoint do not include group memberships.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"allOf\": [\n                  {\n                    \"$ref\": \"#/components/schemas/Pagination\"\n                  },\n                  {\n                    \"type\": \"object\",\n                    \"properties\": {\n                      \"id\": {\n                        \"type\": \"string\",\n                        \"description\": \"Identifier for the collection\",\n                        \"format\": \"uuid\"\n                      },\n                      \"query\": {\n                        \"type\": \"string\",\n                        \"description\": \"Filter memberships by user names\",\n                        \"example\": \"jenny\"\n                      },\n                      \"permission\": {\n                        \"$ref\": \"#/components/schemas/Permission\"\n                      }\n                    },\n                    \"required\": [\"id\"]\n                  }\n                ]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"users\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/User\"\n                          }\n                        },\n                        \"memberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/Membership\"\n                          }\n                        }\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.add_group\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Add a group to a collection\",\n        \"description\": \"This method allows you to give all members in a group access to a collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"groupId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  }\n                },\n                \"required\": [\"id\", \"groupId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"collectionGroupMemberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/CollectionGroupMembership\"\n                          }\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.remove_group\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Remove a collection group\",\n        \"description\": \"This method allows you to revoke all members in a group access to a collection. Note that members of the group may still retain access through other groups or individual memberships.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Identifier for the collection\",\n                    \"format\": \"uuid\"\n                  },\n                  \"groupId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\", \"groupId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.group_memberships\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"List all collection group members\",\n        \"description\": \"This method allows you to list a collections group memberships. This is the list of groups that have been given access to the collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"allOf\": [\n                  {\n                    \"$ref\": \"#/components/schemas/Pagination\"\n                  },\n                  {\n                    \"type\": \"object\",\n                    \"properties\": {\n                      \"id\": {\n                        \"type\": \"string\",\n                        \"description\": \"Identifier for the collection\",\n                        \"format\": \"uuid\"\n                      },\n                      \"query\": {\n                        \"type\": \"string\",\n                        \"description\": \"Filter memberships by group names\",\n                        \"example\": \"developers\"\n                      },\n                      \"permission\": {\n                        \"$ref\": \"#/components/schemas/Permission\"\n                      }\n                    },\n                    \"required\": [\"id\"]\n                  }\n                ]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"groups\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/Group\"\n                          }\n                        },\n                        \"collectionGroupMemberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/CollectionGroupMembership\"\n                          }\n                        }\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.delete\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Delete a collection\",\n        \"description\": \"Delete a collection and all of its documents. This action can’t be undone so please be careful.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": { \"type\": \"string\", \"format\": \"uuid\" }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.export\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Export a collection\",\n        \"description\": \"Triggers a bulk export of the collection in markdown format and their attachments. If documents are nested then they will be nested in folders inside the zip file. The endpoint returns a `FileOperation` that can be queried to track the progress of the export and get the url for the final file.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"format\": {\n                    \"type\": \"string\",\n                    \"enum\": [\"outline-markdown\", \"json\", \"html\"]\n                  },\n                  \"id\": { \"type\": \"string\", \"format\": \"uuid\" }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"fileOperation\": {\n                          \"$ref\": \"#/components/schemas/FileOperation\"\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.export_all\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Export all collections\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"format\": {\n                    \"type\": \"string\",\n                    \"enum\": [\"outline-markdown\", \"json\", \"html\"]\n                  }\n                }\n              }\n            }\n          }\n        },\n        \"description\": \"Triggers a bulk export of all documents in and their attachments. The endpoint returns a `FileOperation` that can be queried through the fileOperations endpoint to track the progress of the export and get the url for the final file.\",\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"fileOperation\": {\n                          \"$ref\": \"#/components/schemas/FileOperation\"\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.create\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"Create a comment\",\n        \"description\": \"Create a comment\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"documentId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"parentCommentId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"data\": { \"type\": \"object\" }\n                },\n                \"required\": [\"documentId\", \"data\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Comment\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.update\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"Update a comment\",\n        \"description\": \"Update a comment\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"data\": { \"type\": \"object\" }\n                },\n                \"required\": [\"id\", \"data\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Comment\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.delete\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"Delete a comment\",\n        \"description\": \"Delete a comment\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": { \"type\": \"string\", \"format\": \"uuid\" }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.list\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"List all comments\",\n        \"description\": \"This method will list all comments matching the given properties.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"allOf\": [\n                  {\n                    \"$ref\": \"#/components/schemas/Pagination\"\n                  },\n                  { \"$ref\": \"#/components/schemas/Sorting\" },\n                  {\n                    \"type\": \"object\",\n                    \"properties\": {\n                      \"documentId\": {\n                        \"type\": \"string\",\n                        \"format\": \"uuid\",\n                        \"description\": \"Filter to a specific document\"\n                      },\n                      \"collectionId\": {\n                        \"type\": \"string\",\n                        \"format\": \"uuid\",\n                        \"description\": \"Filter to a specific collection\"\n                      }\n                    }\n                  }\n                ]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Document\"\n                      }\n                    },\n                    \"policies\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Policy\"\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/documents.info\": {\n      \"post\": {\n        \"tags\": [\"Documents\"],\n        \"summary\": \"Retrieve a document\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the document. Either the UUID or the urlId is acceptable.\"\n                  },\n                  \"shareId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\",\n                    \"description\": \"Unique identifier for a document share, a shareId may be used in place of a document UUID\"\n                  }\n                }\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Document\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/documents.import\": {\n      \"post\": {\n        \"tags\": [\"Documents\"],\n        \"summary\": \"Import a file as a document\",\n        \"description\": \"This method allows you to create a new document by importing an existing file. By default a document is set to the collection root. If you want to create a nested/child document, you should pass parentDocumentId to set the parent document.\",\n        \"requestBody\": {\n          \"content\": {\n            \"multipart/form-data\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"file\": {\n                    \"type\": \"object\",\n                    \"description\": \"Only plain text, markdown, docx, and html format are supported.\"\n                  },\n                  \"collectionId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"parentDocumentId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"template\": { \"type\": \"boolean\" },\n                  \"publish\": { \"type\": \"boolean\" }\n                }\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Document\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/documents.export\": {\n      \"post\": {\n        \"tags\": [\"Documents\"],\n        \"summary\": \"Export a document as markdown\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the document. Either the UUID or the urlId is acceptable.\"\n                  }\n                }\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"string\",\n                      \"description\": \"The document content in Markdown formatting\"\n                    }\n                  }\n                \n\n<!-- [TRUNCATED AT 50KB] -->","packages/mock-server/README.md":"# Scalar Mock Server\n\nA server returning fake data based on an OpenAPI specification\n\n## Installation\n\n```bash\nnpm install @scalar/mock-server\n```\n\n## Usage\n\n```ts\nimport { serve } from '@hono/node-server'\nimport { createMockServer } from '@scalar/mock-server'\n\n// Your OpenAPI specification\nconst openapi = {\n  openapi: '3.1.0',\n  info: {\n    title: 'Hello World',\n    version: '1.0.0',\n  },\n  paths: {\n    '/foobar': {\n      get: {\n        responses: {\n          '200': {\n            description: 'OK',\n            content: {\n              'application/json': {\n                example: {\n                  foo: 'bar',\n                },\n              },\n            },\n          },\n        },\n      },\n    },\n  },\n}\n\n// Create the mocked routes\nconst app = await createMockServer({\n  openapi,\n  onRequest({ context, operation }) {\n    console.log(context.req.method, context.req.path)\n  },\n})\n\n// Start the server\nserve(\n  {\n    fetch: app.fetch,\n    port: 3000,\n  },\n  (info) => {\n    console.log(`Listening on http://localhost:${info.port}`)\n  },\n)\n```\n",".cursorrules (ankra-cli.mdc)":"---\ndescription: \"Ankra CLI rules and best practices for managing Kubernetes clusters via the Ankra platform\"\nglobs: **/*.sh, **/*.yaml, **/*.yml, Makefile, **/Makefile, **/*.md\nalwaysApply: false\n---\n# Ankra CLI Best Practices\n\nAnkra is a Kubernetes cluster management platform. Its CLI (`ankra`) lets you manage organisations, clusters, add-ons, stacks, Helm releases, credentials, and tokens from the terminal.\n\n## Authentication & Configuration\n\n- Authenticate first: `ankra login`\n- Default config lives at `~/.ankra.yaml`; override with `--config <path>`\n- Override the API base URL with `--base-url` or `ANKRA_BASE_URL`\n- Supply an API token via `--token` or `ANKRA_API_TOKEN` (prefer env var in CI)\n- Logout cleanly: `ankra logout`\n\n```yaml\n# ~/.ankra.yaml example\nbase_url: https://api.ankra.io\ntoken: ${ANKRA_API_TOKEN}\n```\n\n## Organisation Management\n\n```bash\nankra org list                          # List accessible organisations\nankra org switch <org-name>             # Switch active organisation\nankra org create <name>                 # Create a new organisation\nankra org invite <email>                # Invite a user to the current org\nankra org members                       # List members of the current org\n```\n\n## Cluster Lifecycle\n\n```bash\nankra cluster list                      # List all clusters in the org\nankra cluster select <name>             # Set the active cluster context\nankra cluster info                      # Show details about the active cluster\nankra cluster provision                 # Provision a new cluster\nankra cluster deprovision               # Deprovision (destroy) the active cluster\nankra cluster reconcile                 # Reconcile cluster to desired state\nankra delete cluster <name>             # Delete a named cluster\n```\n\n- Always run `ankra cluster info` before destructive operations\n- Use `ankra cluster reconcile` after config changes before assuming state is correct\n\n## Add-ons\n\n```bash\nankra cluster addons list               # List installed add-ons\nankra cluster addons available          # List available (installable) add-ons\nankra cluster addons settings <addon>   # Show current settings for an add-on\nankra cluster addons update <addon>     # Update add-on configuration\nankra cluster addons uninstall <addon>  # Uninstall an add-on\n```\n\n## Stacks (Application Stacks)\n\n```bash\nankra cluster stacks list               # List stacks in the cluster\nankra cluster stacks create <name>      # Create a new stack\nankra cluster stacks delete <name>      # Delete a stack\nankra cluster stacks rename <old> <new> # Rename a stack\nankra cluster stacks clone <src> <dst>  # Clone a stack\nankra cluster stacks history <name>     # View stack change history\n```\n\n- Prefer `clone` over `create` when replicating an existing working stack\n- Check `history` before rolling back to understand what changed\n\n## Manifests & Operations\n\n```bash\nankra cluster manifests list            # List deployed manifests\nankra cluster operations list           # List in-progress or recent operations\nankra cluster operations cancel <id>    # Cancel a running operation\n```\n\n## Cluster Agent\n\n```bash\nankra cluster agent status              # Check agent health\nankra cluster agent token               # Retrieve agent bootstrap token\nankra cluster agent upgrade             # Upgrade the in-cluster agent\n```\n\n- Run `agent status` if cluster commands seem unresponsive\n- Rotate the agent token periodically for security\n\n## Helm\n\n```bash\nankra cluster helm releases             # List Helm releases in the cluster\nankra cluster helm uninstall <release>  # Uninstall a Helm release\nankra helm registries                   # List configured Helm registries\nankra helm credentials                  # List Helm registry credentials\n```\n\n## Hetzner Cloud Clusters\n\n```bash\nankra cluster hetzner create            # Create a Hetzner-backed cluster\nankra cluster hetzner scale             # Scale the cluster node count\nankra cluster hetzner upgrade           # Upgrade Kubernetes version\nankra cluster hetzner workers           # Manage worker node groups\nankra cluster hetzner node-group        # Node group management\n```\n\n## Charts\n\n```bash\nankra charts list                       # List available charts\nankra charts search <term>              # Search charts\nankra charts info <chart>               # Detailed chart information\n```\n\n## Credentials\n\n```bash\nankra credentials list                              # List stored credentials\nankra credentials get <name>                        # Retrieve a credential\nankra credentials validate <name>                   # Validate a credential\nankra credentials delete <name>                     # Delete a credential\nankra credentials hetzner --name <n> --token <t>   # Store Hetzner API token\nankra credentials ovh ...                           # Store OVH credentials\nankra credentials upcloud ...                       # Store UpCloud credentials\n```\n\n- Never commit credentials to source control; use `ANKRA_API_TOKEN` env var\n- Validate credentials immediately after creation: `ankra credentials validate <name>`\n\n## Tokens (API Tokens)\n\n```bash\nankra tokens list                       # List API tokens\nankra tokens create --name <name>       # Create a new API token\nankra tokens revoke <id>                # Revoke a token (keeps record)\nankra tokens delete <id>                # Permanently delete a token\n```\n\n## AI Troubleshooting\n\n```bash\nankra chat                              # Start AI-powered troubleshooting session\n```\n\nUse `ankra chat` when facing ambiguous errors — it provides contextual guidance.\n\n## Global Flags\n\n| Flag | Env Var | Description |\n|------|---------|-------------|\n| `--base-url <url>` | `ANKRA_BASE_URL` | Override API base URL |\n| `--token <token>` | `ANKRA_API_TOKEN` | API authentication token |\n| `--config <path>` | — | Path to config file (default `~/.ankra.yaml`) |\n\n## Scripting & Automation Tips\n\n- Export `ANKRA_API_TOKEN` in CI pipelines; never hard-code tokens\n- Use `--token` for one-off scripts where env var injection is not possible\n- Chain `ankra cluster select` before cluster-scoped commands in scripts\n- Pipe output through `jq` for structured processing where JSON output is available\n- Use `ankra cluster operations list` in CI to poll for async operation completion\n- Add `set -euo pipefail` to shell scripts using the Ankra CLI\n\n## Common Workflows\n\n### Provision and configure a new Hetzner cluster\n\n```bash\nankra login\nankra org switch my-org\nankra cluster hetzner create\nankra cluster select my-new-cluster\nankra cluster agent status\nankra cluster addons available\nankra cluster addons update some-addon\nankra cluster reconcile\n```\n\n### Deploy a stack from a chart\n\n```bash\nankra cluster select my-cluster\nankra charts search my-app\nankra charts info my-app\nankra cluster stacks create my-stack\nankra cluster manifests list\n```\n\n### Rotate credentials safely\n\n```bash\nankra tokens create --name ci-token-new\n# Update CI secret with new token\nankra tokens revoke <old-token-id>\nankra credentials validate my-cloud-cred\n```\n"},"items":[{"name":"openapi.json","path":"packages/cli/openapi.json","rawUrl":"https://raw.githubusercontent.com/scalar/cli/HEAD/packages/cli/openapi.json","title":"Cli Skill","category":"anthropic-skill","format":"json","content":"{\n  \"openapi\": \"3.0.0\",\n  \"info\": {\n    \"title\": \"Outline API\",\n    \"description\": \"# Introduction\\n\\nThe Outline API is structured in an RPC style. It enables you to\\nprogramatically interact with all aspects of Outline’s data – in fact, the\\nmain application is built on exactly the same API.\\n\\nThe API structure is available as an\\n[openapi specification](https://github.com/outline/openapi) if that’s your\\njam – it can be used to generate clients for most programming languages.\\n\\n# Making requests\\n\\nOutline’s API follows simple RPC style conventions where each API endpoint is\\na method on `https://app.getoutline.com/api/method`. Both `GET` and `POST`\\nmethods are supported but it’s recommended that you make all call using POST.\\nOnly HTTPS is supported and all response payloads are JSON.\\n\\nWhen making `POST` requests, request parameters are parsed depending on\\nContent-Type header. To make a call using JSON payload, you must pass\\nContent-Type: application/json header, here’s an example using CURL:\\n\\n```\\ncurl https://app.getoutline.com/api/documents.info \\\\\\n-X 'POST' \\\\\\n-H 'authorization: Bearer MY_API_KEY' \\\\\\n-H 'content-type: application/json' \\\\\\n-H 'accept: application/json' \\\\\\n-d '{\\\"id\\\": \\\"outline-api-NTpezNwhUP\\\"}'\\n```\\n\\nOr, with JavaScript:\\n\\n```javascript\\nconst response = await fetch(\\\"https://app.getoutline.com/api/documents.info\\\", {\\n  method: \\\"POST\\\",\\n  headers: {\\n    Accept: \\\"application/json\\\",\\n    \\\"Content-Type\\\": \\\"application/json\\\",\\n    Authorization: \\\"Bearer MY_API_KEY\\\"\\n  }\\n})\\n\\nconst body = await response.json();\\nconst document = body.data;\\n```\\n\\n# Authentication\\n\\nTo access API endpoints, you must provide a valid API key. You can create new\\nAPI keys in your [account settings](https://app.getoutline.com/settings). Be\\ncareful when handling your keys as they give access to all of your documents,\\nyou should treat them like passwords and they should never be committed to\\nsource control.\\n\\nTo authenticate with API, you can supply the API key as a header\\n(`Authorization: Bearer YOUR_API_KEY`) or as part of the payload using `token`\\nparameter. Header based authentication is highly recommended so that your keys\\ndon’t accidentally leak into logs.\\n\\nSome API endpoints allow unauthenticated requests for public resources and\\nthey can be called without an API key.\\n\\n# Errors\\n\\nAll successful API requests will be returned with a 200 or 201 status code\\nand `ok: true` in the response payload. If there’s an error while making the\\nrequest, the appropriate status code is returned with the error message:\\n\\n```\\n{\\n  \\\"ok\\\": false,\\n  \\\"error\\\": \\\"Not Found\\\"\\n}\\n```\\n\\n# Pagination\\n\\nMost top-level API resources have support for \\\"list\\\" API methods. For instance,\\nyou can list users, documents, and collections. These list methods share\\ncommon parameters, taking both `limit` and `offset`.\\n\\nResponses will echo these parameters in the root `pagination` key, and also\\ninclude a `nextPath` key which can be used as a handy shortcut to fetch the\\nnext page of results. For example:\\n\\n```\\n{\\n  ok: true,\\n  status: 200,\\n  data: […],\\n  pagination: {\\n    limit: 25,\\n    offset: 0,\\n    nextPath: \\\"/api/documents.list?limit=25&offset=25\\\"\\n  }\\n}\\n```\\n\\n# Policies\\n\\nMany API resources have associated \\\"policies\\\", these objects describe the\\ncurrent API keys authorized actions related to an individual resource. It\\nshould be noted that the policy \\\"id\\\" is identical to the resource it is\\nrelated to, policies themselves do not have unique identifiers.\\n\\nFor most usecases of the API, policies can be safely ignored. Calling\\nunauthorized methods will result in the appropriate response code – these are\\nused in the main Outline UI to adjust which elements are visible.\\n\",\n    \"version\": \"0.1.0\",\n    \"contact\": { \"email\": \"hello@getoutline.com\" }\n  },\n  \"servers\": [\n    { \"url\": \"https://app.getoutline.com/api\", \"description\": \"Production\" }\n  ],\n  \"security\": [{ \"http\": [] }],\n  \"tags\": [\n    {\n      \"name\": \"Attachments\",\n      \"description\": \"`Attachments` represent a file uploaded to cloud storage. They are created\\nbefore the upload happens from the client and store all the meta information\\nsuch as file type, size, and location.\\n\"\n    },\n    {\n      \"name\": \"Auth\",\n      \"description\": \"`Auth` represents the current API Keys authentication details. It can be\\nused to check that a token is still valid and load the IDs for the current\\nuser and team.\\n\"\n    },\n    {\n      \"name\": \"Collections\",\n      \"description\": \"`Collections` represent grouping of documents in the knowledge base, they\\noffer a way to structure information in a nested hierarchy and a level\\nat which read and write permissions can be granted to individual users or\\ngroups of users.\\n\"\n    },\n    {\n      \"name\": \"Comments\",\n      \"description\": \"`Comments` represent a comment either on a selection of text in a document\\nor on the document itself.\\n\"\n    },\n    {\n      \"name\": \"Documents\",\n      \"description\": \"`Documents` are what everything else revolves around. A document represents\\na single page of information and always returns the latest version of the\\ncontent. Documents are stored in [Markdown](https://spec.commonmark.org/)\\nformatting.\\n\"\n    },\n    {\n      \"name\": \"Events\",\n      \"description\": \"`Events` represent an artifact of an action. Whether it is creating a user,\\nediting a document, changing permissions, or any other action – an event\\nis created that can be used as an audit trail or activity stream.\\n\"\n    },\n    {\n      \"name\": \"FileOperations\",\n      \"description\": \"`FileOperations` represent background jobs for importing or exporting files.\\nYou can query the file operation to find the state of progress and any\\nresulting output.\\n\"\n    },\n    {\n      \"name\": \"Groups\",\n      \"description\": \"`Groups` represent a list of users that logically belong together, for\\nexample there might be groups for each department in your organization.\\nGroups can be granted access to collections with read or write permissions.\\n\"\n    },\n    {\n      \"name\": \"Revisions\",\n      \"description\": \"`Revisions` represent a snapshop of a document at a point in time. They\\nare used to keep tracking of editing and collaboration history – a document\\ncan also be restored to a previous revision if neccessary.\\n\"\n    },\n    {\n      \"name\": \"Shares\",\n      \"description\": \"`Shares` represent authorization to view a document without being a member\\nof the team. Shares are created in order to give access to documents publicly.\\nEach user that shares a document will have a unique share object.\\n\"\n    },\n    {\n      \"name\": \"Users\",\n      \"description\": \"`Users` represent an individual with access to the knowledge base. Users\\ncan be created automatically when signing in with SSO or when a user is\\ninvited via email.\\n\"\n    },\n    {\n      \"name\": \"Views\",\n      \"description\": \"`Views` represent a compressed record of an individual users views of a\\ndocument. Individual views are not recorded but a first, last and total\\nis kept per user.\\n\"\n    }\n  ],\n  \"paths\": {\n    \"/attachments.create\": {\n      \"post\": {\n        \"tags\": [\"Attachments\"],\n        \"summary\": \"Create an attachment\",\n        \"description\": \"Creating an attachment object creates a database record and returns the inputs needed to generate a signed url and upload the file from the client to cloud storage.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"name\": {\n                    \"type\": \"string\",\n                    \"example\": \"image.png\"\n                  },\n                  \"documentId\": {\n                    \"type\": \"string\",\n                    \"description\": \"Identifier for the associated document, if any.\",\n                    \"format\": \"uuid\"\n                  },\n                  \"contentType\": {\n                    \"type\": \"string\",\n                    \"example\": \"image/png\"\n                  },\n                  \"size\": {\n                    \"type\": \"number\",\n                    \"description\": \"Size of the file attachment in bytes.\"\n                  }\n                },\n                \"required\": [\"name\", \"contentType\", \"size\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"maxUploadSize\": {\n                          \"type\": \"number\"\n                        },\n                        \"uploadUrl\": {\n                          \"type\": \"string\",\n                          \"format\": \"uri\"\n                        },\n                        \"form\": { \"type\": \"object\" },\n                        \"attachment\": {\n                          \"$ref\": \"#/components/schemas/Attachment\"\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/attachments.redirect\": {\n      \"post\": {\n        \"tags\": [\"Attachments\"],\n        \"summary\": \"Retrieve an attachment\",\n        \"description\": \"Load an attachment from where it is stored based on the id. If the attachment is private then a temporary, signed url with embedded credentials is generated on demand.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the attachment.\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"302\": { \"description\": \"The url for the attachment\" }\n        }\n      }\n    },\n    \"/attachments.delete\": {\n      \"post\": {\n        \"tags\": [\"Attachments\"],\n        \"summary\": \"Delete an attachment\",\n        \"description\": \"Deleting an attachment is permanant. It will not delete references or links to the attachment that may exist in your documents.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\",\n                    \"description\": \"Unique identifier for the attachment.\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/auth.info\": {\n      \"post\": {\n        \"tags\": [\"Auth\"],\n        \"summary\": \"Retrieve auth\",\n        \"description\": \"Retrieve authentication details for the current API key\",\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Auth\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" }\n        }\n      }\n    },\n    \"/auth.config\": {\n      \"post\": {\n        \"tags\": [\"Auth\"],\n        \"summary\": \"Retrieve auth config\",\n        \"description\": \"Retrieve authentication options\",\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"name\": {\n                          \"type\": \"string\",\n                          \"example\": \"Acme Inc\"\n                        },\n                        \"hostname\": {\n                          \"type\": \"string\",\n                          \"example\": \"acme-inc.getoutline.com\"\n                        },\n                        \"services\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                              \"id\": {\n                                \"type\": \"string\",\n                                \"example\": \"slack\"\n                              },\n                              \"name\": {\n                                \"type\": \"string\",\n                                \"example\": \"Slack\"\n                              },\n                              \"authUrl\": {\n                                \"type\": \"string\",\n                                \"example\": \"https://acme-inc.getoutline.com/auth/slack\"\n                              }\n                            }\n                          }\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    },\n    \"/collections.info\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Retrieve a collection\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the collection.\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Collection\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.documents\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Retrieve a collections document structure\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the collection.\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/NavigationNode\"\n                      },\n                      \"example\": []\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.list\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"List all collections\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"$ref\": \"#/components/schemas/Pagination\"\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Collection\"\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.create\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Create a collection\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"name\": {\n                    \"type\": \"string\",\n                    \"example\": \"Human Resources\"\n                  },\n                  \"description\": {\n                    \"type\": \"string\",\n                    \"example\": \"\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  },\n                  \"color\": {\n                    \"type\": \"string\",\n                    \"example\": \"#123123\"\n                  },\n                  \"private\": {\n                    \"type\": \"boolean\",\n                    \"example\": false\n                  }\n                },\n                \"required\": [\"name\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Collection\"\n                    },\n                    \"policies\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Policy\"\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.update\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Update a collection\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"name\": {\n                    \"type\": \"string\",\n                    \"example\": \"Human Resources\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  },\n                  \"description\": {\n                    \"type\": \"string\",\n                    \"example\": \"\"\n                  },\n                  \"color\": {\n                    \"type\": \"string\",\n                    \"example\": \"#123123\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Collection\"\n                    },\n                    \"policies\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Policy\"\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.add_user\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Add a collection user\",\n        \"description\": \"This method allows you to add a user membership to the specified collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"userId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  }\n                },\n                \"required\": [\"id\", \"userId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"users\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/User\"\n                          }\n                        },\n                        \"memberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/Membership\"\n                          }\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.remove_user\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Remove a collection user\",\n        \"description\": \"This method allows you to remove a user from the specified collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Identifier for the collection\",\n                    \"format\": \"uuid\"\n                  },\n                  \"userId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\", \"userId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.memberships\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"List all collection memberships\",\n        \"description\": \"This method allows you to list a collections individual memberships. It's important to note that memberships returned from this endpoint do not include group memberships.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"allOf\": [\n                  {\n                    \"$ref\": \"#/components/schemas/Pagination\"\n                  },\n                  {\n                    \"type\": \"object\",\n                    \"properties\": {\n                      \"id\": {\n                        \"type\": \"string\",\n                        \"description\": \"Identifier for the collection\",\n                        \"format\": \"uuid\"\n                      },\n                      \"query\": {\n                        \"type\": \"string\",\n                        \"description\": \"Filter memberships by user names\",\n                        \"example\": \"jenny\"\n                      },\n                      \"permission\": {\n                        \"$ref\": \"#/components/schemas/Permission\"\n                      }\n                    },\n                    \"required\": [\"id\"]\n                  }\n                ]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"users\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/User\"\n                          }\n                        },\n                        \"memberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/Membership\"\n                          }\n                        }\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.add_group\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Add a group to a collection\",\n        \"description\": \"This method allows you to give all members in a group access to a collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"groupId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  }\n                },\n                \"required\": [\"id\", \"groupId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"collectionGroupMemberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/CollectionGroupMembership\"\n                          }\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.remove_group\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Remove a collection group\",\n        \"description\": \"This method allows you to revoke all members in a group access to a collection. Note that members of the group may still retain access through other groups or individual memberships.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Identifier for the collection\",\n                    \"format\": \"uuid\"\n                  },\n                  \"groupId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\", \"groupId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.group_memberships\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"List all collection group members\",\n        \"description\": \"This method allows you to list a collections group memberships. This is the list of groups that have been given access to the collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"allOf\": [\n                  {\n                    \"$ref\": \"#/components/schemas/Pagination\"\n                  },\n                  {\n                    \"type\": \"object\",\n                    \"properties\": {\n                      \"id\": {\n                        \"type\": \"string\",\n                        \"description\": \"Identifier for the collection\",\n                        \"format\": \"uuid\"\n                      },\n                      \"query\": {\n                        \"type\": \"string\",\n                        \"description\": \"Filter memberships by group names\",\n                        \"example\": \"developers\"\n                      },\n                      \"permission\": {\n                        \"$ref\": \"#/components/schemas/Permission\"\n                      }\n                    },\n                    \"required\": [\"id\"]\n                  }\n                ]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"groups\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/Group\"\n                          }\n                        },\n                        \"collectionGroupMemberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/CollectionGroupMembership\"\n                          }\n                        }\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.delete\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Delete a collection\",\n        \"description\": \"Delete a collection and all of its documents. This action can’t be undone so please be careful.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": { \"type\": \"string\", \"format\": \"uuid\" }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.export\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Export a collection\",\n        \"description\": \"Triggers a bulk export of the collection in markdown format and their attachments. If documents are nested then they will be nested in folders inside the zip file. The endpoint returns a `FileOperation` that can be queried to track the progress of the export and get the url for the final file.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"format\": {\n                    \"type\": \"string\",\n                    \"enum\": [\"outline-markdown\", \"json\", \"html\"]\n                  },\n                  \"id\": { \"type\": \"string\", \"format\": \"uuid\" }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"fileOperation\": {\n                          \"$ref\": \"#/components/schemas/FileOperation\"\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.export_all\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Export all collections\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"format\": {\n                    \"type\": \"string\",\n                    \"enum\": [\"outline-markdown\", \"json\", \"html\"]\n                  }\n                }\n              }\n            }\n          }\n        },\n        \"description\": \"Triggers a bulk export of all documents in and their attachments. The endpoint returns a `FileOperation` that can be queried through the fileOperations endpoint to track the progress of the export and get the url for the final file.\",\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"fileOperation\": {\n                          \"$ref\": \"#/components/schemas/FileOperation\"\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.create\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"Create a comment\",\n        \"description\": \"Create a comment\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"documentId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"parentCommentId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"data\": { \"type\": \"object\" }\n                },\n                \"required\": [\"documentId\", \"data\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Comment\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.update\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"Update a comment\",\n        \"description\": \"Update a comment\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"data\": { \"type\": \"object\" }\n                },\n                \"required\": [\"id\", \"data\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Comment\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.delete\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"Delete a comment\",\n        \"description\": \"Delete a comment\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": { \"type\": \"string\", \"format\": \"uuid\" }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.list\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"List all comments\",\n        \"description\": \"This method will list all comments matching the given properties.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"allOf\": [\n                  {\n                    \"$ref\": \"#/components/schemas/Pagination\"\n                  },\n                  { \"$ref\": \"#/components/schemas/Sorting\" },\n                  {\n                    \"type\": \"object\",\n                    \"properties\": {\n                      \"documentId\": {\n                        \"type\": \"string\",\n                        \"format\": \"uuid\",\n                        \"description\": \"Filter to a specific document\"\n                      },\n                      \"collectionId\": {\n                        \"type\": \"string\",\n                        \"format\": \"uuid\",\n                        \"description\": \"Filter to a specific collection\"\n                      }\n                    }\n                  }\n                ]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Document\"\n                      }\n                    },\n                    \"policies\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Policy\"\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/documents.info\": {\n      \"post\": {\n        \"tags\": [\"Documents\"],\n        \"summary\": \"Retrieve a document\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the document. Either the UUID or the urlId is acceptable.\"\n                  },\n                  \"shareId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\",\n                    \"description\": \"Unique identifier for a document share, a shareId may be used in place of a document UUID\"\n                  }\n                }\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Document\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/documents.import\": {\n      \"post\": {\n        \"tags\": [\"Documents\"],\n        \"summary\": \"Import a file as a document\",\n        \"description\": \"This method allows you to create a new document by importing an existing file. By default a document is set to the collection root. If you want to create a nested/child document, you should pass parentDocumentId to set the parent document.\",\n        \"requestBody\": {\n          \"content\": {\n            \"multipart/form-data\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"file\": {\n                    \"type\": \"object\",\n                    \"description\": \"Only plain text, markdown, docx, and html format are supported.\"\n                  },\n                  \"collectionId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"parentDocumentId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"template\": { \"type\": \"boolean\" },\n                  \"publish\": { \"type\": \"boolean\" }\n                }\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Document\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/documents.export\": {\n      \"post\": {\n        \"tags\": [\"Documents\"],\n        \"summary\": \"Export a document as markdown\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the document. Either the UUID or the urlId is acceptable.\"\n                  }\n                }\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"string\",\n                      \"description\": \"The document content in Markdown formatting\"\n                    }\n                  }\n                \n\n<!-- [TRUNCATED AT 50KB] -->","isInternal":false,"tokens":9597,"sizeBytes":50058},{"name":"README.md","path":"packages/cli/README.md","rawUrl":"https://raw.githubusercontent.com/scalar/cli/HEAD/packages/cli/README.md","title":"cli Documentation","category":"plugin-manifest","format":"markdown","content":"# Scalar CLI\n\nCommand-line interface to work with OpenAPI files\n\n## Installation\n\nIf you really want to become friends you should install the CLI:\n\n```bash\nnpm -g install @scalar/cli\n```\n\nOtherwise just prefix all commands with `npx @scalar/cli` instead of `scalar`. That’s fine, too.\n\n## Commands\n\n### format\n\nThe given JSON file will be formatted with Prettier.\n\n```bash\nscalar format\n```\n\n### validate\n\nTo check whether your OpenAPI file adheres to the Swagger 2.0, OpenAPI 3.0 or OpenAPI 3.1 specification, run the following command:\n\n```bash\nscalar validate\n```\n\n### share\n\nTo quickly share an OpenAPI file or reference with someone, you can use the share command:\n\n```bash\nscalar share\n```\n\nThis will upload your OpenAPI file to the [Scalar Sandbox](https://sandbox.scalar.com/) to give you a public reference URL and a public URL to your OpenAPI JSON file.\n\n### mock\n\nWe can even mock your API, and it’s just one command:\n\n```bash\nscalar mock\n```\n\nThis will boot up a server on port 3000 which gives you an API returning the dummy data according to your schema.\n\nIf you’d like to watch for file changes (to the OpenAPI file), do it like this:\n\n```bash\nscalar mock openapi.json --watch\n```\n\nYou can also change the port like this:\n\n```bash\nscalar mock openapi.json --watch --port 8080\n```\n\n### bundle\n\nSome OpenAPI files reference other files from the file system or an URL. You can bundle those files and make them a single file:\n\n```bash\nscalar bundle openapi.json --output bundle.json\n```\n\nIf you don’t provide an `output` file name, the input file will be overwritten.\n\n### init\n\nIf you’re tired of passing the file name again and again, just configure it once:\n\n```bash\nscalar init\n```\n\nThis will create a `scalar.config.json` file for you. All commands will use the configured OpenAPI file by default.\n\n## Options\n\n### --version\n\nIf you want to check which version of the CLI is installed, just run this:\n\n```bash\nscalar --version\n```\n\n### --help\n\n```bash\nscalar --help\n```\n\n## Development\n\nSet up the development environment:\n\n```bash\npnpm install\npnpm @scalar/cli --version\n```\n\nTo symlink the package and use it globally on your machine:\n\n```bash\npnpm cli:link\nscalar --version\n```\n","isInternal":false,"tokens":536,"sizeBytes":2207},{"name":"README.md","path":"packages/mock-server/README.md","rawUrl":"https://raw.githubusercontent.com/scalar/cli/HEAD/packages/mock-server/README.md","title":"mock-server Documentation","category":"plugin-manifest","format":"markdown","content":"# Scalar Mock Server\n\nA server returning fake data based on an OpenAPI specification\n\n## Installation\n\n```bash\nnpm install @scalar/mock-server\n```\n\n## Usage\n\n```ts\nimport { serve } from '@hono/node-server'\nimport { createMockServer } from '@scalar/mock-server'\n\n// Your OpenAPI specification\nconst openapi = {\n  openapi: '3.1.0',\n  info: {\n    title: 'Hello World',\n    version: '1.0.0',\n  },\n  paths: {\n    '/foobar': {\n      get: {\n        responses: {\n          '200': {\n            description: 'OK',\n            content: {\n              'application/json': {\n                example: {\n                  foo: 'bar',\n                },\n              },\n            },\n          },\n        },\n      },\n    },\n  },\n}\n\n// Create the mocked routes\nconst app = await createMockServer({\n  openapi,\n  onRequest({ context, operation }) {\n    console.log(context.req.method, context.req.path)\n  },\n})\n\n// Start the server\nserve(\n  {\n    fetch: app.fetch,\n    port: 3000,\n  },\n  (info) => {\n    console.log(`Listening on http://localhost:${info.port}`)\n  },\n)\n```\n","isInternal":false,"tokens":259,"sizeBytes":1058},{"name":".cursorrules","path":".cursorrules (ankra-cli.mdc)","rawUrl":"https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/ankra-cli.mdc","title":"Awesome Cursorrules: ankra cli","category":"cursor-rule","format":"markdown","content":"---\ndescription: \"Ankra CLI rules and best practices for managing Kubernetes clusters via the Ankra platform\"\nglobs: **/*.sh, **/*.yaml, **/*.yml, Makefile, **/Makefile, **/*.md\nalwaysApply: false\n---\n# Ankra CLI Best Practices\n\nAnkra is a Kubernetes cluster management platform. Its CLI (`ankra`) lets you manage organisations, clusters, add-ons, stacks, Helm releases, credentials, and tokens from the terminal.\n\n## Authentication & Configuration\n\n- Authenticate first: `ankra login`\n- Default config lives at `~/.ankra.yaml`; override with `--config <path>`\n- Override the API base URL with `--base-url` or `ANKRA_BASE_URL`\n- Supply an API token via `--token` or `ANKRA_API_TOKEN` (prefer env var in CI)\n- Logout cleanly: `ankra logout`\n\n```yaml\n# ~/.ankra.yaml example\nbase_url: https://api.ankra.io\ntoken: ${ANKRA_API_TOKEN}\n```\n\n## Organisation Management\n\n```bash\nankra org list                          # List accessible organisations\nankra org switch <org-name>             # Switch active organisation\nankra org create <name>                 # Create a new organisation\nankra org invite <email>                # Invite a user to the current org\nankra org members                       # List members of the current org\n```\n\n## Cluster Lifecycle\n\n```bash\nankra cluster list                      # List all clusters in the org\nankra cluster select <name>             # Set the active cluster context\nankra cluster info                      # Show details about the active cluster\nankra cluster provision                 # Provision a new cluster\nankra cluster deprovision               # Deprovision (destroy) the active cluster\nankra cluster reconcile                 # Reconcile cluster to desired state\nankra delete cluster <name>             # Delete a named cluster\n```\n\n- Always run `ankra cluster info` before destructive operations\n- Use `ankra cluster reconcile` after config changes before assuming state is correct\n\n## Add-ons\n\n```bash\nankra cluster addons list               # List installed add-ons\nankra cluster addons available          # List available (installable) add-ons\nankra cluster addons settings <addon>   # Show current settings for an add-on\nankra cluster addons update <addon>     # Update add-on configuration\nankra cluster addons uninstall <addon>  # Uninstall an add-on\n```\n\n## Stacks (Application Stacks)\n\n```bash\nankra cluster stacks list               # List stacks in the cluster\nankra cluster stacks create <name>      # Create a new stack\nankra cluster stacks delete <name>      # Delete a stack\nankra cluster stacks rename <old> <new> # Rename a stack\nankra cluster stacks clone <src> <dst>  # Clone a stack\nankra cluster stacks history <name>     # View stack change history\n```\n\n- Prefer `clone` over `create` when replicating an existing working stack\n- Check `history` before rolling back to understand what changed\n\n## Manifests & Operations\n\n```bash\nankra cluster manifests list            # List deployed manifests\nankra cluster operations list           # List in-progress or recent operations\nankra cluster operations cancel <id>    # Cancel a running operation\n```\n\n## Cluster Agent\n\n```bash\nankra cluster agent status              # Check agent health\nankra cluster agent token               # Retrieve agent bootstrap token\nankra cluster agent upgrade             # Upgrade the in-cluster agent\n```\n\n- Run `agent status` if cluster commands seem unresponsive\n- Rotate the agent token periodically for security\n\n## Helm\n\n```bash\nankra cluster helm releases             # List Helm releases in the cluster\nankra cluster helm uninstall <release>  # Uninstall a Helm release\nankra helm registries                   # List configured Helm registries\nankra helm credentials                  # List Helm registry credentials\n```\n\n## Hetzner Cloud Clusters\n\n```bash\nankra cluster hetzner create            # Create a Hetzner-backed cluster\nankra cluster hetzner scale             # Scale the cluster node count\nankra cluster hetzner upgrade           # Upgrade Kubernetes version\nankra cluster hetzner workers           # Manage worker node groups\nankra cluster hetzner node-group        # Node group management\n```\n\n## Charts\n\n```bash\nankra charts list                       # List available charts\nankra charts search <term>              # Search charts\nankra charts info <chart>               # Detailed chart information\n```\n\n## Credentials\n\n```bash\nankra credentials list                              # List stored credentials\nankra credentials get <name>                        # Retrieve a credential\nankra credentials validate <name>                   # Validate a credential\nankra credentials delete <name>                     # Delete a credential\nankra credentials hetzner --name <n> --token <t>   # Store Hetzner API token\nankra credentials ovh ...                           # Store OVH credentials\nankra credentials upcloud ...                       # Store UpCloud credentials\n```\n\n- Never commit credentials to source control; use `ANKRA_API_TOKEN` env var\n- Validate credentials immediately after creation: `ankra credentials validate <name>`\n\n## Tokens (API Tokens)\n\n```bash\nankra tokens list                       # List API tokens\nankra tokens create --name <name>       # Create a new API token\nankra tokens revoke <id>                # Revoke a token (keeps record)\nankra tokens delete <id>                # Permanently delete a token\n```\n\n## AI Troubleshooting\n\n```bash\nankra chat                              # Start AI-powered troubleshooting session\n```\n\nUse `ankra chat` when facing ambiguous errors — it provides contextual guidance.\n\n## Global Flags\n\n| Flag | Env Var | Description |\n|------|---------|-------------|\n| `--base-url <url>` | `ANKRA_BASE_URL` | Override API base URL |\n| `--token <token>` | `ANKRA_API_TOKEN` | API authentication token |\n| `--config <path>` | — | Path to config file (default `~/.ankra.yaml`) |\n\n## Scripting & Automation Tips\n\n- Export `ANKRA_API_TOKEN` in CI pipelines; never hard-code tokens\n- Use `--token` for one-off scripts where env var injection is not possible\n- Chain `ankra cluster select` before cluster-scoped commands in scripts\n- Pipe output through `jq` for structured processing where JSON output is available\n- Use `ankra cluster operations list` in CI to poll for async operation completion\n- Add `set -euo pipefail` to shell scripts using the Ankra CLI\n\n## Common Workflows\n\n### Provision and configure a new Hetzner cluster\n\n```bash\nankra login\nankra org switch my-org\nankra cluster hetzner create\nankra cluster select my-new-cluster\nankra cluster agent status\nankra cluster addons available\nankra cluster addons update some-addon\nankra cluster reconcile\n```\n\n### Deploy a stack from a chart\n\n```bash\nankra cluster select my-cluster\nankra charts search my-app\nankra charts info my-app\nankra cluster stacks create my-stack\nankra cluster manifests list\n```\n\n### Rotate credentials safely\n\n```bash\nankra tokens create --name ci-token-new\n# Update CI secret with new token\nankra tokens revoke <old-token-id>\nankra credentials validate my-cloud-cred\n```\n","tokens":1574,"sizeBytes":7084}],"systemPromptSnippet":"<yakaai_skills repo=\"scalar/cli\">\n<!-- File: packages/cli/openapi.json (Tokens: ~9597 | Category: anthropic-skill) -->\n{\n  \"openapi\": \"3.0.0\",\n  \"info\": {\n    \"title\": \"Outline API\",\n    \"description\": \"# Introduction\\n\\nThe Outline API is structured in an RPC style. It enables you to\\nprogramatically interact with all aspects of Outline’s data – in fact, the\\nmain application is built on exactly the same API.\\n\\nThe API structure is available as an\\n[openapi specification](https://github.com/outline/openapi) if that’s your\\njam – it can be used to generate clients for most programming languages.\\n\\n# Making requests\\n\\nOutline’s API follows simple RPC style conventions where each API endpoint is\\na method on `https://app.getoutline.com/api/method`. Both `GET` and `POST`\\nmethods are supported but it’s recommended that you make all call using POST.\\nOnly HTTPS is supported and all response payloads are JSON.\\n\\nWhen making `POST` requests, request parameters are parsed depending on\\nContent-Type header. To make a call using JSON payload, you must pass\\nContent-Type: application/json header, here’s an example using CURL:\\n\\n```\\ncurl https://app.getoutline.com/api/documents.info \\\\\\n-X 'POST' \\\\\\n-H 'authorization: Bearer MY_API_KEY' \\\\\\n-H 'content-type: application/json' \\\\\\n-H 'accept: application/json' \\\\\\n-d '{\\\"id\\\": \\\"outline-api-NTpezNwhUP\\\"}'\\n```\\n\\nOr, with JavaScript:\\n\\n```javascript\\nconst response = await fetch(\\\"https://app.getoutline.com/api/documents.info\\\", {\\n  method: \\\"POST\\\",\\n  headers: {\\n    Accept: \\\"application/json\\\",\\n    \\\"Content-Type\\\": \\\"application/json\\\",\\n    Authorization: \\\"Bearer MY_API_KEY\\\"\\n  }\\n})\\n\\nconst body = await response.json();\\nconst document = body.data;\\n```\\n\\n# Authentication\\n\\nTo access API endpoints, you must provide a valid API key. You can create new\\nAPI keys in your [account settings](https://app.getoutline.com/settings). Be\\ncareful when handling your keys as they give access to all of your documents,\\nyou should treat them like passwords and they should never be committed to\\nsource control.\\n\\nTo authenticate with API, you can supply the API key as a header\\n(`Authorization: Bearer YOUR_API_KEY`) or as part of the payload using `token`\\nparameter. Header based authentication is highly recommended so that your keys\\ndon’t accidentally leak into logs.\\n\\nSome API endpoints allow unauthenticated requests for public resources and\\nthey can be called without an API key.\\n\\n# Errors\\n\\nAll successful API requests will be returned with a 200 or 201 status code\\nand `ok: true` in the response payload. If there’s an error while making the\\nrequest, the appropriate status code is returned with the error message:\\n\\n```\\n{\\n  \\\"ok\\\": false,\\n  \\\"error\\\": \\\"Not Found\\\"\\n}\\n```\\n\\n# Pagination\\n\\nMost top-level API resources have support for \\\"list\\\" API methods. For instance,\\nyou can list users, documents, and collections. These list methods share\\ncommon parameters, taking both `limit` and `offset`.\\n\\nResponses will echo these parameters in the root `pagination` key, and also\\ninclude a `nextPath` key which can be used as a handy shortcut to fetch the\\nnext page of results. For example:\\n\\n```\\n{\\n  ok: true,\\n  status: 200,\\n  data: […],\\n  pagination: {\\n    limit: 25,\\n    offset: 0,\\n    nextPath: \\\"/api/documents.list?limit=25&offset=25\\\"\\n  }\\n}\\n```\\n\\n# Policies\\n\\nMany API resources have associated \\\"policies\\\", these objects describe the\\ncurrent API keys authorized actions related to an individual resource. It\\nshould be noted that the policy \\\"id\\\" is identical to the resource it is\\nrelated to, policies themselves do not have unique identifiers.\\n\\nFor most usecases of the API, policies can be safely ignored. Calling\\nunauthorized methods will result in the appropriate response code – these are\\nused in the main Outline UI to adjust which elements are visible.\\n\",\n    \"version\": \"0.1.0\",\n    \"contact\": { \"email\": \"hello@getoutline.com\" }\n  },\n  \"servers\": [\n    { \"url\": \"https://app.getoutline.com/api\", \"description\": \"Production\" }\n  ],\n  \"security\": [{ \"http\": [] }],\n  \"tags\": [\n    {\n      \"name\": \"Attachments\",\n      \"description\": \"`Attachments` represent a file uploaded to cloud storage. They are created\\nbefore the upload happens from the client and store all the meta information\\nsuch as file type, size, and location.\\n\"\n    },\n    {\n      \"name\": \"Auth\",\n      \"description\": \"`Auth` represents the current API Keys authentication details. It can be\\nused to check that a token is still valid and load the IDs for the current\\nuser and team.\\n\"\n    },\n    {\n      \"name\": \"Collections\",\n      \"description\": \"`Collections` represent grouping of documents in the knowledge base, they\\noffer a way to structure information in a nested hierarchy and a level\\nat which read and write permissions can be granted to individual users or\\ngroups of users.\\n\"\n    },\n    {\n      \"name\": \"Comments\",\n      \"description\": \"`Comments` represent a comment either on a selection of text in a document\\nor on the document itself.\\n\"\n    },\n    {\n      \"name\": \"Documents\",\n      \"description\": \"`Documents` are what everything else revolves around. A document represents\\na single page of information and always returns the latest version of the\\ncontent. Documents are stored in [Markdown](https://spec.commonmark.org/)\\nformatting.\\n\"\n    },\n    {\n      \"name\": \"Events\",\n      \"description\": \"`Events` represent an artifact of an action. Whether it is creating a user,\\nediting a document, changing permissions, or any other action – an event\\nis created that can be used as an audit trail or activity stream.\\n\"\n    },\n    {\n      \"name\": \"FileOperations\",\n      \"description\": \"`FileOperations` represent background jobs for importing or exporting files.\\nYou can query the file operation to find the state of progress and any\\nresulting output.\\n\"\n    },\n    {\n      \"name\": \"Groups\",\n      \"description\": \"`Groups` represent a list of users that logically belong together, for\\nexample there might be groups for each department in your organization.\\nGroups can be granted access to collections with read or write permissions.\\n\"\n    },\n    {\n      \"name\": \"Revisions\",\n      \"description\": \"`Revisions` represent a snapshop of a document at a point in time. They\\nare used to keep tracking of editing and collaboration history – a document\\ncan also be restored to a previous revision if neccessary.\\n\"\n    },\n    {\n      \"name\": \"Shares\",\n      \"description\": \"`Shares` represent authorization to view a document without being a member\\nof the team. Shares are created in order to give access to documents publicly.\\nEach user that shares a document will have a unique share object.\\n\"\n    },\n    {\n      \"name\": \"Users\",\n      \"description\": \"`Users` represent an individual with access to the knowledge base. Users\\ncan be created automatically when signing in with SSO or when a user is\\ninvited via email.\\n\"\n    },\n    {\n      \"name\": \"Views\",\n      \"description\": \"`Views` represent a compressed record of an individual users views of a\\ndocument. Individual views are not recorded but a first, last and total\\nis kept per user.\\n\"\n    }\n  ],\n  \"paths\": {\n    \"/attachments.create\": {\n      \"post\": {\n        \"tags\": [\"Attachments\"],\n        \"summary\": \"Create an attachment\",\n        \"description\": \"Creating an attachment object creates a database record and returns the inputs needed to generate a signed url and upload the file from the client to cloud storage.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"name\": {\n                    \"type\": \"string\",\n                    \"example\": \"image.png\"\n                  },\n                  \"documentId\": {\n                    \"type\": \"string\",\n                    \"description\": \"Identifier for the associated document, if any.\",\n                    \"format\": \"uuid\"\n                  },\n                  \"contentType\": {\n                    \"type\": \"string\",\n                    \"example\": \"image/png\"\n                  },\n                  \"size\": {\n                    \"type\": \"number\",\n                    \"description\": \"Size of the file attachment in bytes.\"\n                  }\n                },\n                \"required\": [\"name\", \"contentType\", \"size\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"maxUploadSize\": {\n                          \"type\": \"number\"\n                        },\n                        \"uploadUrl\": {\n                          \"type\": \"string\",\n                          \"format\": \"uri\"\n                        },\n                        \"form\": { \"type\": \"object\" },\n                        \"attachment\": {\n                          \"$ref\": \"#/components/schemas/Attachment\"\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/attachments.redirect\": {\n      \"post\": {\n        \"tags\": [\"Attachments\"],\n        \"summary\": \"Retrieve an attachment\",\n        \"description\": \"Load an attachment from where it is stored based on the id. If the attachment is private then a temporary, signed url with embedded credentials is generated on demand.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the attachment.\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"302\": { \"description\": \"The url for the attachment\" }\n        }\n      }\n    },\n    \"/attachments.delete\": {\n      \"post\": {\n        \"tags\": [\"Attachments\"],\n        \"summary\": \"Delete an attachment\",\n        \"description\": \"Deleting an attachment is permanant. It will not delete references or links to the attachment that may exist in your documents.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\",\n                    \"description\": \"Unique identifier for the attachment.\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/auth.info\": {\n      \"post\": {\n        \"tags\": [\"Auth\"],\n        \"summary\": \"Retrieve auth\",\n        \"description\": \"Retrieve authentication details for the current API key\",\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Auth\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" }\n        }\n      }\n    },\n    \"/auth.config\": {\n      \"post\": {\n        \"tags\": [\"Auth\"],\n        \"summary\": \"Retrieve auth config\",\n        \"description\": \"Retrieve authentication options\",\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"name\": {\n                          \"type\": \"string\",\n                          \"example\": \"Acme Inc\"\n                        },\n                        \"hostname\": {\n                          \"type\": \"string\",\n                          \"example\": \"acme-inc.getoutline.com\"\n                        },\n                        \"services\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                              \"id\": {\n                                \"type\": \"string\",\n                                \"example\": \"slack\"\n                              },\n                              \"name\": {\n                                \"type\": \"string\",\n                                \"example\": \"Slack\"\n                              },\n                              \"authUrl\": {\n                                \"type\": \"string\",\n                                \"example\": \"https://acme-inc.getoutline.com/auth/slack\"\n                              }\n                            }\n                          }\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    },\n    \"/collections.info\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Retrieve a collection\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the collection.\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Collection\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.documents\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Retrieve a collections document structure\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the collection.\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/NavigationNode\"\n                      },\n                      \"example\": []\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.list\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"List all collections\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"$ref\": \"#/components/schemas/Pagination\"\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Collection\"\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.create\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Create a collection\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"name\": {\n                    \"type\": \"string\",\n                    \"example\": \"Human Resources\"\n                  },\n                  \"description\": {\n                    \"type\": \"string\",\n                    \"example\": \"\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  },\n                  \"color\": {\n                    \"type\": \"string\",\n                    \"example\": \"#123123\"\n                  },\n                  \"private\": {\n                    \"type\": \"boolean\",\n                    \"example\": false\n                  }\n                },\n                \"required\": [\"name\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Collection\"\n                    },\n                    \"policies\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Policy\"\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.update\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Update a collection\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"name\": {\n                    \"type\": \"string\",\n                    \"example\": \"Human Resources\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  },\n                  \"description\": {\n                    \"type\": \"string\",\n                    \"example\": \"\"\n                  },\n                  \"color\": {\n                    \"type\": \"string\",\n                    \"example\": \"#123123\"\n                  }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Collection\"\n                    },\n                    \"policies\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Policy\"\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.add_user\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Add a collection user\",\n        \"description\": \"This method allows you to add a user membership to the specified collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"userId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  }\n                },\n                \"required\": [\"id\", \"userId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"users\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/User\"\n                          }\n                        },\n                        \"memberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/Membership\"\n                          }\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.remove_user\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Remove a collection user\",\n        \"description\": \"This method allows you to remove a user from the specified collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Identifier for the collection\",\n                    \"format\": \"uuid\"\n                  },\n                  \"userId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\", \"userId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.memberships\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"List all collection memberships\",\n        \"description\": \"This method allows you to list a collections individual memberships. It's important to note that memberships returned from this endpoint do not include group memberships.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"allOf\": [\n                  {\n                    \"$ref\": \"#/components/schemas/Pagination\"\n                  },\n                  {\n                    \"type\": \"object\",\n                    \"properties\": {\n                      \"id\": {\n                        \"type\": \"string\",\n                        \"description\": \"Identifier for the collection\",\n                        \"format\": \"uuid\"\n                      },\n                      \"query\": {\n                        \"type\": \"string\",\n                        \"description\": \"Filter memberships by user names\",\n                        \"example\": \"jenny\"\n                      },\n                      \"permission\": {\n                        \"$ref\": \"#/components/schemas/Permission\"\n                      }\n                    },\n                    \"required\": [\"id\"]\n                  }\n                ]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"users\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/User\"\n                          }\n                        },\n                        \"memberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/Membership\"\n                          }\n                        }\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.add_group\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Add a group to a collection\",\n        \"description\": \"This method allows you to give all members in a group access to a collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"groupId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"permission\": {\n                    \"$ref\": \"#/components/schemas/Permission\"\n                  }\n                },\n                \"required\": [\"id\", \"groupId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"collectionGroupMemberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/CollectionGroupMembership\"\n                          }\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.remove_group\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Remove a collection group\",\n        \"description\": \"This method allows you to revoke all members in a group access to a collection. Note that members of the group may still retain access through other groups or individual memberships.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Identifier for the collection\",\n                    \"format\": \"uuid\"\n                  },\n                  \"groupId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  }\n                },\n                \"required\": [\"id\", \"groupId\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.group_memberships\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"List all collection group members\",\n        \"description\": \"This method allows you to list a collections group memberships. This is the list of groups that have been given access to the collection.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"allOf\": [\n                  {\n                    \"$ref\": \"#/components/schemas/Pagination\"\n                  },\n                  {\n                    \"type\": \"object\",\n                    \"properties\": {\n                      \"id\": {\n                        \"type\": \"string\",\n                        \"description\": \"Identifier for the collection\",\n                        \"format\": \"uuid\"\n                      },\n                      \"query\": {\n                        \"type\": \"string\",\n                        \"description\": \"Filter memberships by group names\",\n                        \"example\": \"developers\"\n                      },\n                      \"permission\": {\n                        \"$ref\": \"#/components/schemas/Permission\"\n                      }\n                    },\n                    \"required\": [\"id\"]\n                  }\n                ]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"groups\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/Group\"\n                          }\n                        },\n                        \"collectionGroupMemberships\": {\n                          \"type\": \"array\",\n                          \"items\": {\n                            \"$ref\": \"#/components/schemas/CollectionGroupMembership\"\n                          }\n                        }\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"400\": { \"$ref\": \"#/components/responses/Validation\" },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/collections.delete\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Delete a collection\",\n        \"description\": \"Delete a collection and all of its documents. This action can’t be undone so please be careful.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": { \"type\": \"string\", \"format\": \"uuid\" }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.export\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Export a collection\",\n        \"description\": \"Triggers a bulk export of the collection in markdown format and their attachments. If documents are nested then they will be nested in folders inside the zip file. The endpoint returns a `FileOperation` that can be queried to track the progress of the export and get the url for the final file.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"format\": {\n                    \"type\": \"string\",\n                    \"enum\": [\"outline-markdown\", \"json\", \"html\"]\n                  },\n                  \"id\": { \"type\": \"string\", \"format\": \"uuid\" }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"fileOperation\": {\n                          \"$ref\": \"#/components/schemas/FileOperation\"\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/collections.export_all\": {\n      \"post\": {\n        \"tags\": [\"Collections\"],\n        \"summary\": \"Export all collections\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"format\": {\n                    \"type\": \"string\",\n                    \"enum\": [\"outline-markdown\", \"json\", \"html\"]\n                  }\n                }\n              }\n            }\n          }\n        },\n        \"description\": \"Triggers a bulk export of all documents in and their attachments. The endpoint returns a `FileOperation` that can be queried through the fileOperations endpoint to track the progress of the export and get the url for the final file.\",\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"object\",\n                      \"properties\": {\n                        \"fileOperation\": {\n                          \"$ref\": \"#/components/schemas/FileOperation\"\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.create\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"Create a comment\",\n        \"description\": \"Create a comment\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"documentId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"parentCommentId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"data\": { \"type\": \"object\" }\n                },\n                \"required\": [\"documentId\", \"data\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Comment\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.update\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"Update a comment\",\n        \"description\": \"Update a comment\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"data\": { \"type\": \"object\" }\n                },\n                \"required\": [\"id\", \"data\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Comment\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.delete\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"Delete a comment\",\n        \"description\": \"Delete a comment\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": { \"type\": \"string\", \"format\": \"uuid\" }\n                },\n                \"required\": [\"id\"]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"success\": {\n                      \"type\": \"boolean\",\n                      \"example\": true\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/comments.list\": {\n      \"post\": {\n        \"tags\": [\"Comments\"],\n        \"summary\": \"List all comments\",\n        \"description\": \"This method will list all comments matching the given properties.\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"allOf\": [\n                  {\n                    \"$ref\": \"#/components/schemas/Pagination\"\n                  },\n                  { \"$ref\": \"#/components/schemas/Sorting\" },\n                  {\n                    \"type\": \"object\",\n                    \"properties\": {\n                      \"documentId\": {\n                        \"type\": \"string\",\n                        \"format\": \"uuid\",\n                        \"description\": \"Filter to a specific document\"\n                      },\n                      \"collectionId\": {\n                        \"type\": \"string\",\n                        \"format\": \"uuid\",\n                        \"description\": \"Filter to a specific collection\"\n                      }\n                    }\n                  }\n                ]\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Document\"\n                      }\n                    },\n                    \"policies\": {\n                      \"type\": \"array\",\n                      \"items\": {\n                        \"$ref\": \"#/components/schemas/Policy\"\n                      }\n                    },\n                    \"pagination\": {\n                      \"$ref\": \"#/components/schemas/Pagination\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" }\n        }\n      }\n    },\n    \"/documents.info\": {\n      \"post\": {\n        \"tags\": [\"Documents\"],\n        \"summary\": \"Retrieve a document\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the document. Either the UUID or the urlId is acceptable.\"\n                  },\n                  \"shareId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\",\n                    \"description\": \"Unique identifier for a document share, a shareId may be used in place of a document UUID\"\n                  }\n                }\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Document\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/documents.import\": {\n      \"post\": {\n        \"tags\": [\"Documents\"],\n        \"summary\": \"Import a file as a document\",\n        \"description\": \"This method allows you to create a new document by importing an existing file. By default a document is set to the collection root. If you want to create a nested/child document, you should pass parentDocumentId to set the parent document.\",\n        \"requestBody\": {\n          \"content\": {\n            \"multipart/form-data\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"file\": {\n                    \"type\": \"object\",\n                    \"description\": \"Only plain text, markdown, docx, and html format are supported.\"\n                  },\n                  \"collectionId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"parentDocumentId\": {\n                    \"type\": \"string\",\n                    \"format\": \"uuid\"\n                  },\n                  \"template\": { \"type\": \"boolean\" },\n                  \"publish\": { \"type\": \"boolean\" }\n                }\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"$ref\": \"#/components/schemas/Document\"\n                    }\n                  }\n                }\n              }\n            }\n          },\n          \"401\": { \"$ref\": \"#/components/responses/Unauthenticated\" },\n          \"403\": { \"$ref\": \"#/components/responses/Unauthorized\" },\n          \"404\": { \"$ref\": \"#/components/responses/NotFound\" }\n        }\n      }\n    },\n    \"/documents.export\": {\n      \"post\": {\n        \"tags\": [\"Documents\"],\n        \"summary\": \"Export a document as markdown\",\n        \"requestBody\": {\n          \"content\": {\n            \"application/json\": {\n              \"schema\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"id\": {\n                    \"type\": \"string\",\n                    \"description\": \"Unique identifier for the document. Either the UUID or the urlId is acceptable.\"\n                  }\n                }\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"OK\",\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"data\": {\n                      \"type\": \"string\",\n                      \"description\": \"The document content in Markdown formatting\"\n                    }\n                  }\n                \n\n<!-- [TRUNCATED AT 50KB] -->\n\n<!-- File: packages/cli/README.md (Tokens: ~536 | Category: plugin-manifest) -->\n# Scalar CLI\n\nCommand-line interface to work with OpenAPI files\n\n## Installation\n\nIf you really want to become friends you should install the CLI:\n\n```bash\nnpm -g install @scalar/cli\n```\n\nOtherwise just prefix all commands with `npx @scalar/cli` instead of `scalar`. That’s fine, too.\n\n## Commands\n\n### format\n\nThe given JSON file will be formatted with Prettier.\n\n```bash\nscalar format\n```\n\n### validate\n\nTo check whether your OpenAPI file adheres to the Swagger 2.0, OpenAPI 3.0 or OpenAPI 3.1 specification, run the following command:\n\n```bash\nscalar validate\n```\n\n### share\n\nTo quickly share an OpenAPI file or reference with someone, you can use the share command:\n\n```bash\nscalar share\n```\n\nThis will upload your OpenAPI file to the [Scalar Sandbox](https://sandbox.scalar.com/) to give you a public reference URL and a public URL to your OpenAPI JSON file.\n\n### mock\n\nWe can even mock your API, and it’s just one command:\n\n```bash\nscalar mock\n```\n\nThis will boot up a server on port 3000 which gives you an API returning the dummy data according to your schema.\n\nIf you’d like to watch for file changes (to the OpenAPI file), do it like this:\n\n```bash\nscalar mock openapi.json --watch\n```\n\nYou can also change the port like this:\n\n```bash\nscalar mock openapi.json --watch --port 8080\n```\n\n### bundle\n\nSome OpenAPI files reference other files from the file system or an URL. You can bundle those files and make them a single file:\n\n```bash\nscalar bundle openapi.json --output bundle.json\n```\n\nIf you don’t provide an `output` file name, the input file will be overwritten.\n\n### init\n\nIf you’re tired of passing the file name again and again, just configure it once:\n\n```bash\nscalar init\n```\n\nThis will create a `scalar.config.json` file for you. All commands will use the configured OpenAPI file by default.\n\n## Options\n\n### --version\n\nIf you want to check which version of the CLI is installed, just run this:\n\n```bash\nscalar --version\n```\n\n### --help\n\n```bash\nscalar --help\n```\n\n## Development\n\nSet up the development environment:\n\n```bash\npnpm install\npnpm @scalar/cli --version\n```\n\nTo symlink the package and use it globally on your machine:\n\n```bash\npnpm cli:link\nscalar --version\n```\n\n<!-- File: packages/mock-server/README.md (Tokens: ~259 | Category: plugin-manifest) -->\n# Scalar Mock Server\n\nA server returning fake data based on an OpenAPI specification\n\n## Installation\n\n```bash\nnpm install @scalar/mock-server\n```\n\n## Usage\n\n```ts\nimport { serve } from '@hono/node-server'\nimport { createMockServer } from '@scalar/mock-server'\n\n// Your OpenAPI specification\nconst openapi = {\n  openapi: '3.1.0',\n  info: {\n    title: 'Hello World',\n    version: '1.0.0',\n  },\n  paths: {\n    '/foobar': {\n      get: {\n        responses: {\n          '200': {\n            description: 'OK',\n            content: {\n              'application/json': {\n                example: {\n                  foo: 'bar',\n                },\n              },\n            },\n          },\n        },\n      },\n    },\n  },\n}\n\n// Create the mocked routes\nconst app = await createMockServer({\n  openapi,\n  onRequest({ context, operation }) {\n    console.log(context.req.method, context.req.path)\n  },\n})\n\n// Start the server\nserve(\n  {\n    fetch: app.fetch,\n    port: 3000,\n  },\n  (info) => {\n    console.log(`Listening on http://localhost:${info.port}`)\n  },\n)\n```\n\n<!-- File: .cursorrules (ankra-cli.mdc) (Tokens: ~1574 | Category: cursor-rule) -->\n---\ndescription: \"Ankra CLI rules and best practices for managing Kubernetes clusters via the Ankra platform\"\nglobs: **/*.sh, **/*.yaml, **/*.yml, Makefile, **/Makefile, **/*.md\nalwaysApply: false\n---\n# Ankra CLI Best Practices\n\nAnkra is a Kubernetes cluster management platform. Its CLI (`ankra`) lets you manage organisations, clusters, add-ons, stacks, Helm releases, credentials, and tokens from the terminal.\n\n## Authentication & Configuration\n\n- Authenticate first: `ankra login`\n- Default config lives at `~/.ankra.yaml`; override with `--config <path>`\n- Override the API base URL with `--base-url` or `ANKRA_BASE_URL`\n- Supply an API token via `--token` or `ANKRA_API_TOKEN` (prefer env var in CI)\n- Logout cleanly: `ankra logout`\n\n```yaml\n# ~/.ankra.yaml example\nbase_url: https://api.ankra.io\ntoken: ${ANKRA_API_TOKEN}\n```\n\n## Organisation Management\n\n```bash\nankra org list                          # List accessible organisations\nankra org switch <org-name>             # Switch active organisation\nankra org create <name>                 # Create a new organisation\nankra org invite <email>                # Invite a user to the current org\nankra org members                       # List members of the current org\n```\n\n## Cluster Lifecycle\n\n```bash\nankra cluster list                      # List all clusters in the org\nankra cluster select <name>             # Set the active cluster context\nankra cluster info                      # Show details about the active cluster\nankra cluster provision                 # Provision a new cluster\nankra cluster deprovision               # Deprovision (destroy) the active cluster\nankra cluster reconcile                 # Reconcile cluster to desired state\nankra delete cluster <name>             # Delete a named cluster\n```\n\n- Always run `ankra cluster info` before destructive operations\n- Use `ankra cluster reconcile` after config changes before assuming state is correct\n\n## Add-ons\n\n```bash\nankra cluster addons list               # List installed add-ons\nankra cluster addons available          # List available (installable) add-ons\nankra cluster addons settings <addon>   # Show current settings for an add-on\nankra cluster addons update <addon>     # Update add-on configuration\nankra cluster addons uninstall <addon>  # Uninstall an add-on\n```\n\n## Stacks (Application Stacks)\n\n```bash\nankra cluster stacks list               # List stacks in the cluster\nankra cluster stacks create <name>      # Create a new stack\nankra cluster stacks delete <name>      # Delete a stack\nankra cluster stacks rename <old> <new> # Rename a stack\nankra cluster stacks clone <src> <dst>  # Clone a stack\nankra cluster stacks history <name>     # View stack change history\n```\n\n- Prefer `clone` over `create` when replicating an existing working stack\n- Check `history` before rolling back to understand what changed\n\n## Manifests & Operations\n\n```bash\nankra cluster manifests list            # List deployed manifests\nankra cluster operations list           # List in-progress or recent operations\nankra cluster operations cancel <id>    # Cancel a running operation\n```\n\n## Cluster Agent\n\n```bash\nankra cluster agent status              # Check agent health\nankra cluster agent token               # Retrieve agent bootstrap token\nankra cluster agent upgrade             # Upgrade the in-cluster agent\n```\n\n- Run `agent status` if cluster commands seem unresponsive\n- Rotate the agent token periodically for security\n\n## Helm\n\n```bash\nankra cluster helm releases             # List Helm releases in the cluster\nankra cluster helm uninstall <release>  # Uninstall a Helm release\nankra helm registries                   # List configured Helm registries\nankra helm credentials                  # List Helm registry credentials\n```\n\n## Hetzner Cloud Clusters\n\n```bash\nankra cluster hetzner create            # Create a Hetzner-backed cluster\nankra cluster hetzner scale             # Scale the cluster node count\nankra cluster hetzner upgrade           # Upgrade Kubernetes version\nankra cluster hetzner workers           # Manage worker node groups\nankra cluster hetzner node-group        # Node group management\n```\n\n## Charts\n\n```bash\nankra charts list                       # List available charts\nankra charts search <term>              # Search charts\nankra charts info <chart>               # Detailed chart information\n```\n\n## Credentials\n\n```bash\nankra credentials list                              # List stored credentials\nankra credentials get <name>                        # Retrieve a credential\nankra credentials validate <name>                   # Validate a credential\nankra credentials delete <name>                     # Delete a credential\nankra credentials hetzner --name <n> --token <t>   # Store Hetzner API token\nankra credentials ovh ...                           # Store OVH credentials\nankra credentials upcloud ...                       # Store UpCloud credentials\n```\n\n- Never commit credentials to source control; use `ANKRA_API_TOKEN` env var\n- Validate credentials immediately after creation: `ankra credentials validate <name>`\n\n## Tokens (API Tokens)\n\n```bash\nankra tokens list                       # List API tokens\nankra tokens create --name <name>       # Create a new API token\nankra tokens revoke <id>                # Revoke a token (keeps record)\nankra tokens delete <id>                # Permanently delete a token\n```\n\n## AI Troubleshooting\n\n```bash\nankra chat                              # Start AI-powered troubleshooting session\n```\n\nUse `ankra chat` when facing ambiguous errors — it provides contextual guidance.\n\n## Global Flags\n\n| Flag | Env Var | Description |\n|------|---------|-------------|\n| `--base-url <url>` | `ANKRA_BASE_URL` | Override API base URL |\n| `--token <token>` | `ANKRA_API_TOKEN` | API authentication token |\n| `--config <path>` | — | Path to config file (default `~/.ankra.yaml`) |\n\n## Scripting & Automation Tips\n\n- Export `ANKRA_API_TOKEN` in CI pipelines; never hard-code tokens\n- Use `--token` for one-off scripts where env var injection is not possible\n- Chain `ankra cluster select` before cluster-scoped commands in scripts\n- Pipe output through `jq` for structured processing where JSON output is available\n- Use `ankra cluster operations list` in CI to poll for async operation completion\n- Add `set -euo pipefail` to shell scripts using the Ankra CLI\n\n## Common Workflows\n\n### Provision and configure a new Hetzner cluster\n\n```bash\nankra login\nankra org switch my-org\nankra cluster hetzner create\nankra cluster select my-new-cluster\nankra cluster agent status\nankra cluster addons available\nankra cluster addons update some-addon\nankra cluster reconcile\n```\n\n### Deploy a stack from a chart\n\n```bash\nankra cluster select my-cluster\nankra charts search my-app\nankra charts info my-app\nankra cluster stacks create my-stack\nankra cluster manifests list\n```\n\n### Rotate credentials safely\n\n```bash\nankra tokens create --name ci-token-new\n# Update CI secret with new token\nankra tokens revoke <old-token-id>\nankra credentials validate my-cloud-cred\n```\n</yakaai_skills>"}