@tailor-platform/sdk 1.67.1 → 1.69.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 (95) hide show
  1. package/CHANGELOG.md +98 -1
  2. package/dist/application-Br48NXBD.mjs +4 -0
  3. package/dist/application-Cr-limKC.mjs +6192 -0
  4. package/dist/application-Cr-limKC.mjs.map +1 -0
  5. package/dist/cli/index.mjs +147 -34
  6. package/dist/cli/index.mjs.map +1 -1
  7. package/dist/cli/lib.d.mts +297 -157
  8. package/dist/cli/lib.mjs +4 -4
  9. package/dist/cli/lib.mjs.map +1 -1
  10. package/dist/cli/skills.mjs +1 -1
  11. package/dist/completion/zsh-worker.zsh +127 -48
  12. package/dist/configure/index.d.mts +2 -2
  13. package/dist/configure/index.mjs +4 -0
  14. package/dist/configure/index.mjs.map +1 -1
  15. package/dist/{crashreport-u9y2npiy.mjs → crashreport-BqyvFk-_.mjs} +2 -2
  16. package/dist/{crashreport-u9y2npiy.mjs.map → crashreport-BqyvFk-_.mjs.map} +1 -1
  17. package/dist/{crashreport-6jpCceOF.mjs → crashreport-BwF8cHF0.mjs} +1 -1
  18. package/dist/enum-constants-C7DaWeQo.mjs.map +1 -1
  19. package/dist/field-C4zdJLW5.mjs.map +1 -1
  20. package/dist/file-utils-BHPxPXmn.mjs.map +1 -1
  21. package/dist/{idp-BlBPtXJ-.d.mts → idp-BmYwCXnJ.d.mts} +30 -3
  22. package/dist/{idp-BZPqpcYY.mjs → idp-ynUfzwpz.mjs} +9 -1
  23. package/dist/idp-ynUfzwpz.mjs.map +1 -0
  24. package/dist/{index-DvEUb3pX.d.mts → index-B7VbJm0_.d.mts} +25 -16
  25. package/dist/{index-DRhMpdnA.d.mts → index-dKNk8hjo.d.mts} +2 -2
  26. package/dist/job-BpsFXPbi.mjs.map +1 -1
  27. package/dist/{kysely-type-D1e0Vwkd.mjs → kysely-type-CSoZxVKN.mjs} +2 -2
  28. package/dist/{kysely-type-D1e0Vwkd.mjs.map → kysely-type-CSoZxVKN.mjs.map} +1 -1
  29. package/dist/{logger-DpJyJvNz.mjs → logger-DKF-JsAK.mjs} +3 -3
  30. package/dist/{logger-DpJyJvNz.mjs.map → logger-DKF-JsAK.mjs.map} +1 -1
  31. package/dist/{mock-DMgIygjE.mjs → mock-wf5qeZLi.mjs} +19 -9
  32. package/dist/mock-wf5qeZLi.mjs.map +1 -0
  33. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  34. package/dist/plugin/index.mjs.map +1 -1
  35. package/dist/registry-D0uB0OrK.mjs.map +1 -1
  36. package/dist/{repl-editor-CJG3sz7A.mjs → repl-editor-DD5YP5mt.mjs} +4 -4
  37. package/dist/{repl-editor-CJG3sz7A.mjs.map → repl-editor-DD5YP5mt.mjs.map} +1 -1
  38. package/dist/runtime/globals.d.mts +3 -2
  39. package/dist/runtime/idp.d.mts +2 -2
  40. package/dist/runtime/idp.mjs +1 -1
  41. package/dist/runtime/index.d.mts +2 -2
  42. package/dist/runtime/index.mjs +1 -1
  43. package/dist/{runtime-BU6KtCvk.mjs → runtime-jowoN6qC.mjs} +803 -226
  44. package/dist/runtime-jowoN6qC.mjs.map +1 -0
  45. package/dist/schema-1msIhXwA.mjs.map +1 -1
  46. package/dist/seed-YAbtMy65.mjs.map +1 -1
  47. package/dist/{service-wI3Hvrgx.mjs → service-B2Jd9CxS.mjs} +2 -2
  48. package/dist/service-B2Jd9CxS.mjs.map +1 -0
  49. package/dist/service-CRaa4Joe.mjs +4 -0
  50. package/dist/{service-DMohAx8a.mjs → service-DDWgZL_L2.mjs} +2 -2
  51. package/dist/service-DDWgZL_L2.mjs.map +1 -0
  52. package/dist/service_pb-DGSmn-aF.mjs +4 -0
  53. package/dist/{application-WpWwTyk9.mjs → service_pb-DSNjrcbW.mjs} +22 -6176
  54. package/dist/service_pb-DSNjrcbW.mjs.map +1 -0
  55. package/dist/telemetry-BQbbVo2t.mjs.map +1 -1
  56. package/dist/types-CmzfQP_m.mjs.map +1 -1
  57. package/dist/utils/test/index.d.mts +2 -2
  58. package/dist/utils/test/index.mjs.map +1 -1
  59. package/dist/vitest/environment.mjs +1 -1
  60. package/dist/vitest/environment.mjs.map +1 -1
  61. package/dist/vitest/index.mjs +4 -4
  62. package/dist/vitest/index.mjs.map +1 -1
  63. package/dist/vitest/setup.mjs +1 -1
  64. package/dist/{workflow.generated-1S50BhEb.d.mts → workflow.generated-Br9bmLdX.d.mts} +98 -3
  65. package/docs/cli/application.md +5 -202
  66. package/docs/cli/auth.md +12 -256
  67. package/docs/cli/completion.md +0 -24
  68. package/docs/cli/crashreport.md +0 -58
  69. package/docs/cli/executor.md +53 -164
  70. package/docs/cli/function.md +2 -118
  71. package/docs/cli/organization.md +1 -211
  72. package/docs/cli/query.md +0 -20
  73. package/docs/cli/secret.md +70 -250
  74. package/docs/cli/setup.md +21 -59
  75. package/docs/cli/skills.md +0 -39
  76. package/docs/cli/staticwebsite.md +24 -172
  77. package/docs/cli/tailordb.md +5 -255
  78. package/docs/cli/upgrade.md +0 -20
  79. package/docs/cli/user.md +32 -247
  80. package/docs/cli/workflow.md +139 -161
  81. package/docs/cli/workspace.md +158 -537
  82. package/docs/cli-reference.md +59 -40
  83. package/docs/configuration.md +7 -1
  84. package/docs/github-actions.md +27 -14
  85. package/docs/services/idp.md +55 -2
  86. package/docs/services/staticwebsite.md +7 -1
  87. package/package.json +23 -18
  88. package/dist/application-Djeezk3m.mjs +0 -4
  89. package/dist/application-WpWwTyk9.mjs.map +0 -1
  90. package/dist/idp-BZPqpcYY.mjs.map +0 -1
  91. package/dist/mock-DMgIygjE.mjs.map +0 -1
  92. package/dist/runtime-BU6KtCvk.mjs.map +0 -1
  93. package/dist/service-BHQIerYh.mjs +0 -4
  94. package/dist/service-DMohAx8a.mjs.map +0 -1
  95. package/dist/service-wI3Hvrgx.mjs.map +0 -1
@@ -2,29 +2,17 @@
2
2
 
3
3
  Commands for managing workspaces and profiles.
4
4
 
5
- <!-- politty:command:workspace:heading:start -->
6
-
7
5
  ## workspace
8
6
 
9
- <!-- politty:command:workspace:heading:end -->
10
-
11
- <!-- politty:command:workspace:description:start -->
12
-
13
7
  Manage Tailor Platform workspaces.
14
8
 
15
- <!-- politty:command:workspace:description:end -->
16
-
17
- <!-- politty:command:workspace:usage:start -->
18
-
19
9
  **Usage**
20
10
 
21
11
  ```
22
12
  tailor-sdk workspace [command]
23
13
  ```
24
14
 
25
- <!-- politty:command:workspace:usage:end -->
26
-
27
- <!-- politty:command:workspace:subcommands:start -->
15
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
28
16
 
29
17
  **Commands**
30
18
 
@@ -38,446 +26,219 @@ tailor-sdk workspace [command]
38
26
  | [`workspace restore`](#workspace-restore) | Restore a deleted workspace |
39
27
  | [`workspace user`](#workspace-user) | Manage workspace users |
40
28
 
41
- <!-- politty:command:workspace:subcommands:end -->
42
-
43
- <!-- politty:command:workspace:global-options-link:start -->
44
-
45
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
46
-
47
- <!-- politty:command:workspace:global-options-link:end -->
48
- <!-- politty:command:workspace create:heading:start -->
49
-
50
- ### workspace create
51
-
52
- <!-- politty:command:workspace create:heading:end -->
53
-
54
- <!-- politty:command:workspace create:description:start -->
55
-
56
- Create a new Tailor Platform workspace.
57
-
58
- <!-- politty:command:workspace create:description:end -->
29
+ ### workspace app
59
30
 
60
- <!-- politty:command:workspace create:usage:start -->
31
+ Manage workspace applications
61
32
 
62
33
  **Usage**
63
34
 
64
35
  ```
65
- tailor-sdk workspace create [options]
36
+ tailor-sdk workspace app [command]
66
37
  ```
67
38
 
68
- <!-- politty:command:workspace create:usage:end -->
69
-
70
- <!-- politty:command:workspace create:options:start -->
71
-
72
- **Options**
73
-
74
- | Option | Alias | Description | Required | Default | Env |
75
- | ------------------------------------- | ----- | ----------------------------------------------------------------------------------------------------------- | -------- | --------- | --------------------------------- |
76
- | `--name <NAME>` | `-n` | Workspace name | Yes | - | - |
77
- | `--region <REGION>` | `-r` | Workspace region (us-west, asia-northeast) | Yes | - | - |
78
- | `--delete-protection` | `-d` | Enable delete protection | No | `false` | - |
79
- | `--organization-id <ORGANIZATION_ID>` | `-o` | Organization ID to workspace associate with | No | - | `TAILOR_PLATFORM_ORGANIZATION_ID` |
80
- | `--folder-id <FOLDER_ID>` | `-f` | Folder ID to workspace associate with | No | - | `TAILOR_PLATFORM_FOLDER_ID` |
81
- | `--profile-name <PROFILE_NAME>` | `-p` | Profile name to create | No | - | - |
82
- | `--profile-user <PROFILE_USER>` | - | User email for the profile (defaults to current user) | No | - | - |
83
- | `--permission <PERMISSION>` | - | Profile permission (requires --profile-name). 'read' blocks all write commands while the profile is active. | No | `"write"` | - |
84
-
85
- <!-- politty:command:workspace create:options:end -->
86
-
87
- <!-- politty:command:workspace create:global-options-link:start -->
88
-
89
39
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
90
40
 
91
- <!-- politty:command:workspace create:global-options-link:end -->
92
- <!-- politty:command:workspace list:heading:start -->
93
-
94
- ### workspace list
95
-
96
- <!-- politty:command:workspace list:heading:end -->
97
-
98
- <!-- politty:command:workspace list:description:start -->
41
+ **Commands**
99
42
 
100
- List all Tailor Platform workspaces.
43
+ | Command | Description |
44
+ | ----------------------------------------------- | -------------------------------- |
45
+ | [`workspace app health`](#workspace-app-health) | Check application schema health |
46
+ | [`workspace app list`](#workspace-app-list) | List applications in a workspace |
101
47
 
102
- <!-- politty:command:workspace list:description:end -->
48
+ #### workspace app health
103
49
 
104
- <!-- politty:command:workspace list:usage:start -->
50
+ Check application schema health
105
51
 
106
52
  **Usage**
107
53
 
108
54
  ```
109
- tailor-sdk workspace list [options]
55
+ tailor-sdk workspace app health [options]
110
56
  ```
111
57
 
112
- <!-- politty:command:workspace list:usage:end -->
113
-
114
- <!-- politty:command:workspace list:options:start -->
115
-
116
58
  **Options**
117
59
 
118
- | Option | Alias | Description | Required | Default |
119
- | ----------------- | ----- | -------------------------------------------------------- | -------- | -------- |
120
- | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` |
121
- | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - |
122
-
123
- <!-- politty:command:workspace list:options:end -->
124
-
125
- <!-- politty:command:workspace list:global-options-link:start -->
60
+ | Option | Alias | Description | Required | Default | Env |
61
+ | ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
62
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
63
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
64
+ | `--name <NAME>` | `-n` | Application name | Yes | - | - |
126
65
 
127
66
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
128
67
 
129
- <!-- politty:command:workspace list:global-options-link:end -->
130
- <!-- politty:command:workspace delete:heading:start -->
131
-
132
- ### workspace delete
133
-
134
- <!-- politty:command:workspace delete:heading:end -->
135
-
136
- <!-- politty:command:workspace delete:description:start -->
137
-
138
- Delete a Tailor Platform workspace.
139
-
140
- <!-- politty:command:workspace delete:description:end -->
68
+ #### workspace app list
141
69
 
142
- <!-- politty:command:workspace delete:usage:start -->
70
+ List applications in a workspace
143
71
 
144
72
  **Usage**
145
73
 
146
74
  ```
147
- tailor-sdk workspace delete [options]
75
+ tailor-sdk workspace app list [options]
148
76
  ```
149
77
 
150
- <!-- politty:command:workspace delete:usage:end -->
151
-
152
- <!-- politty:command:workspace delete:options:start -->
153
-
154
78
  **Options**
155
79
 
156
- | Option | Alias | Description | Required | Default |
157
- | ------------------------------- | ----- | ------------------------- | -------- | ------- |
158
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | Yes | - |
159
- | `--yes` | `-y` | Skip confirmation prompts | No | `false` |
160
-
161
- <!-- politty:command:workspace delete:options:end -->
162
-
163
- <!-- politty:command:workspace delete:global-options-link:start -->
80
+ | Option | Alias | Description | Required | Default | Env |
81
+ | ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------- | ------------------------------ |
82
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
83
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
84
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
85
+ | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
164
86
 
165
87
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
166
88
 
167
- <!-- politty:command:workspace delete:global-options-link:end -->
168
- <!-- politty:command:profile:heading:start -->
169
-
170
- ## profile
171
-
172
- <!-- politty:command:profile:heading:end -->
173
-
174
- <!-- politty:command:profile:description:start -->
175
-
176
- Manage workspace profiles (user + workspace combinations).
177
-
178
- <!-- politty:command:profile:description:end -->
89
+ ### workspace create
179
90
 
180
- <!-- politty:command:profile:usage:start -->
91
+ Create a new Tailor Platform workspace.
181
92
 
182
93
  **Usage**
183
94
 
184
95
  ```
185
- tailor-sdk profile [command]
96
+ tailor-sdk workspace create [options]
186
97
  ```
187
98
 
188
- <!-- politty:command:profile:usage:end -->
189
-
190
- <!-- politty:command:profile:subcommands:start -->
191
-
192
- **Commands**
193
-
194
- | Command | Description |
195
- | ----------------------------------- | -------------------------- |
196
- | [`profile create`](#profile-create) | Create a new profile. |
197
- | [`profile delete`](#profile-delete) | Delete a profile. |
198
- | [`profile list`](#profile-list) | List all profiles. |
199
- | [`profile update`](#profile-update) | Update profile properties. |
200
-
201
- <!-- politty:command:profile:subcommands:end -->
99
+ **Options**
202
100
 
203
- <!-- politty:command:profile:global-options-link:start -->
101
+ | Option | Alias | Description | Required | Default | Env |
102
+ | ------------------------------------- | ----- | ----------------------------------------------------------------------------------------------------------- | -------- | --------- | --------------------------------- |
103
+ | `--name <NAME>` | `-n` | Workspace name | Yes | - | - |
104
+ | `--region <REGION>` | `-r` | Workspace region (us-west, asia-northeast) | Yes | - | - |
105
+ | `--delete-protection` | `-d` | Enable delete protection | No | `false` | - |
106
+ | `--organization-id <ORGANIZATION_ID>` | `-o` | Organization ID to workspace associate with | No | - | `TAILOR_PLATFORM_ORGANIZATION_ID` |
107
+ | `--folder-id <FOLDER_ID>` | `-f` | Folder ID to workspace associate with | No | - | `TAILOR_PLATFORM_FOLDER_ID` |
108
+ | `--profile-name <PROFILE_NAME>` | `-p` | Profile name to create | No | - | - |
109
+ | `--profile-user <PROFILE_USER>` | - | User email for the profile (defaults to current user) | No | - | - |
110
+ | `--permission <PERMISSION>` | - | Profile permission (requires --profile-name). 'read' blocks all write commands while the profile is active. | No | `"write"` | - |
204
111
 
205
112
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
206
113
 
207
- <!-- politty:command:profile:global-options-link:end -->
208
- <!-- politty:command:profile create:heading:start -->
209
-
210
- ### profile create
211
-
212
- <!-- politty:command:profile create:heading:end -->
213
-
214
- <!-- politty:command:profile create:description:start -->
215
-
216
- Create a new profile.
217
-
218
- <!-- politty:command:profile create:description:end -->
114
+ ### workspace delete
219
115
 
220
- <!-- politty:command:profile create:usage:start -->
116
+ Delete a Tailor Platform workspace.
221
117
 
222
118
  **Usage**
223
119
 
224
120
  ```
225
- tailor-sdk profile create [options] <name>
121
+ tailor-sdk workspace delete [options]
226
122
  ```
227
123
 
228
- <!-- politty:command:profile create:usage:end -->
229
-
230
- <!-- politty:command:profile create:arguments:start -->
231
-
232
- **Arguments**
233
-
234
- | Argument | Description | Required |
235
- | -------- | ------------ | -------- |
236
- | `name` | Profile name | Yes |
237
-
238
- <!-- politty:command:profile create:arguments:end -->
239
-
240
- <!-- politty:command:profile create:options:start -->
241
-
242
124
  **Options**
243
125
 
244
- | Option | Alias | Description | Required | Default |
245
- | ------------------------------------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------- | -------- | --------- |
246
- | `--user <USER>` | `-u` | User email | Yes | - |
247
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | Yes | - |
248
- | `--permission <PERMISSION>` | - | Profile permission. 'read' blocks all write commands while the profile is active. | No | `"write"` |
249
- | `--machine-user <MACHINE_USER>` | `-m` | Default machine user name for application-data commands (query, workflow start, function test-run, machineuser token). | No | - |
250
- | `--machine-user-override <MACHINE_USER_OVERRIDE>` | - | Whether the command line or TAILOR_PLATFORM_MACHINE_USER_NAME may override the profile's machine user. 'deny' requires --machine-user. | No | - |
251
-
252
- <!-- politty:command:profile create:options:end -->
253
-
254
- <!-- politty:command:profile create:global-options-link:start -->
126
+ | Option | Alias | Description | Required | Default |
127
+ | ------------------------------- | ----- | ------------------------- | -------- | ------- |
128
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | Yes | - |
129
+ | `--yes` | `-y` | Skip confirmation prompts | No | `false` |
255
130
 
256
131
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
257
132
 
258
- <!-- politty:command:profile create:global-options-link:end -->
259
- <!-- politty:command:profile list:heading:start -->
260
-
261
- ### profile list
262
-
263
- <!-- politty:command:profile list:heading:end -->
264
-
265
- <!-- politty:command:profile list:description:start -->
266
-
267
- List all profiles.
268
-
269
- <!-- politty:command:profile list:description:end -->
133
+ ### workspace get
270
134
 
271
- <!-- politty:command:profile list:usage:start -->
135
+ Show detailed information about a workspace
272
136
 
273
137
  **Usage**
274
138
 
275
139
  ```
276
- tailor-sdk profile list
140
+ tailor-sdk workspace get [options]
277
141
  ```
278
142
 
279
- <!-- politty:command:profile list:usage:end -->
280
-
281
- <!-- politty:command:profile list:options:start -->
282
- <!-- politty:command:profile list:options:end -->
143
+ **Options**
283
144
 
284
- <!-- politty:command:profile list:global-options-link:start -->
145
+ | Option | Alias | Description | Required | Default | Env |
146
+ | ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
147
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
148
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
285
149
 
286
150
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
287
151
 
288
- <!-- politty:command:profile list:global-options-link:end -->
289
- <!-- politty:command:profile update:heading:start -->
290
-
291
- ### profile update
292
-
293
- <!-- politty:command:profile update:heading:end -->
294
-
295
- <!-- politty:command:profile update:description:start -->
296
-
297
- Update profile properties.
298
-
299
- <!-- politty:command:profile update:description:end -->
152
+ ### workspace list
300
153
 
301
- <!-- politty:command:profile update:usage:start -->
154
+ List all Tailor Platform workspaces.
302
155
 
303
156
  **Usage**
304
157
 
305
158
  ```
306
- tailor-sdk profile update [options] <name>
159
+ tailor-sdk workspace list [options]
307
160
  ```
308
161
 
309
- <!-- politty:command:profile update:usage:end -->
310
-
311
- <!-- politty:command:profile update:arguments:start -->
312
-
313
- **Arguments**
314
-
315
- | Argument | Description | Required |
316
- | -------- | ------------ | -------- |
317
- | `name` | Profile name | Yes |
318
-
319
- <!-- politty:command:profile update:arguments:end -->
320
-
321
- <!-- politty:command:profile update:options:start -->
322
-
323
162
  **Options**
324
163
 
325
- | Option | Alias | Description | Required | Default |
326
- | ------------------------------------------------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- |
327
- | `--user <USER>` | `-u` | New user email | No | - |
328
- | `--workspace-id <WORKSPACE_ID>` | `-w` | New workspace ID | No | - |
329
- | `--permission <PERMISSION>` | - | Profile permission. 'read' blocks all write commands; 'write' lifts the restriction. | No | - |
330
- | `--machine-user <MACHINE_USER>` | `-m` | Default machine user name for application-data commands (query, workflow start, function test-run, machineuser token). Pass an empty string to clear. | No | - |
331
- | `--machine-user-override <MACHINE_USER_OVERRIDE>` | - | Whether the command line or TAILOR_PLATFORM_MACHINE_USER_NAME may override the profile's machine user. 'deny' requires --machine-user; 'allow' lifts the restriction. | No | - |
332
-
333
- <!-- politty:command:profile update:options:end -->
334
-
335
- <!-- politty:command:profile update:global-options-link:start -->
164
+ | Option | Alias | Description | Required | Default |
165
+ | ----------------- | ----- | -------------------------------------------------------- | -------- | -------- |
166
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` |
167
+ | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - |
336
168
 
337
169
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
338
170
 
339
- <!-- politty:command:profile update:global-options-link:end -->
340
- <!-- politty:command:profile delete:heading:start -->
341
-
342
- ### profile delete
343
-
344
- <!-- politty:command:profile delete:heading:end -->
345
-
346
- <!-- politty:command:profile delete:description:start -->
347
-
348
- Delete a profile.
349
-
350
- <!-- politty:command:profile delete:description:end -->
171
+ ### workspace restore
351
172
 
352
- <!-- politty:command:profile delete:usage:start -->
173
+ Restore a deleted workspace
353
174
 
354
175
  **Usage**
355
176
 
356
177
  ```
357
- tailor-sdk profile delete <name>
178
+ tailor-sdk workspace restore [options]
358
179
  ```
359
180
 
360
- <!-- politty:command:profile delete:usage:end -->
361
-
362
- <!-- politty:command:profile delete:arguments:start -->
363
-
364
- **Arguments**
365
-
366
- | Argument | Description | Required |
367
- | -------- | ------------ | -------- |
368
- | `name` | Profile name | Yes |
369
-
370
- <!-- politty:command:profile delete:arguments:end -->
181
+ **Options**
371
182
 
372
- <!-- politty:command:profile delete:global-options-link:start -->
183
+ | Option | Alias | Description | Required | Default |
184
+ | ------------------------------- | ----- | ------------------------- | -------- | ------- |
185
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | Yes | - |
186
+ | `--yes` | `-y` | Skip confirmation prompts | No | `false` |
373
187
 
374
188
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
375
189
 
376
- <!-- politty:command:profile delete:global-options-link:end -->
377
-
378
- <!-- politty:command:workspace app:heading:start -->
379
-
380
- ### workspace app
381
-
382
- <!-- politty:command:workspace app:heading:end -->
383
-
384
- <!-- politty:command:workspace app:description:start -->
385
-
386
- Manage workspace applications
387
-
388
- <!-- politty:command:workspace app:description:end -->
190
+ ### workspace user
389
191
 
390
- <!-- politty:command:workspace app:usage:start -->
192
+ Manage workspace users
391
193
 
392
194
  **Usage**
393
195
 
394
196
  ```
395
- tailor-sdk workspace app [command]
197
+ tailor-sdk workspace user [command]
396
198
  ```
397
199
 
398
- <!-- politty:command:workspace app:usage:end -->
399
-
400
- <!-- politty:command:workspace app:subcommands:start -->
401
-
402
- **Commands**
403
-
404
- | Command | Description |
405
- | ----------------------------------------------- | -------------------------------- |
406
- | [`workspace app health`](#workspace-app-health) | Check application schema health |
407
- | [`workspace app list`](#workspace-app-list) | List applications in a workspace |
408
-
409
- <!-- politty:command:workspace app:subcommands:end -->
410
-
411
- <!-- politty:command:workspace app:global-options-link:start -->
412
-
413
200
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
414
201
 
415
- <!-- politty:command:workspace app:global-options-link:end -->
416
-
417
- <!-- politty:command:workspace app health:heading:start -->
418
-
419
- #### workspace app health
420
-
421
- <!-- politty:command:workspace app health:heading:end -->
422
-
423
- <!-- politty:command:workspace app health:description:start -->
202
+ **Commands**
424
203
 
425
- Check application schema health
204
+ | Command | Description |
205
+ | ------------------------------------------------- | ----------------------------------- |
206
+ | [`workspace user invite`](#workspace-user-invite) | Invite a user to a workspace |
207
+ | [`workspace user list`](#workspace-user-list) | List users in a workspace |
208
+ | [`workspace user remove`](#workspace-user-remove) | Remove a user from a workspace |
209
+ | [`workspace user update`](#workspace-user-update) | Update a user's role in a workspace |
426
210
 
427
- <!-- politty:command:workspace app health:description:end -->
211
+ #### workspace user invite
428
212
 
429
- <!-- politty:command:workspace app health:usage:start -->
213
+ Invite a user to a workspace
430
214
 
431
215
  **Usage**
432
216
 
433
217
  ```
434
- tailor-sdk workspace app health [options]
218
+ tailor-sdk workspace user invite [options]
435
219
  ```
436
220
 
437
- <!-- politty:command:workspace app health:usage:end -->
438
-
439
- <!-- politty:command:workspace app health:options:start -->
440
-
441
221
  **Options**
442
222
 
443
- | Option | Alias | Description | Required | Default | Env |
444
- | ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
445
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
446
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
447
- | `--name <NAME>` | `-n` | Application name | Yes | - | - |
448
-
449
- <!-- politty:command:workspace app health:options:end -->
450
-
451
- <!-- politty:command:workspace app health:global-options-link:start -->
223
+ | Option | Alias | Description | Required | Default | Env |
224
+ | ------------------------------- | ----- | -------------------------------------- | -------- | ------- | ------------------------------ |
225
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
226
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
227
+ | `--email <EMAIL>` | - | Email address of the user to invite | Yes | - | - |
228
+ | `--role <ROLE>` | `-r` | Role to assign (admin, editor, viewer) | Yes | - | - |
452
229
 
453
230
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
454
231
 
455
- <!-- politty:command:workspace app health:global-options-link:end -->
456
-
457
- <!-- politty:command:workspace app list:heading:start -->
458
-
459
- #### workspace app list
460
-
461
- <!-- politty:command:workspace app list:heading:end -->
462
-
463
- <!-- politty:command:workspace app list:description:start -->
464
-
465
- List applications in a workspace
466
-
467
- <!-- politty:command:workspace app list:description:end -->
232
+ #### workspace user list
468
233
 
469
- <!-- politty:command:workspace app list:usage:start -->
234
+ List users in a workspace
470
235
 
471
236
  **Usage**
472
237
 
473
238
  ```
474
- tailor-sdk workspace app list [options]
239
+ tailor-sdk workspace user list [options]
475
240
  ```
476
241
 
477
- <!-- politty:command:workspace app list:usage:end -->
478
-
479
- <!-- politty:command:workspace app list:options:start -->
480
-
481
242
  **Options**
482
243
 
483
244
  | Option | Alias | Description | Required | Default | Env |
@@ -487,293 +248,153 @@ tailor-sdk workspace app list [options]
487
248
  | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
488
249
  | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
489
250
 
490
- <!-- politty:command:workspace app list:options:end -->
491
-
492
- <!-- politty:command:workspace app list:global-options-link:start -->
493
-
494
251
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
495
252
 
496
- <!-- politty:command:workspace app list:global-options-link:end -->
497
-
498
- <!-- politty:command:workspace get:heading:start -->
499
-
500
- ### workspace get
501
-
502
- <!-- politty:command:workspace get:heading:end -->
503
-
504
- <!-- politty:command:workspace get:description:start -->
505
-
506
- Show detailed information about a workspace
507
-
508
- <!-- politty:command:workspace get:description:end -->
253
+ #### workspace user remove
509
254
 
510
- <!-- politty:command:workspace get:usage:start -->
255
+ Remove a user from a workspace
511
256
 
512
257
  **Usage**
513
258
 
514
259
  ```
515
- tailor-sdk workspace get [options]
260
+ tailor-sdk workspace user remove [options]
516
261
  ```
517
262
 
518
- <!-- politty:command:workspace get:usage:end -->
519
-
520
- <!-- politty:command:workspace get:options:start -->
521
-
522
263
  **Options**
523
264
 
524
- | Option | Alias | Description | Required | Default | Env |
525
- | ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
526
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
527
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
528
-
529
- <!-- politty:command:workspace get:options:end -->
530
-
531
- <!-- politty:command:workspace get:global-options-link:start -->
265
+ | Option | Alias | Description | Required | Default | Env |
266
+ | ------------------------------- | ----- | ----------------------------------- | -------- | ------- | ------------------------------ |
267
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
268
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
269
+ | `--email <EMAIL>` | - | Email address of the user to remove | Yes | - | - |
270
+ | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
532
271
 
533
272
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
534
273
 
535
- <!-- politty:command:workspace get:global-options-link:end -->
536
-
537
- <!-- politty:command:workspace restore:heading:start -->
538
-
539
- ### workspace restore
540
-
541
- <!-- politty:command:workspace restore:heading:end -->
542
-
543
- <!-- politty:command:workspace restore:description:start -->
544
-
545
- Restore a deleted workspace
546
-
547
- <!-- politty:command:workspace restore:description:end -->
274
+ #### workspace user update
548
275
 
549
- <!-- politty:command:workspace restore:usage:start -->
276
+ Update a user's role in a workspace
550
277
 
551
278
  **Usage**
552
279
 
553
280
  ```
554
- tailor-sdk workspace restore [options]
281
+ tailor-sdk workspace user update [options]
555
282
  ```
556
283
 
557
- <!-- politty:command:workspace restore:usage:end -->
558
-
559
- <!-- politty:command:workspace restore:options:start -->
560
-
561
284
  **Options**
562
285
 
563
- | Option | Alias | Description | Required | Default |
564
- | ------------------------------- | ----- | ------------------------- | -------- | ------- |
565
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | Yes | - |
566
- | `--yes` | `-y` | Skip confirmation prompts | No | `false` |
567
-
568
- <!-- politty:command:workspace restore:options:end -->
569
-
570
- <!-- politty:command:workspace restore:global-options-link:start -->
286
+ | Option | Alias | Description | Required | Default | Env |
287
+ | ------------------------------- | ----- | ------------------------------------------ | -------- | ------- | ------------------------------ |
288
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
289
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
290
+ | `--email <EMAIL>` | - | Email address of the user to update | Yes | - | - |
291
+ | `--role <ROLE>` | `-r` | New role to assign (admin, editor, viewer) | Yes | - | - |
571
292
 
572
293
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
573
294
 
574
- <!-- politty:command:workspace restore:global-options-link:end -->
575
-
576
- <!-- politty:command:workspace user:heading:start -->
577
-
578
- ### workspace user
579
-
580
- <!-- politty:command:workspace user:heading:end -->
581
-
582
- <!-- politty:command:workspace user:description:start -->
583
-
584
- Manage workspace users
585
-
586
- <!-- politty:command:workspace user:description:end -->
295
+ ## profile
587
296
 
588
- <!-- politty:command:workspace user:usage:start -->
297
+ Manage workspace profiles (user + workspace combinations).
589
298
 
590
299
  **Usage**
591
300
 
592
301
  ```
593
- tailor-sdk workspace user [command]
302
+ tailor-sdk profile [command]
594
303
  ```
595
304
 
596
- <!-- politty:command:workspace user:usage:end -->
597
-
598
- <!-- politty:command:workspace user:subcommands:start -->
599
-
600
- **Commands**
601
-
602
- | Command | Description |
603
- | ------------------------------------------------- | ----------------------------------- |
604
- | [`workspace user invite`](#workspace-user-invite) | Invite a user to a workspace |
605
- | [`workspace user list`](#workspace-user-list) | List users in a workspace |
606
- | [`workspace user remove`](#workspace-user-remove) | Remove a user from a workspace |
607
- | [`workspace user update`](#workspace-user-update) | Update a user's role in a workspace |
608
-
609
- <!-- politty:command:workspace user:subcommands:end -->
610
-
611
- <!-- politty:command:workspace user:global-options-link:start -->
612
-
613
305
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
614
306
 
615
- <!-- politty:command:workspace user:global-options-link:end -->
616
-
617
- <!-- politty:command:workspace user invite:heading:start -->
618
-
619
- #### workspace user invite
620
-
621
- <!-- politty:command:workspace user invite:heading:end -->
622
-
623
- <!-- politty:command:workspace user invite:description:start -->
307
+ **Commands**
624
308
 
625
- Invite a user to a workspace
309
+ | Command | Description |
310
+ | ----------------------------------- | -------------------------- |
311
+ | [`profile create`](#profile-create) | Create a new profile. |
312
+ | [`profile delete`](#profile-delete) | Delete a profile. |
313
+ | [`profile list`](#profile-list) | List all profiles. |
314
+ | [`profile update`](#profile-update) | Update profile properties. |
626
315
 
627
- <!-- politty:command:workspace user invite:description:end -->
316
+ ### profile create
628
317
 
629
- <!-- politty:command:workspace user invite:usage:start -->
318
+ Create a new profile.
630
319
 
631
320
  **Usage**
632
321
 
633
322
  ```
634
- tailor-sdk workspace user invite [options]
323
+ tailor-sdk profile create [options] <name>
635
324
  ```
636
325
 
637
- <!-- politty:command:workspace user invite:usage:end -->
326
+ **Arguments**
638
327
 
639
- <!-- politty:command:workspace user invite:options:start -->
328
+ | Argument | Description | Required |
329
+ | -------- | ------------ | -------- |
330
+ | `name` | Profile name | Yes |
640
331
 
641
332
  **Options**
642
333
 
643
- | Option | Alias | Description | Required | Default | Env |
644
- | ------------------------------- | ----- | -------------------------------------- | -------- | ------- | ------------------------------ |
645
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
646
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
647
- | `--email <EMAIL>` | - | Email address of the user to invite | Yes | - | - |
648
- | `--role <ROLE>` | `-r` | Role to assign (admin, editor, viewer) | Yes | - | - |
649
-
650
- <!-- politty:command:workspace user invite:options:end -->
651
-
652
- <!-- politty:command:workspace user invite:global-options-link:start -->
334
+ | Option | Alias | Description | Required | Default |
335
+ | ------------------------------------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------- | -------- | --------- |
336
+ | `--user <USER>` | `-u` | User email | Yes | - |
337
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | Yes | - |
338
+ | `--permission <PERMISSION>` | - | Profile permission. 'read' blocks all write commands while the profile is active. | No | `"write"` |
339
+ | `--machine-user <MACHINE_USER>` | `-m` | Default machine user name for application-data commands (query, workflow start, function test-run, machineuser token). | No | - |
340
+ | `--machine-user-override <MACHINE_USER_OVERRIDE>` | - | Whether the command line or TAILOR_PLATFORM_MACHINE_USER_NAME may override the profile's machine user. 'deny' requires --machine-user. | No | - |
653
341
 
654
342
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
655
343
 
656
- <!-- politty:command:workspace user invite:global-options-link:end -->
657
-
658
- <!-- politty:command:workspace user list:heading:start -->
659
-
660
- #### workspace user list
661
-
662
- <!-- politty:command:workspace user list:heading:end -->
663
-
664
- <!-- politty:command:workspace user list:description:start -->
665
-
666
- List users in a workspace
667
-
668
- <!-- politty:command:workspace user list:description:end -->
344
+ ### profile delete
669
345
 
670
- <!-- politty:command:workspace user list:usage:start -->
346
+ Delete a profile.
671
347
 
672
348
  **Usage**
673
349
 
674
350
  ```
675
- tailor-sdk workspace user list [options]
351
+ tailor-sdk profile delete <name>
676
352
  ```
677
353
 
678
- <!-- politty:command:workspace user list:usage:end -->
679
-
680
- <!-- politty:command:workspace user list:options:start -->
681
-
682
- **Options**
683
-
684
- | Option | Alias | Description | Required | Default | Env |
685
- | ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------- | ------------------------------ |
686
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
687
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
688
- | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
689
- | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
690
-
691
- <!-- politty:command:workspace user list:options:end -->
354
+ **Arguments**
692
355
 
693
- <!-- politty:command:workspace user list:global-options-link:start -->
356
+ | Argument | Description | Required |
357
+ | -------- | ------------ | -------- |
358
+ | `name` | Profile name | Yes |
694
359
 
695
360
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
696
361
 
697
- <!-- politty:command:workspace user list:global-options-link:end -->
698
-
699
- <!-- politty:command:workspace user remove:heading:start -->
700
-
701
- #### workspace user remove
702
-
703
- <!-- politty:command:workspace user remove:heading:end -->
704
-
705
- <!-- politty:command:workspace user remove:description:start -->
706
-
707
- Remove a user from a workspace
708
-
709
- <!-- politty:command:workspace user remove:description:end -->
362
+ ### profile list
710
363
 
711
- <!-- politty:command:workspace user remove:usage:start -->
364
+ List all profiles.
712
365
 
713
366
  **Usage**
714
367
 
715
368
  ```
716
- tailor-sdk workspace user remove [options]
369
+ tailor-sdk profile list
717
370
  ```
718
371
 
719
- <!-- politty:command:workspace user remove:usage:end -->
720
-
721
- <!-- politty:command:workspace user remove:options:start -->
722
-
723
- **Options**
724
-
725
- | Option | Alias | Description | Required | Default | Env |
726
- | ------------------------------- | ----- | ----------------------------------- | -------- | ------- | ------------------------------ |
727
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
728
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
729
- | `--email <EMAIL>` | - | Email address of the user to remove | Yes | - | - |
730
- | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
731
-
732
- <!-- politty:command:workspace user remove:options:end -->
733
-
734
- <!-- politty:command:workspace user remove:global-options-link:start -->
735
-
736
372
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
737
373
 
738
- <!-- politty:command:workspace user remove:global-options-link:end -->
739
-
740
- <!-- politty:command:workspace user update:heading:start -->
741
-
742
- #### workspace user update
743
-
744
- <!-- politty:command:workspace user update:heading:end -->
745
-
746
- <!-- politty:command:workspace user update:description:start -->
747
-
748
- Update a user's role in a workspace
749
-
750
- <!-- politty:command:workspace user update:description:end -->
374
+ ### profile update
751
375
 
752
- <!-- politty:command:workspace user update:usage:start -->
376
+ Update profile properties.
753
377
 
754
378
  **Usage**
755
379
 
756
380
  ```
757
- tailor-sdk workspace user update [options]
381
+ tailor-sdk profile update [options] <name>
758
382
  ```
759
383
 
760
- <!-- politty:command:workspace user update:usage:end -->
384
+ **Arguments**
761
385
 
762
- <!-- politty:command:workspace user update:options:start -->
386
+ | Argument | Description | Required |
387
+ | -------- | ------------ | -------- |
388
+ | `name` | Profile name | Yes |
763
389
 
764
390
  **Options**
765
391
 
766
- | Option | Alias | Description | Required | Default | Env |
767
- | ------------------------------- | ----- | ------------------------------------------ | -------- | ------- | ------------------------------ |
768
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
769
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
770
- | `--email <EMAIL>` | - | Email address of the user to update | Yes | - | - |
771
- | `--role <ROLE>` | `-r` | New role to assign (admin, editor, viewer) | Yes | - | - |
772
-
773
- <!-- politty:command:workspace user update:options:end -->
774
-
775
- <!-- politty:command:workspace user update:global-options-link:start -->
392
+ | Option | Alias | Description | Required | Default |
393
+ | ------------------------------------------------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- |
394
+ | `--user <USER>` | `-u` | New user email | No | - |
395
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | New workspace ID | No | - |
396
+ | `--permission <PERMISSION>` | - | Profile permission. 'read' blocks all write commands; 'write' lifts the restriction. | No | - |
397
+ | `--machine-user <MACHINE_USER>` | `-m` | Default machine user name for application-data commands (query, workflow start, function test-run, machineuser token). Pass an empty string to clear. | No | - |
398
+ | `--machine-user-override <MACHINE_USER_OVERRIDE>` | - | Whether the command line or TAILOR_PLATFORM_MACHINE_USER_NAME may override the profile's machine user. 'deny' requires --machine-user; 'allow' lifts the restriction. | No | - |
776
399
 
777
400
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
778
-
779
- <!-- politty:command:workspace user update:global-options-link:end -->