@tailor-platform/sdk 2.13.1 → 2.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{application-D3HlhR3i.mjs → application-CiN_er9X.mjs} +15 -11
  3. package/dist/application-CiN_er9X.mjs.map +1 -0
  4. package/dist/application-_8rjQRx8.mjs +1 -0
  5. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +1 -0
  6. package/dist/cli/lib.mjs +1 -1
  7. package/dist/cli/lib.mjs.map +1 -1
  8. package/dist/cli/main.mjs +43 -41
  9. package/dist/cli/main.mjs.map +1 -1
  10. package/dist/completion/zsh-worker.zsh +1 -1
  11. package/dist/configure/index.d.mts +4 -4
  12. package/dist/configure/index.mjs +1 -1
  13. package/dist/configure/index.mjs.map +1 -1
  14. package/dist/configure/services/tailordb/schema.d.mts +1 -1
  15. package/dist/configure/types/field.types.d.mts +8 -1
  16. package/dist/date-DrUO8rOJ.mjs +2 -0
  17. package/dist/date-DrUO8rOJ.mjs.map +1 -0
  18. package/dist/{register-ts-hook-BJmGCQAA.mjs → register-ts-hook-DS1zYiCV.mjs} +32 -32
  19. package/dist/register-ts-hook-DS1zYiCV.mjs.map +1 -0
  20. package/dist/runtime/date.d.mts +17 -0
  21. package/dist/runtime/index.d.mts +2 -1
  22. package/dist/runtime/index.mjs +1 -1
  23. package/dist/schema-DMlLMsWA.mjs +2 -0
  24. package/dist/schema-DMlLMsWA.mjs.map +1 -0
  25. package/dist/service-7SCy2bhm.mjs +7 -0
  26. package/dist/service-7SCy2bhm.mjs.map +1 -0
  27. package/dist/service-CWFQ8EVo.mjs +1 -0
  28. package/dist/types/resolver.generated.d.mts +2 -0
  29. package/docs/services/resolver.md +21 -0
  30. package/docs/services/tailordb-migration.md +25 -3
  31. package/docs/services/tailordb.md +2 -0
  32. package/package.json +2 -2
  33. package/dist/application-BFTkaW6X.mjs +0 -1
  34. package/dist/application-D3HlhR3i.mjs.map +0 -1
  35. package/dist/register-ts-hook-BJmGCQAA.mjs.map +0 -1
  36. package/dist/schema-6d_OHyZf.mjs +0 -2
  37. package/dist/schema-6d_OHyZf.mjs.map +0 -1
  38. package/dist/service-BzsSm2f6.mjs +0 -7
  39. package/dist/service-BzsSm2f6.mjs.map +0 -1
  40. package/dist/service-CmwD9bwv.mjs +0 -1
@@ -0,0 +1 @@
1
+ import{n as e,t}from"./application-CiN_er9X.mjs";export{t as defineApplication,e as generatePluginFilesIfNeeded};
@@ -251,6 +251,7 @@ interface BreakingChangeInfo {
251
251
  */
252
252
  interface WarningChangeInfo {
253
253
  tableName: string;
254
+ /** Field name, or the dotted path of a member inside a nested field (e.g. `address.zip`). */
254
255
  fieldName?: string;
255
256
  reason: string;
256
257
  }
package/dist/cli/lib.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{n as ee,r as e}from"../logger-CCjs1DuH.mjs";import{A as t,Ar as n,At as r,B as i,Bn as a,Bt as o,Cn as s,Cr as c,D as l,Et as u,F as d,Fn as f,G as p,Gr as m,Gt as h,H as g,Hn as _,It as v,J as y,Jn as b,Jr as x,Jt as S,Kn as C,Lr as w,Lt as T,M as E,N as D,Ot as O,P as k,Pt as A,Q as j,Qn as M,Qr as N,Qt as P,Rn as F,Rt as I,S as L,St as R,T as z,Tr as B,Tt as V,U as H,Un as U,Ut as W,Vn as G,Vt as K,Xn as q,Xr as J,Y,Yn as X,Yr as Z,Zn as Q,Zr as te,Zt as ne,_ as $,b as re,ct as ie,d as ae,dn as oe,et as se,fr as ce,ft as le,h as ue,ht as de,i as fe,ii as pe,it as me,jt as he,k as ge,kn as _e,l as ve,mr as ye,mt as be,n as xe,nr as Se,nt as Ce,on as we,or as Te,ot as Ee,p as De,pn as Oe,pr as ke,qt as Ae,r as je,rn as Me,s as Ne,sr as Pe,t as Fe,un as Ie,ut as Le,vt as Re,wr as ze,wt as Be,xr as Ve,y as He,yt as Ue,zn as We}from"../register-ts-hook-BJmGCQAA.mjs";import{Q as Ge}from"../application-D3HlhR3i.mjs";import{t as Ke}from"../type-source--ZNcV8RJ.mjs";import{arg as qe,defineCommand as Je,runCommand as Ye,runMain as Xe}from"politty";await Fe(new URL(`./ts-hook.mjs`,import.meta.url));export{We as DB_TYPES_FILE_NAME,a as DIFF_FILE_NAME,G as INITIAL_SCHEMA_NUMBER,_ as MIGRATE_FILE_NAME,U as MIGRATE_TEST_FILE_NAME,Se as MIGRATION_LABEL_KEY,C as SCHEMA_FILE_NAME,c as apiCall,P as apply,P as deploy,qe as arg,ze as assertWritable,s as bundleMigrationScript,k as bundleSeedScript,D as chunkSeedData,Te as compareLocalTypesWithSnapshot,Pe as compareSnapshots,x as configArg,Z as confirmationArgs,J as createCommonArgs,Le as createFolder,f as createSnapshotFromLocalTypes,we as createWorkspace,m as defineAppCommand,Je as defineCommand,ie as deleteFolder,He as deleteWorkspace,g as deployStaticWebsite,te as deploymentArgs,oe as ensureConfigId,xe as errorToJson,V as executeScript,Be as extractOwnedNamespaces,ce as formatDiffSummary,ke as formatMigrationDiff,Ue as generate,Oe as generateUserTypes,L as getAppHealth,ne as getExecutor,T as getExecutorJob,I as getExecutorWaitFailureMessage,Ee as getFolder,r as getFunctionRegistry,b as getLatestMigrationNumber,de as getMachineUserToken,X as getMigrationDirPath,q as getMigrationFilePath,Q as getMigrationFiles,_e as getNamespacesWithMigrations,M as getNextMigrationNumber,be as getOAuth2Client,se as getOrganization,h as getWorkflow,Ae as getWorkflowExecution,$ as getWorkspace,ye as hasChanges,Ge as initOperatorClient,De as inviteUser,Ke as isPluginGeneratedTable,re as listApps,o as listExecutorJobs,v as listExecutors,me as listFolders,O as listFunctionRegistries,Re as listMachineUsers,le as listOAuth2Clients,j as listOrganizations,ae as listUsers,he as listWebhookExecutors,S as listWorkflowExecutions,ge as listWorkflows,Me as listWorkspaces,n as loadAccessToken,B as loadConfig,N as loadEnvFiles,E as loadSeedContext,R as loadTailorDBNamespaces,w as loadWorkspaceId,i as logBetaWarning,ee as logger,d as migrateGenerate,Y as organizationTree,Ve as prompt,fe as query,F as reconstructSnapshotFromMigrations,p as remove,ve as removeUser,ue as restoreWorkspace,l as resumeWorkflow,Ye as runCommand,Xe as runMain,je as serializeError,H as show,W as startWorkflow,e as styles,A as triggerExecutor,t as truncate,Ce as updateFolder,y as updateOrganization,Ne as updateUser,u as waitForExecution,z as waitWorkflowExecution,K as watchExecutorJob,pe as workspaceArgs,Ie as workspaceNameSchema};
1
+ import{n as ee,r as e}from"../logger-CCjs1DuH.mjs";import{$n as t,$r as n,A as r,An as i,At as a,B as o,Bn as s,Bt as c,D as l,Er as u,Et as d,F as f,G as p,Gt as m,H as h,Hn as g,In as _,It as v,J as y,Jt as b,Kr as x,Lt as S,M as C,N as w,Ot as T,P as E,Pt as D,Q as O,Qn as k,Qr as A,Qt as j,Rr as M,Rt as N,S as P,Sr as F,St as I,T as L,Tr as R,Tt as z,U as B,Un as V,Ut as H,Vn as U,Vt as W,Wn as G,Xn as K,Xr as q,Y as J,Yn as Y,Yr as X,Zn as Z,Zr as Q,Zt as te,_ as ne,ai as $,b as re,cr as ie,ct as ae,d as oe,dn as se,et as ce,ft as le,h as ue,hr as de,ht as fe,i as pe,it as me,jr as he,jt as ge,k as _e,l as ve,mr as ye,mt as be,n as xe,nt as Se,on as Ce,ot as we,p as Te,pn as Ee,pr as De,qn as Oe,qt as ke,r as Ae,rn as je,rr as Me,s as Ne,sr as Pe,t as Fe,un as Ie,ut as Le,vt as Re,wn as ze,wr as Be,wt as Ve,y as He,yt as Ue,zn as We}from"../register-ts-hook-DS1zYiCV.mjs";import{Q as Ge}from"../application-CiN_er9X.mjs";import{t as Ke}from"../type-source--ZNcV8RJ.mjs";import{arg as qe,defineCommand as Je,runCommand as Ye,runMain as Xe}from"politty";await Fe(new URL(`./ts-hook.mjs`,import.meta.url));export{s as DB_TYPES_FILE_NAME,U as DIFF_FILE_NAME,g as INITIAL_SCHEMA_NUMBER,V as MIGRATE_FILE_NAME,G as MIGRATE_TEST_FILE_NAME,Me as MIGRATION_LABEL_KEY,Oe as SCHEMA_FILE_NAME,Be as apiCall,j as apply,j as deploy,qe as arg,R as assertWritable,ze as bundleMigrationScript,E as bundleSeedScript,w as chunkSeedData,Pe as compareLocalTypesWithSnapshot,ie as compareSnapshots,X as configArg,q as confirmationArgs,Q as createCommonArgs,Le as createFolder,_ as createSnapshotFromLocalTypes,Ce as createWorkspace,x as defineAppCommand,Je as defineCommand,ae as deleteFolder,He as deleteWorkspace,h as deployStaticWebsite,A as deploymentArgs,se as ensureConfigId,xe as errorToJson,z as executeScript,Ve as extractOwnedNamespaces,De as formatDiffSummary,ye as formatMigrationDiff,Ue as generate,Ee as generateUserTypes,P as getAppHealth,te as getExecutor,S as getExecutorJob,N as getExecutorWaitFailureMessage,we as getFolder,a as getFunctionRegistry,Y as getLatestMigrationNumber,fe as getMachineUserToken,K as getMigrationDirPath,Z as getMigrationFilePath,k as getMigrationFiles,i as getNamespacesWithMigrations,t as getNextMigrationNumber,be as getOAuth2Client,ce as getOrganization,m as getWorkflow,ke as getWorkflowExecution,ne as getWorkspace,de as hasChanges,Ge as initOperatorClient,Te as inviteUser,Ke as isPluginGeneratedTable,re as listApps,c as listExecutorJobs,v as listExecutors,me as listFolders,T as listFunctionRegistries,Re as listMachineUsers,le as listOAuth2Clients,O as listOrganizations,oe as listUsers,ge as listWebhookExecutors,b as listWorkflowExecutions,_e as listWorkflows,je as listWorkspaces,he as loadAccessToken,u as loadConfig,n as loadEnvFiles,C as loadSeedContext,I as loadTailorDBNamespaces,M as loadWorkspaceId,o as logBetaWarning,ee as logger,f as migrateGenerate,J as organizationTree,F as prompt,pe as query,We as reconstructSnapshotFromMigrations,p as remove,ve as removeUser,ue as restoreWorkspace,l as resumeWorkflow,Ye as runCommand,Xe as runMain,Ae as serializeError,B as show,H as startWorkflow,e as styles,D as triggerExecutor,r as truncate,Se as updateFolder,y as updateOrganization,Ne as updateUser,d as waitForExecution,L as waitWorkflowExecution,W as watchExecutorJob,$ as workspaceArgs,Ie as workspaceNameSchema};
2
2
  //# sourceMappingURL=lib.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"lib.mjs","names":[],"sources":["../../src/cli/lib.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { registerTsHook } from \"./shared/register-ts-hook\";\n\nawait registerTsHook(new URL(\"./ts-hook.mjs\", import.meta.url));\n\n// CLI foundation shared with plugins. Plugins resolve this package at runtime,\n// so logger state (--json / --verbose) set through these args reaches the SDK\n// code paths they call into. The politty surface is re-exported for the same\n// reason: arg metadata (aliases, env bindings, effects) lives in a politty\n// module-level registry, so registration and parsing must use one politty copy.\nexport { arg, defineCommand, runCommand, runMain } from \"politty\";\nexport { logger, styles, type LogMode, type LogOptions, type OutOptions } from \"./shared/logger\";\nexport { defineAppCommand } from \"./shared/command\";\nexport { logBetaWarning } from \"./shared/beta\";\nexport { prompt } from \"./shared/prompt\";\nexport { workspaceNameSchema } from \"./shared/workspace-name\";\nexport {\n createCommonArgs,\n workspaceArgs,\n configArg,\n confirmationArgs,\n deploymentArgs,\n loadEnvFiles,\n type CommonArgsType,\n} from \"./shared/args\";\nexport { deploy, deploy as apply } from \"./commands/deploy/deploy\";\nexport type { DeployOptions, DeployOptions as ApplyOptions } from \"./commands/deploy/deploy\";\nexport type { BundledScripts } from \"./commands/deploy/function-registry\";\nexport { ensureConfigId } from \"./commands/deploy/config-id-injector\";\nexport { generate } from \"./commands/generate/service\";\nexport type { GenerateOptions } from \"./commands/generate/options\";\nexport { loadConfig, type LoadedConfig } from \"./shared/config-loader\";\nexport { extractOwnedNamespaces } from \"./shared/config\";\nexport { errorToJson, serializeError, type ErrorToJsonOptions } from \"./shared/error-json\";\nexport { generateUserTypes } from \"./shared/type-generator\";\nexport {\n loadTailorDBNamespaces,\n type TailorDBNamespaceSelector,\n type LoadTailorDBNamespacesOptions,\n type LoadedTailorDBNamespaces,\n} from \"./shared/tailordb-namespaces\";\nexport {\n deployStaticWebsite,\n type DeployResult as StaticWebsiteDeployResult,\n} from \"./commands/staticwebsite/deploy\";\nexport { assertWritable } from \"./shared/readonly-guard\";\nexport { isPluginGeneratedTable } from \"#/parser/service/tailordb/type-source\";\nexport type {\n GeneratorResult,\n Plugin,\n PluginAttachment,\n TailorDBNamespaceData,\n} from \"#/plugin/types\";\nexport type {\n TailorDBType,\n TypeSourceInfoEntry,\n ParsedField,\n OperatorFieldConfig,\n PluginGeneratedTableSource,\n} from \"#/parser/service/tailordb/types\";\nexport type { Resolver } from \"#/types/resolver.generated\";\nexport type { Executor } from \"#/types/executor.generated\";\n\nexport {\n show,\n type ShowOptions,\n type ApplicationInfo,\n type ShowInfo,\n type AIGatewayInfo,\n} from \"./commands/show\";\nexport { remove, type RemoveOptions } from \"./commands/remove\";\nexport { createWorkspace, type CreateWorkspaceOptions } from \"./commands/workspace/create\";\nexport { listWorkspaces, type ListWorkspacesOptions } from \"./commands/workspace/list\";\nexport { deleteWorkspace, type DeleteWorkspaceOptions } from \"./commands/workspace/delete\";\nexport { getWorkspace, type GetWorkspaceOptions } from \"./commands/workspace/get\";\nexport { restoreWorkspace, type RestoreWorkspaceOptions } from \"./commands/workspace/restore\";\nexport type { WorkspaceInfo, WorkspaceDetails } from \"./commands/workspace/transform\";\nexport { listUsers, type ListUsersOptions } from \"./commands/workspace/user/list\";\nexport { inviteUser, type InviteUserOptions } from \"./commands/workspace/user/invite\";\nexport { updateUser, type UpdateUserOptions } from \"./commands/workspace/user/update\";\nexport { removeUser, type RemoveUserOptions } from \"./commands/workspace/user/remove\";\nexport type { UserInfo } from \"./commands/workspace/user/transform\";\nexport { listApps, type ListAppsOptions } from \"./commands/workspace/app/list\";\nexport {\n getAppHealth,\n type HealthOptions as GetAppHealthOptions,\n} from \"./commands/workspace/app/health\";\nexport type { AppInfo, AppHealthInfo } from \"./commands/workspace/app/transform\";\nexport { getFunctionRegistry, type GetFunctionRegistryOptions } from \"./commands/function/get\";\nexport {\n listFunctionRegistries,\n type ListFunctionRegistriesOptions,\n} from \"./commands/function/list\";\nexport type { FunctionRegistryInfo } from \"./commands/function/transform\";\nexport {\n listMachineUsers,\n type ListMachineUsersOptions,\n type MachineUserInfo,\n} from \"./commands/machineuser/list\";\nexport {\n getMachineUserToken,\n type GetMachineUserTokenOptions,\n type MachineUserTokenInfo,\n} from \"./commands/machineuser/token\";\nexport { getOAuth2Client, type GetOAuth2ClientOptions } from \"./commands/oauth2client/get\";\nexport { listOAuth2Clients, type ListOAuth2ClientsOptions } from \"./commands/oauth2client/list\";\nexport type { OAuth2ClientInfo, OAuth2ClientCredentials } from \"./commands/oauth2client/transform\";\nexport { listWorkflows, type ListWorkflowsOptions } from \"./commands/workflow/list\";\nexport { getWorkflow, type GetWorkflowTypedOptions } from \"./commands/workflow/get\";\nexport type { MachineUserName } from \"@tailor-platform/sdk\";\nexport {\n startWorkflow,\n type StartWorkflowTypedOptions,\n type StartWorkflowResultWithWait,\n type WaitOptions,\n} from \"./commands/workflow/start\";\nexport {\n listWorkflowExecutions,\n getWorkflowExecution,\n type ListWorkflowExecutionsTypedOptions,\n type GetWorkflowExecutionOptions,\n type GetWorkflowExecutionResult,\n type WorkflowExecutionWaitInfo,\n} from \"./commands/workflow/executions\";\nexport { waitWorkflowExecution, type WorkflowWaitOutput } from \"./commands/workflow/wait\";\nexport type { WaitWorkflowExecutionOptions, WorkflowWaitResult } from \"./commands/workflow/waiter\";\nexport {\n resumeWorkflow,\n type ResumeWorkflowOptions,\n type ResumeWorkflowResultWithWait,\n} from \"./commands/workflow/resume\";\nexport type {\n WorkflowListInfo,\n WorkflowInfo,\n WorkflowExecutionInfo,\n WorkflowJobExecutionInfo,\n} from \"./commands/workflow/transform\";\nexport {\n triggerExecutor,\n type TriggerExecutorTypedOptions,\n type TriggerExecutorResult,\n} from \"./commands/executor/trigger\";\nexport {\n listExecutorJobs,\n getExecutorJob,\n getExecutorWaitFailureMessage,\n watchExecutorJob,\n type ListExecutorJobsTypedOptions,\n type GetExecutorJobTypedOptions,\n type WatchExecutorJobTypedOptions,\n type ExecutorJobDetailInfo,\n type WatchExecutorJobResult,\n} from \"./commands/executor/jobs\";\nexport { listExecutors, type ListExecutorsOptions } from \"./commands/executor/list\";\nexport { getExecutor, type GetExecutorTypedOptions } from \"./commands/executor/get\";\nexport {\n listWebhookExecutors,\n type ListWebhookExecutorsOptions,\n type WebhookExecutorInfo,\n} from \"./commands/executor/webhook\";\nexport type {\n ExecutorJobListInfo,\n ExecutorJobInfo,\n ExecutorJobAttemptInfo,\n ExecutorListInfo,\n ExecutorInfo,\n} from \"./commands/executor/transform\";\nexport { listOrganizations, type ListOrganizationsOptions } from \"./commands/organization/list\";\nexport { getOrganization, type GetOrganizationOptions } from \"./commands/organization/get\";\nexport { updateOrganization, type UpdateOrganizationOptions } from \"./commands/organization/update\";\nexport { organizationTree, type OrganizationTreeOptions } from \"./commands/organization/tree\";\nexport type {\n UserOrganizationInfo,\n OrganizationInfo,\n FolderListInfo,\n FolderInfo,\n} from \"./commands/organization/transform\";\nexport { listFolders, type ListFoldersOptions } from \"./commands/organization/folder/list\";\nexport { getFolder, type GetFolderOptions } from \"./commands/organization/folder/get\";\nexport { createFolder, type CreateFolderOptions } from \"./commands/organization/folder/create\";\nexport { updateFolder, type UpdateFolderOptions } from \"./commands/organization/folder/update\";\nexport { deleteFolder, type DeleteFolderOptions } from \"./commands/organization/folder/delete\";\nexport { loadAccessToken, loadWorkspaceId } from \"./shared/context\";\nexport { apiCall, type ApiCallOptions, type ApiCallResult } from \"./commands/api\";\nexport { query } from \"./query\";\nexport { truncate, type TruncateOptions } from \"./commands/tailordb/truncate\";\n\n// Migration exports\nexport {\n generate as migrateGenerate,\n type GenerateOptions as MigrateGenerateOptions,\n} from \"./commands/tailordb/migrate/generate\";\nexport {\n createSnapshotFromLocalTypes,\n reconstructSnapshotFromMigrations,\n compareSnapshots,\n getNextMigrationNumber,\n getLatestMigrationNumber,\n getMigrationFiles,\n compareLocalTypesWithSnapshot,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport {\n getNamespacesWithMigrations,\n type NamespaceWithMigrations,\n} from \"./commands/tailordb/migrate/config\";\nexport {\n hasChanges,\n formatMigrationDiff,\n formatDiffSummary,\n type MigrationDiff,\n type BreakingChangeInfo,\n} from \"./commands/tailordb/migrate/diff-calculator\";\nexport {\n SCHEMA_FILE_NAME,\n DIFF_FILE_NAME,\n MIGRATE_FILE_NAME,\n MIGRATE_TEST_FILE_NAME,\n DB_TYPES_FILE_NAME,\n INITIAL_SCHEMA_NUMBER,\n getMigrationDirPath,\n getMigrationFilePath,\n type SchemaSnapshot,\n type NormalizedSchemaSnapshot,\n type TailorDBSnapshotType,\n type SnapshotFieldConfig,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport { MIGRATION_LABEL_KEY } from \"./commands/tailordb/migrate/types\";\n\n// Seed exports\nexport {\n loadSeedContext,\n type LoadSeedContextOptions,\n type SeedContext,\n type SeedIdpUserContext,\n type SeedNamespaceConfig,\n} from \"./shared/seed-context\";\nexport {\n chunkSeedData,\n type SeedChunk,\n type ChunkSeedDataOptions,\n type SeedData,\n} from \"./shared/seed-chunker\";\nexport { bundleSeedScript, type SeedBundleResult } from \"./commands/generate/seed/bundler\";\nexport {\n bundleMigrationScript,\n type MigrationBundleResult,\n} from \"./commands/tailordb/migrate/bundler\";\nexport {\n executeScript,\n waitForExecution,\n type ScriptExecutionOptions,\n type ScriptExecutionResult,\n type ScriptInvoker,\n type ExecutionWaitResult,\n} from \"./shared/script-executor\";\nexport { initOperatorClient, type OperatorClient } from \"./shared/client\";\nexport type { AuthInvoker } from \"@tailor-platform/tailor-proto/auth_resource_pb\";\n"],"mappings":"wiCAGA,MAAM,GAAe,IAAI,IAAI,gBAAiB,YAAY,GAAG,CAAC"}
1
+ {"version":3,"file":"lib.mjs","names":[],"sources":["../../src/cli/lib.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { registerTsHook } from \"./shared/register-ts-hook\";\n\nawait registerTsHook(new URL(\"./ts-hook.mjs\", import.meta.url));\n\n// CLI foundation shared with plugins. Plugins resolve this package at runtime,\n// so logger state (--json / --verbose) set through these args reaches the SDK\n// code paths they call into. The politty surface is re-exported for the same\n// reason: arg metadata (aliases, env bindings, effects) lives in a politty\n// module-level registry, so registration and parsing must use one politty copy.\nexport { arg, defineCommand, runCommand, runMain } from \"politty\";\nexport { logger, styles, type LogMode, type LogOptions, type OutOptions } from \"./shared/logger\";\nexport { defineAppCommand } from \"./shared/command\";\nexport { logBetaWarning } from \"./shared/beta\";\nexport { prompt } from \"./shared/prompt\";\nexport { workspaceNameSchema } from \"./shared/workspace-name\";\nexport {\n createCommonArgs,\n workspaceArgs,\n configArg,\n confirmationArgs,\n deploymentArgs,\n loadEnvFiles,\n type CommonArgsType,\n} from \"./shared/args\";\nexport { deploy, deploy as apply } from \"./commands/deploy/deploy\";\nexport type { DeployOptions, DeployOptions as ApplyOptions } from \"./commands/deploy/deploy\";\nexport type { BundledScripts } from \"./commands/deploy/function-registry\";\nexport { ensureConfigId } from \"./commands/deploy/config-id-injector\";\nexport { generate } from \"./commands/generate/service\";\nexport type { GenerateOptions } from \"./commands/generate/options\";\nexport { loadConfig, type LoadedConfig } from \"./shared/config-loader\";\nexport { extractOwnedNamespaces } from \"./shared/config\";\nexport { errorToJson, serializeError, type ErrorToJsonOptions } from \"./shared/error-json\";\nexport { generateUserTypes } from \"./shared/type-generator\";\nexport {\n loadTailorDBNamespaces,\n type TailorDBNamespaceSelector,\n type LoadTailorDBNamespacesOptions,\n type LoadedTailorDBNamespaces,\n} from \"./shared/tailordb-namespaces\";\nexport {\n deployStaticWebsite,\n type DeployResult as StaticWebsiteDeployResult,\n} from \"./commands/staticwebsite/deploy\";\nexport { assertWritable } from \"./shared/readonly-guard\";\nexport { isPluginGeneratedTable } from \"#/parser/service/tailordb/type-source\";\nexport type {\n GeneratorResult,\n Plugin,\n PluginAttachment,\n TailorDBNamespaceData,\n} from \"#/plugin/types\";\nexport type {\n TailorDBType,\n TypeSourceInfoEntry,\n ParsedField,\n OperatorFieldConfig,\n PluginGeneratedTableSource,\n} from \"#/parser/service/tailordb/types\";\nexport type { Resolver } from \"#/types/resolver.generated\";\nexport type { Executor } from \"#/types/executor.generated\";\n\nexport {\n show,\n type ShowOptions,\n type ApplicationInfo,\n type ShowInfo,\n type AIGatewayInfo,\n} from \"./commands/show\";\nexport { remove, type RemoveOptions } from \"./commands/remove\";\nexport { createWorkspace, type CreateWorkspaceOptions } from \"./commands/workspace/create\";\nexport { listWorkspaces, type ListWorkspacesOptions } from \"./commands/workspace/list\";\nexport { deleteWorkspace, type DeleteWorkspaceOptions } from \"./commands/workspace/delete\";\nexport { getWorkspace, type GetWorkspaceOptions } from \"./commands/workspace/get\";\nexport { restoreWorkspace, type RestoreWorkspaceOptions } from \"./commands/workspace/restore\";\nexport type { WorkspaceInfo, WorkspaceDetails } from \"./commands/workspace/transform\";\nexport { listUsers, type ListUsersOptions } from \"./commands/workspace/user/list\";\nexport { inviteUser, type InviteUserOptions } from \"./commands/workspace/user/invite\";\nexport { updateUser, type UpdateUserOptions } from \"./commands/workspace/user/update\";\nexport { removeUser, type RemoveUserOptions } from \"./commands/workspace/user/remove\";\nexport type { UserInfo } from \"./commands/workspace/user/transform\";\nexport { listApps, type ListAppsOptions } from \"./commands/workspace/app/list\";\nexport {\n getAppHealth,\n type HealthOptions as GetAppHealthOptions,\n} from \"./commands/workspace/app/health\";\nexport type { AppInfo, AppHealthInfo } from \"./commands/workspace/app/transform\";\nexport { getFunctionRegistry, type GetFunctionRegistryOptions } from \"./commands/function/get\";\nexport {\n listFunctionRegistries,\n type ListFunctionRegistriesOptions,\n} from \"./commands/function/list\";\nexport type { FunctionRegistryInfo } from \"./commands/function/transform\";\nexport {\n listMachineUsers,\n type ListMachineUsersOptions,\n type MachineUserInfo,\n} from \"./commands/machineuser/list\";\nexport {\n getMachineUserToken,\n type GetMachineUserTokenOptions,\n type MachineUserTokenInfo,\n} from \"./commands/machineuser/token\";\nexport { getOAuth2Client, type GetOAuth2ClientOptions } from \"./commands/oauth2client/get\";\nexport { listOAuth2Clients, type ListOAuth2ClientsOptions } from \"./commands/oauth2client/list\";\nexport type { OAuth2ClientInfo, OAuth2ClientCredentials } from \"./commands/oauth2client/transform\";\nexport { listWorkflows, type ListWorkflowsOptions } from \"./commands/workflow/list\";\nexport { getWorkflow, type GetWorkflowTypedOptions } from \"./commands/workflow/get\";\nexport type { MachineUserName } from \"@tailor-platform/sdk\";\nexport {\n startWorkflow,\n type StartWorkflowTypedOptions,\n type StartWorkflowResultWithWait,\n type WaitOptions,\n} from \"./commands/workflow/start\";\nexport {\n listWorkflowExecutions,\n getWorkflowExecution,\n type ListWorkflowExecutionsTypedOptions,\n type GetWorkflowExecutionOptions,\n type GetWorkflowExecutionResult,\n type WorkflowExecutionWaitInfo,\n} from \"./commands/workflow/executions\";\nexport { waitWorkflowExecution, type WorkflowWaitOutput } from \"./commands/workflow/wait\";\nexport type { WaitWorkflowExecutionOptions, WorkflowWaitResult } from \"./commands/workflow/waiter\";\nexport {\n resumeWorkflow,\n type ResumeWorkflowOptions,\n type ResumeWorkflowResultWithWait,\n} from \"./commands/workflow/resume\";\nexport type {\n WorkflowListInfo,\n WorkflowInfo,\n WorkflowExecutionInfo,\n WorkflowJobExecutionInfo,\n} from \"./commands/workflow/transform\";\nexport {\n triggerExecutor,\n type TriggerExecutorTypedOptions,\n type TriggerExecutorResult,\n} from \"./commands/executor/trigger\";\nexport {\n listExecutorJobs,\n getExecutorJob,\n getExecutorWaitFailureMessage,\n watchExecutorJob,\n type ListExecutorJobsTypedOptions,\n type GetExecutorJobTypedOptions,\n type WatchExecutorJobTypedOptions,\n type ExecutorJobDetailInfo,\n type WatchExecutorJobResult,\n} from \"./commands/executor/jobs\";\nexport { listExecutors, type ListExecutorsOptions } from \"./commands/executor/list\";\nexport { getExecutor, type GetExecutorTypedOptions } from \"./commands/executor/get\";\nexport {\n listWebhookExecutors,\n type ListWebhookExecutorsOptions,\n type WebhookExecutorInfo,\n} from \"./commands/executor/webhook\";\nexport type {\n ExecutorJobListInfo,\n ExecutorJobInfo,\n ExecutorJobAttemptInfo,\n ExecutorListInfo,\n ExecutorInfo,\n} from \"./commands/executor/transform\";\nexport { listOrganizations, type ListOrganizationsOptions } from \"./commands/organization/list\";\nexport { getOrganization, type GetOrganizationOptions } from \"./commands/organization/get\";\nexport { updateOrganization, type UpdateOrganizationOptions } from \"./commands/organization/update\";\nexport { organizationTree, type OrganizationTreeOptions } from \"./commands/organization/tree\";\nexport type {\n UserOrganizationInfo,\n OrganizationInfo,\n FolderListInfo,\n FolderInfo,\n} from \"./commands/organization/transform\";\nexport { listFolders, type ListFoldersOptions } from \"./commands/organization/folder/list\";\nexport { getFolder, type GetFolderOptions } from \"./commands/organization/folder/get\";\nexport { createFolder, type CreateFolderOptions } from \"./commands/organization/folder/create\";\nexport { updateFolder, type UpdateFolderOptions } from \"./commands/organization/folder/update\";\nexport { deleteFolder, type DeleteFolderOptions } from \"./commands/organization/folder/delete\";\nexport { loadAccessToken, loadWorkspaceId } from \"./shared/context\";\nexport { apiCall, type ApiCallOptions, type ApiCallResult } from \"./commands/api\";\nexport { query } from \"./query\";\nexport { truncate, type TruncateOptions } from \"./commands/tailordb/truncate\";\n\n// Migration exports\nexport {\n generate as migrateGenerate,\n type GenerateOptions as MigrateGenerateOptions,\n} from \"./commands/tailordb/migrate/generate\";\nexport {\n createSnapshotFromLocalTypes,\n reconstructSnapshotFromMigrations,\n compareSnapshots,\n getNextMigrationNumber,\n getLatestMigrationNumber,\n getMigrationFiles,\n compareLocalTypesWithSnapshot,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport {\n getNamespacesWithMigrations,\n type NamespaceWithMigrations,\n} from \"./commands/tailordb/migrate/config\";\nexport {\n hasChanges,\n formatMigrationDiff,\n formatDiffSummary,\n type MigrationDiff,\n type BreakingChangeInfo,\n} from \"./commands/tailordb/migrate/diff-calculator\";\nexport {\n SCHEMA_FILE_NAME,\n DIFF_FILE_NAME,\n MIGRATE_FILE_NAME,\n MIGRATE_TEST_FILE_NAME,\n DB_TYPES_FILE_NAME,\n INITIAL_SCHEMA_NUMBER,\n getMigrationDirPath,\n getMigrationFilePath,\n type SchemaSnapshot,\n type NormalizedSchemaSnapshot,\n type TailorDBSnapshotType,\n type SnapshotFieldConfig,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport { MIGRATION_LABEL_KEY } from \"./commands/tailordb/migrate/types\";\n\n// Seed exports\nexport {\n loadSeedContext,\n type LoadSeedContextOptions,\n type SeedContext,\n type SeedIdpUserContext,\n type SeedNamespaceConfig,\n} from \"./shared/seed-context\";\nexport {\n chunkSeedData,\n type SeedChunk,\n type ChunkSeedDataOptions,\n type SeedData,\n} from \"./shared/seed-chunker\";\nexport { bundleSeedScript, type SeedBundleResult } from \"./commands/generate/seed/bundler\";\nexport {\n bundleMigrationScript,\n type MigrationBundleResult,\n} from \"./commands/tailordb/migrate/bundler\";\nexport {\n executeScript,\n waitForExecution,\n type ScriptExecutionOptions,\n type ScriptExecutionResult,\n type ScriptInvoker,\n type ExecutionWaitResult,\n} from \"./shared/script-executor\";\nexport { initOperatorClient, type OperatorClient } from \"./shared/client\";\nexport type { AuthInvoker } from \"@tailor-platform/tailor-proto/auth_resource_pb\";\n"],"mappings":"6iCAGA,MAAM,GAAe,IAAI,IAAI,gBAAiB,YAAY,GAAG,CAAC"}