@tailor-platform/sdk 2.29.1 → 2.30.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 (87) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/{application-dalGHdrI.mjs → application-C2bPmmbh.mjs} +1 -1
  3. package/dist/application-D0xNJbag.mjs +199 -0
  4. package/dist/application-D0xNJbag.mjs.map +1 -0
  5. package/dist/brand-C8nMKhJC.mjs.map +1 -1
  6. package/dist/cli/commands/machineuser/list.d.mts +2 -1
  7. package/dist/cli/lib.mjs +1 -1
  8. package/dist/cli/lib.mjs.map +1 -1
  9. package/dist/cli/main.mjs +50 -50
  10. package/dist/cli/main.mjs.map +1 -1
  11. package/dist/cli/shared/error-json.d.mts +2 -0
  12. package/dist/completion/zsh-worker.zsh +1 -1
  13. package/dist/{crashreport-BAG8c7hB.mjs → crashreport-BCIy33Cz.mjs} +2 -2
  14. package/dist/{crashreport-BAG8c7hB.mjs.map → crashreport-BCIy33Cz.mjs.map} +1 -1
  15. package/dist/crashreport-IN6H7GX3.mjs +1 -0
  16. package/dist/errors-BOF68LJ5.mjs +5 -0
  17. package/dist/errors-BOF68LJ5.mjs.map +1 -0
  18. package/dist/{logger-DuaT2zY3.mjs → logger-RgtbhJ83.mjs} +3 -3
  19. package/dist/logger-RgtbhJ83.mjs.map +1 -0
  20. package/dist/plugin/builtin/seed/index.mjs +1 -1
  21. package/dist/{register-ts-hook-CkfKqhJT.mjs → register-ts-hook-CDnN_Jx2.mjs} +84 -86
  22. package/dist/register-ts-hook-CDnN_Jx2.mjs.map +1 -0
  23. package/dist/seed/idp-user-password.d.mts +15 -0
  24. package/dist/seed/index.d.mts +19 -1
  25. package/dist/seed/index.mjs +6 -6
  26. package/dist/seed/index.mjs.map +1 -1
  27. package/dist/{seed-C3P_T_Eh.mjs → seed-Cn-3JApy.mjs} +12 -8
  28. package/dist/seed-Cn-3JApy.mjs.map +1 -0
  29. package/dist/service-9SBPNpK8.mjs +8 -0
  30. package/dist/service-9SBPNpK8.mjs.map +1 -0
  31. package/dist/{service-b1g22NN9.mjs → service-9rwi_I4d.mjs} +2 -2
  32. package/dist/{service-b1g22NN9.mjs.map → service-9rwi_I4d.mjs.map} +1 -1
  33. package/dist/service-Ca1WwyIt.mjs +1 -0
  34. package/docs/cli/application.md +4 -0
  35. package/docs/cli/auth.md +4 -0
  36. package/docs/cli/completion.md +4 -0
  37. package/docs/cli/crashreport.md +4 -0
  38. package/docs/cli/data.md +4 -0
  39. package/docs/cli/executor.md +4 -0
  40. package/docs/cli/function.md +4 -0
  41. package/docs/cli/organization.md +4 -0
  42. package/docs/cli/plugin.md +4 -0
  43. package/docs/cli/query.md +4 -0
  44. package/docs/cli/secret.md +4 -0
  45. package/docs/cli/skills.md +4 -0
  46. package/docs/cli/staticwebsite.md +4 -0
  47. package/docs/cli/tailordb.md +4 -0
  48. package/docs/cli/upgrade.md +4 -0
  49. package/docs/cli/user.md +4 -0
  50. package/docs/cli/workflow.md +4 -0
  51. package/docs/cli/workspace.md +4 -0
  52. package/docs/cli-reference.md +4 -0
  53. package/docs/configuration.md +6 -0
  54. package/docs/data-clone.md +4 -0
  55. package/docs/github-actions.md +10 -0
  56. package/docs/migration/v2.md +4 -0
  57. package/docs/multi-environment.md +4 -0
  58. package/docs/plugin/custom.md +4 -0
  59. package/docs/plugin/frontend.md +4 -0
  60. package/docs/plugin/index.md +4 -0
  61. package/docs/quickstart.md +4 -0
  62. package/docs/runtime.md +4 -0
  63. package/docs/services/aigateway.md +4 -0
  64. package/docs/services/auth.md +4 -0
  65. package/docs/services/executor.md +5 -1
  66. package/docs/services/http-adapter.md +4 -0
  67. package/docs/services/idp.md +4 -0
  68. package/docs/services/resolver.md +4 -0
  69. package/docs/services/secret.md +4 -0
  70. package/docs/services/staticwebsite.md +4 -0
  71. package/docs/services/tailordb/index.md +4 -0
  72. package/docs/services/tailordb/migration.md +4 -0
  73. package/docs/services/workflow.md +4 -0
  74. package/docs/testing.md +4 -0
  75. package/package.json +8 -8
  76. package/dist/application-rWYDAfNU.mjs +0 -200
  77. package/dist/application-rWYDAfNU.mjs.map +0 -1
  78. package/dist/crashreport-BcXuocwI.mjs +0 -1
  79. package/dist/errors-D3qpNHR6.mjs +0 -7
  80. package/dist/errors-D3qpNHR6.mjs.map +0 -1
  81. package/dist/logger-DuaT2zY3.mjs.map +0 -1
  82. package/dist/register-ts-hook-CkfKqhJT.mjs.map +0 -1
  83. package/dist/seed-C3P_T_Eh.mjs.map +0 -1
  84. package/dist/service-CETr0AKY.mjs +0 -7
  85. package/dist/service-CETr0AKY.mjs.map +0 -1
  86. package/dist/service-DREWLYxD.mjs +0 -1
  87. package/docs/migration/v3.md +0 -277
@@ -1,3 +1,7 @@
1
+ ---
2
+ description: "Define AI Gateways that give your app one OpenAI-compatible endpoint for multiple LLMs, with workspace authentication and platform-managed credentials."
3
+ ---
4
+
1
5
  # AI Gateway
2
6
 
3
7
  AI Gateway provides a unified endpoint for accessing a range of large language models through a single OpenAI-compatible API, with platform-managed credentials and workspace-scoped authentication.
@@ -1,3 +1,7 @@
1
+ ---
2
+ description: "Configure authentication and authorization with defineAuth, including user profiles, machine users, OAuth 2.0 clients, identity providers, auth connections, and before-login hooks."
3
+ ---
4
+
1
5
  # Auth
2
6
 
3
7
  Auth is a service for configuring authentication and authorization in your Tailor Platform application.
@@ -1,3 +1,7 @@
1
+ ---
2
+ description: "Create executors that run functions, webhooks, GraphQL operations, or workflows in response to record changes, schedules, incoming webhooks, and resolver events."
3
+ ---
4
+
1
5
  # Executor
2
6
 
3
7
  Executors are event-driven handlers that automatically trigger in response to data changes, schedules, or external events.
@@ -194,7 +198,7 @@ export default createExecutor({
194
198
  });
195
199
  ```
196
200
 
197
- The available workflow events are `started`, `completed`, `retried`, `resumed`, `wait_started`, and `wait_resolved`. To observe job-level events, use `workflowJobExecutionStartedTrigger()`, `workflowJobExecutionCompletedTrigger()`, `workflowJobExecutionWaitStartedTrigger()`, `workflowJobExecutionWaitResolvedTrigger()`, or `workflowJobExecutionTrigger()`.
201
+ The available workflow events are `started`, `completed`, `retried`, `resumed`, `wait_started`, and `wait_resolved`; their single-event helpers are `workflowExecutionStartedTrigger()`, `workflowExecutionCompletedTrigger()`, `workflowExecutionRetriedTrigger()`, `workflowExecutionResumedTrigger()`, `workflowExecutionWaitStartedTrigger()`, and `workflowExecutionWaitResolvedTrigger()`. To observe job-level events, use `workflowJobExecutionStartedTrigger()`, `workflowJobExecutionCompletedTrigger()`, `workflowJobExecutionWaitStartedTrigger()`, `workflowJobExecutionWaitResolvedTrigger()`, or `workflowJobExecutionTrigger()`.
198
202
 
199
203
  `completed` events include `success`; when it is `false`, `error` contains the failure message. A job released from a wait point emits `wait_resolved` instead of `completed`.
200
204
 
@@ -1,3 +1,7 @@
1
+ ---
2
+ description: "Expose REST-style HTTP endpoints that translate each request into a GraphQL operation and shape the response for HTTP clients."
3
+ ---
4
+
1
5
  # HTTP Adapter
2
6
 
3
7
  HTTP adapters expose REST-style HTTP endpoints on your application by translating each request into a GraphQL query and (optionally) reshaping the GraphQL response back into an HTTP response.
@@ -1,3 +1,7 @@
1
+ ---
2
+ description: "Set up the built-in identity provider with defineIdp to register and authenticate users and manage OAuth clients for your Auth service."
3
+ ---
4
+
1
5
  # IdP (Identity Provider)
2
6
 
3
7
  IdP is a built-in identity provider service for managing user authentication.
@@ -1,3 +1,7 @@
1
+ ---
2
+ description: "Build custom GraphQL queries and mutations in TypeScript with typed input and output schemas, validation, TailorDB access, and permissions."
3
+ ---
4
+
1
5
  # Resolver
2
6
 
3
7
  Resolvers are custom GraphQL endpoints with business logic that execute on the Tailor Platform.
@@ -1,3 +1,7 @@
1
+ ---
2
+ description: "Store API keys, tokens, and other credentials in Secret Manager vaults, and read them at runtime from executors and workflows."
3
+ ---
4
+
1
5
  # Secret Manager
2
6
 
3
7
  Secret Manager provides secure storage for sensitive values like API keys, tokens, and credentials that your application needs at runtime.
@@ -1,3 +1,7 @@
1
+ ---
2
+ description: "Host static web applications on the Tailor Platform with defineStaticWebSite, including type-safe URL references, IP restrictions, and custom domains."
3
+ ---
4
+
1
5
  # Static Website
2
6
 
3
7
  Static Website is a service for hosting static web applications on the Tailor Platform.
@@ -1,3 +1,7 @@
1
+ ---
2
+ description: "Define TailorDB tables in TypeScript with field types, relations, permissions, hooks, and validations, and get a generated GraphQL API."
3
+ ---
4
+
1
5
  # TailorDB
2
6
 
3
7
  TailorDB is a type-safe database service for defining and managing data models on the Tailor Platform.
@@ -1,3 +1,7 @@
1
+ ---
2
+ description: "Generate, test, and apply TailorDB schema migrations with optional data migration scripts, and recover from failed migrations."
3
+ ---
4
+
1
5
  # TailorDB Migrations
2
6
 
3
7
  > **Beta:** The `tailordb migration` command and the migration runtime are beta features. They may introduce breaking changes in future releases. The CLI emits a beta warning on every invocation.
@@ -1,3 +1,7 @@
1
+ ---
2
+ description: "Orchestrate multi-step jobs with durable workflows, including job dependencies, wait points, retry and concurrency policies, and starting workflows from resolvers."
3
+ ---
4
+
1
5
  # Workflow
2
6
 
3
7
  Workflows orchestrate multiple jobs that can depend on each other, enabling complex multi-step operations with durable execution.
package/docs/testing.md CHANGED
@@ -1,3 +1,7 @@
1
+ ---
2
+ description: "Test SDK applications with Vitest: unit-test resolvers, workflow jobs, and executors with platform API mocks, and run end-to-end tests against a deployed workspace."
3
+ ---
4
+
1
5
  # Testing Guide
2
6
 
3
7
  Tailor Platform SDK applications are tested with [Vitest](https://vitest.dev/) at two layers:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/sdk",
3
- "version": "2.29.1",
3
+ "version": "2.30.0",
4
4
  "description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -165,12 +165,12 @@
165
165
  "@opentelemetry/sdk-trace-node": "2.12.0",
166
166
  "@opentelemetry/semantic-conventions": "1.43.0",
167
167
  "@oxc-project/types": "0.154.0",
168
- "@politty/zod": "0.5.1",
168
+ "@politty/zod": "0.5.2",
169
169
  "@secretlint/core": "13.0.7",
170
170
  "@secretlint/secretlint-rule-preset-recommend": "13.0.7",
171
171
  "@standard-schema/spec": "1.1.0",
172
172
  "@tailor-platform/function-kysely-tailordb": "0.1.3",
173
- "@toiroakr/read-multiline": "0.4.1",
173
+ "@toiroakr/read-multiline": "0.4.3",
174
174
  "@urql/core": "6.0.3",
175
175
  "amaro": "1.2.1",
176
176
  "confbox": "0.3.1",
@@ -183,7 +183,7 @@
183
183
  "graphql": "17.0.2",
184
184
  "inflection": "3.0.2",
185
185
  "kysely": "0.29.6",
186
- "lines-db": "0.15.0",
186
+ "lines-db": "0.18.0",
187
187
  "mime-types": "3.0.2",
188
188
  "open": "11.0.4",
189
189
  "oxc-parser": "0.154.0",
@@ -195,7 +195,7 @@
195
195
  "semver": "7.8.5",
196
196
  "sql-highlight": "6.1.0",
197
197
  "std-env": "4.3.0",
198
- "temporal-polyfill": "1.0.5",
198
+ "temporal-polyfill": "1.0.6",
199
199
  "temporal-spec": "1.0.1",
200
200
  "ts-cron-validator": "1.1.5",
201
201
  "type-fest": "5.10.0",
@@ -203,7 +203,7 @@
203
203
  "zod": "4.6.7"
204
204
  },
205
205
  "devDependencies": {
206
- "@electric-sql/pglite": "0.5.9",
206
+ "@electric-sql/pglite": "0.5.10",
207
207
  "@opentelemetry/sdk-trace-base": "2.12.0",
208
208
  "@tailor-platform/shared": "^0.0.0",
209
209
  "@tailor-platform/tailor-proto": "^0.0.1",
@@ -211,7 +211,7 @@
211
211
  "@types/node": "24.19.2",
212
212
  "@types/semver": "7.8.0",
213
213
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
214
- "@vitest/coverage-v8": "5.0.4",
214
+ "@vitest/coverage-v8": "5.0.5",
215
215
  "eslint-plugin-zod": "5.0.0",
216
216
  "oxfmt": "0.73.0",
217
217
  "oxlint": "1.88.0",
@@ -219,7 +219,7 @@
219
219
  "sonda": "0.14.0",
220
220
  "tsdown": "0.23.1",
221
221
  "typescript": "6.0.3",
222
- "vitest": "5.0.4",
222
+ "vitest": "5.0.5",
223
223
  "zinfer": "0.4.7"
224
224
  },
225
225
  "peerDependencies": {