schemas
schemas: {
AddScopeMemberRequest: { githubLogin: string };
Authorization: {
code: string;
expiresAt: string;
permissions: (
| { permission: "package/publish"; scope: string }
| { package: string; permission: "package/publish"; scope: string }
| {
package: string;
permission: "package/publish";
scope: string;
tarballHash: string;
version: string;
}
)[];
};
AuthorizationExchangeRequest: { exchangeToken: string; verifier: string };
AuthorizationExchangeResponse: {
token: string;
user: {
avatarUrl: string;
createdAt: string;
email?: string;
githubId?: number;
id: string;
inviteCount?: number;
isBlocked?: boolean;
isStaff?: boolean;
name: string;
scopeLimit?: number;
scopeUsage?: number;
updatedAt: string;
};
};
CreateAuthorizationRequest: {
challenge: string;
permissions?: (
| { permission: "package/publish"; scope: string }
| { package: string; permission: "package/publish"; scope: string }
| {
package: string;
permission: "package/publish";
scope: string;
tarballHash: string;
version: string;
}
)[];
};
CreateAuthorizationResponse: {
code: string;
exchangeToken: string;
expiresAt: string;
pollInterval: number;
verificationUrl?: string;
};
CreatePackageRequest: { package: string };
CreateScopeRequest: { scope?: string };
Dependency: {
constraint: string;
kind: "jsr" | "npm";
name: string;
path: string;
};
Dependent: {
name: string;
scope: string;
totalVersions: number;
versions?: string[];
};
Error: { code: string; message: string };
GitHubRepository: { name?: string; owner?: string };
Package: {
createdAt: string;
description: string;
githubRepository?: { name?: string; owner?: string };
name: string;
runtimeCompat?: {
browser?: null | boolean;
bun?: null | boolean;
deno?: null | boolean;
node?: null | boolean;
workerd?: null | boolean;
};
scope: string;
score?: number;
updatedAt: string;
};
PackageName: string;
PackageScore: {
allEntrypointsDocs: boolean;
allFastCheck: boolean;
atLeastOneRuntimeCompatible: boolean;
hasDescription: boolean;
hasProvenance: boolean;
hasReadme: boolean;
hasReadmeExamples: boolean;
multipleRuntimesCompatible: boolean;
percentageDocumentedSymbols: number;
total?: number;
};
PackageVersion: {
createdAt: string;
package?: string;
rekorLogId?: string;
scope: string;
updatedAt: string;
version: string;
yanked: boolean;
};
Permission: | { permission: "package/publish"; scope: string }
| { package: string; permission: "package/publish"; scope: string }
| {
package: string;
permission: "package/publish";
scope: string;
tarballHash: string;
version: string;
};
PublishingTask: {
createdAt: string;
error: null
| { code?: string; message?: string };
id: string;
packageName: string;
packageScope: string;
packageVersion: string;
status: "pending" | "processing" | "processed" | "success" | "failure";
updatedAt: string;
userId: never;
};
RuntimeCompat: {
browser?: null
| boolean;
bun?: null | boolean;
deno?: null | boolean;
node?: null | boolean;
workerd?: null | boolean;
};
Scope: {
createdAt: string;
creator?: {
avatarUrl: string;
createdAt: string;
email?: string;
githubId?: number;
id: string;
inviteCount?: number;
isBlocked?: boolean;
isStaff?: boolean;
name: string;
scopeLimit?: number;
scopeUsage?: number;
updatedAt: string;
};
ghActionsVerifyActor?: boolean;
quotas?: {
newPackagePerWeekLimit?: number;
newPackagePerWeekUsage?: number;
packageLimit?: number;
packageUsage?: number;
publishAttemptsPerWeekLimit?: number;
publishAttemptsPerWeekUsage?: number;
};
requirePublishingFromCI?: boolean;
scope: string;
updatedAt: string;
};
ScopeInvite: {
createdAt: string;
inviter: {
avatarUrl: string;
createdAt: string;
email?: string;
githubId?: number;
id: string;
inviteCount?: number;
isBlocked?: boolean;
isStaff?: boolean;
name: string;
scopeLimit?: number;
scopeUsage?: number;
updatedAt: string;
};
scope: string;
targetUser: {
avatarUrl: string;
createdAt: string;
email?: string;
githubId?: number;
id: string;
inviteCount?: number;
isBlocked?: boolean;
isStaff?: boolean;
name: string;
scopeLimit?: number;
scopeUsage?: number;
updatedAt: string;
};
updatedAt: string;
};
ScopeMember: {
createdAt: string;
isAdmin: boolean;
scope: string;
updatedAt: string;
user: {
avatarUrl: string;
createdAt: string;
email?: string;
githubId?: number;
id: string;
inviteCount?: number;
isBlocked?: boolean;
isStaff?: boolean;
name: string;
scopeLimit?: number;
scopeUsage?: number;
updatedAt: string;
};
};
ScopeName: string;
Stats: {
featured: {
createdAt: string;
description: string;
githubRepository?: { name?: string; owner?: string };
name: string;
runtimeCompat?: {
browser?: null | boolean;
bun?: null | boolean;
deno?: null | boolean;
node?: null | boolean;
workerd?: null | boolean;
};
scope: string;
score?: number;
updatedAt: string;
}[];
newest: {
createdAt: string;
description: string;
githubRepository?: { name?: string; owner?: string };
name: string;
runtimeCompat?: {
browser?: null | boolean;
bun?: null | boolean;
deno?: null | boolean;
node?: null | boolean;
workerd?: null | boolean;
};
scope: string;
score?: number;
updatedAt: string;
}[];
updated: {
createdAt: string;
package?: string;
rekorLogId?: string;
scope: string;
updatedAt: string;
version: string;
yanked: boolean;
}[];
};
UpdatePackageRequest: | { description: string }
| { githubRepository: null | { owner: string; repo: string } }
| {
runtimeCompat: {
browser?: null | boolean;
bun?: null | boolean;
deno?: null | boolean;
node?: null | boolean;
workerd?: null | boolean;
};
}
| { isArchived: boolean };
UpdatePackageVersionRequest: { yanked: boolean };
UpdateScopeMemberRequest: { isAdmin: boolean };
UpdateScopeRequest:
| { ghActionsVerifyActor: boolean }
| { requirePublishingFromCI: boolean };
User: {
avatarUrl: string;
createdAt: string;
email?: string;
githubId?: number;
id: string;
inviteCount?: number;
isBlocked?: boolean;
isStaff?: boolean;
name: string;
scopeLimit?: number;
scopeUsage?: number;
updatedAt: string;
};
UserId: string;
Version: string;
}
Description
The GitHub login of the user to add to the scope.
Example