@tailor-platform/sdk 1.68.0 → 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 (94) hide show
  1. package/CHANGELOG.md +75 -0
  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 +13 -12
  6. package/dist/cli/index.mjs.map +1 -1
  7. package/dist/cli/lib.d.mts +234 -153
  8. package/dist/cli/lib.mjs +3 -3
  9. package/dist/cli/lib.mjs.map +1 -1
  10. package/dist/cli/skills.mjs +1 -1
  11. package/dist/completion/zsh-worker.zsh +23 -23
  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-DxaBq6U8.mjs → runtime-jowoN6qC.mjs} +84 -34
  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 +2 -166
  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 +1 -41
  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 +30 -189
  81. package/docs/cli/workspace.md +158 -537
  82. package/docs/cli-reference.md +55 -37
  83. package/docs/configuration.md +7 -1
  84. package/docs/services/idp.md +55 -2
  85. package/docs/services/staticwebsite.md +7 -1
  86. package/package.json +23 -18
  87. package/dist/application-Djeezk3m.mjs +0 -4
  88. package/dist/application-WpWwTyk9.mjs.map +0 -1
  89. package/dist/idp-BZPqpcYY.mjs.map +0 -1
  90. package/dist/mock-DMgIygjE.mjs.map +0 -1
  91. package/dist/runtime-DxaBq6U8.mjs.map +0 -1
  92. package/dist/service-BHQIerYh.mjs +0 -4
  93. package/dist/service-DMohAx8a.mjs.map +0 -1
  94. package/dist/service-wI3Hvrgx.mjs.map +0 -1
package/docs/cli/user.md CHANGED
@@ -2,30 +2,16 @@
2
2
 
3
3
  Commands for authentication and user management.
4
4
 
5
- <!-- politty:command:login:heading:start -->
6
-
7
5
  ## login
8
6
 
9
- <!-- politty:command:login:heading:end -->
10
-
11
- <!-- politty:command:login:description:start -->
12
-
13
7
  Login to Tailor Platform.
14
8
 
15
- <!-- politty:command:login:description:end -->
16
-
17
- <!-- politty:command:login:usage:start -->
18
-
19
9
  **Usage**
20
10
 
21
11
  ```
22
12
  tailor-sdk login [options]
23
13
  ```
24
14
 
25
- <!-- politty:command:login:usage:end -->
26
-
27
- <!-- politty:command:login:options:start -->
28
-
29
15
  **Options**
30
16
 
31
17
  > One of the following option groups is required:
@@ -42,65 +28,31 @@ _no options_
42
28
  | `--client-id <CLIENT_ID>` | - | Client ID | Yes | - | `TAILOR_PLATFORM_MACHINE_USER_CLIENT_ID` |
43
29
  | `--client-secret <CLIENT_SECRET>` | - | Client secret | No | - | `TAILOR_PLATFORM_MACHINE_USER_CLIENT_SECRET` |
44
30
 
45
- <!-- politty:command:login:options:end -->
46
-
47
- <!-- politty:command:login:global-options-link:start -->
48
-
49
31
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
50
32
 
51
- <!-- politty:command:login:global-options-link:end -->
52
-
53
- <!-- politty:command:logout:heading:start -->
54
-
55
33
  ## logout
56
34
 
57
- <!-- politty:command:logout:heading:end -->
58
-
59
- <!-- politty:command:logout:description:start -->
60
-
61
35
  Logout from Tailor Platform.
62
36
 
63
- <!-- politty:command:logout:description:end -->
64
-
65
- <!-- politty:command:logout:usage:start -->
66
-
67
37
  **Usage**
68
38
 
69
39
  ```
70
40
  tailor-sdk logout
71
41
  ```
72
42
 
73
- <!-- politty:command:logout:usage:end -->
74
-
75
- <!-- politty:command:logout:global-options-link:start -->
76
-
77
43
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
78
44
 
79
- <!-- politty:command:logout:global-options-link:end -->
80
-
81
- <!-- politty:command:user:heading:start -->
82
-
83
45
  ## user
84
46
 
85
- <!-- politty:command:user:heading:end -->
86
-
87
- <!-- politty:command:user:description:start -->
88
-
89
47
  Manage Tailor Platform users.
90
48
 
91
- <!-- politty:command:user:description:end -->
92
-
93
- <!-- politty:command:user:usage:start -->
94
-
95
49
  **Usage**
96
50
 
97
51
  ```
98
52
  tailor-sdk user [command]
99
53
  ```
100
54
 
101
- <!-- politty:command:user:usage:end -->
102
-
103
- <!-- politty:command:user:subcommands:start -->
55
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
104
56
 
105
57
  **Commands**
106
58
 
@@ -111,133 +63,41 @@ tailor-sdk user [command]
111
63
  | [`user switch`](#user-switch) | Set current user. |
112
64
  | [`user pat`](#user-pat) | Manage personal access tokens. |
113
65
 
114
- <!-- politty:command:user:subcommands:end -->
115
-
116
- <!-- politty:command:user:global-options-link:start -->
117
-
118
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
119
-
120
- <!-- politty:command:user:global-options-link:end -->
121
- <!-- politty:command:user current:heading:start -->
122
-
123
66
  ### user current
124
67
 
125
- <!-- politty:command:user current:heading:end -->
126
-
127
- <!-- politty:command:user current:description:start -->
128
-
129
68
  Show current user.
130
69
 
131
- <!-- politty:command:user current:description:end -->
132
-
133
- <!-- politty:command:user current:usage:start -->
134
-
135
70
  **Usage**
136
71
 
137
72
  ```
138
73
  tailor-sdk user current
139
74
  ```
140
75
 
141
- <!-- politty:command:user current:usage:end -->
142
-
143
- <!-- politty:command:user current:global-options-link:start -->
144
-
145
76
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
146
77
 
147
- <!-- politty:command:user current:global-options-link:end -->
148
- <!-- politty:command:user list:heading:start -->
149
-
150
78
  ### user list
151
79
 
152
- <!-- politty:command:user list:heading:end -->
153
-
154
- <!-- politty:command:user list:description:start -->
155
-
156
80
  List all users.
157
81
 
158
- <!-- politty:command:user list:description:end -->
159
-
160
- <!-- politty:command:user list:usage:start -->
161
-
162
82
  **Usage**
163
83
 
164
84
  ```
165
85
  tailor-sdk user list
166
86
  ```
167
87
 
168
- <!-- politty:command:user list:usage:end -->
169
-
170
- <!-- politty:command:user list:options:start -->
171
- <!-- politty:command:user list:options:end -->
172
-
173
- <!-- politty:command:user list:global-options-link:start -->
174
-
175
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
176
-
177
- <!-- politty:command:user list:global-options-link:end -->
178
- <!-- politty:command:user switch:heading:start -->
179
-
180
- ### user switch
181
-
182
- <!-- politty:command:user switch:heading:end -->
183
-
184
- <!-- politty:command:user switch:description:start -->
185
-
186
- Set current user.
187
-
188
- <!-- politty:command:user switch:description:end -->
189
-
190
- <!-- politty:command:user switch:usage:start -->
191
-
192
- **Usage**
193
-
194
- ```
195
- tailor-sdk user switch <user>
196
- ```
197
-
198
- <!-- politty:command:user switch:usage:end -->
199
-
200
- <!-- politty:command:user switch:arguments:start -->
201
-
202
- **Arguments**
203
-
204
- | Argument | Description | Required |
205
- | -------- | ----------- | -------- |
206
- | `user` | User email | Yes |
207
-
208
- <!-- politty:command:user switch:arguments:end -->
209
-
210
- <!-- politty:command:user switch:global-options-link:start -->
211
-
212
88
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
213
89
 
214
- <!-- politty:command:user switch:global-options-link:end -->
215
- <!-- politty:command:user pat:heading:start -->
216
-
217
90
  ### user pat
218
91
 
219
- <!-- politty:command:user pat:heading:end -->
220
-
221
- <!-- politty:command:user pat:description:start -->
222
-
223
92
  Manage personal access tokens.
224
93
 
225
- <!-- politty:command:user pat:description:end -->
226
-
227
- <!-- politty:command:user pat:usage:start -->
228
-
229
94
  **Usage**
230
95
 
231
96
  ```
232
97
  tailor-sdk user pat [command]
233
98
  ```
234
99
 
235
- <!-- politty:command:user pat:usage:end -->
236
-
237
- <!-- politty:command:user pat:options:start -->
238
- <!-- politty:command:user pat:options:end -->
239
-
240
- <!-- politty:command:user pat:subcommands:start -->
100
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
241
101
 
242
102
  **Commands**
243
103
 
@@ -248,148 +108,70 @@ tailor-sdk user pat [command]
248
108
  | [`user pat delete`](#user-pat-delete) | Delete a personal access token. |
249
109
  | [`user pat update`](#user-pat-update) | Update a personal access token (delete and recreate). |
250
110
 
251
- <!-- politty:command:user pat:subcommands:end -->
252
-
253
- <!-- politty:command:user pat:global-options-link:start -->
254
-
255
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
256
-
257
- <!-- politty:command:user pat:global-options-link:end -->
258
- <!-- politty:command:user pat list:heading:start -->
259
-
260
- #### user pat list
261
-
262
- <!-- politty:command:user pat list:heading:end -->
263
-
264
- <!-- politty:command:user pat list:description:start -->
265
-
266
- List all personal access tokens.
267
-
268
- <!-- politty:command:user pat list:description:end -->
269
-
270
- <!-- politty:command:user pat list:usage:start -->
271
-
272
- **Usage**
273
-
274
- ```
275
- tailor-sdk user pat list [options]
276
- ```
277
-
278
- <!-- politty:command:user pat list:usage:end -->
279
-
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
-
289
- <!-- politty:command:user pat list:options:end -->
290
-
291
- <!-- politty:command:user pat list:global-options-link:start -->
292
-
293
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
294
-
295
- <!-- politty:command:user pat list:global-options-link:end -->
296
- <!-- politty:command:user pat create:heading:start -->
297
-
298
111
  #### user pat create
299
112
 
300
- <!-- politty:command:user pat create:heading:end -->
301
-
302
- <!-- politty:command:user pat create:description:start -->
303
-
304
113
  Create a new personal access token.
305
114
 
306
- <!-- politty:command:user pat create:description:end -->
307
-
308
- <!-- politty:command:user pat create:usage:start -->
309
-
310
115
  **Usage**
311
116
 
312
117
  ```
313
118
  tailor-sdk user pat create [options] <name>
314
119
  ```
315
120
 
316
- <!-- politty:command:user pat create:usage:end -->
317
-
318
- <!-- politty:command:user pat create:arguments:start -->
319
-
320
121
  **Arguments**
321
122
 
322
123
  | Argument | Description | Required |
323
124
  | -------- | ----------- | -------- |
324
125
  | `name` | Token name | Yes |
325
126
 
326
- <!-- politty:command:user pat create:arguments:end -->
327
-
328
- <!-- politty:command:user pat create:options:start -->
329
-
330
127
  **Options**
331
128
 
332
129
  | Option | Alias | Description | Required | Default |
333
130
  | --------- | ----- | ------------------------------------------- | -------- | ------- |
334
131
  | `--write` | `-W` | Grant write permission (default: read-only) | No | `false` |
335
132
 
336
- <!-- politty:command:user pat create:options:end -->
337
-
338
- <!-- politty:command:user pat create:global-options-link:start -->
339
-
340
133
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
341
134
 
342
- <!-- politty:command:user pat create:global-options-link:end -->
343
- <!-- politty:command:user pat delete:heading:start -->
344
-
345
135
  #### user pat delete
346
136
 
347
- <!-- politty:command:user pat delete:heading:end -->
348
-
349
- <!-- politty:command:user pat delete:description:start -->
350
-
351
137
  Delete a personal access token.
352
138
 
353
- <!-- politty:command:user pat delete:description:end -->
354
-
355
- <!-- politty:command:user pat delete:usage:start -->
356
-
357
139
  **Usage**
358
140
 
359
141
  ```
360
142
  tailor-sdk user pat delete <name>
361
143
  ```
362
144
 
363
- <!-- politty:command:user pat delete:usage:end -->
364
-
365
- <!-- politty:command:user pat delete:arguments:start -->
366
-
367
145
  **Arguments**
368
146
 
369
147
  | Argument | Description | Required |
370
148
  | -------- | ----------- | -------- |
371
149
  | `name` | Token name | Yes |
372
150
 
373
- <!-- politty:command:user pat delete:arguments:end -->
151
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
374
152
 
375
- <!-- politty:command:user pat delete:global-options-link:start -->
153
+ #### user pat list
376
154
 
377
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
155
+ List all personal access tokens.
378
156
 
379
- <!-- politty:command:user pat delete:global-options-link:end -->
380
- <!-- politty:command:user pat update:heading:start -->
157
+ **Usage**
381
158
 
382
- #### user pat update
159
+ ```
160
+ tailor-sdk user pat list [options]
161
+ ```
383
162
 
384
- <!-- politty:command:user pat update:heading:end -->
163
+ **Options**
385
164
 
386
- <!-- politty:command:user pat update:description:start -->
165
+ | Option | Alias | Description | Required | Default |
166
+ | ----------------- | ----- | -------------------------------------------------------- | -------- | -------- |
167
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` |
168
+ | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - |
387
169
 
388
- Update a personal access token (delete and recreate).
170
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
389
171
 
390
- <!-- politty:command:user pat update:description:end -->
172
+ #### user pat update
391
173
 
392
- <!-- politty:command:user pat update:usage:start -->
174
+ Update a personal access token (delete and recreate).
393
175
 
394
176
  **Usage**
395
177
 
@@ -397,34 +179,37 @@ Update a personal access token (delete and recreate).
397
179
  tailor-sdk user pat update [options] <name>
398
180
  ```
399
181
 
400
- <!-- politty:command:user pat update:usage:end -->
401
-
402
- <!-- politty:command:user pat update:arguments:start -->
403
-
404
182
  **Arguments**
405
183
 
406
184
  | Argument | Description | Required |
407
185
  | -------- | ----------- | -------- |
408
186
  | `name` | Token name | Yes |
409
187
 
410
- <!-- politty:command:user pat update:arguments:end -->
411
-
412
- <!-- politty:command:user pat update:options:start -->
413
-
414
188
  **Options**
415
189
 
416
190
  | Option | Alias | Description | Required | Default |
417
191
  | --------- | ----- | ---------------------------------------------------------- | -------- | ------- |
418
192
  | `--write` | `-W` | Grant write permission (if not specified, keeps read-only) | No | `false` |
419
193
 
420
- <!-- politty:command:user pat update:options:end -->
194
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
195
+
196
+ ### user switch
421
197
 
422
- <!-- politty:command:user pat update:global-options-link:start -->
198
+ Set current user.
423
199
 
424
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
200
+ **Usage**
425
201
 
426
- <!-- politty:command:user pat update:global-options-link:end -->
202
+ ```
203
+ tailor-sdk user switch <user>
204
+ ```
205
+
206
+ **Arguments**
427
207
 
208
+ | Argument | Description | Required |
209
+ | -------- | ----------- | -------- |
210
+ | `user` | User email | Yes |
211
+
212
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
428
213
  When no subcommand is provided, defaults to `list`.
429
214
 
430
215
  **Output (default):**