UNPKG

@voiceflow/base-types

Version:

Voiceflow base project types

21 lines 665 B
import type { AnyRecord } from '@voiceflow/common'; export declare const API_KEY_PREFIX = "VF."; export declare enum APIKeySubType { Workspace = "WS", DialogManager = "DM" } export declare const isWorkspaceAPIKey: (key: unknown) => key is string; export declare const isDialogManagerAPIKey: (key: unknown) => key is string; export interface Model<Data extends AnyRecord = AnyRecord> { _id: string; creatorID: number; projectID?: string; workspaceID: string; type: APIKeySubType; name: string; data?: Data; scopes: string[]; permissions: string[]; secondaryKeyID?: string | null; } //# sourceMappingURL=apiKey.d.ts.map