Code Inbox
listens.js 82 lines
Files · 8
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182export const listens = [
{
name: "receive-thread",
description:
"Import a previously absent notification thread. Preserve its source string ID, reason, and API URLs.",
schema: {
type: "object",
properties: {
id: {
type: "string",
description:
"Opaque notification thread ID, retained as text even when it contains only digits.",
},
repository_full_name: {
type: "string",
description:
"repository.full_name, including owner and repository separated by slash.",
},
repository_html_url: {
type: ["string", "null"],
description: "repository.html_url: browser URL for the repository.",
},
subject_title: {
type: "string",
description: "subject.title: notification discussion title.",
},
subject_type: {
type: "string",
description:
"subject.type, e.g. Issue, PullRequest, Commit or Release.",
},
subject_url: {
type: ["string", "null"],
description:
"subject.url: API URL for the subject, not necessarily a browser URL.",
},
subject_latest_comment_url: {
type: ["string", "null"],
description:
"subject.latest_comment_url: API URL of the latest comment, or null.",
},
reason: {
type: "string",
description:
"Notification reason, e.g. mention, review_requested, assign or subscribed; this is not subject_type.",
},
unread: {
type: "integer",
description:
"Whether the thread is unread. Stored as SQLite 0=false, 1=true.",
enum: [0, 1],
},
updated_at: {
type: "string",
description: "ISO 8601 thread update timestamp.",
},
last_read_at: {
type: ["string", "null"],
description: "ISO 8601 last-read timestamp, or null when never read.",
},
url: {
type: "string",
description: "API URL for this notification thread.",
},
subscription_url: {
type: ["string", "null"],
description: "API URL for the thread subscription.",
},
},
required: [
"id",
"repository_full_name",
"subject_title",
"subject_type",
"reason",
"updated_at",
"url",
],
additionalProperties: false,
},
},
];