@tailor-platform/sdk 1.75.0 → 1.76.1

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.
package/docs/cli/auth.md CHANGED
@@ -186,9 +186,9 @@ tailor-sdk machineuser token [options] [name]
186
186
 
187
187
  **Arguments**
188
188
 
189
- | Argument | Description | Required |
190
- | -------- | --------------------------------------------------------------------------- | -------- |
191
- | `name` | Machine user name. Falls back to the active profile's default machine user. | No |
189
+ | Argument | Description | Required |
190
+ | -------- | ------------------------------------------------------------------------------------------------------------------- | -------- |
191
+ | `name` | Machine user name. Falls back to TAILOR_PLATFORM_MACHINE_USER_NAME, then the active profile's default machine user. | No |
192
192
 
193
193
  **Options**
194
194
 
package/docs/cli/setup.md CHANGED
@@ -100,14 +100,14 @@ tailor-sdk setup coordinate [options]
100
100
 
101
101
  **Options**
102
102
 
103
- | Option | Alias | Description | Required | Default |
104
- | ----------------------------- | ----- | --------------------------------------------------------------------------------------- | -------- | ------- |
105
- | `--name <NAME>` | `-n` | Coordinator name (used in the generated workflow file name and job names) | Yes | - |
106
- | `--action <ACTION>` | - | Composite action to include (can be specified multiple times). tailor- prefix optional. | Yes | - |
107
- | `--branch <BRANCH>` | - | Branch target: deploy trigger branch (defaults to the detected default branch) | No | - |
108
- | `--tag` | - | Generate a tag target coordinator | No | `false` |
109
- | `--environment <ENVIRONMENT>` | - | GitHub Environment for the plan/deploy jobs | No | - |
110
- | `--force` | - | Discard hand edits and regenerate | No | `false` |
103
+ | Option | Alias | Description | Required | Default |
104
+ | ----------------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- |
105
+ | `--name <NAME>` | `-n` | Coordinator name (used in the generated workflow file name and job names) | Yes | - |
106
+ | `--action <ACTION>` | - | Composite action to include. Repeat for separate deploy steps, or use commas to deploy actions as one multi-config group. tailor- prefix optional. | Yes | - |
107
+ | `--branch <BRANCH>` | - | Branch target: deploy trigger branch (defaults to the detected default branch) | No | - |
108
+ | `--tag` | - | Generate a tag target coordinator | No | `false` |
109
+ | `--environment <ENVIRONMENT>` | - | GitHub Environment for the plan/deploy jobs | No | - |
110
+ | `--force` | - | Discard hand edits and regenerate | No | `false` |
111
111
 
112
112
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
113
113
 
@@ -340,6 +340,8 @@ export const user = db
340
340
  });
341
341
  ```
342
342
 
343
+ **Note:** `.hooks()` can only be called once on a type. Duplicate type-level calls fail at compile time and throw at runtime.
344
+
343
345
  ### Validation
344
346
 
345
347
  Add validation rules to fields. Validators receive three arguments (executed after hooks):
@@ -403,6 +405,8 @@ export const user = db
403
405
  });
404
406
  ```
405
407
 
408
+ **Note:** `.validate()` can only be called once on a type. Duplicate type-level calls fail at compile time and throw at runtime.
409
+
406
410
  ### Vector Search
407
411
 
408
412
  ```typescript
@@ -434,6 +438,22 @@ export const user = db.type("User", {
434
438
 
435
439
  ## Type Modifiers
436
440
 
441
+ Type builder methods that set one type-level configuration can be called only once on the same type. Duplicate calls fail at compile time and throw at runtime. This applies to `.description()`, `.hooks()`, `.validate()`, `.features()`, `.indexes()`, `.files()`, `.permission()`, and `.gqlPermission()`.
442
+
443
+ Conditional assignment is still supported when only one branch calls the method:
444
+
445
+ ```typescript
446
+ let user = db.type("User", {
447
+ name: db.string(),
448
+ });
449
+
450
+ if (enableFiles) {
451
+ user = user.files({
452
+ avatar: "profile image",
453
+ });
454
+ }
455
+ ```
456
+
437
457
  ### Composite Indexes
438
458
 
439
459
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/sdk",
3
- "version": "1.75.0",
3
+ "version": "1.76.1",
4
4
  "description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -158,11 +158,11 @@
158
158
  "@opentelemetry/exporter-trace-otlp-proto": "0.220.0",
159
159
  "@opentelemetry/resources": "2.9.0",
160
160
  "@opentelemetry/sdk-trace-node": "2.9.0",
161
- "@opentelemetry/semantic-conventions": "1.41.1",
161
+ "@opentelemetry/semantic-conventions": "1.42.0",
162
162
  "@oxc-project/types": "0.138.0",
163
163
  "@standard-schema/spec": "1.1.0",
164
164
  "@tailor-platform/function-kysely-tailordb": "0.1.3",
165
- "@toiroakr/lines-db": "0.10.0",
165
+ "@toiroakr/lines-db": "0.10.1",
166
166
  "@toiroakr/read-multiline": "0.4.1",
167
167
  "@urql/core": "6.0.3",
168
168
  "chalk": "5.6.2",
@@ -172,9 +172,9 @@
172
172
  "es-toolkit": "1.49.0",
173
173
  "find-up-simple": "1.0.1",
174
174
  "globals": "17.7.0",
175
- "graphql": "17.0.1",
175
+ "graphql": "17.0.2",
176
176
  "inflection": "3.0.2",
177
- "kysely": "0.29.2",
177
+ "kysely": "0.29.3",
178
178
  "madge": "8.0.0",
179
179
  "mime-types": "3.0.2",
180
180
  "open": "11.0.0",
@@ -190,7 +190,7 @@
190
190
  "std-env": "4.1.0",
191
191
  "table": "6.9.0",
192
192
  "ts-cron-validator": "1.1.5",
193
- "tsx": "4.22.5",
193
+ "tsx": "4.23.0",
194
194
  "type-fest": "5.7.0",
195
195
  "undici": "8.6.0",
196
196
  "xdg-basedir": "5.1.0",
@@ -202,15 +202,15 @@
202
202
  "@types/mime-types": "3.0.1",
203
203
  "@types/node": "24.13.2",
204
204
  "@types/semver": "7.7.1",
205
- "@typescript/native-preview": "7.0.0-dev.20260703.1",
206
- "@vitest/coverage-v8": "4.1.9",
205
+ "@typescript/native-preview": "7.0.0-dev.20260706.1",
206
+ "@vitest/coverage-v8": "4.1.10",
207
207
  "oxfmt": "0.57.0",
208
208
  "oxlint": "1.72.0",
209
209
  "oxlint-tsgolint": "0.24.0",
210
- "sonda": "0.13.1",
210
+ "sonda": "0.14.0",
211
211
  "tsdown": "0.22.3",
212
212
  "typescript": "6.0.3",
213
- "vitest": "4.1.9",
213
+ "vitest": "4.1.10",
214
214
  "zinfer": "0.2.3",
215
215
  "@tailor-platform/tailor-proto": "^0.0.0"
216
216
  },
@@ -1,3 +0,0 @@
1
- import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-DYshsH-K.mjs";
2
-
3
- export { defineApplication, generatePluginFilesIfNeeded };