refactor: noteのjson-schemaの型を改善
This commit is contained in:
parent
c81934563a
commit
ad846c33d9
|
@ -154,6 +154,11 @@ export const packedNoteSchema = {
|
||||||
emojis: {
|
emojis: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
optional: true, nullable: false,
|
optional: true, nullable: false,
|
||||||
|
additionalProperties: {
|
||||||
|
anyOf: [{
|
||||||
|
type: 'string',
|
||||||
|
}],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
channelId: {
|
channelId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
@ -199,9 +204,23 @@ export const packedNoteSchema = {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
optional: false, nullable: true,
|
optional: false, nullable: true,
|
||||||
},
|
},
|
||||||
|
reactionEmojis: {
|
||||||
|
type: 'object',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
additionalProperties: {
|
||||||
|
anyOf: [{
|
||||||
|
type: 'string',
|
||||||
|
}],
|
||||||
|
},
|
||||||
|
},
|
||||||
reactions: {
|
reactions: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
|
additionalProperties: {
|
||||||
|
anyOf: [{
|
||||||
|
type: 'number',
|
||||||
|
}],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
renoteCount: {
|
renoteCount: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
|
@ -233,7 +252,7 @@ export const packedNoteSchema = {
|
||||||
},
|
},
|
||||||
|
|
||||||
myReaction: {
|
myReaction: {
|
||||||
type: 'object',
|
type: 'string',
|
||||||
optional: true, nullable: true,
|
optional: true, nullable: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* version: 2023.12.2
|
* version: 2023.12.2
|
||||||
* generatedAt: 2024-01-08T13:32:03.180Z
|
* generatedAt: 2024-01-08T14:11:08.390Z
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { SwitchCaseResponseType } from '../api.js';
|
import type { SwitchCaseResponseType } from '../api.js';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* version: 2023.12.2
|
* version: 2023.12.2
|
||||||
* generatedAt: 2024-01-08T13:32:03.177Z
|
* generatedAt: 2024-01-08T14:11:08.386Z
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* version: 2023.12.2
|
* version: 2023.12.2
|
||||||
* generatedAt: 2024-01-08T13:32:03.174Z
|
* generatedAt: 2024-01-08T14:11:08.384Z
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { operations } from './types.js';
|
import { operations } from './types.js';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* version: 2023.12.2
|
* version: 2023.12.2
|
||||||
* generatedAt: 2024-01-08T13:32:03.173Z
|
* generatedAt: 2024-01-08T14:11:08.383Z
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { components } from './types.js';
|
import { components } from './types.js';
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* version: 2023.12.2
|
* version: 2023.12.2
|
||||||
* generatedAt: 2024-01-08T13:32:03.048Z
|
* generatedAt: 2024-01-08T14:11:08.253Z
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3801,7 +3801,9 @@ export type components = {
|
||||||
votes: number;
|
votes: number;
|
||||||
}[];
|
}[];
|
||||||
}) | null;
|
}) | null;
|
||||||
emojis?: Record<string, never>;
|
emojis?: {
|
||||||
|
[key: string]: string;
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* Format: id
|
* Format: id
|
||||||
* @example xxxxxxxxxx
|
* @example xxxxxxxxxx
|
||||||
|
@ -3817,14 +3819,19 @@ export type components = {
|
||||||
}) | null;
|
}) | null;
|
||||||
localOnly?: boolean;
|
localOnly?: boolean;
|
||||||
reactionAcceptance: string | null;
|
reactionAcceptance: string | null;
|
||||||
reactions: Record<string, never>;
|
reactionEmojis: {
|
||||||
|
[key: string]: string;
|
||||||
|
};
|
||||||
|
reactions: {
|
||||||
|
[key: string]: number;
|
||||||
|
};
|
||||||
renoteCount: number;
|
renoteCount: number;
|
||||||
repliesCount: number;
|
repliesCount: number;
|
||||||
uri?: string;
|
uri?: string;
|
||||||
url?: string;
|
url?: string;
|
||||||
reactionAndUserPairCache?: string[];
|
reactionAndUserPairCache?: string[];
|
||||||
clippedCount?: number;
|
clippedCount?: number;
|
||||||
myReaction?: Record<string, unknown> | null;
|
myReaction?: string | null;
|
||||||
};
|
};
|
||||||
NoteReaction: {
|
NoteReaction: {
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue