Code Inbox
emits.js 199 lines
Files · 8
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199export const emits = [
{
name: "thread-received",
description: "A new notification thread was received in the inbox.",
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",
"unread",
"updated_at",
"url",
],
additionalProperties: false,
},
},
{
name: "thread-updated",
description:
"A notification thread received new activity or a changed reason.",
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",
"unread",
"updated_at",
"url",
],
additionalProperties: false,
},
},
{
name: "thread-read",
description: "A notification thread was marked read.",
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.",
},
subject_title: {
type: "string",
description: "subject.title: notification discussion title.",
},
last_read_at: {
type: ["string", "null"],
description: "ISO 8601 last-read timestamp, or null when never read.",
},
unread: {
type: "integer",
description:
"Whether the thread is unread. Stored as SQLite 0=false, 1=true.",
enum: [0, 1],
const: 0,
},
},
required: ["id", "subject_title", "unread", "last_read_at"],
additionalProperties: false,
},
},
];