export declare const schema: { "$schema": string; "definitions": { "FunctionRunnerSize": { "enum": string[]; "type": string; }; "Session": { "type": string; "properties": { "accountId": { "minLength": number; "type": string; }; "principal": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "ServerOnlyContext": { "type": string; "properties": { "tags": { "type": string; "additionalProperties": { "type": string; }; "propertyOrder": never[]; }; "logLevel": { "type": string; }; "logExtra": { "type": string; "additionalProperties": {}; "propertyOrder": never[]; }; "sampleRate": { "type": string; }; "debugId": { "type": string; }; "session": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "UnauthorizedError": { "type": string; "properties": { "name": { "type": string; }; "message": { "type": string; }; "stack": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "NotFoundError": { "type": string; "properties": { "name": { "type": string; }; "message": { "type": string; }; "stack": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "ExistsError": { "type": string; "properties": { "name": { "type": string; }; "message": { "type": string; }; "stack": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "SubDomain": { "type": string; "properties": { "type": { "type": string; "enum": string[]; }; "name": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "CNameDomain": { "type": string; "properties": { "type": { "type": string; "enum": string[]; }; "name": { "format": string; "type": string; }; "certificate": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "Domain": { "anyOf": { "$ref": string; }[]; }; "TemplateSource": { "type": string; "properties": { "downloadDir": { "description": string; "type": string; }; "downloadUrl": { "description": string; "type": string; }; "githubUrl": { "description": string; "type": string; }; "targetDir": { "description": string; "type": string; }; "zipUrl": { "description": string; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "Environment": { "type": string; "properties": { "name": { "pattern": string; "type": string; }; "domains": { "type": string; "items": { "anyOf": { "$ref": string; }[]; }; }; }; "propertyOrder": string[]; "required": string[]; }; "Application": { "type": string; "properties": { "accountId": { "minLength": number; "type": string; }; "id": { "minLength": number; "type": string; }; "name": { "description": string; "minLength": number; "type": string; }; "createdAt": { "description": string; "type": string; "format": string; "coerce-date": boolean; }; "updatedAt": { "description": string; "type": string; "format": string; "coerce-date": boolean; }; "source": { "description": string; "$ref": string; }; "environments": { "type": string; "items": { "$ref": string; }; }; }; "propertyOrder": string[]; "required": string[]; }; "Template": { "type": string; "properties": { "id": { "minLength": number; "type": string; }; "name": { "minLength": number; "type": string; }; "previewImageUrl": { "format": string; "type": string; }; "githubUrl": { "format": string; "type": string; }; "license": { "minLength": number; "type": string; }; "author": { "minLength": number; "type": string; }; "description": { "minLength": number; "type": string; }; "similarTemplatesIds": { "type": string; "items": { "type": string; }; }; }; "propertyOrder": string[]; "required": string[]; }; "ExternalAccount": { "type": string; "properties": { "source": { "description": string; "minLength": number; "type": string; }; "id": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "User": { "type": string; "properties": { "id": { "minLength": number; "type": string; }; "fullName": { "minLength": number; "type": string; }; "email": { "format": string; "type": string; }; "avatarUrl": { "format": string; "type": string; }; "externalAccounts": { "type": string; "items": { "$ref": string; }; }; }; "propertyOrder": string[]; "required": string[]; }; "TimePeriod": { "description": string; "minLength": number; "type": string; }; "InvocationDetails": { "type": string; "properties": { "durUs": { "type": string; }; "reqid": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "LogRecord": { "type": string; "properties": { "source": { "type": string; }; "msg": { "type": string; }; "isErr": { "type": string; }; "time": { "description": string; "type": string; "format": string; "coerce-date": boolean; }; "invocation": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "LogReadOpts": { "type": string; "properties": { "since": { "description": string; "type": string; "format": string; "coerce-date": boolean; }; "limit": { "minimum": number; "maximum": number; "type": string; }; "follow": { "type": string; }; "nextToken": { "description": string; "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "LogsResponse": { "type": string; "properties": { "records": { "type": string; "items": { "$ref": string; }; }; "nextToken": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "CreateTicketResponse": { "type": string; "properties": { "ticket": { "minLength": number; "type": string; }; "expires": { "description": string; "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "TryTemplateResponse": { "type": string; "properties": { "token": { "minLength": number; "type": string; }; "expiresAt": { "description": string; "type": string; "format": string; "coerce-date": boolean; }; "domain": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "Lycan": { "type": string; "properties": { "createTicket": { "description": string; "type": string; "properties": { "params": { "type": string; "properties": {}; }; "returns": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "claimTicket": { "description": string; "type": string; "properties": { "params": { "type": string; "properties": { "ticket": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "$ref": string; }; "returns": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "listTemplates": { "type": string; "properties": { "params": { "type": string; "properties": {}; }; "returns": { "type": string; "items": { "$ref": string; }; }; }; "propertyOrder": string[]; "required": string[]; }; "tryTemplate": { "description": string; "type": string; "properties": { "params": { "type": string; "properties": { "id": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "$ref": string; }; "returns": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "whoami": { "type": string; "properties": { "params": { "type": string; "properties": {}; }; "returns": { "$ref": string; }; "throws": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "listApps": { "type": string; "properties": { "params": { "type": string; "properties": {}; }; "throws": { "$ref": string; }; "returns": { "type": string; "items": { "$ref": string; }; }; }; "propertyOrder": string[]; "required": string[]; }; "getApp": { "type": string; "properties": { "params": { "type": string; "properties": { "id": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "$ref": string; }; "returns": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "deployInitial": { "type": string; "properties": { "params": { "type": string; "properties": { "env": { "pattern": string; "type": string; }; "name": { "minLength": number; "type": string; }; "digest": { "minLength": number; "type": string; }; "envVars": { "type": string; "items": { "type": string; "items": { "type": string; }[]; "minItems": number; "additionalItems": { "anyOf": { "type": string; }[]; }; }; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "anyOf": { "$ref": string; }[]; }; "returns": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "deploy": { "type": string; "properties": { "params": { "type": string; "properties": { "appId": { "minLength": number; "type": string; }; "env": { "pattern": string; "type": string; }; "digest": { "minLength": number; "type": string; }; "envVars": { "type": string; "items": { "type": string; "items": { "type": string; }[]; "minItems": number; "additionalItems": { "anyOf": { "type": string; }[]; }; }; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "anyOf": { "$ref": string; }[]; }; "returns": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "claimApp": { "description": string; "type": string; "properties": { "params": { "type": string; "properties": { "token": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "anyOf": { "$ref": string; }[]; }; "returns": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "getLogs": { "type": string; "properties": { "params": { "type": string; "properties": { "appId": { "minLength": number; "type": string; }; "env": { "pattern": string; "type": string; }; "opts": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "anyOf": { "$ref": string; }[]; }; "returns": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "destroyApp": { "type": string; "properties": { "params": { "type": string; "properties": { "appId": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "anyOf": { "$ref": string; }[]; }; "returns": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; }; "propertyOrder": string[]; "required": string[]; }; }; }; export declare class InternalServerError extends Error { readonly name = "InternalServerError"; } export declare class UnauthorizedError extends Error { readonly name = "UnauthorizedError"; } export declare class NotFoundError extends Error { readonly name = "NotFoundError"; } export declare class ExistsError extends Error { readonly name = "ExistsError"; } export declare enum FunctionRunnerSize { M128MIB = "m128MiB", M1GIB = "m1GiB", M256MIB = "m256MiB", M2GIB = "m2GiB", M512MIB = "m512MiB" } export declare type Domain = (SubDomain) | (CNameDomain); export interface Session { readonly accountId: string; readonly principal: string; } export interface ServerOnlyContext { readonly tags?: {}; readonly logLevel?: string; readonly logExtra?: {}; readonly sampleRate?: number; readonly debugId: string; readonly session?: Session; } export interface SubDomain { readonly type: "subdomain"; readonly name: string; } export interface CNameDomain { readonly type: "cname"; readonly name: string; readonly certificate: string; } export interface TemplateSource { readonly downloadDir: string; readonly downloadUrl: string; readonly githubUrl: string; readonly targetDir: string; readonly zipUrl: string; } export interface Environment { readonly name: string; readonly domains: Array<(SubDomain) | (CNameDomain)>; } export interface Application { readonly accountId: string; readonly id: string; readonly name: string; readonly createdAt: Date; readonly updatedAt: Date; readonly source?: TemplateSource; readonly environments: Array; } export interface Template { readonly id: string; readonly name: string; readonly previewImageUrl: string; readonly githubUrl: string; readonly license: string; readonly author: string; readonly description: string; readonly similarTemplatesIds: Array; } export interface ExternalAccount { readonly source: string; readonly id: string; } export interface User { readonly id: string; readonly fullName: string; readonly email: string; readonly avatarUrl?: string; readonly externalAccounts: Array; } export interface InvocationDetails { readonly durUs: number; readonly reqid: string; } export interface LogRecord { readonly source: string; readonly msg: string; readonly isErr: boolean; readonly time: Date; readonly invocation?: InvocationDetails; } export interface LogReadOpts { readonly since: Date; readonly limit: number; readonly follow: boolean; readonly nextToken?: string; } export interface LogsResponse { readonly records: Array; readonly nextToken?: string; } export interface CreateTicketResponse { readonly ticket: string; readonly expires: string; } export interface TryTemplateResponse { readonly token: string; readonly expiresAt: Date; readonly domain: string; } export interface Lycan { createTicket(): Promise; claimTicket(ticket: string): Promise; listTemplates(): Promise>; tryTemplate(id: string): Promise; whoami(): Promise; listApps(): Promise>; getApp(id: string): Promise; deployInitial(env: string, name: string, digest: string, envVars: Array<[string, string]>): Promise; deploy(appId: string, env: string, digest: string, envVars: Array<[string, string]>): Promise; claimApp(token: string): Promise; getLogs(appId: string, env: string, opts: LogReadOpts): Promise; destroyApp(appId: string): Promise; }