mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-01 18:27:29 +00: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>
|
...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 Def<x extends GetKeys<References>> = GetDef<References, x>;
|
||||||
|
|
||||||
export type PackedNote = Packed<'Note'>;
|
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'];
|
let renote: PackedNote['reply'];
|
||||||
|
|
|
@ -5,7 +5,7 @@ export const packedAntennaSchema = {
|
||||||
|
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
id: { $ref: '/schemas/Id' },
|
id: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import type { JSONSchema7 } from 'schema-type';
|
import type { JSONSchema7 } from 'schema-type';
|
||||||
|
|
||||||
export const packedNoteSchema = {
|
export const packedNoteSchema = {
|
||||||
$id: 'https://misskey-hub.net/api/schemas/schemas/Note',
|
$id: 'https://misskey-hub.net/api/schemas/Note',
|
||||||
|
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
id: { $ref: 'https://misskey-hub.net/api/schemas/schemas/Id' },
|
id: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
|
@ -23,22 +23,22 @@ export const packedNoteSchema = {
|
||||||
oneOf: [{ type: 'string' }, { type: 'null' }],
|
oneOf: [{ type: 'string' }, { type: 'null' }],
|
||||||
},
|
},
|
||||||
userId: {
|
userId: {
|
||||||
$ref: 'https://misskey-hub.net/api/schemas/schemas/Id',
|
$ref: 'https://misskey-hub.net/api/schemas/Id',
|
||||||
},
|
},
|
||||||
user: {
|
user: {
|
||||||
$ref: 'https://misskey-hub.net/api/schemas/schemas/UserLite',
|
$ref: 'https://misskey-hub.net/api/schemas/UserLite',
|
||||||
},
|
},
|
||||||
replyId: {
|
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: {
|
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: {
|
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: {
|
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: {
|
isHidden: {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
|
@ -48,29 +48,29 @@ export const packedNoteSchema = {
|
||||||
},
|
},
|
||||||
mentions: {
|
mentions: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
items: { $ref: 'https://misskey-hub.net/api/schemas/schemas/Id' },
|
items: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
|
||||||
},
|
},
|
||||||
visibleUserIds: {
|
visibleUserIds: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
items: { $ref: 'https://misskey-hub.net/api/schemas/schemas/Id' },
|
items: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
|
||||||
},
|
},
|
||||||
fileIds: {
|
fileIds: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
items: { $ref: 'https://misskey-hub.net/api/schemas/schemas/Id' },
|
items: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
|
||||||
},
|
},
|
||||||
files: {
|
files: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
items: { $ref: 'https://misskey-hub.net/api/schemas/schemas/DriveFile' },
|
items: { $ref: 'https://misskey-hub.net/api/schemas/DriveFile' },
|
||||||
},
|
},
|
||||||
tags: {
|
tags: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
items: { type: 'string' },
|
items: { type: 'string' },
|
||||||
},
|
},
|
||||||
poll: {
|
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: {
|
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: {
|
channel: {
|
||||||
oneOf: [{
|
oneOf: [{
|
||||||
|
|
Loading…
Reference in a new issue