mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 11:33:08 +02:00
fix
This commit is contained in:
parent
41a822c34c
commit
0040aca841
3 changed files with 17 additions and 17 deletions
|
@ -73,9 +73,9 @@ export type References = [
|
|||
...UnionToArray<Refs>
|
||||
];
|
||||
|
||||
export type Packed<x extends GetKeys<References, 'https://misskey-dev.net/api/'>> = GetDef<References, x, 'https://misskey-dev.net/api/'>;
|
||||
export type Packed<x extends GetKeys<References, 'https://misskey-hub.net/api/schemas/'>> = GetDef<References, x, 'https://misskey-hub.net/api/schemas/'>;
|
||||
export type Def<x extends GetKeys<References>> = GetDef<References, x>;
|
||||
|
||||
export type PackedNote = Packed<'Note'>;
|
||||
export type DefNote = Def<'https://misskey-dev.net/api/'>;
|
||||
export type DefNote = Def<'https://misskey-hub.net/api/schemas/Note'>;
|
||||
let renote: PackedNote['reply'];
|
||||
|
|
|
@ -5,7 +5,7 @@ export const packedAntennaSchema = {
|
|||
|
||||
type: 'object',
|
||||
properties: {
|
||||
id: { $ref: '/schemas/Id' },
|
||||
id: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
|
||||
createdAt: {
|
||||
type: 'string',
|
||||
format: 'date-time',
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import type { JSONSchema7 } from 'schema-type';
|
||||
|
||||
export const packedNoteSchema = {
|
||||
$id: 'https://misskey-hub.net/api/schemas/schemas/Note',
|
||||
$id: 'https://misskey-hub.net/api/schemas/Note',
|
||||
|
||||
type: 'object',
|
||||
properties: {
|
||||
id: { $ref: 'https://misskey-hub.net/api/schemas/schemas/Id' },
|
||||
id: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
|
||||
createdAt: {
|
||||
type: 'string',
|
||||
format: 'date-time',
|
||||
|
@ -23,22 +23,22 @@ export const packedNoteSchema = {
|
|||
oneOf: [{ type: 'string' }, { type: 'null' }],
|
||||
},
|
||||
userId: {
|
||||
$ref: 'https://misskey-hub.net/api/schemas/schemas/Id',
|
||||
$ref: 'https://misskey-hub.net/api/schemas/Id',
|
||||
},
|
||||
user: {
|
||||
$ref: 'https://misskey-hub.net/api/schemas/schemas/UserLite',
|
||||
$ref: 'https://misskey-hub.net/api/schemas/UserLite',
|
||||
},
|
||||
replyId: {
|
||||
oneOf: [{ $ref: 'https://misskey-hub.net/api/schemas/schemas/Id' }, { type: 'null' }],
|
||||
oneOf: [{ $ref: 'https://misskey-hub.net/api/schemas/Id' }, { type: 'null' }],
|
||||
},
|
||||
renoteId: {
|
||||
oneOf: [{ $ref: 'https://misskey-hub.net/api/schemas/schemas/Id' }, { type: 'null' }],
|
||||
oneOf: [{ $ref: 'https://misskey-hub.net/api/schemas/Id' }, { type: 'null' }],
|
||||
},
|
||||
reply: {
|
||||
oneOf: [{ $ref: 'https://misskey-hub.net/api/schemas/schemas/Note' }, { type: 'null' }],
|
||||
oneOf: [{ $ref: 'https://misskey-hub.net/api/schemas/Note' }, { type: 'null' }],
|
||||
},
|
||||
renote: {
|
||||
oneOf: [{ $ref: 'https://misskey-hub.net/api/schemas/schemas/Note' }, { type: 'null' }],
|
||||
oneOf: [{ $ref: 'https://misskey-hub.net/api/schemas/Note' }, { type: 'null' }],
|
||||
},
|
||||
isHidden: {
|
||||
type: 'boolean',
|
||||
|
@ -48,29 +48,29 @@ export const packedNoteSchema = {
|
|||
},
|
||||
mentions: {
|
||||
type: 'array',
|
||||
items: { $ref: 'https://misskey-hub.net/api/schemas/schemas/Id' },
|
||||
items: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
|
||||
},
|
||||
visibleUserIds: {
|
||||
type: 'array',
|
||||
items: { $ref: 'https://misskey-hub.net/api/schemas/schemas/Id' },
|
||||
items: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
|
||||
},
|
||||
fileIds: {
|
||||
type: 'array',
|
||||
items: { $ref: 'https://misskey-hub.net/api/schemas/schemas/Id' },
|
||||
items: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
|
||||
},
|
||||
files: {
|
||||
type: 'array',
|
||||
items: { $ref: 'https://misskey-hub.net/api/schemas/schemas/DriveFile' },
|
||||
items: { $ref: 'https://misskey-hub.net/api/schemas/DriveFile' },
|
||||
},
|
||||
tags: {
|
||||
type: 'array',
|
||||
items: { type: 'string' },
|
||||
},
|
||||
poll: {
|
||||
oneOf: [{ $ref: 'https://misskey-hub.net/api/schemas/schemas/Poll' }, { type: 'null' }],
|
||||
oneOf: [{ $ref: 'https://misskey-hub.net/api/schemas/Poll' }, { type: 'null' }],
|
||||
},
|
||||
channelId: {
|
||||
oneOf: [{ $ref: 'https://misskey-hub.net/api/schemas/schemas/Id' }, { type: 'null' }],
|
||||
oneOf: [{ $ref: 'https://misskey-hub.net/api/schemas/Id' }, { type: 'null' }],
|
||||
},
|
||||
channel: {
|
||||
oneOf: [{
|
||||
|
|
Loading…
Reference in a new issue