import { Invoker, StartWorkflowOptions } from "./workflow.mjs"; import { ContextInvoker } from "./context.mjs"; import { TailorDBFileErrorCode } from "./file.mjs"; import { IconvInstance } from "./iconv.mjs"; import { ClientConfig, CreateUserInput, IdpClientInstance, ListUsersOptions, ListUsersResponse, SendPasswordResetEmailInput, UnenrollMfaInput, UpdateUserInput, User, UserQuery } from "./idp.mjs"; import { LogAttributeValue, LogAttributes } from "./logger.mjs"; import { TailorRuntime, TailordbClientInstance, TailordbCommandType, TailordbQueryResult, TailordbRuntime } from "./index.mjs"; //#region src/runtime/globals.d.ts type TailorIdpClientConfig = ClientConfig; type TailorIdpCreateUserInput = CreateUserInput; type TailorIdpClientInstance = IdpClientInstance; type TailorIdpListUsersOptions = ListUsersOptions; type TailorIdpListUsersResponse = ListUsersResponse; type TailorIdpSendPasswordResetEmailInput = SendPasswordResetEmailInput; type TailorIdpUnenrollMfaInput = UnenrollMfaInput; type TailorIdpUpdateUserInput = UpdateUserInput; type TailorIdpUser = User; type TailorIdpUserQuery = UserQuery; type TailorWorkflowInvoker = Invoker; type TailorWorkflowStartWorkflowOptions = StartWorkflowOptions; type TailorLoggerLogAttributeValue = LogAttributeValue; type TailorLoggerLogAttributes = LogAttributes; declare global { namespace tailordb { type QueryResult = TailordbQueryResult; type CommandType = TailordbCommandType; type Client = TailordbClientInstance; } var tailordb: TailordbRuntime; namespace tailor { namespace iconv { type Iconv = IconvInstance; } namespace idp { type Client = TailorIdpClientInstance; type ClientConfig = TailorIdpClientConfig; type User = TailorIdpUser; type UserQuery = TailorIdpUserQuery; type ListUsersOptions = TailorIdpListUsersOptions; type ListUsersResponse = TailorIdpListUsersResponse; type CreateUserInput = TailorIdpCreateUserInput; type UpdateUserInput = TailorIdpUpdateUserInput; type SendPasswordResetEmailInput = TailorIdpSendPasswordResetEmailInput; type UnenrollMfaInput = TailorIdpUnenrollMfaInput; } namespace workflow { type Invoker = TailorWorkflowInvoker; type StartWorkflowOptions = TailorWorkflowStartWorkflowOptions; } namespace context { type Invoker = ContextInvoker; } namespace logger { type LogAttributeValue = TailorLoggerLogAttributeValue; type LogAttributes = TailorLoggerLogAttributes; } } var tailor: TailorRuntime; /** Custom error class for TailorDB File operations. */ class TailorDBFileError extends Error { constructor(message: string, code?: TailorDBFileErrorCode, cause?: unknown); name: "TailorDBFileError"; code?: TailorDBFileErrorCode; cause?: unknown; } /** Individual error entry attached to {@link TailorErrors}. */ interface TailorErrorItem { message: string; path: (string | number)[]; } /** * Aggregate validation error raised by the Tailor Platform Function runtime. * The runtime serializes the items into the `message` (`"TailorErrors: {...}"`) * and also exposes them on `.errors`. */ class TailorErrors extends Error { constructor(errors: TailorErrorItem[]); name: "TailorErrors"; errors: TailorErrorItem[]; } } //#endregion