@tailor-platform/sdk 2.32.0 → 2.34.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 (356) hide show
  1. package/CHANGELOG.md +102 -0
  2. package/dist/ai/index.d.mts +1 -3
  3. package/dist/application-CwpOIOTt.mjs +1 -0
  4. package/dist/application-Nce5z46R.mjs +207 -0
  5. package/dist/application-Nce5z46R.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 +2 -0
  23. package/dist/cli/commands/deploy/tailordb/plan.d.mts +1 -0
  24. package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +2 -1
  25. package/dist/cli/commands/deploy/workflow.d.mts +1 -0
  26. package/dist/cli/commands/executor/get.d.mts +0 -2
  27. package/dist/cli/commands/executor/jobs.d.mts +0 -2
  28. package/dist/cli/commands/executor/list.d.mts +1 -3
  29. package/dist/cli/commands/executor/transform.d.mts +1 -3
  30. package/dist/cli/commands/executor/trigger.d.mts +0 -2
  31. package/dist/cli/commands/executor/webhook.d.mts +1 -3
  32. package/dist/cli/commands/function/get.d.mts +0 -2
  33. package/dist/cli/commands/function/list.d.mts +0 -2
  34. package/dist/cli/commands/function/transform.d.mts +1 -3
  35. package/dist/cli/commands/generate/options.d.mts +1 -3
  36. package/dist/cli/commands/generate/seed/bundler.d.mts +1 -3
  37. package/dist/cli/commands/generate/service.d.mts +1 -3
  38. package/dist/cli/commands/machineuser/list.d.mts +1 -3
  39. package/dist/cli/commands/machineuser/token.d.mts +1 -3
  40. package/dist/cli/commands/oauth2client/get.d.mts +1 -3
  41. package/dist/cli/commands/oauth2client/list.d.mts +1 -3
  42. package/dist/cli/commands/oauth2client/transform.d.mts +1 -3
  43. package/dist/cli/commands/organization/folder/create.d.mts +0 -2
  44. package/dist/cli/commands/organization/folder/delete.d.mts +0 -2
  45. package/dist/cli/commands/organization/folder/get.d.mts +0 -2
  46. package/dist/cli/commands/organization/folder/list.d.mts +0 -2
  47. package/dist/cli/commands/organization/folder/update.d.mts +0 -2
  48. package/dist/cli/commands/organization/get.d.mts +0 -2
  49. package/dist/cli/commands/organization/list.d.mts +1 -3
  50. package/dist/cli/commands/organization/transform.d.mts +1 -3
  51. package/dist/cli/commands/organization/tree.d.mts +0 -2
  52. package/dist/cli/commands/organization/update.d.mts +0 -2
  53. package/dist/cli/commands/remove.d.mts +1 -3
  54. package/dist/cli/commands/show.d.mts +0 -2
  55. package/dist/cli/commands/staticwebsite/deploy.d.mts +1 -3
  56. package/dist/cli/commands/tailordb/migrate/bundler.d.mts +1 -3
  57. package/dist/cli/commands/tailordb/migrate/config.d.mts +1 -3
  58. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +0 -2
  59. package/dist/cli/commands/tailordb/migrate/generate.d.mts +1 -3
  60. package/dist/cli/commands/tailordb/migrate/rename-detection.d.mts +1 -3
  61. package/dist/cli/commands/tailordb/migrate/snapshot-comparison.d.mts +1 -3
  62. package/dist/cli/commands/tailordb/migrate/snapshot-files.d.mts +1 -3
  63. package/dist/cli/commands/tailordb/migrate/snapshot-local.d.mts +1 -3
  64. package/dist/cli/commands/tailordb/migrate/snapshot-migrations.d.mts +1 -3
  65. package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +0 -2
  66. package/dist/cli/commands/tailordb/migrate/types.d.mts +1 -3
  67. package/dist/cli/commands/tailordb/truncate.d.mts +1 -3
  68. package/dist/cli/commands/workflow/executions.d.mts +0 -2
  69. package/dist/cli/commands/workflow/get.d.mts +0 -2
  70. package/dist/cli/commands/workflow/list.d.mts +1 -3
  71. package/dist/cli/commands/workflow/resume.d.mts +1 -3
  72. package/dist/cli/commands/workflow/start.d.mts +0 -2
  73. package/dist/cli/commands/workflow/status.d.mts +1 -3
  74. package/dist/cli/commands/workflow/transform.d.mts +1 -3
  75. package/dist/cli/commands/workflow/wait.d.mts +1 -3
  76. package/dist/cli/commands/workflow/waiter.d.mts +1 -3
  77. package/dist/cli/commands/workspace/app/health.d.mts +0 -2
  78. package/dist/cli/commands/workspace/app/list.d.mts +0 -2
  79. package/dist/cli/commands/workspace/app/transform.d.mts +1 -3
  80. package/dist/cli/commands/workspace/create.d.mts +0 -2
  81. package/dist/cli/commands/workspace/delete.d.mts +0 -2
  82. package/dist/cli/commands/workspace/expiry.d.mts +1 -3
  83. package/dist/cli/commands/workspace/get.d.mts +0 -2
  84. package/dist/cli/commands/workspace/list.d.mts +1 -3
  85. package/dist/cli/commands/workspace/restore.d.mts +0 -2
  86. package/dist/cli/commands/workspace/transform.d.mts +1 -3
  87. package/dist/cli/commands/workspace/user/invite.d.mts +0 -2
  88. package/dist/cli/commands/workspace/user/list.d.mts +0 -2
  89. package/dist/cli/commands/workspace/user/remove.d.mts +0 -2
  90. package/dist/cli/commands/workspace/user/transform.d.mts +1 -3
  91. package/dist/cli/commands/workspace/user/update.d.mts +0 -2
  92. package/dist/cli/lib.d.mts +1 -1
  93. package/dist/cli/lib.mjs +1 -1
  94. package/dist/cli/lib.mjs.map +1 -1
  95. package/dist/cli/main.d.mts +1 -3
  96. package/dist/cli/main.mjs +65 -50
  97. package/dist/cli/main.mjs.map +1 -1
  98. package/dist/cli/query/index.d.mts +0 -2
  99. package/dist/cli/services/application.d.mts +5 -4
  100. package/dist/cli/services/executor/service.d.mts +2 -2
  101. package/dist/cli/services/function-bundle.d.mts +7 -0
  102. package/dist/cli/services/http-adapter/bundler.d.mts +7 -1
  103. package/dist/cli/services/resolver/service.d.mts +2 -1
  104. package/dist/cli/services/workflow/bundler.d.mts +2 -3
  105. package/dist/cli/shared/args.d.mts +0 -2
  106. package/dist/cli/shared/beta.d.mts +1 -3
  107. package/dist/cli/shared/client.d.mts +56 -4
  108. package/dist/cli/shared/command.d.mts +2 -4
  109. package/dist/cli/shared/config-loader.d.mts +2 -4
  110. package/dist/cli/shared/config.d.mts +1 -3
  111. package/dist/cli/shared/context.d.mts +0 -2
  112. package/dist/cli/shared/error-diagnostics.d.mts +1 -3
  113. package/dist/cli/shared/error-json.d.mts +1 -3
  114. package/dist/cli/shared/function-execution.d.mts +1 -3
  115. package/dist/cli/shared/github-actions.d.mts +1 -3
  116. package/dist/cli/shared/logger.d.mts +7 -4
  117. package/dist/cli/shared/platform-bundle-plugin.d.mts +1 -0
  118. package/dist/cli/shared/prompt.d.mts +1 -3
  119. package/dist/cli/shared/readonly-guard.d.mts +0 -2
  120. package/dist/cli/shared/script-executor.d.mts +1 -3
  121. package/dist/cli/shared/seed-chunker.d.mts +1 -3
  122. package/dist/cli/shared/seed-context.d.mts +0 -2
  123. package/dist/cli/shared/sourcemap-sources.d.mts +1 -0
  124. package/dist/cli/shared/tailordb-namespaces.d.mts +1 -3
  125. package/dist/cli/shared/type-generator.d.mts +0 -2
  126. package/dist/cli/shared/workspace-name.d.mts +1 -3
  127. package/dist/cli/ts-hook.d.mts +0 -2
  128. package/dist/cli/ts-hook.mjs +0 -113
  129. package/dist/completion/zsh-worker.zsh +26 -6
  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 +6 -3
  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-CBwsdx16.mjs → kysely-type-DxyIWXc6.mjs} +3 -3
  185. package/dist/kysely-type-DxyIWXc6.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/enum-constants/index.mjs +2 -2
  193. package/dist/plugin/builtin/enum-constants/index.mjs.map +1 -1
  194. package/dist/plugin/builtin/file-utils/index.d.mts +0 -2
  195. package/dist/plugin/builtin/kysely-type/index.d.mts +0 -2
  196. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  197. package/dist/plugin/builtin/seed/index.d.mts +0 -2
  198. package/dist/plugin/builtin/seed/seed-type-processor.d.mts +1 -3
  199. package/dist/plugin/get-generated-table.d.mts +1 -3
  200. package/dist/plugin/index.mjs +1 -1
  201. package/dist/plugin/types.d.mts +3 -2
  202. package/dist/plugin/with-context.d.mts +1 -3
  203. package/dist/register-ts-hook-CtWJL3EO.mjs +1054 -0
  204. package/dist/register-ts-hook-CtWJL3EO.mjs.map +1 -0
  205. package/dist/repl-editor-DkrCZmmg.mjs +2 -0
  206. package/dist/repl-editor-DkrCZmmg.mjs.map +1 -0
  207. package/dist/runtime/aigateway.d.mts +1 -3
  208. package/dist/runtime/authconnection.d.mts +1 -3
  209. package/dist/runtime/context.d.mts +0 -2
  210. package/dist/runtime/date.d.mts +0 -2
  211. package/dist/runtime/field-parse.d.mts +0 -2
  212. package/dist/runtime/file.d.mts +0 -2
  213. package/dist/runtime/globals.d.mts +0 -2
  214. package/dist/runtime/iconv.d.mts +1 -3
  215. package/dist/runtime/idp.d.mts +1 -3
  216. package/dist/runtime/index.d.mts +1 -3
  217. package/dist/runtime/index.mjs +1 -1
  218. package/dist/runtime/logger.d.mts +1 -3
  219. package/dist/runtime/secretmanager.d.mts +1 -3
  220. package/dist/runtime/temporal.d.mts +0 -2
  221. package/dist/runtime/types.d.mts +0 -2
  222. package/dist/runtime/workflow.d.mts +0 -2
  223. package/dist/{schema-B6hJQWp6.mjs → schema-BU1aIQ63.mjs} +2 -2
  224. package/dist/{schema-B6hJQWp6.mjs.map → schema-BU1aIQ63.mjs.map} +1 -1
  225. package/dist/secret-file-BxZ-J_Nz.mjs +2 -0
  226. package/dist/secret-file-BxZ-J_Nz.mjs.map +1 -0
  227. package/dist/seed/idp-user-password.d.mts +0 -2
  228. package/dist/seed/index.d.mts +0 -2
  229. package/dist/service-CaGmqg0r.mjs +2 -0
  230. package/dist/{service-9rwi_I4d.mjs.map → service-CaGmqg0r.mjs.map} +1 -1
  231. package/dist/service-DEq_hdht.mjs +1 -0
  232. package/dist/{service-9SBPNpK8.mjs → service-eeXdVrDK.mjs} +4 -4
  233. package/dist/service-eeXdVrDK.mjs.map +1 -0
  234. package/dist/service_pb-6EkMfdOb.mjs +2 -0
  235. package/dist/service_pb-6EkMfdOb.mjs.map +1 -0
  236. package/dist/service_pb-CsJKokDl.mjs +1 -0
  237. package/dist/shared/src/color.d.mts +1 -3
  238. package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +1 -3
  239. package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +1 -3
  240. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +1 -3
  241. package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +1 -3
  242. package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +1 -3
  243. package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +1 -3
  244. package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +1 -3
  245. package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +1 -3
  246. package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +1 -3
  247. package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +1 -3
  248. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +1 -3
  249. package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +1 -3
  250. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +1 -3
  251. package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +1 -3
  252. package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +1 -3
  253. package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +1 -3
  254. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +6 -5
  255. package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +1 -3
  256. package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +1 -3
  257. package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +1 -3
  258. package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +1 -3
  259. package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +1 -3
  260. package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +1 -3
  261. package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +1 -3
  262. package/dist/tailor-proto/src/tailor/v1/security_pb.d.mts +211 -0
  263. package/dist/tailor-proto/src/tailor/v1/security_resource_pb.d.mts +299 -0
  264. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +201 -11
  265. package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +1 -3
  266. package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +1 -3
  267. package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +201 -3
  268. package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +88 -3
  269. package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +1 -3
  270. package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +1 -3
  271. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +1 -3
  272. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +1 -3
  273. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +1 -3
  274. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +1 -3
  275. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +1 -3
  276. package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +1 -3
  277. package/dist/types/aigateway.generated.d.mts +1 -3
  278. package/dist/types/app-config.generated.d.mts +1 -3
  279. package/dist/types/auth-connection.generated.d.mts +1 -3
  280. package/dist/types/auth.generated.d.mts +1 -3
  281. package/dist/types/executor.generated.d.mts +1 -3
  282. package/dist/types/field.generated.d.mts +1 -3
  283. package/dist/types/helpers.d.mts +1 -3
  284. package/dist/types/http-adapter.generated.d.mts +1 -3
  285. package/dist/types/idp.generated.d.mts +1 -3
  286. package/dist/types/resolver.generated.d.mts +1 -3
  287. package/dist/types/secrets.generated.d.mts +1 -3
  288. package/dist/types/staticwebsite.generated.d.mts +10 -4
  289. package/dist/types/tailordb.generated.d.mts +1 -3
  290. package/dist/types/workflow.generated.d.mts +1 -3
  291. package/dist/utils/test/index.d.mts +1 -3
  292. package/dist/utils/test/index.mjs +1 -1
  293. package/dist/vitest/date-representation.d.mts +1 -3
  294. package/dist/vitest/environment.d.mts +0 -2
  295. package/dist/vitest/index.d.mts +2 -4
  296. package/dist/vitest/index.mjs +1 -1
  297. package/dist/vitest/index.mjs.map +1 -1
  298. package/dist/vitest/migration-steps.d.mts +1 -3
  299. package/dist/vitest/mock-kysely.d.mts +0 -2
  300. package/dist/vitest/mocks/aigateway.d.mts +0 -2
  301. package/dist/vitest/mocks/authconnection.d.mts +0 -2
  302. package/dist/vitest/mocks/file.d.mts +0 -2
  303. package/dist/vitest/mocks/iconv.d.mts +0 -2
  304. package/dist/vitest/mocks/idp.d.mts +0 -2
  305. package/dist/vitest/mocks/logger.d.mts +0 -2
  306. package/dist/vitest/mocks/secretmanager.d.mts +0 -2
  307. package/dist/vitest/mocks/tailordb-pglite.d.mts +0 -2
  308. package/dist/vitest/mocks/tailordb.d.mts +0 -2
  309. package/dist/vitest/mocks/workflow.d.mts +0 -2
  310. package/dist/vitest/pglite-kysely.d.mts +19 -2
  311. package/dist/vitest/pglite-temporal.d.mts +1 -3
  312. package/dist/vitest/setup.d.mts +0 -2
  313. package/dist/vitest/workflow-local.d.mts +0 -2
  314. package/dist/{workspace_resource_pb-CaoM2npP.mjs → workspace_resource_pb-C4CkoYww.mjs} +2 -2
  315. package/dist/workspace_resource_pb-C4CkoYww.mjs.map +1 -0
  316. package/docs/cli/application.md +2 -1
  317. package/docs/cli/tailordb.md +1 -1
  318. package/docs/cli/user.md +5 -5
  319. package/docs/cli/workspace.md +1 -1
  320. package/docs/cli-reference.md +26 -25
  321. package/docs/configuration.md +13 -2
  322. package/docs/github-actions.md +33 -10
  323. package/docs/plugin/custom.md +34 -0
  324. package/docs/plugin/index.md +1 -0
  325. package/docs/services/secret.md +6 -0
  326. package/docs/services/staticwebsite.md +31 -1
  327. package/docs/services/tailordb/index.md +19 -0
  328. package/docs/services/tailordb/migration.md +35 -12
  329. package/docs/testing.md +2 -2
  330. package/package.json +16 -16
  331. package/dist/application-C2bPmmbh.mjs +0 -1
  332. package/dist/application-D0xNJbag.mjs +0 -199
  333. package/dist/application-D0xNJbag.mjs.map +0 -1
  334. package/dist/crashreport-IN6H7GX3.mjs +0 -1
  335. package/dist/errors-BOF68LJ5.mjs +0 -5
  336. package/dist/errors-BOF68LJ5.mjs.map +0 -1
  337. package/dist/field-parse-C41e3UAF.mjs +0 -2
  338. package/dist/guards-yDXyKC9F.mjs +0 -2
  339. package/dist/guards-yDXyKC9F.mjs.map +0 -1
  340. package/dist/kysely-type-CBwsdx16.mjs.map +0 -1
  341. package/dist/logger-RgtbhJ83.mjs.map +0 -1
  342. package/dist/manager-Bk-7vkwd.mjs +0 -2
  343. package/dist/manager-Bk-7vkwd.mjs.map +0 -1
  344. package/dist/register-ts-hook-_dHIREtU.mjs +0 -1050
  345. package/dist/register-ts-hook-_dHIREtU.mjs.map +0 -1
  346. package/dist/repl-editor-DGJBfIt1.mjs +0 -2
  347. package/dist/repl-editor-DGJBfIt1.mjs.map +0 -1
  348. package/dist/secret-file-C9wp_FCX.mjs +0 -2
  349. package/dist/secret-file-C9wp_FCX.mjs.map +0 -1
  350. package/dist/service-9SBPNpK8.mjs.map +0 -1
  351. package/dist/service-9rwi_I4d.mjs +0 -2
  352. package/dist/service-Ca1WwyIt.mjs +0 -1
  353. package/dist/service_pb-Bbu2QSIr.mjs +0 -2
  354. package/dist/service_pb-Bbu2QSIr.mjs.map +0 -1
  355. package/dist/service_pb-urxAIYHT.mjs +0 -1
  356. package/dist/workspace_resource_pb-CaoM2npP.mjs.map +0 -1
@@ -1 +1 @@
1
- export{t as DEFAULT_KYSELY_TYPES_DIST_PATH,n as KyselyGeneratorID,r as kyselyTypePlugin}from"../../../kysely-type-CBwsdx16.mjs";
1
+ export{t as DEFAULT_KYSELY_TYPES_DIST_PATH,n as KyselyGeneratorID,r as kyselyTypePlugin}from"../../../kysely-type-DxyIWXc6.mjs";
@@ -1,5 +1,4 @@
1
1
  import { Plugin } from "../../types.mjs";
2
- //#region src/plugin/builtin/seed/index.d.ts
3
2
  /** Unique identifier for the seed generator plugin. */
4
3
  export declare const SeedGeneratorID = "@tailor-platform/seed";
5
4
  type DisableIdpUserSyncDirections = {
@@ -56,5 +55,4 @@ declare module "@tailor-platform/sdk/plugin" {
56
55
  * @returns Plugin instance with onTailorDBReady hook
57
56
  */
58
57
  export declare function seedPlugin(options: SeedPluginOptions): Plugin<unknown, SeedPluginOptions>;
59
- //#endregion
60
58
  export {};
@@ -1,5 +1,4 @@
1
1
  import "../../types.mjs";
2
- //#region src/plugin/builtin/seed/seed-type-processor.d.ts
3
2
  /**
4
3
  * Seed ordering information for a TailorDB namespace.
5
4
  */
@@ -31,5 +30,4 @@ export interface SeedNamespaceConfig {
31
30
  * instead of assuming `id`.
32
31
  */
33
32
  selfRefKeys?: Record<string, Record<string, string>>;
34
- }
35
- //#endregion
33
+ }
@@ -1,5 +1,4 @@
1
1
  import { TailorAnyDBType } from "../configure/services/tailordb/types.mjs";
2
- //#region src/plugin/get-generated-table.d.ts
3
2
  /**
4
3
  * Get a generated table from a plugin by loading the config and resolving everything automatically.
5
4
  * For table-attached plugins, calls onTableLoaded() with the source table.
@@ -24,5 +23,4 @@ export declare function getGeneratedTable(configPath: string, pluginId: string,
24
23
  * @param sourceTable - The TailorDB table as exported from its source file
25
24
  * @returns The table with every plugin-added field
26
25
  */
27
- export declare function getExtendedTable<T extends TailorAnyDBType>(configPath: string, sourceTable: T): Promise<T>;
28
- //#endregion
26
+ export declare function getExtendedTable<T extends TailorAnyDBType>(configPath: string, sourceTable: T): Promise<T>;
@@ -1,2 +1,2 @@
1
- import{t as e}from"../manager-Bk-7vkwd.mjs";import*as t from"pathe";import*as n from"node:fs";import{pathToFileURL as r}from"node:url";function withPluginContext(e){return e}const i=/* @__PURE__ */ new Map,a=[`onTableLoaded`,`onNamespaceLoaded`,`onTailorDBReady`,`onResolverReady`,`onExecutorReady`,`onDeployed`];function isPlugin(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=e;if(typeof t.id!=`string`||typeof t.description!=`string`||t.importPath!==void 0&&typeof t.importPath!=`string`||t.tableConfigRequired!==void 0&&typeof t.tableConfigRequired!=`boolean`&&typeof t.tableConfigRequired!=`function`)return!1;for(let e of a)if(t[e]!==void 0&&typeof t[e]!=`function`)return!1;return!((t.onTableLoaded||t.onNamespaceLoaded)&&!t.importPath)}async function loadAndCacheConfig(e){let a=t.resolve(e),o=i.get(a);if(o)return o;if(!n.existsSync(a))return null;let s=await import(r(a).href);if(!s?.default)throw Error(`Invalid config module at "${a}": default export not found`);let c=s.default,l=t.dirname(a),u=/* @__PURE__ */ new Map;if(Object.hasOwn(s,`plugins`)){let e=s.plugins;if(!Array.isArray(e))throw Error(`Invalid \`plugins\` export in "${a}": expected an array returned by definePlugins(), got ${typeof e}`);for(let t of e){if(!isPlugin(t))throw Error(`Invalid \`plugins\` export in "${a}": every item must be a plugin created by definePlugins()`);if(u.has(t.id))throw Error(`Duplicate plugin ID "${t.id}" detected in "${a}". Each plugin must have a unique ID.`);u.set(t.id,{plugin:t,pluginConfig:t.pluginConfig})}}let d={config:c,plugins:u,configDir:l};return i.set(a,d),d}async function resolveNamespaceForTable(e,i,a){if(!e.db)throw Error(`No db configuration found in config`);for(let[o,s]of Object.entries(e.db)){let e=s;if(!e.external&&e.files)for(let s of e.files){let e=t.resolve(i,s),c;try{c=n.globSync(e)}catch{continue}for(let e of c){let t=await import(r(e).href);for(let e of Object.values(t))if(e===a)return o}}}throw Error(`Could not resolve namespace for table "${a.name}". Ensure the table file is included in a db namespace's files pattern.`)}async function resolveNamespaceForNamespacePlugin(e,t,n,r){if(!e.db)throw Error(`No db configuration found in config`);if(!t.onNamespaceLoaded)throw Error(`Plugin "${t.id}" does not have a onNamespaceLoaded() method`);for(let i of Object.keys(e.db)){if(e.db[i].external)continue;let a=await t.onNamespaceLoaded({pluginConfig:r,namespace:i});if(a.tables?.[n])return{namespace:i,output:a}}throw Error(`Could not resolve namespace for plugin "${t.id}" with kind "${n}". No namespace produced a table with that kind.`)}const o=/* @__PURE__ */ new WeakMap,s=/* @__PURE__ */ new WeakMap;function getCacheKey(e,t){if(t===void 0)return e;try{return`${e}:${JSON.stringify(t)}`}catch{throw Error(`pluginConfig must be JSON-serializable for caching. Received non-serializable value.`)}}async function getGeneratedTable(e,t,n,r){let i=await loadAndCacheConfig(e);if(!i)return{name:`__placeholder_${r}__`,fields:{}};let{config:a,configDir:o,plugins:s}=i,c=s.get(t);if(!c)throw Error(`Plugin "${t}" not found in config at "${e}". Ensure the plugin is registered via definePlugins().`);let{plugin:l,pluginConfig:u}=c;return n===null?getGeneratedTableForNamespacePlugin(a,l,r,u):getGeneratedTableForTableAttachedPlugin(l,n,r,u,await resolveNamespaceForTable(a,o,n))}async function getGeneratedTableForTableAttachedPlugin(e,t,n,r,i){if(!e.onTableLoaded)throw Error(`Plugin "${e.id}" does not have an onTableLoaded() method`);let a=o.get(e);a||(a=/* @__PURE__ */ new Map,o.set(e,a));let s=getCacheKey(`${t.name}:ns=${i}`,r),c=a.get(s);if(!c){let n=t.plugins.find(t=>t.pluginId===e.id)?.config;c=await e.onTableLoaded({table:t,tableConfig:n??{},pluginConfig:r,namespace:i}),a.set(s,c)}let l=c.tables?.[n];if(!l)throw Error(`Generated table not found: plugin=${e.id}, sourceTable=${t.name}, kind=${n}`);return l}async function getGeneratedTableForNamespacePlugin(e,t,n,r){if(!t.onNamespaceLoaded)throw Error(`Plugin "${t.id}" does not have a onNamespaceLoaded() method`);let i=s.get(t);if(i||(i=/* @__PURE__ */ new Map,s.set(t,i)),e.db)for(let t of Object.keys(e.db)){if(e.db[t].external)continue;let a=getCacheKey(`namespace:ns=${t}`,r),o=i.get(a);if(o?.tables?.[n])return o.tables[n]}let{namespace:a,output:o}=await resolveNamespaceForNamespacePlugin(e,t,n,r),c=getCacheKey(`namespace:ns=${a}`,r);i.set(c,o);let l=o.tables?.[n];if(!l)throw Error(`Generated table not found: plugin=${t.id}, kind=${n}`);return l}const c=/* @__PURE__ */ new Map;async function getExtendedTable(e,n){if(n.plugins.length===0)return n;let r=t.resolve(e),i=c.get(r);i||(i=/* @__PURE__ */ new WeakMap,c.set(r,i));let a=i.get(n);if(a)return a;let o=applyPluginExtensions(r,n);return i.set(n,o),o.catch(()=>i.delete(n)),o}async function applyPluginExtensions(t,n){let r=await loadAndCacheConfig(t);if(!r)return n;let{config:i,configDir:a,plugins:o}=r,s=await resolveNamespaceForTable(i,a,n),{extendedTable:c}=await new e([...o.values()].map(e=>e.plugin)).processAttachmentsForTable({rawTable:n,attachments:[...n.plugins],namespace:s});return c??n}export{getExtendedTable,getGeneratedTable,withPluginContext};
1
+ import{t as e}from"../manager-B813m43t.mjs";import*as t from"pathe";import*as n from"node:fs";import{pathToFileURL as r}from"node:url";function withPluginContext(e){return e}const i=/* @__PURE__ */ new Map,a=[`onTableLoaded`,`onNamespaceLoaded`,`onTailorDBReady`,`onResolverReady`,`onExecutorReady`,`onDeployed`];function isPlugin(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=e;if(typeof t.id!=`string`||typeof t.description!=`string`||t.importPath!==void 0&&typeof t.importPath!=`string`||t.tableConfigRequired!==void 0&&typeof t.tableConfigRequired!=`boolean`&&typeof t.tableConfigRequired!=`function`)return!1;for(let e of a)if(t[e]!==void 0&&typeof t[e]!=`function`)return!1;return!((t.onTableLoaded||t.onNamespaceLoaded)&&!t.importPath)}async function loadAndCacheConfig(e){let a=t.resolve(e),o=i.get(a);if(o)return o;if(!n.existsSync(a))return null;let s=await import(r(a).href);if(!s?.default)throw Error(`Invalid config module at "${a}": default export not found`);let c=s.default,l=t.dirname(a),u=/* @__PURE__ */ new Map;if(Object.hasOwn(s,`plugins`)){let e=s.plugins;if(!Array.isArray(e))throw Error(`Invalid \`plugins\` export in "${a}": expected an array returned by definePlugins(), got ${typeof e}`);for(let t of e){if(!isPlugin(t))throw Error(`Invalid \`plugins\` export in "${a}": every item must be a plugin created by definePlugins()`);if(u.has(t.id))throw Error(`Duplicate plugin ID "${t.id}" detected in "${a}". Each plugin must have a unique ID.`);u.set(t.id,{plugin:t,pluginConfig:t.pluginConfig})}}let d={config:c,plugins:u,configDir:l};return i.set(a,d),d}async function resolveNamespaceForTable(e,i,a){if(!e.db)throw Error(`No db configuration found in config`);for(let[o,s]of Object.entries(e.db)){let e=s;if(!e.external&&e.files)for(let s of e.files){let e=t.resolve(i,s),c;try{c=n.globSync(e)}catch{continue}for(let e of c){let t=await import(r(e).href);for(let e of Object.values(t))if(e===a)return o}}}throw Error(`Could not resolve namespace for table "${a.name}". Ensure the table file is included in a db namespace's files pattern.`)}async function resolveNamespaceForNamespacePlugin(e,t,n,r){if(!e.db)throw Error(`No db configuration found in config`);if(!t.onNamespaceLoaded)throw Error(`Plugin "${t.id}" does not have a onNamespaceLoaded() method`);for(let i of Object.keys(e.db)){if(e.db[i].external)continue;let a=await t.onNamespaceLoaded({pluginConfig:r,namespace:i});if(a.tables?.[n])return{namespace:i,output:a}}throw Error(`Could not resolve namespace for plugin "${t.id}" with kind "${n}". No namespace produced a table with that kind.`)}const o=/* @__PURE__ */ new WeakMap,s=/* @__PURE__ */ new WeakMap;function getCacheKey(e,t){if(t===void 0)return e;try{return`${e}:${JSON.stringify(t)}`}catch{throw Error(`pluginConfig must be JSON-serializable for caching. Received non-serializable value.`)}}async function getGeneratedTable(e,t,n,r){let i=await loadAndCacheConfig(e);if(!i)return{name:`__placeholder_${r}__`,fields:{}};let{config:a,configDir:o,plugins:s}=i,c=s.get(t);if(!c)throw Error(`Plugin "${t}" not found in config at "${e}". Ensure the plugin is registered via definePlugins().`);let{plugin:l,pluginConfig:u}=c;return n===null?getGeneratedTableForNamespacePlugin(a,l,r,u):getGeneratedTableForTableAttachedPlugin(l,n,r,u,await resolveNamespaceForTable(a,o,n))}async function getGeneratedTableForTableAttachedPlugin(e,t,n,r,i){if(!e.onTableLoaded)throw Error(`Plugin "${e.id}" does not have an onTableLoaded() method`);let a=o.get(e);a||(a=/* @__PURE__ */ new Map,o.set(e,a));let s=getCacheKey(`${t.name}:ns=${i}`,r),c=a.get(s);if(!c){let n=t.plugins.find(t=>t.pluginId===e.id)?.config;c=await e.onTableLoaded({table:t,tableConfig:n??{},pluginConfig:r,namespace:i}),a.set(s,c)}let l=c.tables?.[n];if(!l)throw Error(`Generated table not found: plugin=${e.id}, sourceTable=${t.name}, kind=${n}`);return l}async function getGeneratedTableForNamespacePlugin(e,t,n,r){if(!t.onNamespaceLoaded)throw Error(`Plugin "${t.id}" does not have a onNamespaceLoaded() method`);let i=s.get(t);if(i||(i=/* @__PURE__ */ new Map,s.set(t,i)),e.db)for(let t of Object.keys(e.db)){if(e.db[t].external)continue;let a=getCacheKey(`namespace:ns=${t}`,r),o=i.get(a);if(o?.tables?.[n])return o.tables[n]}let{namespace:a,output:o}=await resolveNamespaceForNamespacePlugin(e,t,n,r),c=getCacheKey(`namespace:ns=${a}`,r);i.set(c,o);let l=o.tables?.[n];if(!l)throw Error(`Generated table not found: plugin=${t.id}, kind=${n}`);return l}const c=/* @__PURE__ */ new Map;async function getExtendedTable(e,n){if(n.plugins.length===0)return n;let r=t.resolve(e),i=c.get(r);i||(i=/* @__PURE__ */ new WeakMap,c.set(r,i));let a=i.get(n);if(a)return a;let o=applyPluginExtensions(r,n);return i.set(n,o),o.catch(()=>i.delete(n)),o}async function applyPluginExtensions(t,n){let r=await loadAndCacheConfig(t);if(!r)return n;let{config:i,configDir:a,plugins:o}=r,s=await resolveNamespaceForTable(i,a,n),{extendedTable:c}=await new e([...o.values()].map(e=>e.plugin)).processAttachmentsForTable({rawTable:n,attachments:[...n.plugins],namespace:s});return c??n}export{getExtendedTable,getGeneratedTable,withPluginContext};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -3,7 +3,6 @@ import { IdProvider, OAuth2Client } from "../types/auth.generated.mjs";
3
3
  import { TailorDBType, TypeSourceInfoEntry } from "../parser/service/tailordb/types.mjs";
4
4
  import { Executor } from "../types/executor.generated.mjs";
5
5
  import { Resolver } from "../types/resolver.generated.mjs";
6
- //#region src/plugin/types.d.ts
7
6
  /**
8
7
  * A single generated file to write to disk.
9
8
  */
@@ -162,8 +161,11 @@ type PluginGeneratedTables = Record<string, PluginGeneratedTable>;
162
161
  export interface PluginGeneratedResolver {
163
162
  name: string;
164
163
  operation: "query" | "mutation";
164
+ /** Resolver input fields defined with `t` field builders. */
165
165
  inputFields?: Record<string, unknown>;
166
+ /** Fields of the resolver's object response, defined with `t` field builders. */
166
167
  outputFields: Record<string, unknown>;
168
+ /** JavaScript statements run asynchronously with the resolver's `context` (input, caller, invoker, env). Cannot reference plugin-local variables. */
167
169
  body: string;
168
170
  }
169
171
  interface PluginRecordTriggerConfig {
@@ -352,5 +354,4 @@ export interface DeployedHookResult {
352
354
  /** Values included in deploy's JSON result. Interface-typed values are accepted, but a `Date` or class instance nested inside one fails the deploy instead of the type check. */
353
355
  outputs?: Record<string, PluginOutputValue>;
354
356
  }
355
- //#endregion
356
357
  export type { PluginAttachment };
@@ -1,5 +1,4 @@
1
1
  import { TailorEnv, TailorPrincipal } from "../runtime/types.mjs";
2
- //#region src/plugin/with-context.d.ts
3
2
  /**
4
3
  * Plugin executor factory function type.
5
4
  * Takes context and returns an executor configuration.
@@ -96,5 +95,4 @@ export type PluginRecord = {
96
95
  * );
97
96
  * ```
98
97
  */
99
- export declare function withPluginContext<Ctx>(factory: PluginExecutorFactory<Ctx>): PluginExecutorFactory<Ctx>;
100
- //#endregion
98
+ export declare function withPluginContext<Ctx>(factory: PluginExecutorFactory<Ctx>): PluginExecutorFactory<Ctx>;