@tailor-platform/sdk 1.25.1 → 1.25.3

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 (89) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/{application-iRp2OYMz.mjs → application-91Th6tm6.mjs} +127 -128
  3. package/dist/application-91Th6tm6.mjs.map +1 -0
  4. package/dist/application-DegTCDd8.mjs +9 -0
  5. package/dist/{brand-BOaOlsiP.mjs → brand-GZnI4eYb.mjs} +1 -1
  6. package/dist/{brand-BOaOlsiP.mjs.map → brand-GZnI4eYb.mjs.map} +1 -1
  7. package/dist/chunk-Cz-A8uMR.mjs +3 -0
  8. package/dist/cli/index.d.mts +2 -3
  9. package/dist/cli/index.mjs +172 -216
  10. package/dist/cli/index.mjs.map +1 -1
  11. package/dist/cli/lib.d.mts +706 -1108
  12. package/dist/cli/lib.mjs +28 -16
  13. package/dist/cli/lib.mjs.map +1 -1
  14. package/dist/cli/skills.mjs +2 -1
  15. package/dist/cli/skills.mjs.map +1 -1
  16. package/dist/configure/index.d.mts +5 -5
  17. package/dist/configure/index.mjs +4 -3
  18. package/dist/configure/index.mjs.map +1 -1
  19. package/dist/{enum-constants-BxdLbhsW.mjs → enum-constants-6uK0VI_s.mjs} +1 -1
  20. package/dist/{enum-constants-BxdLbhsW.mjs.map → enum-constants-6uK0VI_s.mjs.map} +1 -1
  21. package/dist/{env-jndw86T4.d.mts → env-uBeVwE9B.d.mts} +4 -7
  22. package/dist/{file-utils-C2r3AVbI.mjs → file-utils-2T9w20FP.mjs} +1 -1
  23. package/dist/{file-utils-C2r3AVbI.mjs.map → file-utils-2T9w20FP.mjs.map} +1 -1
  24. package/dist/{index-Do7zo7z-.d.mts → index-BD-K97-C.d.mts} +2 -2
  25. package/dist/{index-BuWllBxZ.d.mts → index-Bu12qy3m.d.mts} +25 -22
  26. package/dist/{index-VZq4IAEK.d.mts → index-CT53egux.d.mts} +2 -2
  27. package/dist/{index-DZRZdh71.d.mts → index-D1J5SfyK.d.mts} +2 -2
  28. package/dist/{index-DoxGF8-i.d.mts → index-cZilKprY.d.mts} +2 -2
  29. package/dist/{interceptor-DVy32eIG.mjs → interceptor-BPiIBTk_.mjs} +2 -1
  30. package/dist/{interceptor-DVy32eIG.mjs.map → interceptor-BPiIBTk_.mjs.map} +1 -1
  31. package/dist/{job-BQDunsd7.mjs → job-DdfW7vH3.mjs} +3 -3
  32. package/dist/{job-BQDunsd7.mjs.map → job-DdfW7vH3.mjs.map} +1 -1
  33. package/dist/kysely/index.d.mts +3 -4
  34. package/dist/kysely/index.mjs +1 -0
  35. package/dist/kysely/index.mjs.map +1 -1
  36. package/dist/{kysely-type-DzLBuVp6.mjs → kysely-type-cMNbsQ6k.mjs} +1 -1
  37. package/dist/{kysely-type-DzLBuVp6.mjs.map → kysely-type-cMNbsQ6k.mjs.map} +1 -1
  38. package/dist/package-json-Bj76LPsV.mjs +4 -0
  39. package/dist/{package-json-DnbGCOkg.mjs → package-json-CVUv8Y9T.mjs} +1 -1
  40. package/dist/{package-json-DnbGCOkg.mjs.map → package-json-CVUv8Y9T.mjs.map} +1 -1
  41. package/dist/plugin/builtin/enum-constants/index.d.mts +1 -2
  42. package/dist/plugin/builtin/enum-constants/index.mjs +2 -1
  43. package/dist/plugin/builtin/file-utils/index.d.mts +1 -2
  44. package/dist/plugin/builtin/file-utils/index.mjs +2 -1
  45. package/dist/plugin/builtin/kysely-type/index.d.mts +1 -2
  46. package/dist/plugin/builtin/kysely-type/index.mjs +2 -1
  47. package/dist/plugin/builtin/seed/index.d.mts +1 -2
  48. package/dist/plugin/builtin/seed/index.mjs +2 -1
  49. package/dist/plugin/index.d.mts +2 -3
  50. package/dist/plugin/index.mjs +5 -4
  51. package/dist/plugin/index.mjs.map +1 -1
  52. package/dist/{plugin-3sT6Tcq0.d.mts → plugin-zY5wvV82.d.mts} +117 -225
  53. package/dist/{query-D3UyoG68.mjs → query-BpppEOzu.mjs} +502 -541
  54. package/dist/query-BpppEOzu.mjs.map +1 -0
  55. package/dist/{schema-Fbfeq9gi.mjs → schema-BePzTFBV.mjs} +9 -9
  56. package/dist/schema-BePzTFBV.mjs.map +1 -0
  57. package/dist/seed/index.d.mts +1 -4
  58. package/dist/seed/index.mjs +1 -0
  59. package/dist/seed/index.mjs.map +1 -1
  60. package/dist/{seed-DkKAheSe.mjs → seed-CCVRLibh.mjs} +24 -10
  61. package/dist/seed-CCVRLibh.mjs.map +1 -0
  62. package/dist/{telemetry-d_lgTL33.mjs → telemetry-0w8OupuQ.mjs} +2 -2
  63. package/dist/{telemetry-d_lgTL33.mjs.map → telemetry-0w8OupuQ.mjs.map} +1 -1
  64. package/dist/telemetry-DDQZRqHK.mjs +4 -0
  65. package/dist/utils/test/index.d.mts +2 -3
  66. package/dist/utils/test/index.mjs +3 -2
  67. package/dist/utils/test/index.mjs.map +1 -1
  68. package/dist/{app-config-QzNOFnEy.d.mts → workflow.generated-v1LXRuB6.d.mts} +19 -22
  69. package/docs/cli/application.md +73 -33
  70. package/docs/cli/auth.md +56 -24
  71. package/docs/cli/completion.md +6 -0
  72. package/docs/cli/executor.md +73 -36
  73. package/docs/cli/function.md +30 -14
  74. package/docs/cli/secret.md +93 -41
  75. package/docs/cli/staticwebsite.md +38 -17
  76. package/docs/cli/tailordb.md +106 -48
  77. package/docs/cli/user.md +74 -10
  78. package/docs/cli/workflow.md +70 -39
  79. package/docs/cli/workspace.md +166 -60
  80. package/docs/cli-reference.md +22 -12
  81. package/docs/services/workflow.md +26 -0
  82. package/package.json +7 -6
  83. package/dist/application-B4ORumjE.mjs +0 -8
  84. package/dist/application-iRp2OYMz.mjs.map +0 -1
  85. package/dist/package-json-BKA36WTo.mjs +0 -3
  86. package/dist/query-D3UyoG68.mjs.map +0 -1
  87. package/dist/schema-Fbfeq9gi.mjs.map +0 -1
  88. package/dist/seed-DkKAheSe.mjs.map +0 -1
  89. package/dist/telemetry-J6dpByo2.mjs +0 -3
@@ -39,6 +39,12 @@ tailor-sdk workspace [command]
39
39
  | [`workspace user`](#workspace-user) | Manage workspace users |
40
40
 
41
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 -->
42
48
  <!-- politty:command:workspace create:heading:start -->
43
49
 
44
50
  ### workspace create
@@ -65,18 +71,23 @@ tailor-sdk workspace create [options]
65
71
 
66
72
  **Options**
67
73
 
68
- | Option | Alias | Description | Required | Default |
69
- | ------------------------------------- | ----- | ----------------------------------------------------- | -------- | ------- |
70
- | `--json` | `-j` | Output as JSON | No | `false` |
71
- | `--name <NAME>` | `-n` | Workspace name | Yes | - |
72
- | `--region <REGION>` | `-r` | Workspace region (us-west, asia-northeast) | Yes | - |
73
- | `--delete-protection` | `-d` | Enable delete protection | No | `false` |
74
- | `--organization-id <ORGANIZATION_ID>` | `-o` | Organization ID to workspace associate with | No | - |
75
- | `--folder-id <FOLDER_ID>` | `-f` | Folder ID to workspace associate with | No | - |
76
- | `--profile-name <PROFILE_NAME>` | `-p` | Profile name to create | No | - |
77
- | `--profile-user <PROFILE_USER>` | - | User email for the profile (defaults to current user) | No | - |
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 | - | - |
78
83
 
79
84
  <!-- politty:command:workspace create:options:end -->
85
+
86
+ <!-- politty:command:workspace create:global-options-link:start -->
87
+
88
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
89
+
90
+ <!-- politty:command:workspace create:global-options-link:end -->
80
91
  <!-- politty:command:workspace list:heading:start -->
81
92
 
82
93
  ### workspace list
@@ -105,10 +116,15 @@ tailor-sdk workspace list [options]
105
116
 
106
117
  | Option | Alias | Description | Required | Default |
107
118
  | ----------------- | ----- | ------------------------------------ | -------- | ------- |
108
- | `--json` | `-j` | Output as JSON | No | `false` |
109
119
  | `--limit <LIMIT>` | `-l` | Maximum number of workspaces to list | No | - |
110
120
 
111
121
  <!-- politty:command:workspace list:options:end -->
122
+
123
+ <!-- politty:command:workspace list:global-options-link:start -->
124
+
125
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
126
+
127
+ <!-- politty:command:workspace list:global-options-link:end -->
112
128
  <!-- politty:command:workspace delete:heading:start -->
113
129
 
114
130
  ### workspace delete
@@ -141,6 +157,12 @@ tailor-sdk workspace delete [options]
141
157
  | `--yes` | `-y` | Skip confirmation prompts | No | `false` |
142
158
 
143
159
  <!-- politty:command:workspace delete:options:end -->
160
+
161
+ <!-- politty:command:workspace delete:global-options-link:start -->
162
+
163
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
164
+
165
+ <!-- politty:command:workspace delete:global-options-link:end -->
144
166
  <!-- politty:command:profile:heading:start -->
145
167
 
146
168
  ## profile
@@ -175,6 +197,12 @@ tailor-sdk profile [command]
175
197
  | [`profile update`](#profile-update) | Update profile properties. |
176
198
 
177
199
  <!-- politty:command:profile:subcommands:end -->
200
+
201
+ <!-- politty:command:profile:global-options-link:start -->
202
+
203
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
204
+
205
+ <!-- politty:command:profile:global-options-link:end -->
178
206
  <!-- politty:command:profile create:heading:start -->
179
207
 
180
208
  ### profile create
@@ -211,13 +239,18 @@ tailor-sdk profile create [options] <name>
211
239
 
212
240
  **Options**
213
241
 
214
- | Option | Alias | Description | Required | Default |
215
- | ------------------------------- | ----- | -------------- | -------- | ------- |
216
- | `--json` | `-j` | Output as JSON | No | `false` |
217
- | `--user <USER>` | `-u` | User email | Yes | - |
218
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | Yes | - |
242
+ | Option | Alias | Description | Required | Default |
243
+ | ------------------------------- | ----- | ------------ | -------- | ------- |
244
+ | `--user <USER>` | `-u` | User email | Yes | - |
245
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | Yes | - |
219
246
 
220
247
  <!-- politty:command:profile create:options:end -->
248
+
249
+ <!-- politty:command:profile create:global-options-link:start -->
250
+
251
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
252
+
253
+ <!-- politty:command:profile create:global-options-link:end -->
221
254
  <!-- politty:command:profile list:heading:start -->
222
255
 
223
256
  ### profile list
@@ -235,7 +268,7 @@ List all profiles.
235
268
  **Usage**
236
269
 
237
270
  ```
238
- tailor-sdk profile list [options]
271
+ tailor-sdk profile list
239
272
  ```
240
273
 
241
274
  <!-- politty:command:profile list:usage:end -->
@@ -249,6 +282,12 @@ tailor-sdk profile list [options]
249
282
  | `--json` | `-j` | Output as JSON | No | `false` |
250
283
 
251
284
  <!-- politty:command:profile list:options:end -->
285
+
286
+ <!-- politty:command:profile list:global-options-link:start -->
287
+
288
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
289
+
290
+ <!-- politty:command:profile list:global-options-link:end -->
252
291
  <!-- politty:command:profile update:heading:start -->
253
292
 
254
293
  ### profile update
@@ -287,11 +326,16 @@ tailor-sdk profile update [options] <name>
287
326
 
288
327
  | Option | Alias | Description | Required | Default |
289
328
  | ------------------------------- | ----- | ---------------- | -------- | ------- |
290
- | `--json` | `-j` | Output as JSON | No | `false` |
291
329
  | `--user <USER>` | `-u` | New user email | No | - |
292
330
  | `--workspace-id <WORKSPACE_ID>` | `-w` | New workspace ID | No | - |
293
331
 
294
332
  <!-- politty:command:profile update:options:end -->
333
+
334
+ <!-- politty:command:profile update:global-options-link:start -->
335
+
336
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
337
+
338
+ <!-- politty:command:profile update:global-options-link:end -->
295
339
  <!-- politty:command:profile delete:heading:start -->
296
340
 
297
341
  ### profile delete
@@ -309,7 +353,7 @@ Delete a profile.
309
353
  **Usage**
310
354
 
311
355
  ```
312
- tailor-sdk profile delete [options] <name>
356
+ tailor-sdk profile delete <name>
313
357
  ```
314
358
 
315
359
  <!-- politty:command:profile delete:usage:end -->
@@ -324,6 +368,12 @@ tailor-sdk profile delete [options] <name>
324
368
 
325
369
  <!-- politty:command:profile delete:arguments:end -->
326
370
 
371
+ <!-- politty:command:profile delete:global-options-link:start -->
372
+
373
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
374
+
375
+ <!-- politty:command:profile delete:global-options-link:end -->
376
+
327
377
  <!-- politty:command:workspace app:heading:start -->
328
378
 
329
379
  ### workspace app
@@ -357,6 +407,12 @@ tailor-sdk workspace app [command]
357
407
 
358
408
  <!-- politty:command:workspace app:subcommands:end -->
359
409
 
410
+ <!-- politty:command:workspace app:global-options-link:start -->
411
+
412
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
413
+
414
+ <!-- politty:command:workspace app:global-options-link:end -->
415
+
360
416
  <!-- politty:command:workspace app health:heading:start -->
361
417
 
362
418
  #### workspace app health
@@ -383,15 +439,20 @@ tailor-sdk workspace app health [options]
383
439
 
384
440
  **Options**
385
441
 
386
- | Option | Alias | Description | Required | Default |
387
- | ------------------------------- | ----- | ----------------- | -------- | ------- |
388
- | `--json` | `-j` | Output as JSON | No | `false` |
389
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - |
390
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
391
- | `--name <NAME>` | `-n` | Application name | Yes | - |
442
+ | Option | Alias | Description | Required | Default | Env |
443
+ | ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
444
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
445
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
446
+ | `--name <NAME>` | `-n` | Application name | Yes | - | - |
392
447
 
393
448
  <!-- politty:command:workspace app health:options:end -->
394
449
 
450
+ <!-- politty:command:workspace app health:global-options-link:start -->
451
+
452
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
453
+
454
+ <!-- politty:command:workspace app health:global-options-link:end -->
455
+
395
456
  <!-- politty:command:workspace app list:heading:start -->
396
457
 
397
458
  #### workspace app list
@@ -418,15 +479,20 @@ tailor-sdk workspace app list [options]
418
479
 
419
480
  **Options**
420
481
 
421
- | Option | Alias | Description | Required | Default |
422
- | ------------------------------- | ----- | -------------------------------------- | -------- | ------- |
423
- | `--json` | `-j` | Output as JSON | No | `false` |
424
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - |
425
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
426
- | `--limit <LIMIT>` | `-l` | Maximum number of applications to list | No | - |
482
+ | Option | Alias | Description | Required | Default | Env |
483
+ | ------------------------------- | ----- | -------------------------------------- | -------- | ------- | ------------------------------ |
484
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
485
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
486
+ | `--limit <LIMIT>` | `-l` | Maximum number of applications to list | No | - | - |
427
487
 
428
488
  <!-- politty:command:workspace app list:options:end -->
429
489
 
490
+ <!-- politty:command:workspace app list:global-options-link:start -->
491
+
492
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
493
+
494
+ <!-- politty:command:workspace app list:global-options-link:end -->
495
+
430
496
  <!-- politty:command:workspace get:heading:start -->
431
497
 
432
498
  ### workspace get
@@ -453,14 +519,19 @@ tailor-sdk workspace get [options]
453
519
 
454
520
  **Options**
455
521
 
456
- | Option | Alias | Description | Required | Default |
457
- | ------------------------------- | ----- | ----------------- | -------- | ------- |
458
- | `--json` | `-j` | Output as JSON | No | `false` |
459
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - |
460
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
522
+ | Option | Alias | Description | Required | Default | Env |
523
+ | ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
524
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
525
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
461
526
 
462
527
  <!-- politty:command:workspace get:options:end -->
463
528
 
529
+ <!-- politty:command:workspace get:global-options-link:start -->
530
+
531
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
532
+
533
+ <!-- politty:command:workspace get:global-options-link:end -->
534
+
464
535
  <!-- politty:command:workspace restore:heading:start -->
465
536
 
466
537
  ### workspace restore
@@ -494,6 +565,12 @@ tailor-sdk workspace restore [options]
494
565
 
495
566
  <!-- politty:command:workspace restore:options:end -->
496
567
 
568
+ <!-- politty:command:workspace restore:global-options-link:start -->
569
+
570
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
571
+
572
+ <!-- politty:command:workspace restore:global-options-link:end -->
573
+
497
574
  <!-- politty:command:workspace user:heading:start -->
498
575
 
499
576
  ### workspace user
@@ -529,6 +606,12 @@ tailor-sdk workspace user [command]
529
606
 
530
607
  <!-- politty:command:workspace user:subcommands:end -->
531
608
 
609
+ <!-- politty:command:workspace user:global-options-link:start -->
610
+
611
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
612
+
613
+ <!-- politty:command:workspace user:global-options-link:end -->
614
+
532
615
  <!-- politty:command:workspace user invite:heading:start -->
533
616
 
534
617
  #### workspace user invite
@@ -555,15 +638,21 @@ tailor-sdk workspace user invite [options]
555
638
 
556
639
  **Options**
557
640
 
558
- | Option | Alias | Description | Required | Default |
559
- | ------------------------------- | ----- | -------------------------------------- | -------- | ------- |
560
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - |
561
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
562
- | `--email <EMAIL>` | - | Email address of the user to invite | Yes | - |
563
- | `--role <ROLE>` | `-r` | Role to assign (admin, editor, viewer) | Yes | - |
641
+ | Option | Alias | Description | Required | Default | Env |
642
+ | ------------------------------- | ----- | -------------------------------------- | -------- | ------- | ------------------------------ |
643
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
644
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
645
+ | `--email <EMAIL>` | - | Email address of the user to invite | Yes | - | - |
646
+ | `--role <ROLE>` | `-r` | Role to assign (admin, editor, viewer) | Yes | - | - |
564
647
 
565
648
  <!-- politty:command:workspace user invite:options:end -->
566
649
 
650
+ <!-- politty:command:workspace user invite:global-options-link:start -->
651
+
652
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
653
+
654
+ <!-- politty:command:workspace user invite:global-options-link:end -->
655
+
567
656
  <!-- politty:command:workspace user list:heading:start -->
568
657
 
569
658
  #### workspace user list
@@ -590,15 +679,20 @@ tailor-sdk workspace user list [options]
590
679
 
591
680
  **Options**
592
681
 
593
- | Option | Alias | Description | Required | Default |
594
- | ------------------------------- | ----- | ------------------------------- | -------- | ------- |
595
- | `--json` | `-j` | Output as JSON | No | `false` |
596
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - |
597
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
598
- | `--limit <LIMIT>` | `-l` | Maximum number of users to list | No | - |
682
+ | Option | Alias | Description | Required | Default | Env |
683
+ | ------------------------------- | ----- | ------------------------------- | -------- | ------- | ------------------------------ |
684
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
685
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
686
+ | `--limit <LIMIT>` | `-l` | Maximum number of users to list | No | - | - |
599
687
 
600
688
  <!-- politty:command:workspace user list:options:end -->
601
689
 
690
+ <!-- politty:command:workspace user list:global-options-link:start -->
691
+
692
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
693
+
694
+ <!-- politty:command:workspace user list:global-options-link:end -->
695
+
602
696
  <!-- politty:command:workspace user remove:heading:start -->
603
697
 
604
698
  #### workspace user remove
@@ -625,15 +719,21 @@ tailor-sdk workspace user remove [options]
625
719
 
626
720
  **Options**
627
721
 
628
- | Option | Alias | Description | Required | Default |
629
- | ------------------------------- | ----- | ----------------------------------- | -------- | ------- |
630
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - |
631
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
632
- | `--email <EMAIL>` | - | Email address of the user to remove | Yes | - |
633
- | `--yes` | `-y` | Skip confirmation prompts | No | `false` |
722
+ | Option | Alias | Description | Required | Default | Env |
723
+ | ------------------------------- | ----- | ----------------------------------- | -------- | ------- | ------------------------------ |
724
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
725
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
726
+ | `--email <EMAIL>` | - | Email address of the user to remove | Yes | - | - |
727
+ | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
634
728
 
635
729
  <!-- politty:command:workspace user remove:options:end -->
636
730
 
731
+ <!-- politty:command:workspace user remove:global-options-link:start -->
732
+
733
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
734
+
735
+ <!-- politty:command:workspace user remove:global-options-link:end -->
736
+
637
737
  <!-- politty:command:workspace user update:heading:start -->
638
738
 
639
739
  #### workspace user update
@@ -660,11 +760,17 @@ tailor-sdk workspace user update [options]
660
760
 
661
761
  **Options**
662
762
 
663
- | Option | Alias | Description | Required | Default |
664
- | ------------------------------- | ----- | ------------------------------------------ | -------- | ------- |
665
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - |
666
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
667
- | `--email <EMAIL>` | - | Email address of the user to update | Yes | - |
668
- | `--role <ROLE>` | `-r` | New role to assign (admin, editor, viewer) | Yes | - |
763
+ | Option | Alias | Description | Required | Default | Env |
764
+ | ------------------------------- | ----- | ------------------------------------------ | -------- | ------- | ------------------------------ |
765
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
766
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
767
+ | `--email <EMAIL>` | - | Email address of the user to update | Yes | - | - |
768
+ | `--role <ROLE>` | `-r` | New role to assign (admin, editor, viewer) | Yes | - | - |
669
769
 
670
770
  <!-- politty:command:workspace user update:options:end -->
771
+
772
+ <!-- politty:command:workspace user update:global-options-link:start -->
773
+
774
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
775
+
776
+ <!-- politty:command:workspace user update:global-options-link:end -->
@@ -1,6 +1,6 @@
1
- # CLI Reference
1
+ # tailor-sdk
2
2
 
3
- The Tailor Platform SDK provides a command-line interface for managing projects and workspaces.
3
+ Tailor Platform SDK - The SDK to work with Tailor Platform
4
4
 
5
5
  ## Usage
6
6
 
@@ -8,20 +8,30 @@ The Tailor Platform SDK provides a command-line interface for managing projects
8
8
  tailor-sdk <command> [options]
9
9
  ```
10
10
 
11
+ ## Global Options
12
+
13
+ <!-- politty:global-options:start -->
14
+
15
+ <a id="global-options"></a>
16
+ | Option | Alias | Description | Required | Default |
17
+ |--------|-------|-------------|----------|---------|
18
+ | `--env-file <ENV_FILE>` | `-e` | Path to the environment file (error if not found) | No | - |
19
+ | `--env-file-if-exists <ENV_FILE_IF_EXISTS>` | - | Path to the environment file (ignored if not found) | No | - |
20
+ | `--verbose` | - | Enable verbose logging | No | `false` |
21
+ | `--json` | `-j` | Output as JSON | No | `false` |
22
+
23
+ <!-- politty:global-options:end -->
24
+
11
25
  ## Common Options
12
26
 
13
27
  The following options are available for most commands:
14
28
 
15
- | Option | Short | Description |
16
- | ---------------------- | ----- | --------------------------------------------------- |
17
- | `--env-file` | `-e` | Path to environment file (error if not found) |
18
- | `--env-file-if-exists` | | Path to environment file (ignored if not found) |
19
- | `--verbose` | | Enable verbose logging (show stack traces on error) |
20
- | `--json` | `-j` | Output as JSON (where applicable) |
21
- | `--workspace-id` | `-w` | Workspace ID (for deployment commands) |
22
- | `--profile` | `-p` | Workspace profile |
23
- | `--config` | `-c` | Path to SDK config file |
24
- | `--yes` | `-y` | Skip confirmation prompts |
29
+ | Option | Short | Description |
30
+ | ---------------- | ----- | -------------------------------------- |
31
+ | `--workspace-id` | `-w` | Workspace ID (for deployment commands) |
32
+ | `--profile` | `-p` | Workspace profile |
33
+ | `--config` | `-c` | Path to SDK config file |
34
+ | `--yes` | `-y` | Skip confirmation prompts |
25
35
 
26
36
  ### Environment File Loading
27
37
 
@@ -148,6 +148,32 @@ export default createWorkflow({
148
148
  });
149
149
  ```
150
150
 
151
+ ## Retry Policy
152
+
153
+ You can configure automatic retry behavior with exponential backoff by setting `retryPolicy` on a workflow. All fields are required when `retryPolicy` is set:
154
+
155
+ | Field | Type | Description |
156
+ | ------------------- | -------- | ---------------------------------------------------------- |
157
+ | `maxRetries` | `number` | Maximum number of retries (1–10) |
158
+ | `initialBackoff` | `string` | Initial backoff duration (e.g., `"1s"`, `"500ms"`, max 1h) |
159
+ | `maxBackoff` | `string` | Maximum backoff duration (e.g., `"30s"`, `"5m"`, max 24h) |
160
+ | `backoffMultiplier` | `number` | Backoff multiplier for exponential backoff (>= 1) |
161
+
162
+ Duration strings support `ms`, `s`, and `m` units. `initialBackoff` must be less than or equal to `maxBackoff`.
163
+
164
+ ```typescript
165
+ export default createWorkflow({
166
+ name: "order-processing",
167
+ mainJob: processOrder,
168
+ retryPolicy: {
169
+ maxRetries: 3,
170
+ initialBackoff: "1s",
171
+ maxBackoff: "30s",
172
+ backoffMultiplier: 2,
173
+ },
174
+ });
175
+ ```
176
+
151
177
  ## Triggering a Workflow from a Resolver
152
178
 
153
179
  You can start a workflow execution from a resolver using `workflow.trigger()`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/sdk",
3
- "version": "1.25.1",
3
+ "version": "1.25.3",
4
4
  "description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -81,6 +81,8 @@
81
81
  "@bufbuild/protobuf": "2.10.2",
82
82
  "@connectrpc/connect": "2.1.1",
83
83
  "@connectrpc/connect-node": "2.1.1",
84
+ "@inquirer/core": "11.1.5",
85
+ "@inquirer/prompts": "8.3.0",
84
86
  "@liam-hq/cli": "0.7.24",
85
87
  "@opentelemetry/api": "1.9.0",
86
88
  "@opentelemetry/exporter-trace-otlp-proto": "0.212.0",
@@ -95,7 +97,6 @@
95
97
  "chalk": "5.6.2",
96
98
  "chokidar": "5.0.0",
97
99
  "confbox": "0.2.4",
98
- "consola": "3.4.2",
99
100
  "date-fns": "4.1.0",
100
101
  "es-toolkit": "1.45.1",
101
102
  "find-up-simple": "1.0.1",
@@ -112,7 +113,7 @@
112
113
  "pathe": "2.0.3",
113
114
  "pgsql-ast-parser": "12.0.2",
114
115
  "pkg-types": "2.3.0",
115
- "politty": "0.4.4",
116
+ "politty": "0.4.9",
116
117
  "rolldown": "1.0.0-rc.7",
117
118
  "serve": "14.2.6",
118
119
  "std-env": "3.10.0",
@@ -130,15 +131,15 @@
130
131
  "@types/madge": "5.0.3",
131
132
  "@types/mime-types": "3.0.1",
132
133
  "@types/node": "24.10.9",
133
- "@typescript/native-preview": "7.0.0-dev.20260307.1",
134
+ "@typescript/native-preview": "7.0.0-dev.20260308.1",
134
135
  "@vitest/coverage-v8": "4.0.18",
135
136
  "eslint": "9.39.4",
136
- "eslint-plugin-jsdoc": "62.1.0",
137
+ "eslint-plugin-jsdoc": "62.7.1",
137
138
  "eslint-plugin-oxlint": "1.39.0",
138
139
  "oxlint": "1.39.0",
139
140
  "oxlint-tsgolint": "0.11.1",
140
141
  "sonda": "0.10.1",
141
- "tsdown": "0.19.0",
142
+ "tsdown": "0.21.1",
142
143
  "typescript": "5.9.3",
143
144
  "typescript-eslint": "8.53.0",
144
145
  "vitest": "4.0.18",
@@ -1,8 +0,0 @@
1
- import "./brand-BOaOlsiP.mjs";
2
- import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-iRp2OYMz.mjs";
3
- import "./package-json-DnbGCOkg.mjs";
4
- import "./seed-DkKAheSe.mjs";
5
- import "./file-utils-C2r3AVbI.mjs";
6
- import "./kysely-type-DzLBuVp6.mjs";
7
-
8
- export { defineApplication };