@tailor-platform/sdk 2.33.0 → 2.35.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 (336) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/dist/ai/index.d.mts +1 -3
  3. package/dist/{application-Bet1K5C4.mjs → application-Bj2MtL-d.mjs} +1 -1
  4. package/dist/application-DIsQSnj3.mjs +207 -0
  5. package/dist/application-DIsQSnj3.mjs.map +1 -0
  6. package/dist/cli/cache/bundle-cache.d.mts +1 -0
  7. package/dist/cli/commands/api/api-call.d.mts +1 -3
  8. package/dist/cli/commands/deploy/aigateway.d.mts +1 -0
  9. package/dist/cli/commands/deploy/app-id-lock.d.mts +1 -3
  10. package/dist/cli/commands/deploy/application.d.mts +1 -0
  11. package/dist/cli/commands/deploy/auth.d.mts +1 -0
  12. package/dist/cli/commands/deploy/config-id-injector.d.mts +1 -3
  13. package/dist/cli/commands/deploy/confirm.d.mts +1 -0
  14. package/dist/cli/commands/deploy/deploy.d.mts +4 -3
  15. package/dist/cli/commands/deploy/executor.d.mts +1 -0
  16. package/dist/cli/commands/deploy/function-registry-types.d.mts +1 -3
  17. package/dist/cli/commands/deploy/function-registry.d.mts +1 -0
  18. package/dist/cli/commands/deploy/idp.d.mts +1 -0
  19. package/dist/cli/commands/deploy/owned-resource.d.mts +3 -0
  20. package/dist/cli/commands/deploy/resolver.d.mts +1 -0
  21. package/dist/cli/commands/deploy/secret-manager.d.mts +1 -0
  22. package/dist/cli/commands/deploy/staticwebsite.d.mts +1 -0
  23. package/dist/cli/commands/deploy/tailordb/migration-validation.d.mts +1 -2
  24. package/dist/cli/commands/deploy/tailordb/plan.d.mts +1 -0
  25. package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +2 -1
  26. package/dist/cli/commands/deploy/workflow.d.mts +1 -0
  27. package/dist/cli/commands/executor/get.d.mts +0 -2
  28. package/dist/cli/commands/executor/jobs.d.mts +0 -2
  29. package/dist/cli/commands/executor/list.d.mts +1 -3
  30. package/dist/cli/commands/executor/transform.d.mts +1 -3
  31. package/dist/cli/commands/executor/trigger.d.mts +0 -2
  32. package/dist/cli/commands/executor/webhook.d.mts +1 -3
  33. package/dist/cli/commands/function/get.d.mts +0 -2
  34. package/dist/cli/commands/function/list.d.mts +0 -2
  35. package/dist/cli/commands/function/transform.d.mts +1 -3
  36. package/dist/cli/commands/generate/options.d.mts +1 -3
  37. package/dist/cli/commands/generate/seed/bundler.d.mts +1 -3
  38. package/dist/cli/commands/generate/service.d.mts +1 -3
  39. package/dist/cli/commands/machineuser/list.d.mts +1 -3
  40. package/dist/cli/commands/machineuser/token.d.mts +1 -3
  41. package/dist/cli/commands/oauth2client/get.d.mts +1 -3
  42. package/dist/cli/commands/oauth2client/list.d.mts +1 -3
  43. package/dist/cli/commands/oauth2client/transform.d.mts +1 -3
  44. package/dist/cli/commands/organization/folder/create.d.mts +0 -2
  45. package/dist/cli/commands/organization/folder/delete.d.mts +0 -2
  46. package/dist/cli/commands/organization/folder/get.d.mts +0 -2
  47. package/dist/cli/commands/organization/folder/list.d.mts +0 -2
  48. package/dist/cli/commands/organization/folder/update.d.mts +0 -2
  49. package/dist/cli/commands/organization/get.d.mts +0 -2
  50. package/dist/cli/commands/organization/list.d.mts +1 -3
  51. package/dist/cli/commands/organization/transform.d.mts +1 -3
  52. package/dist/cli/commands/organization/tree.d.mts +0 -2
  53. package/dist/cli/commands/organization/update.d.mts +0 -2
  54. package/dist/cli/commands/remove.d.mts +1 -3
  55. package/dist/cli/commands/show.d.mts +0 -2
  56. package/dist/cli/commands/staticwebsite/deploy.d.mts +1 -3
  57. package/dist/cli/commands/tailordb/migrate/bundler.d.mts +1 -3
  58. package/dist/cli/commands/tailordb/migrate/config.d.mts +1 -3
  59. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +0 -2
  60. package/dist/cli/commands/tailordb/migrate/generate.d.mts +2 -4
  61. package/dist/cli/commands/tailordb/migrate/rename-detection.d.mts +1 -3
  62. package/dist/cli/commands/tailordb/migrate/snapshot-comparison.d.mts +1 -3
  63. package/dist/cli/commands/tailordb/migrate/snapshot-files.d.mts +1 -3
  64. package/dist/cli/commands/tailordb/migrate/snapshot-local.d.mts +1 -3
  65. package/dist/cli/commands/tailordb/migrate/snapshot-migrations.d.mts +1 -3
  66. package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +0 -2
  67. package/dist/cli/commands/tailordb/migrate/types.d.mts +1 -3
  68. package/dist/cli/commands/tailordb/truncate.d.mts +1 -3
  69. package/dist/cli/commands/workflow/executions.d.mts +0 -2
  70. package/dist/cli/commands/workflow/get.d.mts +0 -2
  71. package/dist/cli/commands/workflow/list.d.mts +1 -3
  72. package/dist/cli/commands/workflow/resume.d.mts +1 -3
  73. package/dist/cli/commands/workflow/start.d.mts +0 -2
  74. package/dist/cli/commands/workflow/status.d.mts +1 -3
  75. package/dist/cli/commands/workflow/transform.d.mts +1 -3
  76. package/dist/cli/commands/workflow/wait.d.mts +1 -3
  77. package/dist/cli/commands/workflow/waiter.d.mts +1 -3
  78. package/dist/cli/commands/workspace/app/health.d.mts +0 -2
  79. package/dist/cli/commands/workspace/app/list.d.mts +0 -2
  80. package/dist/cli/commands/workspace/app/transform.d.mts +1 -3
  81. package/dist/cli/commands/workspace/create.d.mts +0 -2
  82. package/dist/cli/commands/workspace/delete.d.mts +0 -2
  83. package/dist/cli/commands/workspace/expiry.d.mts +1 -3
  84. package/dist/cli/commands/workspace/get.d.mts +0 -2
  85. package/dist/cli/commands/workspace/list.d.mts +1 -3
  86. package/dist/cli/commands/workspace/restore.d.mts +0 -2
  87. package/dist/cli/commands/workspace/transform.d.mts +1 -3
  88. package/dist/cli/commands/workspace/user/invite.d.mts +0 -2
  89. package/dist/cli/commands/workspace/user/list.d.mts +0 -2
  90. package/dist/cli/commands/workspace/user/remove.d.mts +0 -2
  91. package/dist/cli/commands/workspace/user/transform.d.mts +1 -3
  92. package/dist/cli/commands/workspace/user/update.d.mts +0 -2
  93. package/dist/cli/lib.d.mts +1 -1
  94. package/dist/cli/lib.mjs +1 -1
  95. package/dist/cli/lib.mjs.map +1 -1
  96. package/dist/cli/main.d.mts +1 -3
  97. package/dist/cli/main.mjs +55 -51
  98. package/dist/cli/main.mjs.map +1 -1
  99. package/dist/cli/query/index.d.mts +0 -2
  100. package/dist/cli/services/application.d.mts +6 -4
  101. package/dist/cli/services/executor/service.d.mts +2 -2
  102. package/dist/cli/services/function-bundle.d.mts +8 -0
  103. package/dist/cli/services/http-adapter/bundler.d.mts +7 -1
  104. package/dist/cli/services/resolver/service.d.mts +2 -2
  105. package/dist/cli/services/workflow/bundler.d.mts +2 -3
  106. package/dist/cli/shared/args.d.mts +0 -2
  107. package/dist/cli/shared/beta.d.mts +1 -3
  108. package/dist/cli/shared/client.d.mts +4 -3
  109. package/dist/cli/shared/command.d.mts +2 -4
  110. package/dist/cli/shared/config-loader.d.mts +2 -4
  111. package/dist/cli/shared/config.d.mts +1 -3
  112. package/dist/cli/shared/context.d.mts +0 -2
  113. package/dist/cli/shared/error-diagnostics.d.mts +1 -3
  114. package/dist/cli/shared/error-json.d.mts +1 -3
  115. package/dist/cli/shared/function-execution.d.mts +1 -3
  116. package/dist/cli/shared/github-actions.d.mts +1 -3
  117. package/dist/cli/shared/logger.d.mts +7 -4
  118. package/dist/cli/shared/platform-bundle-plugin.d.mts +1 -0
  119. package/dist/cli/shared/prompt.d.mts +1 -3
  120. package/dist/cli/shared/readonly-guard.d.mts +0 -2
  121. package/dist/cli/shared/script-executor.d.mts +1 -3
  122. package/dist/cli/shared/sdk-builder-pure-plugin.d.mts +1 -0
  123. package/dist/cli/shared/seed-chunker.d.mts +1 -3
  124. package/dist/cli/shared/seed-context.d.mts +0 -2
  125. package/dist/cli/shared/sourcemap-sources.d.mts +1 -0
  126. package/dist/cli/shared/tailordb-namespaces.d.mts +1 -3
  127. package/dist/cli/shared/type-generator.d.mts +0 -2
  128. package/dist/cli/shared/workspace-name.d.mts +1 -3
  129. package/dist/completion/zsh-worker.zsh +5 -5
  130. package/dist/configure/config/index.d.mts +2 -4
  131. package/dist/configure/config/types.d.mts +27 -4
  132. package/dist/configure/index.d.mts +7 -9
  133. package/dist/configure/index.mjs +1 -1
  134. package/dist/configure/services/aigateway/index.d.mts +0 -2
  135. package/dist/configure/services/aigateway/types.d.mts +0 -2
  136. package/dist/configure/services/auth/index.d.mts +0 -2
  137. package/dist/configure/services/auth/types.d.mts +0 -2
  138. package/dist/configure/services/executor/executor.d.mts +0 -2
  139. package/dist/configure/services/executor/operation.d.mts +0 -2
  140. package/dist/configure/services/executor/trigger/event.d.mts +0 -2
  141. package/dist/configure/services/executor/trigger/index.d.mts +0 -2
  142. package/dist/configure/services/executor/trigger/schedule.d.mts +0 -2
  143. package/dist/configure/services/executor/trigger/webhook.d.mts +1 -3
  144. package/dist/configure/services/http-adapter/http-adapter.d.mts +0 -2
  145. package/dist/configure/services/idp/index.d.mts +0 -2
  146. package/dist/configure/services/idp/permission.d.mts +0 -2
  147. package/dist/configure/services/idp/types.d.mts +0 -2
  148. package/dist/configure/services/index.d.mts +5 -5
  149. package/dist/configure/services/resolver/index.d.mts +1 -1
  150. package/dist/configure/services/resolver/permission.d.mts +0 -2
  151. package/dist/configure/services/resolver/resolver.d.mts +1 -3
  152. package/dist/configure/services/resolver/types.d.mts +1 -3
  153. package/dist/configure/services/secrets/index.d.mts +0 -2
  154. package/dist/configure/services/secrets/types.d.mts +0 -2
  155. package/dist/configure/services/staticwebsite/index.d.mts +0 -2
  156. package/dist/configure/services/staticwebsite/types.d.mts +0 -2
  157. package/dist/configure/services/tailordb/permission.d.mts +0 -2
  158. package/dist/configure/services/tailordb/schema.d.mts +0 -2
  159. package/dist/configure/services/tailordb/types.d.mts +0 -2
  160. package/dist/configure/services/workflow/execution-policy.d.mts +0 -2
  161. package/dist/configure/services/workflow/execution-policy.types.d.mts +0 -2
  162. package/dist/configure/services/workflow/job.d.mts +0 -2
  163. package/dist/configure/services/workflow/wait-point.d.mts +0 -2
  164. package/dist/configure/services/workflow/workflow.d.mts +0 -2
  165. package/dist/configure/types/aigateway-name.d.mts +1 -3
  166. package/dist/configure/types/auth-namespace-name.d.mts +1 -3
  167. package/dist/configure/types/connection-name.d.mts +1 -3
  168. package/dist/configure/types/field.d.mts +1 -3
  169. package/dist/configure/types/field.types.d.mts +0 -2
  170. package/dist/configure/types/idp-name.d.mts +1 -3
  171. package/dist/configure/types/permission-operand.types.d.mts +0 -2
  172. package/dist/configure/types/secret-vault-name.d.mts +1 -3
  173. package/dist/configure/types/type.d.mts +0 -2
  174. package/dist/{crashreport-BCIy33Cz.mjs → crashreport-DGU6lwiX.mjs} +2 -2
  175. package/dist/{crashreport-BCIy33Cz.mjs.map → crashreport-DGU6lwiX.mjs.map} +1 -1
  176. package/dist/crashreport-WsYAWARW.mjs +1 -0
  177. package/dist/{logger-RgtbhJ83.mjs → errors-BXmGBX-7.mjs} +6 -3
  178. package/dist/errors-BXmGBX-7.mjs.map +1 -0
  179. package/dist/field-parse-BQhUAbpM.mjs +2 -0
  180. package/dist/{field-parse-C41e3UAF.mjs.map → field-parse-BQhUAbpM.mjs.map} +1 -1
  181. package/dist/guards-CiFVxoXR.mjs +2 -0
  182. package/dist/guards-CiFVxoXR.mjs.map +1 -0
  183. package/dist/kysely/index.d.mts +0 -2
  184. package/dist/{kysely-type-DxyIWXc6.mjs → kysely-type-B0ri1-Xs.mjs} +9 -7
  185. package/dist/kysely-type-B0ri1-Xs.mjs.map +1 -0
  186. package/dist/manager-B813m43t.mjs +2 -0
  187. package/dist/manager-B813m43t.mjs.map +1 -0
  188. package/dist/parser/service/idp/types.d.mts +1 -3
  189. package/dist/parser/service/tailordb/type-source.d.mts +1 -3
  190. package/dist/parser/service/tailordb/types.d.mts +0 -2
  191. package/dist/plugin/builtin/enum-constants/index.d.mts +0 -2
  192. package/dist/plugin/builtin/file-utils/index.d.mts +0 -2
  193. package/dist/plugin/builtin/kysely-type/index.d.mts +0 -2
  194. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  195. package/dist/plugin/builtin/seed/index.d.mts +0 -2
  196. package/dist/plugin/builtin/seed/seed-type-processor.d.mts +1 -3
  197. package/dist/plugin/get-generated-table.d.mts +1 -3
  198. package/dist/plugin/index.mjs +1 -1
  199. package/dist/plugin/types.d.mts +0 -2
  200. package/dist/plugin/with-context.d.mts +1 -3
  201. package/dist/register-ts-hook-CQ7shKO5.mjs +1055 -0
  202. package/dist/register-ts-hook-CQ7shKO5.mjs.map +1 -0
  203. package/dist/runtime/aigateway.d.mts +1 -3
  204. package/dist/runtime/authconnection.d.mts +1 -3
  205. package/dist/runtime/context.d.mts +0 -2
  206. package/dist/runtime/date.d.mts +0 -2
  207. package/dist/runtime/field-parse.d.mts +0 -2
  208. package/dist/runtime/file.d.mts +0 -2
  209. package/dist/runtime/globals.d.mts +0 -2
  210. package/dist/runtime/iconv.d.mts +1 -3
  211. package/dist/runtime/idp.d.mts +1 -3
  212. package/dist/runtime/index.d.mts +1 -3
  213. package/dist/runtime/index.mjs +1 -1
  214. package/dist/runtime/logger.d.mts +1 -3
  215. package/dist/runtime/secretmanager.d.mts +1 -3
  216. package/dist/runtime/temporal.d.mts +0 -2
  217. package/dist/runtime/types.d.mts +0 -2
  218. package/dist/runtime/workflow.d.mts +0 -2
  219. package/dist/{schema-B6hJQWp6.mjs → schema-BU1aIQ63.mjs} +2 -2
  220. package/dist/{schema-B6hJQWp6.mjs.map → schema-BU1aIQ63.mjs.map} +1 -1
  221. package/dist/secret-file-BxZ-J_Nz.mjs +2 -0
  222. package/dist/secret-file-BxZ-J_Nz.mjs.map +1 -0
  223. package/dist/seed/idp-user-password.d.mts +0 -2
  224. package/dist/seed/index.d.mts +0 -2
  225. package/dist/service-CaGmqg0r.mjs +2 -0
  226. package/dist/{service-9rwi_I4d.mjs.map → service-CaGmqg0r.mjs.map} +1 -1
  227. package/dist/service-DEq_hdht.mjs +1 -0
  228. package/dist/{service-9SBPNpK8.mjs → service-eeXdVrDK.mjs} +4 -4
  229. package/dist/service-eeXdVrDK.mjs.map +1 -0
  230. package/dist/shared/src/color.d.mts +1 -3
  231. package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +1 -3
  232. package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +1 -3
  233. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +1 -3
  234. package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +1 -3
  235. package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +1 -3
  236. package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +1 -3
  237. package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +1 -3
  238. package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +1 -3
  239. package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +1 -3
  240. package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +1 -3
  241. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +1 -3
  242. package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +1 -3
  243. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +1 -3
  244. package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +1 -3
  245. package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +1 -3
  246. package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +1 -3
  247. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +1 -3
  248. package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +1 -3
  249. package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +1 -3
  250. package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +1 -3
  251. package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +1 -3
  252. package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +1 -3
  253. package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +1 -3
  254. package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +1 -3
  255. package/dist/tailor-proto/src/tailor/v1/security_pb.d.mts +1 -3
  256. package/dist/tailor-proto/src/tailor/v1/security_resource_pb.d.mts +1 -3
  257. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +1 -3
  258. package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +1 -3
  259. package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +1 -3
  260. package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +1 -3
  261. package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +1 -3
  262. package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +1 -3
  263. package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +1 -3
  264. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +1 -3
  265. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +1 -3
  266. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +1 -3
  267. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +1 -3
  268. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +1 -3
  269. package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +1 -3
  270. package/dist/types/aigateway.generated.d.mts +1 -3
  271. package/dist/types/app-config.generated.d.mts +1 -3
  272. package/dist/types/auth-connection.generated.d.mts +1 -3
  273. package/dist/types/auth.generated.d.mts +1 -3
  274. package/dist/types/executor.generated.d.mts +1 -3
  275. package/dist/types/field.generated.d.mts +1 -3
  276. package/dist/types/helpers.d.mts +1 -3
  277. package/dist/types/http-adapter.generated.d.mts +1 -3
  278. package/dist/types/idp.generated.d.mts +1 -3
  279. package/dist/types/resolver.generated.d.mts +1 -3
  280. package/dist/types/secrets.generated.d.mts +1 -3
  281. package/dist/types/staticwebsite.generated.d.mts +1 -3
  282. package/dist/types/tailordb.generated.d.mts +1 -3
  283. package/dist/types/workflow.generated.d.mts +1 -3
  284. package/dist/utils/test/index.d.mts +1 -3
  285. package/dist/utils/test/index.mjs +1 -1
  286. package/dist/vitest/date-representation.d.mts +1 -3
  287. package/dist/vitest/environment.d.mts +0 -2
  288. package/dist/vitest/index.d.mts +0 -2
  289. package/dist/vitest/migration-steps.d.mts +1 -3
  290. package/dist/vitest/mock-kysely.d.mts +0 -2
  291. package/dist/vitest/mocks/aigateway.d.mts +0 -2
  292. package/dist/vitest/mocks/authconnection.d.mts +0 -2
  293. package/dist/vitest/mocks/file.d.mts +0 -2
  294. package/dist/vitest/mocks/iconv.d.mts +0 -2
  295. package/dist/vitest/mocks/idp.d.mts +0 -2
  296. package/dist/vitest/mocks/logger.d.mts +0 -2
  297. package/dist/vitest/mocks/secretmanager.d.mts +0 -2
  298. package/dist/vitest/mocks/tailordb-pglite.d.mts +0 -2
  299. package/dist/vitest/mocks/tailordb.d.mts +0 -2
  300. package/dist/vitest/mocks/workflow.d.mts +0 -2
  301. package/dist/vitest/pglite-kysely.d.mts +0 -2
  302. package/dist/vitest/pglite-temporal.d.mts +1 -3
  303. package/dist/vitest/setup.d.mts +0 -2
  304. package/dist/vitest/workflow-local.d.mts +0 -2
  305. package/docs/cli/application.md +2 -1
  306. package/docs/cli/tailordb.md +9 -7
  307. package/docs/cli/user.md +5 -5
  308. package/docs/cli/workspace.md +1 -1
  309. package/docs/cli-reference.md +27 -26
  310. package/docs/configuration.md +15 -2
  311. package/docs/github-actions.md +33 -10
  312. package/docs/services/secret.md +6 -0
  313. package/docs/services/tailordb/index.md +23 -0
  314. package/docs/services/tailordb/migration.md +14 -9
  315. package/docs/testing.md +2 -2
  316. package/package.json +12 -12
  317. package/dist/application-B9_NHiUC.mjs +0 -207
  318. package/dist/application-B9_NHiUC.mjs.map +0 -1
  319. package/dist/cli/commands/tailordb/migrate/remote-state.d.mts +0 -1
  320. package/dist/crashreport-IN6H7GX3.mjs +0 -1
  321. package/dist/errors-BOF68LJ5.mjs +0 -5
  322. package/dist/errors-BOF68LJ5.mjs.map +0 -1
  323. package/dist/field-parse-C41e3UAF.mjs +0 -2
  324. package/dist/guards-yDXyKC9F.mjs +0 -2
  325. package/dist/guards-yDXyKC9F.mjs.map +0 -1
  326. package/dist/kysely-type-DxyIWXc6.mjs.map +0 -1
  327. package/dist/logger-RgtbhJ83.mjs.map +0 -1
  328. package/dist/manager-DTRhIupk.mjs +0 -2
  329. package/dist/manager-DTRhIupk.mjs.map +0 -1
  330. package/dist/register-ts-hook-Dp9reSRG.mjs +0 -1053
  331. package/dist/register-ts-hook-Dp9reSRG.mjs.map +0 -1
  332. package/dist/secret-file-C9wp_FCX.mjs +0 -2
  333. package/dist/secret-file-C9wp_FCX.mjs.map +0 -1
  334. package/dist/service-9SBPNpK8.mjs.map +0 -1
  335. package/dist/service-9rwi_I4d.mjs +0 -2
  336. package/dist/service-Ca1WwyIt.mjs +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,89 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 2.35.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2810](https://github.com/tailor-platform/sdk/pull/2810) [`41bf7ea`](https://github.com/tailor-platform/sdk/commit/41bf7ea9046e42b5c134b768d74772ea44e82c92) Thanks [@toiroakr](https://github.com/toiroakr)! - `tailor tailordb migration generate --init` now accepts `--namespace <name>` to reset only that namespace's `migrations/` directory and recreate its `0000`. Other namespaces' migration files are left untouched, and the confirmation lists only the target namespace. Without `--namespace`, `--init` still deletes the migrations of every namespace that has migrations configured.
8
+
9
+ - [#2713](https://github.com/tailor-platform/sdk/pull/2713) [`545cf4f`](https://github.com/tailor-platform/sdk/commit/545cf4f0ef433a70ccb87b64d975430da60260b9) Thanks [@toiroakr](https://github.com/toiroakr)! - The PGlite schema from `kyselyTypePlugin` and the `db.pglite.ts` written for a migration now reject deleting a parent, or changing the key a row points at, while a row still points at it through an array field or a field inside a nested object, as the platform does. A test that deletes a parent before the rows pointing at it now fails with `violates foreign key constraint`; delete the child rows first.
10
+
11
+ ### Patch Changes
12
+
13
+ - [#2795](https://github.com/tailor-platform/sdk/pull/2795) [`30281c1`](https://github.com/tailor-platform/sdk/commit/30281c1236f8da04e09752a218e8a8f3a9d8ac15) Thanks [@dqn](https://github.com/dqn)! - Fix bundling of a `.start()` call on a local variable that shares its name with an imported workflow or job when the variable is declared in a `switch` case, a named class expression, a namespace, or a static block. The bundler rewrote the call or failed instead of leaving it as written.
14
+
15
+ - [#2817](https://github.com/tailor-platform/sdk/pull/2817) [`9ff6bcf`](https://github.com/tailor-platform/sdk/commit/9ff6bcf721bbd534cfb2e5c9ebe3ba604e74dc69) Thanks [@toiroakr](https://github.com/toiroakr)! - `tailor deploy` no longer fails when it cannot restore the secret vault of an IdP client whose name the platform rejects when reading the client, such as a name shorter than three characters. It prints a warning for that client and continues.
16
+
17
+ - [#2815](https://github.com/tailor-platform/sdk/pull/2815) [`1ee6cc5`](https://github.com/tailor-platform/sdk/commit/1ee6cc5386c8b135630780ca220f860506c0b934) Thanks [@dqn](https://github.com/dqn)! - `tailor tailordb migration generate` no longer writes a `10000` migration directory, which no command reads, after a namespace reaches migration 9999. Before writing, it now checks that every namespace has enough migration numbers left, including with `--data-only` and for a field type conversion, which needs two. If any namespace does not, it fails with `MIGRATION_NUMBER_EXHAUSTED` without writing a migration in any namespace, and the error names the `tailor tailordb migration rebaseline` command to run.
18
+
19
+ - [#2794](https://github.com/tailor-platform/sdk/pull/2794) [`45e5b65`](https://github.com/tailor-platform/sdk/commit/45e5b6540a91a7e622643dff5d29938022225dfd) Thanks [@dqn](https://github.com/dqn)! - Remove `@__PURE__` and `@__NO_SIDE_EFFECTS__` comments from bundled resolvers, executors, workflow jobs, auth hooks, HTTP adapters, and `tailor function run` scripts, and minify the scripts `tailor query` runs, to make them smaller.
20
+
21
+ - [#2793](https://github.com/tailor-platform/sdk/pull/2793) [`ca193b9`](https://github.com/tailor-platform/sdk/commit/ca193b9a87a92bd0c67b5dd397b3ce2ff653de8a) Thanks [@dqn](https://github.com/dqn)! - `tailor deploy` no longer runs a migration's `main` script again after it could not confirm whether an earlier run of it succeeded (`MIGRATION_OUTCOME_UNKNOWN`), including with `--no-schema-check`, in a namespace without a migration checkpoint, and after the deploy process stopped while the script ran. The migration now stays recorded as in progress while its script runs, and until you settle a run the deploy could not confirm, `tailor deploy` stops before changing anything with `MIGRATION_OUTCOME_UNSETTLED`, which reports how the run stands.
22
+
23
+ Settle such a run with `tailor tailordb migration resolve`: `--complete` when it succeeded, `--rollback` when it failed, was canceled, or did not start. `resolve` now reads how the run ended, shows it (`runStatus` under `--json`), and warns when the option you passed does not fit. The earlier advice to run `tailor tailordb migration sync` no longer applies to these runs: `sync` refuses to run while the migration is recorded. `tailor tailordb migration status` reports the run as in progress, with `inProgressMigrationRun: "main"` under `--json`. Earlier SDK versions cannot read this record and refuse to deploy until the migration is settled.
24
+
25
+ - [#2795](https://github.com/tailor-platform/sdk/pull/2795) [`30281c1`](https://github.com/tailor-platform/sdk/commit/30281c1236f8da04e09752a218e8a8f3a9d8ac15) Thanks [@dqn](https://github.com/dqn)! - Field and table definitions written with `db` and `t` in your own code no longer keep an otherwise unused call in bundled resolvers, executors, workflow jobs, auth hooks, and `tailor function run` scripts, which makes bundles that import shared schema modules smaller.
26
+
27
+ - [#2729](https://github.com/tailor-platform/sdk/pull/2729) [`bfe410f`](https://github.com/tailor-platform/sdk/commit/bfe410fbf6b9f9f9b560e79a0326f78a76011f11) Thanks [@toiroakr](https://github.com/toiroakr)! - `.unique()` and `.index()` on a field inside `db.object()` are now applied to the deployed schema. Before, they were recorded in the migration snapshot but sent to the platform as off, so duplicate values were stored, and the next `tailor deploy` of a project with such a field stopped with `MIGRATION_REMOTE_DRIFT`, and `tailor tailordb migration validate` failed the same way. The PGlite schema that `kyselyTypePlugin` and the migration `db.pglite.ts` generate now enforces `.unique()` on such a field too, so local tests reject the duplicates the platform rejects. After upgrading, run `tailor deploy --no-schema-check` once to apply the setting; later deploys need no flag. `.unique()` and `.index()` on a field inside an array of objects (`db.object(..., { array: true })`) now fail with an error, because the platform does not reject duplicate values there. If stored rows already hold duplicate values for a field that gains `.unique()`, that deploy fails with a unique index error and the schema stays unchanged until the duplicates are resolved.
28
+
29
+ ## 2.34.0
30
+
31
+ ### Minor Changes
32
+
33
+ - [#2669](https://github.com/tailor-platform/sdk/pull/2669) [`f59f06e`](https://github.com/tailor-platform/sdk/commit/f59f06e14ecc3c22553d5da7b13b87dd7376c059) Thanks [@dqn](https://github.com/dqn)! - The `tailor` CLI and its command groups, such as `tailor tailordb` and `tailor workspace`, and the setup, seed, and TailorDB ERD plugins now exit with code 2 when run without a subcommand and given an unknown option or an invalid option value, including one set through its environment variable. They previously printed their help or a warning, or ran their default subcommand, and exited with 0. A script or CI job that passes a mistyped option after a group name, such as `tailor workspace --bogus`, now fails with 2 instead of printing a warning and exiting with 0. `--no-json` and `--no-verbose` now turn JSON output and verbose logging off, where they were previously ignored with a warning, so `--no-json` also turns off the JSON output an AI coding agent gets by default. `--no-verbose` and `--verbose=false` also override `DEBUG=true` and `RUNNER_DEBUG=1`, which previously kept verbose logging on. Likewise, setting `logger.verbose` from `@tailor-platform/sdk/cli` overrides them, and setting it to `undefined` defers to them.
34
+
35
+ - [#2708](https://github.com/tailor-platform/sdk/pull/2708) [`bc16821`](https://github.com/tailor-platform/sdk/commit/bc168219a64972f0830cff380942b3cc4d4e0060) Thanks [@toiroakr](https://github.com/toiroakr)! - A relation set on a field inside `db.object()` now becomes a foreign key on that inner field, in the deployed schema and in the PGlite schema `kyselyTypePlugin` generates. Before, the relation was accepted but had no effect, so a row pointing at a missing parent was stored. For a project that already has such a relation, the next `tailor deploy` stops with a schema check error until you run `tailor tailordb migration generate`, which records one non-breaking `field_modified` change. Values already stored are not checked when the foreign key is added; after that deploy, the platform rejects a nested value that points at a missing parent.
36
+
37
+ - [#2755](https://github.com/tailor-platform/sdk/pull/2755) [`9ddec31`](https://github.com/tailor-platform/sdk/commit/9ddec318f1a9f01f1773042df485ecee48cf71e2) Thanks [@toiroakr](https://github.com/toiroakr)! - Added `buildOptions.inlineSourcemapProjectSources` to choose which of your own source files embed their text in the inline sourcemap. `exclude: ["src/generated/**"]` leaves out the text of generated files, and `include` keeps only the matching files. The globs are relative to the directory containing your config file. Files under `node_modules` stay controlled by `inlineSourcemapDependencySources`.
38
+
39
+ ### Patch Changes
40
+
41
+ - [#2769](https://github.com/tailor-platform/sdk/pull/2769) [`c9bc40b`](https://github.com/tailor-platform/sdk/commit/c9bc40b22d710ae03070c13112559d0db5d260b3) Thanks [@dqn](https://github.com/dqn)! - Internal: the build-only result of `deploy`, used by the SDK's own tests, now also includes HTTP adapter bundles grouped by application name. A build-only deploy now rejects two configs that share an application name and both define HTTP adapters, which a regular deploy already rejects.
42
+
43
+ - [#2767](https://github.com/tailor-platform/sdk/pull/2767) [`4c42666`](https://github.com/tailor-platform/sdk/commit/4c4266603730b39a21b92f698105f1d720c8892f) Thanks [@dqn](https://github.com/dqn)! - `tailor deploy --dry-run` no longer asks to confirm resource deletions, owner conflicts, unmanaged resources, or missing dependent applications, so it reaches the plan without `--yes`, including under `--json` or without a terminal. The warnings that list those resources are still shown, and the warning that lists the TailorDB migration checkpoints the deploy would reset is now shown too.
44
+
45
+ With `--dry-run --json`, `warnings` now also has a `type: "missingDependentApp"` entry for each resource whose recorded dependent application is missing from the deploy. Before, this was only printed to stderr.
46
+
47
+ - [#2749](https://github.com/tailor-platform/sdk/pull/2749) [`468bd4b`](https://github.com/tailor-platform/sdk/commit/468bd4b1f5d87ce11c3eda99c16752910e8df333) Thanks [@dqn](https://github.com/dqn)! - Internal refactor of the ownership checks `tailor deploy` and `tailor remove` run on existing resources. No observable behavior change.
48
+
49
+ - [#2752](https://github.com/tailor-platform/sdk/pull/2752) [`b09d3c9`](https://github.com/tailor-platform/sdk/commit/b09d3c9b21e68d290b19bc8bf3672726cb5baf48) Thanks [@dqn](https://github.com/dqn)! - Internal refactoring: `tailor tailordb migration generate` now handles field, table, and nested member renames and drops with one shared implementation. Prompts, error messages and codes, and JSON output are unchanged.
50
+
51
+ - [#2787](https://github.com/tailor-platform/sdk/pull/2787) [`039f6f5`](https://github.com/tailor-platform/sdk/commit/039f6f51422b865c3cd041394aaeea9b49a0360b) Thanks [@dqn](https://github.com/dqn)! - `tailor tailordb migration generate` and `tailor tailordb migration script` open the file they scaffold in `EDITOR` or `VISUAL` only when they run in an interactive terminal outside CI. Run from a script, a CI step, or an agent shell with human output, they used to start the editor and wait for it with no terminal attached, so the command hung. An editor that opens its own window, such as `code --wait`, also no longer opens when the command's input or output is piped.
52
+
53
+ - [#2780](https://github.com/tailor-platform/sdk/pull/2780) [`8000beb`](https://github.com/tailor-platform/sdk/commit/8000beb99b6fe5f3602467c79b69668c46392545) Thanks [@dqn](https://github.com/dqn)! - `tailor deploy` and every `tailor tailordb migration` subcommand except `script` now reject a migration directory that has `migrate.ts` or other generated files but no `diff.json`. Previously, such a leftover in the latest migration number let the next `migration generate` reuse that number and deploy run the stale script. They also reject a `diff.json` in `0000/`, which was previously ignored. `tailor tailordb migration status` now reports invalid migration files as an error for that namespace.
54
+
55
+ - [#2792](https://github.com/tailor-platform/sdk/pull/2792) [`66c8c85`](https://github.com/tailor-platform/sdk/commit/66c8c8580ea7a11b54fe61b13416bcb492a11dc2) Thanks [@dqn](https://github.com/dqn)! - `tailor tailordb migration resolve` now refuses to run when the in-progress migration is not the one right after the checkpoint. Previously, `--rollback` moved the checkpoint forward in that state, and `--complete` moved it past migrations whose `migrate.ts` never ran.
56
+
57
+ - [#2750](https://github.com/tailor-platform/sdk/pull/2750) [`0628ad3`](https://github.com/tailor-platform/sdk/commit/0628ad30fa1ad21010f4f16d59ab2af9d66eb79e) Thanks [@dqn](https://github.com/dqn)! - Build resolver, executor, workflow job, and auth hook bundles through one shared step. Bundled output is unchanged.
58
+
59
+ - [#2748](https://github.com/tailor-platform/sdk/pull/2748) [`35ce933`](https://github.com/tailor-platform/sdk/commit/35ce9330b64ebea35469797c592cb0a368bf0d4c) Thanks [@dqn](https://github.com/dqn)! - Internal refactoring: remove unused internal helpers from the plugin manager, the TailorDB migration modules, and the SDK's own test setup. No user-facing behavior change.
60
+
61
+ - [#2786](https://github.com/tailor-platform/sdk/pull/2786) [`deeb82f`](https://github.com/tailor-platform/sdk/commit/deeb82ff6a2fc4418f761a34cfdec01f9a26def2) Thanks [@dqn](https://github.com/dqn)! - Long-running `tailor` commands, such as a deploy waiting on a migration job, `tailor workflow start --wait`, or `tailor function logs --follow`, no longer fail with `[unauthenticated] ... invalid token` when the access token expires partway through. They renew the token when it is about to expire, and retry a request once with a new token if the Platform rejects the one it sent. A client from `initOperatorClient` in `@tailor-platform/sdk/cli`, created with a token from `loadAccessToken`, does the same and may refresh and save the stored login while it runs. Commands that use `TAILOR_PLATFORM_TOKEN` or a machine-user login are still limited to the token's lifetime. The notice that a newer config version is available now appears once per command instead of on every read of the config.
62
+
63
+ - [#2762](https://github.com/tailor-platform/sdk/pull/2762) [`30b9fa8`](https://github.com/tailor-platform/sdk/commit/30b9fa87c8897937a13ec16747047c5679223fe7) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update oxc
64
+
65
+ - [#2765](https://github.com/tailor-platform/sdk/pull/2765) [`eb01ec6`](https://github.com/tailor-platform/sdk/commit/eb01ec6b2286e71c04a1b009f859846f91c603d0) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @​politty/zod to v0.6.0
66
+
67
+ - [#2797](https://github.com/tailor-platform/sdk/pull/2797) [`f202845`](https://github.com/tailor-platform/sdk/commit/f2028455919ca87dc77c0b0deb5dd84d4a1335c9) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): lock file maintenance
68
+
69
+ - [#2804](https://github.com/tailor-platform/sdk/pull/2804) [`8c20b0b`](https://github.com/tailor-platform/sdk/commit/8c20b0b09824c0cb01ad49375d7e712e9afdbd53) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency amaro to v1.2.2
70
+
71
+ - [#2805](https://github.com/tailor-platform/sdk/pull/2805) [`c0641d2`](https://github.com/tailor-platform/sdk/commit/c0641d2c315cacb34f83b9b39244a4404a19830b) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency rolldown to v1.2.15
72
+
73
+ - [#2709](https://github.com/tailor-platform/sdk/pull/2709) [`6eb202f`](https://github.com/tailor-platform/sdk/commit/6eb202feaee7b80524111599f3e47d4a22faf462) Thanks [@toiroakr](https://github.com/toiroakr)! - `tailor deploy` now fails when a vault declared in `defineSecretManager()` has the same name as the vault the SDK creates for one of the application's IdP clients (`idp-<namespace>-<client>`), because the two would share one vault and the built-in IdP configuration in Auth could read a secret that was overwritten by the declared value. If the application already manages a vault with that name, renaming it and removing the declaration both delete the old vault and its secrets on the next deploy, including the secret of an IdP client that already exists, and the error says so.
74
+
75
+ - [#2788](https://github.com/tailor-platform/sdk/pull/2788) [`eabbd2e`](https://github.com/tailor-platform/sdk/commit/eabbd2e6f36e6743118c150c6fa4e893334adb0f) Thanks [@toiroakr](https://github.com/toiroakr)! - `tailor deploy` now warns when a vault declared in `defineSecretManager()` has a name that starts with `tailor--` (two hyphens, so that names such as `tailor-reports` stay free). The prefix is reserved in advance for the platform and has no use today. The warning does not stop the deploy, and these names will be rejected in v3.
76
+
77
+ - [#2782](https://github.com/tailor-platform/sdk/pull/2782) [`b09cb46`](https://github.com/tailor-platform/sdk/commit/b09cb4687d255d6373e88d2dcd278f97540322b1) Thanks [@dqn](https://github.com/dqn)! - Fix `tailor` commands that run at the same time breaking each other's login. When several commands found the stored token expired, each refreshed it, and all but one failed with `AUTH_TOKEN_REFRESH_FAILED`; sometimes the stored refresh token was left unusable, and every later command failed until you ran `tailor login` again. Commands now refresh one at a time and use the token another command already stored. `tailor logout` also waits for a refresh in progress, so the refresh no longer restores the user it removed.
78
+
79
+ The CLI now refreshes a token that expires within five minutes, so a command no longer starts with a token that is about to expire. Until the current token expires, the CLI keeps using it if that early refresh fails or another command is already refreshing. `loadAccessToken` from `@tailor-platform/sdk/cli` follows the same rules. The config file is now replaced in one step, so a command reading it while another writes it no longer fails to parse it.
80
+
81
+ - [#2576](https://github.com/tailor-platform/sdk/pull/2576) [`07611f5`](https://github.com/tailor-platform/sdk/commit/07611f5a28210bcb50b2234b34fee6faaaa1d304) Thanks [@toiroakr](https://github.com/toiroakr)! - `tailor setup ci preview` takes `--require <ready|label>` instead of `--require-preview-label`. By default every pull request now gets a preview, draft pull requests included, which the generated workflow used to skip. `--require ready` skips draft pull requests and also triggers on `ready_for_review`, so a draft that is marked ready for review gets its preview right away instead of waiting for the next push. `--require label` deploys only pull requests labeled `tailor:preview`, as `--require-preview-label` did, and now also for a labeled draft. The requirement is recorded in `.github/tailor.lock` as `require`, so `tailor setup update` regenerates the same workflow.
82
+
83
+ `--require-preview-label` is removed: use `--require label`. `setup` remains a beta command, so this ships as an immediate change rather than going through a deprecation cycle. A preview target recorded before this change is read by `tailor setup update` as `--require ready`, or as `--require label` if it required the label: the first keeps skipping drafts and gains the `ready_for_review` trigger, and the second now also deploys a labeled draft. To deploy drafts as well, run `tailor setup ci preview` again without `--require`.
84
+
85
+ - [#2779](https://github.com/tailor-platform/sdk/pull/2779) [`5461ed7`](https://github.com/tailor-platform/sdk/commit/5461ed7e2d96e0559360910afa735de3e4e0736c) Thanks [@dqn](https://github.com/dqn)! - Fix inline sourcemaps embedding the source text of files under `node_modules` that belong to no package, such as a generated client in `node_modules/.prisma`, when `buildOptions.inlineSourcemapDependencySources` is `false` or a package list. Such files are now embedded only when the option is `true`, and `tailor function run` and `tailor function logs` read their code snippets from your local files.
86
+
3
87
  ## 2.33.0
4
88
 
5
89
  ### Minor Changes
@@ -1,4 +1,3 @@
1
- //#region src/ai/index.d.ts
2
1
  /**
3
2
  * Client for semantic decisions through Tailor AI Gateway.
4
3
  *
@@ -108,5 +107,4 @@ export interface SystemOneClient {
108
107
  * @param options - AI Gateway connection options
109
108
  * @returns A semantic decision client
110
109
  */
111
- export declare function createSystemOne(options: CreateSystemOneOptions): SystemOneClient;
112
- //#endregion
110
+ export declare function createSystemOne(options: CreateSystemOneOptions): SystemOneClient;
@@ -1 +1 @@
1
- export{t as defineApplication,r as generatePluginFilesIfNeeded}from"./application-B9_NHiUC.mjs";
1
+ export{t as defineApplication,r as generatePluginFilesIfNeeded}from"./application-DIsQSnj3.mjs";