Download OpenAPI specification:Download
Creates a new scope
OK
Invalid request
Unauthorized
{- "scope": "denoland"
}
{- "scope": "denoland",
- "creator": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "quotas": {
- "packageUsage": 3,
- "packageLimit": 10,
- "newPackagePerWeekUsage": 1,
- "newPackagePerWeekLimit": 5,
- "publishAttemptsPerWeekUsage": 1,
- "publishAttemptsPerWeekLimit": 5
}, - "ghActionsVerifyActor": true,
- "requirePublishingFromCI": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Returns details of a scope
OK
Invalid request
Unauthorized
Scope not found
{- "scope": "denoland",
- "creator": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "quotas": {
- "packageUsage": 3,
- "packageLimit": 10,
- "newPackagePerWeekUsage": 1,
- "newPackagePerWeekLimit": 5,
- "publishAttemptsPerWeekUsage": 1,
- "publishAttemptsPerWeekLimit": 5
}, - "ghActionsVerifyActor": true,
- "requirePublishingFromCI": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Updates the details of a scope
Scope properties
OK
Invalid request
Unauthorized
User is not scope admin
Scope not found
{- "requirePublishingFromCI": true
}
{- "scope": "denoland",
- "creator": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "quotas": {
- "packageUsage": 3,
- "packageLimit": 10,
- "newPackagePerWeekUsage": 1,
- "newPackagePerWeekLimit": 5,
- "publishAttemptsPerWeekUsage": 1,
- "publishAttemptsPerWeekLimit": 5
}, - "ghActionsVerifyActor": true,
- "requirePublishingFromCI": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Deletes a scope if the scope has no packages
OK, no content
Invalid request / Scope has packages
Unauthorized
User is not scope admin
Scope not found
{- "code": "string",
- "message": "string"
}
Returns a list of members of a scope
OK
Invalid request
Unauthorized
Scope not found
[- {
- "scope": "denoland",
- "user": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "isAdmin": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
Invites a user to a scope
OK
Invalid request
Unauthorized
User is not scope admin
Scope not found
{- "githubLogin": "ry"
}
{- "scope": "denoland",
- "targetUser": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "inviter": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Updates the roles of a scope member
Scope member properties
OK
Invalid request / Can not remove last scope admin
Unauthorized
User is not a scope admin
Scope or scope member not found
{- "isAdmin": true
}
{- "scope": "denoland",
- "user": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "isAdmin": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Removes a member from a scope
OK, no content
Invalid request / Can not remove last scope admin
Unauthorized
User is not a scope admin
Scope or scope member not found
{- "code": "string",
- "message": "string"
}
Returns a list of invites to a scope
OK
Unauthorized
User is not a scope admin
Scope not found
[- {
- "scope": "denoland",
- "targetUser": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "inviter": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
Deletes an invite to a scope
OK, no content
Unauthorized
User is not a scope admin
Scope or scope invite not found
{- "code": "string",
- "message": "string"
}
Returns a list of packages
OK
Invalid request
{- "items": [
- {
- "scope": "denoland",
- "name": "fmt",
- "description": "A module for formatting strings.",
- "runtimeCompat": {
- "browser": true,
- "deno": true,
- "node": true,
- "workerd": true,
- "bun": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "githubRepository": {
- "owner": "denoland",
- "name": "deno"
}, - "score": 0
}
], - "total": 0
}
Returns a list of packages in a scope
OK
Invalid request
Scope not found
{- "items": [
- {
- "scope": "denoland",
- "name": "fmt",
- "description": "A module for formatting strings.",
- "runtimeCompat": {
- "browser": true,
- "deno": true,
- "node": true,
- "workerd": true,
- "bun": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "githubRepository": {
- "owner": "denoland",
- "name": "deno"
}, - "score": 0
}
], - "total": 0
}
Creates a new package in a scope
OK
Invalid request
Unauthorized
User is not a scope member
Scope not found
{- "package": "fmt"
}
{- "scope": "denoland",
- "name": "fmt",
- "description": "A module for formatting strings.",
- "runtimeCompat": {
- "browser": true,
- "deno": true,
- "node": true,
- "workerd": true,
- "bun": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "githubRepository": {
- "owner": "denoland",
- "name": "deno"
}, - "score": 0
}
Returns details of a package
OK
Invalid request
Package not found
{- "scope": "denoland",
- "name": "fmt",
- "description": "A module for formatting strings.",
- "runtimeCompat": {
- "browser": true,
- "deno": true,
- "node": true,
- "workerd": true,
- "bun": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "githubRepository": {
- "owner": "denoland",
- "name": "deno"
}, - "score": 0
}
Updates the details of a package
Package properties
OK
Invalid request
Unauthorized
User is not a scope member / User is not a scope admin
Package not found
{- "runtimeCompat": {
- "browser": true,
- "deno": true,
- "node": true,
- "workerd": true,
- "bun": true
}
}
{- "scope": "denoland",
- "name": "fmt",
- "description": "A module for formatting strings.",
- "runtimeCompat": {
- "browser": true,
- "deno": true,
- "node": true,
- "workerd": true,
- "bun": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "githubRepository": {
- "owner": "denoland",
- "name": "deno"
}, - "score": 0
}
Deletes a package if the package has no versions
OK, no content
Invalid request / Package has versions
Unauthorized
User is not a scope admin
Package not found
{- "code": "string",
- "message": "string"
}
Returns a list of packages that depend on a package
OK
Invalid request
Package not found
{- "items": [
- {
- "scope": "denoland",
- "name": "fmt",
- "versions": [
- "1.2.3"
], - "totalVersions": 0
}
], - "total": 0
}
Returns the package score details
OK
Invalid request
Package not found
{- "hasReadme": true,
- "hasReadmeExamples": true,
- "allEntrypointsDocs": true,
- "percentageDocumentedSymbols": 0,
- "allFastCheck": true,
- "hasProvenance": true,
- "hasDescription": true,
- "atLeastOneRuntimeCompatible": true,
- "multipleRuntimesCompatible": true,
- "total": 0
}
Returns a list of versions of a package
OK
Invalid request
Package not found
[- {
- "scope": "denoland",
- "package": "fmt",
- "version": "1.2.3",
- "yanked": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "rekorLogId": "string"
}
]
Returns details of a package version
OK
Invalid request
Package version not found
{- "scope": "denoland",
- "package": "fmt",
- "version": "1.2.3",
- "yanked": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "rekorLogId": "string"
}
Creates a new version of a package
A gzipped tarball containing all files in the package version
OK
Invalid request / Package version already exists
Unauthorized / User is not a scope member
User is not a scope member
Package not found
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "pending",
- "error": {
- "code": "string",
- "message": "string"
}, - "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "packageScope": "denoland",
- "packageName": "fmt",
- "packageVersion": "1.2.3",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Updates the details of a package version
Package version properties
OK
Invalid request / Package version already exists
Unauthorized / User is not a scope member
User is not a scope member
Package not found
{- "yanked": true
}
{- "scope": "denoland",
- "package": "fmt",
- "version": "1.2.3",
- "yanked": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "rekorLogId": "string"
}
Returns a list of dependencies of a package
OK
Invalid request
Package not found
[- {
- "kind": "jsr",
- "name": "@std/fs",
- "constraint": "^0.50.0",
- "path": "/exists"
}
]
Returns details of the authenticated user
OK
Unauthorized
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Returns a list of scopes that the authenticated user is a member of
OK
Unauthorized
[- {
- "scope": "denoland",
- "creator": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "quotas": {
- "packageUsage": 3,
- "packageLimit": 10,
- "newPackagePerWeekUsage": 1,
- "newPackagePerWeekLimit": 5,
- "publishAttemptsPerWeekUsage": 1,
- "publishAttemptsPerWeekLimit": 5
}, - "ghActionsVerifyActor": true,
- "requirePublishingFromCI": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
Returns details of the authenticated user's membership of a scope
OK
Unauthorized
{- "scope": "denoland",
- "user": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "isAdmin": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Returns a list of invites to scopes that the authenticated user has received
OK
Unauthorized
[- {
- "scope": "denoland",
- "targetUser": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "inviter": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
Accepts an invite to a scope
OK
Unauthorized
Scope invite not found
{- "scope": "denoland",
- "user": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "isAdmin": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Returns a list of scopes that a user is a member of
OK
User not found
[- {
- "scope": "denoland",
- "creator": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "quotas": {
- "packageUsage": 3,
- "packageLimit": 10,
- "newPackagePerWeekUsage": 1,
- "newPackagePerWeekLimit": 5,
- "publishAttemptsPerWeekUsage": 1,
- "publishAttemptsPerWeekLimit": 5
}, - "ghActionsVerifyActor": true,
- "requirePublishingFromCI": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
Starts an authorization flow
OK
Invalid request
{- "challenge": "1234567890abcdef",
- "permissions": [
- {
- "permission": "package/publish",
- "scope": "denoland"
}
]
}
{- "verificationUrl": "string",
- "code": "string",
- "exchangeToken": "string",
- "pollInterval": 0,
- "expiresAt": "2019-08-24T14:15:22Z"
}
Returns details of an authorization
OK
Authorization not found
{- "code": "string",
- "permissions": [
- {
- "permission": "package/publish",
- "scope": "denoland"
}
], - "expiresAt": "2019-08-24T14:15:22Z"
}
Exchanges an authorization code for an access token
OK
Invalid request
{- "exchangeToken": "string",
- "verifier": "string"
}
{- "token": "string",
- "user": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Ryan Dahl",
- "email": "ry@example.com",
- "githubId": 80,
- "isBlocked": true,
- "isStaff": true,
- "scopeUsage": 3,
- "scopeLimit": 10,
- "inviteCount": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
Returns details of a publishing task
OK
Publishing task not found
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "pending",
- "error": {
- "code": "string",
- "message": "string"
}, - "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "packageScope": "denoland",
- "packageName": "fmt",
- "packageVersion": "1.2.3",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
{- "newest": [
- {
- "scope": "denoland",
- "name": "fmt",
- "description": "A module for formatting strings.",
- "runtimeCompat": {
- "browser": true,
- "deno": true,
- "node": true,
- "workerd": true,
- "bun": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "githubRepository": {
- "owner": "denoland",
- "name": "deno"
}, - "score": 0
}
], - "updated": [
- {
- "scope": "denoland",
- "package": "fmt",
- "version": "1.2.3",
- "yanked": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "rekorLogId": "string"
}
], - "featured": [
- {
- "scope": "denoland",
- "name": "fmt",
- "description": "A module for formatting strings.",
- "runtimeCompat": {
- "browser": true,
- "deno": true,
- "node": true,
- "workerd": true,
- "bun": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "githubRepository": {
- "owner": "denoland",
- "name": "deno"
}, - "score": 0
}
]
}