@tailor-platform/sdk 1.39.0 → 1.40.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 (94) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +7 -10
  3. package/dist/{env-CgI46oPS.d.mts → actor-B2oEmlTc.d.mts} +9 -9
  4. package/dist/application-CEeKm4R-.mjs +4 -0
  5. package/dist/{application-DhQrXEld.mjs → application-C_LFXkKJ.mjs} +148 -148
  6. package/dist/application-C_LFXkKJ.mjs.map +1 -0
  7. package/dist/{brand-D-d15jx3.mjs → brand-Ll48SMXe.mjs} +1 -1
  8. package/dist/{brand-D-d15jx3.mjs.map → brand-Ll48SMXe.mjs.map} +1 -1
  9. package/dist/cli/index.mjs +163 -42
  10. package/dist/cli/index.mjs.map +1 -1
  11. package/dist/cli/lib.d.mts +43 -9
  12. package/dist/cli/lib.mjs +4 -4
  13. package/dist/cli/skills.mjs +13 -43
  14. package/dist/cli/skills.mjs.map +1 -1
  15. package/dist/{client-xzPXtc_e.mjs → client-DjGFRjH4.mjs} +105 -47
  16. package/dist/client-DjGFRjH4.mjs.map +1 -0
  17. package/dist/client-Dtf48x0o.mjs +4 -0
  18. package/dist/configure/index.d.mts +4 -4
  19. package/dist/configure/index.mjs +55 -4
  20. package/dist/configure/index.mjs.map +1 -1
  21. package/dist/{crash-report-BEAiCSCl.mjs → crash-report-CEIXtw4D.mjs} +1 -1
  22. package/dist/{crash-report-DXhPL8Ue.mjs → crash-report-CSWITsTz.mjs} +4 -4
  23. package/dist/{crash-report-DXhPL8Ue.mjs.map → crash-report-CSWITsTz.mjs.map} +1 -1
  24. package/dist/{errors-D9f2UJpT.mjs → errors-ChWX5ZG8.mjs} +1 -1
  25. package/dist/{errors-D9f2UJpT.mjs.map → errors-ChWX5ZG8.mjs.map} +1 -1
  26. package/dist/field-BY2vbJ8f.mjs +23 -0
  27. package/dist/field-BY2vbJ8f.mjs.map +1 -0
  28. package/dist/{index-DbzopC7M.d.mts → index-BtXZdz-F.d.mts} +2 -2
  29. package/dist/{index-y5790SX_.d.mts → index-Chvw1Eod.d.mts} +2 -2
  30. package/dist/{index-B2tsEXdh.d.mts → index-CiNNNpuH.d.mts} +2 -2
  31. package/dist/{index-31hm0Fq7.d.mts → index-D_ezppY7.d.mts} +133 -30
  32. package/dist/{index-DeBFa7oc.d.mts → index-reFAYSX7.d.mts} +2 -2
  33. package/dist/{interceptor-CzaH2Ur6.mjs → interceptor-4UC-KTno.mjs} +1 -1
  34. package/dist/{interceptor-CzaH2Ur6.mjs.map → interceptor-4UC-KTno.mjs.map} +1 -1
  35. package/dist/{job-DkAklmE4.mjs → job-p6zf8Qpg.mjs} +2 -2
  36. package/dist/job-p6zf8Qpg.mjs.map +1 -0
  37. package/dist/{logger-5_JMzHmw.mjs → logger-DTNAMYGy.mjs} +1 -1
  38. package/dist/{logger-5_JMzHmw.mjs.map → logger-DTNAMYGy.mjs.map} +1 -1
  39. package/dist/package-json-CPR7s5hf.mjs +4 -0
  40. package/dist/{package-json-BHViVisJ.mjs → package-json-CWp8s9dE.mjs} +1 -1
  41. package/dist/{package-json-BHViVisJ.mjs.map → package-json-CWp8s9dE.mjs.map} +1 -1
  42. package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
  43. package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
  44. package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
  45. package/dist/plugin/builtin/seed/index.d.mts +1 -1
  46. package/dist/plugin/builtin/seed/index.mjs +1 -1
  47. package/dist/plugin/index.d.mts +2 -2
  48. package/dist/repl-editor-DjycioU-.mjs +255 -0
  49. package/dist/repl-editor-DjycioU-.mjs.map +1 -0
  50. package/dist/{runtime-DtSOnOHh.mjs → runtime-im7Sq4jO.mjs} +313 -182
  51. package/dist/runtime-im7Sq4jO.mjs.map +1 -0
  52. package/dist/{schema-CnwUqPyM.mjs → schema-CEcfEyPN.mjs} +4 -44
  53. package/dist/schema-CEcfEyPN.mjs.map +1 -0
  54. package/dist/{seed-DrbB1VXd.mjs → seed-CyYPhvNL.mjs} +12 -12
  55. package/dist/seed-CyYPhvNL.mjs.map +1 -0
  56. package/dist/{service-Bcp6JB3w.mjs → service-SrG26B9T.mjs} +3 -3
  57. package/dist/{service-Bcp6JB3w.mjs.map → service-SrG26B9T.mjs.map} +1 -1
  58. package/dist/{plugin-_K3ZfP8B.d.mts → tailor-db-field-CoFKRCYW.d.mts} +695 -1187
  59. package/dist/{telemetry-DwHuiNiR.mjs → telemetry-BuDto_2q.mjs} +2 -2
  60. package/dist/{telemetry-DwHuiNiR.mjs.map → telemetry-BuDto_2q.mjs.map} +1 -1
  61. package/dist/telemetry-C1hzFaiV.mjs +4 -0
  62. package/dist/types-BnphjkIJ.mjs +5 -0
  63. package/dist/{types-B9ZMosul.mjs → types-Duhhsx3R.mjs} +3 -32
  64. package/dist/types-Duhhsx3R.mjs.map +1 -0
  65. package/dist/utils/test/index.d.mts +2 -2
  66. package/dist/utils/test/index.mjs +1 -1
  67. package/dist/workflow.generated-Btz6srLR.d.mts +1207 -0
  68. package/docs/cli/application.md +21 -5
  69. package/docs/cli/auth.md +20 -14
  70. package/docs/cli/executor.md +17 -14
  71. package/docs/cli/function.md +6 -4
  72. package/docs/cli/query.md +45 -0
  73. package/docs/cli/secret.md +13 -9
  74. package/docs/cli/skills.md +75 -0
  75. package/docs/cli/staticwebsite.md +6 -4
  76. package/docs/cli/user.md +9 -1
  77. package/docs/cli/workflow.md +17 -13
  78. package/docs/cli-reference.md +16 -0
  79. package/docs/services/idp.md +4 -4
  80. package/docs/services/workflow.md +1 -1
  81. package/package.json +12 -9
  82. package/dist/application-C1ipG5Q6.mjs +0 -4
  83. package/dist/application-DhQrXEld.mjs.map +0 -1
  84. package/dist/client-BWAbbA1C.mjs +0 -4
  85. package/dist/client-xzPXtc_e.mjs.map +0 -1
  86. package/dist/job-DkAklmE4.mjs.map +0 -1
  87. package/dist/package-json--6dmp6-h.mjs +0 -4
  88. package/dist/runtime-DtSOnOHh.mjs.map +0 -1
  89. package/dist/schema-CnwUqPyM.mjs.map +0 -1
  90. package/dist/seed-DrbB1VXd.mjs.map +0 -1
  91. package/dist/telemetry-4IOPW6wE.mjs +0 -4
  92. package/dist/types-B9ZMosul.mjs.map +0 -1
  93. package/dist/types-C45jRrCM.mjs +0 -4
  94. package/dist/workflow.generated-BxbnuzAE.d.mts +0 -414
@@ -330,11 +330,12 @@ tailor-sdk api [options] <endpoint>
330
330
 
331
331
  **Options**
332
332
 
333
- | Option | Alias | Description | Required | Default | Env |
334
- | ------------------------------- | ----- | -------------------- | -------- | ------- | ------------------------------ |
335
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
336
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
337
- | `--body <BODY>` | `-b` | Request body as JSON | No | `"{}"` | - |
333
+ | Option | Alias | Description | Required | Default | Env |
334
+ | ------------------------------- | ----- | ----------------------- | -------- | -------------------- | --------------------------------- |
335
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
336
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
337
+ | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
338
+ | `--body <BODY>` | `-b` | Request body as JSON | No | `"{}"` | - |
338
339
 
339
340
  <!-- politty:command:api:options:end -->
340
341
 
@@ -343,3 +344,18 @@ tailor-sdk api [options] <endpoint>
343
344
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
344
345
 
345
346
  <!-- politty:command:api:global-options-link:end -->
347
+
348
+ <!-- politty:command:api:notes:start -->
349
+
350
+ **Notes**
351
+
352
+ 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`:
353
+
354
+ - `workspaceId` — resolved from `-w` / `TAILOR_PLATFORM_WORKSPACE_ID` / the selected profile.
355
+ - `namespaceName` — resolved from `tailor.config.ts` based on the endpoint's service:
356
+ - Auth / Tenant / UserProfile endpoints use `auth.name`.
357
+ - IdP / TailorDB / Pipeline endpoints use the sole configured namespace when exactly one is defined.
358
+
359
+ 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.
360
+
361
+ <!-- politty:command:api:notes:end -->
package/docs/cli/auth.md CHANGED
@@ -110,10 +110,12 @@ tailor-sdk authconnection list [options]
110
110
 
111
111
  **Options**
112
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` |
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
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
118
+ | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
117
119
 
118
120
  <!-- politty:command:authconnection list:options:end -->
119
121
 
@@ -227,11 +229,13 @@ tailor-sdk machineuser list [options]
227
229
 
228
230
  **Options**
229
231
 
230
- | Option | Alias | Description | Required | Default | Env |
231
- | ------------------------------- | ----- | ----------------------- | -------- | -------------------- | --------------------------------- |
232
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
233
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
234
- | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
232
+ | Option | Alias | Description | Required | Default | Env |
233
+ | ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
234
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
235
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
236
+ | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
237
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
238
+ | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
235
239
 
236
240
  <!-- politty:command:machineuser list:options:end -->
237
241
 
@@ -353,11 +357,13 @@ tailor-sdk oauth2client list [options]
353
357
 
354
358
  **Options**
355
359
 
356
- | Option | Alias | Description | Required | Default | Env |
357
- | ------------------------------- | ----- | ----------------------- | -------- | -------------------- | --------------------------------- |
358
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
359
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
360
- | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
360
+ | Option | Alias | Description | Required | Default | Env |
361
+ | ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
362
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
363
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
364
+ | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
365
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
366
+ | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
361
367
 
362
368
  <!-- politty:command:oauth2client list:options:end -->
363
369
 
@@ -70,10 +70,12 @@ tailor-sdk executor list [options]
70
70
 
71
71
  **Options**
72
72
 
73
- | Option | Alias | Description | Required | Default | Env |
74
- | ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
75
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
76
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
73
+ | Option | Alias | Description | Required | Default | Env |
74
+ | ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------- | ------------------------------ |
75
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
76
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
77
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
78
+ | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
77
79
 
78
80
  <!-- politty:command:executor list:options:end -->
79
81
 
@@ -169,16 +171,17 @@ tailor-sdk executor jobs [options] <executorName> [jobId]
169
171
 
170
172
  **Options**
171
173
 
172
- | Option | Alias | Description | Required | Default | Env |
173
- | ------------------------------- | ----- | ----------------------------------------------------------------------------------------------------- | -------- | ------- | ------------------------------ |
174
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
175
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
176
- | `--status <STATUS>` | `-s` | Filter by status (PENDING, RUNNING, SUCCESS, FAILED, CANCELED) (list mode only) | No | - | - |
177
- | `--attempts` | - | Show job attempts (only with job ID) (detail mode only) | No | `false` | - |
178
- | `--wait` | `-W` | Wait for job completion and downstream execution (workflow/function) if applicable (detail mode only) | No | `false` | - |
179
- | `--interval <INTERVAL>` | `-i` | Polling interval when using --wait (e.g., '3s', '500ms', '1m') | No | `"3s"` | - |
180
- | `--logs` | `-l` | Display function execution logs after completion (requires --wait) | No | `false` | - |
181
- | `--limit <LIMIT>` | - | Maximum number of jobs to list (default: 50, max: 1000) (list mode only) | No | - | - |
174
+ | Option | Alias | Description | Required | Default | Env |
175
+ | ------------------------------- | ----- | ----------------------------------------------------------------------------------------------------- | -------- | -------- | ------------------------------ |
176
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
177
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
178
+ | `--status <STATUS>` | `-s` | Filter by status (PENDING, RUNNING, SUCCESS, FAILED, CANCELED) (list mode only) | No | - | - |
179
+ | `--attempts` | - | Show job attempts (only with job ID) (detail mode only) | No | `false` | - |
180
+ | `--wait` | `-W` | Wait for job completion and downstream execution (workflow/function) if applicable (detail mode only) | No | `false` | - |
181
+ | `--interval <INTERVAL>` | `-i` | Polling interval when using --wait (e.g., '3s', '500ms', '1m') | No | `"3s"` | - |
182
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
183
+ | `--limit <LIMIT>` | - | Maximum number of jobs to list (0: unlimited, default: 50) (list mode only) | No | `50` | - |
184
+ | `--logs` | `-l` | Display function execution logs after completion (requires --wait) | No | `false` | - |
182
185
 
183
186
  <!-- politty:command:executor jobs:options:end -->
184
187
 
@@ -76,10 +76,12 @@ tailor-sdk function logs [options] [executionId]
76
76
 
77
77
  **Options**
78
78
 
79
- | Option | Alias | Description | Required | Default | Env |
80
- | ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
81
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
82
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
79
+ | Option | Alias | Description | Required | Default | Env |
80
+ | ------------------------------- | ----- | ------------------------------------------------ | -------- | -------- | ------------------------------ |
81
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
82
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
83
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
84
+ | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0: unlimited) | No | `50` | - |
83
85
 
84
86
  <!-- politty:command:function logs:options:end -->
85
87
 
@@ -0,0 +1,45 @@
1
+ <!-- politty:command:query:heading:start -->
2
+
3
+ ## query
4
+
5
+ <!-- politty:command:query:heading:end -->
6
+
7
+ <!-- politty:command:query:description:start -->
8
+
9
+ Run SQL/GraphQL query.
10
+
11
+ <!-- politty:command:query:description:end -->
12
+
13
+ <!-- politty:command:query:usage:start -->
14
+
15
+ **Usage**
16
+
17
+ ```
18
+ tailor-sdk query [options]
19
+ ```
20
+
21
+ <!-- politty:command:query:usage:end -->
22
+
23
+ <!-- politty:command:query:options:start -->
24
+
25
+ **Options**
26
+
27
+ | Option | Alias | Description | Required | Default | Env |
28
+ | ------------------------------- | ----- | ---------------------------------------------------------------------------------------------------- | -------- | -------------------- | ----------------------------------- |
29
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
30
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
31
+ | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
32
+ | `--engine <ENGINE>` | - | Query engine (sql or gql) | Yes | - | - |
33
+ | `--query <QUERY>` | `-q` | Query string to execute directly; omit to start REPL mode | No | - | - |
34
+ | `--file <FILE>` | `-f` | Read query string from file; omit to start REPL mode | No | - | - |
35
+ | `--edit` | - | Open a temporary file in your editor; omit to start REPL mode | No | `false` | - |
36
+ | `--machine-user <MACHINE_USER>` | `-m` | Machine user name for query execution | Yes | - | `TAILOR_PLATFORM_MACHINE_USER_NAME` |
37
+ | `--newline-on-enter` | - | REPL: when true, Enter inserts a newline and Shift+Enter submits. Use --no-newline-on-enter to swap. | No | - | - |
38
+
39
+ <!-- politty:command:query:options:end -->
40
+
41
+ <!-- politty:command:query:global-options-link:start -->
42
+
43
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
44
+
45
+ <!-- politty:command:query:global-options-link:end -->
@@ -205,10 +205,12 @@ tailor-sdk secret vault list [options]
205
205
 
206
206
  **Options**
207
207
 
208
- | Option | Alias | Description | Required | Default | Env |
209
- | ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
210
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
211
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
208
+ | Option | Alias | Description | Required | Default | Env |
209
+ | ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------- | ------------------------------ |
210
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
211
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
212
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
213
+ | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
212
214
 
213
215
  <!-- politty:command:secret vault list:options:end -->
214
216
 
@@ -327,11 +329,13 @@ tailor-sdk secret list [options]
327
329
 
328
330
  **Options**
329
331
 
330
- | Option | Alias | Description | Required | Default | Env |
331
- | ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
332
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
333
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
334
- | `--vault-name <VAULT_NAME>` | `-V` | Vault name | Yes | - | - |
332
+ | Option | Alias | Description | Required | Default | Env |
333
+ | ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------- | ------------------------------ |
334
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
335
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
336
+ | `--vault-name <VAULT_NAME>` | `-V` | Vault name | Yes | - | - |
337
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
338
+ | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
335
339
 
336
340
  <!-- politty:command:secret list:options:end -->
337
341
 
@@ -0,0 +1,75 @@
1
+ <!-- politty:command:skills:heading:start -->
2
+
3
+ ## skills
4
+
5
+ <!-- politty:command:skills:heading:end -->
6
+
7
+ <!-- politty:command:skills:description:start -->
8
+
9
+ Manage Tailor SDK agent skills.
10
+
11
+ <!-- politty:command:skills:description:end -->
12
+
13
+ <!-- politty:command:skills:usage:start -->
14
+
15
+ **Usage**
16
+
17
+ ```
18
+ tailor-sdk skills [command]
19
+ ```
20
+
21
+ <!-- politty:command:skills:usage:end -->
22
+
23
+ <!-- politty:command:skills:global-options-link:start -->
24
+
25
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
26
+
27
+ <!-- politty:command:skills:global-options-link:end -->
28
+
29
+ <!-- politty:command:skills:subcommands:start -->
30
+
31
+ **Commands**
32
+
33
+ | Command | Description |
34
+ | ----------------------------------- | ------------------------------------------------------------------ |
35
+ | [`skills install`](#skills-install) | Install the tailor-sdk agent skill from the installed SDK package. |
36
+
37
+ <!-- politty:command:skills:subcommands:end -->
38
+ <!-- politty:command:skills install:heading:start -->
39
+
40
+ ### skills install
41
+
42
+ <!-- politty:command:skills install:heading:end -->
43
+
44
+ <!-- politty:command:skills install:description:start -->
45
+
46
+ Install the tailor-sdk agent skill from the installed SDK package.
47
+
48
+ <!-- politty:command:skills install:description:end -->
49
+
50
+ <!-- politty:command:skills install:usage:start -->
51
+
52
+ **Usage**
53
+
54
+ ```
55
+ tailor-sdk skills install [options]
56
+ ```
57
+
58
+ <!-- politty:command:skills install:usage:end -->
59
+
60
+ <!-- politty:command:skills install:options:start -->
61
+
62
+ **Options**
63
+
64
+ | Option | Alias | Description | Required | Default |
65
+ | ----------------- | ----- | ---------------------------------------------------------------------------- | -------- | --------------- |
66
+ | `--agent <AGENT>` | `-a` | vercel/skills agent name (e.g. claude-code, codex). Defaults to claude-code. | No | `"claude-code"` |
67
+ | `--yes` | `-y` | Auto-approve prompts. | No | `false` |
68
+
69
+ <!-- politty:command:skills install:options:end -->
70
+
71
+ <!-- politty:command:skills install:global-options-link:start -->
72
+
73
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
74
+
75
+ <!-- politty:command:skills install:global-options-link:end -->
@@ -107,10 +107,12 @@ tailor-sdk staticwebsite list [options]
107
107
 
108
108
  **Options**
109
109
 
110
- | Option | Alias | Description | Required | Default | Env |
111
- | ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
112
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
113
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
110
+ | Option | Alias | Description | Required | Default | Env |
111
+ | ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------- | ------------------------------ |
112
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
113
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
114
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
115
+ | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
114
116
 
115
117
  <!-- politty:command:staticwebsite list:options:end -->
116
118
 
package/docs/cli/user.md CHANGED
@@ -272,12 +272,20 @@ List all personal access tokens.
272
272
  **Usage**
273
273
 
274
274
  ```
275
- tailor-sdk user pat list
275
+ tailor-sdk user pat list [options]
276
276
  ```
277
277
 
278
278
  <!-- politty:command:user pat list:usage:end -->
279
279
 
280
280
  <!-- politty:command:user pat list:options:start -->
281
+
282
+ **Options**
283
+
284
+ | Option | Alias | Description | Required | Default |
285
+ | ----------------- | ----- | -------------------------------------------------------- | -------- | -------- |
286
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` |
287
+ | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - |
288
+
281
289
  <!-- politty:command:user pat list:options:end -->
282
290
 
283
291
  <!-- politty:command:user pat list:global-options-link:start -->
@@ -69,10 +69,12 @@ tailor-sdk workflow list [options]
69
69
 
70
70
  **Options**
71
71
 
72
- | Option | Alias | Description | Required | Default | Env |
73
- | ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
74
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
75
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
72
+ | Option | Alias | Description | Required | Default | Env |
73
+ | ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------- | ------------------------------ |
74
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
75
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
76
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
77
+ | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
76
78
 
77
79
  <!-- politty:command:workflow list:options:end -->
78
80
 
@@ -219,15 +221,17 @@ tailor-sdk workflow executions [options] [executionId]
219
221
 
220
222
  **Options**
221
223
 
222
- | Option | Alias | Description | Required | Default | Env |
223
- | --------------------------------- | ----- | -------------------------------------------------------------- | -------- | ------- | ------------------------------ |
224
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
225
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
226
- | `--workflow-name <WORKFLOW_NAME>` | `-n` | Filter by workflow name (list mode only) | No | - | - |
227
- | `--status <STATUS>` | `-s` | Filter by status (list mode only) | No | - | - |
228
- | `--wait` | `-W` | Wait for execution to complete | No | `false` | - |
229
- | `--interval <INTERVAL>` | `-i` | Polling interval when using --wait (e.g., '3s', '500ms', '1m') | No | `"3s"` | - |
230
- | `--logs` | - | Display job execution logs (detail mode only) | No | `false` | - |
224
+ | Option | Alias | Description | Required | Default | Env |
225
+ | --------------------------------- | ----- | -------------------------------------------------------------- | -------- | -------- | ------------------------------ |
226
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
227
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
228
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
229
+ | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0: unlimited) | No | `50` | - |
230
+ | `--workflow-name <WORKFLOW_NAME>` | `-n` | Filter by workflow name (list mode only) | No | - | - |
231
+ | `--status <STATUS>` | `-s` | Filter by status (list mode only) | No | - | - |
232
+ | `--wait` | `-W` | Wait for execution to complete | No | `false` | - |
233
+ | `--interval <INTERVAL>` | `-i` | Polling interval when using --wait (e.g., '3s', '500ms', '1m') | No | `"3s"` | - |
234
+ | `--logs` | - | Display job execution logs (detail mode only) | No | `false` | - |
231
235
 
232
236
  <!-- politty:command:workflow executions:options:end -->
233
237
 
@@ -119,6 +119,14 @@ Commands for managing TailorDB tables, data, and schema migrations.
119
119
  | [tailordb erd serve](./cli/tailordb.md#tailordb-erd-serve) | Generate and serve ERD locally (liam build + serve dist). (beta) |
120
120
  | [tailordb erd deploy](./cli/tailordb.md#tailordb-erd-deploy) | Deploy ERD static website for TailorDB namespace(s). |
121
121
 
122
+ ### [Query Commands](./cli/query.md)
123
+
124
+ Run ad-hoc SQL/GraphQL queries or enter the interactive REPL.
125
+
126
+ | Command | Description |
127
+ | ----------------------------- | ---------------------- |
128
+ | [query](./cli/query.md#query) | Run SQL/GraphQL query. |
129
+
122
130
  ### [User & Auth Commands](./cli/user.md)
123
131
 
124
132
  Commands for authentication and user management.
@@ -269,6 +277,14 @@ Commands for upgrading SDK versions with automated code migration.
269
277
  | ----------------------------------- | ------------------------------------------------------------ |
270
278
  | [upgrade](./cli/upgrade.md#upgrade) | Run codemods to upgrade your project to a newer SDK version. |
271
279
 
280
+ ### [Skills Commands](./cli/skills.md)
281
+
282
+ Commands for installing Tailor SDK agent skills.
283
+
284
+ | Command | Description |
285
+ | ------------------------------------------------ | ------------------------------------------------------------------ |
286
+ | [skills install](./cli/skills.md#skills-install) | Install the tailor-sdk agent skill from the installed SDK package. |
287
+
272
288
  ### [Completion](./cli/completion.md)
273
289
 
274
290
  Generate shell completion scripts for bash, zsh, and fish.
@@ -43,9 +43,9 @@ export default defineConfig({
43
43
 
44
44
  ## Options
45
45
 
46
- ### authorization
46
+ ### authorization (optional)
47
47
 
48
- User management permissions. Controls who can manage users in the IdP.
48
+ User management permissions. Controls who can manage users in the IdP. This field can be omitted when using `permission` for access control.
49
49
 
50
50
  ```typescript
51
51
  defineIdp("my-idp", {
@@ -57,7 +57,7 @@ defineIdp("my-idp", {
57
57
  });
58
58
 
59
59
  defineIdp("my-idp", {
60
- authorization: "user.role == 'admin'", // CEL expression
60
+ authorization: { cel: "user.role == 'admin'" }, // CEL expression
61
61
  });
62
62
  ```
63
63
 
@@ -65,7 +65,7 @@ defineIdp("my-idp", {
65
65
 
66
66
  - `"insecure"` - No authentication required (use only for development)
67
67
  - `"loggedIn"` - Requires authenticated user
68
- - CEL expression - Custom authorization logic
68
+ - `{ cel: "<expression>" }` - Custom authorization logic using CEL
69
69
 
70
70
  ### clients
71
71
 
@@ -256,7 +256,7 @@ export default createResolver({
256
256
 
257
257
  > **Deprecated:** `auth.invoker("manager-machine-user")` still works but is deprecated. Using the string form avoids importing `auth` into runtime code.
258
258
 
259
- See the full working example in the repository: [example/resolvers/triggerWorkflow.ts](../../../../example/resolvers/triggerWorkflow.ts).
259
+ See the full working example in the repository: [example/resolvers/triggerWorkflow.ts](https://github.com/tailor-platform/sdk/blob/main/example/resolvers/triggerWorkflow.ts).
260
260
 
261
261
  ## File Organization
262
262
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/sdk",
3
- "version": "1.39.0",
3
+ "version": "1.40.0",
4
4
  "description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -91,11 +91,12 @@
91
91
  "@opentelemetry/resources": "2.6.1",
92
92
  "@opentelemetry/sdk-trace-node": "2.6.1",
93
93
  "@opentelemetry/semantic-conventions": "1.40.0",
94
- "@oxc-project/types": "0.123.0",
94
+ "@oxc-project/types": "0.126.0",
95
95
  "@standard-schema/spec": "1.1.0",
96
96
  "@tailor-platform/function-kysely-tailordb": "0.1.3",
97
97
  "@tailor-platform/function-types": "0.8.4",
98
98
  "@toiroakr/lines-db": "0.9.1",
99
+ "@toiroakr/read-multiline": "0.3.0",
99
100
  "@urql/core": "6.0.1",
100
101
  "chalk": "5.6.2",
101
102
  "chokidar": "5.0.0",
@@ -104,6 +105,7 @@
104
105
  "es-toolkit": "1.45.1",
105
106
  "find-up-simple": "1.0.1",
106
107
  "globals": "17.5.0",
108
+ "graphql": "16.13.2",
107
109
  "inflection": "3.0.2",
108
110
  "kysely": "0.28.16",
109
111
  "madge": "8.0.0",
@@ -111,7 +113,7 @@
111
113
  "multiline-ts": "4.0.1",
112
114
  "open": "11.0.0",
113
115
  "ora": "9.3.0",
114
- "oxc-parser": "0.124.0",
116
+ "oxc-parser": "0.126.0",
115
117
  "p-limit": "7.3.0",
116
118
  "pathe": "2.0.3",
117
119
  "pgsql-ast-parser": "12.0.2",
@@ -120,6 +122,7 @@
120
122
  "rolldown": "1.0.0-rc.15",
121
123
  "semver": "7.7.4",
122
124
  "serve": "14.2.6",
125
+ "sql-highlight": "6.1.0",
123
126
  "std-env": "4.0.0",
124
127
  "table": "6.9.0",
125
128
  "ts-cron-validator": "1.1.5",
@@ -135,20 +138,20 @@
135
138
  "@types/mime-types": "3.0.1",
136
139
  "@types/node": "24.12.2",
137
140
  "@types/semver": "7.7.1",
138
- "@typescript/native-preview": "7.0.0-dev.20260406.1",
141
+ "@typescript/native-preview": "7.0.0-dev.20260417.1",
139
142
  "@vitest/coverage-v8": "4.1.4",
140
143
  "eslint": "10.2.0",
141
144
  "eslint-plugin-jsdoc": "62.9.0",
142
- "eslint-plugin-oxlint": "1.59.0",
143
- "oxfmt": "0.44.0",
144
- "oxlint": "1.59.0",
145
+ "eslint-plugin-oxlint": "1.60.0",
146
+ "oxfmt": "0.45.0",
147
+ "oxlint": "1.60.0",
145
148
  "oxlint-tsgolint": "0.20.0",
146
149
  "sonda": "0.11.1",
147
150
  "tsdown": "0.21.8",
148
151
  "typescript": "5.9.3",
149
- "typescript-eslint": "8.58.1",
152
+ "typescript-eslint": "8.58.2",
150
153
  "vitest": "4.1.4",
151
- "zinfer": "0.1.7"
154
+ "zinfer": "0.1.8"
152
155
  },
153
156
  "scripts": {
154
157
  "test": "vitest",
@@ -1,4 +0,0 @@
1
-
2
- import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-DhQrXEld.mjs";
3
-
4
- export { defineApplication };