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; }; "reportAnalytics": { "type": string; }; "analyticsLabel": { "type": string; }; "ua": { "type": string; }; "googleClientId": { "type": string; }; "ip": { "type": 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[]; }; "LimitExceededError": { "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[]; }; "LockedAppError": { "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[]; }; "CustomDomain": { "type": string; "properties": { "type": { "type": string; "enum": string[]; }; "name": { "format": string; "type": string; }; "connected": { "type": string; }; "status": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "Domain": { "anyOf": { "$ref": string; }[]; }; "TemplateSource": { "type": string; "properties": { "name": { "description": string; "type": string; }; "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[]; }; "OAuthData": { "type": string; "properties": { "type": { "type": string; "enum": string[]; }; "clientId": { "type": string; }; "clientSecret": { "type": string; }; "domain": { "type": string; }; "sessionSecret": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "Environment": { "type": string; "properties": { "name": { "pattern": string; "type": string; }; "domains": { "type": string; "items": { "anyOf": { "$ref": string; }[]; }; }; "oauth": { "$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; }; "locked": { "type": string; }; "lockReason": { "minLength": number; "type": string; }; "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; }; }; "tags": { "default": never[]; "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[]; }; "Serializable": { "anyOf": ({ "type": string; "properties": {}; "items"?: undefined; } | { "type": string; "items": {}; "properties"?: undefined; } | { "type": string[]; "properties"?: undefined; "items"?: undefined; })[]; }; "TemplateData": { "type": string; "properties": { "key": { "type": string; }; "data": { "anyOf": ({ "type": string; "properties": {}; "items"?: undefined; } | { "type": string; "items": {}; "properties"?: undefined; } | { "type": string[]; "properties"?: undefined; "items"?: undefined; })[]; }; }; "propertyOrder": string[]; "required": string[]; }; "InitialData": { "type": string; "properties": { "items": { "type": string; "items": { "$ref": string; }; }; }; "propertyOrder": string[]; "required": string[]; }; "EnvironmentVariable": { "type": string; "properties": { "variable": { "type": string; }; "source": { "type": string; }; "value": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "EnvironmentVariables": { "type": string; "properties": { "variables": { "type": string; "items": { "$ref": 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[]; }; "reportAnalytics": { "type": string; "properties": { "params": { "type": string; "properties": { "events": { "type": string; "items": { "anyOf": { "$ref": string; }[]; }; }; }; "propertyOrder": string[]; "required": string[]; }; "returns": { "type": 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": { "anyOf": { "$ref": string; }[]; }; "returns": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "getAppByName": { "type": string; "properties": { "params": { "type": string; "properties": { "name": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "anyOf": { "$ref": string; }[]; }; "returns": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "deployInitial": { "type": string; "properties": { "params": { "type": string; "properties": { "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[]; }; "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[]; }; "getLogsByName": { "type": string; "properties": { "params": { "type": string; "properties": { "name": { "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[]; }; "destroyAppByName": { "type": string; "properties": { "params": { "type": string; "properties": { "name": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "anyOf": { "$ref": string; }[]; }; "returns": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "renameApp": { "type": string; "properties": { "params": { "type": string; "properties": { "appId": { "minLength": number; "type": string; }; "targetName": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "anyOf": { "$ref": string; }[]; }; "returns": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "renameAppByName": { "type": string; "properties": { "params": { "type": string; "properties": { "sourceName": { "minLength": number; "type": string; }; "targetName": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "anyOf": { "$ref": string; }[]; }; "returns": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "addAppDomain": { "type": string; "properties": { "params": { "type": string; "properties": { "appId": { "minLength": number; "type": string; }; "env": { "pattern": string; "type": string; }; "domain": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "anyOf": { "$ref": string; }[]; }; "returns": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "removeAppDomain": { "type": string; "properties": { "params": { "type": string; "properties": { "appId": { "minLength": number; "type": string; }; "env": { "pattern": string; "type": string; }; "domain": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "anyOf": { "$ref": string; }[]; }; "returns": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "triggerAppDomainVerification": { "type": string; "properties": { "params": { "type": string; "properties": { "appId": { "minLength": number; "type": string; }; "env": { "pattern": string; "type": string; }; "domain": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "anyOf": { "$ref": string; }[]; }; "returns": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "lockApp": { "type": string; "properties": { "params": { "type": string; "properties": { "appId": { "minLength": number; "type": string; }; "lockReason": { "minLength": number; "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "anyOf": { "$ref": string; }[]; }; "returns": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "unlockApp": { "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[]; }; "getEnv": { "type": string; "properties": { "params": { "type": string; "properties": { "appId": { "minLength": number; "type": string; }; "variables": { "description": string; "anyOf": ({ "type": string; "items": { "type": string; }; } | { "type": string; "items"?: undefined; })[]; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "anyOf": { "$ref": string; }[]; }; "returns": { "$ref": string; }; }; "propertyOrder": string[]; "required": string[]; }; "setEnv": { "type": string; "properties": { "params": { "type": string; "properties": { "appId": { "minLength": number; "type": string; }; "exactly": { "description": string; "type": string; }; "set": { "$ref": string; "description": string; }; "unset": { "description": string; "type": string; "items": { "type": string; }; }; }; "propertyOrder": string[]; "required": string[]; }; "throws": { "anyOf": { "$ref": string; }[]; }; "returns": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; }; "propertyOrder": string[]; "required": string[]; }; "InteractionEvent": { "type": string; "properties": { "type": { "type": string; "enum": string[]; }; "category": { "type": string; }; "action": { "type": string; }; "label": { "type": string; }; "value": { "type": string; }; }; "propertyOrder": string[]; "required": string[]; }; "ViewEvent": { "type": string; "properties": { "type": { "enum": string[]; "type": string; }; "page": { "type": 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 LimitExceededError extends Error { readonly name = "LimitExceededError"; } export declare class ExistsError extends Error { readonly name = "ExistsError"; } export declare class LockedAppError extends Error { readonly name = "LockedAppError"; } export declare enum FunctionRunnerSize { M128MIB = "m128MiB", M1GIB = "m1GiB", M256MIB = "m256MiB", M2GIB = "m2GiB", M512MIB = "m512MiB" } export declare type Domain = (SubDomain) | (CustomDomain); export declare type Serializable = ({}) | (Array) | ((null) | (string) | (number) | (boolean)); 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; readonly reportAnalytics?: boolean; readonly analyticsLabel?: string; readonly ua?: string; readonly googleClientId?: string; readonly ip: string; } export interface SubDomain { readonly type: "subdomain"; readonly name: string; } export interface CustomDomain { readonly type: "custom"; readonly name: string; readonly connected: boolean; readonly status: string; } export interface TemplateSource { readonly name: string; readonly downloadDir: string; readonly downloadUrl: string; readonly githubUrl: string; readonly targetDir: string; readonly zipUrl: string; } export interface OAuthData { readonly type: "auth0"; readonly clientId: string; readonly clientSecret: string; readonly domain: string; readonly sessionSecret: string; } export interface Environment { readonly name: string; readonly domains: Array<(SubDomain) | (CustomDomain)>; readonly oauth?: OAuthData; } export interface Application { readonly accountId: string; readonly id: string; readonly name: string; readonly createdAt: Date; readonly updatedAt: Date; readonly locked: boolean; readonly lockReason?: string; 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; readonly tags: 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 TemplateData { readonly key: string; readonly data: ({}) | (Array) | ((null) | (string) | (number) | (boolean)); } export interface InitialData { readonly items: Array; } export interface EnvironmentVariable { readonly variable: string; readonly source: string; readonly value: string; } export interface EnvironmentVariables { readonly variables: Array; } export interface Lycan { createTicket(): Promise; claimTicket(ticket: string): Promise; listTemplates(): Promise>; reportAnalytics(events: Array<(InteractionEvent) | (ViewEvent)>): Promise; tryTemplate(id: string): Promise; whoami(): Promise; listApps(): Promise>; getApp(id: string): Promise; getAppByName(name: string): Promise; deployInitial(env: 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; getLogsByName(name: string, env: string, opts: LogReadOpts): Promise; destroyApp(appId: string): Promise; destroyAppByName(name: string): Promise; renameApp(appId: string, targetName: string): Promise; renameAppByName(sourceName: string, targetName: string): Promise; addAppDomain(appId: string, env: string, domain: string): Promise; removeAppDomain(appId: string, env: string, domain: string): Promise; triggerAppDomainVerification(appId: string, env: string, domain: string): Promise; lockApp(appId: string, lockReason: string): Promise; unlockApp(appId: string): Promise; getEnv(appId: string, variables: (Array) | (null)): Promise; setEnv(appId: string, exactly: boolean, set: EnvironmentVariables, unset: Array): Promise; } export interface InteractionEvent { readonly type: "event"; readonly category: string; readonly action: string; readonly label?: string; readonly value?: number; } export interface ViewEvent { readonly type: "modalview" | "pageview"; readonly page: string; }