openapi: 3.1.0 info: title: Hub API Endpoints agentic-provisioning discussions API 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! The 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). If you''re an Agent, you might prefer the [markdown version OpenAPI spec](https://huggingface.co/.well-known/openapi.md). ' servers: - url: https://huggingface.co description: Hub security: - bearerAuth: [] tags: - name: discussions x-displayName: Discussions description: The following endpoints manage discussions. paths: /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 - no_access - 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 - Low Quality 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 - no_access - 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 - no_access - 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 - Low Quality 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 - no_access - 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 - no_access - 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 - Low Quality 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 - no_access - 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 - no_access - 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 - Low Quality 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 - no_access - 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/{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 - no_access - 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 - no_access - 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 - no_access - 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 - Low Quality 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 - no_access - 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 - no_access - 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 - no_access - 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 - no_access - 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 - no_access - 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 - no_access - 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 - no_access - 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 - no_access - 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 - no_access - 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 - no_access - 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 - Low Quality 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 - no_access - 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 - no_access - 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 - no_access - 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 - no_access - 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 - no_access - 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 - no_access - 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 - no_access - 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 - no_access - 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 - no_access - 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 - Low Quality 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 - no_access - 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 - no_access - 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 - no_access - 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/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 - no_access - 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 - Low Quality 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 - no_access - 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 - no_access - 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 - Low Quality 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 - no_access - 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/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 - no_access - 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 - Low Quality 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 - no_access - 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 - no_access - 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 - Low Quality 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 - no_access - 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 components: 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 securitySchemes: bearerAuth: type: http scheme: bearer