@tailor-platform/create-sdk 2.0.0-next.1 → 2.0.0-next.3

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 (69) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/package.json +8 -7
  3. package/templates/executor/.oxlintrc.json +1 -1
  4. package/templates/executor/__dot__gitignore +1 -1
  5. package/templates/executor/package.json +9 -8
  6. package/templates/executor/src/generated/db.ts +3 -3
  7. package/templates/executor/tailor.d.ts +4 -2
  8. package/templates/generators/.oxlintrc.json +1 -1
  9. package/templates/generators/__dot__gitignore +1 -1
  10. package/templates/generators/package.json +9 -8
  11. package/templates/generators/src/generated/db.ts +3 -3
  12. package/templates/generators/src/generated/files.ts +4 -4
  13. package/templates/generators/src/resolver/getProduct.test.ts +4 -3
  14. package/templates/generators/src/seed/data/Order.schema.ts +2 -2
  15. package/templates/generators/src/seed/data/Product.schema.ts +2 -2
  16. package/templates/generators/src/seed/data/User.schema.ts +2 -2
  17. package/templates/generators/src/seed/exec.mjs +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 +8 -7
  23. package/templates/hello-world/src/generated/kysely-tailordb.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 +8 -7
  29. package/templates/inventory-management/src/executor/checkInventory.ts +1 -1
  30. package/templates/inventory-management/src/generated/kysely-tailordb.ts +8 -8
  31. package/templates/inventory-management/src/resolver/registerOrder.ts +2 -2
  32. package/templates/inventory-management/tailor.d.ts +4 -2
  33. package/templates/multi-application/.oxlintrc.json +1 -1
  34. package/templates/multi-application/README.md +2 -2
  35. package/templates/multi-application/__dot__gitignore +1 -1
  36. package/templates/multi-application/apps/admin/db/adminNote.ts +1 -1
  37. package/templates/multi-application/package.json +8 -7
  38. package/templates/resolver/.oxlintrc.json +1 -1
  39. package/templates/resolver/README.md +2 -2
  40. package/templates/resolver/__dot__gitignore +1 -1
  41. package/templates/resolver/package.json +9 -8
  42. package/templates/resolver/src/generated/db.ts +1 -1
  43. package/templates/resolver/src/resolver/add.test.ts +4 -3
  44. package/templates/resolver/src/resolver/incrementUserAge.test.ts +4 -3
  45. package/templates/resolver/src/resolver/showEnv.test.ts +2 -2
  46. package/templates/resolver/src/resolver/showUserInfo.test.ts +12 -9
  47. package/templates/resolver/src/resolver/showUserInfo.ts +3 -3
  48. package/templates/resolver/src/resolver/upsertUsers.test.ts +2 -2
  49. package/templates/resolver/tailor.d.ts +4 -2
  50. package/templates/static-web-site/.oxlintrc.json +1 -1
  51. package/templates/static-web-site/__dot__gitignore +1 -1
  52. package/templates/static-web-site/package.json +8 -7
  53. package/templates/static-web-site/tailor.d.ts +4 -2
  54. package/templates/tailordb/.oxlintrc.json +1 -1
  55. package/templates/tailordb/__dot__gitignore +1 -1
  56. package/templates/tailordb/package.json +9 -8
  57. package/templates/tailordb/src/generated/db.ts +3 -3
  58. package/templates/tailordb/tailor.d.ts +4 -2
  59. package/templates/workflow/.oxlintrc.json +1 -1
  60. package/templates/workflow/__dot__gitignore +1 -1
  61. package/templates/workflow/e2e/globalSetup.ts +1 -1
  62. package/templates/workflow/e2e/workflow.test.ts +1 -1
  63. package/templates/workflow/package.json +10 -9
  64. package/templates/workflow/src/generated/db.ts +2 -2
  65. package/templates/workflow/src/resolver/resolveApproval.test.ts +4 -3
  66. package/templates/workflow/src/workflow/approval.test.ts +8 -2
  67. package/templates/workflow/src/workflow/approval.ts +2 -2
  68. package/templates/workflow/src/workflow/order-fulfillment.test.ts +20 -8
  69. package/templates/workflow/tailor.d.ts +4 -2
package/CHANGELOG.md CHANGED
@@ -1,11 +1,105 @@
1
1
  # @tailor-platform/create-sdk
2
2
 
3
+ ## 2.0.0-next.3
4
+
5
+ ### Major Changes
6
+
7
+ - [#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.
8
+
9
+ - [#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`.
10
+
11
+ 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:
12
+
13
+ ```diff
14
+ -import { defineWaitPoint, defineWaitPoints } from "@tailor-platform/sdk";
15
+ +import { createWaitPoint, createWaitPoints } from "@tailor-platform/sdk";
16
+
17
+ -export const approval = defineWaitPoint<Payload, Result>("approval");
18
+ +export const approval = createWaitPoint<Payload, Result>("approval");
19
+
20
+ -export const waitPoints = defineWaitPoints((define) => ({ ... }));
21
+ +export const waitPoints = createWaitPoints((define) => ({ ... }));
22
+ ```
23
+
24
+ ### Patch Changes
25
+
26
+ - [#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`.
27
+
28
+ - [#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.
29
+
30
+ 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.
31
+
32
+ ## 2.0.0-next.2
33
+ ### Major Changes
34
+
35
+
36
+
37
+ - [#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.
38
+
39
+ Update create-sdk templates so scaffolded projects use the new non-null `updatedAt` Kysely types and seed schemas.
40
+
41
+ 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.
42
+
43
+ ### Patch Changes
44
+
45
+
46
+
47
+ - [#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`.
48
+
49
+ Update create-sdk templates and the v2 auth invoker codemod to generate the new `invoker` option.
50
+
51
+
52
+ - [#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.
53
+
54
+ The generated file utilities now emit `downloadFileStream`, which calls `downloadStream` and returns `FileDownloadStreamResponse`, instead of the removed `openFileDownloadStream` helper.
55
+
3
56
  ## 2.0.0-next.1
4
57
 
5
58
  ## 2.0.0-next.0
6
59
 
7
60
  ## 1.66.0
8
61
 
62
+ ## 1.71.0
63
+
64
+ ## 1.74.1
65
+
66
+ ## 1.74.0
67
+
68
+ ## 1.73.3
69
+
70
+ ## 1.73.2
71
+
72
+ ## 1.73.1
73
+
74
+ ## 1.73.0
75
+
76
+ ## 1.72.0
77
+
78
+ ## 1.70.1
79
+ ### Patch Changes
80
+
81
+
82
+
83
+ - [#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.
84
+
85
+ ## 1.70.0
86
+
87
+ ## 1.69.0
88
+ ### Patch Changes
89
+
90
+
91
+
92
+ - [#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
93
+
94
+ ## 1.68.0
95
+
96
+ ## 1.67.1
97
+
98
+ ## 1.67.0
99
+
100
+ ## 1.66.1
101
+
102
+ ## 1.66.0
9
103
  ## 1.65.0
10
104
 
11
105
  ## 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.1",
3
+ "version": "2.0.0-next.3",
4
4
  "description": "A CLI tool to quickly create a new Tailor Platform SDK project",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -17,19 +17,20 @@
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",
32
- "typescript": "5.9.3"
29
+ "eslint-plugin-zod": "4.7.0",
30
+ "oxlint": "1.72.0",
31
+ "oxlint-tsgolint": "0.24.0",
32
+ "tsdown": "0.22.3",
33
+ "typescript": "6.0.3"
33
34
  },
34
35
  "scripts": {
35
36
  "build": "tsdown",
@@ -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.1",
18
+ "@tailor-platform/sdk": "2.0.0-next.3",
18
19
  "@types/node": "24.13.2",
19
- "oxfmt": "0.54.0",
20
- "oxlint": "1.69.0",
21
- "oxlint-tsgolint": "0.23.0",
22
- "typescript": "5.9.3",
23
- "vitest": "4.1.8"
20
+ "oxfmt": "0.57.0",
21
+ "oxlint": "1.72.0",
22
+ "oxlint-tsgolint": "0.24.0",
23
+ "typescript": "6.0.3",
24
+ "vitest": "4.1.9"
24
25
  }
25
26
  }
@@ -20,7 +20,7 @@ export interface Namespace {
20
20
  entityId: string;
21
21
  message: string;
22
22
  createdAt: Generated<Timestamp>;
23
- updatedAt: Timestamp | null;
23
+ updatedAt: Generated<Timestamp>;
24
24
  }
25
25
 
26
26
  Notification: {
@@ -30,7 +30,7 @@ export interface Namespace {
30
30
  body: string;
31
31
  isRead: boolean;
32
32
  createdAt: Generated<Timestamp>;
33
- updatedAt: Timestamp | null;
33
+ updatedAt: Generated<Timestamp>;
34
34
  }
35
35
 
36
36
  User: {
@@ -39,7 +39,7 @@ export interface Namespace {
39
39
  email: string;
40
40
  role: "ADMIN" | "MEMBER";
41
41
  createdAt: Generated<Timestamp>;
42
- updatedAt: Timestamp | null;
42
+ updatedAt: Generated<Timestamp>;
43
43
  }
44
44
  }
45
45
  }
@@ -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.1",
18
+ "@tailor-platform/sdk": "2.0.0-next.3",
18
19
  "@types/node": "24.13.2",
19
- "oxfmt": "0.54.0",
20
- "oxlint": "1.69.0",
21
- "oxlint-tsgolint": "0.23.0",
22
- "typescript": "5.9.3",
23
- "vitest": "4.1.8"
20
+ "oxfmt": "0.57.0",
21
+ "oxlint": "1.72.0",
22
+ "oxlint-tsgolint": "0.24.0",
23
+ "typescript": "6.0.3",
24
+ "vitest": "4.1.9"
24
25
  }
25
26
  }
@@ -28,7 +28,7 @@ export interface Namespace {
28
28
  totalPrice: number;
29
29
  status: "PENDING" | "CONFIRMED" | "SHIPPED" | "DELIVERED" | "CANCELLED";
30
30
  createdAt: Generated<Timestamp>;
31
- updatedAt: Timestamp | null;
31
+ updatedAt: Generated<Timestamp>;
32
32
  }
33
33
 
34
34
  Product: {
@@ -39,7 +39,7 @@ export interface Namespace {
39
39
  status: "DRAFT" | "ACTIVE" | "DISCONTINUED";
40
40
  categoryId: string | null;
41
41
  createdAt: Generated<Timestamp>;
42
- updatedAt: Timestamp | null;
42
+ updatedAt: Generated<Timestamp>;
43
43
  }
44
44
 
45
45
  User: {
@@ -48,7 +48,7 @@ export interface Namespace {
48
48
  email: string;
49
49
  role: "ADMIN" | "MEMBER" | "VIEWER";
50
50
  createdAt: Generated<Timestamp>;
51
- updatedAt: Timestamp | null;
51
+ updatedAt: Generated<Timestamp>;
52
52
  }
53
53
  }
54
54
  }
@@ -3,7 +3,7 @@ import type {
3
3
  FileUploadOptions,
4
4
  FileUploadResponse,
5
5
  FileMetadata,
6
- FileStreamIterator,
6
+ FileDownloadStreamResponse,
7
7
  } from "@tailor-platform/sdk/runtime/file";
8
8
 
9
9
  export interface TypeWithFiles {
@@ -50,10 +50,10 @@ export async function getFileMetadata<T extends keyof TypeWithFiles>(
50
50
  return await file.getMetadata(namespaces[type], type, field, recordId);
51
51
  }
52
52
 
53
- export async function openFileDownloadStream<T extends keyof TypeWithFiles>(
53
+ export async function downloadFileStream<T extends keyof TypeWithFiles>(
54
54
  type: T,
55
55
  field: TypeWithFiles[T]["fields"],
56
56
  recordId: string,
57
- ): Promise<FileStreamIterator> {
58
- return await file.openDownloadStream(namespaces[type], type, field, recordId);
57
+ ): Promise<FileDownloadStreamResponse> {
58
+ return await file.downloadStream(namespaces[type], type, field, recordId);
59
59
  }
@@ -1,4 +1,3 @@
1
- import { unauthenticatedTailorUser } from "@tailor-platform/sdk/test";
2
1
  import { mockTailordb } from "@tailor-platform/sdk/vitest";
3
2
  import { describe, expect, test } from "vitest";
4
3
  import resolver from "./getProduct";
@@ -22,7 +21,8 @@ describe("getProduct resolver", () => {
22
21
 
23
22
  const result = await resolver.body({
24
23
  input: { productId: "product-1" },
25
- user: unauthenticatedTailorUser,
24
+ caller: null,
25
+ invoker: null,
26
26
  env: {},
27
27
  });
28
28
 
@@ -51,7 +51,8 @@ describe("getProduct resolver", () => {
51
51
 
52
52
  const result = await resolver.body({
53
53
  input: { productId: "product-2" },
54
- user: unauthenticatedTailorUser,
54
+ caller: null,
55
+ invoker: null,
55
56
  env: {},
56
57
  });
57
58
 
@@ -4,8 +4,8 @@ import { createTailorDBHook, createStandardSchema } from "@tailor-platform/sdk/t
4
4
  import { order } from "../../db/order";
5
5
 
6
6
  const schemaType = t.object({
7
- ...order.pickFields(["id","createdAt"], { optional: true }),
8
- ...order.omitFields(["id","createdAt"]),
7
+ ...order.pickFields(["id","createdAt","updatedAt"], { optional: true }),
8
+ ...order.omitFields(["id","createdAt","updatedAt"]),
9
9
  });
10
10
 
11
11
  const hook = createTailorDBHook(order);
@@ -4,8 +4,8 @@ import { createTailorDBHook, createStandardSchema } from "@tailor-platform/sdk/t
4
4
  import { product } from "../../db/product";
5
5
 
6
6
  const schemaType = t.object({
7
- ...product.pickFields(["id","createdAt"], { optional: true }),
8
- ...product.omitFields(["id","createdAt"]),
7
+ ...product.pickFields(["id","createdAt","updatedAt"], { optional: true }),
8
+ ...product.omitFields(["id","createdAt","updatedAt"]),
9
9
  });
10
10
 
11
11
  const hook = createTailorDBHook(product);
@@ -4,8 +4,8 @@ import { createTailorDBHook, createStandardSchema } from "@tailor-platform/sdk/t
4
4
  import { user } from "../../db/user";
5
5
 
6
6
  const schemaType = t.object({
7
- ...user.pickFields(["id","createdAt"], { optional: true }),
8
- ...user.omitFields(["id","createdAt"]),
7
+ ...user.pickFields(["id","createdAt","updatedAt"], { optional: true }),
8
+ ...user.omitFields(["id","createdAt","updatedAt"]),
9
9
  });
10
10
 
11
11
  const hook = createTailorDBHook(user);
@@ -388,7 +388,7 @@ const seedViaTestExecScript = async (namespace, typesToSeed, deps, selfRefTypes)
388
388
  workspaceId,
389
389
  name: `seed-${namespace}.ts`,
390
390
  code: bundled.bundledCode,
391
- arg: JSON.stringify({ data: chunk.data, order: chunk.order, selfRefTypes }),
391
+ arg: { data: chunk.data, order: chunk.order, selfRefTypes },
392
392
  invoker: {
393
393
  namespace: authNamespace,
394
394
  machineUserName,
@@ -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.1",
16
+ "@tailor-platform/sdk": "2.0.0-next.3",
16
17
  "@types/node": "24.13.2",
17
- "oxfmt": "0.54.0",
18
- "oxlint": "1.69.0",
19
- "oxlint-tsgolint": "0.23.0",
20
- "typescript": "5.9.3"
18
+ "oxfmt": "0.57.0",
19
+ "oxlint": "1.72.0",
20
+ "oxlint-tsgolint": "0.24.0",
21
+ "typescript": "6.0.3"
21
22
  }
22
23
  }
@@ -19,7 +19,7 @@ export interface Namespace {
19
19
  email: string;
20
20
  role: "MANAGER" | "STAFF";
21
21
  createdAt: Generated<Timestamp>;
22
- updatedAt: Timestamp | null;
22
+ updatedAt: Generated<Timestamp>;
23
23
  }
24
24
  }
25
25
  }
@@ -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.1",
16
+ "@tailor-platform/sdk": "2.0.0-next.3",
16
17
  "@types/node": "24.13.2",
17
- "oxfmt": "0.54.0",
18
- "oxlint": "1.69.0",
19
- "oxlint-tsgolint": "0.23.0",
20
- "typescript": "5.9.3"
18
+ "oxfmt": "0.57.0",
19
+ "oxlint": "1.72.0",
20
+ "oxlint-tsgolint": "0.24.0",
21
+ "typescript": "6.0.3"
21
22
  }
22
23
  }
@@ -21,6 +21,6 @@ export default createExecutor({
21
21
  })
22
22
  .execute();
23
23
  },
24
- authInvoker: "manager",
24
+ invoker: "manager",
25
25
  },
26
26
  });