{"openapi":"3.1.0","info":{"title":"Hub API Endpoints","version":"0.0.1","description":"We have open endpoints that you can use to retrieve information from the Hub as well as perform certain actions such as creating model, dataset or Space repos. We offer a wrapper Python client, [`huggingface_hub`](https://github.com/huggingface/huggingface_hub), and a JS client, [`huggingface.js`](https://github.com/huggingface/huggingface.js), that allow easy access to these endpoints. We also provide [webhooks](https://huggingface.co/docs/hub/webhooks) to receive real-time incremental info about repos. Enjoy!\n\nThe base URL for those endpoints below is `https://huggingface.co`. For example, to construct the `/api/models` call below, one can call the URL [https://huggingface.co/api/models](https://huggingface.co/api/models).\n\nIf you're an Agent, you might prefer the [markdown version OpenAPI spec](https://huggingface.co/.well-known/openapi.md).\n"},"servers":[{"url":"https://huggingface.co","description":"Hub"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"RepoId":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"examples":["deepseek-ai/DeepSeek-R1","black-forest-labs/FLUX.1-dev"],"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]}},"required":["name","type"],"additionalProperties":false,"id":"RepoId"},"Job":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"owner":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"secrets":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"null"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"}},"required":["stage","message"],"additionalProperties":false},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"retry":{"type":"number"},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}}},"required":["id","createdAt","owner","environment","flavor","status","createdBy"],"additionalProperties":false,"id":"Job"}}},"security":[{"bearerAuth":[]}],"tags":[{"name":"auth","x-displayName":"Auth","description":"The following endpoints get information about your currently used user based on the passed token."},{"name":"models","x-displayName":"Models","description":"Get information from all models on the Hub."},{"name":"kernels","x-displayName":"Kernels","description":"Get information from all kernels on the Hub."},{"name":"datasets","x-displayName":"Datasets","description":"Get information from all datasets on the Hub."},{"name":"sql-console","x-displayName":"SQL Console","description":"Get information from SQL Console embeds from a dataset."},{"name":"discussions","x-displayName":"Discussions","description":"The following endpoints manage discussions."},{"name":"spaces","x-displayName":"Spaces","description":"Get information from all Spaces on the Hub."},{"name":"repo-search","x-displayName":"Repository Search","description":"The following endpoints help get information about models, datasets, and Spaces stored on the Hub."},{"name":"repos","x-displayName":"Repositories","description":"The following endpoints manage repository settings like creating and deleting a repository."},{"name":"users","x-displayName":"Users","description":"User accounts are the base authoring entity on the Hub"},{"name":"orgs","x-displayName":"Organizations","description":"The following endpoints let you interact with Hub Organizations and their members."},{"name":"jobs","x-displayName":"Jobs","description":"The following endpoints manage jobs."},{"name":"resource-groups","x-displayName":"Resource groups","description":"The following endpoints manage resource groups. Resource groups are a Team or Enterprise feature."},{"name":"papers","x-displayName":"Paper pages","description":"The following endpoint gets information about papers."},{"name":"collections","x-displayName":"Collections","description":"Use Collections to group repositories from the Hub (Models, Datasets, Spaces and Papers) on a dedicated page.\n\nYou can learn more about it in the Collections [guide](https://huggingface.co/docs/hub/collections). Collections can also be managed using the Python client (see [guide](https://huggingface.co/docs/huggingface_hub/main/en/guides/collections))."},{"name":"buckets","x-displayName":"Buckets","description":"Git-free storage buckets for files, powered by Xet. Buckets provide simple file storage without git versioning."},{"name":"notifications","x-displayName":"Notifications","description":"The following endpoints fetch Hub notifications."},{"name":"inference-providers","x-displayName":"Inference Providers","description":"Run inference from one of our inference providers."},{"name":"inference-endpoints","x-displayName":"Inference Endpoints","description":"Manage inference endpoints."},{"name":"mcp","x-displayName":"MCP","description":"The following endpoints are for use with the MCP server."},{"name":"oauth","x-displayName":"OAuth","description":"The following endpoints are for use with OAuth."},{"name":"docs","x-displayName":"Documentation","description":"The following endpoints are for interacting with the Hub's documentation."},{"name":"webhooks","x-displayName":"Webhooks","description":"The following endpoints are for use with webhooks."},{"name":"scim","x-displayName":"SCIM","description":"Use the SCIM API to control and manage your hub Enterprise organization manage members' access.\n## Authentication\n\n- Must be organization owner\n- Use Access token with write permission on organization\n- Organization must be Enterprise Plus\n\n## Key Attribute Matching\n\n- Microsoft Entra ID (Azure AD)\n\t* SAML: `http://schemas.microsoft.com/identity/claims/objectidentifier`\n\t* SCIM: `externalId`\n- Other Identity Providers\n\t* SAML: `NameID` or `unique identifier`\n\t* SCIM: `externalId`\n\n## Supported SCIM User Attributes\n\n| Attribute | Description |\n|---|---|\n| `userName` | Username for the user |\n| `name.givenName` | First name |\n| `name.familyName` | Last name |\n| `emails` | Array of user emails; we don't support email types |\n| `externalId` | IDP provider's unique identifier |\n| `id` | Hugging Face SCIM endpoint identifier |\n| `active` | Boolean for provisioning status |\n\n"},{"name":"agentic-provisioning","x-displayName":"Agentic Provisioning","description":"The following endpoints are for use with Agentic Provisioning Protocol."}],"paths":{"/api/notifications":{"get":{"description":"List notifications for the user","summary":"List notifications","tags":["notifications"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"notifications":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"const":"paper"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"read":{"type":"boolean"},"discussionEventId":{"type":"string"},"paper":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"title":{"type":"string"}},"required":["_id","title"],"additionalProperties":false},"paperDiscussion":{"type":"object","properties":{"id":{"type":"string"},"participating":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatar":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatar","user"],"additionalProperties":false}},"paperId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"}},"required":["id","participating","paperId"],"additionalProperties":false}},"required":["type","updatedAt","read","paper","paperDiscussion"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"repo"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"read":{"type":"boolean"},"discussionEventId":{"type":"string"},"repo":{"$ref":"#/components/schemas/RepoId"},"discussion":{"type":"object","properties":{"num":{"type":"number"},"title":{"type":"string"},"status":{"enum":["draft","open","closed","merged"]},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"isPullRequest":{"type":"boolean"},"participating":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatar":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatar","user"],"additionalProperties":false}}},"required":["num","title","status","id","isPullRequest","participating"],"additionalProperties":false}},"required":["type","updatedAt","read","repo","discussion"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"post"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"read":{"type":"boolean"},"discussionEventId":{"type":"string"},"post":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"authorName":{"type":"string"},"title":{"type":"string"},"participating":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatar":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatar","user"],"additionalProperties":false}}},"required":["id","slug","authorName","title","participating"],"additionalProperties":false}},"required":["type","updatedAt","read","post"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"community_blog"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"read":{"type":"boolean"},"discussionEventId":{"type":"string"},"blog":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"canonical":{"type":"boolean"},"authorName":{"type":"string"},"participating":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatar":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatar","user"],"additionalProperties":false}}},"required":["id","slug","title","canonical","participating"],"additionalProperties":false}},"required":["type","updatedAt","read","blog"],"additionalProperties":false}]}},"count":{"type":"object","properties":{"view":{"type":"number"},"unread":{"type":"number"},"all":{"type":"number"}},"required":["view","unread","all"],"additionalProperties":false},"start":{"type":"number"}},"required":["notifications","count","start"],"additionalProperties":false}}},"description":"The notifications for the user"}},"parameters":[{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"required":false},{"name":"readStatus","in":"query","schema":{"default":"all","enum":["all","unread"]},"required":false},{"name":"repoType","in":"query","schema":{"enum":["dataset","model","space","bucket","kernel"]},"required":false},{"name":"repoName","in":"query","schema":{"type":"string"},"required":false},{"name":"postAuthor","in":"query","schema":{"type":"string"},"required":false},{"name":"paperId","in":"query","schema":{"type":"string"},"required":false},{"name":"articleId","in":"query","schema":{"type":"string"},"required":false},{"name":"mention","in":"query","schema":{"default":"all","enum":["all","participating","mentions"]},"required":false},{"name":"lastUpdate","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false}]},"delete":{"description":"Delete notifications, either by specifying discussionIds or by applying to all notifications with search parameters","summary":"Delete notifications","tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"discussionIds":{"minItems":1,"type":"array","items":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"}}}}}}},"parameters":[{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"required":false},{"name":"readStatus","in":"query","schema":{"default":"all","enum":["all","unread"]},"required":false},{"name":"repoType","in":"query","schema":{"enum":["dataset","model","space","bucket","kernel"]},"required":false},{"name":"repoName","in":"query","schema":{"type":"string"},"required":false},{"name":"postAuthor","in":"query","schema":{"type":"string"},"required":false},{"name":"paperId","in":"query","schema":{"type":"string"},"required":false},{"name":"articleId","in":"query","schema":{"type":"string"},"required":false},{"name":"mention","in":"query","schema":{"default":"all","enum":["all","participating","mentions"]},"required":false},{"name":"lastUpdate","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"applyToAll","in":"query","schema":{"default":false},"required":false}]}},"/api/settings/mcp":{"get":{"description":"Get the MCP tools for the current user","summary":"Get MCP tools","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"builtInTools":{"type":"array","items":{"type":"string"}},"spaceTools":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"emoji":{"type":"string"},"subdomain":{"type":"string"}},"required":["_id","name","emoji","subdomain"],"additionalProperties":false}}},"required":["builtInTools","spaceTools"],"additionalProperties":false}}},"description":"The MCP tools for the current user"}}}},"/api/settings/notifications":{"patch":{"description":"Update notification settings for the user","summary":"Update notification settings","tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"notifications":{"type":"object","properties":{"announcements":{"type":"boolean"},"arxiv_paper_activity":{"type":"boolean"},"daily_papers_digest":{"type":"boolean"},"discussions_participating":{"type":"boolean"},"discussions_watched":{"type":"boolean"},"gated_user_access_request":{"type":"boolean"},"inference_endpoint_status":{"type":"boolean"},"launch_autonlp":{"type":"boolean"},"launch_spaces":{"type":"boolean"},"launch_prepaid_credits":{"type":"boolean"},"launch_training_cluster":{"type":"boolean"},"org_request":{"type":"boolean"},"org_suggestions":{"type":"boolean"},"org_verified_suggestions":{"type":"boolean"},"org_suggestions_to_create":{"type":"boolean"},"posts_participating":{"type":"boolean"},"user_follows":{"type":"boolean"},"secret_detected":{"type":"boolean"},"web_discussions_participating":{"type":"boolean"},"web_discussions_watched":{"type":"boolean"},"web_posts_participating":{"type":"boolean"},"product_updates_after":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"api_inference_sunset":{"type":"boolean"},"locked_out":{"type":"boolean"}}},"prepaidAmount":{"description":"To be provided when enabling launch_prepaid_credits","type":"string","maxLength":24}},"required":["notifications"]}}}}}},"/api/settings/watch":{"patch":{"description":"Update watch settings for the user. Get notified when discussions happen on your watched items.","summary":"Update watch settings","tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"delete":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"enum":["org","user","repo"]}},"required":["id","type"]}},"add":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"enum":["org","user","repo"]}},"required":["id","type"]}}}}}}}}},"/api/settings/webhooks":{"get":{"summary":"List webhooks","tags":["webhooks"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"dockerImage":{"type":"string"},"spaceId":{"type":"string"},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"secrets":{"type":"array","items":{"type":"string"}}},"required":["environment","flavor","timeoutSeconds"],"additionalProperties":false},"jobSourceId":{"type":"string"},"disabled":{"anyOf":[{"type":"boolean"},{"const":"suspended-after-failure"}]},"watched":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"avatarUrl":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"secret":{"type":"string"},"domains":{"type":"array","items":{"enum":["repo","discussion"]}},"lastTriggerAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","disabled","watched","domains"],"additionalProperties":false}}}},"description":"Webhooks"}}},"post":{"summary":"Create webhook","tags":["webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"watched":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"name":{"type":"string"}},"required":["type","name"]}},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"secrets":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"additionalProperties":{"type":"string"}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"arch":{"enum":["amd64","arm64"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"attempts":{"description":"Max number of attempts to make. For example, if you set this to 3, the job will be retried up to 2 times if it fails.","default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the job container.","minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}}},"required":["flavor"]},"jobSourceId":{"type":"string"},"domains":{"minItems":1,"type":"array","items":{"enum":["repo","discussion"]}},"secret":{"type":"string","pattern":"^[\\x20-\\x7F]*$"}},"required":["watched","domains"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"webhook":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"dockerImage":{"type":"string"},"spaceId":{"type":"string"},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"secrets":{"type":"array","items":{"type":"string"}}},"required":["environment","flavor","timeoutSeconds"],"additionalProperties":false},"jobSourceId":{"type":"string"},"disabled":{"anyOf":[{"type":"boolean"},{"const":"suspended-after-failure"}]},"watched":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"avatarUrl":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"secret":{"type":"string"},"domains":{"type":"array","items":{"enum":["repo","discussion"]}},"lastTriggerAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","disabled","watched","domains"],"additionalProperties":false}},"required":["webhook"],"additionalProperties":false}}},"description":"Created webhook"}}}},"/api/settings/webhooks/{webhookId}":{"get":{"summary":"Get webhook","tags":["webhooks"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"webhook":{"description":"Webhook","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"dockerImage":{"type":"string"},"spaceId":{"type":"string"},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"secrets":{"type":"array","items":{"type":"string"}}},"required":["environment","flavor","timeoutSeconds"],"additionalProperties":false},"jobSourceId":{"type":"string"},"disabled":{"anyOf":[{"type":"boolean"},{"const":"suspended-after-failure"}]},"watched":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"avatarUrl":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"secret":{"type":"string"},"domains":{"type":"array","items":{"enum":["repo","discussion"]}},"lastTriggerAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","disabled","watched","domains"],"additionalProperties":false}},"required":["webhook"],"additionalProperties":false}}},"description":"Webhook"}},"parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"summary":"Update webhook","tags":["webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"watched":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"name":{"type":"string"}},"required":["type","name"]}},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"secrets":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"additionalProperties":{"type":"string"}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"arch":{"enum":["amd64","arm64"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"attempts":{"description":"Max number of attempts to make. For example, if you set this to 3, the job will be retried up to 2 times if it fails.","default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the job container.","minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}}},"required":["flavor"]},"jobSourceId":{"type":"string"},"domains":{"minItems":1,"type":"array","items":{"enum":["repo","discussion"]}},"secret":{"type":"string","pattern":"^[\\x20-\\x7F]*$"}},"required":["watched","domains"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"webhook":{"description":"Webhook","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"dockerImage":{"type":"string"},"spaceId":{"type":"string"},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"secrets":{"type":"array","items":{"type":"string"}}},"required":["environment","flavor","timeoutSeconds"],"additionalProperties":false},"jobSourceId":{"type":"string"},"disabled":{"anyOf":[{"type":"boolean"},{"const":"suspended-after-failure"}]},"watched":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"avatarUrl":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"secret":{"type":"string"},"domains":{"type":"array","items":{"enum":["repo","discussion"]}},"lastTriggerAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","disabled","watched","domains"],"additionalProperties":false}},"required":["webhook"],"additionalProperties":false}}},"description":"Updated webhook"}},"parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete webhook","tags":["webhooks"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}},"description":"Deleted webhook"}},"parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/settings/webhooks/{webhookId}/{action}":{"post":{"summary":"Enable/disable webhook","tags":["webhooks"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"webhook":{"description":"Webhook","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"dockerImage":{"type":"string"},"spaceId":{"type":"string"},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"secrets":{"type":"array","items":{"type":"string"}}},"required":["environment","flavor","timeoutSeconds"],"additionalProperties":false},"jobSourceId":{"type":"string"},"disabled":{"anyOf":[{"type":"boolean"},{"const":"suspended-after-failure"}]},"watched":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"avatarUrl":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"secret":{"type":"string"},"domains":{"type":"array","items":{"enum":["repo","discussion"]}},"lastTriggerAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","disabled","watched","domains"],"additionalProperties":false}},"required":["webhook"],"additionalProperties":false}}},"description":"Updated webhook"}},"parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","enum":["enable","disable"]}}]}},"/api/settings/webhooks/{webhookId}/replay/{logId}":{"post":{"summary":"Replay webhook log","tags":["webhooks"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"description":"Replay HTTP status","type":"number"}},"required":["status"],"additionalProperties":false}}},"description":"Replay response"}},"parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}},{"name":"logId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/settings/papers/claim":{"post":{"summary":"Claim paper authorship","tags":["papers"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paperId":{"description":"ArXiv paper identifier being claimed.","type":"string"},"claimAuthorId":{"description":"Author entry on the paper being claimed.","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"targetUserId":{"description":"HF user who should receive the claim.","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["paperId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean"},"claimedPaperId":{"type":"string"}},"required":["ok","claimedPaperId"],"additionalProperties":false}}},"description":"Paper authorship claim result, including the claimed paper id"}}}},"/api/organizations/{name}/settings/tokens/revoke":{"post":{"description":"An org admin can revoke a token's access to the org. The token itself isn't deleted, it still works outside the org. Requires the raw token value. Enterprise only.","summary":"Revoke a member's access token from the organization","tags":["orgs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string","pattern":"^hf_.*"}},"required":["token"]}}}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/audit-log/export":{"get":{"description":"Export the audit log events in JSON format for a Team or Enterprise organization. The export is limited to the last 100,000 events.","summary":"Export the audit log","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"type":{"enum":["billing.update_payment_method","billing.create_customer","billing.remove_payment_method","billing.aws_add","billing.aws_remove","billing.gcp_add","billing.gcp_remove","billing.marketplace_approve","billing.cancel_subscription","billing.renew_subscription","billing.start_subscription","billing.un_cancel_subscription","billing.update_subscription","billing.update_subscription_plan","billing.update_subscription_contract_details","collection.create","collection.delete","org.add_user","org.change_role","org.create","org.delete","org.restore","org.invite_user","org.invite.accept","org.invite.email","org.join.from_domain","org.join.automatic","org.leave","org.remove_user","org.rename","org.rotate_token","org.sso_login","org.sso_join","org.update_join_settings","org.update_settings","org.token_approval.enabled","org.token_approval.disabled","org.token_approval.authorization_request","org.token_approval.authorization_request.authorized","org.token_approval.authorization_request.revoked","org.token_approval.authorization_request.denied","org.custom_role.create","org.custom_role.update","org.custom_role.delete","repo.add_secrets","repo.remove_secrets","repo.add_secret","repo.update_secret","repo.remove_secret","repo.create","repo.delete","repo.disable","repo.removeDisable","repo.duplication","repo.delete_doi","repo.move","repo.update_resource_group","repo.update_settings","repo.add_variable","repo.update_variable","repo.remove_variable","repo.add_variables","repo.remove_variables","repo.delete_lfs_file","spaces.add_storage","spaces.remove_storage","spaces.set_volumes","spaces.remove_volumes","spaces.update_hardware","spaces.update_sleep_time","resource_group.create","resource_group.add_users","resource_group.remove_users","resource_group.change_role","resource_group.settings","resource_group.delete","jobs.create","jobs.cancel","scheduled_job.create","scheduled_job.delete","scheduled_job.resume","scheduled_job.suspend","scheduled_job.run","scheduled_job.update_schedule","oauth.token"]},"data":{},"message":{"type":"string"},"ip":{"type":"string"},"location":{"type":"object","properties":{"formatted":{"type":"string"},"country":{"type":"string"},"city":{"type":"string"}},"required":["formatted"],"additionalProperties":false},"userAgent":{"type":"string"},"author":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","system"]},"deleted":{"type":"boolean"}},"required":["_id","user","avatarUrl","type"],"additionalProperties":false},"token":{"type":"object","properties":{"type":{"const":"access_token"},"id":{"type":"string"},"role":{"enum":["read","write","fineGrained"]},"last4":{"type":"string"},"deleted":{"type":"boolean"}},"required":["type","id","deleted"],"additionalProperties":false},"oauth":{"type":"object","properties":{"clientId":{"type":"string"},"name":{"type":"string"}},"required":["clientId"],"additionalProperties":false}},"required":["_id","createdAt","type","message","author"],"additionalProperties":false}}}},"description":"Array of audit log events","headers":{"Content-Disposition":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"The filename of the exported audit log"}}}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"q","in":"query","schema":{"examples":["author:huggingface","ip:127.0.0.0","type:repo.create"],"type":"string"},"required":false}]}},"/api/organizations/{name}/resource-groups":{"get":{"description":"Retrieve accessible resource groups. Get all resource groups the user has access to.\n\nRequires the org to be Enterprise","summary":"Get resource groups","tags":["resource-groups"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"repos":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["name","type","private"],"additionalProperties":false}}},"required":["id","name","users","repos"],"additionalProperties":false}}}},"description":"Resource groups the user has access to"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"description":"Create a new resource group in the organization.\n\nRequires the org to be Enterprise","summary":"Create a resource group","tags":["resource-groups"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":500},"users":{"default":[],"type":"array","items":{"type":"object","properties":{"user":{"type":"string"},"role":{"enum":["admin","write","contributor","read"]}},"required":["user","role"]}},"repos":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/RepoId"}},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"enum":["admin","write","contributor","read"]}},"required":["enabled","role"]},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"]}]}},"required":["name"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"repos":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["name","type","private"],"additionalProperties":false}}},"required":["id","name","users","repos"],"additionalProperties":false}}},"description":"The created resource group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/avatar":{"get":{"description":"Retrieve organization avatar. This endpoint returns a JSON with the avatar URL for the organization.\n\nIf called with the `Sec-Fetch-Dest: image` header, it instead redirects to the avatar URL","summary":"Get avatar","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"avatarUrl":{"type":"string","format":"uri"}},"required":["avatarUrl"],"additionalProperties":false}}},"description":"Avatar URL"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"redirect","in":"query","schema":{"description":"Redirect to the avatar url instead of returning it"},"required":false}]}},"/api/organizations/{name}/members":{"get":{"description":"Get a list of members for the organization with optional search and pagination.","summary":"Get organization members","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"type":{"const":"user"},"isFollowing":{"type":"boolean"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"role":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"},"numUsers":{"type":"number"},"role":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]}},"required":["name","id","numUsers","role"],"additionalProperties":false}},"twoFaEnabled":{"type":"boolean"},"verifiedEmail":{"description":"The user's SSO email, if the org has a Team or Enterprise plan and the requester is an admin","anyOf":[{"type":"string"},{"type":"null"}]},"isExternalCollaborator":{"type":"boolean"}},"required":["avatarUrl","fullname","isPro","user","type","_id"],"additionalProperties":false}}}},"description":"Array of organization members","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"},"required":false},{"name":"email","in":"query","schema":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"default":500,"type":"integer","minimum":10,"maximum":10000},"required":false}]}},"/api/organizations/{name}/members/{username}/role":{"put":{"description":"Change the role of a member in the organization. Need a paid plan.","summary":"Change member role","tags":["orgs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"role":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"role":{"enum":["admin","write","contributor","read"]}},"required":["id","role"]}}},"required":["role"]}}}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/ServiceProviderConfig":{"get":{"description":"Returns the SCIM 2.0 Service Provider configuration, describing the server's capabilities and supported authentication schemes.","summary":"Get SCIM Service Provider Configuration","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"documentationUri":{"type":"string"},"patch":{"type":"object","properties":{"supported":{"type":"boolean"}},"required":["supported"],"additionalProperties":false},"bulk":{"type":"object","properties":{"supported":{"type":"boolean"},"maxOperations":{"type":"number"},"maxPayloadSize":{"type":"number"}},"required":["supported","maxOperations","maxPayloadSize"],"additionalProperties":false},"filter":{"type":"object","properties":{"supported":{"type":"boolean"},"maxResults":{"type":"number"}},"required":["supported","maxResults"],"additionalProperties":false},"changePassword":{"type":"object","properties":{"supported":{"type":"boolean"}},"required":["supported"],"additionalProperties":false},"sort":{"type":"object","properties":{"supported":{"type":"boolean"}},"required":["supported"],"additionalProperties":false},"etag":{"type":"object","properties":{"supported":{"type":"boolean"}},"required":["supported"],"additionalProperties":false},"authenticationSchemes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"specUri":{"type":"string"},"documentationUri":{"type":"string"}},"required":["type","name","description","specUri","documentationUri"],"additionalProperties":false}},"meta":{"type":"object","properties":{"resourceType":{"type":"string"},"location":{"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","documentationUri","patch","bulk","filter","changePassword","sort","etag","authenticationSchemes","meta"],"additionalProperties":false}}},"description":"SCIM Service Provider Configuration"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/ResourceTypes":{"get":{"description":"Returns the list of SCIM 2.0 resource types supported by this server (User and Group).","summary":"Get SCIM Resource Types","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"endpoint":{"type":"string"},"schema":{"type":"string"},"meta":{"type":"object","properties":{"resourceType":{"type":"string"},"location":{"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","name","description","endpoint","schema","meta"],"additionalProperties":false}}}},"description":"SCIM Resource Types"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Schemas":{"get":{"description":"Returns the SCIM 2.0 schema definitions for User and Group resources.","summary":"Get SCIM Schemas","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"attributes":{"type":"array","items":{}},"meta":{"type":"object","properties":{"resourceType":{"type":"string"},"location":{"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","name","description","attributes","meta"],"additionalProperties":false}}}},"description":"SCIM Schema Definitions"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Schemas/{schemaId}":{"get":{"description":"Returns a single SCIM 2.0 schema definition by its schema URI.","summary":"Get SCIM Schema by ID","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"attributes":{"type":"array","items":{}},"meta":{"type":"object","properties":{"resourceType":{"type":"string"},"location":{"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","name","description","attributes","meta"],"additionalProperties":false}}},"description":"SCIM Schema Definition"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"schemaId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Users":{"get":{"description":"Retrieves a paginated list of all organization members who have been set up, including disabled users. If you provide the filter parameter, the resources for all matching members are returned.","summary":"List SCIM users","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:ListResponse"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"totalResults":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"itemsPerPage":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startIndex":{"examples":[1],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"Resources":{"type":"array","items":{"type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"required":["schemas","totalResults","itemsPerPage","startIndex","Resources"],"additionalProperties":false}}},"description":"SCIM User List"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startIndex","in":"query","schema":{"default":1,"type":"number","minimum":1},"required":false},{"name":"count","in":"query","schema":{"default":1000,"type":"number","minimum":1,"maximum":1000},"required":false},{"name":"filter","in":"query","schema":{"description":"You can filter results using the equals operator (eq) to find items that match specific values like `id`, `userName`, `emails`, and `externalId`. For example, to find a user named Bob, use this search: `?filter=userName%20eq%20Bob`","default":"","type":"string"},"required":false}]},"post":{"description":"Creates a new user in the organization. If the user already exists, only `active` field will be updated to provision the user.","summary":"Create a SCIM user","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"type":"array","items":{"type":"string"}},"userName":{"description":"Username for the user, it should respect the hub rules: No consecutive dashes, No digit-only, Does not start or end with a dash, Only dashes, letters or numbers, Not 24 chars hex string","type":"string","minLength":2,"maxLength":42,"pattern":"^\\b(?!\\d+$)(?![0-9a-fA-F]{24}$)([a-zA-Z0-9]|-(?!-))+\\b$"},"emails":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["value"]}},"name":{"type":"object","properties":{"givenName":{"type":"string","minLength":1},"familyName":{"type":"string","minLength":1}},"required":["givenName","familyName"]},"active":{"default":true,"type":"boolean"},"externalId":{"description":"External ID for the user, it must be unique within the organization and is required for managed users","type":"string"}},"required":["schemas","userName","emails","name","externalId"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"SCIM User already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Users/{userId}":{"get":{"description":"Retrieves a SCIM user by their ID.","summary":"Get a SCIM user","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Update an attribute of a SCIM user. Modify individual attributes using Operations format. Just provide the changes you want to make using add, remove (only `externalId` is supported), or replace operations.\n If you set `active` to `false`, the user will be deprovisioned from the organization. \nComplicated SCIM `path` values are not supported like `emails[type eq 'work'].value`.","summary":"Update SCIM user","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:PatchOp"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:api:messages:2.0:PatchOp"}},"Operations":{"type":"array","items":{"type":"object","properties":{"op":{"type":"string"},"path":{"enum":["active","externalId","userName","emails[type eq \"work\"].value","name.givenName","name.familyName"]},"value":{}},"required":["op","value"]}}},"required":["schemas","Operations"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"put":{"description":"Updates a provisioned user, you'll need to provide all their information fresh - just like setting them up for the first time. Any details you don't include will be automatically removed, so make sure to include everything they need to keep their account running smoothly. Setting `active` to `false` will deprovision the user from the organization.","summary":"Update a SCIM user","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"type":"array","items":{"type":"string"}},"userName":{"description":"Username for the user, it should respect the hub rules: No consecutive dashes, No digit-only, Does not start or end with a dash, Only dashes, letters or numbers, Not 24 chars hex string","type":"string","minLength":2,"maxLength":42,"pattern":"^\\b(?!\\d+$)(?![0-9a-fA-F]{24}$)([a-zA-Z0-9]|-(?!-))+\\b$"},"emails":{"maxItems":1,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["value"]}},"name":{"type":"object","properties":{"givenName":{"type":"string","minLength":1},"familyName":{"type":"string","minLength":1}},"required":["givenName","familyName"]},"active":{"default":true,"type":"boolean"},"externalId":{"type":"string"}},"required":["schemas","userName","emails","name","externalId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a SCIM user","tags":["scim"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User deleted"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Groups":{"get":{"description":"Get a list of SCIM groups. Retrieves a paginated list of all organization groups. If you provide the filter parameter, the resources for all matching groups are returned.","summary":"List SCIM groups","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:ListResponse"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"totalResults":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"itemsPerPage":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startIndex":{"examples":[1],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"Resources":{"type":"array","items":{"type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}},"required":["schemas","totalResults","itemsPerPage","startIndex","Resources"],"additionalProperties":false}}},"description":"SCIM Group List"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startIndex","in":"query","schema":{"default":1,"type":"number","minimum":1},"required":false},{"name":"count","in":"query","schema":{"default":1000,"type":"number","minimum":1,"maximum":1000},"required":false},{"name":"filter","in":"query","schema":{"default":"","type":"string"},"required":false},{"name":"excludedAttributes","in":"query","schema":{"const":"members"},"required":false}]},"post":{"description":"Creates a new group in the organization. The group name must be unique within the organization.","summary":"Create a SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"displayName":{"type":"string"},"externalId":{"type":"string"},"members":{"description":"Array of SCIM user ids","type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["value"]}}},"required":["displayName","members"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Group already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Groups/{groupId}":{"get":{"description":"Retrieves a group by its ID. If you provide the `excludedAttributes` parameter, the `members` attribute is not returned.","summary":"Get a SCIM group","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"excludedAttributes","in":"query","schema":{"const":"members"},"required":false}]},"put":{"description":"Updates a group by its ID. The group name must be unique within the organization.","summary":"Update a SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:schemas:core:2.0:Group"}},"displayName":{"type":"string"},"externalId":{"type":"string"},"members":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["value"]}}},"required":["schemas","displayName","members"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Update attributes of a SCIM group. Updates individual attributes using Operations format. Just provide the changes you want to make using add, remove (only `members` is supported), or replace operations.","summary":"Update SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:PatchOp"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:api:messages:2.0:PatchOp"}},"Operations":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"op":{"type":"string"},"path":{"type":"string"},"value":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"]}}},"required":["op","path"]},{"type":"object","properties":{"op":{"type":"string"},"path":{"type":"string"},"value":{}},"required":["op","value"]}]}}},"required":["schemas","Operations"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a SCIM group","tags":["scim"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"SCIM Group deleted"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim-provisioning/v2/Users":{"get":{"description":"Retrieves a paginated list of organization members and pending invitations managed by SCIM for non-managed organizations.","summary":"List SCIM-managed users","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:ListResponse"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"totalResults":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"itemsPerPage":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startIndex":{"examples":[1],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"Resources":{"type":"array","items":{"type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"required":["schemas","totalResults","itemsPerPage","startIndex","Resources"],"additionalProperties":false}}},"description":"SCIM User List"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startIndex","in":"query","schema":{"default":1,"type":"number","minimum":1},"required":false},{"name":"count","in":"query","schema":{"default":1000,"type":"number","minimum":1,"maximum":1000},"required":false},{"name":"filter","in":"query","schema":{"description":"You can filter results using the equals operator (eq) to find items that match specific values like `id`, `userName`, `emails`, and `externalId`. For example, to find a user named Bob, use this search: `?filter=userName%20eq%20Bob`","default":"","type":"string"},"required":false}]},"post":{"description":"Creates an invitation for a user to join the organization. The user must have an existing Hugging Face account.","summary":"Create a SCIM provisioning user invitation","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"type":"array","items":{"type":"string"}},"userName":{"description":"Username of the existing Hugging Face user","type":"string","minLength":2,"maxLength":42,"pattern":"^\\b(?!\\d+$)(?![0-9a-fA-F]{24}$)([a-zA-Z0-9]|-(?!-))+\\b$"},"emails":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["value"]}},"active":{"default":true,"type":"boolean"},"externalId":{"description":"SSO unique identifier (SAML nameid or OIDC sub claim) - required for SSO login","type":"string"}},"required":["schemas","userName","emails","externalId"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim-provisioning/v2/Users/{userId}":{"get":{"description":"Retrieves a SCIM user by their ID for non-managed organizations.","summary":"Get a SCIM provisioning user","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Modify individual attributes for non-managed organizations. Only the `active` field can be modified. User profile fields are not editable via SCIM.","summary":"Update an attribute of a SCIM provisioning user","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:PatchOp"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:api:messages:2.0:PatchOp"}},"Operations":{"type":"array","items":{"type":"object","properties":{"op":{"description":"`remove` operation is not supported for non-managed organizations","enum":["add","remove","replace"]},"path":{"enum":["active","externalId","userName","emails[type eq \"work\"].value","name.givenName","name.familyName"]},"value":{}},"required":["op","value"]}}},"required":["schemas","Operations"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"put":{"description":"Updates a provisioned user's invitation for non-managed organizations. User profile fields are not editable via SCIM for non-managed organizations.","summary":"Update a SCIM provisioning user","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"type":"array","items":{"type":"string"}},"active":{"default":true,"type":"boolean"},"externalId":{"type":"string"}},"required":["schemas","externalId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Removes a user from the organization and deletes any pending invitations for non-managed organizations.","summary":"Delete a SCIM provisioning user","tags":["scim"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User removed from organization"},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User not found or not provisioned"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim-provisioning/v2/Groups":{"get":{"description":"Get a list of SCIM groups. Retrieves a paginated list of all organization groups. If you provide the filter parameter, the resources for all matching groups are returned.","summary":"List SCIM groups","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:ListResponse"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"totalResults":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"itemsPerPage":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startIndex":{"examples":[1],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"Resources":{"type":"array","items":{"type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}},"required":["schemas","totalResults","itemsPerPage","startIndex","Resources"],"additionalProperties":false}}},"description":"SCIM Group List"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startIndex","in":"query","schema":{"default":1,"type":"number","minimum":1},"required":false},{"name":"count","in":"query","schema":{"default":1000,"type":"number","minimum":1,"maximum":1000},"required":false},{"name":"filter","in":"query","schema":{"default":"","type":"string"},"required":false},{"name":"excludedAttributes","in":"query","schema":{"const":"members"},"required":false}]},"post":{"description":"Creates a new group in the organization. The group name must be unique within the organization.","summary":"Create a SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"displayName":{"type":"string"},"externalId":{"type":"string"},"members":{"description":"Array of SCIM user ids","type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["value"]}}},"required":["displayName","members"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Group already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim-provisioning/v2/Groups/{groupId}":{"get":{"description":"Retrieves a group by its ID. If you provide the `excludedAttributes` parameter, the `members` attribute is not returned.","summary":"Get a SCIM group","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"excludedAttributes","in":"query","schema":{"const":"members"},"required":false}]},"put":{"description":"Updates a group by its ID. The group name must be unique within the organization.","summary":"Update a SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:schemas:core:2.0:Group"}},"displayName":{"type":"string"},"externalId":{"type":"string"},"members":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["value"]}}},"required":["schemas","displayName","members"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Update attributes of a SCIM group. Updates individual attributes using Operations format. Just provide the changes you want to make using add, remove (only `members` is supported), or replace operations.","summary":"Update SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:PatchOp"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:api:messages:2.0:PatchOp"}},"Operations":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"op":{"type":"string"},"path":{"type":"string"},"value":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"]}}},"required":["op","path"]},{"type":"object","properties":{"op":{"type":"string"},"path":{"type":"string"},"value":{}},"required":["op","value"]}]}}},"required":["schemas","Operations"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a SCIM group","tags":["scim"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"SCIM Group deleted"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/agentic/provisioning/health":{"get":{"summary":"Get Agentic Provisioning health","tags":["agentic-provisioning"]}},"/api/agentic/provisioning/services":{"get":{"summary":"Get Agentic Provisioning services","tags":["agentic-provisioning"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"categories":{"minItems":1,"type":"array","items":{"enum":["compute","database","storage","cache","messaging","email","notification","auth","cdn","observability","analytics","payments","search","ci","feature_flags","ai"]}},"kind":{"enum":["deployable","plan"]},"pricing":{"anyOf":[{"type":"object","properties":{"type":{"const":"free"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"paid"},"paid":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"const":"freeform"},"freeform":{"type":"string","minLength":1},"stripe_price":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","freeform"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"stripe_price"},"stripe_price":{"type":"string","minLength":1},"freeform":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","stripe_price"],"additionalProperties":false}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"const":"freeform"},"freeform":{"type":"string","minLength":1},"stripe_price":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","freeform"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"stripe_price"},"stripe_price":{"type":"string","minLength":1},"freeform":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","stripe_price"],"additionalProperties":false}]}}]}},"required":["type","paid"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"component"},"component":{"type":"object","properties":{"options":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"const":"free"},"default":{"type":"boolean"},"parent_service_ids":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"paid"},"paid":{"anyOf":[{"type":"object","properties":{"type":{"const":"freeform"},"freeform":{"type":"string","minLength":1},"stripe_price":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","freeform"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"stripe_price"},"stripe_price":{"type":"string","minLength":1},"freeform":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","stripe_price"],"additionalProperties":false}]},"default":{"type":"boolean"},"parent_service_ids":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["type","paid"],"additionalProperties":false}]}}},"required":["options"],"additionalProperties":false}},"required":["type","component"],"additionalProperties":false}]},"group":{"type":"string","minLength":1},"kyc":{"type":"object","properties":{"required_fields":{"minItems":1,"type":"array","items":{"enum":["name","email","phone","country"]}}},"required":["required_fields"],"additionalProperties":false},"configuration_schema":{"type":"object","properties":{"type":{"const":"object"},"properties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["type","properties"],"additionalProperties":false},"allowed_updates":{"type":"array","items":{"type":"string","minLength":1}}},"required":["id","description","categories","pricing"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}},"description":"List of available Agentic Provisioning services"}}}},"/api/agentic/provisioning/account_requests":{"post":{"summary":"Create an Agentic Provisioning account request","tags":["agentic-provisioning"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":1},"object":{"const":"account_request"},"name":{"type":"string","minLength":1},"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"scopes":{"type":"array","items":{"type":"string","minLength":1}},"phone":{"type":"string","minLength":1},"country":{"type":"string","minLength":1},"kyc":{"type":"object","properties":{"verified_fields":{"type":"array","items":{"enum":["name","email","phone","country"]}}},"required":["verified_fields"]},"client_capabilities":{"type":"array","items":{"enum":["browser","email","sms"]}},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"confirmation_secret":{"type":"string","minLength":1},"expires_at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"orchestrator":{"type":"object","properties":{"type":{"const":"stripe"},"stripe":{"type":"object","properties":{"organization":{"type":"string","minLength":1},"account":{"type":"string","minLength":1}},"required":["account"]}},"required":["type","stripe"]}},"required":["id","object","email","scopes","client_capabilities","confirmation_secret","expires_at","orchestrator"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"type":{"const":"credentials"},"credentials":{"type":"object","properties":{"type":{"const":"bearer"},"bearer":{"type":"object","properties":{"access_token":{"type":"string"},"refresh_token":{"type":"string"},"expires_in":{"type":"number"},"account":{"type":"object","properties":{"id":{"type":"string"},"payment_credentials":{"const":"orchestrator"}},"required":["id","payment_credentials"],"additionalProperties":false}},"required":["access_token","refresh_token","expires_in","account"],"additionalProperties":false}},"required":["type","bearer"],"additionalProperties":false}},"required":["type","credentials"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"requires_auth"},"requires_auth":{"type":"object","properties":{"type":{"const":"redirect"},"redirect":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}},"required":["type","redirect"],"additionalProperties":false}},"required":["type","requires_auth"],"additionalProperties":false}]}}},"description":"Account request result"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"const":"error"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["type","error"],"additionalProperties":false}}},"description":"Account request error"}}}},"/api/agentic/provisioning/resources":{"post":{"summary":"Provision a resource","tags":["agentic-provisioning"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"service_id":{"const":"platform"}},"required":["service_id"]},{"type":"object","properties":{"service_id":{"const":"bucket"},"configuration":{"type":"object","properties":{"name":{"description":"The name of the repository (defaults to a random name if not provided)","default":"ItFsGbpt","type":"string","minLength":1},"visibility":{"default":"private","description":"The visibility of the repository (defaults to private)","enum":["public","private"]}}}},"required":["service_id","configuration"]},{"type":"object","properties":{"service_id":{"const":"credits"},"configuration":{"type":"object","properties":{"amountUsd":{"description":"The amount of credits to purchase (defaults to $5)","default":5,"type":"number","minimum":5}}},"payment_credentials":{"type":"object","properties":{"type":{"const":"stripe_payment_token"},"stripe_payment_token":{"type":"string","minLength":1}},"required":["type","stripe_payment_token"]}},"required":["service_id","configuration"]}]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"status":{"const":"pending"},"id":{"type":"string"}},"required":["status","id"],"additionalProperties":false},{"type":"object","properties":{"status":{"const":"complete"},"id":{"type":"string"},"complete":{"type":"object","properties":{"access_configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["access_configuration"],"additionalProperties":false}},"required":["status","id","complete"],"additionalProperties":false},{"description":"Resource provisioning error","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}]}}},"description":"Provisioned resource"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Resource provisioning error"}}}},"/api/agentic/provisioning/resources/{id}":{"get":{"summary":"Get a resource by ID","tags":["agentic-provisioning"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"status":{"const":"pending"},"id":{"type":"string"}},"required":["status","id"],"additionalProperties":false},{"type":"object","properties":{"status":{"const":"complete"},"id":{"type":"string"},"complete":{"type":"object","properties":{"access_configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["status","id","complete"],"additionalProperties":false},{"type":"object","properties":{"status":{"const":"removed"},"id":{"type":"string"}},"required":["status","id"],"additionalProperties":false},{"description":"Resource error (e.g. payment failure)","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}]}}},"description":"Resource status"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Resource error"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/agentic/provisioning/resources/{id}/remove":{"post":{"summary":"Remove / de-provision a resource","tags":["agentic-provisioning"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"status":{"const":"removed"},"id":{"type":"string"}},"required":["status","id"],"additionalProperties":false},{"description":"Resource removal not supported","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}]}}},"description":"Resource removal result"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Resource removal error"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/agentic/provisioning/resources/{id}/rotate_credentials":{"post":{"summary":"Rotate the credentials for a resource","tags":["agentic-provisioning"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"status":{"const":"complete"},"id":{"type":"string"},"complete":{"type":"object","properties":{"access_configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["status","id","complete"],"additionalProperties":false},{"description":"Credential rotation not supported","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}]}}},"description":"Rotated credentials"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Credential rotation error"},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Resource not found"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Token was modified concurrently"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/agentic/provisioning/deep_links":{"post":{"summary":"(not implemented yet) Create a deep link","tags":["agentic-provisioning"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"purpose":{"type":"string","minLength":1}},"required":["purpose"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"purpose":{"type":"string"},"url":{"type":"string"},"expires_at":{"type":"string"}},"required":["purpose","url","expires_at"],"additionalProperties":false}}},"description":"Deep link URL"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"description":"Deep link error"}}}},"/oauth/register":{"post":{"summary":"Register a new OAuth app","tags":["oauth"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"redirect_uris":{"type":"array","items":{"type":"string","format":"uri"}},"client_name":{"type":"string"},"client_uri":{"type":"string","format":"uri"},"logo_uri":{"type":"string","format":"uri"},"scope":{"type":"string"},"contacts":{"type":"array","items":{"type":"string"}},"token_endpoint_auth_method":{"enum":["client_secret_basic","none","client_secret_post"]},"software_id":{"type":"string"},"software_version":{"type":"string"}}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"},"client_id_issued_at":{"type":"number"},"client_secret_expires_at":{"type":"number"},"redirect_uris":{"type":"array","items":{"type":"string","format":"uri"}},"client_name":{"type":"string"},"client_uri":{"type":"string","format":"uri"},"logo_uri":{"type":"string","format":"uri"},"scope":{"type":"string"},"grant_types":{"readOnly":true,"type":"array","items":{"enum":["urn:ietf:params:oauth:grant-type:token-exchange","urn:ietf:params:oauth:grant-type:device_code","authorization_code","refresh_token"]}},"contacts":{"type":"array","items":{"type":"string"}},"token_endpoint_auth_method":{"enum":["client_secret_basic","none","client_secret_post"]},"software_id":{"type":"string"},"software_version":{"type":"string"}},"required":["client_id","client_id_issued_at","client_secret_expires_at","redirect_uris","scope","grant_types"],"additionalProperties":false}}},"description":"Details of the OAuth app that was created"}}}},"/oauth/device":{"post":{"summary":"Initiate device authorization","tags":["oauth"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Initiate device authorization as per https://datatracker.ietf.org/doc/html/rfc8628#section-3.1","type":"object","properties":{"client_id":{"type":"string"},"scope":{"type":"string"}},"required":["client_id"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"device_code":{"type":"string"},"user_code":{"type":"string"},"verification_uri":{"type":"string"},"expires_in":{"type":"number"}},"required":["device_code","user_code","verification_uri","expires_in"],"additionalProperties":false}}},"description":"Details of the device code that was created as per https://datatracker.ietf.org/doc/html/rfc8628#section-3.2"}}}},"/oauth/userinfo":{"get":{"description":"Get information about the user. Only available through oauth access tokens. Information varies depending on the scope of the oauth app and what permissions the user granted to the oauth app.","summary":"Get user info","tags":["oauth"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sub":{"description":"ID of the user","type":"string"},"name":{"description":"Full name of the user","type":"string"},"preferred_username":{"description":"Username of the user","type":"string"},"profile":{"description":"Profile URL of the user","type":"string","format":"uri"},"picture":{"description":"Avatar URL of the user","type":"string","format":"uri"},"website":{"description":"Website of the user","type":"string","format":"uri"},"email":{"description":"Email of the user","type":"string"},"email_verified":{"description":"Whether the email is verified","type":"boolean"},"isPro":{"description":"Whether the user is a Pro user","type":"boolean"},"canPay":{"description":"Whether the user has access to billing. You should check `canPay` first.","type":"boolean"},"billingMode":{"description":"Whether the user is on prepaid or postpaid billing","enum":["prepaid","postpaid"]},"orgs":{"type":"array","items":{"type":"object","properties":{"sub":{"description":"ID of the organization","type":"string"},"name":{"description":"Name of the organization","type":"string"},"picture":{"description":"Avatar URL of the organization","type":"string","format":"uri"},"preferred_username":{"description":"Username of the organization","type":"string"},"plan":{"enum":["team","enterprise","plus","academia"]},"canPay":{"type":"boolean"},"billingMode":{"enum":["prepaid","postpaid"]},"roleInOrg":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"pendingSSO":{"deprecated":true,"type":"boolean"},"missingMFA":{"deprecated":true,"type":"boolean"},"securityRestrictions":{"description":"Current security restrictions for accessing data in this organization with current authentication method","type":"array","items":{"enum":["mfa","token-policy","token-revoked","sso","ip"]}},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"sub":{"type":"string"},"name":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]}},"required":["sub","name","role"],"additionalProperties":false}}},"required":["sub","name","picture","preferred_username"],"additionalProperties":false}}},"required":["sub","isPro","orgs"],"additionalProperties":false}}},"description":"User info"}}},"post":{"description":"Get information about the user. Only available through oauth access tokens. Information varies depending on the scope of the oauth app and what permissions the user granted to the oauth app.","summary":"Get user info","tags":["oauth"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sub":{"description":"ID of the user","type":"string"},"name":{"description":"Full name of the user","type":"string"},"preferred_username":{"description":"Username of the user","type":"string"},"profile":{"description":"Profile URL of the user","type":"string","format":"uri"},"picture":{"description":"Avatar URL of the user","type":"string","format":"uri"},"website":{"description":"Website of the user","type":"string","format":"uri"},"email":{"description":"Email of the user","type":"string"},"email_verified":{"description":"Whether the email is verified","type":"boolean"},"isPro":{"description":"Whether the user is a Pro user","type":"boolean"},"canPay":{"description":"Whether the user has access to billing. You should check `canPay` first.","type":"boolean"},"billingMode":{"description":"Whether the user is on prepaid or postpaid billing","enum":["prepaid","postpaid"]},"orgs":{"type":"array","items":{"type":"object","properties":{"sub":{"description":"ID of the organization","type":"string"},"name":{"description":"Name of the organization","type":"string"},"picture":{"description":"Avatar URL of the organization","type":"string","format":"uri"},"preferred_username":{"description":"Username of the organization","type":"string"},"plan":{"enum":["team","enterprise","plus","academia"]},"canPay":{"type":"boolean"},"billingMode":{"enum":["prepaid","postpaid"]},"roleInOrg":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"pendingSSO":{"deprecated":true,"type":"boolean"},"missingMFA":{"deprecated":true,"type":"boolean"},"securityRestrictions":{"description":"Current security restrictions for accessing data in this organization with current authentication method","type":"array","items":{"enum":["mfa","token-policy","token-revoked","sso","ip"]}},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"sub":{"type":"string"},"name":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]}},"required":["sub","name","role"],"additionalProperties":false}}},"required":["sub","name","picture","preferred_username"],"additionalProperties":false}}},"required":["sub","isPro","orgs"],"additionalProperties":false}}},"description":"User info"}}}},"/api/blog/{slug}/comment":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["🔥","🚀","👀","❤️","🤗","😎","➕","🧠","👍","🤝","😔","🤯"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/blog/{slug}/comment/{commentId}/reply":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["🔥","🚀","👀","❤️","🤗","😎","➕","🧠","👍","🤝","😔","🤯"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/blog/{namespace}/{slug}/comment":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["🔥","🚀","👀","❤️","🤗","😎","➕","🧠","👍","🤝","😔","🤯"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/blog/{namespace}/{slug}/comment/{commentId}/reply":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["🔥","🚀","👀","❤️","🤗","😎","➕","🧠","👍","🤝","😔","🤯"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/docs":{"get":{"description":"Get list of available documentation","summary":"List docs","tags":["docs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"category":{"type":"string"}},"required":["id","url"],"additionalProperties":false}}}},"description":"List of available documentation"}}}},"/api/docs/search":{"get":{"description":"Search any Hugging Face documentation","summary":"Search docs","tags":["docs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"_vectors":{"type":"object","properties":{"embeddings":{"type":"array","items":{"type":"number"}}},"required":["embeddings"],"additionalProperties":false},"heading1":{"type":"string"},"text":{"type":"string"},"product":{"type":"string"},"source_page_url":{"type":"string"},"source_page_title":{"type":"string"},"heading2":{"type":"string"},"heading3":{"type":"string"},"heading4":{"type":"string"},"heading5":{"type":"string"}},"required":["id","_vectors","heading1","text","product","source_page_url","source_page_title"],"additionalProperties":false}}}},"description":"Search results"}},"parameters":[{"name":"q","in":"query","schema":{"type":"string","maxLength":250},"required":true},{"name":"product","in":"query","schema":{"enum":["hub","transformers","diffusers","datasets","gradio","trackio","smolagents","huggingface_hub","cli","huggingface.js","transformers.js","inference-providers","inference-endpoints","peft","accelerate","optimum","optimum-habana","optimum-neuron","optimum-intel","optimum-executorch","optimum-tpu","tokenizers","llm-course","robotics-course","mcp-course","smol-course","agents-course","deep-rl-course","computer-vision-course","evaluate","tasks","dataset-viewer","trl","simulate","sagemaker","timm","safetensors","tgi","setfit","audio-course","lerobot","reachy_mini","autotrain","tei","bitsandbytes","cookbook","sentence_transformers","ml-games-course","diffusion-course","ml-for-3d-course","chat-ui","leaderboards","lighteval","argilla","distilabel","microsoft-azure","kernels","google-cloud","xet"]},"required":false},{"name":"limit","in":"query","schema":{"default":10,"type":"integer","minimum":1,"maximum":25},"required":false}]}},"/api/docs/search/full-text":{"get":{"description":"Full-text search across Hugging Face documentation","summary":"Full-text search docs","tags":["docs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hits":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"hierarchy_lvl0":{"type":"string"},"hierarchy_lvl1":{"type":"string"},"hierarchy_lvl2":{"type":"string"},"hierarchy_lvl3":{"type":"string"},"hierarchy_lvl4":{"type":"string"},"hierarchy_lvl5":{"type":"string"},"hierarchy_lvl6":{"type":"string"},"content":{"type":"string"},"anchor":{"type":"string"},"_formatted":{"type":"object","properties":{"url":{"type":"string"},"hierarchy_lvl0":{"type":"string"},"hierarchy_lvl1":{"type":"string"},"hierarchy_lvl2":{"type":"string"},"hierarchy_lvl3":{"type":"string"},"hierarchy_lvl4":{"type":"string"},"hierarchy_lvl5":{"type":"string"},"hierarchy_lvl6":{"type":"string"},"content":{"type":"string"},"anchor":{"type":"string"}},"additionalProperties":false}},"required":["url"],"additionalProperties":false}}},"required":["hits"],"additionalProperties":false}}},"description":"Full-text search results"}},"parameters":[{"name":"q","in":"query","schema":{"type":"string","maxLength":250},"required":true},{"name":"limit","in":"query","schema":{"default":9,"type":"integer","minimum":1,"maximum":100},"required":false},{"name":"domain","in":"query","schema":{"type":"string","maxLength":100},"required":false}]}},"/api/whoami-v2":{"get":{"description":"Get information about the user and auth method used","summary":"Get user info","tags":["auth"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"auth":{"type":"object","properties":{"type":{"type":"string"},"accessToken":{"type":"object","properties":{"displayName":{"type":"string"},"role":{"enum":["read","write","god","fineGrained"]},"fineGrained":{"type":"object","properties":{"scoped":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","collection","org","user","resource-group","oauth-app"]}},"required":["_id","type"],"additionalProperties":false},"permissions":{"type":"array","items":{"type":"string"}}},"required":["entity","permissions"],"additionalProperties":false}},"global":{"type":"array","items":{"enum":["discussion.write","post.write"]}},"canReadGatedRepos":{"description":"Allow access to all public gated repos to which the user has access","type":"boolean"}},"required":["scoped"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["displayName","role","createdAt"],"additionalProperties":false},"expiresAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resource":{"type":"object","properties":{"sub":{"type":"string"}},"required":["sub"],"additionalProperties":false}},"required":["type"],"additionalProperties":false},"type":{"const":"user"},"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"canPay":{"type":"boolean"},"billingMode":{"enum":["prepaid","postpaid"]},"avatarUrl":{"type":"string"},"periodEnd":{"anyOf":[{"type":"number"},{"type":"null"}]},"emailVerified":{"type":"boolean"},"isPro":{"type":"boolean"},"orgs":{"type":"array","items":{"type":"object","properties":{"type":{"const":"org"},"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"canPay":{"type":"boolean"},"billingMode":{"enum":["prepaid","postpaid"]},"avatarUrl":{"type":"string"},"periodEnd":{"anyOf":[{"type":"number"},{"type":"null"}]},"plan":{"enum":["team","enterprise","plus","academia"]},"roleInOrg":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"pendingSSO":{"deprecated":true,"type":"boolean"},"missingMFA":{"deprecated":true,"type":"boolean"},"securityRestrictions":{"description":"Current security restrictions for accessing data in this organization with current authentication method","type":"array","items":{"enum":["mfa","token-policy","token-revoked","sso","ip"]}},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]}},"required":["id","name","role"],"additionalProperties":false}}},"required":["type","id","name","fullname","avatarUrl"],"additionalProperties":false}}},"required":["auth","type","id","name","fullname","avatarUrl","isPro","orgs"],"additionalProperties":false}]}}},"description":"Auth information"}}}},"/api/discussions/mark-as-read":{"post":{"description":"Mark discussions as read or unread. If `applyToAll` is true, all notifications for the user matching the search parameters will be marked as read or unread.","summary":"Change read status","tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"discussionIds":{"default":[],"type":"array","items":{"type":"string"}},"read":{"default":true,"type":"boolean"}}}}}},"parameters":[{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"required":false},{"name":"readStatus","in":"query","schema":{"default":"all","enum":["all","unread"]},"required":false},{"name":"repoType","in":"query","schema":{"enum":["dataset","model","space","bucket","kernel"]},"required":false},{"name":"repoName","in":"query","schema":{"type":"string"},"required":false},{"name":"postAuthor","in":"query","schema":{"type":"string"},"required":false},{"name":"paperId","in":"query","schema":{"type":"string"},"required":false},{"name":"articleId","in":"query","schema":{"type":"string"},"required":false},{"name":"mention","in":"query","schema":{"default":"all","enum":["all","participating","mentions"]},"required":false},{"name":"lastUpdate","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"applyToAll","in":"query","schema":{"default":false},"required":false}]}},"/api/organizations/{name}/billing/usage":{"get":{"description":"Get org usage for a given period","summary":"Get org usage","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"usage":{"type":"object","propertyNames":{"anyOf":[{"enum":["Endpoints","Spaces"]},{"not":{}}]},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"entityId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"product":{"enum":["hf/repository-storage","jobs/cpu-basic/minutes","jobs/cpu-upgrade/minutes","jobs/cpu-performance/minutes","jobs/cpu-xl/minutes","jobs/sprx8/minutes","jobs/t4-small/minutes","jobs/t4-medium/minutes","jobs/a10g-small/minutes","jobs/a10g-large/minutes","jobs/a10g-largex2/minutes","jobs/a10g-largex4/minutes","jobs/a100-large/minutes","jobs/a100x4/minutes","jobs/a100x8/minutes","jobs/h100/minutes","jobs/h100x8/minutes","jobs/h200/minutes","jobs/h200x2/minutes","jobs/h200x4/minutes","jobs/h200x8/minutes","jobs/l4x1/minutes","jobs/l4x4/minutes","jobs/l40sx1/minutes","jobs/l40sx4/minutes","jobs/l40sx8/minutes","jobs/v5e-2x4/minutes","jobs/v5e-2x2/minutes","jobs/v5e-1x1/minutes","jobs/inf2x6/minutes","spaces/zero-a10g/minutes","spaces/cpu-basic/minutes","spaces/cpu-upgrade/minutes","spaces/cpu-performance/minutes","spaces/cpu-xl/minutes","spaces/sprx8/minutes","spaces/t4-small/minutes","spaces/t4-medium/minutes","spaces/a10g-small/minutes","spaces/a10g-large/minutes","spaces/a10g-largex2/minutes","spaces/a10g-largex4/minutes","spaces/a100-large/minutes","spaces/a100x4/minutes","spaces/a100x8/minutes","spaces/h100/minutes","spaces/h100x8/minutes","spaces/h200/minutes","spaces/h200x2/minutes","spaces/h200x4/minutes","spaces/h200x8/minutes","spaces/l4x1/minutes","spaces/l4x4/minutes","spaces/l40sx1/minutes","spaces/l40sx4/minutes","spaces/l40sx8/minutes","spaces/inf2x6/minutes","spaces/v5e-2x4/minutes","spaces/v5e-2x2/minutes","spaces/v5e-1x1/minutes","spaces/storage-small/minutes","spaces/storage-medium/minutes","spaces/storage-large/minutes","endpoints/azure/intel-xeon/x1","endpoints/azure/intel-xeon/x2","endpoints/azure/intel-xeon/x4","endpoints/azure/intel-xeon/x8","endpoints/aws/intel-icl/x1","endpoints/aws/intel-icl/x2","endpoints/aws/intel-icl/x4","endpoints/aws/intel-icl/x8","endpoints/aws/intel-spr/x1","endpoints/aws/intel-spr/x2","endpoints/aws/intel-spr/x4","endpoints/aws/intel-spr/x8","endpoints/aws/intel-spr/x16","endpoints/aws/intel-spr-overcommitted/x16","endpoints/aws/nvidia-t4/x1","endpoints/aws/nvidia-t4/x4","endpoints/aws/nvidia-l4/x1","endpoints/aws/nvidia-l4/x4","endpoints/aws/nvidia-l40s/x1","endpoints/aws/nvidia-l40s/x4","endpoints/aws/nvidia-l40s/x8","endpoints/aws/nvidia-a10g/x1","endpoints/aws/nvidia-a10g/x4","endpoints/aws/nvidia-a100/x1","endpoints/aws/nvidia-a100/x2","endpoints/aws/nvidia-a100/x4","endpoints/aws/nvidia-a100/x8","endpoints/aws/nvidia-h100/x1","endpoints/aws/nvidia-h100/x2","endpoints/aws/nvidia-h100/x4","endpoints/aws/nvidia-h100/x8","endpoints/aws/nvidia-h200/x1","endpoints/aws/nvidia-h200/x2","endpoints/aws/nvidia-h200/x4","endpoints/aws/nvidia-h200/x8","endpoints/aws/nvidia-b200/x1","endpoints/aws/nvidia-b200/x2","endpoints/aws/nvidia-b200/x4","endpoints/aws/nvidia-b200/x8","endpoints/aws/inf2/x1","endpoints/aws/inf2/x1-large","endpoints/aws/inf2/x12","endpoints/gcp/intel-spr/x1","endpoints/gcp/intel-spr/x2","endpoints/gcp/intel-spr/x4","endpoints/gcp/intel-spr/x8","endpoints/gcp/nvidia-t4/x1","endpoints/gcp/nvidia-l4/x1","endpoints/gcp/nvidia-l4/x4","endpoints/gcp/nvidia-a100/x1","endpoints/gcp/nvidia-a100/x2","endpoints/gcp/nvidia-a100/x4","endpoints/gcp/nvidia-a100/x8","endpoints/gcp/nvidia-h100/x1","endpoints/gcp/nvidia-h100/x2","endpoints/gcp/nvidia-h100/x4","endpoints/gcp/nvidia-h100/x8","endpoints/gcp/v5e/1x1","endpoints/gcp/v5e/2x2","endpoints/gcp/v5e/2x4"]},"quantity":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"stoppedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},{"type":"null"}]},"freeGrant":{"type":"boolean"},"productPrettyName":{"type":"string"},"unitLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalCostMicroUSD":{"type":"number"},"unitCostMicroUSD":{"type":"number"},"active":{"type":"boolean"}},"required":["entityId","label","product","quantity","productPrettyName","unitLabel","totalCostMicroUSD","unitCostMicroUSD","active"],"additionalProperties":false}}},"period":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"entityId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"entityType":{"enum":["user","org"]},"entityName":{"type":"string"},"periodStart":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"invoice":{"anyOf":[{"type":"object","properties":{"type":{"const":"stripe"},"id":{"type":"string"},"amountDueCents":{"type":"number"},"totalCents":{"type":"number"},"status":{"enum":["draft","open","paid","uncollectible","void","unpaid"]},"dueDate":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"collectionMethod":{"enum":["charge_automatically","send_invoice"]}},"required":["type","id","amountDueCents","totalCents","status","dueDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"no-invoice"},"id":{"const":"no-invoice"}},"required":["type","id"],"additionalProperties":false}]},"charges":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"dueDate":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"usageAtChargeTimeMicroUSD":{"type":"number"},"amountCents":{"type":"number"},"billedThrough":{"enum":["stripe-payment-intent"]},"paymentIntentId":{"type":"string"},"paymentIntentStatus":{"enum":["canceled","processing","requires_action","requires_capture","requires_confirmation","requires_payment_method","succeeded"]}},"required":["_id","createdAt","dueDate","usageAtChargeTimeMicroUSD","amountCents","billedThrough","paymentIntentId","paymentIntentStatus"],"additionalProperties":false}}},"required":["_id","entityId","entityType","entityName","periodStart","periodEnd"],"additionalProperties":false}},"required":["usage","period"],"additionalProperties":false}}},"description":"Usage and period information"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"periodId","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"required":false}]}},"/api/organizations/{name}/billing/usage-v2":{"get":{"description":"Get org usage for a given period","summary":"Get org usage","tags":["orgs"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"required":true},{"name":"endDate","in":"query","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"required":true}]}},"/api/organizations/{name}/billing/usage/live":{"get":{"description":"Get live usage for org","summary":"Stream usage","tags":["orgs"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/settings/billing/usage":{"get":{"description":"Get user usage for a given period","summary":"Get user usage","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"usage":{"type":"object","propertyNames":{"anyOf":[{"enum":["Endpoints","Spaces"]},{"not":{}}]},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"entityId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"product":{"enum":["hf/repository-storage","jobs/cpu-basic/minutes","jobs/cpu-upgrade/minutes","jobs/cpu-performance/minutes","jobs/cpu-xl/minutes","jobs/sprx8/minutes","jobs/t4-small/minutes","jobs/t4-medium/minutes","jobs/a10g-small/minutes","jobs/a10g-large/minutes","jobs/a10g-largex2/minutes","jobs/a10g-largex4/minutes","jobs/a100-large/minutes","jobs/a100x4/minutes","jobs/a100x8/minutes","jobs/h100/minutes","jobs/h100x8/minutes","jobs/h200/minutes","jobs/h200x2/minutes","jobs/h200x4/minutes","jobs/h200x8/minutes","jobs/l4x1/minutes","jobs/l4x4/minutes","jobs/l40sx1/minutes","jobs/l40sx4/minutes","jobs/l40sx8/minutes","jobs/v5e-2x4/minutes","jobs/v5e-2x2/minutes","jobs/v5e-1x1/minutes","jobs/inf2x6/minutes","spaces/zero-a10g/minutes","spaces/cpu-basic/minutes","spaces/cpu-upgrade/minutes","spaces/cpu-performance/minutes","spaces/cpu-xl/minutes","spaces/sprx8/minutes","spaces/t4-small/minutes","spaces/t4-medium/minutes","spaces/a10g-small/minutes","spaces/a10g-large/minutes","spaces/a10g-largex2/minutes","spaces/a10g-largex4/minutes","spaces/a100-large/minutes","spaces/a100x4/minutes","spaces/a100x8/minutes","spaces/h100/minutes","spaces/h100x8/minutes","spaces/h200/minutes","spaces/h200x2/minutes","spaces/h200x4/minutes","spaces/h200x8/minutes","spaces/l4x1/minutes","spaces/l4x4/minutes","spaces/l40sx1/minutes","spaces/l40sx4/minutes","spaces/l40sx8/minutes","spaces/inf2x6/minutes","spaces/v5e-2x4/minutes","spaces/v5e-2x2/minutes","spaces/v5e-1x1/minutes","spaces/storage-small/minutes","spaces/storage-medium/minutes","spaces/storage-large/minutes","endpoints/azure/intel-xeon/x1","endpoints/azure/intel-xeon/x2","endpoints/azure/intel-xeon/x4","endpoints/azure/intel-xeon/x8","endpoints/aws/intel-icl/x1","endpoints/aws/intel-icl/x2","endpoints/aws/intel-icl/x4","endpoints/aws/intel-icl/x8","endpoints/aws/intel-spr/x1","endpoints/aws/intel-spr/x2","endpoints/aws/intel-spr/x4","endpoints/aws/intel-spr/x8","endpoints/aws/intel-spr/x16","endpoints/aws/intel-spr-overcommitted/x16","endpoints/aws/nvidia-t4/x1","endpoints/aws/nvidia-t4/x4","endpoints/aws/nvidia-l4/x1","endpoints/aws/nvidia-l4/x4","endpoints/aws/nvidia-l40s/x1","endpoints/aws/nvidia-l40s/x4","endpoints/aws/nvidia-l40s/x8","endpoints/aws/nvidia-a10g/x1","endpoints/aws/nvidia-a10g/x4","endpoints/aws/nvidia-a100/x1","endpoints/aws/nvidia-a100/x2","endpoints/aws/nvidia-a100/x4","endpoints/aws/nvidia-a100/x8","endpoints/aws/nvidia-h100/x1","endpoints/aws/nvidia-h100/x2","endpoints/aws/nvidia-h100/x4","endpoints/aws/nvidia-h100/x8","endpoints/aws/nvidia-h200/x1","endpoints/aws/nvidia-h200/x2","endpoints/aws/nvidia-h200/x4","endpoints/aws/nvidia-h200/x8","endpoints/aws/nvidia-b200/x1","endpoints/aws/nvidia-b200/x2","endpoints/aws/nvidia-b200/x4","endpoints/aws/nvidia-b200/x8","endpoints/aws/inf2/x1","endpoints/aws/inf2/x1-large","endpoints/aws/inf2/x12","endpoints/gcp/intel-spr/x1","endpoints/gcp/intel-spr/x2","endpoints/gcp/intel-spr/x4","endpoints/gcp/intel-spr/x8","endpoints/gcp/nvidia-t4/x1","endpoints/gcp/nvidia-l4/x1","endpoints/gcp/nvidia-l4/x4","endpoints/gcp/nvidia-a100/x1","endpoints/gcp/nvidia-a100/x2","endpoints/gcp/nvidia-a100/x4","endpoints/gcp/nvidia-a100/x8","endpoints/gcp/nvidia-h100/x1","endpoints/gcp/nvidia-h100/x2","endpoints/gcp/nvidia-h100/x4","endpoints/gcp/nvidia-h100/x8","endpoints/gcp/v5e/1x1","endpoints/gcp/v5e/2x2","endpoints/gcp/v5e/2x4"]},"quantity":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"stoppedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},{"type":"null"}]},"freeGrant":{"type":"boolean"},"productPrettyName":{"type":"string"},"unitLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalCostMicroUSD":{"type":"number"},"unitCostMicroUSD":{"type":"number"},"active":{"type":"boolean"}},"required":["entityId","label","product","quantity","productPrettyName","unitLabel","totalCostMicroUSD","unitCostMicroUSD","active"],"additionalProperties":false}}},"period":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"entityId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"entityType":{"enum":["user","org"]},"entityName":{"type":"string"},"periodStart":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"invoice":{"anyOf":[{"type":"object","properties":{"type":{"const":"stripe"},"id":{"type":"string"},"amountDueCents":{"type":"number"},"totalCents":{"type":"number"},"status":{"enum":["draft","open","paid","uncollectible","void","unpaid"]},"dueDate":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"collectionMethod":{"enum":["charge_automatically","send_invoice"]}},"required":["type","id","amountDueCents","totalCents","status","dueDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"no-invoice"},"id":{"const":"no-invoice"}},"required":["type","id"],"additionalProperties":false}]},"charges":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"dueDate":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"usageAtChargeTimeMicroUSD":{"type":"number"},"amountCents":{"type":"number"},"billedThrough":{"enum":["stripe-payment-intent"]},"paymentIntentId":{"type":"string"},"paymentIntentStatus":{"enum":["canceled","processing","requires_action","requires_capture","requires_confirmation","requires_payment_method","succeeded"]}},"required":["_id","createdAt","dueDate","usageAtChargeTimeMicroUSD","amountCents","billedThrough","paymentIntentId","paymentIntentStatus"],"additionalProperties":false}}},"required":["_id","entityId","entityType","entityName","periodStart","periodEnd"],"additionalProperties":false}},"required":["usage","period"],"additionalProperties":false}}},"description":"Usage and period information"}},"parameters":[{"name":"periodId","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"required":false}]}},"/api/settings/billing/usage-v2":{"get":{"description":"Get user usage for a given period","summary":"Get user usage","tags":["users"],"parameters":[{"name":"startDate","in":"query","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"required":true},{"name":"endDate","in":"query","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"required":true}]}},"/api/settings/billing/usage/jobs":{"get":{"description":"Get user Jobs usage for current subscription period","summary":"Get jobs usage","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"usage":{"type":"object","properties":{"usedMicroUsd":{"type":"number"},"totalMinutes":{"type":"number"},"periodStart":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"jobDetails":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string"},"hardwareFlavor":{"type":"string"},"totalMinutes":{"type":"number"},"totalCostMicroUsd":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"completedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["jobId","hardwareFlavor","totalMinutes","totalCostMicroUsd","startedAt"],"additionalProperties":false}}},"required":["usedMicroUsd","totalMinutes","periodStart","periodEnd","jobDetails"],"additionalProperties":false},"hasAccess":{"type":"boolean"}},"required":["usage","hasAccess"],"additionalProperties":false}}},"description":"Jobs usage information"}}}},"/api/settings/billing/usage/live":{"get":{"description":"Get live usage for user","summary":"Stream usage","tags":["users"]}},"/api/users/{username}/billing/usage/live":{"get":{"description":"Get live usage for user","summary":"Stream usage","tags":["users"],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/users/{username}/overview":{"get":{"summary":"User overview","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","fullname","avatarUrl"],"additionalProperties":false}},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"numModels":{"type":"number"},"numDatasets":{"type":"number"},"numSpaces":{"type":"number"},"numDiscussions":{"type":"number"},"numPapers":{"type":"number"},"numUpvotes":{"type":"number"},"numLikes":{"type":"number"},"numFollowers":{"type":"number"},"numFollowing":{"type":"number"},"details":{"type":"string"},"isFollowing":{"type":"boolean"},"reasonToFollow":{"type":"string"},"type":{"const":"user"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["_id","avatarUrl","fullname","isPro","user","type","createdAt"],"additionalProperties":false}}},"description":"User overview data including their organizations, stats, and creation date"}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/users/{username}/socials":{"get":{"description":"Get a user's social media handles","summary":"Get social handles","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string"},"user":{"type":"string"},"socialHandles":{"type":"object","properties":{"twitter":{"type":"string"},"github":{"type":"string"},"linkedin":{"type":"string"},"bluesky":{"type":"string"}},"additionalProperties":false}},"required":["_id","user","socialHandles"],"additionalProperties":false}}},"description":"The user's social media handles. Only includes handles that the user has provided."}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/users/{username}/avatar":{"get":{"description":"This endpoint returns a JSON with the avatar URL for the user.\n\nIf called with the `Sec-Fetch-Dest: image` header, it instead redirects to the avatar URL","summary":"Retrieve user avatar","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"avatarUrl":{"type":"string","format":"uri"}},"required":["avatarUrl"],"additionalProperties":false}}},"description":"Avatar URL"}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"redirect","in":"query","schema":{"description":"Redirect to the avatar url instead of returning it"},"required":false}]}},"/api/organizations/{name}/socials":{"get":{"description":"Get an organization's social media handles","summary":"Get social handles","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string"},"org":{"type":"string"},"socialHandles":{"type":"object","properties":{"twitter":{"type":"string"},"github":{"type":"string"},"linkedin":{"type":"string"}},"additionalProperties":false}},"required":["_id","org","socialHandles"],"additionalProperties":false}}},"description":"The organization's social media handles. Only includes handles that the organization has provided."}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/avatars/{namespace}":{"get":{"description":"Display the avatar for any user or organization. This endpoint redirects to the avatar URL for either a user or an organization","summary":"Get avatar","tags":["users","orgs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/inference-endpoints/{namespace}/auth-check/{perms}":{"post":{"description":"Check if the user has access to the inference endpoint","summary":"Check access","tags":["inference-endpoints"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"hasHfLevelAccess":{"type":"boolean"}},"required":["id","name"],"additionalProperties":false}},"required":["namespace","user"],"additionalProperties":false}}},"description":"The user has access to the inference endpoint/resource"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"hasHfLevelAccess":{"type":"boolean"}},"required":["id","name"],"additionalProperties":false},"patternRestrictions":{"type":"array","items":{"type":"string"}}},"required":["namespace","user","patternRestrictions"],"additionalProperties":false}}},"description":"The user has access to the resource, but the endpoint name is restricted by pattern restrictions. Can only be returned if `endpoint` is not provided in the path"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"perms","in":"path","required":true,"schema":{"type":"string","enum":["read","write","infer"]}},{"name":"own","in":"query","schema":{},"required":false},{"name":"is_creator","in":"query","schema":{},"required":false},{"name":"creator_id","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"incur_cost","in":"query","schema":{},"required":false},{"name":"resource_group_id","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"repo_id","in":"query","schema":{"type":"string"},"required":false}]}},"/api/inference-endpoints/{namespace}/{endpoint}/auth-check/{perms}":{"post":{"description":"Check if the user has access to the inference endpoint","summary":"Check access","tags":["inference-endpoints"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"hasHfLevelAccess":{"type":"boolean"}},"required":["id","name"],"additionalProperties":false}},"required":["namespace","user"],"additionalProperties":false}}},"description":"The user has access to the inference endpoint/resource"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"hasHfLevelAccess":{"type":"boolean"}},"required":["id","name"],"additionalProperties":false},"patternRestrictions":{"type":"array","items":{"type":"string"}}},"required":["namespace","user","patternRestrictions"],"additionalProperties":false}}},"description":"The user has access to the resource, but the endpoint name is restricted by pattern restrictions. Can only be returned if `endpoint` is not provided in the path"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"endpoint","in":"path","required":true,"schema":{"type":"string"}},{"name":"perms","in":"path","required":true,"schema":{"type":"string","enum":["read","write","infer"]}},{"name":"own","in":"query","schema":{},"required":false},{"name":"is_creator","in":"query","schema":{},"required":false},{"name":"creator_id","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"incur_cost","in":"query","schema":{},"required":false},{"name":"resource_group_id","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"repo_id","in":"query","schema":{"type":"string"},"required":false}]}},"/api/models/{namespace}/{repo}/treesize/{rev}/{path}":{"get":{"description":"Get the total size of a repository at a given revision, optionally under a specific subpath. Returns the total size in bytes of all files under the specified path (recursively). If a file is stored via Xet/LFS, the LFS file size is used.","summary":"Get folder size","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"description":"The normalized path of the subtree, starting with a slash","type":"string"},"size":{"description":"Total size in bytes of all files under the subtree","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["path","size"],"additionalProperties":false}}},"description":"Total size of a repository at a given revision, under the given path"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/spaces/{namespace}/{repo}/treesize/{rev}/{path}":{"get":{"description":"Get the total size of a repository at a given revision, optionally under a specific subpath. Returns the total size in bytes of all files under the specified path (recursively). If a file is stored via Xet/LFS, the LFS file size is used.","summary":"Get folder size","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"description":"The normalized path of the subtree, starting with a slash","type":"string"},"size":{"description":"Total size in bytes of all files under the subtree","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["path","size"],"additionalProperties":false}}},"description":"Total size of a repository at a given revision, under the given path"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/datasets/{namespace}/{repo}/treesize/{rev}/{path}":{"get":{"description":"Get the total size of a repository at a given revision, optionally under a specific subpath. Returns the total size in bytes of all files under the specified path (recursively). If a file is stored via Xet/LFS, the LFS file size is used.","summary":"Get folder size","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"description":"The normalized path of the subtree, starting with a slash","type":"string"},"size":{"description":"Total size in bytes of all files under the subtree","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["path","size"],"additionalProperties":false}}},"description":"Total size of a repository at a given revision, under the given path"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/models/{namespace}/{repo}/lfs-files":{"get":{"description":"List Xet/LFS files for a repo","summary":"List Large files","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"pusher":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false},"ref":{"type":"string"},"fileOid":{"type":"string"},"oid":{"type":"string"},"size":{"type":"number"},"pushedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"filename":{"description":"Potential filename of the LFS file","type":"string"},"xetHash":{"type":"string"}},"required":["fileOid","oid","size","pushedAt"],"additionalProperties":false}}}},"description":"List of Xet/LFS files for the repo","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"default":1000,"type":"integer","minimum":1,"maximum":1000},"required":false},{"name":"xet","in":"query","schema":{},"required":false}]}},"/api/datasets/{namespace}/{repo}/lfs-files":{"get":{"description":"List Xet/LFS files for a repo","summary":"List Large files","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"pusher":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false},"ref":{"type":"string"},"fileOid":{"type":"string"},"oid":{"type":"string"},"size":{"type":"number"},"pushedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"filename":{"description":"Potential filename of the LFS file","type":"string"},"xetHash":{"type":"string"}},"required":["fileOid","oid","size","pushedAt"],"additionalProperties":false}}}},"description":"List of Xet/LFS files for the repo","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"default":1000,"type":"integer","minimum":1,"maximum":1000},"required":false},{"name":"xet","in":"query","schema":{},"required":false}]}},"/api/spaces/{namespace}/{repo}/lfs-files":{"get":{"description":"List Xet/LFS files for a repo","summary":"List Large files","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"pusher":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false},"ref":{"type":"string"},"fileOid":{"type":"string"},"oid":{"type":"string"},"size":{"type":"number"},"pushedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"filename":{"description":"Potential filename of the LFS file","type":"string"},"xetHash":{"type":"string"}},"required":["fileOid","oid","size","pushedAt"],"additionalProperties":false}}}},"description":"List of Xet/LFS files for the repo","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"default":1000,"type":"integer","minimum":1,"maximum":1000},"required":false},{"name":"xet","in":"query","schema":{},"required":false}]}},"/api/models/{namespace}/{repo}/lfs-files/batch":{"post":{"description":"Delete Xet/LFS files in batch","summary":"Delete Large files","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deletions":{"type":"object","properties":{"sha":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string"}},"rewriteHistory":{"default":true,"type":"boolean"}},"required":["sha"]}},"required":["deletions"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/lfs-files/batch":{"post":{"description":"Delete Xet/LFS files in batch","summary":"Delete Large files","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deletions":{"type":"object","properties":{"sha":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string"}},"rewriteHistory":{"default":true,"type":"boolean"}},"required":["sha"]}},"required":["deletions"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/lfs-files/batch":{"post":{"description":"Delete Xet/LFS files in batch","summary":"Delete Large files","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deletions":{"type":"object","properties":{"sha":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string"}},"rewriteHistory":{"default":true,"type":"boolean"}},"required":["sha"]}},"required":["deletions"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/lfs-files/{sha}":{"delete":{"description":"Delete a Xet/LFS file","summary":"Delete Large file","tags":["models"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"sha","in":"path","required":true,"schema":{"type":"string"}},{"name":"rewriteHistory","in":"query","schema":{"default":true},"required":false}]}},"/api/datasets/{namespace}/{repo}/lfs-files/{sha}":{"delete":{"description":"Delete a Xet/LFS file","summary":"Delete Large file","tags":["datasets"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"sha","in":"path","required":true,"schema":{"type":"string"}},{"name":"rewriteHistory","in":"query","schema":{"default":true},"required":false}]}},"/api/spaces/{namespace}/{repo}/lfs-files/{sha}":{"delete":{"description":"Delete a Xet/LFS file","summary":"Delete Large file","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"sha","in":"path","required":true,"schema":{"type":"string"}},{"name":"rewriteHistory","in":"query","schema":{"default":true},"required":false}]}},"/api/models/{namespace}/{repo}/commits/{rev}":{"get":{"summary":"List commits","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"authors":{"type":"array","items":{"type":"object","properties":{"user":{"type":"string"},"avatar":{"type":"string"}},"required":["user"],"additionalProperties":false}},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"formatted":{"description":"Available if expand includes formatted","type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title"],"additionalProperties":false}},"required":["id","title","message","authors","date"],"additionalProperties":false}}}},"description":"Commits list","headers":{"X-Total-Count":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link to the next page"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":false},{"name":"expand","in":"query","schema":{"type":"array","items":{"enum":["formatted"]}},"required":false},{"name":"limit","in":"query","schema":{"default":50,"type":"integer","minimum":1,"maximum":1000},"required":false}]}},"/api/spaces/{namespace}/{repo}/commits/{rev}":{"get":{"summary":"List commits","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"authors":{"type":"array","items":{"type":"object","properties":{"user":{"type":"string"},"avatar":{"type":"string"}},"required":["user"],"additionalProperties":false}},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"formatted":{"description":"Available if expand includes formatted","type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title"],"additionalProperties":false}},"required":["id","title","message","authors","date"],"additionalProperties":false}}}},"description":"Commits list","headers":{"X-Total-Count":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link to the next page"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":false},{"name":"expand","in":"query","schema":{"type":"array","items":{"enum":["formatted"]}},"required":false},{"name":"limit","in":"query","schema":{"default":50,"type":"integer","minimum":1,"maximum":1000},"required":false}]}},"/api/datasets/{namespace}/{repo}/commits/{rev}":{"get":{"summary":"List commits","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"authors":{"type":"array","items":{"type":"object","properties":{"user":{"type":"string"},"avatar":{"type":"string"}},"required":["user"],"additionalProperties":false}},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"formatted":{"description":"Available if expand includes formatted","type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title"],"additionalProperties":false}},"required":["id","title","message","authors","date"],"additionalProperties":false}}}},"description":"Commits list","headers":{"X-Total-Count":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link to the next page"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":false},{"name":"expand","in":"query","schema":{"type":"array","items":{"enum":["formatted"]}},"required":false},{"name":"limit","in":"query","schema":{"default":50,"type":"integer","minimum":1,"maximum":1000},"required":false}]}},"/api/models/{namespace}/{repo}/refs":{"get":{"summary":"List references","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"branches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"converts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}}},"required":["tags","branches","converts"],"additionalProperties":false}}},"description":"List of references in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"include_prs","in":"query","schema":{"default":false},"required":false}]}},"/api/datasets/{namespace}/{repo}/refs":{"get":{"summary":"List references","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"branches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"converts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}}},"required":["tags","branches","converts"],"additionalProperties":false}}},"description":"List of references in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"include_prs","in":"query","schema":{"default":false},"required":false}]}},"/api/spaces/{namespace}/{repo}/refs":{"get":{"summary":"List references","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"branches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"converts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}}},"required":["tags","branches","converts"],"additionalProperties":false}}},"description":"List of references in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"include_prs","in":"query","schema":{"default":false},"required":false}]}},"/api/models/{namespace}/{repo}/compare/{compare}":{"get":{"summary":"Get a compare rev","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}},"description":"The diff between the two revisions"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"compare","in":"path","required":true,"schema":{"type":"string"}},{"name":"raw","in":"query","schema":{"default":false},"required":false}]}},"/api/datasets/{namespace}/{repo}/compare/{compare}":{"get":{"summary":"Get a compare rev","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}},"description":"The diff between the two revisions"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"compare","in":"path","required":true,"schema":{"type":"string"}},{"name":"raw","in":"query","schema":{"default":false},"required":false}]}},"/api/spaces/{namespace}/{repo}/compare/{compare}":{"get":{"summary":"Get a compare rev","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}},"description":"The diff between the two revisions"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"compare","in":"path","required":true,"schema":{"type":"string"}},{"name":"raw","in":"query","schema":{"default":false},"required":false}]}},"/api/models/{namespace}/{repo}/paths-info/{rev}":{"post":{"summary":"List paths info","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paths":{"anyOf":[{"maxItems":2000,"type":"array","items":{"type":"string"}},{"type":"string"}]},"expand":{"description":"Expand the response with the last commit and security file status","anyOf":[{"default":false},{"default":false,"type":"boolean"}]}},"required":["paths","expand"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"type":"number"},"lfs":{"type":"object","properties":{"pointerSize":{"type":"number"}},"required":["pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"path":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid","size","path"],"additionalProperties":false}}}},"description":"List of paths in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/paths-info/{rev}":{"post":{"summary":"List paths info","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paths":{"anyOf":[{"maxItems":2000,"type":"array","items":{"type":"string"}},{"type":"string"}]},"expand":{"description":"Expand the response with the last commit and security file status","anyOf":[{"default":false},{"default":false,"type":"boolean"}]}},"required":["paths","expand"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"type":"number"},"lfs":{"type":"object","properties":{"pointerSize":{"type":"number"}},"required":["pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"path":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid","size","path"],"additionalProperties":false}}}},"description":"List of paths in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/paths-info/{rev}":{"post":{"summary":"List paths info","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paths":{"anyOf":[{"maxItems":2000,"type":"array","items":{"type":"string"}},{"type":"string"}]},"expand":{"description":"Expand the response with the last commit and security file status","anyOf":[{"default":false},{"default":false,"type":"boolean"}]}},"required":["paths","expand"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"type":"number"},"lfs":{"type":"object","properties":{"pointerSize":{"type":"number"}},"required":["pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"path":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid","size","path"],"additionalProperties":false}}}},"description":"List of paths in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/preupload/{rev}":{"post":{"description":"Check if a file should be uploaded through the Large File mechanism or directly.","summary":"Check upload method","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"number"},"sample":{"type":"string"}},"required":["path","size","sample"]}},"gitAttributes":{"description":"Provide this parameter if you plan to modify `.gitattributes` yourself at the same time as uploading LFS files. Note that this is not needed if you solely rely on automatic LFS detection from HF: the commit endpoint will automatically edit the `.gitattributes` file to track the files passed to its `lfsFiles` param.","type":"string"},"gitIgnore":{"description":"Content of the .gitignore file for the revision. Optional, otherwise takes the existing content of `.gitignore` for the revision.","type":"string"}},"required":["files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"uploadMode":{"enum":["lfs","regular"]},"shouldIgnore":{"type":"boolean"},"oid":{"description":"The oid of the blob if it already exists in the repository. If the blob is a LFS file, it'll be the lfs oid.","type":"string"}},"required":["path","uploadMode","shouldIgnore"],"additionalProperties":false}},"commitOid":{"type":"string"}},"required":["files","commitOid"],"additionalProperties":false}}},"description":"Files to be uploaded."},"422":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"The request is invalid"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/preupload/{rev}":{"post":{"description":"Check if a file should be uploaded through the Large File mechanism or directly.","summary":"Check upload method","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"number"},"sample":{"type":"string"}},"required":["path","size","sample"]}},"gitAttributes":{"description":"Provide this parameter if you plan to modify `.gitattributes` yourself at the same time as uploading LFS files. Note that this is not needed if you solely rely on automatic LFS detection from HF: the commit endpoint will automatically edit the `.gitattributes` file to track the files passed to its `lfsFiles` param.","type":"string"},"gitIgnore":{"description":"Content of the .gitignore file for the revision. Optional, otherwise takes the existing content of `.gitignore` for the revision.","type":"string"}},"required":["files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"uploadMode":{"enum":["lfs","regular"]},"shouldIgnore":{"type":"boolean"},"oid":{"description":"The oid of the blob if it already exists in the repository. If the blob is a LFS file, it'll be the lfs oid.","type":"string"}},"required":["path","uploadMode","shouldIgnore"],"additionalProperties":false}},"commitOid":{"type":"string"}},"required":["files","commitOid"],"additionalProperties":false}}},"description":"Files to be uploaded."},"422":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"The request is invalid"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/preupload/{rev}":{"post":{"description":"Check if a file should be uploaded through the Large File mechanism or directly.","summary":"Check upload method","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"number"},"sample":{"type":"string"}},"required":["path","size","sample"]}},"gitAttributes":{"description":"Provide this parameter if you plan to modify `.gitattributes` yourself at the same time as uploading LFS files. Note that this is not needed if you solely rely on automatic LFS detection from HF: the commit endpoint will automatically edit the `.gitattributes` file to track the files passed to its `lfsFiles` param.","type":"string"},"gitIgnore":{"description":"Content of the .gitignore file for the revision. Optional, otherwise takes the existing content of `.gitignore` for the revision.","type":"string"}},"required":["files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"uploadMode":{"enum":["lfs","regular"]},"shouldIgnore":{"type":"boolean"},"oid":{"description":"The oid of the blob if it already exists in the repository. If the blob is a LFS file, it'll be the lfs oid.","type":"string"}},"required":["path","uploadMode","shouldIgnore"],"additionalProperties":false}},"commitOid":{"type":"string"}},"required":["files","commitOid"],"additionalProperties":false}}},"description":"Files to be uploaded."},"422":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"The request is invalid"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/xet-write-token/{rev}":{"get":{"description":"Get a write short-lived access token for XET upload","summary":"Xet write token","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetWriteAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/xet-write-token/{rev}":{"get":{"description":"Get a write short-lived access token for XET upload","summary":"Xet write token","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetWriteAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/xet-write-token/{rev}":{"get":{"description":"Get a write short-lived access token for XET upload","summary":"Xet write token","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetWriteAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/xet-write-token":{"get":{"description":"Get a write short-lived access token for XET upload","summary":"Xet write token","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetWriteAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["buckets"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/xet-read-token/{rev}":{"get":{"description":"Get a read short-lived access token for XET","summary":"Xet read token","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetReadAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/xet-read-token/{rev}":{"get":{"description":"Get a read short-lived access token for XET","summary":"Xet read token","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetReadAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/xet-read-token/{rev}":{"get":{"description":"Get a read short-lived access token for XET","summary":"Xet read token","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetReadAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/xet-read-token":{"get":{"description":"Get a read short-lived access token for XET","summary":"Xet read token","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetReadAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["buckets"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/commit/{rev}":{"post":{"description":"For legacy reason, we support both `application/json` and `application/x-ndjson` but we recommend using `application/x-ndjson` to create a commit.\n\nJSON-lines payload:\n```json\n{\n  \"key\": \"header\",\n  \"value\": {\n    \"summary\": \"string (REQUIRED)\",\n    \"description\": \"string (OPTIONAL - defaults to empty string)\",\n    \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n  }\n}\n{\n  \"key\": \"file\", \n  \"value\": {\n    \"path\": \"string (REQUIRED)\",\n    \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n    \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n    \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n  }\n}\n{\n  \"key\": \"deletedEntry\",\n  \"value\": {\n    \"path\": \"string (REQUIRED)\"\n  }\n}\n{\n  \"key\": \"lfsFile\",\n  \"value\": {\n    \"path\": \"string (REQUIRED - max 1000 chars)\",\n    \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n    \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n    \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n    \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n  }\n}\n```\n\nJSON payload:\n```json\n{\n  \"summary\": \"string (REQUIRED)\",\n  \"description\": \"string (OPTIONAL - defaults to empty string)\",\n  \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n  \"files\": [\n    {\n      \"path\": \"string (REQUIRED)\",\n      \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n      \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n      \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n    }\n  ],\n  \"deletedEntries\": [\n    {\n      \"path\": \"string (REQUIRED)\"\n    }\n  ],\n  \"lfsFiles\": [\n    {\n      \"path\": \"string (REQUIRED - max 1000 chars)\",\n      \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n      \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n      \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n      \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n    }\n  ]\n}\n```\n","summary":"Commit","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"Whether the commit was successful","type":"boolean"},"pullRequestUrl":{"description":"The URL of the pull request","type":"string"},"commitOid":{"description":"The OID of the commit","type":"string"},"commitUrl":{"description":"The URL of the commit","type":"string"},"hookOutput":{"description":"The output of the git hook","type":"string"}},"required":["success","commitOid","commitUrl","hookOutput"],"additionalProperties":false}}},"description":"The response of the commit"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"create_pr","in":"query","schema":{"description":"Whether to create a pull request from the commit"},"required":false},{"name":"hot_reload","in":"query","schema":{"description":"For Spaces, whether to try to hot reload the commit (only for single python files updates)"},"required":false},{"name":"Content-Type","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"`application/x-ndjson` if you to commit by json lines","default":"application/x-ndjson","enum":["application/json","application/x-ndjson"]}}]}},"/api/datasets/{namespace}/{repo}/commit/{rev}":{"post":{"description":"For legacy reason, we support both `application/json` and `application/x-ndjson` but we recommend using `application/x-ndjson` to create a commit.\n\nJSON-lines payload:\n```json\n{\n  \"key\": \"header\",\n  \"value\": {\n    \"summary\": \"string (REQUIRED)\",\n    \"description\": \"string (OPTIONAL - defaults to empty string)\",\n    \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n  }\n}\n{\n  \"key\": \"file\", \n  \"value\": {\n    \"path\": \"string (REQUIRED)\",\n    \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n    \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n    \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n  }\n}\n{\n  \"key\": \"deletedEntry\",\n  \"value\": {\n    \"path\": \"string (REQUIRED)\"\n  }\n}\n{\n  \"key\": \"lfsFile\",\n  \"value\": {\n    \"path\": \"string (REQUIRED - max 1000 chars)\",\n    \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n    \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n    \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n    \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n  }\n}\n```\n\nJSON payload:\n```json\n{\n  \"summary\": \"string (REQUIRED)\",\n  \"description\": \"string (OPTIONAL - defaults to empty string)\",\n  \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n  \"files\": [\n    {\n      \"path\": \"string (REQUIRED)\",\n      \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n      \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n      \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n    }\n  ],\n  \"deletedEntries\": [\n    {\n      \"path\": \"string (REQUIRED)\"\n    }\n  ],\n  \"lfsFiles\": [\n    {\n      \"path\": \"string (REQUIRED - max 1000 chars)\",\n      \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n      \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n      \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n      \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n    }\n  ]\n}\n```\n","summary":"Commit","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"Whether the commit was successful","type":"boolean"},"pullRequestUrl":{"description":"The URL of the pull request","type":"string"},"commitOid":{"description":"The OID of the commit","type":"string"},"commitUrl":{"description":"The URL of the commit","type":"string"},"hookOutput":{"description":"The output of the git hook","type":"string"}},"required":["success","commitOid","commitUrl","hookOutput"],"additionalProperties":false}}},"description":"The response of the commit"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"create_pr","in":"query","schema":{"description":"Whether to create a pull request from the commit"},"required":false},{"name":"hot_reload","in":"query","schema":{"description":"For Spaces, whether to try to hot reload the commit (only for single python files updates)"},"required":false},{"name":"Content-Type","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"`application/x-ndjson` if you to commit by json lines","default":"application/x-ndjson","enum":["application/json","application/x-ndjson"]}}]}},"/api/spaces/{namespace}/{repo}/commit/{rev}":{"post":{"description":"For legacy reason, we support both `application/json` and `application/x-ndjson` but we recommend using `application/x-ndjson` to create a commit.\n\nJSON-lines payload:\n```json\n{\n  \"key\": \"header\",\n  \"value\": {\n    \"summary\": \"string (REQUIRED)\",\n    \"description\": \"string (OPTIONAL - defaults to empty string)\",\n    \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n  }\n}\n{\n  \"key\": \"file\", \n  \"value\": {\n    \"path\": \"string (REQUIRED)\",\n    \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n    \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n    \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n  }\n}\n{\n  \"key\": \"deletedEntry\",\n  \"value\": {\n    \"path\": \"string (REQUIRED)\"\n  }\n}\n{\n  \"key\": \"lfsFile\",\n  \"value\": {\n    \"path\": \"string (REQUIRED - max 1000 chars)\",\n    \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n    \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n    \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n    \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n  }\n}\n```\n\nJSON payload:\n```json\n{\n  \"summary\": \"string (REQUIRED)\",\n  \"description\": \"string (OPTIONAL - defaults to empty string)\",\n  \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n  \"files\": [\n    {\n      \"path\": \"string (REQUIRED)\",\n      \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n      \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n      \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n    }\n  ],\n  \"deletedEntries\": [\n    {\n      \"path\": \"string (REQUIRED)\"\n    }\n  ],\n  \"lfsFiles\": [\n    {\n      \"path\": \"string (REQUIRED - max 1000 chars)\",\n      \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n      \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n      \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n      \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n    }\n  ]\n}\n```\n","summary":"Commit","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"Whether the commit was successful","type":"boolean"},"pullRequestUrl":{"description":"The URL of the pull request","type":"string"},"commitOid":{"description":"The OID of the commit","type":"string"},"commitUrl":{"description":"The URL of the commit","type":"string"},"hookOutput":{"description":"The output of the git hook","type":"string"}},"required":["success","commitOid","commitUrl","hookOutput"],"additionalProperties":false}}},"description":"The response of the commit"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"create_pr","in":"query","schema":{"description":"Whether to create a pull request from the commit"},"required":false},{"name":"hot_reload","in":"query","schema":{"description":"For Spaces, whether to try to hot reload the commit (only for single python files updates)"},"required":false},{"name":"Content-Type","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"`application/x-ndjson` if you to commit by json lines","default":"application/x-ndjson","enum":["application/json","application/x-ndjson"]}}]}},"/api/models/{namespace}/{repo}/tag/{rev}":{"post":{"summary":"Create tag","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tag":{"type":"string"},"message":{"type":"string"}},"required":["tag"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a tag","tags":["models"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/tag/{rev}":{"post":{"summary":"Create tag","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tag":{"type":"string"},"message":{"type":"string"}},"required":["tag"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a tag","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/tag/{rev}":{"post":{"summary":"Create tag","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tag":{"type":"string"},"message":{"type":"string"}},"required":["tag"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a tag","tags":["datasets"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/branch/{rev}":{"post":{"summary":"Create branch","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"startingPoint":{"description":"The commit to start from","type":"string"},"emptyBranch":{"description":"Create an empty branch","default":false,"type":"boolean"},"overwrite":{"description":"Overwrite the branch if it already exists","default":false,"type":"boolean"}}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a branch","tags":["models"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/branch/{rev}":{"post":{"summary":"Create branch","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"startingPoint":{"description":"The commit to start from","type":"string"},"emptyBranch":{"description":"Create an empty branch","default":false,"type":"boolean"},"overwrite":{"description":"Overwrite the branch if it already exists","default":false,"type":"boolean"}}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a branch","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/branch/{rev}":{"post":{"summary":"Create branch","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"startingPoint":{"description":"The commit to start from","type":"string"},"emptyBranch":{"description":"Create an empty branch","default":false,"type":"boolean"},"overwrite":{"description":"Overwrite the branch if it already exists","default":false,"type":"boolean"}}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a branch","tags":["datasets"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/resource-group":{"post":{"description":"Add the repository to a resource group","summary":"Add resource group","tags":["models","spaces","datasets","buckets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"resourceGroupId":{"description":"The resource group to add the repository to, if null, the repository will be removed from the resource group","anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},{"type":"null"}]}},"required":["resourceGroupId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]},"private":{"type":"boolean"},"addedBy":{"type":"string"}},"required":["name","type","private","addedBy"],"additionalProperties":false}}},"description":"Minimal information about the repository"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels","buckets"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"summary":"Get resource group","tags":["models","spaces","datasets","buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}}},"description":"The resource group of the repository"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels","buckets"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/super-squash/{rev}":{"post":{"description":"Squash all commits in the current ref into a single commit with the given message. Action is irreversible.","summary":"Squash ref","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"message":{"type":"string","maxLength":500}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"commitId":{"description":"The new commit ID after the squash","type":"string"}},"required":["commitId"],"additionalProperties":false}}},"description":"Response containing the new commit ID after the squash"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/super-squash/{rev}":{"post":{"description":"Squash all commits in the current ref into a single commit with the given message. Action is irreversible.","summary":"Squash ref","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"message":{"type":"string","maxLength":500}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"commitId":{"description":"The new commit ID after the squash","type":"string"}},"required":["commitId"],"additionalProperties":false}}},"description":"Response containing the new commit ID after the squash"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/super-squash/{rev}":{"post":{"description":"Squash all commits in the current ref into a single commit with the given message. Action is irreversible.","summary":"Squash ref","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"message":{"type":"string","maxLength":500}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"commitId":{"description":"The new commit ID after the squash","type":"string"}},"required":["commitId"],"additionalProperties":false}}},"description":"Response containing the new commit ID after the squash"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/settings":{"put":{"description":"Update the settings of a repo","summary":"Update repo settings","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}},"additionalProperties":false}}},"description":"The updated repo settings."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/settings":{"put":{"description":"Update the settings of a repo","summary":"Update repo settings","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}},"additionalProperties":false}}},"description":"The updated repo settings."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/settings":{"put":{"description":"Update the settings of a repo","summary":"Update repo settings","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}},"additionalProperties":false}}},"description":"The updated repo settings."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/tree/{rev}/{path}":{"get":{"description":"List the content of a repository tree, with pagination support.","summary":"List folder content","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"description":"If the file is a LFS pointer, it'll return the size of the remote file","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lfs":{"type":"object","properties":{"oid":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pointerSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["oid","size","pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid"],"additionalProperties":false}}}},"description":"List of entries in the repository tree","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, if applicable"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"expand","in":"query","schema":{"description":"If true, returns returns associated commit data for each entry and security scanner metadata.","default":false},"required":false},{"name":"recursive","in":"query","schema":{"description":"If true, returns the tree recursively.","default":false},"required":false},{"name":"limit","in":"query","schema":{"description":"1.000 by default, 100 by default for expand=true","type":"integer","minimum":1,"maximum":9007199254740991},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false}]}},"/api/spaces/{namespace}/{repo}/tree/{rev}/{path}":{"get":{"description":"List the content of a repository tree, with pagination support.","summary":"List folder content","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"description":"If the file is a LFS pointer, it'll return the size of the remote file","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lfs":{"type":"object","properties":{"oid":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pointerSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["oid","size","pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid"],"additionalProperties":false}}}},"description":"List of entries in the repository tree","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, if applicable"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"expand","in":"query","schema":{"description":"If true, returns returns associated commit data for each entry and security scanner metadata.","default":false},"required":false},{"name":"recursive","in":"query","schema":{"description":"If true, returns the tree recursively.","default":false},"required":false},{"name":"limit","in":"query","schema":{"description":"1.000 by default, 100 by default for expand=true","type":"integer","minimum":1,"maximum":9007199254740991},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false}]}},"/api/datasets/{namespace}/{repo}/tree/{rev}/{path}":{"get":{"description":"List the content of a repository tree, with pagination support.","summary":"List folder content","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"description":"If the file is a LFS pointer, it'll return the size of the remote file","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lfs":{"type":"object","properties":{"oid":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pointerSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["oid","size","pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid"],"additionalProperties":false}}}},"description":"List of entries in the repository tree","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, if applicable"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"expand","in":"query","schema":{"description":"If true, returns returns associated commit data for each entry and security scanner metadata.","default":false},"required":false},{"name":"recursive","in":"query","schema":{"description":"If true, returns the tree recursively.","default":false},"required":false},{"name":"limit","in":"query","schema":{"description":"1.000 by default, 100 by default for expand=true","type":"integer","minimum":1,"maximum":9007199254740991},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false}]}},"/api/models/{namespace}/{repo}/notebook/{rev}/{path}":{"get":{"description":"Get a jupyter notebook URL for the requested file","summary":"Get notebook URL","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false},{"type":"object","properties":{"notInCache":{"const":true}},"required":["notInCache"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}]}}},"description":"Response containing the url of the notebook"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/datasets/{namespace}/{repo}/notebook/{rev}/{path}":{"get":{"description":"Get a jupyter notebook URL for the requested file","summary":"Get notebook URL","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false},{"type":"object","properties":{"notInCache":{"const":true}},"required":["notInCache"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}]}}},"description":"Response containing the url of the notebook"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/spaces/{namespace}/{repo}/notebook/{rev}/{path}":{"get":{"description":"Get a jupyter notebook URL for the requested file","summary":"Get notebook URL","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false},{"type":"object","properties":{"notInCache":{"const":true}},"required":["notInCache"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}]}}},"description":"Response containing the url of the notebook"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/models/{namespace}/{repo}/scan":{"get":{"description":"Get the security status of a repo","summary":"Get security status","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scansDone":{"type":"boolean"},"filesWithIssues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"level":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]}},"required":["path","level"],"additionalProperties":false}}},"required":["scansDone","filesWithIssues"],"additionalProperties":false}}},"description":"The security status of the repo"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/scan":{"get":{"description":"Get the security status of a repo","summary":"Get security status","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scansDone":{"type":"boolean"},"filesWithIssues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"level":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]}},"required":["path","level"],"additionalProperties":false}}},"required":["scansDone","filesWithIssues"],"additionalProperties":false}}},"description":"The security status of the repo"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/scan":{"get":{"description":"Get the security status of a repo","summary":"Get security status","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scansDone":{"type":"boolean"},"filesWithIssues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"level":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]}},"required":["path","level"],"additionalProperties":false}}},"required":["scansDone","filesWithIssues"],"additionalProperties":false}}},"description":"The security status of the repo"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions":{"get":{"description":"Get discussions for a repo","summary":"List discussions","tags":["discussions"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"discussions":{"type":"array","items":{"type":"object","properties":{"num":{"type":"number"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"repo":{"$ref":"#/components/schemas/RepoId"},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"topReactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["🔥","🚀","👀","❤️","🤗","😎","➕","🧠","👍","🤝","😔","🤯"]},"count":{"type":"number"}},"required":["reaction","count"],"additionalProperties":false}},"status":{"enum":["draft","open","closed","merged"]},"isPullRequest":{"type":"boolean"},"numComments":{"type":"number"},"numReactionUsers":{"type":"number"},"pinned":{"type":"boolean"},"repoOwner":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["org","user"]},"isParticipating":{"type":"boolean"},"isDiscussionAuthor":{"type":"boolean"}},"required":["name","type","isParticipating","isDiscussionAuthor"],"additionalProperties":false}},"required":["num","repo","title","createdAt","topReactions","status","isPullRequest","numComments","numReactionUsers","pinned"],"additionalProperties":false}},"count":{"type":"number"},"start":{"type":"number"},"numClosedDiscussions":{"description":"Number of closed discussions on the first page","type":"number"}},"required":["discussions","count","start"],"additionalProperties":false}}},"description":"List of discussions"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":false},{"name":"type","in":"query","schema":{"default":"all","enum":["all","discussion","pull_request"]},"required":false},{"name":"status","in":"query","schema":{"default":"all","enum":["all","open","closed"]},"required":false},{"name":"author","in":"query","schema":{"type":"string","minLength":2,"maxLength":42,"pattern":"^\\b(?!\\d+$)(?![0-9a-fA-F]{24}$)([a-zA-Z0-9]|-(?!-))+\\b$"},"required":false},{"name":"search","in":"query","schema":{"type":"string"},"required":false},{"name":"sort","in":"query","schema":{"default":"recently-created","enum":["recently-created","trending","reactions"]},"required":false}]},"post":{"summary":"Create a new discussion","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":200},"description":{"type":"string","maxLength":65536},"pullRequest":{"type":"boolean"}},"required":["title","description"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string"},"num":{"type":"number"},"pullRequest":{"type":"boolean"},"references":{"type":"object","properties":{"base":{"type":"string"},"mergeCommitId":{"type":"string"}},"required":["base"],"additionalProperties":false}},"required":["url","num","pullRequest"],"additionalProperties":false}}},"description":"Discussion creation response"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}":{"get":{"summary":"Get discussion details","tags":["discussions"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"num":{"type":"number"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"org":{"type":"object","properties":{"avatarUrl":{"type":"string"},"email":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"requiresSSO":{"type":"boolean"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false},"repo":{"$ref":"#/components/schemas/RepoId"},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"status":{"enum":["draft","open","closed","merged"]},"events":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["🔥","🚀","👀","❤️","🤗","😎","➕","🧠","👍","🤝","😔","🤯"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"status-change"},"data":{"type":"object","properties":{"status":{"enum":["draft","open","closed","merged"]},"reason":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"commit"},"data":{"type":"object","properties":{"subject":{"type":"string"},"oid":{"type":"string"}},"required":["subject","oid"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"title-change"},"data":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"pinning-change"},"data":{"type":"object","properties":{"pinned":{"type":"boolean"}},"required":["pinned"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"locking-change"},"data":{"type":"object","properties":{"locked":{"type":"boolean"}},"required":["locked"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"report-status-change"},"data":{"type":"object","properties":{"report":{"type":"boolean"}},"required":["report"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"ref-deleted"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}]}},"pinned":{"type":"boolean"},"locked":{"type":"boolean"},"collection":{"enum":["discussions","paper_discussions","social_posts","community_blogs"]},"isPullRequest":{"const":false},"isReport":{"type":"boolean"}},"required":["_id","title","status","events","pinned","locked","collection","isPullRequest","isReport"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"num":{"type":"number"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"org":{"type":"object","properties":{"avatarUrl":{"type":"string"},"email":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"requiresSSO":{"type":"boolean"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false},"repo":{"$ref":"#/components/schemas/RepoId"},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"status":{"enum":["draft","open","closed","merged"]},"events":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["🔥","🚀","👀","❤️","🤗","😎","➕","🧠","👍","🤝","😔","🤯"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"status-change"},"data":{"type":"object","properties":{"status":{"enum":["draft","open","closed","merged"]},"reason":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"commit"},"data":{"type":"object","properties":{"subject":{"type":"string"},"oid":{"type":"string"}},"required":["subject","oid"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"title-change"},"data":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"pinning-change"},"data":{"type":"object","properties":{"pinned":{"type":"boolean"}},"required":["pinned"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"locking-change"},"data":{"type":"object","properties":{"locked":{"type":"boolean"}},"required":["locked"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"report-status-change"},"data":{"type":"object","properties":{"report":{"type":"boolean"}},"required":["report"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"ref-deleted"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}]}},"pinned":{"type":"boolean"},"locked":{"type":"boolean"},"collection":{"const":"discussions"},"isPullRequest":{"const":true},"filesWithConflicts":{"description":"The list of files with conflicts. `true` means there are conflicts but we cannot list them.","anyOf":[{"type":"array","items":{"type":"string"}},{"const":true}]},"changes":{"type":"object","properties":{"base":{"type":"string"},"mergeCommitId":{"type":"string"},"headCommitId":{"description":"The last commit ID of the PR branch, stored before ref deletion so diffs can still be computed.","type":"string"},"refDeleted":{"description":"Whether the PR ref has been deleted (to free up storage).","type":"boolean"}},"required":["base"],"additionalProperties":false}},"required":["_id","title","status","events","pinned","locked","collection","isPullRequest","filesWithConflicts","changes"],"additionalProperties":false}]},{"type":"object","properties":{"diffUrl":{"type":"string"}},"additionalProperties":false}]}}},"description":"Discussion details"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a discussion","tags":["discussions"],"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/comment":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["🔥","🚀","👀","❤️","🤗","😎","➕","🧠","👍","🤝","😔","🤯"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/status":{"post":{"description":"Change the status of a discussion","summary":"Change status","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"enum":["open","closed"]},"comment":{"type":"string"}},"required":["status"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newStatus":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"status-change"},"data":{"type":"object","properties":{"status":{"enum":["draft","open","closed","merged"]},"reason":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newStatus"],"additionalProperties":false}}},"description":"New status event"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/title":{"post":{"description":"Change the title of a discussion","summary":"Change title","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":200}},"required":["title"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newTitle":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"title-change"},"data":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newTitle"],"additionalProperties":false}}},"description":"New title event"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/pin":{"post":{"summary":"Pin a discussion","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pinned":{"type":"boolean"}},"required":["pinned"]}}}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/merge":{"post":{"summary":"Merge a pull request","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string"}}}}}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/ref":{"delete":{"description":"Deletes the git ref for a closed/merged pull request to free up storage. LFS files unique to this PR will be garbage collected. The PR page and diff will still be viewable using stored commit data.","summary":"Delete PR ref","tags":["discussions"],"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/storage":{"get":{"description":"Estimates the LFS storage used by a PR that could be freed if the ref is deleted.","summary":"PR storage estimate","tags":["discussions"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"estimatedStorage":{"description":"Estimated storage in bytes that may be freed","type":"number"},"refDeleted":{"description":"Whether the ref has already been deleted","type":"boolean"}},"required":["estimatedStorage","refDeleted"],"additionalProperties":false}}},"description":"PR storage estimate response"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/kernels/{namespace}/{repo}":{"get":{"summary":"Get kernel","tags":["kernels"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string"},"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"private":{"type":"boolean"},"repoType":{"const":"kernel"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"files":{"type":"array","items":{"type":"string"}},"supportedDriverFamilies":{"type":"array","items":{"enum":["cuda","rocm","metal","xpu","cpu"]}}},"required":["_id","author","downloads","id","isLikedByUser","lastModified","likes","private","repoType","gated"],"additionalProperties":false}}},"description":"Kernel overview information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/kernels/{namespace}/{repo}/revision/{rev}":{"get":{"summary":"Get kernel","tags":["kernels"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string"},"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"private":{"type":"boolean"},"repoType":{"const":"kernel"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"files":{"type":"array","items":{"type":"string"}},"supportedDriverFamilies":{"type":"array","items":{"enum":["cuda","rocm","metal","xpu","cpu"]}}},"required":["_id","author","downloads","id","isLikedByUser","lastModified","likes","private","repoType","gated"],"additionalProperties":false}}},"description":"Kernel overview information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/leaderboard":{"get":{"description":"Returns the evaluation results ranked by score for a dataset/task","summary":"Get the leaderboard for a dataset","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"rank":{"type":"number"},"modelId":{"type":"string"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"value":{"type":"number"},"verified":{"type":"boolean"},"source":{"type":"object","properties":{"url":{"type":"string"},"name":{"type":"string"},"isExternal":{"type":"boolean"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["url","isExternal"],"additionalProperties":false},"pullRequest":{"type":"number"},"filename":{"type":"string"},"notes":{"type":"string"},"lower_is_better":{"type":"boolean"}},"required":["rank","modelId","author","value","filename"],"additionalProperties":false}}}},"description":"Evaluation results"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_id","in":"query","schema":{"type":"string"},"required":false}]}},"/api/models/{namespace}/{repo}/jwt":{"get":{"description":"Generate a JWT token for accessing a repository. Supports optional write access for spaces in dev mode, custom expiration, and encryption.","summary":"Generate JWT","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accessToken":{"description":"The JWT token with Bearer prefix","type":"string"},"exp":{"description":"Token expiration timestamp in seconds (JWT standard)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token":{"description":"The JWT token","type":"string"},"encryptedToken":{"description":"Encrypted JWT token and key ID (only if encrypted=true was requested)","type":"object","properties":{"encrypted":{"description":"The encrypted JWT token","type":"string"},"keyId":{"description":"Key ID used to encrypt the token","type":"string"}},"required":["encrypted","keyId"],"additionalProperties":false}},"required":["accessToken","token"],"additionalProperties":false}}},"description":"The JWT token and related information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"write","in":"query","schema":{},"required":false},{"name":"expiration","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"encrypted","in":"query","schema":{},"required":false},{"name":"inference_api","in":"query","schema":{},"required":false},{"name":"include_pro_status","in":"query","schema":{},"required":false},{"name":"billing_details","in":"query","schema":{},"required":false}]}},"/api/spaces/{namespace}/{repo}/jwt":{"get":{"description":"Generate a JWT token for accessing a repository. Supports optional write access for spaces in dev mode, custom expiration, and encryption.","summary":"Generate JWT","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accessToken":{"description":"The JWT token with Bearer prefix","type":"string"},"exp":{"description":"Token expiration timestamp in seconds (JWT standard)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token":{"description":"The JWT token","type":"string"},"encryptedToken":{"description":"Encrypted JWT token and key ID (only if encrypted=true was requested)","type":"object","properties":{"encrypted":{"description":"The encrypted JWT token","type":"string"},"keyId":{"description":"Key ID used to encrypt the token","type":"string"}},"required":["encrypted","keyId"],"additionalProperties":false}},"required":["accessToken","token"],"additionalProperties":false}}},"description":"The JWT token and related information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"write","in":"query","schema":{},"required":false},{"name":"expiration","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"encrypted","in":"query","schema":{},"required":false},{"name":"inference_api","in":"query","schema":{},"required":false},{"name":"include_pro_status","in":"query","schema":{},"required":false},{"name":"billing_details","in":"query","schema":{},"required":false}]}},"/api/datasets/{namespace}/{repo}/jwt":{"get":{"description":"Generate a JWT token for accessing a repository. Supports optional write access for spaces in dev mode, custom expiration, and encryption.","summary":"Generate JWT","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accessToken":{"description":"The JWT token with Bearer prefix","type":"string"},"exp":{"description":"Token expiration timestamp in seconds (JWT standard)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token":{"description":"The JWT token","type":"string"},"encryptedToken":{"description":"Encrypted JWT token and key ID (only if encrypted=true was requested)","type":"object","properties":{"encrypted":{"description":"The encrypted JWT token","type":"string"},"keyId":{"description":"Key ID used to encrypt the token","type":"string"}},"required":["encrypted","keyId"],"additionalProperties":false}},"required":["accessToken","token"],"additionalProperties":false}}},"description":"The JWT token and related information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"write","in":"query","schema":{},"required":false},{"name":"expiration","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"encrypted","in":"query","schema":{},"required":false},{"name":"inference_api","in":"query","schema":{},"required":false},{"name":"include_pro_status","in":"query","schema":{},"required":false},{"name":"billing_details","in":"query","schema":{},"required":false}]}},"/api/models-tags-by-type":{"get":{"description":"Get all possible tags used for models, grouped by tag type. Optionally restrict to only one tag type","summary":"Get model tags","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"anyOf":[{"enum":["pipeline_tag","library","dataset","bucket","language","license","arxiv","doi","region","other"]},{"not":{}}]},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"type":{"enum":["pipeline_tag","library","dataset","bucket","language","license","arxiv","doi","region","other"]},"subType":{"type":"string"},"clickable":{"default":true,"type":"boolean"}},"required":["id","label","type"],"additionalProperties":false}}}}},"description":"The tags, grouped by tag type"}},"parameters":[{"name":"type","in":"query","schema":{"enum":["pipeline_tag","library","dataset","bucket","language","license","arxiv","doi","region","other"]},"required":false}]}},"/api/datasets-tags-by-type":{"get":{"description":"Get all possible tags used for datasets, grouped by tag type. Optionally restrict to only one tag type","summary":"Get dataset tags","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"anyOf":[{"enum":["benchmark","task_categories","size_categories","modality","format","library","language","license","arxiv","doi","region","other","task_ids","annotations_creators","language_creators","multilinguality","source_datasets"]},{"not":{}}]},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"type":{"enum":["benchmark","task_categories","size_categories","modality","format","library","language","license","arxiv","doi","region","other","task_ids","annotations_creators","language_creators","multilinguality","source_datasets"]},"subType":{"type":"string"},"clickable":{"default":true,"type":"boolean"}},"required":["id","label","type"],"additionalProperties":false}}}}},"description":"The tags, grouped by tag type"}},"parameters":[{"name":"type","in":"query","schema":{"enum":["benchmark","task_categories","size_categories","modality","format","library","language","license","arxiv","doi","region","other","task_ids","annotations_creators","language_creators","multilinguality","source_datasets"]},"required":false}]}},"/api/trending":{"get":{"description":"Get the trending repositories","summary":"Get trending","tags":["models","spaces","datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"recentlyTrending":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"repoType":{"const":"dataset"},"repoData":{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified"],"additionalProperties":false}},"required":["repoType","repoData"],"additionalProperties":false},{"type":"object","properties":{"repoType":{"const":"model"},"repoData":{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","black-forest-labs","cerebras","clarifai","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","hyperbolic","nebius","novita","nscale","nvidia","openai","ovhcloud","publicai","replicate","sambanova","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated"],"additionalProperties":false}},"required":["repoType","repoData"],"additionalProperties":false},{"type":"object","properties":{"repoType":{"const":"space"},"repoData":{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility"],"additionalProperties":false}},"required":["repoType","repoData"],"additionalProperties":false}]}}},"required":["recentlyTrending"],"additionalProperties":false}}},"description":"Trending repos"}},"parameters":[{"name":"type","in":"query","schema":{"default":"all","enum":["all","dataset","model","space"]},"required":false},{"name":"limit","in":"query","schema":{"default":10,"type":"integer","minimum":1,"maximum":20},"required":false}]}},"/api/quicksearch":{"get":{"description":"Quick search for models, datasets, spaces, orgs, users, papers, collections, and buckets","summary":"Quick search","tags":["repo-search"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"datasets":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"id":{"type":"string"},"private":{"type":"boolean"},"trendingWeight":{"type":"number"}},"required":["_id","id","trendingWeight"],"additionalProperties":false}},"datasetsCount":{"type":"number"},"models":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"id":{"type":"string"},"private":{"type":"boolean"},"trendingWeight":{"type":"number"}},"required":["_id","id","trendingWeight"],"additionalProperties":false}},"modelsCount":{"type":"number"},"orgs":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"}},"required":["_id","avatarUrl","fullname","name"],"additionalProperties":false}},"q":{"type":"string"},"spaces":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"id":{"type":"string"},"private":{"type":"boolean"},"emoji":{"type":"string"},"trendingWeight":{"type":"number"}},"required":["_id","id","emoji","trendingWeight"],"additionalProperties":false}},"spacesCount":{"type":"number"},"users":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatarUrl","fullname","user"],"additionalProperties":false}},"papers":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"id":{"type":"string"},"private":{"type":"boolean"}},"required":["_id","id"],"additionalProperties":false}},"papersCount":{"type":"number"},"collections":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}},"required":["_id","title"],"additionalProperties":false}},"collectionsCount":{"type":"number"},"buckets":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"id":{"type":"string"},"private":{"type":"boolean"}},"required":["_id","id"],"additionalProperties":false}},"bucketsCount":{"type":"number"}},"required":["datasets","datasetsCount","models","modelsCount","orgs","q","spaces","spacesCount","users","papers","papersCount","collections","collectionsCount","buckets","bucketsCount"],"additionalProperties":false}}},"description":"The quick search results"}},"parameters":[{"name":"q","in":"query","schema":{"default":"","type":"string"},"required":false},{"name":"limit","in":"query","schema":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"integer","minimum":1,"maximum":20}]},"required":false},{"name":"lang","in":"query","schema":{"anyOf":[{"enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},{"type":"string"}]},"required":false},{"name":"library","in":"query","schema":{"anyOf":[{"enum":["acestep","adapter-transformers","allennlp","anemoi","araclip","aviation-ner","asteroid","audiocraft","audioseal","bagel-mot","bboxmaskpose","ben2","bertopic","big_vision","bionemo","birder","birefnet","bm25s","boltzgen","cancertathomev2","cartesia_pytorch","cartesia_mlx","champ","chatterbox","chaossim","chat_tts","chronos-forecasting","clara","clipscope","cloud-agents","colipri","cosyvoice","cotracker","colpali","comet","cosmos","cxr-foundation","deepforest","depth-anything-v2","depth-pro","derm-foundation","describe-anything","dia-tts","dia2","diff-interpretation-tuning","diffree","diffusers","diffusionkit","docking-at-home","doctr","edsnlp","elm","espnet","fairseq","fastai","fastprint","fasttext","fixer","flair","fme","gemma.cpp","geometry-crafter","gliner","gliner2","glm-tts","glyph-byt5","granite-library","grok","habibi-tts","hallo","hermes","hezar","htrflow","hunyuan-dit","hunyuan3d-2","hunyuanworld-voyager","hy-worldplay","image-matching-models","imstoucan","index-tts","infinitetalk","infinite-you","intellifold","keras","tf-keras","keras-hub","kernels","kimi-audio","kittentts","kronos","k2","lagernvs","lightning-ir","litert","litert-lm","lerobot","lightglue","liveportrait","llama-cpp-python","mini-omni2","mindspore","magi-1","magenta-realtime","mamba-ssm","manas-1","mars5-tts","matanyone","mesh-anything","merlin","medvae","mitie","ml-agents","ml-sharp","mlx","mlx-image","mlc-llm","model2vec","moshi","mtvcraft","nemo","nv-medtech","open-oasis","open_clip","openpeerllm","open-sora","outetts","paddlenlp","PaddleOCR","peft","perception-encoder","phantom-wan","pocket-tts","pruna-ai","pxia","pyannote-audio","py-feat","pythae","quantumpeer","qwen3_tts","recurrentgemma","relik","refiners","renderformer","reverb","rkllm","saelens","sam2","sam-3d-body","sam-3d-objects","same","sample-factory","sap-rpt-1-oss","sapiens","seedvr","self-forcing","sentence-transformers","setfit","sklearn","spacy","span-marker","speechbrain","ssr-speech","stable-audio-tools","monkeyocr","diffusion-single-file","seed-story","soloaudio","songbloom","stable-baselines3","stanza","supertonic","swarmformer","synthefy-migas","f5-tts","genmo","tencent-song-generation","tensorflowtts","tensorrt","tabpfn","terratorch","tic-clip","timesfm","timm","tirex","torchgeo","transformers","transformers.js","trellis","ultralytics","univa","uni-3dar","unity-sentis","sana","videoprism","vfi-mamba","vismatch","lvface","voicecraft","voxcpm","vui","vibevoice","videox_fun","wan2.2","wham","whisperkit","yolov10","yolov26","zonos","3dtopia-xl"]},{"type":"string"}]},"required":false},{"name":"type","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["model","dataset","space","org","user","paper","collection","bucket"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"orgsFilter","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["own","unwatched"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"reposFilter","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["skip_disabled","skip_gated","own","own_orgs","granted_access"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"pipelines","in":"query","schema":{"description":"Comma-separated or array of pipeline types","anyOf":[{"type":"array","items":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other"]}},{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}]},"required":false},{"name":"exclude","in":"query","schema":{"description":"Array of excluded resources: spaces/repo, models/repo, datasets/repo, papers/paperId, collections/collectionId, users/username, orgs/orgName, buckets/bucketName","default":[],"type":"array","items":{"type":"string","pattern":"^(spaces|models|datasets|papers|collections|users|orgs|buckets)\\/.*"}},"required":false},{"name":"namespace","in":"query","schema":{"description":"Namespace to filter by","type":"string"},"required":false},{"name":"includeInvitees","in":"query","schema":{"default":false,"anyOf":[{"type":"boolean"},{}]},"required":false},{"name":"repoName","in":"query","schema":{"type":"string"},"required":false},{"name":"repoType","in":"query","schema":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"type":"string"}]},"required":false},{"name":"discussionId","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"discussionCollectionName","in":"query","schema":{"type":"string"},"required":false},{"name":"spacesTags","in":"query","schema":{"type":"array","items":{"type":"string"}},"required":false}]},"post":{"description":"Quick search for models, datasets, spaces, orgs, users, papers, collections, and buckets","summary":"Quick search","tags":["repo-search"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"q":{"default":"","type":"string"},"limit":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"integer","minimum":1,"maximum":20}]},"lang":{"anyOf":[{"enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},{"type":"string"}]},"library":{"anyOf":[{"enum":["acestep","adapter-transformers","allennlp","anemoi","araclip","aviation-ner","asteroid","audiocraft","audioseal","bagel-mot","bboxmaskpose","ben2","bertopic","big_vision","bionemo","birder","birefnet","bm25s","boltzgen","cancertathomev2","cartesia_pytorch","cartesia_mlx","champ","chatterbox","chaossim","chat_tts","chronos-forecasting","clara","clipscope","cloud-agents","colipri","cosyvoice","cotracker","colpali","comet","cosmos","cxr-foundation","deepforest","depth-anything-v2","depth-pro","derm-foundation","describe-anything","dia-tts","dia2","diff-interpretation-tuning","diffree","diffusers","diffusionkit","docking-at-home","doctr","edsnlp","elm","espnet","fairseq","fastai","fastprint","fasttext","fixer","flair","fme","gemma.cpp","geometry-crafter","gliner","gliner2","glm-tts","glyph-byt5","granite-library","grok","habibi-tts","hallo","hermes","hezar","htrflow","hunyuan-dit","hunyuan3d-2","hunyuanworld-voyager","hy-worldplay","image-matching-models","imstoucan","index-tts","infinitetalk","infinite-you","intellifold","keras","tf-keras","keras-hub","kernels","kimi-audio","kittentts","kronos","k2","lagernvs","lightning-ir","litert","litert-lm","lerobot","lightglue","liveportrait","llama-cpp-python","mini-omni2","mindspore","magi-1","magenta-realtime","mamba-ssm","manas-1","mars5-tts","matanyone","mesh-anything","merlin","medvae","mitie","ml-agents","ml-sharp","mlx","mlx-image","mlc-llm","model2vec","moshi","mtvcraft","nemo","nv-medtech","open-oasis","open_clip","openpeerllm","open-sora","outetts","paddlenlp","PaddleOCR","peft","perception-encoder","phantom-wan","pocket-tts","pruna-ai","pxia","pyannote-audio","py-feat","pythae","quantumpeer","qwen3_tts","recurrentgemma","relik","refiners","renderformer","reverb","rkllm","saelens","sam2","sam-3d-body","sam-3d-objects","same","sample-factory","sap-rpt-1-oss","sapiens","seedvr","self-forcing","sentence-transformers","setfit","sklearn","spacy","span-marker","speechbrain","ssr-speech","stable-audio-tools","monkeyocr","diffusion-single-file","seed-story","soloaudio","songbloom","stable-baselines3","stanza","supertonic","swarmformer","synthefy-migas","f5-tts","genmo","tencent-song-generation","tensorflowtts","tensorrt","tabpfn","terratorch","tic-clip","timesfm","timm","tirex","torchgeo","transformers","transformers.js","trellis","ultralytics","univa","uni-3dar","unity-sentis","sana","videoprism","vfi-mamba","vismatch","lvface","voicecraft","voxcpm","vui","vibevoice","videox_fun","wan2.2","wham","whisperkit","yolov10","yolov26","zonos","3dtopia-xl"]},{"type":"string"}]},"type":{"anyOf":[{"type":"array","items":{"enum":["model","dataset","space","org","user","paper","collection","bucket"]}},{"type":"array","items":{"type":"string"}}]},"orgsFilter":{"anyOf":[{"type":"array","items":{"enum":["own","unwatched"]}},{"type":"array","items":{"type":"string"}}]},"reposFilter":{"anyOf":[{"type":"array","items":{"enum":["skip_disabled","skip_gated","own","own_orgs","granted_access"]}},{"type":"array","items":{"type":"string"}}]},"pipelines":{"description":"Comma-separated or array of pipeline types","anyOf":[{"type":"array","items":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other"]}},{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}]},"exclude":{"description":"Array of excluded resources: spaces/repo, models/repo, datasets/repo, papers/paperId, collections/collectionId, users/username, orgs/orgName, buckets/bucketName","default":[],"type":"array","items":{"type":"string","pattern":"^(spaces|models|datasets|papers|collections|users|orgs|buckets)\\/.*"}},"namespace":{"description":"Namespace to filter by","type":"string"},"includeInvitees":{"default":false,"anyOf":[{"type":"boolean"},{}]},"repoName":{"type":"string"},"repoType":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"type":"string"}]},"discussionId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"discussionCollectionName":{"type":"string"},"spacesTags":{"type":"array","items":{"type":"string"}}},"required":["exclude","bucketNamespace"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"datasets":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"id":{"type":"string"},"private":{"type":"boolean"},"trendingWeight":{"type":"number"}},"required":["_id","id","trendingWeight"],"additionalProperties":false}},"datasetsCount":{"type":"number"},"models":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"id":{"type":"string"},"private":{"type":"boolean"},"trendingWeight":{"type":"number"}},"required":["_id","id","trendingWeight"],"additionalProperties":false}},"modelsCount":{"type":"number"},"orgs":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"}},"required":["_id","avatarUrl","fullname","name"],"additionalProperties":false}},"q":{"type":"string"},"spaces":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"id":{"type":"string"},"private":{"type":"boolean"},"emoji":{"type":"string"},"trendingWeight":{"type":"number"}},"required":["_id","id","emoji","trendingWeight"],"additionalProperties":false}},"spacesCount":{"type":"number"},"users":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatarUrl","fullname","user"],"additionalProperties":false}},"papers":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"id":{"type":"string"},"private":{"type":"boolean"}},"required":["_id","id"],"additionalProperties":false}},"papersCount":{"type":"number"},"collections":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}},"required":["_id","title"],"additionalProperties":false}},"collectionsCount":{"type":"number"},"buckets":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"id":{"type":"string"},"private":{"type":"boolean"}},"required":["_id","id"],"additionalProperties":false}},"bucketsCount":{"type":"number"}},"required":["datasets","datasetsCount","models","modelsCount","orgs","q","spaces","spacesCount","users","papers","papersCount","collections","collectionsCount","buckets","bucketsCount"],"additionalProperties":false}}},"description":"The quick search results"}},"parameters":[{"name":"q","in":"query","schema":{"default":"","type":"string"},"required":false},{"name":"limit","in":"query","schema":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"integer","minimum":1,"maximum":20}]},"required":false},{"name":"lang","in":"query","schema":{"anyOf":[{"enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},{"type":"string"}]},"required":false},{"name":"library","in":"query","schema":{"anyOf":[{"enum":["acestep","adapter-transformers","allennlp","anemoi","araclip","aviation-ner","asteroid","audiocraft","audioseal","bagel-mot","bboxmaskpose","ben2","bertopic","big_vision","bionemo","birder","birefnet","bm25s","boltzgen","cancertathomev2","cartesia_pytorch","cartesia_mlx","champ","chatterbox","chaossim","chat_tts","chronos-forecasting","clara","clipscope","cloud-agents","colipri","cosyvoice","cotracker","colpali","comet","cosmos","cxr-foundation","deepforest","depth-anything-v2","depth-pro","derm-foundation","describe-anything","dia-tts","dia2","diff-interpretation-tuning","diffree","diffusers","diffusionkit","docking-at-home","doctr","edsnlp","elm","espnet","fairseq","fastai","fastprint","fasttext","fixer","flair","fme","gemma.cpp","geometry-crafter","gliner","gliner2","glm-tts","glyph-byt5","granite-library","grok","habibi-tts","hallo","hermes","hezar","htrflow","hunyuan-dit","hunyuan3d-2","hunyuanworld-voyager","hy-worldplay","image-matching-models","imstoucan","index-tts","infinitetalk","infinite-you","intellifold","keras","tf-keras","keras-hub","kernels","kimi-audio","kittentts","kronos","k2","lagernvs","lightning-ir","litert","litert-lm","lerobot","lightglue","liveportrait","llama-cpp-python","mini-omni2","mindspore","magi-1","magenta-realtime","mamba-ssm","manas-1","mars5-tts","matanyone","mesh-anything","merlin","medvae","mitie","ml-agents","ml-sharp","mlx","mlx-image","mlc-llm","model2vec","moshi","mtvcraft","nemo","nv-medtech","open-oasis","open_clip","openpeerllm","open-sora","outetts","paddlenlp","PaddleOCR","peft","perception-encoder","phantom-wan","pocket-tts","pruna-ai","pxia","pyannote-audio","py-feat","pythae","quantumpeer","qwen3_tts","recurrentgemma","relik","refiners","renderformer","reverb","rkllm","saelens","sam2","sam-3d-body","sam-3d-objects","same","sample-factory","sap-rpt-1-oss","sapiens","seedvr","self-forcing","sentence-transformers","setfit","sklearn","spacy","span-marker","speechbrain","ssr-speech","stable-audio-tools","monkeyocr","diffusion-single-file","seed-story","soloaudio","songbloom","stable-baselines3","stanza","supertonic","swarmformer","synthefy-migas","f5-tts","genmo","tencent-song-generation","tensorflowtts","tensorrt","tabpfn","terratorch","tic-clip","timesfm","timm","tirex","torchgeo","transformers","transformers.js","trellis","ultralytics","univa","uni-3dar","unity-sentis","sana","videoprism","vfi-mamba","vismatch","lvface","voicecraft","voxcpm","vui","vibevoice","videox_fun","wan2.2","wham","whisperkit","yolov10","yolov26","zonos","3dtopia-xl"]},{"type":"string"}]},"required":false},{"name":"type","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["model","dataset","space","org","user","paper","collection","bucket"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"orgsFilter","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["own","unwatched"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"reposFilter","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["skip_disabled","skip_gated","own","own_orgs","granted_access"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"pipelines","in":"query","schema":{"description":"Comma-separated or array of pipeline types","anyOf":[{"type":"array","items":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other"]}},{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}]},"required":false},{"name":"exclude","in":"query","schema":{"description":"Array of excluded resources: spaces/repo, models/repo, datasets/repo, papers/paperId, collections/collectionId, users/username, orgs/orgName, buckets/bucketName","default":[],"type":"array","items":{"type":"string","pattern":"^(spaces|models|datasets|papers|collections|users|orgs|buckets)\\/.*"}},"required":false},{"name":"namespace","in":"query","schema":{"description":"Namespace to filter by","type":"string"},"required":false},{"name":"includeInvitees","in":"query","schema":{"default":false,"anyOf":[{"type":"boolean"},{}]},"required":false},{"name":"repoName","in":"query","schema":{"type":"string"},"required":false},{"name":"repoType","in":"query","schema":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"type":"string"}]},"required":false},{"name":"discussionId","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"discussionCollectionName","in":"query","schema":{"type":"string"},"required":false},{"name":"spacesTags","in":"query","schema":{"type":"array","items":{"type":"string"}},"required":false}]}},"/api/spaces/hardware":{"get":{"description":"Get available space hardware","summary":"List space hardware","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"prettyName":{"type":"string"},"cpu":{"type":"string"},"ram":{"type":"string"},"accelerator":{"anyOf":[{"type":"object","properties":{"type":{"enum":["gpu","neuron"]},"model":{"type":"string"},"quantity":{"type":"string"},"vram":{"type":"string"},"manufacturer":{"enum":["Nvidia","AWS"]}},"required":["type","model","quantity","vram","manufacturer"],"additionalProperties":false},{"type":"null"}]},"unitCostMicroUSD":{"type":"number"},"unitCostUSD":{"type":"number"},"unitLabel":{"type":"string"}},"required":["name","prettyName","cpu","ram","accelerator","unitCostMicroUSD","unitCostUSD","unitLabel"],"additionalProperties":false}}}},"description":"Available space hardware (public only)"}}}},"/api/spaces/{namespace}/{repo}/secrets":{"post":{"description":"Upsert Spaces's secret","summary":"Upsert secret","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"default":"","type":"string"}},"required":["key"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Delete Spaces's secret","summary":"Delete secret","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"string"}},"required":["key"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/variables":{"post":{"description":"Upsert Spaces's variable","summary":"Upsert variable","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"default":"","type":"string"}},"required":["key"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Delete Spaces's variable","summary":"Delete variable","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"string"}},"required":["key"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/duplicate":{"post":{"summary":"Duplicate a repository","tags":["repos"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"repository":{"type":"string"},"private":{"type":"boolean"},"visibility":{"enum":["private","public","protected"]},"resourceGroupId":{"anyOf":[{"anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}]},{"type":"null"}]},"hardware":{"default":"","enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6",""]},"sleepTimeSeconds":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"const":-1}]},"secrets":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"type":"string"}},"required":["key","value"]}},"variables":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"type":"string"}},"required":["key","value"]}},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the duplicated Space.","type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}}},"required":["repository"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}},"description":"Repository created, url is given"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["spaces"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/repos/create":{"post":{"summary":"Create a new repository","tags":["repos"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","allOf":[{"type":"object","properties":{"name":{"type":"string"},"organization":{"anyOf":[{"type":"string"},{"type":"null"}]},"license":{"description":"The license of the repository. You can select 'Other' if your license is not in the list","enum":["apache-2.0","mit","openrail","bigscience-openrail-m","creativeml-openrail-m","bigscience-bloom-rail-1.0","bigcode-openrail-m","afl-3.0","artistic-2.0","bsl-1.0","bsd","bsd-2-clause","bsd-3-clause","bsd-3-clause-clear","c-uda","cc","cc0-1.0","cc-by-2.0","cc-by-2.5","cc-by-3.0","cc-by-4.0","cc-by-sa-3.0","cc-by-sa-4.0","cc-by-nc-2.0","cc-by-nc-3.0","cc-by-nc-4.0","cc-by-nd-4.0","cc-by-nc-nd-3.0","cc-by-nc-nd-4.0","cc-by-nc-sa-2.0","cc-by-nc-sa-3.0","cc-by-nc-sa-4.0","cdla-sharing-1.0","cdla-permissive-1.0","cdla-permissive-2.0","wtfpl","ecl-2.0","epl-1.0","epl-2.0","etalab-2.0","eupl-1.1","eupl-1.2","agpl-3.0","gfdl","gpl","gpl-2.0","gpl-3.0","lgpl","lgpl-2.1","lgpl-3.0","isc","h-research","intel-research","lppl-1.3c","ms-pl","apple-ascl","apple-amlr","mpl-2.0","odc-by","odbl","openmdw-1.0","openrail++","osl-3.0","postgresql","ofl-1.1","ncsa","unlicense","zlib","pddl","lgpl-lr","deepfloyd-if-license","fair-noncommercial-research-license","llama2","llama3","llama3.1","llama3.2","llama3.3","llama4","grok2-community","gemma","unknown","other"]},"license_name":{"type":"string","pattern":"^[a-z0-9-.]+$"},"license_link":{"anyOf":[{"const":"LICENSE"},{"const":"LICENSE.md"},{"type":"string","format":"uri"}]},"private":{"description":"Repository visibility. Defaults to public. Cannot be specified along with visibility.","anyOf":[{"type":"boolean"},{"type":"null"}]},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces. Cannot be specified along with private.","enum":["private","public","protected"]},"resourceGroupId":{"anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}]},"files":{"type":"array","items":{"type":"object","properties":{"content":{"type":"string"},"path":{"type":"string"},"encoding":{"enum":["utf-8","base64"]}},"required":["content","path"]}}},"required":["name"]},{"anyOf":[{"type":"object","properties":{"type":{"const":"dataset"}},"required":["type"]},{"type":"object","properties":{"type":{"default":"model","const":"model"}}},{"type":"object","properties":{"type":{"const":"kernel"}},"required":["type"]},{"type":"object","properties":{"type":{"const":"space"},"template":{"type":"string"},"short_description":{"type":"string","maxLength":60},"hardware":{"description":"The hardware flavor of the space. If you select 'zero-a10g' or 'zerogpu', the SDK must be Gradio.","enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6","zerogpu"]},"secrets":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"type":"string"}},"required":["key","value"]}},"variables":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"type":"string"}},"required":["key","value"]}},"sleepTimeSeconds":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"const":-1}]},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the Space container.","type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}},"sdk":{"enum":["gradio","docker","static"]},"sdkVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"devModeEnabled":{"type":"boolean"}},"required":["type","sdk"]}]}]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string"},"name":{"type":"string"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"}},"required":["url","name","id"],"additionalProperties":false}}},"description":"Repository created, url is given"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"url":{"type":"string"}},"required":["error","url"],"additionalProperties":false}}},"description":"Repository already exists, url is given"}}}},"/api/repos/move":{"post":{"description":"Move or rename a repo","summary":"Move repo","tags":["repos"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"fromRepo":{"examples":["black-forest-labs/FLUX.1-dev"],"type":"string"},"toRepo":{"type":"string"},"type":{"default":"model","enum":["dataset","model","space","bucket","kernel"]}},"required":["fromRepo","toRepo"]}}}}}},"/api/{repoType}/{namespace}/{repo}/sql-console/embed/{id}":{"patch":{"description":"Update SQL Console embed","summary":"Update embed","tags":["sql-console"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","maxLength":200},"private":{"type":"boolean"},"sql":{"type":"string"}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"repoId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"views":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"displayName":{"type":"string"},"viewName":{"type":"string"}},"required":["key","displayName","viewName"],"additionalProperties":false}},"sql":{"type":"string"},"title":{"type":"string"},"userId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"slug":{"type":"string"},"private":{"type":"boolean"},"rating":{"type":"number"},"justification":{"type":"string"}},"required":["_id","repoId","views","sql","title","userId","createdAt","slug"],"additionalProperties":false}}},"description":"Updated SQL console embed"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["datasets"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Delete SQL Console embed","summary":"Delete embed","tags":["sql-console"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}},"description":"SQL console embed deleted successfully"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["datasets"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/sql-console/embed":{"post":{"description":"Create SQL Console embed","summary":"Create embed","tags":["sql-console"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sql":{"type":"string"},"title":{"type":"string","maxLength":200},"private":{"type":"boolean"},"views":{"minItems":1,"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"displayName":{"type":"string"},"viewName":{"type":"string"}},"required":["key","displayName","viewName"]}}},"required":["sql","title","views"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"repoId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"views":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"displayName":{"type":"string"},"viewName":{"type":"string"}},"required":["key","displayName","viewName"],"additionalProperties":false}},"sql":{"type":"string"},"title":{"type":"string"},"userId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"slug":{"type":"string"},"private":{"type":"boolean"},"rating":{"type":"number"},"justification":{"type":"string"}},"required":["_id","repoId","views","sql","title","userId","createdAt","slug"],"additionalProperties":false}}},"description":"Created SQL console embed"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["datasets"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/spaces/{namespace}/{repo}/resolve/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/datasets/{namespace}/{repo}/resolve/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/{namespace}/{repo}/resolve/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/api/resolve-cache/spaces/{namespace}/{repo}/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/api/resolve-cache/datasets/{namespace}/{repo}/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/api/resolve-cache/models/{namespace}/{repo}/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/{namespace}/{repo}/ask-access":{"post":{"description":"Request access to a gated repository. The fields requested by repository card metadata (https://huggingface.co/docs/hub/en/models-gated#customize-requested-information)","summary":"Request access","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"responses":{"303":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to the repo"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/datasets/{namespace}/{repo}/ask-access":{"post":{"description":"Request access to a gated repository. The fields requested by repository card metadata (https://huggingface.co/docs/hub/en/models-gated#customize-requested-information)","summary":"Request access","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"responses":{"303":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to the repo"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/{namespace}/{repo}/user-access-report":{"get":{"description":"Export a report of all access requests for a gated repository","summary":"Export access report","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}},"description":"The report of all access requests for a gated repository","headers":{"Content-Disposition":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"The filename of the report"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/datasets/{namespace}/{repo}/user-access-report":{"get":{"description":"Export a report of all access requests for a gated repository","summary":"Export access report","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}},"description":"The report of all access requests for a gated repository","headers":{"Content-Disposition":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"The filename of the report"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/user-access-request/cancel":{"post":{"description":"Cancel the current user's access request to a gated repository","summary":"Cancel access request","tags":["models"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/user-access-request/cancel":{"post":{"description":"Cancel the current user's access request to a gated repository","summary":"Cancel access request","tags":["datasets"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/user-access-request/{status}":{"get":{"description":"List access requests for a gated repository","summary":"List access requests","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"user":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","fullname","avatarUrl"],"additionalProperties":false}},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"numModels":{"type":"number"},"numDatasets":{"type":"number"},"numSpaces":{"type":"number"},"numDiscussions":{"type":"number"},"numPapers":{"type":"number"},"numUpvotes":{"type":"number"},"numLikes":{"type":"number"},"numFollowers":{"type":"number"},"numFollowing":{"type":"number"},"details":{"type":"string"},"isFollowing":{"type":"boolean"},"reasonToFollow":{"type":"string"},"type":{"const":"user"},"email":{"type":"string"}},"required":["_id","avatarUrl","fullname","isPro","user","type"],"additionalProperties":false},"grantedBy":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","fullname","avatarUrl"],"additionalProperties":false}},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"numModels":{"type":"number"},"numDatasets":{"type":"number"},"numSpaces":{"type":"number"},"numDiscussions":{"type":"number"},"numPapers":{"type":"number"},"numUpvotes":{"type":"number"},"numLikes":{"type":"number"},"numFollowers":{"type":"number"},"numFollowing":{"type":"number"},"details":{"type":"string"},"isFollowing":{"type":"boolean"},"reasonToFollow":{"type":"string"},"type":{"const":"user"},"email":{"type":"string"}},"required":["_id","avatarUrl","fullname","isPro","user","type"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]},"status":{"enum":["accepted","rejected","pending"]},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"timestamp":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["status","timestamp"],"additionalProperties":false}}}},"description":"List of access requests for the gated repository","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"path","required":true,"schema":{"type":"string","enum":["pending","accepted","rejected"]}},{"name":"limit","in":"query","schema":{"default":1000,"type":"integer","minimum":10,"maximum":1000},"required":false},{"name":"after","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"before","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false}]}},"/api/datasets/{namespace}/{repo}/user-access-request/{status}":{"get":{"description":"List access requests for a gated repository","summary":"List access requests","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"user":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","fullname","avatarUrl"],"additionalProperties":false}},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"numModels":{"type":"number"},"numDatasets":{"type":"number"},"numSpaces":{"type":"number"},"numDiscussions":{"type":"number"},"numPapers":{"type":"number"},"numUpvotes":{"type":"number"},"numLikes":{"type":"number"},"numFollowers":{"type":"number"},"numFollowing":{"type":"number"},"details":{"type":"string"},"isFollowing":{"type":"boolean"},"reasonToFollow":{"type":"string"},"type":{"const":"user"},"email":{"type":"string"}},"required":["_id","avatarUrl","fullname","isPro","user","type"],"additionalProperties":false},"grantedBy":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","fullname","avatarUrl"],"additionalProperties":false}},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"numModels":{"type":"number"},"numDatasets":{"type":"number"},"numSpaces":{"type":"number"},"numDiscussions":{"type":"number"},"numPapers":{"type":"number"},"numUpvotes":{"type":"number"},"numLikes":{"type":"number"},"numFollowers":{"type":"number"},"numFollowing":{"type":"number"},"details":{"type":"string"},"isFollowing":{"type":"boolean"},"reasonToFollow":{"type":"string"},"type":{"const":"user"},"email":{"type":"string"}},"required":["_id","avatarUrl","fullname","isPro","user","type"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]},"status":{"enum":["accepted","rejected","pending"]},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"timestamp":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["status","timestamp"],"additionalProperties":false}}}},"description":"List of access requests for the gated repository","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"path","required":true,"schema":{"type":"string","enum":["pending","accepted","rejected"]}},{"name":"limit","in":"query","schema":{"default":1000,"type":"integer","minimum":10,"maximum":1000},"required":false},{"name":"after","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"before","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false}]}},"/api/models/{namespace}/{repo}/user-access-request/handle":{"post":{"description":"Handle a user's access request to a gated repository","summary":"Handle access request","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userId":{"description":"Either userId or user must be provided","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"description":"Either userId or user must be provided","type":"string"},"status":{"enum":["accepted","rejected","pending"]},"rejectionReason":{"type":"string","maxLength":200}},"required":["status"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/user-access-request/handle":{"post":{"description":"Handle a user's access request to a gated repository","summary":"Handle access request","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userId":{"description":"Either userId or user must be provided","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"description":"Either userId or user must be provided","type":"string"},"status":{"enum":["accepted","rejected","pending"]},"rejectionReason":{"type":"string","maxLength":200}},"required":["status"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/user-access-request/grant":{"post":{"description":"Grant access to a user for a gated repository","summary":"Grant access","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The user to grant access to either by userId or user","type":"object","properties":{"userId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"type":"string"}}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/user-access-request/grant":{"post":{"description":"Grant access to a user for a gated repository","summary":"Grant access","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The user to grant access to either by userId or user","type":"object","properties":{"userId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"type":"string"}}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/volumes":{"put":{"summary":"Set Space volumes","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"volumes":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}}},"required":["volumes"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete Space volumes","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/logs/{logType}":{"get":{"description":"Get logs for a specific Space in a streaming fashion, with SSE protocol","summary":"Stream logs","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"logType","in":"path","required":true,"schema":{"type":"string","enum":["build","run"]}}]}},"/api/spaces/{namespace}/{repo}/events":{"get":{"description":"Get status updates for a specific Space in a streaming fashion, with SSE protocol","summary":"Stream events","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"session_uuid","in":"query","schema":{"type":"string"},"required":false}]}},"/api/spaces/{namespace}/{repo}/metrics":{"get":{"description":"Get live metrics for a specific Space in a streaming fashion, with SSE protocol, such as current Zero-GPU usage","summary":"Stream metrics","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/daily_papers":{"get":{"summary":"Get Daily Papers","tags":["papers"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"description":"Daily paper data for API responses","type":"object","properties":{"paper":{"description":"Paper data with metadata","type":"object","properties":{"id":{"type":"string"},"authors":{"type":"array","items":{"description":"Paper author information","type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"statusLastChangedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"user":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"hidden":{"type":"boolean"}},"required":["_id","name","hidden"],"additionalProperties":false}},"mediaUrls":{"type":"array","items":{"type":"string"}},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"submittedOnDailyAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"title":{"type":"string"},"submittedOnDailyBy":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"summary":{"type":"string"},"upvotes":{"type":"number"},"withdrawnAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"discussionId":{"type":"string"},"projectPage":{"type":"string"},"githubRepo":{"type":"string"},"ai_summary":{"type":"string"},"ai_keywords":{"type":"array","items":{"type":"string"}},"githubStars":{"type":"number"}},"required":["id","authors","publishedAt","title","summary","upvotes","discussionId"],"additionalProperties":false},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"title":{"type":"string"},"summary":{"type":"string"},"mediaUrls":{"type":"array","items":{"type":"string"}},"thumbnail":{"type":"string"},"numComments":{"type":"number"},"submittedBy":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"isAuthorParticipating":{"type":"boolean"}},"required":["paper","publishedAt","title","summary","thumbnail","numComments","submittedBy","isAuthorParticipating"],"additionalProperties":false}}}},"description":"List of daily papers"}},"parameters":[{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"required":false},{"name":"limit","in":"query","schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"required":false},{"name":"date","in":"query","schema":{"type":"string","format":"date","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))$"},"required":false},{"name":"week","in":"query","schema":{"type":"string","pattern":"^\\d{4}-W(0[1-9]|[1-4][0-9]|5[0-2])$"},"required":false},{"name":"month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"required":false},{"name":"submitter","in":"query","schema":{"type":"string"},"required":false},{"name":"sort","in":"query","schema":{"default":"publishedAt","enum":["publishedAt","trending"]},"required":false}]}},"/api/papers":{"get":{"description":"List arXiv papers sorted by published date","summary":"List papers","tags":["papers"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"authors":{"type":"array","items":{"description":"Paper author information","type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"statusLastChangedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"user":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"hidden":{"type":"boolean"}},"required":["_id","name","hidden"],"additionalProperties":false}},"summary":{"type":"string"},"projectPage":{"type":"string"},"githubRepo":{"type":"string"},"ai_summary":{"type":"string"},"organization":{"type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatar":{"type":"string"}},"required":["_id","name"],"additionalProperties":false}},"required":["id","title","upvotes","publishedAt","authors","summary"],"additionalProperties":false}}}},"description":"List of papers"}},"parameters":[{"name":"cursor","in":"query","schema":{"description":"Pagination cursor","type":"string"},"required":false},{"name":"limit","in":"query","schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"required":false}]}},"/api/papers/search":{"get":{"description":"Perform a hybrid semantic / full-text-search on papers","summary":"Search papers","tags":["papers"],"parameters":[{"name":"q","in":"query","schema":{"default":"","type":"string","maxLength":250},"required":false},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":120},"required":false}]}},"/api/papers/index":{"post":{"description":"Index a paper from arXiv by its ID. If the paper is already indexed, only its authors can re-index it.","summary":"Index a paper","tags":["papers"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"arxivId":{"description":"The arXiv ID of the paper to index (e.g. 2301.00001)","type":"string","pattern":"^\\d{4}\\.\\d{4,5}$"}},"required":["arxivId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}},"description":"Empty object on success"}}}},"/api/papers/{paperId}/comment":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["🔥","🚀","👀","❤️","🤗","😎","➕","🧠","👍","🤝","😔","🤯"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"paperId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/papers/{paperId}/comment/{commentId}/reply":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["🔥","🚀","👀","❤️","🤗","😎","➕","🧠","👍","🤝","😔","🤯"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"paperId","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/papers/{paperId}/links":{"post":{"description":"Update the project page, GitHub repository, or submitting organization for a paper. Requires the requester to be the paper author, the Daily Papers submitter, or a papers admin.","summary":"Update paper links","tags":["papers"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"projectPage":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"githubRepo":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"organizationId":{"anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}},"description":"Paper links updated"}},"parameters":[{"name":"paperId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/posts/{username}/{postSlug}":{"delete":{"summary":"Delete a discussion","tags":["discussions"],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"postSlug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/posts/{username}/{postSlug}/comment":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["🔥","🚀","👀","❤️","🤗","😎","➕","🧠","👍","🤝","😔","🤯"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"postSlug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/posts/{username}/{postSlug}/comment/{commentId}/reply":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["🔥","🚀","👀","❤️","🤗","😎","➕","🧠","👍","🤝","😔","🤯"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"postSlug","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}-{id}":{"get":{"summary":"Get a collection","tags":["collections"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","black-forest-labs","cerebras","clarifai","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","hyperbolic","nebius","novita","nscale","nvidia","openai","ovhcloud","publicai","replicate","sambanova","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["_id","author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}}},"description":"The collection data"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"summary":"Update a collection","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991},"private":{"type":"boolean"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"title":{"type":"string","minLength":1,"maxLength":60},"description":{"type":"string","maxLength":150},"gating":{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"]},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"]}},"required":["mode","notifications"]}]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","black-forest-labs","cerebras","clarifai","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","hyperbolic","nebius","novita","nscale","nvidia","openai","ovhcloud","publicai","replicate","sambanova","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["_id","author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}},"description":"The updated collection"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a collection","tags":["collections"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}":{"get":{"summary":"Get a collection","tags":["collections"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","black-forest-labs","cerebras","clarifai","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","hyperbolic","nebius","novita","nscale","nvidia","openai","ovhcloud","publicai","replicate","sambanova","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["_id","author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}}},"description":"The collection data"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"summary":"Update a collection","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991},"private":{"type":"boolean"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"title":{"type":"string","minLength":1,"maxLength":60},"description":{"type":"string","maxLength":150},"gating":{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"]},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"]}},"required":["mode","notifications"]}]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","black-forest-labs","cerebras","clarifai","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","hyperbolic","nebius","novita","nscale","nvidia","openai","ovhcloud","publicai","replicate","sambanova","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["_id","author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}},"description":"The updated collection"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a collection","tags":["collections"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}-{id}/items":{"post":{"description":"Add an item to a collection","summary":"Add item","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"item":{"type":"object","properties":{"type":{"enum":["paper","collection","space","model","dataset","bucket"]},"id":{"type":"string"}},"required":["type","id"]},"note":{"type":"string","maxLength":500}},"required":["item"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","black-forest-labs","cerebras","clarifai","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","hyperbolic","nebius","novita","nscale","nvidia","openai","ovhcloud","publicai","replicate","sambanova","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["_id","author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}}},"description":"The updated collection"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}/items":{"post":{"description":"Add an item to a collection","summary":"Add item","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"item":{"type":"object","properties":{"type":{"enum":["paper","collection","space","model","dataset","bucket"]},"id":{"type":"string"}},"required":["type","id"]},"note":{"type":"string","maxLength":500}},"required":["item"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","black-forest-labs","cerebras","clarifai","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","hyperbolic","nebius","novita","nscale","nvidia","openai","ovhcloud","publicai","replicate","sambanova","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["_id","author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}}},"description":"The updated collection"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}-{id}/items/batch":{"post":{"description":"Batch update items in a collection","summary":"Batch update items","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"action":{"enum":["update"]},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"data":{"type":"object","properties":{"gallery":{"type":"array","items":{"type":"string","format":"uri"}},"note":{"type":"string","maxLength":500},"position":{"type":"integer","minimum":0,"maximum":9007199254740991}}}},"required":["action","_id","data"]}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}/items/batch":{"post":{"description":"Batch update items in a collection","summary":"Batch update items","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"action":{"enum":["update"]},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"data":{"type":"object","properties":{"gallery":{"type":"array","items":{"type":"string","format":"uri"}},"note":{"type":"string","maxLength":500},"position":{"type":"integer","minimum":0,"maximum":9007199254740991}}}},"required":["action","_id","data"]}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}-{id}/items/{itemId}":{"delete":{"description":"Delete an item from a collection","summary":"Delete item","tags":["collections"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}/items/{slug}":{"delete":{"description":"Delete an item from a collection","summary":"Delete item","tags":["collections"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections":{"post":{"summary":"Create a collection","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":60},"description":{"type":"string","maxLength":150},"namespace":{"type":"string"},"item":{"type":"object","properties":{"type":{"enum":["paper","collection","space","model","dataset","bucket"]},"id":{"type":"string"}},"required":["type","id"]},"private":{"description":"If not provided, the collection will be public. This field will respect the organization's visibility setting.","type":"boolean"}},"required":["title","namespace"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","black-forest-labs","cerebras","clarifai","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","hyperbolic","nebius","novita","nscale","nvidia","openai","ovhcloud","publicai","replicate","sambanova","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["_id","author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}}},"description":"The created collection"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"slug":{"type":"string"}},"required":["error"],"additionalProperties":false}}},"description":"The collection already exists"}}},"get":{"summary":"Get collections","tags":["collections"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","black-forest-labs","cerebras","clarifai","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","hyperbolic","nebius","novita","nscale","nvidia","openai","ovhcloud","publicai","replicate","sambanova","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["_id","author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","theme","private","upvotes","isUpvotedByUser","items"],"additionalProperties":false}},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"private":{"type":"boolean"},"upvotes":{"type":"number"},"name":{"type":"string"}},"required":["title","private","upvotes","name"],"additionalProperties":false}}]}}},"description":"The collection data","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"item","in":"query","schema":{"anyOf":[{"type":"array","items":{"type":"string","pattern":"^spaces|models|datasets|papers\\/.*"}},{"type":"string","pattern":"^spaces|models|datasets|papers\\/.*"}]},"required":false},{"name":"owner","in":"query","schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"string"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}]},"required":false},{"name":"q","in":"query","schema":{"type":"string"},"required":false},{"name":"sort","in":"query","schema":{"default":"trending","enum":["upvotes","lastModified","trending"]},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"expand","in":"query","schema":{"default":true},"required":false},{"name":"limit","in":"query","schema":{"default":10,"type":"number","minimum":1,"maximum":10000},"required":false}]}},"/api/jobs/hardware":{"get":{"description":"Get available job hardware","summary":"Get job hardware","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"prettyName":{"type":"string"},"cpu":{"type":"string"},"ram":{"type":"string"},"accelerator":{"anyOf":[{"type":"object","properties":{"type":{"enum":["gpu","neuron"]},"model":{"type":"string"},"quantity":{"type":"string"},"vram":{"type":"string"},"manufacturer":{"enum":["Nvidia","AWS"]}},"required":["type","model","quantity","vram","manufacturer"],"additionalProperties":false},{"type":"null"}]},"unitCostMicroUSD":{"type":"number"},"unitCostUSD":{"type":"number"},"unitLabel":{"type":"string"}},"required":["name","prettyName","cpu","ram","accelerator","unitCostMicroUSD","unitCostUSD","unitLabel"],"additionalProperties":false}}}},"description":"Available job hardware (public only)"}}}},"/api/jobs/{namespace}":{"get":{"description":"List of jobs for an entity","summary":"List jobs","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"retry":{"type":"number"},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}}},"description":"The list of jobs"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"label","in":"query","schema":{"description":"Filter jobs by label. Format: 'key=value' (e.g., 'environment=production').","type":"string"},"required":false}]},"post":{"summary":"Start a job","tags":["jobs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"secrets":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"additionalProperties":{"type":"string"}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"arch":{"enum":["amd64","arm64"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"attempts":{"description":"Max number of attempts to make. For example, if you set this to 3, the job will be retried up to 2 times if it fails.","default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the job container.","minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}}},"required":["flavor"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"retry":{"type":"number"},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job after it has been started"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/count":{"get":{"description":"Count the number of jobs for an entity with optional status stage filter","summary":"Count jobs","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"count":{"type":"number"}},"required":["count"],"additionalProperties":false}}},"description":"The count of jobs matching the filter"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"stage","in":"query","schema":{"anyOf":[{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},{"type":"array","items":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]}}]},"required":false}]}},"/api/jobs/{namespace}/{jobId}":{"get":{"summary":"Get a job","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"retry":{"type":"number"},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/logs":{"get":{"description":"Stream the logs of a job, using SSE","summary":"Stream job logs","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/metrics":{"get":{"description":"Stream the metrics of a job, using SSE","summary":"Stream job metrics","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/events":{"get":{"description":"Stream the events of a job, using SSE","summary":"Stream job events","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/cancel":{"post":{"summary":"Cancel a job","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"retry":{"type":"number"},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job after it has been canceled"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/duplicate":{"post":{"description":"Duplicate an existing job, re-using its spec","summary":"Duplicate a job","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"retry":{"type":"number"},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The new job after it has been duplicated"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}":{"post":{"summary":"Create a scheduled job","tags":["jobs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"secrets":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"additionalProperties":{"type":"string"}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"arch":{"enum":["amd64","arm64"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"attempts":{"description":"Max number of attempts to make. For example, if you set this to 3, the job will be retried up to 2 times if it fails.","default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the job container.","minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}}},"required":["flavor"]},"schedule":{"description":"CRON schedule expression (e.g., '0 9 * * 1' for 9 AM every Monday).","type":"string","pattern":"^(?:(@(annually|yearly|monthly|weekly|daily|hourly))|((((\\d+,)+\\d+|((\\*|\\d+)(\\/|-)\\d+)|\\d+|\\*) ?){5,7}))$"},"suspend":{"description":"Whether the scheduled job is suspended (paused)","default":false,"type":"boolean"},"concurrency":{"description":"Whether multiple instances of this job can run concurrently","default":false,"type":"boolean"}},"required":["jobSpec","schedule"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"schedule":{"type":"string"},"suspend":{"type":"boolean"},"suspendReason":{"type":"string"},"concurrency":{"type":"boolean"},"status":{"type":"object","properties":{"lastJob":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","at"],"additionalProperties":false},{"type":"null"}]},"nextJobRunAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["lastJob","nextJobRunAt"],"additionalProperties":false},"type":{"const":"scheduled-job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"initiator":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"retry":{"type":"number"},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["environment","flavor"],"additionalProperties":false}},"required":["id","createdAt","schedule","suspend","concurrency","status","type","owner","jobSpec"],"additionalProperties":false}}},"description":"The scheduled job data"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"description":"List scheduled jobs for an entity","summary":"List scheduled jobs","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"schedule":{"type":"string"},"suspend":{"type":"boolean"},"suspendReason":{"type":"string"},"concurrency":{"type":"boolean"},"status":{"type":"object","properties":{"lastJob":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","at"],"additionalProperties":false},{"type":"null"}]},"nextJobRunAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["lastJob","nextJobRunAt"],"additionalProperties":false},"type":{"const":"scheduled-job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"initiator":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"retry":{"type":"number"},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["environment","flavor"],"additionalProperties":false}},"required":["id","createdAt","schedule","suspend","concurrency","status","type","owner","jobSpec"],"additionalProperties":false}}}},"description":"Array of scheduled job data"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"label","in":"query","schema":{"description":"Filter scheduled jobs by label. Format: 'key=value' (e.g., 'environment=production').","type":"string"},"required":false}]}},"/api/scheduled-jobs/{namespace}/{jobId}":{"get":{"summary":"Get a scheduled job","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"schedule":{"type":"string"},"suspend":{"type":"boolean"},"suspendReason":{"type":"string"},"concurrency":{"type":"boolean"},"status":{"type":"object","properties":{"lastJob":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","at"],"additionalProperties":false},{"type":"null"}]},"nextJobRunAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["lastJob","nextJobRunAt"],"additionalProperties":false},"type":{"const":"scheduled-job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"initiator":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"retry":{"type":"number"},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["environment","flavor"],"additionalProperties":false}},"required":["id","createdAt","schedule","suspend","concurrency","status","type","owner","jobSpec"],"additionalProperties":false}}},"description":"The scheduled job data"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a scheduled job","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}/{jobId}/suspend":{"post":{"summary":"Suspend a scheduled job","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}/{jobId}/resume":{"post":{"summary":"Resume a scheduled job","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}/{jobId}/run":{"post":{"description":"Trigger a scheduled job run. Trigger a scheduled job to run immediately. Throws an error if an instance is already running and job spec does not allow concurrent runs.","summary":"Run job","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"retry":{"type":"number"},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job that was triggered"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"const":"Another job is already running at the same time, set `concurrency` to allow multiple instances of scheduled jobs to run concurrently"}},"required":["error"],"additionalProperties":false}}},"description":"Another instance is already running, job was not triggered"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}/{jobId}/schedule":{"post":{"summary":"Update a scheduled job schedule","tags":["jobs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schedule":{"description":"CRON schedule expression (e.g., '0 9 * * 1' for 9 AM every Monday).","type":"string","pattern":"^(?:(@(annually|yearly|monthly|weekly|daily|hourly))|((((\\d+,)+\\d+|((\\*|\\d+)(\\/|-)\\d+)|\\d+|\\*) ?){5,7}))$"}},"required":["schedule"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"schedule":{"type":"string"},"suspend":{"type":"boolean"},"suspendReason":{"type":"string"},"concurrency":{"type":"boolean"},"status":{"type":"object","properties":{"lastJob":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","at"],"additionalProperties":false},{"type":"null"}]},"nextJobRunAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["lastJob","nextJobRunAt"],"additionalProperties":false},"type":{"const":"scheduled-job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"initiator":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","inf2x6"]},"retry":{"type":"number"},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["environment","flavor"],"additionalProperties":false}},"required":["id","createdAt","schedule","suspend","concurrency","status","type","owner","jobSpec"],"additionalProperties":false}}},"description":"The updated scheduled job"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}}}}