@tailor-platform/sdk 1.68.0 → 1.70.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 (117) hide show
  1. package/CHANGELOG.md +105 -0
  2. package/dist/application-BakHtldG.mjs +4 -0
  3. package/dist/application-Df5_I83n.mjs +6432 -0
  4. package/dist/application-Df5_I83n.mjs.map +1 -0
  5. package/dist/cli/erd-viewer-assets/app.js +279 -36
  6. package/dist/cli/erd-viewer-assets/index.html +4 -0
  7. package/dist/cli/erd-viewer-assets/styles.css +252 -5
  8. package/dist/cli/index.mjs +650 -98
  9. package/dist/cli/index.mjs.map +1 -1
  10. package/dist/cli/lib.d.mts +247 -160
  11. package/dist/cli/lib.mjs +3 -3
  12. package/dist/cli/lib.mjs.map +1 -1
  13. package/dist/cli/skills.mjs +1 -1
  14. package/dist/completion/zsh-worker.zsh +175 -24
  15. package/dist/configure/index.d.mts +5 -5
  16. package/dist/configure/index.mjs +12 -6
  17. package/dist/configure/index.mjs.map +1 -1
  18. package/dist/{crashreport-u9y2npiy.mjs → crashreport-BqyvFk-_.mjs} +2 -2
  19. package/dist/{crashreport-u9y2npiy.mjs.map → crashreport-BqyvFk-_.mjs.map} +1 -1
  20. package/dist/{crashreport-6jpCceOF.mjs → crashreport-BwF8cHF0.mjs} +1 -1
  21. package/dist/enum-constants-C7DaWeQo.mjs.map +1 -1
  22. package/dist/field-C4zdJLW5.mjs.map +1 -1
  23. package/dist/file-utils-BHPxPXmn.mjs.map +1 -1
  24. package/dist/{idp-BlBPtXJ-.d.mts → idp-BmYwCXnJ.d.mts} +30 -3
  25. package/dist/{idp-BZPqpcYY.mjs → idp-ynUfzwpz.mjs} +9 -1
  26. package/dist/idp-ynUfzwpz.mjs.map +1 -0
  27. package/dist/{index-DvEUb3pX.d.mts → index-BAEaAqmz.d.mts} +112 -53
  28. package/dist/{index-CklcVeMG.d.mts → index-C-vsbx27.d.mts} +2 -2
  29. package/dist/{index-hXoO-AOC.d.mts → index-CKI0eZP6.d.mts} +2 -2
  30. package/dist/{index-DYhnxXYR.d.mts → index-CrqOgUF2.d.mts} +2 -2
  31. package/dist/{index-DlDRSzFZ.d.mts → index-DESLU9kI.d.mts} +2 -2
  32. package/dist/{index-DRhMpdnA.d.mts → index-dKNk8hjo.d.mts} +2 -2
  33. package/dist/job-BpsFXPbi.mjs.map +1 -1
  34. package/dist/{kysely-type-D1e0Vwkd.mjs → kysely-type-CSoZxVKN.mjs} +2 -2
  35. package/dist/{kysely-type-D1e0Vwkd.mjs.map → kysely-type-CSoZxVKN.mjs.map} +1 -1
  36. package/dist/{logger-DpJyJvNz.mjs → logger-DKF-JsAK.mjs} +3 -3
  37. package/dist/{logger-DpJyJvNz.mjs.map → logger-DKF-JsAK.mjs.map} +1 -1
  38. package/dist/{mock-DMgIygjE.mjs → mock-wf5qeZLi.mjs} +19 -9
  39. package/dist/mock-wf5qeZLi.mjs.map +1 -0
  40. package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
  41. package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
  42. package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
  43. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  44. package/dist/plugin/builtin/seed/index.d.mts +1 -1
  45. package/dist/plugin/index.d.mts +1 -1
  46. package/dist/plugin/index.mjs.map +1 -1
  47. package/dist/registry-D0uB0OrK.mjs.map +1 -1
  48. package/dist/{repl-editor-CJG3sz7A.mjs → repl-editor-DD5YP5mt.mjs} +4 -4
  49. package/dist/{repl-editor-CJG3sz7A.mjs.map → repl-editor-DD5YP5mt.mjs.map} +1 -1
  50. package/dist/runtime/globals.d.mts +3 -2
  51. package/dist/runtime/idp.d.mts +2 -2
  52. package/dist/runtime/idp.mjs +1 -1
  53. package/dist/runtime/index.d.mts +2 -2
  54. package/dist/runtime/index.mjs +1 -1
  55. package/dist/{runtime-DxaBq6U8.mjs → runtime-CSY0eD4_.mjs} +411 -221
  56. package/dist/runtime-CSY0eD4_.mjs.map +1 -0
  57. package/dist/{schema-1msIhXwA.mjs → schema-C4fkpWV_.mjs} +9 -15
  58. package/dist/schema-C4fkpWV_.mjs.map +1 -0
  59. package/dist/seed-YAbtMy65.mjs.map +1 -1
  60. package/dist/{service-wI3Hvrgx.mjs → service-B2Jd9CxS.mjs} +2 -2
  61. package/dist/service-B2Jd9CxS.mjs.map +1 -0
  62. package/dist/service-CRaa4Joe.mjs +4 -0
  63. package/dist/{service-DMohAx8a.mjs → service-DDWgZL_L2.mjs} +2 -2
  64. package/dist/service-DDWgZL_L2.mjs.map +1 -0
  65. package/dist/service_pb-DGSmn-aF.mjs +4 -0
  66. package/dist/{application-WpWwTyk9.mjs → service_pb-DSNjrcbW.mjs} +22 -6176
  67. package/dist/service_pb-DSNjrcbW.mjs.map +1 -0
  68. package/dist/telemetry-BQbbVo2t.mjs.map +1 -1
  69. package/dist/{types-2Be3wSMc.mjs → types-32lUMToj.mjs} +1 -1
  70. package/dist/{types-CmzfQP_m.mjs → types-D4QMmNWh.mjs} +1 -12
  71. package/dist/types-D4QMmNWh.mjs.map +1 -0
  72. package/dist/{types-Bzr0RQME.d.mts → types-Dynq4AJv.d.mts} +2 -2
  73. package/dist/{types-DZrtN6-H.d.mts → types-rj8YJcEe.d.mts} +5 -2
  74. package/dist/utils/test/index.d.mts +2 -2
  75. package/dist/utils/test/index.mjs.map +1 -1
  76. package/dist/vitest/environment.mjs +1 -1
  77. package/dist/vitest/environment.mjs.map +1 -1
  78. package/dist/vitest/index.mjs +4 -4
  79. package/dist/vitest/index.mjs.map +1 -1
  80. package/dist/vitest/setup.mjs +1 -1
  81. package/dist/{workflow.generated-1S50BhEb.d.mts → workflow.generated-DJULCuRr.d.mts} +274 -174
  82. package/docs/cli/application.md +39 -201
  83. package/docs/cli/auth.md +12 -256
  84. package/docs/cli/completion.md +0 -24
  85. package/docs/cli/crashreport.md +0 -58
  86. package/docs/cli/executor.md +2 -166
  87. package/docs/cli/function.md +2 -118
  88. package/docs/cli/organization.md +1 -211
  89. package/docs/cli/query.md +0 -20
  90. package/docs/cli/secret.md +70 -250
  91. package/docs/cli/setup.md +2 -41
  92. package/docs/cli/skills.md +0 -39
  93. package/docs/cli/staticwebsite.md +24 -172
  94. package/docs/cli/tailordb.md +25 -251
  95. package/docs/cli/upgrade.md +0 -20
  96. package/docs/cli/user.md +41 -246
  97. package/docs/cli/workflow.md +30 -189
  98. package/docs/cli/workspace.md +164 -537
  99. package/docs/cli-reference.md +61 -37
  100. package/docs/configuration.md +7 -1
  101. package/docs/github-actions.md +27 -0
  102. package/docs/multi-environment.md +22 -0
  103. package/docs/services/aigateway.md +4 -2
  104. package/docs/services/http-adapter.md +16 -1
  105. package/docs/services/idp.md +55 -2
  106. package/docs/services/staticwebsite.md +7 -1
  107. package/package.json +23 -18
  108. package/dist/application-Djeezk3m.mjs +0 -4
  109. package/dist/application-WpWwTyk9.mjs.map +0 -1
  110. package/dist/idp-BZPqpcYY.mjs.map +0 -1
  111. package/dist/mock-DMgIygjE.mjs.map +0 -1
  112. package/dist/runtime-DxaBq6U8.mjs.map +0 -1
  113. package/dist/schema-1msIhXwA.mjs.map +0 -1
  114. package/dist/service-BHQIerYh.mjs +0 -4
  115. package/dist/service-DMohAx8a.mjs.map +0 -1
  116. package/dist/service-wI3Hvrgx.mjs.map +0 -1
  117. package/dist/types-CmzfQP_m.mjs.map +0 -1
@@ -2,29 +2,17 @@
2
2
 
3
3
  Commands for managing workflows and workflow executions.
4
4
 
5
- <!-- politty:command:workflow:heading:start -->
6
-
7
5
  ## workflow
8
6
 
9
- <!-- politty:command:workflow:heading:end -->
10
-
11
- <!-- politty:command:workflow:description:start -->
12
-
13
7
  Manage workflows and workflow executions.
14
8
 
15
- <!-- politty:command:workflow:description:end -->
16
-
17
- <!-- politty:command:workflow:usage:start -->
18
-
19
9
  **Usage**
20
10
 
21
11
  ```
22
12
  tailor-sdk workflow [command]
23
13
  ```
24
14
 
25
- <!-- politty:command:workflow:usage:end -->
26
-
27
- <!-- politty:command:workflow:subcommands:start -->
15
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
28
16
 
29
17
  **Commands**
30
18
 
@@ -37,37 +25,16 @@ tailor-sdk workflow [command]
37
25
  | [`workflow executions`](#workflow-executions) | List or get workflow executions. |
38
26
  | [`workflow resume`](#workflow-resume) | Resume a failed or pending workflow execution. |
39
27
 
40
- <!-- politty:command:workflow:subcommands:end -->
41
-
42
- <!-- politty:command:workflow:global-options-link:start -->
43
-
44
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
45
-
46
- <!-- politty:command:workflow:global-options-link:end -->
47
- <!-- politty:command:workflow list:heading:start -->
48
-
49
28
  ### workflow list
50
29
 
51
- <!-- politty:command:workflow list:heading:end -->
52
-
53
- <!-- politty:command:workflow list:description:start -->
54
-
55
30
  List all workflows in the workspace.
56
31
 
57
- <!-- politty:command:workflow list:description:end -->
58
-
59
- <!-- politty:command:workflow list:usage:start -->
60
-
61
32
  **Usage**
62
33
 
63
34
  ```
64
35
  tailor-sdk workflow list [options]
65
36
  ```
66
37
 
67
- <!-- politty:command:workflow list:usage:end -->
68
-
69
- <!-- politty:command:workflow list:options:start -->
70
-
71
38
  **Options**
72
39
 
73
40
  | Option | Alias | Description | Required | Default | Env |
@@ -77,47 +44,24 @@ tailor-sdk workflow list [options]
77
44
  | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
78
45
  | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
79
46
 
80
- <!-- politty:command:workflow list:options:end -->
81
-
82
- <!-- politty:command:workflow list:global-options-link:start -->
83
-
84
47
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
85
48
 
86
- <!-- politty:command:workflow list:global-options-link:end -->
87
- <!-- politty:command:workflow get:heading:start -->
88
-
89
49
  ### workflow get
90
50
 
91
- <!-- politty:command:workflow get:heading:end -->
92
-
93
- <!-- politty:command:workflow get:description:start -->
94
-
95
51
  Get workflow details.
96
52
 
97
- <!-- politty:command:workflow get:description:end -->
98
-
99
- <!-- politty:command:workflow get:usage:start -->
100
-
101
53
  **Usage**
102
54
 
103
55
  ```
104
56
  tailor-sdk workflow get [options] <name>
105
57
  ```
106
58
 
107
- <!-- politty:command:workflow get:usage:end -->
108
-
109
- <!-- politty:command:workflow get:arguments:start -->
110
-
111
59
  **Arguments**
112
60
 
113
61
  | Argument | Description | Required |
114
62
  | -------- | ------------- | -------- |
115
63
  | `name` | Workflow name | Yes |
116
64
 
117
- <!-- politty:command:workflow get:arguments:end -->
118
-
119
- <!-- politty:command:workflow get:options:start -->
120
-
121
65
  **Options**
122
66
 
123
67
  | Option | Alias | Description | Required | Default | Env |
@@ -125,47 +69,24 @@ tailor-sdk workflow get [options] <name>
125
69
  | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
126
70
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
127
71
 
128
- <!-- politty:command:workflow get:options:end -->
129
-
130
- <!-- politty:command:workflow get:global-options-link:start -->
131
-
132
72
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
133
73
 
134
- <!-- politty:command:workflow get:global-options-link:end -->
135
- <!-- politty:command:workflow start:heading:start -->
136
-
137
74
  ### workflow start
138
75
 
139
- <!-- politty:command:workflow start:heading:end -->
140
-
141
- <!-- politty:command:workflow start:description:start -->
142
-
143
76
  Start a workflow execution.
144
77
 
145
- <!-- politty:command:workflow start:description:end -->
146
-
147
- <!-- politty:command:workflow start:usage:start -->
148
-
149
78
  **Usage**
150
79
 
151
80
  ```
152
81
  tailor-sdk workflow start [options] <name>
153
82
  ```
154
83
 
155
- <!-- politty:command:workflow start:usage:end -->
156
-
157
- <!-- politty:command:workflow start:arguments:start -->
158
-
159
84
  **Arguments**
160
85
 
161
86
  | Argument | Description | Required |
162
87
  | -------- | ------------- | -------- |
163
88
  | `name` | Workflow name | Yes |
164
89
 
165
- <!-- politty:command:workflow start:arguments:end -->
166
-
167
- <!-- politty:command:workflow start:options:start -->
168
-
169
90
  **Options**
170
91
 
171
92
  | Option | Alias | Description | Required | Default | Env |
@@ -181,26 +102,24 @@ tailor-sdk workflow start [options] <name>
181
102
  | `--until <UNTIL>` | `-u` | Wait target (success, suspended, terminal) | No | `"terminal"` | - |
182
103
  | `--logs` | `-l` | Display job execution logs after completion | No | `false` | - |
183
104
 
184
- <!-- politty:command:workflow start:options:end -->
185
-
186
- <!-- politty:command:workflow start:global-options-link:start -->
187
-
188
105
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
189
106
 
190
- <!-- politty:command:workflow start:global-options-link:end -->
191
- <!-- politty:command:workflow wait:heading:start -->
192
-
193
- ### workflow wait
107
+ **Usage Examples:**
194
108
 
195
- <!-- politty:command:workflow wait:heading:end -->
109
+ ```bash
110
+ # Start a workflow
111
+ tailor-sdk workflow start my-workflow -m admin-machine-user
196
112
 
197
- <!-- politty:command:workflow wait:description:start -->
113
+ # Start with argument
114
+ tailor-sdk workflow start my-workflow -m admin -a '{"userId": "123"}'
198
115
 
199
- Wait for a workflow execution.
116
+ # Start and wait for completion
117
+ tailor-sdk workflow start my-workflow -m admin -W
118
+ ```
200
119
 
201
- <!-- politty:command:workflow wait:description:end -->
120
+ ### workflow wait
202
121
 
203
- <!-- politty:command:workflow wait:usage:start -->
122
+ Wait for a workflow execution.
204
123
 
205
124
  **Usage**
206
125
 
@@ -208,20 +127,12 @@ Wait for a workflow execution.
208
127
  tailor-sdk workflow wait [options] <execution-id>
209
128
  ```
210
129
 
211
- <!-- politty:command:workflow wait:usage:end -->
212
-
213
- <!-- politty:command:workflow wait:arguments:start -->
214
-
215
130
  **Arguments**
216
131
 
217
132
  | Argument | Description | Required |
218
133
  | -------------- | ------------ | -------- |
219
134
  | `execution-id` | Execution ID | Yes |
220
135
 
221
- <!-- politty:command:workflow wait:arguments:end -->
222
-
223
- <!-- politty:command:workflow wait:options:start -->
224
-
225
136
  **Options**
226
137
 
227
138
  | Option | Alias | Description | Required | Default | Env |
@@ -233,16 +144,8 @@ tailor-sdk workflow wait [options] <execution-id>
233
144
  | `--until <UNTIL>` | `-u` | Wait target (success, suspended, terminal) | No | `"terminal"` | - |
234
145
  | `--logs` | `-l` | Display job execution logs after completion | No | `false` | - |
235
146
 
236
- <!-- politty:command:workflow wait:options:end -->
237
-
238
- <!-- politty:command:workflow wait:global-options-link:start -->
239
-
240
147
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
241
148
 
242
- <!-- politty:command:workflow wait:global-options-link:end -->
243
-
244
- <!-- politty:command:workflow wait:examples:start -->
245
-
246
149
  **Examples**
247
150
 
248
151
  **Wait for workflow success**
@@ -263,8 +166,6 @@ $ tailor-sdk workflow wait execution-id --until suspended --timeout 6m --logs --
263
166
  $ tailor-sdk workflow wait execution-id --until terminal
264
167
  ```
265
168
 
266
- <!-- politty:command:workflow wait:examples:end -->
267
-
268
169
  **Shell automation**
269
170
 
270
171
  Capture the execution ID from `workflow start` and wait for the same run from a
@@ -318,40 +219,22 @@ if (result.timedOut) {
318
219
  }
319
220
  ```
320
221
 
321
- <!-- politty:command:workflow executions:heading:start -->
322
-
323
222
  ### workflow executions
324
223
 
325
- <!-- politty:command:workflow executions:heading:end -->
326
-
327
- <!-- politty:command:workflow executions:description:start -->
328
-
329
224
  List or get workflow executions.
330
225
 
331
- <!-- politty:command:workflow executions:description:end -->
332
-
333
- <!-- politty:command:workflow executions:usage:start -->
334
-
335
226
  **Usage**
336
227
 
337
228
  ```
338
229
  tailor-sdk workflow executions [options] [execution-id]
339
230
  ```
340
231
 
341
- <!-- politty:command:workflow executions:usage:end -->
342
-
343
- <!-- politty:command:workflow executions:arguments:start -->
344
-
345
232
  **Arguments**
346
233
 
347
234
  | Argument | Description | Required |
348
235
  | -------------- | ----------------------------------------- | -------- |
349
236
  | `execution-id` | Execution ID (if provided, shows details) | No |
350
237
 
351
- <!-- politty:command:workflow executions:arguments:end -->
352
-
353
- <!-- politty:command:workflow executions:options:start -->
354
-
355
238
  **Options**
356
239
 
357
240
  | Option | Alias | Description | Required | Default | Env |
@@ -368,26 +251,33 @@ tailor-sdk workflow executions [options] [execution-id]
368
251
  | `--until <UNTIL>` | `-u` | Wait target (success, suspended, terminal) | No | `"terminal"` | - |
369
252
  | `--logs` | - | Display job execution logs (detail mode only) | No | `false` | - |
370
253
 
371
- <!-- politty:command:workflow executions:options:end -->
254
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
372
255
 
373
- <!-- politty:command:workflow executions:global-options-link:start -->
256
+ **Usage Examples:**
374
257
 
375
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
258
+ ```bash
259
+ # List all executions
260
+ tailor-sdk workflow executions
376
261
 
377
- <!-- politty:command:workflow executions:global-options-link:end -->
378
- <!-- politty:command:workflow resume:heading:start -->
262
+ # Filter by workflow name
263
+ tailor-sdk workflow executions -n my-workflow
379
264
 
380
- ### workflow resume
265
+ # Filter by status
266
+ tailor-sdk workflow executions -s RUNNING
381
267
 
382
- <!-- politty:command:workflow resume:heading:end -->
268
+ # Get execution details
269
+ tailor-sdk workflow executions <execution-id>
383
270
 
384
- <!-- politty:command:workflow resume:description:start -->
271
+ # Get execution details with logs
272
+ tailor-sdk workflow executions <execution-id> --logs
385
273
 
386
- Resume a failed or pending workflow execution.
274
+ # Wait for execution to complete
275
+ tailor-sdk workflow executions <execution-id> -W
276
+ ```
387
277
 
388
- <!-- politty:command:workflow resume:description:end -->
278
+ ### workflow resume
389
279
 
390
- <!-- politty:command:workflow resume:usage:start -->
280
+ Resume a failed or pending workflow execution.
391
281
 
392
282
  **Usage**
393
283
 
@@ -395,20 +285,12 @@ Resume a failed or pending workflow execution.
395
285
  tailor-sdk workflow resume [options] <execution-id>
396
286
  ```
397
287
 
398
- <!-- politty:command:workflow resume:usage:end -->
399
-
400
- <!-- politty:command:workflow resume:arguments:start -->
401
-
402
288
  **Arguments**
403
289
 
404
290
  | Argument | Description | Required |
405
291
  | -------------- | ------------------- | -------- |
406
292
  | `execution-id` | Failed execution ID | Yes |
407
293
 
408
- <!-- politty:command:workflow resume:arguments:end -->
409
-
410
- <!-- politty:command:workflow resume:options:start -->
411
-
412
294
  **Options**
413
295
 
414
296
  | Option | Alias | Description | Required | Default | Env |
@@ -421,45 +303,4 @@ tailor-sdk workflow resume [options] <execution-id>
421
303
  | `--until <UNTIL>` | `-u` | Wait target (success, suspended, terminal) | No | `"terminal"` | - |
422
304
  | `--logs` | `-l` | Display job execution logs after completion | No | `false` | - |
423
305
 
424
- <!-- politty:command:workflow resume:options:end -->
425
-
426
- <!-- politty:command:workflow resume:global-options-link:start -->
427
-
428
306
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
429
-
430
- <!-- politty:command:workflow resume:global-options-link:end -->
431
-
432
- **Usage Examples:**
433
-
434
- ```bash
435
- # Start a workflow
436
- tailor-sdk workflow start my-workflow -m admin-machine-user
437
-
438
- # Start with argument
439
- tailor-sdk workflow start my-workflow -m admin -a '{"userId": "123"}'
440
-
441
- # Start and wait for completion
442
- tailor-sdk workflow start my-workflow -m admin -W
443
- ```
444
-
445
- **Usage Examples:**
446
-
447
- ```bash
448
- # List all executions
449
- tailor-sdk workflow executions
450
-
451
- # Filter by workflow name
452
- tailor-sdk workflow executions -n my-workflow
453
-
454
- # Filter by status
455
- tailor-sdk workflow executions -s RUNNING
456
-
457
- # Get execution details
458
- tailor-sdk workflow executions <execution-id>
459
-
460
- # Get execution details with logs
461
- tailor-sdk workflow executions <execution-id> --logs
462
-
463
- # Wait for execution to complete
464
- tailor-sdk workflow executions <execution-id> -W
465
- ```