update api defination

This commit is contained in:
Clas Wen 2025-11-23 16:03:37 +08:00
parent 3c3ebe66e9
commit 450d339237

View file

@ -298,6 +298,24 @@ export interface paths {
patch: operations["alter-commit-event"]
trace?: never
}
"/member/notification-preferences": {
parameters: {
query?: never
header?: never
path?: never
cookie?: never
}
/** Get member notification preferences */
get: operations["get-notification-preferences"]
/** Update member notification preferences */
put: operations["update-notification-preferences"]
post?: never
delete?: never
options?: never
head?: never
patch?: never
trace?: never
}
"/member/token/logto": {
parameters: {
query?: never
@ -403,24 +421,6 @@ export interface paths {
patch?: never
trace?: never
}
"/notification-preferences": {
parameters: {
query?: never
header?: never
path?: never
cookie?: never
}
/** Get notification preferences */
get: operations["get-notification-preferences"]
/** Update notification preferences */
put: operations["update-notification-preferences"]
post?: never
delete?: never
options?: never
head?: never
patch?: never
trace?: never
}
"/ping": {
parameters: {
query?: never
@ -565,6 +565,7 @@ export interface components {
logtoId: string
memberId: string
name: string
notificationPreferences: components["schemas"]["NotificationPreferences"]
phone: string
profile: string
qq: string
@ -655,6 +656,10 @@ export interface components {
logId: number
memberId: string
}
"Item": {
enabled: boolean
notificationType: string
}
"Member": {
/**
* Format: uri
@ -671,34 +676,28 @@ export interface components {
logtoId: string
memberId: string
name: string
notificationPreferences: components["schemas"]["NotificationPreferences"]
phone: string
profile: string
qq: string
role: string
section: string
}
"NotificationPreferenceItem": {
description: string
enabled: boolean
notificationType: string
}
"NotificationPreferences": {
event_assigned_to_me: boolean
event_status_changed: boolean
new_event_created: boolean
}
"NullInt64": {
/** Format: int64 */
Int64: number
Valid: boolean
}
"NotificationPreferenceItem": {
/**
* @description Description of the notification type
* @example
*/
description: string
/**
* @description Whether this notification type is enabled
* @example true
*/
enabled: boolean
/**
* @description Notification type identifier
* @example new_event_created
*/
notificationType: string
}
"PingResponse": {
/**
* Format: uri
@ -767,29 +766,6 @@ export interface components {
qq?: string
size?: string
}
"UpdateNotificationPreferencesInputBody": {
/**
* Format: uri
* @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/UpdateNotificationPreferencesInputBody.json
*/
readonly $schema?: string
/**
* @description Enable/disable notifications for events assigned to me
* @example true
*/
event_assigned_to_me: boolean
/**
* @description Enable/disable notifications for event status changes
* @example true
*/
event_status_changed: boolean
/**
* @description Enable/disable notifications for new events created
* @example true
*/
new_event_created: boolean
}
"UpdateMemberAvatarInputBody": {
/**
* Format: uri
@ -827,6 +803,15 @@ export interface components {
profile: string
qq: string
}
"UpdateNotificationPreferencesInputBody": {
/**
* Format: uri
* @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/UpdateNotificationPreferencesInputBody.json
*/
readonly $schema?: string
preferences: components["schemas"]["Item"][] | null
}
}
responses: never
parameters: never
@ -1772,6 +1757,84 @@ export interface operations {
}
}
}
"get-notification-preferences": {
parameters: {
query?: never
header?: {
/** @description Bearer token or JWT token */
Authorization?: string
}
path?: never
cookie?: never
}
requestBody?: never
responses: {
/** @description OK */
200: {
headers: {
"X-Limit"?: number | null
"X-Offset"?: number | null
"X-Page"?: number | null
"X-Total-Count"?: number | null
"X-Total-Pages"?: number | null
[name: string]: unknown
}
content: {
"application/json": components["schemas"]["NotificationPreferenceItem"][] | null
}
}
/** @description Error */
default: {
headers: {
[name: string]: unknown
}
content: {
"application/problem+json": components["schemas"]["ErrorModel"]
}
}
}
}
"update-notification-preferences": {
parameters: {
query?: never
header?: {
/** @description Bearer token or JWT token */
Authorization?: string
}
path?: never
cookie?: never
}
requestBody: {
content: {
"application/json": components["schemas"]["UpdateNotificationPreferencesInputBody"]
}
}
responses: {
/** @description OK */
200: {
headers: {
"X-Limit"?: number | null
"X-Offset"?: number | null
"X-Page"?: number | null
"X-Total-Count"?: number | null
"X-Total-Pages"?: number | null
[name: string]: unknown
}
content: {
"application/json": string
}
}
/** @description Error */
default: {
headers: {
[name: string]: unknown
}
content: {
"application/problem+json": components["schemas"]["ErrorModel"]
}
}
}
}
"create-token-via-logto-token": {
parameters: {
query?: never
@ -2166,84 +2229,6 @@ export interface operations {
}
}
}
"get-notification-preferences": {
parameters: {
query?: never
header?: {
/** @description Bearer token or JWT token */
Authorization?: string
}
path?: never
cookie?: never
}
requestBody?: never
responses: {
/** @description OK */
200: {
headers: {
"X-Limit"?: number | null
"X-Offset"?: number | null
"X-Page"?: number | null
"X-Total-Count"?: number | null
"X-Total-Pages"?: number | null
[name: string]: unknown
}
content: {
"application/json": components["schemas"]["NotificationPreferenceItem"][] | null
}
}
/** @description Error */
default: {
headers: {
[name: string]: unknown
}
content: {
"application/problem+json": components["schemas"]["ErrorModel"]
}
}
}
}
"update-notification-preferences": {
parameters: {
query?: never
header?: {
/** @description Bearer token or JWT token */
Authorization?: string
}
path?: never
cookie?: never
}
requestBody: {
content: {
"application/json": components["schemas"]["UpdateNotificationPreferencesInputBody"]
}
}
responses: {
/** @description OK */
200: {
headers: {
"X-Limit"?: number | null
"X-Offset"?: number | null
"X-Page"?: number | null
"X-Total-Count"?: number | null
"X-Total-Pages"?: number | null
[name: string]: unknown
}
content: {
"application/json": string
}
}
/** @description Error */
default: {
headers: {
[name: string]: unknown
}
content: {
"application/problem+json": components["schemas"]["ErrorModel"]
}
}
}
}
"ping": {
parameters: {
query?: never