@tailor-platform/sdk 1.56.1 → 1.58.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 (39) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +0 -23
  3. package/dist/{application-DuT_ae02.mjs → application-B59TaTk_.mjs} +10 -6
  4. package/dist/application-B59TaTk_.mjs.map +1 -0
  5. package/dist/application-gO_pa5BO.mjs +4 -0
  6. package/dist/cli/erd-viewer-assets/app.js +1181 -0
  7. package/dist/cli/erd-viewer-assets/index.html +73 -0
  8. package/dist/cli/erd-viewer-assets/serve.json +13 -0
  9. package/dist/cli/erd-viewer-assets/styles.css +789 -0
  10. package/dist/cli/index.mjs +847 -355
  11. package/dist/cli/index.mjs.map +1 -1
  12. package/dist/cli/lib.d.mts +587 -3
  13. package/dist/cli/lib.mjs +3 -3
  14. package/dist/{client-DLPEPJ_s.mjs → client-62B-r3MN.mjs} +39 -10
  15. package/dist/client-62B-r3MN.mjs.map +1 -0
  16. package/dist/{client-DrzwCD1W.mjs → client-BWl3f1XS.mjs} +1 -1
  17. package/dist/configure/index.d.mts +2 -2
  18. package/dist/{crashreport-Bm2mN5tg.mjs → crashreport-CCGpLUlP.mjs} +2 -2
  19. package/dist/{crashreport-Bm2mN5tg.mjs.map → crashreport-CCGpLUlP.mjs.map} +1 -1
  20. package/dist/{crashreport-C5oHvHUC.mjs → crashreport-CXD_Kjk-.mjs} +1 -1
  21. package/dist/{index-B61gFI9a.d.mts → index-BWoHfE-i.d.mts} +3 -2
  22. package/dist/{runtime-745lvg7i.mjs → runtime-BC-FbQkg.mjs} +179 -190
  23. package/dist/runtime-BC-FbQkg.mjs.map +1 -0
  24. package/dist/utils/test/index.d.mts +2 -2
  25. package/dist/{workflow.generated-Kz-nQrTf.d.mts → workflow.generated-CV77NlFp.d.mts} +3 -2
  26. package/docs/cli/application.md +5 -5
  27. package/docs/cli/auth.md +55 -6
  28. package/docs/cli/function.md +2 -2
  29. package/docs/cli/staticwebsite.md +137 -0
  30. package/docs/cli/tailordb.md +31 -26
  31. package/docs/cli-reference.md +19 -16
  32. package/docs/generator/builtin.md +1 -1
  33. package/docs/services/auth.md +0 -11
  34. package/docs/services/staticwebsite.md +13 -0
  35. package/package.json +4 -6
  36. package/dist/application-CC3oaSay.mjs +0 -4
  37. package/dist/application-DuT_ae02.mjs.map +0 -1
  38. package/dist/client-DLPEPJ_s.mjs.map +0 -1
  39. package/dist/runtime-745lvg7i.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { M as TailorInvoker } from "../../tailordb-BlBGmQK-.mjs";
2
- import { W as TailorDBType } from "../../workflow.generated-Kz-nQrTf.mjs";
3
- import { At as TailorField, bt as WORKFLOW_TEST_ENV_KEY, n as output } from "../../index-B61gFI9a.mjs";
2
+ import { W as TailorDBType } from "../../workflow.generated-CV77NlFp.mjs";
3
+ import { At as TailorField, bt as WORKFLOW_TEST_ENV_KEY, n as output } from "../../index-BWoHfE-i.mjs";
4
4
  import { StandardSchemaV1 } from "@standard-schema/spec";
5
5
 
6
6
  //#region src/utils/test/mock.d.ts
@@ -1281,7 +1281,8 @@ type SecretsConfig = SecretsInput & SecretsDefinitionBrand;
1281
1281
  type StaticWebsite = {
1282
1282
  /** Static website name */name: string; /** Static website description */
1283
1283
  description?: string | undefined; /** IP addresses allowed to access the website */
1284
- allowedIpAddresses?: string[] | undefined;
1284
+ allowedIpAddresses?: string[] | undefined; /** Custom domains for the static website */
1285
+ customDomains?: string[] | undefined;
1285
1286
  };
1286
1287
  type StaticWebsiteInput = StaticWebsite;
1287
1288
  //#endregion
@@ -1412,4 +1413,4 @@ type ConcurrencyPolicy = {
1412
1413
  };
1413
1414
  //#endregion
1414
1415
  export { BeforeLoginHookArgs as A, TailorAnyDBField as B, IdPGqlOperationsInput as C, AuthExternalConfig as D, AuthConnectionTokenResult as E, UserAttributeListKey as F, db as G, TailorDBField as H, UserAttributeMap as I, TailorTypePermission as J, PermissionCondition as K, UsernameFieldKey as L, OAuth2ClientGrantType as M, SCIMAttributeType as N, AuthOwnConfig as O, UserAttributeKey as P, AllowedValuesOutput as Q, AuthConnectionConfig as R, IdPGqlOperations as S, AuthConfig as T, TailorDBInstance as U, TailorAnyDBType as V, TailorDBType as W, unsafeAllowAllTypePermission as X, unsafeAllowAllGqlPermission as Y, AllowedValues as Z, IdPConfig as _, ExecutorServiceConfig as a, IdpDefinitionBrand as b, ResolverServiceConfig as c, WorkflowServiceInput as d, StaticWebsiteConfig as f, SecretsDefinitionBrand as g, SecretsConfig as h, AppConfig as i, DefinedAuth as j, AuthServiceInput as k, ResolverServiceInput as l, StaticWebsiteInput as m, RetryPolicy as n, ExecutorServiceInput as o, StaticWebsiteDefinitionBrand as p, TailorTypeGqlPermission as q, HttpAdapterConfigInput as r, ResolverExternalConfig as s, ConcurrencyPolicy as t, WorkflowServiceConfig as u, IdPExternalConfig as v, IdPInput as w, IdPEmailConfig as x, IdPUserField as y, AuthConnectionOAuth2Config as z };
1415
- //# sourceMappingURL=workflow.generated-Kz-nQrTf.d.mts.map
1416
+ //# sourceMappingURL=workflow.generated-CV77NlFp.d.mts.map
@@ -146,8 +146,8 @@ When migrations are configured (`db.tailordb.migration` in config), the `deploy`
146
146
 
147
147
  1. Detects pending migration scripts that haven't been executed
148
148
  2. Applies schema changes in a safe order (pre-migration → script execution → post-migration)
149
- 3. Executes migration scripts via TestExecScript API
150
- 4. Updates migration state labels in TailorDB metadata
149
+ 3. Runs the pending migration scripts
150
+ 4. Updates the migration checkpoint so the same migrations are not re-run
151
151
 
152
152
  See [Automatic Migration Execution](../services/tailordb-migration.md#automatic-migration-execution) for details on automatic migration execution.
153
153
 
@@ -388,7 +388,7 @@ $ tailor-sdk api inspect GetApplication
388
388
 
389
389
  Use `tailor-sdk api list` to enumerate invocable methods and `tailor-sdk api inspect <endpoint>` to print an endpoint's input message tree (combine with `--json` for machine-readable output).
390
390
 
391
- The request body is inferred from the proto definition of the target endpoint, and commonly required fields are auto-injected so they can be omitted from `--body`:
391
+ The request body is inferred from the target endpoint's request schema, and commonly required fields are auto-injected so they can be omitted from `--body`:
392
392
 
393
393
  - `workspaceId` — resolved from `-w` / `TAILOR_PLATFORM_WORKSPACE_ID` / the selected profile.
394
394
  - `namespaceName` — resolved from `tailor.config.ts` based on the endpoint's service:
@@ -397,7 +397,7 @@ The request body is inferred from the proto definition of the target endpoint, a
397
397
 
398
398
  Values already present in `--body` are never overridden. If a value cannot be resolved (e.g. no config found), injection is silently skipped and the server-side validation error takes precedence.
399
399
 
400
- Use `--field key=value` (repeatable) to set request body fields without writing JSON. Dotted keys (e.g. `application.name=foo`) build nested objects. `--field` overrides matching fields in `--body` and tab-completes from the endpoint's proto schema.
400
+ Use `--field key=value` (repeatable) to set request body fields without writing JSON. Dotted keys (e.g. `application.name=foo`) build nested objects. `--field` overrides matching fields in `--body` and tab-completes from the endpoint's request schema.
401
401
 
402
402
  <!-- politty:command:api:notes:end -->
403
403
  <!-- politty:command:api inspect:heading:start -->
@@ -496,6 +496,6 @@ See [Global Options](../cli-reference.md#global-options) for options available t
496
496
 
497
497
  **Notes**
498
498
 
499
- Only unary RPCs are listed; streaming methods are excluded because `tailor-sdk api run` issues a single JSON POST and reads one JSON response.
499
+ Only single-request (non-streaming) methods are listed, because the CLI issues a single JSON request and reads one JSON response.
500
500
 
501
501
  <!-- politty:command:api list:notes:end -->
package/docs/cli/auth.md CHANGED
@@ -28,11 +28,12 @@ tailor-sdk authconnection [command]
28
28
 
29
29
  **Commands**
30
30
 
31
- | Command | Description |
32
- | ------------------------------------------------------- | --------------------------------------------- |
33
- | [`authconnection authorize`](#authconnection-authorize) | Authorize an auth connection via OAuth2 flow. |
34
- | [`authconnection list`](#authconnection-list) | List all auth connections. |
35
- | [`authconnection revoke`](#authconnection-revoke) | Revoke an auth connection. |
31
+ | Command | Description |
32
+ | ------------------------------------------------------- | ------------------------------------------------------------------------------------- |
33
+ | [`authconnection authorize`](#authconnection-authorize) | Authorize an auth connection via OAuth2 flow. |
34
+ | [`authconnection list`](#authconnection-list) | List all auth connections. |
35
+ | [`authconnection revoke`](#authconnection-revoke) | Revoke an auth connection's tokens (keeps the connection; use 'delete' to remove it). |
36
+ | [`authconnection delete`](#authconnection-delete) | Delete an auth connection entirely. |
36
37
 
37
38
  <!-- politty:command:authconnection:subcommands:end -->
38
39
 
@@ -83,6 +84,46 @@ tailor-sdk authconnection authorize [options]
83
84
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
84
85
 
85
86
  <!-- politty:command:authconnection authorize:global-options-link:end -->
87
+ <!-- politty:command:authconnection delete:heading:start -->
88
+
89
+ ### authconnection delete
90
+
91
+ <!-- politty:command:authconnection delete:heading:end -->
92
+
93
+ <!-- politty:command:authconnection delete:description:start -->
94
+
95
+ Delete an auth connection entirely.
96
+
97
+ <!-- politty:command:authconnection delete:description:end -->
98
+
99
+ <!-- politty:command:authconnection delete:usage:start -->
100
+
101
+ **Usage**
102
+
103
+ ```
104
+ tailor-sdk authconnection delete [options]
105
+ ```
106
+
107
+ <!-- politty:command:authconnection delete:usage:end -->
108
+
109
+ <!-- politty:command:authconnection delete:options:start -->
110
+
111
+ **Options**
112
+
113
+ | Option | Alias | Description | Required | Default | Env |
114
+ | ------------------------------- | ----- | ------------------------- | -------- | ------- | ------------------------------ |
115
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
116
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
117
+ | `--name <NAME>` | `-n` | Auth connection name | Yes | - | - |
118
+ | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
119
+
120
+ <!-- politty:command:authconnection delete:options:end -->
121
+
122
+ <!-- politty:command:authconnection delete:global-options-link:start -->
123
+
124
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
125
+
126
+ <!-- politty:command:authconnection delete:global-options-link:end -->
86
127
 
87
128
  <!-- politty:command:authconnection list:heading:start -->
88
129
 
@@ -132,7 +173,7 @@ See [Global Options](../cli-reference.md#global-options) for options available t
132
173
 
133
174
  <!-- politty:command:authconnection revoke:description:start -->
134
175
 
135
- Revoke an auth connection.
176
+ Revoke an auth connection's tokens (keeps the connection; use 'delete' to remove it).
136
177
 
137
178
  <!-- politty:command:authconnection revoke:description:end -->
138
179
 
@@ -165,6 +206,14 @@ See [Global Options](../cli-reference.md#global-options) for options available t
165
206
 
166
207
  <!-- politty:command:authconnection revoke:global-options-link:end -->
167
208
 
209
+ <!-- politty:command:authconnection revoke:notes:start -->
210
+
211
+ **Notes**
212
+
213
+ Revoke invalidates the connection's active session and tokens but keeps the connection and its stored credentials, so it can be re-authorized later. Use `delete` to remove the connection entirely.
214
+
215
+ <!-- politty:command:authconnection revoke:notes:end -->
216
+
168
217
  <!-- politty:command:machineuser:heading:start -->
169
218
 
170
219
  ## machineuser
@@ -207,9 +207,9 @@ $ tailor-sdk function logs <execution-id> --json
207
207
 
208
208
  **Notes**
209
209
 
210
- When viewing a specific execution that failed, the command displays error details with the stack trace mapped back to original source files via the inline sourcemap (clickable file links and code snippets, matching `function test-run` output).
210
+ When viewing a specific execution that failed, the command displays error details with the stack trace mapped back to your original source files (clickable file links and code snippets, matching `function test-run` output).
211
211
 
212
- The download is pinned to the bundle that actually ran using the execution's content hash, so stack traces stay accurate across redeploys when the server retains old bundles. The command falls back to a plain-text error display when the pinned bundle cannot be retrieved, or when the execution was recorded before content hashes started being tracked and the function was redeployed after it ran.
212
+ Stack traces stay accurate even after later redeploys, because the trace is resolved against the exact build that produced the execution. If that build is no longer available, the command falls back to a plain-text error display.
213
213
 
214
214
  <!-- politty:command:function logs:notes:end -->
215
215
 
@@ -31,6 +31,7 @@ tailor-sdk staticwebsite [command]
31
31
  | Command | Description |
32
32
  | ----------------------------------------------- | ----------------------------------------------------- |
33
33
  | [`staticwebsite deploy`](#staticwebsite-deploy) | Deploy a static website from a local build directory. |
34
+ | [`staticwebsite domain`](#staticwebsite-domain) | Manage custom domains for static websites. |
34
35
  | [`staticwebsite list`](#staticwebsite-list) | List all static websites in a workspace. |
35
36
  | [`staticwebsite get`](#staticwebsite-get) | Get details of a specific static website. |
36
37
 
@@ -121,6 +122,142 @@ tailor-sdk staticwebsite list [options]
121
122
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
122
123
 
123
124
  <!-- politty:command:staticwebsite list:global-options-link:end -->
125
+ <!-- politty:command:staticwebsite domain:heading:start -->
126
+
127
+ ### staticwebsite domain
128
+
129
+ <!-- politty:command:staticwebsite domain:heading:end -->
130
+
131
+ <!-- politty:command:staticwebsite domain:description:start -->
132
+
133
+ Manage custom domains for static websites.
134
+
135
+ <!-- politty:command:staticwebsite domain:description:end -->
136
+
137
+ <!-- politty:command:staticwebsite domain:usage:start -->
138
+
139
+ **Usage**
140
+
141
+ ```
142
+ tailor-sdk staticwebsite domain [command]
143
+ ```
144
+
145
+ <!-- politty:command:staticwebsite domain:usage:end -->
146
+
147
+ <!-- politty:command:staticwebsite domain:global-options-link:start -->
148
+
149
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
150
+
151
+ <!-- politty:command:staticwebsite domain:global-options-link:end -->
152
+
153
+ <!-- politty:command:staticwebsite domain:subcommands:start -->
154
+
155
+ **Commands**
156
+
157
+ | Command | Description |
158
+ | --------------------------------------------------------- | ----------------------------------------- |
159
+ | [`staticwebsite domain list`](#staticwebsite-domain-list) | List custom domains for a static website. |
160
+ | [`staticwebsite domain get`](#staticwebsite-domain-get) | Get details of a custom domain. |
161
+
162
+ <!-- politty:command:staticwebsite domain:subcommands:end -->
163
+ <!-- politty:command:staticwebsite domain get:heading:start -->
164
+
165
+ #### staticwebsite domain get
166
+
167
+ <!-- politty:command:staticwebsite domain get:heading:end -->
168
+
169
+ <!-- politty:command:staticwebsite domain get:description:start -->
170
+
171
+ Get details of a custom domain.
172
+
173
+ <!-- politty:command:staticwebsite domain get:description:end -->
174
+
175
+ <!-- politty:command:staticwebsite domain get:usage:start -->
176
+
177
+ **Usage**
178
+
179
+ ```
180
+ tailor-sdk staticwebsite domain get [options] <domain>
181
+ ```
182
+
183
+ <!-- politty:command:staticwebsite domain get:usage:end -->
184
+
185
+ <!-- politty:command:staticwebsite domain get:arguments:start -->
186
+
187
+ **Arguments**
188
+
189
+ | Argument | Description | Required |
190
+ | -------- | ------------------ | -------- |
191
+ | `domain` | Custom domain name | Yes |
192
+
193
+ <!-- politty:command:staticwebsite domain get:arguments:end -->
194
+
195
+ <!-- politty:command:staticwebsite domain get:options:start -->
196
+
197
+ **Options**
198
+
199
+ | Option | Alias | Description | Required | Default | Env |
200
+ | ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
201
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
202
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
203
+
204
+ <!-- politty:command:staticwebsite domain get:options:end -->
205
+
206
+ <!-- politty:command:staticwebsite domain get:global-options-link:start -->
207
+
208
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
209
+
210
+ <!-- politty:command:staticwebsite domain get:global-options-link:end -->
211
+
212
+ <!-- politty:command:staticwebsite domain list:heading:start -->
213
+
214
+ #### staticwebsite domain list
215
+
216
+ <!-- politty:command:staticwebsite domain list:heading:end -->
217
+
218
+ <!-- politty:command:staticwebsite domain list:description:start -->
219
+
220
+ List custom domains for a static website.
221
+
222
+ <!-- politty:command:staticwebsite domain list:description:end -->
223
+
224
+ <!-- politty:command:staticwebsite domain list:usage:start -->
225
+
226
+ **Usage**
227
+
228
+ ```
229
+ tailor-sdk staticwebsite domain list [options] <name>
230
+ ```
231
+
232
+ <!-- politty:command:staticwebsite domain list:usage:end -->
233
+
234
+ <!-- politty:command:staticwebsite domain list:arguments:start -->
235
+
236
+ **Arguments**
237
+
238
+ | Argument | Description | Required |
239
+ | -------- | ------------------- | -------- |
240
+ | `name` | Static website name | Yes |
241
+
242
+ <!-- politty:command:staticwebsite domain list:arguments:end -->
243
+
244
+ <!-- politty:command:staticwebsite domain list:options:start -->
245
+
246
+ **Options**
247
+
248
+ | Option | Alias | Description | Required | Default | Env |
249
+ | ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
250
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
251
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
252
+
253
+ <!-- politty:command:staticwebsite domain list:options:end -->
254
+
255
+ <!-- politty:command:staticwebsite domain list:global-options-link:start -->
256
+
257
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
258
+
259
+ <!-- politty:command:staticwebsite domain list:global-options-link:end -->
260
+
124
261
  <!-- politty:command:staticwebsite get:heading:start -->
125
262
 
126
263
  ### staticwebsite get
@@ -28,11 +28,11 @@ tailor-sdk tailordb [command]
28
28
 
29
29
  **Commands**
30
30
 
31
- | Command | Description |
32
- | ------------------------------------------- | --------------------------------------------------------------------- |
33
- | [`tailordb truncate`](#tailordb-truncate) | Truncate (delete all records from) TailorDB tables. |
34
- | [`tailordb migration`](#tailordb-migration) | Manage TailorDB schema migrations. |
35
- | [`tailordb erd`](#tailordb-erd) | Generate ERD artifacts for TailorDB namespaces using Liam ERD. (beta) |
31
+ | Command | Description |
32
+ | ------------------------------------------- | ------------------------------------------------------------------------- |
33
+ | [`tailordb truncate`](#tailordb-truncate) | Truncate (delete all records from) TailorDB tables. |
34
+ | [`tailordb migration`](#tailordb-migration) | Manage TailorDB schema migrations. |
35
+ | [`tailordb erd`](#tailordb-erd) | Generate TailorDB ERD viewer artifacts from local TailorDB schema. (beta) |
36
36
 
37
37
  <!-- politty:command:tailordb:subcommands:end -->
38
38
 
@@ -357,7 +357,7 @@ See [Global Options](../cli-reference.md#global-options) for options available t
357
357
 
358
358
  <!-- politty:command:tailordb erd:description:start -->
359
359
 
360
- Generate ERD artifacts for TailorDB namespaces using Liam ERD. (beta)
360
+ Generate TailorDB ERD viewer artifacts from local TailorDB schema. (beta)
361
361
 
362
362
  <!-- politty:command:tailordb erd:description:end -->
363
363
 
@@ -375,11 +375,11 @@ tailor-sdk tailordb erd [command]
375
375
 
376
376
  **Commands**
377
377
 
378
- | Command | Description |
379
- | --------------------------------------------- | ---------------------------------------------------------------- |
380
- | [`tailordb erd export`](#tailordb-erd-export) | Export Liam ERD dist from applied TailorDB schema. |
381
- | [`tailordb erd serve`](#tailordb-erd-serve) | Generate and serve ERD locally (liam build + serve dist). (beta) |
382
- | [`tailordb erd deploy`](#tailordb-erd-deploy) | Deploy ERD static website for TailorDB namespace(s). |
378
+ | Command | Description |
379
+ | --------------------------------------------- | ----------------------------------------------------------------- |
380
+ | [`tailordb erd export`](#tailordb-erd-export) | Export TailorDB ERD static viewer from local TailorDB schema. |
381
+ | [`tailordb erd serve`](#tailordb-erd-serve) | Generate and serve TailorDB ERD locally with watch reload. (beta) |
382
+ | [`tailordb erd deploy`](#tailordb-erd-deploy) | Deploy ERD static website for TailorDB namespace(s). |
383
383
 
384
384
  <!-- politty:command:tailordb erd:subcommands:end -->
385
385
 
@@ -396,7 +396,7 @@ See [Global Options](../cli-reference.md#global-options) for options available t
396
396
 
397
397
  <!-- politty:command:tailordb erd export:description:start -->
398
398
 
399
- Export Liam ERD dist from applied TailorDB schema.
399
+ Export TailorDB ERD static viewer from local TailorDB schema.
400
400
 
401
401
  <!-- politty:command:tailordb erd export:description:end -->
402
402
 
@@ -414,13 +414,11 @@ tailor-sdk tailordb erd export [options]
414
414
 
415
415
  **Options**
416
416
 
417
- | Option | Alias | Description | Required | Default | Env |
418
- | ------------------------------- | ----- | ---------------------------------------------------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
419
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
420
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
421
- | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
422
- | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional if only one namespace is defined in config) | No | - | - |
423
- | `--output <OUTPUT>` | `-o` | Output directory path for tbls-compatible ERD JSON (writes to `<outputDir>/<namespace>/schema.json`) | No | `".tailor-sdk/erd"` | - |
417
+ | Option | Alias | Description | Required | Default | Env |
418
+ | ------------------------- | ----- | ---------------------------------------------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
419
+ | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
420
+ | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional if only one namespace is defined in config) | No | - | - |
421
+ | `--output <OUTPUT>` | `-o` | Output directory path for TailorDB ERD viewer files (writes to `<outputDir>/<namespace>/dist`) | No | `".tailor-sdk/erd"` | - |
424
422
 
425
423
  <!-- politty:command:tailordb erd export:options:end -->
426
424
 
@@ -437,7 +435,7 @@ See [Global Options](../cli-reference.md#global-options) for options available t
437
435
 
438
436
  <!-- politty:command:tailordb erd serve:description:start -->
439
437
 
440
- Generate and serve ERD locally (liam build + serve dist). (beta)
438
+ Generate and serve TailorDB ERD locally with watch reload. (beta)
441
439
 
442
440
  <!-- politty:command:tailordb erd serve:description:end -->
443
441
 
@@ -455,12 +453,12 @@ tailor-sdk tailordb erd serve [options]
455
453
 
456
454
  **Options**
457
455
 
458
- | Option | Alias | Description | Required | Default | Env |
459
- | ------------------------------- | ----- | ------------------------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
460
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
461
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
462
- | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
463
- | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (uses first namespace in config if not specified) | No | - | - |
456
+ | Option | Alias | Description | Required | Default | Env |
457
+ | ------------------------- | ----- | ------------------------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
458
+ | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
459
+ | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (uses first namespace in config if not specified) | No | - | - |
460
+ | `--port <PORT>` | - | Local server port (0 selects a free port) | No | `0` | - |
461
+ | `--open` | - | Open the ERD viewer in the default browser | No | `false` | - |
464
462
 
465
463
  <!-- politty:command:tailordb erd serve:options:end -->
466
464
 
@@ -510,6 +508,13 @@ See [Global Options](../cli-reference.md#global-options) for options available t
510
508
 
511
509
  <!-- politty:command:tailordb erd deploy:global-options-link:end -->
512
510
 
511
+ **Notes:**
512
+
513
+ - ERD commands build from the local TailorDB schema, including plugin-generated TailorDB types.
514
+ - `tailordb erd export` writes a self-contained `index.html` viewer to `<output>/<namespace>/dist`.
515
+ - `tailordb erd serve` watches the config file and TailorDB type files, then reloads the browser viewer when the rebuilt `index.html` reports a new embedded schema revision.
516
+ - `tailordb erd deploy` still requires `erdSite` in `tailor.config.ts` because it uploads the generated viewer to a configured Static Website.
517
+
513
518
  **Usage Examples:**
514
519
 
515
520
  ```bash
@@ -130,8 +130,8 @@ Commands for managing TailorDB tables, data, and schema migrations.
130
130
  | [tailordb migration script](./cli/tailordb.md#tailordb-migration-script) | Add a migration script (migrate.ts) template to an existing migration directory. |
131
131
  | [tailordb migration set](./cli/tailordb.md#tailordb-migration-set) | Set migration checkpoint to a specific number. |
132
132
  | [tailordb migration status](./cli/tailordb.md#tailordb-migration-status) | Show the current migration status for TailorDB namespaces, including applied and pending migrations. |
133
- | [tailordb erd export](./cli/tailordb.md#tailordb-erd-export) | Export Liam ERD dist from applied TailorDB schema. |
134
- | [tailordb erd serve](./cli/tailordb.md#tailordb-erd-serve) | Generate and serve ERD locally (liam build + serve dist). (beta) |
133
+ | [tailordb erd export](./cli/tailordb.md#tailordb-erd-export) | Export TailorDB ERD static viewer from local TailorDB schema. |
134
+ | [tailordb erd serve](./cli/tailordb.md#tailordb-erd-serve) | Generate and serve TailorDB ERD locally with watch reload. (beta) |
135
135
  | [tailordb erd deploy](./cli/tailordb.md#tailordb-erd-deploy) | Deploy ERD static website for TailorDB namespace(s). |
136
136
 
137
137
  ### [Query Commands](./cli/query.md)
@@ -200,15 +200,16 @@ Commands for managing workspaces and profiles.
200
200
 
201
201
  Commands for managing Auth service resources.
202
202
 
203
- | Command | Description |
204
- | ------------------------------------------------------------------ | -------------------------------------------------------- |
205
- | [authconnection authorize](./cli/auth.md#authconnection-authorize) | Authorize an auth connection via OAuth2 flow. |
206
- | [authconnection list](./cli/auth.md#authconnection-list) | List all auth connections. |
207
- | [authconnection revoke](./cli/auth.md#authconnection-revoke) | Revoke an auth connection. |
208
- | [machineuser list](./cli/auth.md#machineuser-list) | List all machine users in the application. |
209
- | [machineuser token](./cli/auth.md#machineuser-token) | Get an access token for a machine user. |
210
- | [oauth2client list](./cli/auth.md#oauth2client-list) | List all OAuth2 clients in the application. |
211
- | [oauth2client get](./cli/auth.md#oauth2client-get) | Get OAuth2 client credentials (including client secret). |
203
+ | Command | Description |
204
+ | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------- |
205
+ | [authconnection authorize](./cli/auth.md#authconnection-authorize) | Authorize an auth connection via OAuth2 flow. |
206
+ | [authconnection list](./cli/auth.md#authconnection-list) | List all auth connections. |
207
+ | [authconnection revoke](./cli/auth.md#authconnection-revoke) | Revoke an auth connection's tokens (keeps the connection; use 'delete' to remove it). |
208
+ | [authconnection delete](./cli/auth.md#authconnection-delete) | Delete an auth connection entirely. |
209
+ | [machineuser list](./cli/auth.md#machineuser-list) | List all machine users in the application. |
210
+ | [machineuser token](./cli/auth.md#machineuser-token) | Get an access token for a machine user. |
211
+ | [oauth2client list](./cli/auth.md#oauth2client-list) | List all OAuth2 clients in the application. |
212
+ | [oauth2client get](./cli/auth.md#oauth2client-get) | Get OAuth2 client credentials (including client secret). |
212
213
 
213
214
  ### [Workflow Commands](./cli/workflow.md)
214
215
 
@@ -263,11 +264,13 @@ Commands for managing secrets and vaults.
263
264
 
264
265
  Commands for managing and deploying static websites.
265
266
 
266
- | Command | Description |
267
- | ------------------------------------------------------------------- | ----------------------------------------------------- |
268
- | [staticwebsite deploy](./cli/staticwebsite.md#staticwebsite-deploy) | Deploy a static website from a local build directory. |
269
- | [staticwebsite list](./cli/staticwebsite.md#staticwebsite-list) | List all static websites in a workspace. |
270
- | [staticwebsite get](./cli/staticwebsite.md#staticwebsite-get) | Get details of a specific static website. |
267
+ | Command | Description |
268
+ | ----------------------------------------------------------------------------- | ----------------------------------------------------- |
269
+ | [staticwebsite deploy](./cli/staticwebsite.md#staticwebsite-deploy) | Deploy a static website from a local build directory. |
270
+ | [staticwebsite domain list](./cli/staticwebsite.md#staticwebsite-domain-list) | List custom domains for a static website. |
271
+ | [staticwebsite domain get](./cli/staticwebsite.md#staticwebsite-domain-get) | Get details of a custom domain. |
272
+ | [staticwebsite list](./cli/staticwebsite.md#staticwebsite-list) | List all static websites in a workspace. |
273
+ | [staticwebsite get](./cli/staticwebsite.md#staticwebsite-get) | Get details of a specific static website. |
271
274
 
272
275
  ### [Crash Report Commands](./cli/crashreport.md)
273
276
 
@@ -22,7 +22,7 @@ Generates a TypeScript file containing:
22
22
 
23
23
  - Type definitions for all TailorDB types
24
24
  - `getDB(namespace)` function to create Kysely instances
25
- - Utility types for `Timestamp`, `Serial`, and `ObjectColumnType` (wraps nested objects containing date/datetime fields to provide correct insert vs select types)
25
+ - Utility types for `Timestamp`, `Serial`, and `ObjectColumnType` (used for nested object fields so insert and select types stay correct)
26
26
 
27
27
  ### Usage
28
28
 
@@ -521,14 +521,3 @@ tailor-sdk oauth2client get <name>
521
521
  ```
522
522
 
523
523
  See [Auth Resource Commands](../cli/auth.md) for full documentation.
524
-
525
- ## SDK vs Platform Naming
526
-
527
- > **Note for Platform developers**: The SDK uses different names than the underlying Platform API for user attributes:
528
- >
529
- > | SDK | Platform API | Description |
530
- > | --------------- | --------------- | -------------------------------- |
531
- > | `attributes` | `attribute_map` | Key-value map of user attributes |
532
- > | `attributeList` | `attributes` | Ordered list of UUID values |
533
- >
534
- > This mapping is handled automatically by the SDK. If you're reading Platform documentation or API responses, be aware of this naming difference.
@@ -9,6 +9,7 @@ Static Website provides:
9
9
  - Static file hosting
10
10
  - Type-safe URL references for configuration
11
11
  - IP address restrictions
12
+ - Custom domain support
12
13
 
13
14
  For the official Tailor Platform documentation, see [Static Website Guide](https://docs.tailor.tech/guides/static-website-hosting).
14
15
 
@@ -61,6 +62,18 @@ defineStaticWebSite("my-website", {
61
62
  });
62
63
  ```
63
64
 
65
+ ### customDomains
66
+
67
+ Associate custom domains with the static website:
68
+
69
+ ```typescript
70
+ defineStaticWebSite("my-website", {
71
+ customDomains: ["app.example.com"],
72
+ });
73
+ ```
74
+
75
+ After deploying, use `tailor-sdk staticwebsite domain get <domain>` to check domain status and retrieve the CNAME targets required for DNS configuration.
76
+
64
77
  ## Type-safe URL References
65
78
 
66
79
  The returned website object provides a `url` property that resolves to the actual URL at deployment time. Use this for type-safe configuration:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/sdk",
3
- "version": "1.56.1",
3
+ "version": "1.58.0",
4
4
  "description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -143,7 +143,6 @@
143
143
  "@inquirer/core": "11.2.1",
144
144
  "@inquirer/prompts": "8.5.2",
145
145
  "@jridgewell/trace-mapping": "0.3.31",
146
- "@liam-hq/cli": "0.7.24",
147
146
  "@napi-rs/keyring": "1.3.0",
148
147
  "@opentelemetry/api": "1.9.1",
149
148
  "@opentelemetry/exporter-trace-otlp-proto": "0.218.0",
@@ -176,8 +175,7 @@
176
175
  "pkg-types": "2.3.1",
177
176
  "politty": "0.5.1",
178
177
  "rolldown": "1.0.3",
179
- "semver": "7.8.1",
180
- "serve": "14.2.6",
178
+ "semver": "7.8.2",
181
179
  "sql-highlight": "6.1.0",
182
180
  "std-env": "4.1.0",
183
181
  "table": "6.9.0",
@@ -192,9 +190,9 @@
192
190
  "@opentelemetry/sdk-trace-base": "2.7.1",
193
191
  "@types/madge": "5.0.3",
194
192
  "@types/mime-types": "3.0.1",
195
- "@types/node": "24.12.4",
193
+ "@types/node": "24.13.1",
196
194
  "@types/semver": "7.7.1",
197
- "@typescript/native-preview": "7.0.0-dev.20260527.2",
195
+ "@typescript/native-preview": "7.0.0-dev.20260605.1",
198
196
  "@vitest/coverage-v8": "4.1.8",
199
197
  "oxfmt": "0.53.0",
200
198
  "oxlint": "1.68.0",
@@ -1,4 +0,0 @@
1
-
2
- import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-DuT_ae02.mjs";
3
-
4
- export { defineApplication };