@tailor-platform/sdk 1.17.0 → 1.18.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 (76) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/application-Csj7Ow5Q.mjs +8 -0
  3. package/dist/{application-DYfVZVPT.mjs → application-gWUyKuzv.mjs} +211 -1653
  4. package/dist/{application-DYfVZVPT.mjs.map → application-gWUyKuzv.mjs.map} +1 -1
  5. package/dist/brand-BZJCv6UY.mjs +28 -0
  6. package/dist/brand-BZJCv6UY.mjs.map +1 -0
  7. package/dist/cli/index.mjs +38 -20
  8. package/dist/cli/index.mjs.map +1 -1
  9. package/dist/cli/lib.d.mts +20 -33
  10. package/dist/cli/lib.mjs +10 -5
  11. package/dist/cli/lib.mjs.map +1 -1
  12. package/dist/configure/index.d.mts +4 -4
  13. package/dist/configure/index.mjs +10 -19
  14. package/dist/configure/index.mjs.map +1 -1
  15. package/dist/enum-constants-Cwd4qdpa.mjs +115 -0
  16. package/dist/enum-constants-Cwd4qdpa.mjs.map +1 -0
  17. package/dist/file-utils-cqcpFk87.mjs +139 -0
  18. package/dist/file-utils-cqcpFk87.mjs.map +1 -0
  19. package/dist/index-BKXch-td.d.mts +18 -0
  20. package/dist/index-C3Ib7pFc.d.mts +18 -0
  21. package/dist/{index-qQXpN674.d.mts → index-DP8EB9FK.d.mts} +13 -5
  22. package/dist/index-SqWgrTnF.d.mts +20 -0
  23. package/dist/index-sSDpuVQY.d.mts +18 -0
  24. package/dist/{jiti-BrELlEYT.mjs → jiti-DHlauMCo.mjs} +2 -2
  25. package/dist/{jiti-BrELlEYT.mjs.map → jiti-DHlauMCo.mjs.map} +1 -1
  26. package/dist/{job-CULA2Pvf.mjs → job-2Q82qQ6N.mjs} +27 -5
  27. package/dist/job-2Q82qQ6N.mjs.map +1 -0
  28. package/dist/kysely-type-DtUUoAi3.mjs +259 -0
  29. package/dist/kysely-type-DtUUoAi3.mjs.map +1 -0
  30. package/dist/plugin/builtin/enum-constants/index.d.mts +4 -0
  31. package/dist/plugin/builtin/enum-constants/index.mjs +3 -0
  32. package/dist/plugin/builtin/file-utils/index.d.mts +4 -0
  33. package/dist/plugin/builtin/file-utils/index.mjs +3 -0
  34. package/dist/plugin/builtin/kysely-type/index.d.mts +4 -0
  35. package/dist/plugin/builtin/kysely-type/index.mjs +3 -0
  36. package/dist/plugin/builtin/seed/index.d.mts +4 -0
  37. package/dist/plugin/builtin/seed/index.mjs +3 -0
  38. package/dist/plugin/index.d.mts +3 -3
  39. package/dist/plugin/index.mjs +11 -11
  40. package/dist/plugin/index.mjs.map +1 -1
  41. package/dist/{schema-R5TxC5Pn.mjs → schema-WDvc7Zel.mjs} +4 -3
  42. package/dist/schema-WDvc7Zel.mjs.map +1 -0
  43. package/dist/seed-Dm7lrGZ3.mjs +1050 -0
  44. package/dist/seed-Dm7lrGZ3.mjs.map +1 -0
  45. package/dist/{src-DMROgdcL.mjs → src-i4uqS1G4.mjs} +2 -2
  46. package/dist/{src-DMROgdcL.mjs.map → src-i4uqS1G4.mjs.map} +1 -1
  47. package/dist/types-Bhl_wAM2.d.mts +151 -0
  48. package/dist/{types-b-ig8nW_.mjs → types-ClK_HJ0G.mjs} +1 -1
  49. package/dist/{types-b-ig8nW_.mjs.map → types-ClK_HJ0G.mjs.map} +1 -1
  50. package/dist/{types-DzvazVmg.d.mts → types-DdvTxFiD.d.mts} +1380 -1044
  51. package/dist/{update-DQKCUNmr.mjs → update-BoNKMti-.mjs} +285 -112
  52. package/dist/update-BoNKMti-.mjs.map +1 -0
  53. package/dist/utils/test/index.d.mts +4 -4
  54. package/dist/utils/test/index.mjs +3 -2
  55. package/dist/utils/test/index.mjs.map +1 -1
  56. package/docs/cli/application.md +106 -14
  57. package/docs/cli/auth.md +92 -12
  58. package/docs/cli/completion.md +18 -2
  59. package/docs/cli/executor.md +122 -14
  60. package/docs/cli/function.md +32 -4
  61. package/docs/cli/secret.md +134 -18
  62. package/docs/cli/staticwebsite.md +60 -8
  63. package/docs/cli/tailordb.md +148 -20
  64. package/docs/cli/user.md +154 -22
  65. package/docs/cli/workflow.md +100 -12
  66. package/docs/cli/workspace.md +274 -38
  67. package/docs/generator/custom.md +2 -2
  68. package/docs/plugin/custom.md +270 -163
  69. package/docs/plugin/index.md +48 -2
  70. package/package.json +22 -2
  71. package/dist/application-D5ZEr4zk.mjs +0 -4
  72. package/dist/job-CULA2Pvf.mjs.map +0 -1
  73. package/dist/schema-R5TxC5Pn.mjs.map +0 -1
  74. package/dist/types-BeNtD-fA.d.mts +0 -369
  75. package/dist/update-DQKCUNmr.mjs.map +0 -1
  76. /package/dist/{chunk-GMkBE123.mjs → chunk-CqAI0b6X.mjs} +0 -0
@@ -2,18 +2,30 @@
2
2
 
3
3
  Commands for managing executors and executor jobs.
4
4
 
5
- <!-- politty:command:executor:start -->
5
+ <!-- politty:command:executor:heading:start -->
6
6
 
7
7
  ## executor
8
8
 
9
+ <!-- politty:command:executor:heading:end -->
10
+
11
+ <!-- politty:command:executor:description:start -->
12
+
9
13
  Manage executors
10
14
 
15
+ <!-- politty:command:executor:description:end -->
16
+
17
+ <!-- politty:command:executor:usage:start -->
18
+
11
19
  **Usage**
12
20
 
13
21
  ```
14
22
  tailor-sdk executor [command]
15
23
  ```
16
24
 
25
+ <!-- politty:command:executor:usage:end -->
26
+
27
+ <!-- politty:command:executor:subcommands:start -->
28
+
17
29
  **Commands**
18
30
 
19
31
  | Command | Description |
@@ -24,20 +36,32 @@ tailor-sdk executor [command]
24
36
  | [`executor trigger`](#executor-trigger) | Trigger an executor manually. |
25
37
  | [`executor webhook`](#executor-webhook) | Manage executor webhooks |
26
38
 
27
- <!-- politty:command:executor:end -->
39
+ <!-- politty:command:executor:subcommands:end -->
28
40
 
29
- <!-- politty:command:executor list:start -->
41
+ <!-- politty:command:executor list:heading:start -->
30
42
 
31
43
  ### executor list
32
44
 
45
+ <!-- politty:command:executor list:heading:end -->
46
+
47
+ <!-- politty:command:executor list:description:start -->
48
+
33
49
  List all executors
34
50
 
51
+ <!-- politty:command:executor list:description:end -->
52
+
53
+ <!-- politty:command:executor list:usage:start -->
54
+
35
55
  **Usage**
36
56
 
37
57
  ```
38
58
  tailor-sdk executor list [options]
39
59
  ```
40
60
 
61
+ <!-- politty:command:executor list:usage:end -->
62
+
63
+ <!-- politty:command:executor list:options:start -->
64
+
41
65
  **Options**
42
66
 
43
67
  | Option | Alias | Description | Required | Default |
@@ -46,26 +70,42 @@ tailor-sdk executor list [options]
46
70
  | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - |
47
71
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
48
72
 
49
- <!-- politty:command:executor list:end -->
73
+ <!-- politty:command:executor list:options:end -->
50
74
 
51
- <!-- politty:command:executor get:start -->
75
+ <!-- politty:command:executor get:heading:start -->
52
76
 
53
77
  ### executor get
54
78
 
79
+ <!-- politty:command:executor get:heading:end -->
80
+
81
+ <!-- politty:command:executor get:description:start -->
82
+
55
83
  Get executor details
56
84
 
85
+ <!-- politty:command:executor get:description:end -->
86
+
87
+ <!-- politty:command:executor get:usage:start -->
88
+
57
89
  **Usage**
58
90
 
59
91
  ```
60
92
  tailor-sdk executor get [options] <name>
61
93
  ```
62
94
 
95
+ <!-- politty:command:executor get:usage:end -->
96
+
97
+ <!-- politty:command:executor get:arguments:start -->
98
+
63
99
  **Arguments**
64
100
 
65
101
  | Argument | Description | Required |
66
102
  | -------- | ------------- | -------- |
67
103
  | `name` | Executor name | Yes |
68
104
 
105
+ <!-- politty:command:executor get:arguments:end -->
106
+
107
+ <!-- politty:command:executor get:options:start -->
108
+
69
109
  **Options**
70
110
 
71
111
  | Option | Alias | Description | Required | Default |
@@ -74,20 +114,32 @@ tailor-sdk executor get [options] <name>
74
114
  | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - |
75
115
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
76
116
 
77
- <!-- politty:command:executor get:end -->
117
+ <!-- politty:command:executor get:options:end -->
78
118
 
79
- <!-- politty:command:executor jobs:start -->
119
+ <!-- politty:command:executor jobs:heading:start -->
80
120
 
81
121
  ### executor jobs
82
122
 
123
+ <!-- politty:command:executor jobs:heading:end -->
124
+
125
+ <!-- politty:command:executor jobs:description:start -->
126
+
83
127
  List or get executor jobs.
84
128
 
129
+ <!-- politty:command:executor jobs:description:end -->
130
+
131
+ <!-- politty:command:executor jobs:usage:start -->
132
+
85
133
  **Usage**
86
134
 
87
135
  ```
88
136
  tailor-sdk executor jobs [options] <executorName> [jobId]
89
137
  ```
90
138
 
139
+ <!-- politty:command:executor jobs:usage:end -->
140
+
141
+ <!-- politty:command:executor jobs:arguments:start -->
142
+
91
143
  **Arguments**
92
144
 
93
145
  | Argument | Description | Required |
@@ -95,6 +147,10 @@ tailor-sdk executor jobs [options] <executorName> [jobId]
95
147
  | `executorName` | Executor name | Yes |
96
148
  | `jobId` | Job ID (if provided, shows job details) | No |
97
149
 
150
+ <!-- politty:command:executor jobs:arguments:end -->
151
+
152
+ <!-- politty:command:executor jobs:options:start -->
153
+
98
154
  **Options**
99
155
 
100
156
  | Option | Alias | Description | Required | Default |
@@ -109,6 +165,10 @@ tailor-sdk executor jobs [options] <executorName> [jobId]
109
165
  | `--logs` | `-l` | Display function execution logs after completion (requires --wait) | No | `false` |
110
166
  | `--limit <LIMIT>` | - | Maximum number of jobs to list (default: 50, max: 1000) (list mode only) | No | - |
111
167
 
168
+ <!-- politty:command:executor jobs:options:end -->
169
+
170
+ <!-- politty:command:executor jobs:examples:start -->
171
+
112
172
  **Examples**
113
173
 
114
174
  **List jobs for an executor (default: 50 jobs)**
@@ -153,26 +213,42 @@ $ tailor-sdk executor jobs my-executor <job-id> -W
153
213
  $ tailor-sdk executor jobs my-executor <job-id> -W -l
154
214
  ```
155
215
 
156
- <!-- politty:command:executor jobs:end -->
216
+ <!-- politty:command:executor jobs:examples:end -->
157
217
 
158
- <!-- politty:command:executor trigger:start -->
218
+ <!-- politty:command:executor trigger:heading:start -->
159
219
 
160
220
  ### executor trigger
161
221
 
222
+ <!-- politty:command:executor trigger:heading:end -->
223
+
224
+ <!-- politty:command:executor trigger:description:start -->
225
+
162
226
  Trigger an executor manually.
163
227
 
228
+ <!-- politty:command:executor trigger:description:end -->
229
+
230
+ <!-- politty:command:executor trigger:usage:start -->
231
+
164
232
  **Usage**
165
233
 
166
234
  ```
167
235
  tailor-sdk executor trigger [options] <executorName>
168
236
  ```
169
237
 
238
+ <!-- politty:command:executor trigger:usage:end -->
239
+
240
+ <!-- politty:command:executor trigger:arguments:start -->
241
+
170
242
  **Arguments**
171
243
 
172
244
  | Argument | Description | Required |
173
245
  | -------------- | ------------- | -------- |
174
246
  | `executorName` | Executor name | Yes |
175
247
 
248
+ <!-- politty:command:executor trigger:arguments:end -->
249
+
250
+ <!-- politty:command:executor trigger:options:start -->
251
+
176
252
  **Options**
177
253
 
178
254
  | Option | Alias | Description | Required | Default |
@@ -186,6 +262,10 @@ tailor-sdk executor trigger [options] <executorName>
186
262
  | `--interval <INTERVAL>` | `-i` | Polling interval when using --wait (e.g., '3s', '500ms', '1m') | No | `"3s"` |
187
263
  | `--logs` | `-l` | Display function execution logs after completion (requires --wait) | No | `false` |
188
264
 
265
+ <!-- politty:command:executor trigger:options:end -->
266
+
267
+ <!-- politty:command:executor trigger:examples:start -->
268
+
189
269
  **Examples**
190
270
 
191
271
  **Trigger an executor**
@@ -218,6 +298,10 @@ $ tailor-sdk executor trigger my-executor -W
218
298
  $ tailor-sdk executor trigger my-executor -W -l
219
299
  ```
220
300
 
301
+ <!-- politty:command:executor trigger:examples:end -->
302
+
303
+ <!-- politty:command:executor trigger:notes:start -->
304
+
221
305
  **Notes**
222
306
 
223
307
  Only executors with `INCOMING_WEBHOOK` or `SCHEDULE` trigger types can be triggered manually.
@@ -235,40 +319,64 @@ When using `--wait`, the CLI tracks not only the executor job but also any downs
235
319
 
236
320
  The `--logs` option displays logs from the downstream execution when available.
237
321
 
238
- <!-- politty:command:executor trigger:end -->
322
+ <!-- politty:command:executor trigger:notes:end -->
239
323
 
240
- <!-- politty:command:executor webhook:start -->
324
+ <!-- politty:command:executor webhook:heading:start -->
241
325
 
242
326
  ### executor webhook
243
327
 
328
+ <!-- politty:command:executor webhook:heading:end -->
329
+
330
+ <!-- politty:command:executor webhook:description:start -->
331
+
244
332
  Manage executor webhooks
245
333
 
334
+ <!-- politty:command:executor webhook:description:end -->
335
+
336
+ <!-- politty:command:executor webhook:usage:start -->
337
+
246
338
  **Usage**
247
339
 
248
340
  ```
249
341
  tailor-sdk executor webhook [command]
250
342
  ```
251
343
 
344
+ <!-- politty:command:executor webhook:usage:end -->
345
+
346
+ <!-- politty:command:executor webhook:subcommands:start -->
347
+
252
348
  **Commands**
253
349
 
254
350
  | Command | Description |
255
351
  | ------------------------------------------------- | --------------------------------------------- |
256
352
  | [`executor webhook list`](#executor-webhook-list) | List executors with incoming webhook triggers |
257
353
 
258
- <!-- politty:command:executor webhook:end -->
354
+ <!-- politty:command:executor webhook:subcommands:end -->
259
355
 
260
- <!-- politty:command:executor webhook list:start -->
356
+ <!-- politty:command:executor webhook list:heading:start -->
261
357
 
262
358
  #### executor webhook list
263
359
 
360
+ <!-- politty:command:executor webhook list:heading:end -->
361
+
362
+ <!-- politty:command:executor webhook list:description:start -->
363
+
264
364
  List executors with incoming webhook triggers
265
365
 
366
+ <!-- politty:command:executor webhook list:description:end -->
367
+
368
+ <!-- politty:command:executor webhook list:usage:start -->
369
+
266
370
  **Usage**
267
371
 
268
372
  ```
269
373
  tailor-sdk executor webhook list [options]
270
374
  ```
271
375
 
376
+ <!-- politty:command:executor webhook list:usage:end -->
377
+
378
+ <!-- politty:command:executor webhook list:options:start -->
379
+
272
380
  **Options**
273
381
 
274
382
  | Option | Alias | Description | Required | Default |
@@ -277,4 +385,4 @@ tailor-sdk executor webhook list [options]
277
385
  | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - |
278
386
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
279
387
 
280
- <!-- politty:command:executor webhook list:end -->
388
+ <!-- politty:command:executor webhook list:options:end -->
@@ -2,43 +2,71 @@
2
2
 
3
3
  Commands for viewing function execution logs.
4
4
 
5
- <!-- politty:command:function:start -->
5
+ <!-- politty:command:function:heading:start -->
6
6
 
7
7
  ## function
8
8
 
9
+ <!-- politty:command:function:heading:end -->
10
+
11
+ <!-- politty:command:function:description:start -->
12
+
9
13
  Manage functions
10
14
 
15
+ <!-- politty:command:function:description:end -->
16
+
17
+ <!-- politty:command:function:usage:start -->
18
+
11
19
  **Usage**
12
20
 
13
21
  ```
14
22
  tailor-sdk function [command]
15
23
  ```
16
24
 
25
+ <!-- politty:command:function:usage:end -->
26
+
27
+ <!-- politty:command:function:subcommands:start -->
28
+
17
29
  **Commands**
18
30
 
19
31
  | Command | Description |
20
32
  | --------------------------------- | ------------------------------------ |
21
33
  | [`function logs`](#function-logs) | List or get function execution logs. |
22
34
 
23
- <!-- politty:command:function:end -->
24
- <!-- politty:command:function logs:start -->
35
+ <!-- politty:command:function:subcommands:end -->
36
+ <!-- politty:command:function logs:heading:start -->
25
37
 
26
38
  ### function logs
27
39
 
40
+ <!-- politty:command:function logs:heading:end -->
41
+
42
+ <!-- politty:command:function logs:description:start -->
43
+
28
44
  List or get function execution logs.
29
45
 
46
+ <!-- politty:command:function logs:description:end -->
47
+
48
+ <!-- politty:command:function logs:usage:start -->
49
+
30
50
  **Usage**
31
51
 
32
52
  ```
33
53
  tailor-sdk function logs [options] [executionId]
34
54
  ```
35
55
 
56
+ <!-- politty:command:function logs:usage:end -->
57
+
58
+ <!-- politty:command:function logs:arguments:start -->
59
+
36
60
  **Arguments**
37
61
 
38
62
  | Argument | Description | Required |
39
63
  | ------------- | --------------------------------------------------- | -------- |
40
64
  | `executionId` | Execution ID (if provided, shows details with logs) | No |
41
65
 
66
+ <!-- politty:command:function logs:arguments:end -->
67
+
68
+ <!-- politty:command:function logs:options:start -->
69
+
42
70
  **Options**
43
71
 
44
72
  | Option | Alias | Description | Required | Default |
@@ -47,7 +75,7 @@ tailor-sdk function logs [options] [executionId]
47
75
  | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - |
48
76
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
49
77
 
50
- <!-- politty:command:function logs:end -->
78
+ <!-- politty:command:function logs:options:end -->
51
79
 
52
80
  **Usage Examples:**
53
81