mirror of
https://github.com/pockethost/pockethost.git
synced 2025-11-26 23:45:57 +00:00
21 lines
450 B
TypeScript
21 lines
450 B
TypeScript
import { JSONSchemaType } from 'ajv'
|
|
import { InstanceFields, Subdomain } from '..'
|
|
|
|
export type CreateInstancePayload = {
|
|
subdomain: Subdomain
|
|
}
|
|
|
|
export type CreateInstanceResult = {
|
|
instance: InstanceFields
|
|
}
|
|
|
|
export const CreateInstancePayloadSchema: JSONSchemaType<CreateInstancePayload> =
|
|
{
|
|
type: 'object',
|
|
properties: {
|
|
subdomain: { type: 'string' },
|
|
},
|
|
required: ['subdomain'],
|
|
additionalProperties: false,
|
|
}
|