@altostra/core
Version:
Core library for shared types and logic
13 lines (12 loc) • 595 B
TypeScript
import type { NonEmptyString } from "../../../../common/CustomTypes/NonEmptyString";
import type { JSONSchema } from "../../../../common/JSONSchema";
import type { Ref, ResourceBase } from "../../Common";
export declare type WebSocketApiType = 'resource.web-socket.api';
export interface WebSocketApi extends ResourceBase {
type: WebSocketApiType;
endpoints: Ref[];
routeSelector: NonEmptyString;
models?: Record<string, JSONSchema>;
defaultAuthorizer?: never;
}
export declare const isWebSocketApi: import("@altostra/type-validations").ObjectOfTypeValidation<WebSocketApi>;