forked from mirrors/misskey
wip
This commit is contained in:
31
packages/misskey-js/src/schemas/relay.ts
Normal file
31
packages/misskey-js/src/schemas/relay.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import type { JSONSchema7Definition } from 'schema-type';
|
||||
|
||||
export const packedRelaySchema = {
|
||||
$id: 'https://misskey-hub.net/api/schemas/Relay',
|
||||
|
||||
type: 'object',
|
||||
properties: {
|
||||
id: {
|
||||
type: 'string',
|
||||
format: 'id',
|
||||
},
|
||||
inbox: {
|
||||
type: 'string',
|
||||
format: 'url',
|
||||
},
|
||||
status: {
|
||||
type: 'string',
|
||||
default: 'requesting',
|
||||
enum: [
|
||||
'requesting',
|
||||
'accepted',
|
||||
'rejected',
|
||||
],
|
||||
},
|
||||
},
|
||||
required: [
|
||||
'id',
|
||||
'inbox',
|
||||
'status'
|
||||
],
|
||||
} as const satisfies JSONSchema7Definition;
|
||||
Reference in New Issue
Block a user