import { LogMode, LogOptions, OutOptions, logger, styles } from "./shared/logger.mjs"; import { CommonArgsType, configArg, confirmationArgs, createCommonArgs, deploymentArgs, loadEnvFiles, workspaceArgs } from "./shared/args.mjs"; import { defineAppCommand } from "./shared/command.mjs"; import { logBetaWarning } from "./shared/beta.mjs"; import { prompt } from "./shared/prompt.mjs"; import { workspaceNameSchema } from "./shared/workspace-name.mjs"; import { BundledScripts } from "./commands/deploy/function-registry-types.mjs"; import { PluginAttachment } from "../configure/services/tailordb/types.mjs"; import { OperatorFieldConfig, ParsedField, PluginGeneratedTableSource, TailorDBType, TypeSourceInfoEntry } from "../parser/service/tailordb/types.mjs"; import { Executor } from "../types/executor.generated.mjs"; import { Resolver } from "../types/resolver.generated.mjs"; import { GeneratorResult, Plugin, TailorDBNamespaceData } from "../plugin/types.mjs"; import { LoadedConfig, loadConfig } from "./shared/config-loader.mjs"; import { AuthInvoker } from "../tailor-proto/src/tailor/v1/auth_resource_pb.mjs"; import { OperatorClient, initOperatorClient } from "./shared/client.mjs"; import { NormalizedSchemaSnapshot, SchemaSnapshot, SnapshotFieldConfig, TailorDBSnapshotType } from "./commands/tailordb/migrate/snapshot-types.mjs"; import { BreakingChangeInfo, MigrationDiff, formatDiffSummary, formatMigrationDiff, hasChanges } from "./commands/tailordb/migrate/diff-calculator.mjs"; import { compareLocalTypesWithSnapshot, compareSnapshots } from "./commands/tailordb/migrate/snapshot-comparison.mjs"; import { DB_PGLITE_SCHEMA_FILE_NAME, DB_TYPES_FILE_NAME, DIFF_FILE_NAME, INITIAL_SCHEMA_NUMBER, MIGRATE_FILE_NAME, MIGRATE_PGLITE_TEST_FILE_NAME, MIGRATE_TEST_FILE_NAME, SCHEMA_FILE_NAME, getLatestMigrationNumber, getMigrationDirPath, getMigrationFilePath, getMigrationFiles, getNextMigrationNumber } from "./commands/tailordb/migrate/snapshot-files.mjs"; import { reconstructSnapshotFromMigrations } from "./commands/tailordb/migrate/snapshot-migrations.mjs"; import { createSnapshotFromLocalTypes } from "./commands/tailordb/migrate/snapshot-local.mjs"; import { MIGRATION_LABEL_KEY } from "./commands/tailordb/migrate/types.mjs"; import "./commands/tailordb/migrate/snapshot.mjs"; import "./commands/deploy/function-registry.mjs"; import { NamespaceWithMigrations, getNamespacesWithMigrations } from "./commands/tailordb/migrate/config.mjs"; import { DeployOptions, deploy } from "./commands/deploy/deploy.mjs"; import { ensureConfigId } from "./commands/deploy/config-id-injector.mjs"; import { AppIdEntry, AppIdEntryInput, AppIdLock, AppIdPlan, AppIdPlanMode, AppIds, PlanAppIdsParams, RemoveAdoptedConfigIdsResult, TAILOR_LOCK_FILENAME, TAILOR_LOCK_VERSION, findAppIdLock, parseAppIds, planAppIds, removeAdoptedConfigIds } from "./commands/deploy/app-id-lock.mjs"; import { GenerateOptions } from "./commands/generate/options.mjs"; import { generate } from "./commands/generate/service.mjs"; import { extractOwnedNamespaces } from "./shared/config.mjs"; import { ErrorToJsonOptions, errorToJson, serializeError } from "./shared/error-json.mjs"; import { ErrorSourceLocation } from "./shared/error-diagnostics.mjs"; import { annotateTerminalError, withSourceLocation } from "./shared/github-actions.mjs"; import { generateUserTypes } from "./shared/type-generator.mjs"; import { LoadTailorDBNamespacesOptions, LoadedTailorDBNamespaces, TailorDBNamespaceSelector, loadTailorDBNamespaces } from "./shared/tailordb-namespaces.mjs"; import { DeployResult, deployStaticWebsite } from "./commands/staticwebsite/deploy.mjs"; import { assertWritable } from "./shared/readonly-guard.mjs"; import { isPluginGeneratedTable } from "../parser/service/tailordb/type-source.mjs"; import { AIGatewayInfo, ApplicationInfo, ShowInfo, ShowOptions, show } from "./commands/show.mjs"; import { RemoveOptions, remove } from "./commands/remove.mjs"; import { WorkspaceDetails, WorkspaceInfo } from "./commands/workspace/transform.mjs"; import { CreateWorkspaceOptions, createWorkspace } from "./commands/workspace/create.mjs"; import { ListWorkspacesOptions, listWorkspaces } from "./commands/workspace/list.mjs"; import { DeleteWorkspaceOptions, deleteWorkspace } from "./commands/workspace/delete.mjs"; import { GetWorkspaceOptions, getWorkspace } from "./commands/workspace/get.mjs"; import { RestoreWorkspaceOptions, restoreWorkspace } from "./commands/workspace/restore.mjs"; import { UserInfo } from "./commands/workspace/user/transform.mjs"; import { ListUsersOptions, listUsers } from "./commands/workspace/user/list.mjs"; import { InviteUserOptions, inviteUser } from "./commands/workspace/user/invite.mjs"; import { UpdateUserOptions, updateUser } from "./commands/workspace/user/update.mjs"; import { RemoveUserOptions, removeUser } from "./commands/workspace/user/remove.mjs"; import { AppHealthInfo, AppInfo } from "./commands/workspace/app/transform.mjs"; import { ListAppsOptions, listApps } from "./commands/workspace/app/list.mjs"; import { HealthOptions, getAppHealth } from "./commands/workspace/app/health.mjs"; import { FunctionRegistryInfo } from "./commands/function/transform.mjs"; import { GetFunctionRegistryOptions, getFunctionRegistry } from "./commands/function/get.mjs"; import { ListFunctionRegistriesOptions, listFunctionRegistries } from "./commands/function/list.mjs"; import { ListMachineUsersOptions, MachineUserInfo, listMachineUsers } from "./commands/machineuser/list.mjs"; import { GetMachineUserTokenOptions, MachineUserTokenInfo, getMachineUserToken } from "./commands/machineuser/token.mjs"; import { OAuth2ClientCredentials, OAuth2ClientInfo } from "./commands/oauth2client/transform.mjs"; import { GetOAuth2ClientOptions, getOAuth2Client } from "./commands/oauth2client/get.mjs"; import { ListOAuth2ClientsOptions, listOAuth2Clients } from "./commands/oauth2client/list.mjs"; import { WorkflowExecutionInfo, WorkflowInfo, WorkflowJobExecutionInfo, WorkflowListInfo } from "./commands/workflow/transform.mjs"; import { ListWorkflowsOptions, listWorkflows } from "./commands/workflow/list.mjs"; import { GetWorkflowTypedOptions, getWorkflow } from "./commands/workflow/get.mjs"; import { WaitWorkflowExecutionOptions, WorkflowWaitResult } from "./commands/workflow/waiter.mjs"; import { StartWorkflowResultWithWait, StartWorkflowTypedOptions, WaitOptions, startWorkflow } from "./commands/workflow/start.mjs"; import { FunctionLogEntryInfo } from "./shared/function-execution.mjs"; import { GetWorkflowExecutionOptions, GetWorkflowExecutionResult, ListWorkflowExecutionsTypedOptions, WorkflowExecutionWaitInfo, getWorkflowExecution, listWorkflowExecutions } from "./commands/workflow/executions.mjs"; import { WorkflowWaitOutput, waitWorkflowExecution } from "./commands/workflow/wait.mjs"; import { ResumeWorkflowOptions, ResumeWorkflowResultWithWait, resumeWorkflow } from "./commands/workflow/resume.mjs"; import { TriggerExecutorResult, TriggerExecutorTypedOptions, triggerExecutor } from "./commands/executor/trigger.mjs"; import { ExecutorInfo, ExecutorJobAttemptInfo, ExecutorJobInfo, ExecutorJobListInfo, ExecutorListInfo } from "./commands/executor/transform.mjs"; import { ExecutorJobDetailInfo, GetExecutorJobTypedOptions, ListExecutorJobsTypedOptions, WatchExecutorJobResult, WatchExecutorJobTypedOptions, getExecutorJob, getExecutorWaitFailureMessage, listExecutorJobs, watchExecutorJob } from "./commands/executor/jobs.mjs"; import { ListExecutorsOptions, listExecutors } from "./commands/executor/list.mjs"; import { GetExecutorTypedOptions, getExecutor } from "./commands/executor/get.mjs"; import { ListWebhookExecutorsOptions, WebhookExecutorInfo, listWebhookExecutors } from "./commands/executor/webhook.mjs"; import { FolderInfo, FolderListInfo, OrganizationInfo, UserOrganizationInfo } from "./commands/organization/transform.mjs"; import { ListOrganizationsOptions, listOrganizations } from "./commands/organization/list.mjs"; import { GetOrganizationOptions, getOrganization } from "./commands/organization/get.mjs"; import { UpdateOrganizationOptions, updateOrganization } from "./commands/organization/update.mjs"; import { OrganizationTreeOptions, organizationTree } from "./commands/organization/tree.mjs"; import { ListFoldersOptions, listFolders } from "./commands/organization/folder/list.mjs"; import { GetFolderOptions, getFolder } from "./commands/organization/folder/get.mjs"; import { CreateFolderOptions, createFolder } from "./commands/organization/folder/create.mjs"; import { UpdateFolderOptions, updateFolder } from "./commands/organization/folder/update.mjs"; import { DeleteFolderOptions, deleteFolder } from "./commands/organization/folder/delete.mjs"; import { loadAccessToken, loadWorkspaceId } from "./shared/context.mjs"; import { ApiCallOptions, ApiCallResult, apiCall } from "./commands/api/api-call.mjs"; import "./commands/api/index.mjs"; import { query } from "./query/index.mjs"; import { TruncateOptions, truncate } from "./commands/tailordb/truncate.mjs"; import { GenerateOptions as GenerateOptions$1, generate as generate$1 } from "./commands/tailordb/migrate/generate.mjs"; import { SeedNamespaceConfig } from "../plugin/builtin/seed/seed-type-processor.mjs"; import { LoadSeedContextOptions, SeedContext, SeedIdpUserContext, loadSeedContext } from "./shared/seed-context.mjs"; import { ChunkSeedDataOptions, SeedChunk, SeedData, chunkSeedData } from "./shared/seed-chunker.mjs"; import { SeedBundleResult, SeedDumpBundleResult, bundleSeedDumpScript, bundleSeedScript } from "./commands/generate/seed/bundler.mjs"; import { MigrationBundleResult, bundleMigrationScript } from "./commands/tailordb/migrate/bundler.mjs"; import { ExecutionWaitResult, ScriptExecutionOptions, ScriptExecutionResult, ScriptInvoker, executeScript, waitForExecution } from "./shared/script-executor.mjs"; import { arg, defineCommand, runCommand, runMain } from "@politty/zod"; import { MachineUserName } from "@tailor-platform/sdk"; export { type AIGatewayInfo, type ApiCallOptions, type ApiCallResult, type AppHealthInfo, type AppIdEntry, type AppIdEntryInput, type AppIdLock, type AppIdPlan, type AppIdPlanMode, type AppIds, type AppInfo, type ApplicationInfo, type DeployOptions as ApplyOptions, type AuthInvoker, type BreakingChangeInfo, type BundledScripts, type ChunkSeedDataOptions, type CommonArgsType, type CreateFolderOptions, type CreateWorkspaceOptions, DB_PGLITE_SCHEMA_FILE_NAME, DB_TYPES_FILE_NAME, DIFF_FILE_NAME, type DeleteFolderOptions, type DeleteWorkspaceOptions, type DeployOptions, type ErrorSourceLocation, type ErrorToJsonOptions, type ExecutionWaitResult, type Executor, type ExecutorInfo, type ExecutorJobAttemptInfo, type ExecutorJobDetailInfo, type ExecutorJobInfo, type ExecutorJobListInfo, type ExecutorListInfo, type FolderInfo, type FolderListInfo, type FunctionLogEntryInfo, type FunctionRegistryInfo, type GenerateOptions, type GeneratorResult, type HealthOptions as GetAppHealthOptions, type GetExecutorJobTypedOptions, type GetExecutorTypedOptions, type GetFolderOptions, type GetFunctionRegistryOptions, type GetMachineUserTokenOptions, type GetOAuth2ClientOptions, type GetOrganizationOptions, type GetWorkflowExecutionOptions, type GetWorkflowExecutionResult, type GetWorkflowTypedOptions, type GetWorkspaceOptions, INITIAL_SCHEMA_NUMBER, type InviteUserOptions, type ListAppsOptions, type ListExecutorJobsTypedOptions, type ListExecutorsOptions, type ListFoldersOptions, type ListFunctionRegistriesOptions, type ListMachineUsersOptions, type ListOAuth2ClientsOptions, type ListOrganizationsOptions, type ListUsersOptions, type ListWebhookExecutorsOptions, type ListWorkflowExecutionsTypedOptions, type ListWorkflowsOptions, type ListWorkspacesOptions, type LoadSeedContextOptions, type LoadTailorDBNamespacesOptions, type LoadedConfig, type LoadedTailorDBNamespaces, type LogMode, type LogOptions, MIGRATE_FILE_NAME, MIGRATE_PGLITE_TEST_FILE_NAME, MIGRATE_TEST_FILE_NAME, MIGRATION_LABEL_KEY, type MachineUserInfo, type MachineUserName, type MachineUserTokenInfo, type GenerateOptions$1 as MigrateGenerateOptions, type MigrationBundleResult, type MigrationDiff, type NamespaceWithMigrations, type NormalizedSchemaSnapshot, type OAuth2ClientCredentials, type OAuth2ClientInfo, type OperatorClient, type OperatorFieldConfig, type OrganizationInfo, type OrganizationTreeOptions, type OutOptions, type ParsedField, type PlanAppIdsParams, type Plugin, type PluginAttachment, type PluginGeneratedTableSource, type RemoveAdoptedConfigIdsResult, type RemoveOptions, type RemoveUserOptions, type Resolver, type RestoreWorkspaceOptions, type ResumeWorkflowOptions, type ResumeWorkflowResultWithWait, SCHEMA_FILE_NAME, type SchemaSnapshot, type ScriptExecutionOptions, type ScriptExecutionResult, type ScriptInvoker, type SeedBundleResult, type SeedChunk, type SeedContext, type SeedData, type SeedDumpBundleResult, type SeedIdpUserContext, type SeedNamespaceConfig, type ShowInfo, type ShowOptions, type SnapshotFieldConfig, type StartWorkflowResultWithWait, type StartWorkflowTypedOptions, type DeployResult as StaticWebsiteDeployResult, TAILOR_LOCK_FILENAME, TAILOR_LOCK_VERSION, type TailorDBNamespaceData, type TailorDBNamespaceSelector, type TailorDBSnapshotType, type TailorDBType, type TriggerExecutorResult, type TriggerExecutorTypedOptions, type TruncateOptions, type TypeSourceInfoEntry, type UpdateFolderOptions, type UpdateOrganizationOptions, type UpdateUserOptions, type UserInfo, type UserOrganizationInfo, type WaitOptions, type WaitWorkflowExecutionOptions, type WatchExecutorJobResult, type WatchExecutorJobTypedOptions, type WebhookExecutorInfo, type WorkflowExecutionInfo, type WorkflowExecutionWaitInfo, type WorkflowInfo, type WorkflowJobExecutionInfo, type WorkflowListInfo, type WorkflowWaitOutput, type WorkflowWaitResult, type WorkspaceDetails, type WorkspaceInfo, annotateTerminalError, apiCall, deploy as apply, arg, assertWritable, bundleMigrationScript, bundleSeedDumpScript, bundleSeedScript, chunkSeedData, compareLocalTypesWithSnapshot, compareSnapshots, configArg, confirmationArgs, createCommonArgs, createFolder, createSnapshotFromLocalTypes, createWorkspace, defineAppCommand, defineCommand, deleteFolder, deleteWorkspace, deploy, deployStaticWebsite, deploymentArgs, ensureConfigId, errorToJson, executeScript, extractOwnedNamespaces, findAppIdLock, formatDiffSummary, formatMigrationDiff, generate, generateUserTypes, getAppHealth, getExecutor, getExecutorJob, getExecutorWaitFailureMessage, getFolder, getFunctionRegistry, getLatestMigrationNumber, getMachineUserToken, getMigrationDirPath, getMigrationFilePath, getMigrationFiles, getNamespacesWithMigrations, getNextMigrationNumber, getOAuth2Client, getOrganization, getWorkflow, getWorkflowExecution, getWorkspace, hasChanges, initOperatorClient, inviteUser, isPluginGeneratedTable, listApps, listExecutorJobs, listExecutors, listFolders, listFunctionRegistries, listMachineUsers, listOAuth2Clients, listOrganizations, listUsers, listWebhookExecutors, listWorkflowExecutions, listWorkflows, listWorkspaces, loadAccessToken, loadConfig, loadEnvFiles, loadSeedContext, loadTailorDBNamespaces, loadWorkspaceId, logBetaWarning, logger, generate$1 as migrateGenerate, organizationTree, parseAppIds, planAppIds, prompt, query, reconstructSnapshotFromMigrations, remove, removeAdoptedConfigIds, removeUser, restoreWorkspace, resumeWorkflow, runCommand, runMain, serializeError, show, startWorkflow, styles, triggerExecutor, truncate, updateFolder, updateOrganization, updateUser, waitForExecution, waitWorkflowExecution, watchExecutorJob, withSourceLocation, workspaceArgs, workspaceNameSchema };