refactor: pageBlockTypesをjson-schemaに移植

This commit is contained in:
yukineko 2024-01-03 23:59:29 +09:00
parent 6e99fd5224
commit 02b9c7aecc
14 changed files with 152 additions and 54 deletions

View file

@ -1,6 +1,6 @@
/*
* version: 2023.12.2
* generatedAt: 2024-01-03T10:08:26.060Z
* generatedAt: 2024-01-03T14:50:11.647Z
*/
import type { SwitchCaseResponseType } from '../api.js';

View file

@ -1,6 +1,6 @@
/*
* version: 2023.12.2
* generatedAt: 2024-01-03T10:08:26.055Z
* generatedAt: 2024-01-03T14:50:11.643Z
*/
import type {

View file

@ -1,6 +1,6 @@
/*
* version: 2023.12.2
* generatedAt: 2024-01-03T10:08:26.052Z
* generatedAt: 2024-01-03T14:50:11.639Z
*/
import { operations } from './types.js';

View file

@ -1,6 +1,6 @@
/*
* version: 2023.12.2
* generatedAt: 2024-01-03T10:08:26.049Z
* generatedAt: 2024-01-03T14:50:11.637Z
*/
import { components } from './types.js';
@ -29,6 +29,7 @@ export type Blocking = components['schemas']['Blocking'];
export type Hashtag = components['schemas']['Hashtag'];
export type InviteCode = components['schemas']['InviteCode'];
export type Page = components['schemas']['Page'];
export type PageBlock = components['schemas']['PageBlock'];
export type Channel = components['schemas']['Channel'];
export type QueueCount = components['schemas']['QueueCount'];
export type Antenna = components['schemas']['Antenna'];

View file

@ -3,7 +3,7 @@
/*
* version: 2023.12.2
* generatedAt: 2024-01-03T10:08:25.920Z
* generatedAt: 2024-01-03T14:50:11.515Z
*/
/**
@ -4012,7 +4012,7 @@ export type components = {
/** Format: id */
userId: string;
user: components['schemas']['UserLite'];
content: Record<string, never>[];
content: components['schemas']['PageBlock'][];
variables: Record<string, never>[];
title: string;
name: string;
@ -4027,6 +4027,29 @@ export type components = {
likedCount: number;
isLiked?: boolean;
};
PageBlock: OneOf<[{
id: string;
/** @enum {string} */
type: 'text';
text: string;
}, {
id: string;
/** @enum {string} */
type: 'section';
title: string;
children: components['schemas']['PageBlock'][];
}, {
id: string;
/** @enum {string} */
type: 'image';
fileId: string | null;
}, {
id: string;
/** @enum {string} */
type: 'note';
detailed: boolean;
note: string | null;
}]>;
Channel: {
/**
* Format: id