@tailor-platform/sdk 1.76.1 → 1.78.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 (301) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/{application-BUfYmf0O.mjs → application-CUxVA7Fs.mjs} +378 -1679
  3. package/dist/application-CUxVA7Fs.mjs.map +1 -0
  4. package/dist/application-Dp_-ioiP.mjs +3 -0
  5. package/dist/cli/cache/bundle-cache.d.mts +2 -1
  6. package/dist/cli/cache/store.d.mts +1 -1
  7. package/dist/cli/commands/api/index.d.mts +1 -0
  8. package/dist/cli/commands/deploy/aigateway.d.mts +5 -1
  9. package/dist/cli/commands/deploy/application.d.mts +7 -1
  10. package/dist/cli/commands/deploy/apply-phases.d.mts +14 -1
  11. package/dist/cli/commands/deploy/auth.d.mts +5 -1
  12. package/dist/cli/commands/deploy/deploy.d.mts +13 -3
  13. package/dist/cli/commands/deploy/executor.d.mts +7 -1
  14. package/dist/cli/commands/deploy/function-registry.d.mts +5 -0
  15. package/dist/cli/commands/deploy/idp.d.mts +5 -1
  16. package/dist/cli/commands/deploy/resolver.d.mts +5 -1
  17. package/dist/cli/commands/deploy/secret-manager.d.mts +5 -1
  18. package/dist/cli/commands/deploy/staticwebsite.d.mts +5 -1
  19. package/dist/cli/commands/deploy/tailordb/index.d.mts +8 -1
  20. package/dist/cli/commands/deploy/types.d.mts +3 -1
  21. package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +3 -1
  22. package/dist/cli/commands/deploy/workflow.d.mts +4 -1
  23. package/dist/cli/commands/executor/get.d.mts +0 -1
  24. package/dist/cli/commands/executor/jobs.d.mts +0 -1
  25. package/dist/cli/commands/executor/list.d.mts +0 -1
  26. package/dist/cli/commands/executor/transform.d.mts +1 -0
  27. package/dist/cli/commands/executor/trigger.d.mts +0 -1
  28. package/dist/cli/commands/executor/webhook.d.mts +0 -1
  29. package/dist/cli/commands/function/get.d.mts +0 -1
  30. package/dist/cli/commands/function/list.d.mts +0 -1
  31. package/dist/cli/commands/function/transform.d.mts +1 -0
  32. package/dist/cli/commands/generate/service.d.mts +5 -1
  33. package/dist/cli/commands/generate/types.d.mts +3 -1
  34. package/dist/cli/commands/machineuser/list.d.mts +0 -1
  35. package/dist/cli/commands/machineuser/token.d.mts +0 -1
  36. package/dist/cli/commands/oauth2client/get.d.mts +0 -1
  37. package/dist/cli/commands/oauth2client/list.d.mts +0 -1
  38. package/dist/cli/commands/oauth2client/transform.d.mts +1 -0
  39. package/dist/cli/commands/organization/folder/create.d.mts +0 -1
  40. package/dist/cli/commands/organization/folder/delete.d.mts +0 -1
  41. package/dist/cli/commands/organization/folder/get.d.mts +0 -1
  42. package/dist/cli/commands/organization/folder/list.d.mts +0 -1
  43. package/dist/cli/commands/organization/folder/update.d.mts +0 -1
  44. package/dist/cli/commands/organization/get.d.mts +0 -1
  45. package/dist/cli/commands/organization/list.d.mts +0 -1
  46. package/dist/cli/commands/organization/transform.d.mts +2 -0
  47. package/dist/cli/commands/organization/tree.d.mts +0 -1
  48. package/dist/cli/commands/organization/update.d.mts +0 -1
  49. package/dist/cli/commands/remove.d.mts +0 -1
  50. package/dist/cli/commands/show.d.mts +9 -4
  51. package/dist/cli/commands/tailordb/migrate/config.d.mts +0 -1
  52. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +0 -1
  53. package/dist/cli/commands/tailordb/migrate/generate.d.mts +0 -1
  54. package/dist/cli/commands/tailordb/migrate/snapshot.d.mts +1 -1
  55. package/dist/cli/commands/tailordb/truncate.d.mts +0 -1
  56. package/dist/cli/commands/workflow/executions.d.mts +0 -1
  57. package/dist/cli/commands/workflow/get.d.mts +2 -1
  58. package/dist/cli/commands/workflow/list.d.mts +0 -1
  59. package/dist/cli/commands/workflow/resume.d.mts +0 -1
  60. package/dist/cli/commands/workflow/start.d.mts +0 -1
  61. package/dist/cli/commands/workflow/status.d.mts +1 -0
  62. package/dist/cli/commands/workflow/transform.d.mts +1 -0
  63. package/dist/cli/commands/workflow/wait.d.mts +0 -1
  64. package/dist/cli/commands/workflow/waiter.d.mts +1 -1
  65. package/dist/cli/commands/workspace/app/health.d.mts +0 -1
  66. package/dist/cli/commands/workspace/app/list.d.mts +0 -1
  67. package/dist/cli/commands/workspace/app/transform.d.mts +2 -0
  68. package/dist/cli/commands/workspace/create.d.mts +3 -1
  69. package/dist/cli/commands/workspace/delete.d.mts +0 -1
  70. package/dist/cli/commands/workspace/get.d.mts +0 -1
  71. package/dist/cli/commands/workspace/list.d.mts +1 -1
  72. package/dist/cli/commands/workspace/restore.d.mts +0 -1
  73. package/dist/cli/commands/workspace/transform.d.mts +4 -0
  74. package/dist/cli/commands/workspace/user/invite.d.mts +0 -1
  75. package/dist/cli/commands/workspace/user/list.d.mts +0 -1
  76. package/dist/cli/commands/workspace/user/remove.d.mts +0 -1
  77. package/dist/cli/commands/workspace/user/transform.d.mts +1 -0
  78. package/dist/cli/commands/workspace/user/update.d.mts +0 -1
  79. package/dist/cli/index.d.mts +3 -1
  80. package/dist/cli/index.mjs +660 -56
  81. package/dist/cli/index.mjs.map +1 -1
  82. package/dist/cli/lib.d.mts +4 -2
  83. package/dist/cli/lib.mjs +3 -3
  84. package/dist/cli/lib.mjs.map +1 -1
  85. package/dist/cli/query/index.d.mts +0 -1
  86. package/dist/cli/services/application.d.mts +12 -1
  87. package/dist/cli/services/auth/service.d.mts +2 -0
  88. package/dist/cli/services/executor/service.d.mts +1 -1
  89. package/dist/cli/services/http-adapter/bundler.d.mts +3 -1
  90. package/dist/cli/services/http-adapter/service.d.mts +2 -1
  91. package/dist/cli/services/resolver/service.d.mts +1 -1
  92. package/dist/cli/services/tailordb/service.d.mts +3 -1
  93. package/dist/cli/services/workflow/bundler.d.mts +2 -1
  94. package/dist/cli/services/workflow/service.d.mts +1 -1
  95. package/dist/cli/shared/args.d.mts +1 -1
  96. package/dist/cli/shared/client.d.mts +1 -1
  97. package/dist/cli/shared/config-loader.d.mts +0 -1
  98. package/dist/cli/shared/context.d.mts +2 -1
  99. package/dist/cli/shared/script-executor.d.mts +0 -1
  100. package/dist/cli/shared/seed-chunker.d.mts +7 -3
  101. package/dist/cli/shared/type-generator.d.mts +0 -1
  102. package/dist/cli/shared/workspace-name.d.mts +1 -0
  103. package/dist/cli/skills.mjs +1 -1
  104. package/dist/completion/zsh-worker.zsh +18 -1
  105. package/dist/configure/config/index.d.mts +0 -1
  106. package/dist/configure/config/types.d.mts +2 -2
  107. package/dist/configure/index.d.mts +2 -1
  108. package/dist/configure/index.mjs +248 -4
  109. package/dist/configure/index.mjs.map +1 -1
  110. package/dist/configure/services/aigateway/index.d.mts +0 -1
  111. package/dist/configure/services/aigateway/types.d.mts +0 -1
  112. package/dist/configure/services/auth/index.d.mts +0 -1
  113. package/dist/configure/services/auth/types.d.mts +14 -13
  114. package/dist/configure/services/executor/executor.d.mts +0 -1
  115. package/dist/configure/services/executor/index.d.mts +1 -0
  116. package/dist/configure/services/executor/operation.d.mts +1 -2
  117. package/dist/configure/services/executor/trigger/event.d.mts +0 -1
  118. package/dist/configure/services/executor/trigger/index.d.mts +0 -1
  119. package/dist/configure/services/executor/trigger/schedule.d.mts +0 -1
  120. package/dist/configure/services/executor/trigger/webhook.d.mts +0 -1
  121. package/dist/configure/services/http-adapter/http-adapter.d.mts +1 -2
  122. package/dist/configure/services/idp/index.d.mts +1 -5
  123. package/dist/configure/services/idp/permission.d.mts +4 -5
  124. package/dist/configure/services/idp/types.d.mts +0 -1
  125. package/dist/configure/services/index.d.mts +5 -0
  126. package/dist/configure/services/resolver/resolver.d.mts +0 -1
  127. package/dist/configure/services/resolver/types.d.mts +0 -1
  128. package/dist/configure/services/secrets/index.d.mts +0 -1
  129. package/dist/configure/services/secrets/types.d.mts +0 -1
  130. package/dist/configure/services/staticwebsite/index.d.mts +0 -1
  131. package/dist/configure/services/staticwebsite/types.d.mts +0 -1
  132. package/dist/configure/services/tailordb/permission.d.mts +4 -5
  133. package/dist/configure/services/tailordb/schema.d.mts +21 -8
  134. package/dist/configure/services/tailordb/types.d.mts +4 -5
  135. package/dist/configure/services/workflow/execution-policy.d.mts +0 -1
  136. package/dist/configure/services/workflow/execution-policy.types.d.mts +0 -1
  137. package/dist/configure/services/workflow/index.d.mts +1 -0
  138. package/dist/configure/services/workflow/job.d.mts +0 -1
  139. package/dist/configure/services/workflow/wait-point.d.mts +0 -1
  140. package/dist/configure/services/workflow/workflow.d.mts +0 -1
  141. package/dist/configure/types/field-runtime.d.mts +1 -1
  142. package/dist/configure/types/field.d.mts +1 -2
  143. package/dist/configure/types/field.types.d.mts +1 -2
  144. package/dist/configure/types/type.d.mts +1 -1
  145. package/dist/configure/user.d.mts +0 -1
  146. package/dist/{crashreport-ayWANEZ6.mjs → crashreport-BNWUM6Kf.mjs} +4 -3
  147. package/dist/{crashreport-ayWANEZ6.mjs.map → crashreport-BNWUM6Kf.mjs.map} +1 -1
  148. package/dist/{crashreport-Dy4ZzSkd.mjs → crashreport-BafWvjjX.mjs} +1 -1
  149. package/dist/errors-DVFS0AZk.mjs +100 -0
  150. package/dist/errors-DVFS0AZk.mjs.map +1 -0
  151. package/dist/{globals-CcU1ONiK.mjs → globals-CvizbGLY.mjs} +2 -2
  152. package/dist/{globals-CcU1ONiK.mjs.map → globals-CvizbGLY.mjs.map} +1 -1
  153. package/dist/kysely/index.d.mts +3 -4
  154. package/dist/{logger-BEiZZ3qT.mjs → logger-BwS4ppwO.mjs} +3 -3
  155. package/dist/logger-BwS4ppwO.mjs.map +1 -0
  156. package/dist/parser/service/auth/index.d.mts +1 -1
  157. package/dist/parser/service/auth/schema.d.mts +1 -0
  158. package/dist/parser/service/http-adapter/index.d.mts +1 -1
  159. package/dist/parser/service/idp/types.d.mts +1 -0
  160. package/dist/parser/service/tailordb/types.d.mts +0 -1
  161. package/dist/plugin/builtin/enum-constants/index.d.mts +0 -1
  162. package/dist/plugin/builtin/file-utils/index.d.mts +0 -1
  163. package/dist/plugin/builtin/kysely-type/index.d.mts +0 -1
  164. package/dist/plugin/builtin/seed/index.d.mts +0 -1
  165. package/dist/plugin/builtin/seed/index.mjs +1 -1
  166. package/dist/plugin/get-generated-type.d.mts +0 -1
  167. package/dist/plugin/manager.d.mts +3 -1
  168. package/dist/plugin/types.d.mts +0 -1
  169. package/dist/plugin/with-context.d.mts +0 -1
  170. package/dist/{registry-NfSW0BRo.mjs → registry-CYBRvfaU.mjs} +4 -49
  171. package/dist/registry-CYBRvfaU.mjs.map +1 -0
  172. package/dist/runtime/aigateway.d.mts +0 -2
  173. package/dist/runtime/authconnection.d.mts +0 -2
  174. package/dist/runtime/globals.d.mts +0 -1
  175. package/dist/runtime/index.d.mts +0 -1
  176. package/dist/runtime/types.d.mts +16 -7
  177. package/dist/{runtime-_vUgjiqT.mjs → runtime-BD2vYJFT.mjs} +2382 -1167
  178. package/dist/runtime-BD2vYJFT.mjs.map +1 -0
  179. package/dist/{schema-DrVyN-LP.mjs → schema-U6DxoZ8D.mjs} +204 -3
  180. package/dist/schema-U6DxoZ8D.mjs.map +1 -0
  181. package/dist/{secret-file-VSVGy1V0.mjs → secret-file-DBqZhjFQ.mjs} +2 -27
  182. package/dist/{secret-file-VSVGy1V0.mjs.map → secret-file-DBqZhjFQ.mjs.map} +1 -1
  183. package/dist/{secretmanager-Bd45j7an.mjs → secretmanager-IY4UvinW.mjs} +42 -9
  184. package/dist/secretmanager-IY4UvinW.mjs.map +1 -0
  185. package/dist/seed/index.d.mts +3 -2
  186. package/dist/{seed-fm0LeYP2.mjs → seed-DFFigL8V.mjs} +3 -13
  187. package/dist/seed-DFFigL8V.mjs.map +1 -0
  188. package/dist/service-CghpdV-9.mjs +3 -0
  189. package/dist/{service-DBFZQloR.mjs → service-Cp0I7ZFe.mjs} +3 -3
  190. package/dist/{service-DBFZQloR.mjs.map → service-Cp0I7ZFe.mjs.map} +1 -1
  191. package/dist/{service-BCRJ-3NV.mjs → service-D12iQGcS.mjs} +2 -2
  192. package/dist/{service-BCRJ-3NV.mjs.map → service-D12iQGcS.mjs.map} +1 -1
  193. package/dist/service_pb-BoLM0X4K.mjs +167 -0
  194. package/dist/service_pb-BoLM0X4K.mjs.map +1 -0
  195. package/dist/{service_pb-B2FF59sP.mjs → service_pb-r1T7kpJc.mjs} +1 -1
  196. package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +0 -1
  197. package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +0 -1
  198. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +0 -1
  199. package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +0 -1
  200. package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +0 -1
  201. package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +0 -1
  202. package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +0 -1
  203. package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +0 -1
  204. package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +0 -1
  205. package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +0 -1
  206. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +0 -1
  207. package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +0 -1
  208. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +0 -1
  209. package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +0 -1
  210. package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +0 -1
  211. package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +0 -1
  212. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +0 -1
  213. package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +0 -1
  214. package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +0 -1
  215. package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +0 -1
  216. package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +0 -1
  217. package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +0 -1
  218. package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +0 -1
  219. package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +0 -1
  220. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +0 -1
  221. package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +0 -1
  222. package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +0 -1
  223. package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +0 -1
  224. package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +0 -1
  225. package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +0 -1
  226. package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +0 -1
  227. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +0 -1
  228. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +0 -1
  229. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +0 -1
  230. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +0 -1
  231. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +0 -1
  232. package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +0 -1
  233. package/dist/test-env-key-DuZycyWM.mjs +49 -0
  234. package/dist/test-env-key-DuZycyWM.mjs.map +1 -0
  235. package/dist/type-source-DH_LH20p.mjs +13 -0
  236. package/dist/type-source-DH_LH20p.mjs.map +1 -0
  237. package/dist/types/aigateway.generated.d.mts +5 -2
  238. package/dist/types/auth-connection.generated.d.mts +11 -5
  239. package/dist/types/auth.generated.d.mts +118 -85
  240. package/dist/types/executor.generated.d.mts +76 -84
  241. package/dist/types/helpers.d.mts +5 -5
  242. package/dist/types/http-adapter.generated.d.mts +11 -5
  243. package/dist/types/idp.generated.d.mts +536 -524
  244. package/dist/types/resolver.generated.d.mts +24 -10
  245. package/dist/types/staticwebsite.generated.d.mts +7 -3
  246. package/dist/types/tailordb.generated.d.mts +55 -29
  247. package/dist/types/workflow.generated.d.mts +9 -4
  248. package/dist/user-agent-DX2Jnw0-.mjs +28 -0
  249. package/dist/user-agent-DX2Jnw0-.mjs.map +1 -0
  250. package/dist/utils/test/index.d.mts +0 -1
  251. package/dist/utils/test/index.mjs +1 -1
  252. package/dist/utils/test/mock.d.mts +0 -1
  253. package/dist/vitest/environment.mjs +1 -1
  254. package/dist/vitest/index.d.mts +9 -9
  255. package/dist/vitest/index.mjs +600 -185
  256. package/dist/vitest/index.mjs.map +1 -1
  257. package/dist/vitest/mock-kysely.d.mts +0 -1
  258. package/dist/vitest/mock.d.mts +8 -8
  259. package/dist/vitest/mocks/aigateway.d.mts +16 -6
  260. package/dist/vitest/mocks/authconnection.d.mts +16 -6
  261. package/dist/vitest/mocks/file.d.mts +24 -6
  262. package/dist/vitest/mocks/iconv.d.mts +28 -4
  263. package/dist/vitest/mocks/idp.d.mts +26 -10
  264. package/dist/vitest/mocks/secretmanager.d.mts +16 -5
  265. package/dist/vitest/mocks/tailordb.d.mts +54 -10
  266. package/dist/vitest/mocks/workflow.d.mts +48 -11
  267. package/dist/vitest/setup.mjs +2 -2
  268. package/dist/{service_pb-B5w9rjPY.mjs → workspace_resource_pb-Db3fv68L.mjs} +57 -165
  269. package/dist/workspace_resource_pb-Db3fv68L.mjs.map +1 -0
  270. package/docs/cli/application.md +58 -11
  271. package/docs/cli/setup.md +1 -1
  272. package/docs/cli/workspace.md +6 -4
  273. package/docs/cli-reference.md +12 -8
  274. package/docs/runtime.md +3 -4
  275. package/docs/services/aigateway.md +2 -0
  276. package/docs/services/tailordb.md +52 -1
  277. package/docs/services/workflow.md +1 -1
  278. package/docs/testing.md +103 -89
  279. package/package.json +16 -16
  280. package/dist/application-BUfYmf0O.mjs.map +0 -1
  281. package/dist/application-DbvD5UUz.mjs +0 -3
  282. package/dist/cli/shared/trigger-context.d.mts +0 -1
  283. package/dist/errors-Dtf2WPaW.mjs +0 -42
  284. package/dist/errors-Dtf2WPaW.mjs.map +0 -1
  285. package/dist/field-runtime-9bfXBAOK.mjs +0 -183
  286. package/dist/field-runtime-9bfXBAOK.mjs.map +0 -1
  287. package/dist/job-D-PbD1P3.mjs +0 -55
  288. package/dist/job-D-PbD1P3.mjs.map +0 -1
  289. package/dist/logger-BEiZZ3qT.mjs.map +0 -1
  290. package/dist/registry-NfSW0BRo.mjs.map +0 -1
  291. package/dist/resource_pb-BRv7AMXK.mjs +0 -49
  292. package/dist/resource_pb-BRv7AMXK.mjs.map +0 -1
  293. package/dist/runtime-_vUgjiqT.mjs.map +0 -1
  294. package/dist/schema-DrVyN-LP.mjs.map +0 -1
  295. package/dist/secretmanager-Bd45j7an.mjs.map +0 -1
  296. package/dist/seed-fm0LeYP2.mjs.map +0 -1
  297. package/dist/service-CPMlIg3X.mjs +0 -3
  298. package/dist/service_pb-B5w9rjPY.mjs.map +0 -1
  299. package/dist/types-BwzB2okW.mjs +0 -199
  300. package/dist/types-BwzB2okW.mjs.map +0 -1
  301. package/dist/types-KlawuVKa.mjs +0 -4
@@ -1,16 +1,26 @@
1
1
  //#region src/types/resolver.generated.d.ts
2
+ /**
3
+ * GraphQL operation type
4
+ */
5
+ type QueryType = "query" | "mutation";
2
6
  type Resolver = {
3
- /** GraphQL operation type (query or mutation) */operation: "query" | "mutation"; /** Resolver name */
4
- name: string; /** Resolver implementation function */
5
- body: Function; /** Output field definition */
7
+ /** GraphQL operation type (query or mutation) */
8
+ operation: QueryType;
9
+ /** Resolver name */
10
+ name: string;
11
+ /** Resolver implementation function */
12
+ body: Function;
13
+ /** Output field definition */
6
14
  output: {
7
15
  type: "string" | "boolean" | "date" | "enum" | "uuid" | "integer" | "float" | "decimal" | "datetime" | "time" | "nested";
8
16
  metadata: {
9
17
  required?: boolean | undefined;
10
- array?: boolean | undefined; /** Resolver description */
18
+ array?: boolean | undefined;
19
+ /** Resolver description */
11
20
  description?: string | undefined;
12
21
  allowedValues?: {
13
- value: string; /** Resolver description */
22
+ value: string;
23
+ /** Resolver description */
14
24
  description?: string | undefined;
15
25
  }[] | undefined;
16
26
  hooks?: {
@@ -22,12 +32,16 @@ type Resolver = {
22
32
  fields: {
23
33
  [x: string]: any;
24
34
  };
25
- }; /** Resolver description */
26
- description?: string | undefined; /** Input field definitions */
35
+ };
36
+ /** Resolver description */
37
+ description?: string | undefined;
38
+ /** Input field definitions */
27
39
  input?: {
28
40
  [x: string]: any;
29
- } | undefined; /** Enable publishing events from this resolver */
30
- publishEvents?: boolean | undefined; /** Machine user to execute this resolver as */
41
+ } | undefined;
42
+ /** Enable publishing events from this resolver */
43
+ publishEvents?: boolean | undefined;
44
+ /** Machine user to execute this resolver as */
31
45
  authInvoker?: string | {
32
46
  namespace: string;
33
47
  machineUserName: string;
@@ -35,4 +49,4 @@ type Resolver = {
35
49
  };
36
50
  type ResolverInput = Resolver;
37
51
  //#endregion
38
- export { Resolver, ResolverInput };
52
+ export { QueryType, Resolver, ResolverInput };
@@ -1,8 +1,12 @@
1
1
  //#region src/types/staticwebsite.generated.d.ts
2
2
  type StaticWebsite = {
3
- /** Static website name */name: string; /** Static website description */
4
- description?: string | undefined; /** IP addresses allowed to access the website */
5
- allowedIpAddresses?: string[] | undefined; /** Custom domains for the static website */
3
+ /** Static website name */
4
+ name: string;
5
+ /** Static website description */
6
+ description?: string | undefined;
7
+ /** IP addresses allowed to access the website */
8
+ allowedIpAddresses?: string[] | undefined;
9
+ /** Custom domains for the static website */
6
10
  customDomains?: string[] | undefined;
7
11
  };
8
12
  type StaticWebsiteInput = StaticWebsite;
@@ -9,43 +9,64 @@ type GqlOperationsInput = "query" | {
9
9
  delete?: boolean | undefined;
10
10
  read?: boolean | undefined;
11
11
  };
12
+ type GqlOperations = {
13
+ create?: boolean | undefined;
14
+ update?: boolean | undefined;
15
+ delete?: boolean | undefined;
16
+ read?: boolean | undefined;
17
+ };
12
18
  type DBFieldMetadata = {
13
- /** Whether the field is required */required?: boolean | undefined; /** Whether the field is an array */
14
- array?: boolean | undefined; /** Field description */
15
- description?: string | undefined; /** Type name for nested or enum fields */
16
- typeName?: string | undefined; /** Allowed values for enum fields */
19
+ /** Whether the field is required */
20
+ required?: boolean | undefined;
21
+ /** Whether the field is an array */
22
+ array?: boolean | undefined;
23
+ /** Field description */
24
+ description?: string | undefined;
25
+ /** Type name for nested or enum fields */
26
+ typeName?: string | undefined;
27
+ /** Allowed values for enum fields */
17
28
  allowedValues?: {
18
- value: string; /** Field description */
29
+ value: string;
30
+ /** Field description */
19
31
  description?: string | undefined;
20
- }[] | undefined; /** Whether the field is indexed for faster queries */
21
- index?: boolean | undefined; /** Whether the field value must be unique */
22
- unique?: boolean | undefined; /** Whether the field is a vector field for similarity search */
23
- vector?: boolean | undefined; /** Whether the field is a foreign key */
24
- foreignKey?: boolean | undefined; /** Target type name for foreign key relations */
25
- foreignKeyType?: string | undefined; /** Target field name for foreign key relations */
26
- foreignKeyField?: string | undefined; /** Lifecycle hooks for the field */
32
+ }[] | undefined;
33
+ /** Whether the field is indexed for faster queries */
34
+ index?: boolean | undefined;
35
+ /** Whether the field value must be unique */
36
+ unique?: boolean | undefined;
37
+ /** Whether the field is a vector field for similarity search */
38
+ vector?: boolean | undefined;
39
+ /** Whether the field is a foreign key */
40
+ foreignKey?: boolean | undefined;
41
+ /** Target type name for foreign key relations */
42
+ foreignKeyType?: string | undefined;
43
+ /** Target field name for foreign key relations */
44
+ foreignKeyField?: string | undefined;
45
+ /** Lifecycle hooks for the field */
27
46
  hooks?: {
28
47
  create?: Function | undefined;
29
48
  update?: Function | undefined;
30
- } | undefined; /** Validation functions for the field */
31
- validate?: (Function | [Function, string])[] | undefined; /** Serial (auto-increment) configuration */
49
+ } | undefined;
50
+ /** Validation functions for the field */
51
+ validate?: (Function | [Function, string])[] | undefined;
52
+ /** Serial (auto-increment) configuration */
32
53
  serial?: {
33
54
  start: number;
34
55
  maxValue?: number | undefined;
35
56
  format?: string | undefined;
36
- } | undefined; /** Decimal scale (number of digits after decimal point, 0-12) */
57
+ } | undefined;
58
+ /** Decimal scale (number of digits after decimal point, 0-12) */
37
59
  scale?: number | undefined;
38
60
  };
39
61
  type TailorDBTypeParsedSettings = {
40
- /** Custom plural form of the type name for GraphQL */pluralForm?: string | undefined; /** Enable aggregation queries for this type */
41
- aggregation?: boolean | undefined; /** Enable bulk upsert mutation for this type */
42
- bulkUpsert?: boolean | undefined; /** Configure GraphQL operations for this type. Use "query" for read-only mode, or an object for granular control. */
43
- gqlOperations?: {
44
- create?: boolean | undefined;
45
- update?: boolean | undefined;
46
- delete?: boolean | undefined;
47
- read?: boolean | undefined;
48
- } | undefined;
62
+ /** Custom plural form of the type name for GraphQL */
63
+ pluralForm?: string | undefined;
64
+ /** Enable aggregation queries for this type */
65
+ aggregation?: boolean | undefined;
66
+ /** Enable bulk upsert mutation for this type */
67
+ bulkUpsert?: boolean | undefined;
68
+ /** Configure GraphQL operations for this type. Use "query" for read-only mode, or an object for granular control. */
69
+ gqlOperations?: GqlOperations;
49
70
  /**
50
71
  * Enable publishing events for this type.
51
72
  * When enabled, record creation/update/deletion events are published.
@@ -410,13 +431,18 @@ type RawPermissions = {
410
431
  }[] | undefined;
411
432
  };
412
433
  type TailorDBServiceConfigInput = {
413
- /** Glob patterns for TailorDB type definition files */files: string[]; /** Glob patterns to exclude from type discovery */
414
- ignores?: string[] | undefined; /** URL for the ERD (Entity Relationship Diagram) site */
415
- erdSite?: string | undefined; /** Migration configuration */
434
+ /** Glob patterns for TailorDB type definition files */
435
+ files: string[];
436
+ /** Glob patterns to exclude from type discovery */
437
+ ignores?: string[] | undefined;
438
+ /** URL for the ERD (Entity Relationship Diagram) site */
439
+ erdSite?: string | undefined;
440
+ /** Migration configuration */
416
441
  migration?: {
417
442
  directory: string;
418
443
  machineUser?: string | undefined;
419
- } | undefined; /** Default GraphQL operations for all types in this service */
444
+ } | undefined;
445
+ /** Default GraphQL operations for all types in this service */
420
446
  gqlOperations?: "query" | {
421
447
  create?: boolean | undefined;
422
448
  update?: boolean | undefined;
@@ -425,4 +451,4 @@ type TailorDBServiceConfigInput = {
425
451
  } | undefined;
426
452
  };
427
453
  //#endregion
428
- export { DBFieldMetadata, GqlOperationsInput, RawPermissions, TailorDBServiceConfigInput, TailorDBTypeParsedSettings };
454
+ export { DBFieldMetadata, GqlOperations, GqlOperationsInput, RawPermissions, TailorDBServiceConfigInput, TailorDBTypeParsedSettings };
@@ -1,12 +1,17 @@
1
1
  //#region src/types/workflow.generated.d.ts
2
2
  type RetryPolicy = {
3
- /** Maximum number of retries (1-10) */maxRetries: number; /** Initial backoff duration (e.g., '1s', '500ms', '1m', max 1h) */
4
- initialBackoff: `${number}ms` | `${number}s` | `${number}m`; /** Maximum backoff duration (e.g., '30s', '5m', max 24h) */
5
- maxBackoff: `${number}ms` | `${number}s` | `${number}m`; /** Backoff multiplier (>= 1) */
3
+ /** Maximum number of retries (1-10) */
4
+ maxRetries: number;
5
+ /** Initial backoff duration (e.g., '1s', '500ms', '1m', max 1h) */
6
+ initialBackoff: `${number}ms` | `${number}s` | `${number}m`;
7
+ /** Maximum backoff duration (e.g., '30s', '5m', max 24h) */
8
+ maxBackoff: `${number}ms` | `${number}s` | `${number}m`;
9
+ /** Backoff multiplier (>= 1) */
6
10
  backoffMultiplier: number;
7
11
  };
8
12
  type ConcurrencyPolicy = {
9
- /** Maximum number of concurrent executions (1-1000) */maxConcurrentExecutions: number;
13
+ /** Maximum number of concurrent executions (1-1000) */
14
+ maxConcurrentExecutions: number;
10
15
  };
11
16
  //#endregion
12
17
  export { ConcurrencyPolicy, RetryPolicy };
@@ -0,0 +1,28 @@
1
+ import { t as readPackageJson } from "./package-json-8b0O9TlX.mjs";
2
+
3
+ //#region src/cli/shared/user-agent.ts
4
+ /**
5
+ * Build the User-Agent string from an already-known SDK version, without
6
+ * touching the filesystem. Use this when the caller has resolved the version
7
+ * (e.g. crash reporting already reads `package.json`) to avoid a redundant read.
8
+ * @param version - SDK version string
9
+ * @returns User-Agent header value
10
+ */
11
+ function userAgentFromVersion(version) {
12
+ return `tailor-sdk/${version}`;
13
+ }
14
+ /**
15
+ * Build the User-Agent string for CLI requests.
16
+ *
17
+ * Lives in its own module (rather than `client.ts`) so callers that only need
18
+ * the UA — e.g. crash reporting — do not pull in the operator client's heavy
19
+ * OAuth2/Connect/Protobuf dependencies, and so importing it never forms a cycle.
20
+ * @returns User-Agent header value
21
+ */
22
+ async function userAgent() {
23
+ return userAgentFromVersion((await readPackageJson()).version ?? "unknown");
24
+ }
25
+
26
+ //#endregion
27
+ export { userAgentFromVersion as n, userAgent as t };
28
+ //# sourceMappingURL=user-agent-DX2Jnw0-.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-agent-DX2Jnw0-.mjs","names":[],"sources":["../src/cli/shared/user-agent.ts"],"sourcesContent":["import { readPackageJson } from \"./package-json\";\n\n/**\n * Build the User-Agent string from an already-known SDK version, without\n * touching the filesystem. Use this when the caller has resolved the version\n * (e.g. crash reporting already reads `package.json`) to avoid a redundant read.\n * @param version - SDK version string\n * @returns User-Agent header value\n */\nexport function userAgentFromVersion(version: string): string {\n return `tailor-sdk/${version}`;\n}\n\n/**\n * Build the User-Agent string for CLI requests.\n *\n * Lives in its own module (rather than `client.ts`) so callers that only need\n * the UA — e.g. crash reporting — do not pull in the operator client's heavy\n * OAuth2/Connect/Protobuf dependencies, and so importing it never forms a cycle.\n * @returns User-Agent header value\n */\nexport async function userAgent() {\n const packageJson = await readPackageJson();\n return userAgentFromVersion(packageJson.version ?? \"unknown\");\n}\n"],"mappings":";;;;;;;;;;AASA,SAAgB,qBAAqB,SAAyB;CAC5D,OAAO,cAAc;AACvB;;;;;;;;;AAUA,eAAsB,YAAY;CAEhC,OAAO,sBAAqB,MADF,gBAAgB,EACH,CAAC,WAAW,SAAS;AAC9D"}
@@ -4,7 +4,6 @@ import { WORKFLOW_TEST_ENV_KEY } from "../../configure/services/workflow/test-en
4
4
  import { output } from "../../configure/index.mjs";
5
5
  import { createImportMain, setupInvokerMock, setupTailorErrorsMock, setupTailordbMock, setupWaitPointMock, setupWorkflowMock } from "./mock.mjs";
6
6
  import { StandardSchemaV1 } from "@standard-schema/spec";
7
-
8
7
  //#region src/utils/test/index.d.ts
9
8
  /** Represents an unauthenticated user in the Tailor platform. */
10
9
  declare const unauthenticatedTailorUser: {
@@ -1,4 +1,4 @@
1
- import { u as WORKFLOW_TEST_ENV_KEY } from "../../registry-NfSW0BRo.mjs";
1
+ import { t as WORKFLOW_TEST_ENV_KEY } from "../../test-env-key-DuZycyWM.mjs";
2
2
  import { pathToFileURL } from "node:url";
3
3
  import * as path from "node:path";
4
4
 
@@ -1,5 +1,4 @@
1
1
  import { TailorInvoker } from "../../runtime/types.mjs";
2
-
3
2
  //#region src/utils/test/mock.d.ts
4
3
  type MainFunction = (args: Record<string, unknown>) => unknown | Promise<unknown>;
5
4
  type QueryResolver = (query: string, params: unknown[]) => unknown[];
@@ -1,4 +1,4 @@
1
- import { n as cleanupPlatformGlobals, r as installPlatformGlobals, t as RUNTIME_FLAG_KEY } from "../globals-CcU1ONiK.mjs";
1
+ import { n as cleanupPlatformGlobals, r as installPlatformGlobals, t as RUNTIME_FLAG_KEY } from "../globals-CvizbGLY.mjs";
2
2
  import * as globals from "globals";
3
3
 
4
4
  //#region src/vitest/environment.ts
@@ -1,14 +1,14 @@
1
- import { mockAigateway } from "./mocks/aigateway.mjs";
2
- import { mockAuthconnection } from "./mocks/authconnection.mjs";
3
- import { mockFile } from "./mocks/file.mjs";
4
- import { mockIconv } from "./mocks/iconv.mjs";
5
- import { mockIdp } from "./mocks/idp.mjs";
6
- import { mockSecretmanager } from "./mocks/secretmanager.mjs";
7
- import { mockTailordb } from "./mocks/tailordb.mjs";
1
+ import { MockAigatewayOptions, mockAigateway } from "./mocks/aigateway.mjs";
2
+ import { MockAuthconnectionOptions, mockAuthconnection } from "./mocks/authconnection.mjs";
3
+ import { MockFileOptions, mockFile } from "./mocks/file.mjs";
4
+ import { MockIconvOptions, mockIconv } from "./mocks/iconv.mjs";
5
+ import { MockIdpOptions, mockIdp } from "./mocks/idp.mjs";
6
+ import { MockSecretmanagerOptions, mockSecretmanager } from "./mocks/secretmanager.mjs";
7
+ import { MockTailordbOptions, QueryBehavior, QueryMatch, QueryMatcher, mockTailordb } from "./mocks/tailordb.mjs";
8
8
  import { mockWorkflow } from "./mocks/workflow.mjs";
9
+ import "./mock.mjs";
9
10
  import { ExecutedQuery, KyselyMock, createKyselyMock } from "./mock-kysely.mjs";
10
11
  import { Plugin } from "vitest/config";
11
-
12
12
  //#region src/vitest/index.d.ts
13
13
  /**
14
14
  * Creates Vitest plugins that emulate the Tailor Platform function runtime environment.
@@ -68,4 +68,4 @@ declare function tailorRuntime(options?: {
68
68
  config?: string;
69
69
  }): Plugin[];
70
70
  //#endregion
71
- export { type ExecutedQuery, type KyselyMock, createKyselyMock, mockAigateway, mockAuthconnection, mockFile, mockIconv, mockIdp, mockSecretmanager, mockTailordb, mockWorkflow, tailorRuntime };
71
+ export { type ExecutedQuery, type KyselyMock, type MockAigatewayOptions, type MockAuthconnectionOptions, type MockFileOptions, type MockIconvOptions, type MockIdpOptions, type MockSecretmanagerOptions, type MockTailordbOptions, type QueryBehavior, type QueryMatch, type QueryMatcher, createKyselyMock, mockAigateway, mockAuthconnection, mockFile, mockIconv, mockIdp, mockSecretmanager, mockTailordb, mockWorkflow, tailorRuntime };