@tailor-platform/create-sdk 2.0.0-next.2 → 2.0.0-next.4

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 (70) hide show
  1. package/CHANGELOG.md +101 -4
  2. package/package.json +7 -6
  3. package/templates/executor/.oxlintrc.json +1 -1
  4. package/templates/executor/__dot__gitignore +1 -1
  5. package/templates/executor/package.json +8 -7
  6. package/templates/executor/src/db/auditLog.ts +1 -1
  7. package/templates/executor/src/db/notification.ts +1 -1
  8. package/templates/executor/src/db/user.ts +1 -1
  9. package/templates/executor/tailor.d.ts +4 -2
  10. package/templates/generators/.oxlintrc.json +1 -1
  11. package/templates/generators/__dot__gitignore +1 -1
  12. package/templates/generators/package.json +8 -7
  13. package/templates/generators/src/db/category.ts +1 -1
  14. package/templates/generators/src/db/order.ts +1 -1
  15. package/templates/generators/src/db/product.ts +1 -1
  16. package/templates/generators/src/db/user.ts +1 -1
  17. package/templates/generators/src/generated/files.ts +1 -1
  18. package/templates/generators/tailor.d.ts +4 -2
  19. package/templates/hello-world/.oxlintrc.json +1 -1
  20. package/templates/hello-world/README.md +6 -6
  21. package/templates/hello-world/__dot__gitignore +1 -1
  22. package/templates/hello-world/package.json +7 -6
  23. package/templates/hello-world/src/db/user.ts +1 -1
  24. package/templates/hello-world/tailor.d.ts +4 -2
  25. package/templates/inventory-management/.oxlintrc.json +1 -1
  26. package/templates/inventory-management/README.md +8 -8
  27. package/templates/inventory-management/__dot__gitignore +1 -1
  28. package/templates/inventory-management/package.json +7 -6
  29. package/templates/inventory-management/src/db/category.ts +1 -1
  30. package/templates/inventory-management/src/db/contact.ts +1 -1
  31. package/templates/inventory-management/src/db/inventory.ts +1 -1
  32. package/templates/inventory-management/src/db/notification.ts +1 -1
  33. package/templates/inventory-management/src/db/order.ts +1 -1
  34. package/templates/inventory-management/src/db/orderItem.ts +1 -1
  35. package/templates/inventory-management/src/db/product.ts +1 -1
  36. package/templates/inventory-management/src/db/user.ts +1 -1
  37. package/templates/inventory-management/tailor.d.ts +4 -2
  38. package/templates/multi-application/.oxlintrc.json +1 -1
  39. package/templates/multi-application/README.md +2 -2
  40. package/templates/multi-application/__dot__gitignore +1 -1
  41. package/templates/multi-application/apps/admin/db/adminNote.ts +1 -1
  42. package/templates/multi-application/apps/user/db/user.ts +1 -1
  43. package/templates/multi-application/package.json +7 -6
  44. package/templates/resolver/.oxlintrc.json +1 -1
  45. package/templates/resolver/__dot__gitignore +1 -1
  46. package/templates/resolver/package.json +8 -7
  47. package/templates/resolver/src/db/user.ts +1 -1
  48. package/templates/resolver/tailor.d.ts +4 -2
  49. package/templates/static-web-site/.oxlintrc.json +1 -1
  50. package/templates/static-web-site/__dot__gitignore +1 -1
  51. package/templates/static-web-site/package.json +7 -6
  52. package/templates/static-web-site/src/db/user.ts +1 -1
  53. package/templates/static-web-site/tailor.d.ts +4 -2
  54. package/templates/tailordb/.oxlintrc.json +1 -1
  55. package/templates/tailordb/README.md +1 -1
  56. package/templates/tailordb/__dot__gitignore +1 -1
  57. package/templates/tailordb/package.json +8 -7
  58. package/templates/tailordb/src/db/category.ts +1 -1
  59. package/templates/tailordb/src/db/comment.ts +1 -1
  60. package/templates/tailordb/src/db/task.ts +1 -1
  61. package/templates/tailordb/src/db/user.ts +1 -1
  62. package/templates/tailordb/tailor.d.ts +4 -2
  63. package/templates/workflow/.oxlintrc.json +1 -1
  64. package/templates/workflow/__dot__gitignore +1 -1
  65. package/templates/workflow/e2e/globalSetup.ts +1 -1
  66. package/templates/workflow/package.json +9 -8
  67. package/templates/workflow/src/db/order.ts +1 -1
  68. package/templates/workflow/src/db/user.ts +1 -1
  69. package/templates/workflow/src/workflow/approval.ts +2 -2
  70. package/templates/workflow/tailor.d.ts +4 -2
package/CHANGELOG.md CHANGED
@@ -1,14 +1,68 @@
1
1
  # @tailor-platform/create-sdk
2
2
 
3
+ ## 2.0.0-next.4
4
+
5
+ ### Major Changes
6
+
7
+ - [#1693](https://github.com/tailor-platform/sdk/pull/1693) [`4751214`](https://github.com/tailor-platform/sdk/commit/4751214c0923e094a844f9ce322279a47e871075) Thanks [@dqn](https://github.com/dqn)! - Rename the TailorDB schema builder from `db.type()` to `db.table()`.
8
+
9
+ Update TailorDB definitions:
10
+
11
+ ```diff
12
+ import { db } from "@tailor-platform/sdk";
13
+
14
+ -export const user = db.type("User", {
15
+ +export const user = db.table("User", {
16
+ name: db.string(),
17
+ });
18
+ ```
19
+
20
+ ### Patch Changes
21
+
22
+ - [#1704](https://github.com/tailor-platform/sdk/pull/1704) [`9c81d9c`](https://github.com/tailor-platform/sdk/commit/9c81d9c18b1d29b3e9307ea17fe54c8ce55f4dda) Thanks [@dqn](https://github.com/dqn)! - Remove flat value and default exports from `@tailor-platform/sdk/runtime/*` subpath modules. Import each subpath through its self-named namespace export instead, for example `import { iconv } from "@tailor-platform/sdk/runtime/iconv"`.
23
+
24
+ The aggregate `@tailor-platform/sdk/runtime` entry remains named-only, and its deprecated `file.deleteFile` alias is removed in favor of `file.delete`. The v2 codemod rewrites straightforward namespace-star subpath imports, flat named value imports, and aggregate `file.deleteFile` calls to the new namespace-object style.
25
+
26
+ `TailorContextAPI` and `TailorWorkflowAPI` now describe the SDK wrapper objects. Code that types the platform-provided `globalThis.tailor.context` or `globalThis.tailor.workflow` objects directly must use `PlatformContextAPI` or `PlatformWorkflowAPI` instead.
27
+
28
+ ## 2.0.0-next.3
29
+
30
+ ### Major Changes
31
+
32
+ - [#1684](https://github.com/tailor-platform/sdk/pull/1684) [`de3ef5e`](https://github.com/tailor-platform/sdk/commit/de3ef5e7421a998624154df5e90da62e17664524) Thanks [@dqn](https://github.com/dqn)! - Restore Tailor field outputs for UUID, date, datetime, time, and decimal fields to plain string-compatible types and remove the strict scalar string migration guidance.
33
+
34
+ - [#1556](https://github.com/tailor-platform/sdk/pull/1556) [`645949e`](https://github.com/tailor-platform/sdk/commit/645949ed64bda8b82fc44c0db54928698b12a2eb) Thanks [@toiroakr](https://github.com/toiroakr)! - Rename `defineWaitPoint` and `defineWaitPoints` to `createWaitPoint` and `createWaitPoints`.
35
+
36
+ These functions create runtime instances with `.wait()` and `.resolve()` methods that call the platform API at runtime, so the `create*` prefix is more accurate. Update any usages:
37
+
38
+ ```diff
39
+ -import { defineWaitPoint, defineWaitPoints } from "@tailor-platform/sdk";
40
+ +import { createWaitPoint, createWaitPoints } from "@tailor-platform/sdk";
41
+
42
+ -export const approval = defineWaitPoint<Payload, Result>("approval");
43
+ +export const approval = createWaitPoint<Payload, Result>("approval");
44
+
45
+ -export const waitPoints = defineWaitPoints((define) => ({ ... }));
46
+ +export const waitPoints = createWaitPoints((define) => ({ ... }));
47
+ ```
48
+
49
+ ### Patch Changes
50
+
51
+ - [#1559](https://github.com/tailor-platform/sdk/pull/1559) [`ff8ef1c`](https://github.com/tailor-platform/sdk/commit/ff8ef1c1323daf81812c182e146fd53da20e676e) Thanks [@dqn](https://github.com/dqn)! - Rename auth attribute module augmentation from `AttributeMap` to `Attributes`.
52
+
53
+ - [#1563](https://github.com/tailor-platform/sdk/pull/1563) [`501e8bf`](https://github.com/tailor-platform/sdk/commit/501e8bfdd2bca7201a1c9b036bf72087476da416) Thanks [@dqn](https://github.com/dqn)! - Standardize SDK-owned environment variables on the `TAILOR_*` namespace.
54
+
55
+ Replace the removed SDK-specific environment variables with their new names: `TAILOR_CONFIG_PATH`, `TAILOR_DTS_PATH`, `TAILOR_CI_ALLOW_ID_INJECTION`, `TAILOR_DEPLOY_BUILD_ONLY`, `TAILOR_BUILD_OUTPUT_DIR`, `TAILOR_SKILLS_SOURCE`, `TAILOR_TEMPLATE_SDK_VERSION`, `TAILOR_PLATFORM_URL`, `TAILOR_PLATFORM_OAUTH2_CLIENT_ID`, `TAILOR_INLINE_SOURCEMAP`, `TAILOR_QUERY_NEWLINE_ON_ENTER`, and `TAILOR_APP_LOG_LEVEL`. The deprecated `TAILOR_TOKEN` fallback is removed; use `TAILOR_PLATFORM_TOKEN`. The v2 codemod rewrites unambiguous removed SDK environment variable names and flags generic names such as `LOG_LEVEL` and `PLATFORM_URL` for manual review.
56
+
3
57
  ## 2.0.0-next.2
4
58
  ### Major Changes
5
59
 
6
60
 
7
61
 
8
62
  - [#1498](https://github.com/tailor-platform/sdk/pull/1498) [`83145db`](https://github.com/tailor-platform/sdk/commit/83145db9a0d243aa68c1b641c2b6026771a62188) Thanks [@dqn](https://github.com/dqn)! - Set `db.fields.timestamps()` `updatedAt` when records are created and make the generated field non-null. `createdAt` keeps its existing create-time behavior, while `updatedAt` keeps its update-time behavior and now also gets a create hook that preserves provided values and falls back to the current time.
9
-
63
+
10
64
  Update create-sdk templates so scaffolded projects use the new non-null `updatedAt` Kysely types and seed schemas.
11
-
65
+
12
66
  Existing TailorDB schemas that already use this helper will change `updatedAt` from optional to required. Backfill existing records that have `updatedAt: null` before applying the schema change.
13
67
 
14
68
  ### Patch Changes
@@ -16,12 +70,12 @@
16
70
 
17
71
 
18
72
  - [#1509](https://github.com/tailor-platform/sdk/pull/1509) [`7cadaa7`](https://github.com/tailor-platform/sdk/commit/7cadaa7c4987b81130ca80ba80bc5d5b26276394) Thanks [@dqn](https://github.com/dqn)! - Rename resolver, executor, workflow trigger, and typed workflow start machine-user options from `authInvoker` to `invoker`.
19
-
73
+
20
74
  Update create-sdk templates and the v2 auth invoker codemod to generate the new `invoker` option.
21
75
 
22
76
 
23
77
  - [#1484](https://github.com/tailor-platform/sdk/pull/1484) [`a376dc8`](https://github.com/tailor-platform/sdk/commit/a376dc8cd053d20744c90104e8b44ed2729ffe8c) Thanks [@dqn](https://github.com/dqn)! - Remove the deprecated `openDownloadStream` file streaming API. Use `downloadStream` for streamed file downloads.
24
-
78
+
25
79
  The generated file utilities now emit `downloadFileStream`, which calls `downloadStream` and returns `FileDownloadStreamResponse`, instead of the removed `openFileDownloadStream` helper.
26
80
 
27
81
  ## 2.0.0-next.1
@@ -30,6 +84,49 @@
30
84
 
31
85
  ## 1.66.0
32
86
 
87
+ ## 1.71.0
88
+
89
+ ## 1.75.0
90
+
91
+ ## 1.74.1
92
+
93
+ ## 1.74.0
94
+
95
+ ## 1.73.3
96
+
97
+ ## 1.73.2
98
+
99
+ ## 1.73.1
100
+
101
+ ## 1.73.0
102
+
103
+ ## 1.72.0
104
+
105
+ ## 1.70.1
106
+ ### Patch Changes
107
+
108
+
109
+
110
+ - [#1569](https://github.com/tailor-platform/sdk/pull/1569) [`259dec9`](https://github.com/tailor-platform/sdk/commit/259dec92592c7927bcfb0e2d5dcbbd0e206eeba3) Thanks [@dqn](https://github.com/dqn)! - Fix TailorDB migration drift checks to normalize reconstructed snapshots and remote schemas through the same snapshot shape before comparison.
111
+
112
+ ## 1.70.0
113
+
114
+ ## 1.69.0
115
+ ### Patch Changes
116
+
117
+
118
+
119
+ - [#1533](https://github.com/tailor-platform/sdk/pull/1533) [`e3bc2ce`](https://github.com/tailor-platform/sdk/commit/e3bc2ce65ab30ee53e5de0eb48ca6c24049fcd1b) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency politty to v0.9.2
120
+
121
+ ## 1.68.0
122
+
123
+ ## 1.67.1
124
+
125
+ ## 1.67.0
126
+
127
+ ## 1.66.1
128
+
129
+ ## 1.66.0
33
130
  ## 1.65.0
34
131
 
35
132
  ## 1.64.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/create-sdk",
3
- "version": "2.0.0-next.2",
3
+ "version": "2.0.0-next.4",
4
4
  "description": "A CLI tool to quickly create a new Tailor Platform SDK project",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -17,18 +17,19 @@
17
17
  ],
18
18
  "type": "module",
19
19
  "dependencies": {
20
- "@clack/prompts": "1.5.1",
20
+ "@clack/prompts": "1.6.0",
21
21
  "execa": "9.6.1",
22
22
  "picocolors": "1.1.1",
23
23
  "pkg-types": "2.3.1",
24
- "politty": "0.6.0",
24
+ "politty": "0.11.0",
25
25
  "zod": "4.4.3"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "24.13.2",
29
- "oxlint": "1.69.0",
30
- "oxlint-tsgolint": "0.23.0",
31
- "tsdown": "0.22.2",
29
+ "eslint-plugin-zod": "4.7.0",
30
+ "oxlint": "1.72.0",
31
+ "oxlint-tsgolint": "0.24.0",
32
+ "tsdown": "0.22.3",
32
33
  "typescript": "6.0.3"
33
34
  },
34
35
  "scripts": {
@@ -7,7 +7,7 @@
7
7
  "env": {
8
8
  "builtin": true
9
9
  },
10
- "ignorePatterns": [".tailor-sdk/", "src/generated/", "tailor.d.ts"],
10
+ "ignorePatterns": [".tailor/", "src/generated/", "tailor.d.ts"],
11
11
  "rules": {
12
12
  "no-case-declarations": "error",
13
13
  "no-empty": "error",
@@ -1,2 +1,2 @@
1
1
  node_modules/
2
- .tailor-sdk/
2
+ .tailor/
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "executor",
3
+ "version": "0.0.0",
3
4
  "private": true,
4
5
  "type": "module",
5
6
  "scripts": {
6
- "generate": "tailor-sdk generate",
7
- "deploy": "tailor-sdk deploy",
7
+ "generate": "tailor generate",
8
+ "deploy": "tailor deploy",
8
9
  "test": "vitest --project unit",
9
10
  "test:unit": "vitest --project unit",
10
11
  "format": "oxfmt --write .",
@@ -14,12 +15,12 @@
14
15
  "typecheck": "tsc --noEmit"
15
16
  },
16
17
  "devDependencies": {
17
- "@tailor-platform/sdk": "2.0.0-next.2",
18
+ "@tailor-platform/sdk": "2.0.0-next.4",
18
19
  "@types/node": "24.13.2",
19
- "oxfmt": "0.54.0",
20
- "oxlint": "1.69.0",
21
- "oxlint-tsgolint": "0.23.0",
20
+ "oxfmt": "0.57.0",
21
+ "oxlint": "1.72.0",
22
+ "oxlint-tsgolint": "0.24.0",
22
23
  "typescript": "6.0.3",
23
- "vitest": "4.1.8"
24
+ "vitest": "4.1.9"
24
25
  }
25
26
  }
@@ -1,7 +1,7 @@
1
1
  import { db } from "@tailor-platform/sdk";
2
2
 
3
3
  export const auditLog = db
4
- .type("AuditLog", "Records system events for auditing", {
4
+ .table("AuditLog", "Records system events for auditing", {
5
5
  action: db.string(),
6
6
  entityType: db.string(),
7
7
  entityId: db.uuid(),
@@ -2,7 +2,7 @@ import { db } from "@tailor-platform/sdk";
2
2
  import { user } from "./user";
3
3
 
4
4
  export const notification = db
5
- .type("Notification", {
5
+ .table("Notification", {
6
6
  userId: db.uuid().relation({
7
7
  type: "n-1",
8
8
  toward: { type: user },
@@ -1,7 +1,7 @@
1
1
  import { db } from "@tailor-platform/sdk";
2
2
 
3
3
  export const user = db
4
- .type("User", {
4
+ .table("User", {
5
5
  name: db.string(),
6
6
  email: db.string().unique(),
7
7
  role: db.enum(["ADMIN", "MEMBER"]),
@@ -1,9 +1,9 @@
1
1
  // This file is auto-generated by @tailor-platform/sdk
2
2
  // Do not edit this file manually
3
- // Regenerated automatically when running 'tailor-sdk deploy' or 'tailor-sdk generate'
3
+ // Regenerated automatically when running 'tailor deploy' or 'tailor generate'
4
4
 
5
5
  declare module "@tailor-platform/sdk" {
6
- interface AttributeMap {
6
+ interface Attributes {
7
7
  role: string;
8
8
  }
9
9
  interface AttributeList {
@@ -16,6 +16,8 @@ declare module "@tailor-platform/sdk" {
16
16
  interface IdpNameRegistry {
17
17
  "main-idp": true;
18
18
  }
19
+ interface ConnectionNameRegistry {}
20
+ interface AIGatewayNameRegistry {}
19
21
  }
20
22
 
21
23
  export {};
@@ -7,7 +7,7 @@
7
7
  "env": {
8
8
  "builtin": true
9
9
  },
10
- "ignorePatterns": [".tailor-sdk/", "src/generated/", "src/seed/", "tailor.d.ts"],
10
+ "ignorePatterns": [".tailor/", "src/generated/", "src/seed/", "tailor.d.ts"],
11
11
  "rules": {
12
12
  "no-case-declarations": "error",
13
13
  "no-empty": "error",
@@ -1,2 +1,2 @@
1
1
  node_modules/
2
- .tailor-sdk/
2
+ .tailor/
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "generators",
3
+ "version": "0.0.0",
3
4
  "private": true,
4
5
  "type": "module",
5
6
  "scripts": {
6
- "generate": "tailor-sdk generate",
7
- "deploy": "tailor-sdk deploy",
7
+ "generate": "tailor generate",
8
+ "deploy": "tailor deploy",
8
9
  "test": "vitest --project unit",
9
10
  "test:unit": "vitest --project unit",
10
11
  "format": "oxfmt --write .",
@@ -14,12 +15,12 @@
14
15
  "typecheck": "tsc --noEmit"
15
16
  },
16
17
  "devDependencies": {
17
- "@tailor-platform/sdk": "2.0.0-next.2",
18
+ "@tailor-platform/sdk": "2.0.0-next.4",
18
19
  "@types/node": "24.13.2",
19
- "oxfmt": "0.54.0",
20
- "oxlint": "1.69.0",
21
- "oxlint-tsgolint": "0.23.0",
20
+ "oxfmt": "0.57.0",
21
+ "oxlint": "1.72.0",
22
+ "oxlint-tsgolint": "0.24.0",
22
23
  "typescript": "6.0.3",
23
- "vitest": "4.1.8"
24
+ "vitest": "4.1.9"
24
25
  }
25
26
  }
@@ -1,7 +1,7 @@
1
1
  import { db } from "@tailor-platform/sdk";
2
2
 
3
3
  export const category = db
4
- .type("Category", {
4
+ .table("Category", {
5
5
  name: db.string(),
6
6
  slug: db.string().unique(),
7
7
  parentCategoryId: db.uuid({ optional: true }).relation({
@@ -3,7 +3,7 @@ import { product } from "./product";
3
3
  import { user } from "./user";
4
4
 
5
5
  export const order = db
6
- .type("Order", {
6
+ .table("Order", {
7
7
  productId: db.uuid().relation({
8
8
  type: "n-1",
9
9
  toward: { type: product },
@@ -2,7 +2,7 @@ import { db } from "@tailor-platform/sdk";
2
2
  import { category } from "./category";
3
3
 
4
4
  export const product = db
5
- .type("Product", {
5
+ .table("Product", {
6
6
  name: db.string(),
7
7
  description: db.string({ optional: true }),
8
8
  price: db.float(),
@@ -1,7 +1,7 @@
1
1
  import { db } from "@tailor-platform/sdk";
2
2
 
3
3
  export const user = db
4
- .type("User", {
4
+ .table("User", {
5
5
  name: db.string(),
6
6
  email: db.string().unique(),
7
7
  role: db.enum([
@@ -1,4 +1,4 @@
1
- import * as file from "@tailor-platform/sdk/runtime/file";
1
+ import { file } from "@tailor-platform/sdk/runtime/file";
2
2
  import type {
3
3
  FileUploadOptions,
4
4
  FileUploadResponse,
@@ -1,9 +1,9 @@
1
1
  // This file is auto-generated by @tailor-platform/sdk
2
2
  // Do not edit this file manually
3
- // Regenerated automatically when running 'tailor-sdk deploy' or 'tailor-sdk generate'
3
+ // Regenerated automatically when running 'tailor deploy' or 'tailor generate'
4
4
 
5
5
  declare module "@tailor-platform/sdk" {
6
- interface AttributeMap {
6
+ interface Attributes {
7
7
  role: string;
8
8
  }
9
9
  interface AttributeList {
@@ -16,6 +16,8 @@ declare module "@tailor-platform/sdk" {
16
16
  interface IdpNameRegistry {
17
17
  "main-idp": true;
18
18
  }
19
+ interface ConnectionNameRegistry {}
20
+ interface AIGatewayNameRegistry {}
19
21
  }
20
22
 
21
23
  export {};
@@ -7,7 +7,7 @@
7
7
  "env": {
8
8
  "builtin": true
9
9
  },
10
- "ignorePatterns": [".tailor-sdk/", "tailor.d.ts"],
10
+ "ignorePatterns": [".tailor/", "tailor.d.ts"],
11
11
  "rules": {
12
12
  "no-case-declarations": "error",
13
13
  "no-empty": "error",
@@ -9,12 +9,12 @@ This project was bootstrapped with [Create Tailor Platform SDK](https://www.npmj
9
9
  1. Create a new workspace:
10
10
 
11
11
  ```bash
12
- npx tailor-sdk login
13
- npx tailor-sdk workspace create --name <workspace-name> --region <workspace-region>
14
- npx tailor-sdk workspace list
15
- # For yarn: yarn tailor-sdk <command>
16
- # For pnpm: pnpm tailor-sdk <command>
17
- # For bun: bun tailor-sdk <command>
12
+ npx tailor login
13
+ npx tailor workspace create --name <workspace-name> --region <workspace-region>
14
+ npx tailor workspace list
15
+ # For yarn: yarn tailor <command>
16
+ # For pnpm: pnpm tailor <command>
17
+ # For bun: bun tailor <command>
18
18
 
19
19
  # OR
20
20
  # Create a new workspace using Tailor Platform Console
@@ -1,2 +1,2 @@
1
1
  node_modules/
2
- .tailor-sdk/
2
+ .tailor/
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "hello-world",
3
+ "version": "0.0.0",
3
4
  "private": true,
4
5
  "type": "module",
5
6
  "scripts": {
6
- "deploy": "tailor-sdk deploy",
7
- "generate": "tailor-sdk generate",
7
+ "deploy": "tailor deploy",
8
+ "generate": "tailor generate",
8
9
  "format": "oxfmt --write .",
9
10
  "format:check": "oxfmt --check .",
10
11
  "lint": "oxlint --type-aware .",
@@ -12,11 +13,11 @@
12
13
  "typecheck": "tsc --noEmit"
13
14
  },
14
15
  "devDependencies": {
15
- "@tailor-platform/sdk": "2.0.0-next.2",
16
+ "@tailor-platform/sdk": "2.0.0-next.4",
16
17
  "@types/node": "24.13.2",
17
- "oxfmt": "0.54.0",
18
- "oxlint": "1.69.0",
19
- "oxlint-tsgolint": "0.23.0",
18
+ "oxfmt": "0.57.0",
19
+ "oxlint": "1.72.0",
20
+ "oxlint-tsgolint": "0.24.0",
20
21
  "typescript": "6.0.3"
21
22
  }
22
23
  }
@@ -5,7 +5,7 @@ import {
5
5
  } from "@tailor-platform/sdk";
6
6
 
7
7
  export const user = db
8
- .type("User", {
8
+ .table("User", {
9
9
  name: db.string().description("Name of the user"),
10
10
  email: db.string().unique().description("Email address of the user"),
11
11
  role: db.enum(["MANAGER", "STAFF"]),
@@ -1,15 +1,17 @@
1
1
  // This file is auto-generated by @tailor-platform/sdk
2
2
  // Do not edit this file manually
3
- // Regenerated automatically when running 'tailor-sdk deploy' or 'tailor-sdk generate'
3
+ // Regenerated automatically when running 'tailor deploy' or 'tailor generate'
4
4
 
5
5
  declare module "@tailor-platform/sdk" {
6
- interface AttributeMap {}
6
+ interface Attributes {}
7
7
  interface AttributeList {
8
8
  __tuple?: [];
9
9
  }
10
10
  interface Env {}
11
11
  interface MachineUserNameRegistry {}
12
12
  interface IdpNameRegistry {}
13
+ interface ConnectionNameRegistry {}
14
+ interface AIGatewayNameRegistry {}
13
15
  }
14
16
 
15
17
  export {};
@@ -7,7 +7,7 @@
7
7
  "env": {
8
8
  "builtin": true
9
9
  },
10
- "ignorePatterns": [".tailor-sdk/", "src/generated/", "tailor.d.ts"],
10
+ "ignorePatterns": [".tailor/", "src/generated/", "tailor.d.ts"],
11
11
  "rules": {
12
12
  "no-case-declarations": "error",
13
13
  "no-empty": "error",
@@ -9,12 +9,12 @@ This project was bootstrapped with [Create Tailor Platform SDK](https://www.npmj
9
9
  1. Create a new workspace:
10
10
 
11
11
  ```bash
12
- npx tailor-sdk login
13
- npx tailor-sdk workspace create --name <workspace-name> --region <workspace-region>
14
- npx tailor-sdk workspace list
15
- # For yarn: yarn tailor-sdk <command>
16
- # For pnpm: pnpm tailor-sdk <command>
17
- # For bun: bun tailor-sdk <command>
12
+ npx tailor login
13
+ npx tailor workspace create --name <workspace-name> --region <workspace-region>
14
+ npx tailor workspace list
15
+ # For yarn: yarn tailor <command>
16
+ # For pnpm: pnpm tailor <command>
17
+ # For bun: bun tailor <command>
18
18
 
19
19
  # OR
20
20
  # Create a new workspace using Tailor Platform Console
@@ -36,9 +36,9 @@ npm run deploy -- --workspace-id <your-workspace-id>
36
36
 
37
37
  ```bash
38
38
  # Get Manager's token
39
- npx tailor-sdk machineuser token manager --workspace-id <your-workspace-id>
39
+ npx tailor machineuser token manager --workspace-id <your-workspace-id>
40
40
  # Get Staff's token
41
- npx tailor-sdk machineuser token staff --workspace-id <your-workspace-id>
41
+ npx tailor machineuser token staff --workspace-id <your-workspace-id>
42
42
  ```
43
43
 
44
44
  ## Features
@@ -1,2 +1,2 @@
1
1
  node_modules/
2
- .tailor-sdk/
2
+ .tailor/
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "inventory-management",
3
+ "version": "0.0.0",
3
4
  "private": true,
4
5
  "type": "module",
5
6
  "scripts": {
6
- "deploy": "tailor-sdk deploy",
7
- "generate": "tailor-sdk generate",
7
+ "deploy": "tailor deploy",
8
+ "generate": "tailor generate",
8
9
  "format": "oxfmt --write .",
9
10
  "format:check": "oxfmt --check .",
10
11
  "lint": "oxlint --type-aware .",
@@ -12,11 +13,11 @@
12
13
  "typecheck": "tsc --noEmit"
13
14
  },
14
15
  "devDependencies": {
15
- "@tailor-platform/sdk": "2.0.0-next.2",
16
+ "@tailor-platform/sdk": "2.0.0-next.4",
16
17
  "@types/node": "24.13.2",
17
- "oxfmt": "0.54.0",
18
- "oxlint": "1.69.0",
19
- "oxlint-tsgolint": "0.23.0",
18
+ "oxfmt": "0.57.0",
19
+ "oxlint": "1.72.0",
20
+ "oxlint-tsgolint": "0.24.0",
20
21
  "typescript": "6.0.3"
21
22
  }
22
23
  }
@@ -2,7 +2,7 @@ import { db } from "@tailor-platform/sdk";
2
2
  import { gqlPermissionManager, permissionManager } from "./common/permission";
3
3
 
4
4
  export const category = db
5
- .type("Category", {
5
+ .table("Category", {
6
6
  name: db.string().description("Name of the category").unique(),
7
7
  description: db.string({ optional: true }).description("Description of the category"),
8
8
  ...db.fields.timestamps(),
@@ -2,7 +2,7 @@ import { db } from "@tailor-platform/sdk";
2
2
  import { gqlPermissionManager, permissionManager } from "./common/permission";
3
3
 
4
4
  export const contact = db
5
- .type("Contact", {
5
+ .table("Contact", {
6
6
  name: db.string().description("Name of the contact"),
7
7
  email: db.string().unique().description("Email address of the contact"),
8
8
  phone: db.string({ optional: true }).description("Phone number of the contact"),
@@ -3,7 +3,7 @@ import { gqlPermissionLoggedIn, permissionLoggedIn } from "./common/permission";
3
3
  import { product } from "./product";
4
4
 
5
5
  export const inventory = db
6
- .type("Inventory", {
6
+ .table("Inventory", {
7
7
  productId: db
8
8
  .uuid()
9
9
  .description("ID of the product")
@@ -2,7 +2,7 @@ import { db } from "@tailor-platform/sdk";
2
2
  import { loggedIn, managerRole, permissionManager } from "./common/permission";
3
3
 
4
4
  export const notification = db
5
- .type("Notification", {
5
+ .table("Notification", {
6
6
  message: db.string().description("Notification message"),
7
7
  ...db.fields.timestamps(),
8
8
  })
@@ -3,7 +3,7 @@ import { contact } from "./contact";
3
3
  import { gqlPermissionLoggedIn, permissionLoggedIn } from "./common/permission";
4
4
 
5
5
  export const order = db
6
- .type("Order", {
6
+ .table("Order", {
7
7
  name: db.string().description("Name of the order"),
8
8
  description: db.string({ optional: true }).description("Description of the order"),
9
9
  orderDate: db.datetime().description("Date of the order"),
@@ -4,7 +4,7 @@ import { product } from "./product";
4
4
  import { gqlPermissionLoggedIn, permissionLoggedIn } from "./common/permission";
5
5
 
6
6
  export const orderItem = db
7
- .type("OrderItem", {
7
+ .table("OrderItem", {
8
8
  orderId: db
9
9
  .uuid()
10
10
  .description("ID of the order")
@@ -3,7 +3,7 @@ import { category } from "./category";
3
3
  import { gqlPermissionManager, permissionManager } from "./common/permission";
4
4
 
5
5
  export const product = db
6
- .type("Product", {
6
+ .table("Product", {
7
7
  name: db.string().description("Name of the product"),
8
8
  description: db.string({ optional: true }).description("Description of the product"),
9
9
  categoryId: db
@@ -2,7 +2,7 @@ import { db } from "@tailor-platform/sdk";
2
2
  import { gqlPermissionManager, permissionManager } from "./common/permission";
3
3
 
4
4
  export const user = db
5
- .type("User", {
5
+ .table("User", {
6
6
  name: db.string().description("Name of the user"),
7
7
  email: db.string().unique().description("Email address of the user"),
8
8
  role: db.enum(["MANAGER", "STAFF"]),
@@ -1,9 +1,9 @@
1
1
  // This file is auto-generated by @tailor-platform/sdk
2
2
  // Do not edit this file manually
3
- // Regenerated automatically when running 'tailor-sdk deploy' or 'tailor-sdk generate'
3
+ // Regenerated automatically when running 'tailor deploy' or 'tailor generate'
4
4
 
5
5
  declare module "@tailor-platform/sdk" {
6
- interface AttributeMap {
6
+ interface Attributes {
7
7
  role: "MANAGER" | "STAFF";
8
8
  }
9
9
  interface AttributeList {
@@ -15,6 +15,8 @@ declare module "@tailor-platform/sdk" {
15
15
  staff: true;
16
16
  }
17
17
  interface IdpNameRegistry {}
18
+ interface ConnectionNameRegistry {}
19
+ interface AIGatewayNameRegistry {}
18
20
  }
19
21
 
20
22
  export {};
@@ -7,7 +7,7 @@
7
7
  "env": {
8
8
  "builtin": true
9
9
  },
10
- "ignorePatterns": [".tailor-sdk/", "tailor.d.ts"],
10
+ "ignorePatterns": [".tailor/", "tailor.d.ts"],
11
11
  "rules": {
12
12
  "no-case-declarations": "error",
13
13
  "no-empty": "error",
@@ -16,8 +16,8 @@ This project contains two applications: `user` and `admin`.
16
16
  1. Create a new workspace:
17
17
 
18
18
  ```bash
19
- npx tailor-sdk login
20
- npx tailor-sdk workspace create --name <workspace-name> --region <workspace-region>
19
+ npx tailor login
20
+ npx tailor workspace create --name <workspace-name> --region <workspace-region>
21
21
  ```
22
22
 
23
23
  2. Deploy the project:
@@ -1,2 +1,2 @@
1
1
  node_modules/
2
- .tailor-sdk/
2
+ .tailor/
@@ -5,7 +5,7 @@ import {
5
5
  } from "@tailor-platform/sdk";
6
6
 
7
7
  export const adminNote = db
8
- .type("AdminNote", {
8
+ .table("AdminNote", {
9
9
  title: db.string(),
10
10
  content: db.string(),
11
11
  authorId: db.uuid().hooks({ create: ({ invoker }) => invoker?.id ?? crypto.randomUUID() }),
@@ -5,7 +5,7 @@ import {
5
5
  } from "@tailor-platform/sdk";
6
6
 
7
7
  export const user = db
8
- .type("User", {
8
+ .table("User", {
9
9
  name: db.string().unique(),
10
10
  role: db.enum(["USER", "ADMIN"]),
11
11
  ...db.fields.timestamps(),
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "multi-application",
3
+ "version": "0.0.0",
3
4
  "private": true,
4
5
  "type": "module",
5
6
  "scripts": {
6
7
  "deploy": "pnpm run deploy:user && pnpm run deploy:admin",
7
- "deploy:user": "tailor-sdk deploy -c apps/user/tailor.config.ts",
8
- "deploy:admin": "tailor-sdk deploy -c apps/admin/tailor.config.ts",
8
+ "deploy:user": "tailor deploy -c apps/user/tailor.config.ts",
9
+ "deploy:admin": "tailor deploy -c apps/admin/tailor.config.ts",
9
10
  "format": "oxfmt --write .",
10
11
  "format:check": "oxfmt --check .",
11
12
  "lint": "oxlint --type-aware .",
@@ -13,11 +14,11 @@
13
14
  "typecheck": "tsc --noEmit"
14
15
  },
15
16
  "devDependencies": {
16
- "@tailor-platform/sdk": "2.0.0-next.2",
17
+ "@tailor-platform/sdk": "2.0.0-next.4",
17
18
  "@types/node": "24.13.2",
18
- "oxfmt": "0.54.0",
19
- "oxlint": "1.69.0",
20
- "oxlint-tsgolint": "0.23.0",
19
+ "oxfmt": "0.57.0",
20
+ "oxlint": "1.72.0",
21
+ "oxlint-tsgolint": "0.24.0",
21
22
  "typescript": "6.0.3"
22
23
  }
23
24
  }
@@ -7,7 +7,7 @@
7
7
  "env": {
8
8
  "builtin": true
9
9
  },
10
- "ignorePatterns": [".tailor-sdk/", "src/generated/", "tailor.d.ts"],
10
+ "ignorePatterns": [".tailor/", "src/generated/", "tailor.d.ts"],
11
11
  "rules": {
12
12
  "no-case-declarations": "error",
13
13
  "no-empty": "error",
@@ -1,2 +1,2 @@
1
1
  node_modules/
2
- .tailor-sdk/
2
+ .tailor/
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "resolver",
3
+ "version": "0.0.0",
3
4
  "private": true,
4
5
  "type": "module",
5
6
  "scripts": {
6
- "generate": "tailor-sdk generate",
7
- "deploy": "tailor-sdk deploy",
7
+ "generate": "tailor generate",
8
+ "deploy": "tailor deploy",
8
9
  "test": "vitest --project unit",
9
10
  "test:unit": "vitest --project unit",
10
11
  "format": "oxfmt --write .",
@@ -14,12 +15,12 @@
14
15
  "typecheck": "tsc --noEmit"
15
16
  },
16
17
  "devDependencies": {
17
- "@tailor-platform/sdk": "2.0.0-next.2",
18
+ "@tailor-platform/sdk": "2.0.0-next.4",
18
19
  "@types/node": "24.13.2",
19
- "oxfmt": "0.54.0",
20
- "oxlint": "1.69.0",
21
- "oxlint-tsgolint": "0.23.0",
20
+ "oxfmt": "0.57.0",
21
+ "oxlint": "1.72.0",
22
+ "oxlint-tsgolint": "0.24.0",
22
23
  "typescript": "6.0.3",
23
- "vitest": "4.1.8"
24
+ "vitest": "4.1.9"
24
25
  }
25
26
  }
@@ -1,7 +1,7 @@
1
1
  import { db } from "@tailor-platform/sdk";
2
2
 
3
3
  export const user = db
4
- .type("User", {
4
+ .table("User", {
5
5
  name: db.string(),
6
6
  email: db.string().unique(),
7
7
  age: db.int(),
@@ -1,9 +1,9 @@
1
1
  // This file is auto-generated by @tailor-platform/sdk
2
2
  // Do not edit this file manually
3
- // Regenerated automatically when running 'tailor-sdk deploy' or 'tailor-sdk generate'
3
+ // Regenerated automatically when running 'tailor deploy' or 'tailor generate'
4
4
 
5
5
  declare module "@tailor-platform/sdk" {
6
- interface AttributeMap {
6
+ interface Attributes {
7
7
  role: string;
8
8
  }
9
9
  interface AttributeList {
@@ -17,6 +17,8 @@ declare module "@tailor-platform/sdk" {
17
17
  admin: true;
18
18
  }
19
19
  interface IdpNameRegistry {}
20
+ interface ConnectionNameRegistry {}
21
+ interface AIGatewayNameRegistry {}
20
22
  }
21
23
 
22
24
  export {};
@@ -7,7 +7,7 @@
7
7
  "env": {
8
8
  "builtin": true
9
9
  },
10
- "ignorePatterns": [".tailor-sdk/", "src/generated/", "tailor.d.ts"],
10
+ "ignorePatterns": [".tailor/", "src/generated/", "tailor.d.ts"],
11
11
  "rules": {
12
12
  "no-case-declarations": "error",
13
13
  "no-empty": "error",
@@ -1,2 +1,2 @@
1
1
  node_modules/
2
- .tailor-sdk/
2
+ .tailor/
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "static-web-site",
3
+ "version": "0.0.0",
3
4
  "private": true,
4
5
  "type": "module",
5
6
  "scripts": {
6
- "deploy": "tailor-sdk deploy",
7
- "generate": "tailor-sdk generate",
7
+ "deploy": "tailor deploy",
8
+ "generate": "tailor generate",
8
9
  "format": "oxfmt --write .",
9
10
  "format:check": "oxfmt --check .",
10
11
  "lint": "oxlint --type-aware .",
@@ -12,11 +13,11 @@
12
13
  "typecheck": "tsc --noEmit"
13
14
  },
14
15
  "devDependencies": {
15
- "@tailor-platform/sdk": "2.0.0-next.2",
16
+ "@tailor-platform/sdk": "2.0.0-next.4",
16
17
  "@types/node": "24.13.2",
17
- "oxfmt": "0.54.0",
18
- "oxlint": "1.69.0",
19
- "oxlint-tsgolint": "0.23.0",
18
+ "oxfmt": "0.57.0",
19
+ "oxlint": "1.72.0",
20
+ "oxlint-tsgolint": "0.24.0",
20
21
  "typescript": "6.0.3"
21
22
  }
22
23
  }
@@ -1,7 +1,7 @@
1
1
  import { db } from "@tailor-platform/sdk";
2
2
 
3
3
  export const user = db
4
- .type("User", {
4
+ .table("User", {
5
5
  name: db.string(),
6
6
  email: db.string().unique(),
7
7
  role: db.enum(["ADMIN", "MEMBER"]),
@@ -1,9 +1,9 @@
1
1
  // This file is auto-generated by @tailor-platform/sdk
2
2
  // Do not edit this file manually
3
- // Regenerated automatically when running 'tailor-sdk deploy' or 'tailor-sdk generate'
3
+ // Regenerated automatically when running 'tailor deploy' or 'tailor generate'
4
4
 
5
5
  declare module "@tailor-platform/sdk" {
6
- interface AttributeMap {
6
+ interface Attributes {
7
7
  role: "ADMIN" | "MEMBER";
8
8
  }
9
9
  interface AttributeList {
@@ -16,6 +16,8 @@ declare module "@tailor-platform/sdk" {
16
16
  interface IdpNameRegistry {
17
17
  "my-idp": true;
18
18
  }
19
+ interface ConnectionNameRegistry {}
20
+ interface AIGatewayNameRegistry {}
19
21
  }
20
22
 
21
23
  export {};
@@ -7,7 +7,7 @@
7
7
  "env": {
8
8
  "builtin": true
9
9
  },
10
- "ignorePatterns": [".tailor-sdk/", "src/generated/", "tailor.d.ts"],
10
+ "ignorePatterns": [".tailor/", "src/generated/", "tailor.d.ts"],
11
11
  "rules": {
12
12
  "no-case-declarations": "error",
13
13
  "no-empty": "error",
@@ -1,6 +1,6 @@
1
1
  # TailorDB Template
2
2
 
3
- Comprehensive TailorDB type definitions demonstrating all features of `db.type()`.
3
+ Comprehensive TailorDB type definitions demonstrating all features of `db.table()`.
4
4
 
5
5
  ## Features
6
6
 
@@ -1,2 +1,2 @@
1
1
  node_modules/
2
- .tailor-sdk/
2
+ .tailor/
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "tailordb",
3
+ "version": "0.0.0",
3
4
  "private": true,
4
5
  "type": "module",
5
6
  "scripts": {
6
- "generate": "tailor-sdk generate",
7
- "deploy": "tailor-sdk deploy",
7
+ "generate": "tailor generate",
8
+ "deploy": "tailor deploy",
8
9
  "test": "vitest --project unit",
9
10
  "test:unit": "vitest --project unit",
10
11
  "format": "oxfmt --write .",
@@ -14,12 +15,12 @@
14
15
  "typecheck": "tsc --noEmit"
15
16
  },
16
17
  "devDependencies": {
17
- "@tailor-platform/sdk": "2.0.0-next.2",
18
+ "@tailor-platform/sdk": "2.0.0-next.4",
18
19
  "@types/node": "24.13.2",
19
- "oxfmt": "0.54.0",
20
- "oxlint": "1.69.0",
21
- "oxlint-tsgolint": "0.23.0",
20
+ "oxfmt": "0.57.0",
21
+ "oxlint": "1.72.0",
22
+ "oxlint-tsgolint": "0.24.0",
22
23
  "typescript": "6.0.3",
23
- "vitest": "4.1.8"
24
+ "vitest": "4.1.9"
24
25
  }
25
26
  }
@@ -2,7 +2,7 @@ import { db } from "@tailor-platform/sdk";
2
2
  import { allPermission, allGqlPermission } from "./permission";
3
3
 
4
4
  export const category = db
5
- .type("Category", "Task category with hierarchical structure", {
5
+ .table("Category", "Task category with hierarchical structure", {
6
6
  name: db.string(),
7
7
  description: db.string({ optional: true }),
8
8
  parentCategoryId: db.uuid({ optional: true }).relation({
@@ -4,7 +4,7 @@ import { task } from "./task";
4
4
  import { user } from "./user";
5
5
 
6
6
  export const comment = db
7
- .type("Comment", "A comment on a task", {
7
+ .table("Comment", "A comment on a task", {
8
8
  body: db.string().validate([({ value }) => value.length >= 1, "Comment must not be empty"]),
9
9
  taskId: db.uuid().relation({
10
10
  type: "n-1",
@@ -4,7 +4,7 @@ import { rolePermission, roleGqlPermission } from "./permission";
4
4
  import { user } from "./user";
5
5
 
6
6
  export const task = db
7
- .type("Task", "A task with comprehensive features", {
7
+ .table("Task", "A task with comprehensive features", {
8
8
  title: db
9
9
  .string()
10
10
  .validate(
@@ -2,7 +2,7 @@ import { db } from "@tailor-platform/sdk";
2
2
  import { allPermission, allGqlPermission } from "./permission";
3
3
 
4
4
  export const user = db
5
- .type("User", {
5
+ .table("User", {
6
6
  name: db.string(),
7
7
  email: db.string().unique(),
8
8
  role: db.enum([
@@ -1,9 +1,9 @@
1
1
  // This file is auto-generated by @tailor-platform/sdk
2
2
  // Do not edit this file manually
3
- // Regenerated automatically when running 'tailor-sdk deploy' or 'tailor-sdk generate'
3
+ // Regenerated automatically when running 'tailor deploy' or 'tailor generate'
4
4
 
5
5
  declare module "@tailor-platform/sdk" {
6
- interface AttributeMap {
6
+ interface Attributes {
7
7
  role: string;
8
8
  }
9
9
  interface AttributeList {
@@ -15,6 +15,8 @@ declare module "@tailor-platform/sdk" {
15
15
  viewer: true;
16
16
  }
17
17
  interface IdpNameRegistry {}
18
+ interface ConnectionNameRegistry {}
19
+ interface AIGatewayNameRegistry {}
18
20
  }
19
21
 
20
22
  export {};
@@ -7,7 +7,7 @@
7
7
  "env": {
8
8
  "builtin": true
9
9
  },
10
- "ignorePatterns": [".tailor-sdk/", "src/generated/", "tailor.d.ts"],
10
+ "ignorePatterns": [".tailor/", "src/generated/", "tailor.d.ts"],
11
11
  "rules": {
12
12
  "no-case-declarations": "error",
13
13
  "no-empty": "error",
@@ -1,2 +1,2 @@
1
1
  node_modules/
2
- .tailor-sdk/
2
+ .tailor/
@@ -55,7 +55,7 @@ export async function setup(project: TestProject): Promise<void> {
55
55
  process.env.TAILOR_PLATFORM_WORKSPACE_ID = createdWorkspace.id;
56
56
  // This pipeline deploys a fresh app into a per-run workspace, so let the
57
57
  // SDK inject a missing app id even in CI (normally a hard error there).
58
- process.env.TAILOR_PLATFORM_SDK_ALLOW_CI_ID_INJECTION = "true";
58
+ process.env.TAILOR_CI_ALLOW_ID_INJECTION = "true";
59
59
  await deployApplication();
60
60
  }
61
61
 
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "workflow",
3
+ "version": "0.0.0",
3
4
  "private": true,
4
5
  "type": "module",
5
6
  "scripts": {
6
- "generate": "tailor-sdk generate",
7
- "deploy": "tailor-sdk deploy",
7
+ "generate": "tailor generate",
8
+ "deploy": "tailor deploy",
8
9
  "test": "vitest --project unit",
9
10
  "test:unit": "vitest --project unit",
10
11
  "test:e2e": "vitest --project e2e",
@@ -15,14 +16,14 @@
15
16
  "typecheck": "tsc --noEmit"
16
17
  },
17
18
  "devDependencies": {
18
- "@tailor-platform/sdk": "2.0.0-next.2",
19
+ "@tailor-platform/sdk": "2.0.0-next.4",
19
20
  "@types/node": "24.13.2",
20
- "graphql": "16.14.2",
21
+ "graphql": "17.0.1",
21
22
  "graphql-request": "7.4.0",
22
- "oxfmt": "0.54.0",
23
- "oxlint": "1.69.0",
24
- "oxlint-tsgolint": "0.23.0",
23
+ "oxfmt": "0.57.0",
24
+ "oxlint": "1.72.0",
25
+ "oxlint-tsgolint": "0.24.0",
25
26
  "typescript": "6.0.3",
26
- "vitest": "4.1.8"
27
+ "vitest": "4.1.9"
27
28
  }
28
29
  }
@@ -1,7 +1,7 @@
1
1
  import { db } from "@tailor-platform/sdk";
2
2
 
3
3
  export const order = db
4
- .type("Order", {
4
+ .table("Order", {
5
5
  customerName: db.string(),
6
6
  amount: db.int(),
7
7
  status: db.enum(["PENDING", "PROCESSING", "COMPLETED", "FAILED"]),
@@ -1,7 +1,7 @@
1
1
  import { db } from "@tailor-platform/sdk";
2
2
 
3
3
  export const user = db
4
- .type("User", {
4
+ .table("User", {
5
5
  name: db.string(),
6
6
  email: db.string().unique(),
7
7
  age: db.int(),
@@ -1,6 +1,6 @@
1
- import { createWorkflow, createWorkflowJob, defineWaitPoints } from "@tailor-platform/sdk";
1
+ import { createWaitPoints, createWorkflow, createWorkflowJob } from "@tailor-platform/sdk";
2
2
 
3
- export const { approval } = defineWaitPoints((define) => ({
3
+ export const { approval } = createWaitPoints((define) => ({
4
4
  /** Approval for order processing */
5
5
  approval: define<{ message: string; orderId: string }, { approved: boolean }>(),
6
6
  }));
@@ -1,9 +1,9 @@
1
1
  // This file is auto-generated by @tailor-platform/sdk
2
2
  // Do not edit this file manually
3
- // Regenerated automatically when running 'tailor-sdk deploy' or 'tailor-sdk generate'
3
+ // Regenerated automatically when running 'tailor deploy' or 'tailor generate'
4
4
 
5
5
  declare module "@tailor-platform/sdk" {
6
- interface AttributeMap {
6
+ interface Attributes {
7
7
  role: string;
8
8
  }
9
9
  interface AttributeList {
@@ -14,6 +14,8 @@ declare module "@tailor-platform/sdk" {
14
14
  admin: true;
15
15
  }
16
16
  interface IdpNameRegistry {}
17
+ interface ConnectionNameRegistry {}
18
+ interface AIGatewayNameRegistry {}
17
19
  }
18
20
 
19
21
  export {};