@tailor-platform/sdk 1.17.1 → 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 (77) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/application-Csj7Ow5Q.mjs +8 -0
  3. package/dist/{application-BMDE8KqK.mjs → application-gWUyKuzv.mjs} +120 -1618
  4. package/dist/application-gWUyKuzv.mjs.map +1 -0
  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 +10 -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-CVcYqZSf.d.mts → index-DP8EB9FK.d.mts} +12 -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-CZZBCaxB.d.mts → types-DdvTxFiD.d.mts} +1324 -988
  51. package/dist/{update-CUBVjZbL.mjs → update-BoNKMti-.mjs} +268 -97
  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-BMDE8KqK.mjs.map +0 -1
  72. package/dist/application-Dni_W16P.mjs +0 -4
  73. package/dist/job-CULA2Pvf.mjs.map +0 -1
  74. package/dist/schema-R5TxC5Pn.mjs.map +0 -1
  75. package/dist/types-DthzUFfx.d.mts +0 -372
  76. package/dist/update-CUBVjZbL.mjs.map +0 -1
  77. /package/dist/{chunk-GMkBE123.mjs → chunk-CqAI0b6X.mjs} +0 -0
@@ -2,18 +2,30 @@
2
2
 
3
3
  Commands for managing Secret Manager vaults and secrets.
4
4
 
5
- <!-- politty:command:secret:start -->
5
+ <!-- politty:command:secret:heading:start -->
6
6
 
7
7
  ## secret
8
8
 
9
+ <!-- politty:command:secret:heading:end -->
10
+
11
+ <!-- politty:command:secret:description:start -->
12
+
9
13
  Manage Secret Manager vaults and secrets.
10
14
 
15
+ <!-- politty:command:secret:description:end -->
16
+
17
+ <!-- politty:command:secret:usage:start -->
18
+
11
19
  **Usage**
12
20
 
13
21
  ```
14
22
  tailor-sdk secret [command]
15
23
  ```
16
24
 
25
+ <!-- politty:command:secret:usage:end -->
26
+
27
+ <!-- politty:command:secret:subcommands:start -->
28
+
17
29
  **Commands**
18
30
 
19
31
  | Command | Description |
@@ -24,19 +36,31 @@ tailor-sdk secret [command]
24
36
  | [`secret update`](#secret-update) | Update a secret in a vault. |
25
37
  | [`secret vault`](#secret-vault) | Manage Secret Manager vaults. |
26
38
 
27
- <!-- politty:command:secret:end -->
28
- <!-- politty:command:secret vault:start -->
39
+ <!-- politty:command:secret:subcommands:end -->
40
+ <!-- politty:command:secret vault:heading:start -->
29
41
 
30
42
  ### secret vault
31
43
 
44
+ <!-- politty:command:secret vault:heading:end -->
45
+
46
+ <!-- politty:command:secret vault:description:start -->
47
+
32
48
  Manage Secret Manager vaults.
33
49
 
50
+ <!-- politty:command:secret vault:description:end -->
51
+
52
+ <!-- politty:command:secret vault:usage:start -->
53
+
34
54
  **Usage**
35
55
 
36
56
  ```
37
57
  tailor-sdk secret vault [command]
38
58
  ```
39
59
 
60
+ <!-- politty:command:secret vault:usage:end -->
61
+
62
+ <!-- politty:command:secret vault:subcommands:start -->
63
+
40
64
  **Commands**
41
65
 
42
66
  | Command | Description |
@@ -45,25 +69,41 @@ tailor-sdk secret vault [command]
45
69
  | [`secret vault delete`](#secret-vault-delete) | Delete a Secret Manager vault. |
46
70
  | [`secret vault list`](#secret-vault-list) | List all Secret Manager vaults in the workspace. |
47
71
 
48
- <!-- politty:command:secret vault:end -->
49
- <!-- politty:command:secret vault create:start -->
72
+ <!-- politty:command:secret vault:subcommands:end -->
73
+ <!-- politty:command:secret vault create:heading:start -->
50
74
 
51
75
  #### secret vault create
52
76
 
77
+ <!-- politty:command:secret vault create:heading:end -->
78
+
79
+ <!-- politty:command:secret vault create:description:start -->
80
+
53
81
  Create a new Secret Manager vault.
54
82
 
83
+ <!-- politty:command:secret vault create:description:end -->
84
+
85
+ <!-- politty:command:secret vault create:usage:start -->
86
+
55
87
  **Usage**
56
88
 
57
89
  ```
58
90
  tailor-sdk secret vault create [options] <name>
59
91
  ```
60
92
 
93
+ <!-- politty:command:secret vault create:usage:end -->
94
+
95
+ <!-- politty:command:secret vault create:arguments:start -->
96
+
61
97
  **Arguments**
62
98
 
63
99
  | Argument | Description | Required |
64
100
  | -------- | ----------- | -------- |
65
101
  | `name` | Vault name | Yes |
66
102
 
103
+ <!-- politty:command:secret vault create:arguments:end -->
104
+
105
+ <!-- politty:command:secret vault create:options:start -->
106
+
67
107
  **Options**
68
108
 
69
109
  | Option | Alias | Description | Required | Default |
@@ -71,25 +111,41 @@ tailor-sdk secret vault create [options] <name>
71
111
  | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - |
72
112
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
73
113
 
74
- <!-- politty:command:secret vault create:end -->
75
- <!-- politty:command:secret vault delete:start -->
114
+ <!-- politty:command:secret vault create:options:end -->
115
+ <!-- politty:command:secret vault delete:heading:start -->
76
116
 
77
117
  #### secret vault delete
78
118
 
119
+ <!-- politty:command:secret vault delete:heading:end -->
120
+
121
+ <!-- politty:command:secret vault delete:description:start -->
122
+
79
123
  Delete a Secret Manager vault.
80
124
 
125
+ <!-- politty:command:secret vault delete:description:end -->
126
+
127
+ <!-- politty:command:secret vault delete:usage:start -->
128
+
81
129
  **Usage**
82
130
 
83
131
  ```
84
132
  tailor-sdk secret vault delete [options] <name>
85
133
  ```
86
134
 
135
+ <!-- politty:command:secret vault delete:usage:end -->
136
+
137
+ <!-- politty:command:secret vault delete:arguments:start -->
138
+
87
139
  **Arguments**
88
140
 
89
141
  | Argument | Description | Required |
90
142
  | -------- | ----------- | -------- |
91
143
  | `name` | Vault name | Yes |
92
144
 
145
+ <!-- politty:command:secret vault delete:arguments:end -->
146
+
147
+ <!-- politty:command:secret vault delete:options:start -->
148
+
93
149
  **Options**
94
150
 
95
151
  | Option | Alias | Description | Required | Default |
@@ -98,19 +154,31 @@ tailor-sdk secret vault delete [options] <name>
98
154
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
99
155
  | `--yes` | `-y` | Skip confirmation prompts | No | `false` |
100
156
 
101
- <!-- politty:command:secret vault delete:end -->
102
- <!-- politty:command:secret vault list:start -->
157
+ <!-- politty:command:secret vault delete:options:end -->
158
+ <!-- politty:command:secret vault list:heading:start -->
103
159
 
104
160
  #### secret vault list
105
161
 
162
+ <!-- politty:command:secret vault list:heading:end -->
163
+
164
+ <!-- politty:command:secret vault list:description:start -->
165
+
106
166
  List all Secret Manager vaults in the workspace.
107
167
 
168
+ <!-- politty:command:secret vault list:description:end -->
169
+
170
+ <!-- politty:command:secret vault list:usage:start -->
171
+
108
172
  **Usage**
109
173
 
110
174
  ```
111
175
  tailor-sdk secret vault list [options]
112
176
  ```
113
177
 
178
+ <!-- politty:command:secret vault list:usage:end -->
179
+
180
+ <!-- politty:command:secret vault list:options:start -->
181
+
114
182
  **Options**
115
183
 
116
184
  | Option | Alias | Description | Required | Default |
@@ -119,19 +187,31 @@ tailor-sdk secret vault list [options]
119
187
  | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - |
120
188
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
121
189
 
122
- <!-- politty:command:secret vault list:end -->
123
- <!-- politty:command:secret create:start -->
190
+ <!-- politty:command:secret vault list:options:end -->
191
+ <!-- politty:command:secret create:heading:start -->
124
192
 
125
193
  ### secret create
126
194
 
195
+ <!-- politty:command:secret create:heading:end -->
196
+
197
+ <!-- politty:command:secret create:description:start -->
198
+
127
199
  Create a secret in a vault.
128
200
 
201
+ <!-- politty:command:secret create:description:end -->
202
+
203
+ <!-- politty:command:secret create:usage:start -->
204
+
129
205
  **Usage**
130
206
 
131
207
  ```
132
208
  tailor-sdk secret create [options]
133
209
  ```
134
210
 
211
+ <!-- politty:command:secret create:usage:end -->
212
+
213
+ <!-- politty:command:secret create:options:start -->
214
+
135
215
  **Options**
136
216
 
137
217
  | Option | Alias | Description | Required | Default |
@@ -142,19 +222,31 @@ tailor-sdk secret create [options]
142
222
  | `--name <NAME>` | `-n` | Secret name | Yes | - |
143
223
  | `--value <VALUE>` | `-v` | Secret value | Yes | - |
144
224
 
145
- <!-- politty:command:secret create:end -->
146
- <!-- politty:command:secret update:start -->
225
+ <!-- politty:command:secret create:options:end -->
226
+ <!-- politty:command:secret update:heading:start -->
147
227
 
148
228
  ### secret update
149
229
 
230
+ <!-- politty:command:secret update:heading:end -->
231
+
232
+ <!-- politty:command:secret update:description:start -->
233
+
150
234
  Update a secret in a vault.
151
235
 
236
+ <!-- politty:command:secret update:description:end -->
237
+
238
+ <!-- politty:command:secret update:usage:start -->
239
+
152
240
  **Usage**
153
241
 
154
242
  ```
155
243
  tailor-sdk secret update [options]
156
244
  ```
157
245
 
246
+ <!-- politty:command:secret update:usage:end -->
247
+
248
+ <!-- politty:command:secret update:options:start -->
249
+
158
250
  **Options**
159
251
 
160
252
  | Option | Alias | Description | Required | Default |
@@ -165,19 +257,31 @@ tailor-sdk secret update [options]
165
257
  | `--name <NAME>` | `-n` | Secret name | Yes | - |
166
258
  | `--value <VALUE>` | `-v` | Secret value | Yes | - |
167
259
 
168
- <!-- politty:command:secret update:end -->
169
- <!-- politty:command:secret list:start -->
260
+ <!-- politty:command:secret update:options:end -->
261
+ <!-- politty:command:secret list:heading:start -->
170
262
 
171
263
  ### secret list
172
264
 
265
+ <!-- politty:command:secret list:heading:end -->
266
+
267
+ <!-- politty:command:secret list:description:start -->
268
+
173
269
  List all secrets in a vault.
174
270
 
271
+ <!-- politty:command:secret list:description:end -->
272
+
273
+ <!-- politty:command:secret list:usage:start -->
274
+
175
275
  **Usage**
176
276
 
177
277
  ```
178
278
  tailor-sdk secret list [options]
179
279
  ```
180
280
 
281
+ <!-- politty:command:secret list:usage:end -->
282
+
283
+ <!-- politty:command:secret list:options:start -->
284
+
181
285
  **Options**
182
286
 
183
287
  | Option | Alias | Description | Required | Default |
@@ -187,19 +291,31 @@ tailor-sdk secret list [options]
187
291
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
188
292
  | `--vault-name <VAULT_NAME>` | `-V` | Vault name | Yes | - |
189
293
 
190
- <!-- politty:command:secret list:end -->
191
- <!-- politty:command:secret delete:start -->
294
+ <!-- politty:command:secret list:options:end -->
295
+ <!-- politty:command:secret delete:heading:start -->
192
296
 
193
297
  ### secret delete
194
298
 
299
+ <!-- politty:command:secret delete:heading:end -->
300
+
301
+ <!-- politty:command:secret delete:description:start -->
302
+
195
303
  Delete a secret in a vault.
196
304
 
305
+ <!-- politty:command:secret delete:description:end -->
306
+
307
+ <!-- politty:command:secret delete:usage:start -->
308
+
197
309
  **Usage**
198
310
 
199
311
  ```
200
312
  tailor-sdk secret delete [options]
201
313
  ```
202
314
 
315
+ <!-- politty:command:secret delete:usage:end -->
316
+
317
+ <!-- politty:command:secret delete:options:start -->
318
+
203
319
  **Options**
204
320
 
205
321
  | Option | Alias | Description | Required | Default |
@@ -210,4 +326,4 @@ tailor-sdk secret delete [options]
210
326
  | `--name <NAME>` | `-n` | Secret name | Yes | - |
211
327
  | `--yes` | `-y` | Skip confirmation prompts | No | `false` |
212
328
 
213
- <!-- politty:command:secret delete:end -->
329
+ <!-- politty:command:secret delete:options:end -->
@@ -2,18 +2,30 @@
2
2
 
3
3
  Commands for managing and deploying static websites.
4
4
 
5
- <!-- politty:command:staticwebsite:start -->
5
+ <!-- politty:command:staticwebsite:heading:start -->
6
6
 
7
7
  ## staticwebsite
8
8
 
9
+ <!-- politty:command:staticwebsite:heading:end -->
10
+
11
+ <!-- politty:command:staticwebsite:description:start -->
12
+
9
13
  Manage static websites in your workspace.
10
14
 
15
+ <!-- politty:command:staticwebsite:description:end -->
16
+
17
+ <!-- politty:command:staticwebsite:usage:start -->
18
+
11
19
  **Usage**
12
20
 
13
21
  ```
14
22
  tailor-sdk staticwebsite [command]
15
23
  ```
16
24
 
25
+ <!-- politty:command:staticwebsite:usage:end -->
26
+
27
+ <!-- politty:command:staticwebsite:subcommands:start -->
28
+
17
29
  **Commands**
18
30
 
19
31
  | Command | Description |
@@ -22,19 +34,31 @@ tailor-sdk staticwebsite [command]
22
34
  | [`staticwebsite get`](#staticwebsite-get) | Get details of a specific static website. |
23
35
  | [`staticwebsite list`](#staticwebsite-list) | List all static websites in a workspace. |
24
36
 
25
- <!-- politty:command:staticwebsite:end -->
26
- <!-- politty:command:staticwebsite deploy:start -->
37
+ <!-- politty:command:staticwebsite:subcommands:end -->
38
+ <!-- politty:command:staticwebsite deploy:heading:start -->
27
39
 
28
40
  ### staticwebsite deploy
29
41
 
42
+ <!-- politty:command:staticwebsite deploy:heading:end -->
43
+
44
+ <!-- politty:command:staticwebsite deploy:description:start -->
45
+
30
46
  Deploy a static website from a local build directory.
31
47
 
48
+ <!-- politty:command:staticwebsite deploy:description:end -->
49
+
50
+ <!-- politty:command:staticwebsite deploy:usage:start -->
51
+
32
52
  **Usage**
33
53
 
34
54
  ```
35
55
  tailor-sdk staticwebsite deploy [options]
36
56
  ```
37
57
 
58
+ <!-- politty:command:staticwebsite deploy:usage:end -->
59
+
60
+ <!-- politty:command:staticwebsite deploy:options:start -->
61
+
38
62
  **Options**
39
63
 
40
64
  | Option | Alias | Description | Required | Default |
@@ -45,19 +69,31 @@ tailor-sdk staticwebsite deploy [options]
45
69
  | `--name <NAME>` | `-n` | Static website name | Yes | - |
46
70
  | `--dir <DIR>` | `-d` | Path to the static website files | Yes | - |
47
71
 
48
- <!-- politty:command:staticwebsite deploy:end -->
49
- <!-- politty:command:staticwebsite list:start -->
72
+ <!-- politty:command:staticwebsite deploy:options:end -->
73
+ <!-- politty:command:staticwebsite list:heading:start -->
50
74
 
51
75
  ### staticwebsite list
52
76
 
77
+ <!-- politty:command:staticwebsite list:heading:end -->
78
+
79
+ <!-- politty:command:staticwebsite list:description:start -->
80
+
53
81
  List all static websites in a workspace.
54
82
 
83
+ <!-- politty:command:staticwebsite list:description:end -->
84
+
85
+ <!-- politty:command:staticwebsite list:usage:start -->
86
+
55
87
  **Usage**
56
88
 
57
89
  ```
58
90
  tailor-sdk staticwebsite list [options]
59
91
  ```
60
92
 
93
+ <!-- politty:command:staticwebsite list:usage:end -->
94
+
95
+ <!-- politty:command:staticwebsite list:options:start -->
96
+
61
97
  **Options**
62
98
 
63
99
  | Option | Alias | Description | Required | Default |
@@ -66,25 +102,41 @@ tailor-sdk staticwebsite list [options]
66
102
  | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - |
67
103
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
68
104
 
69
- <!-- politty:command:staticwebsite list:end -->
70
- <!-- politty:command:staticwebsite get:start -->
105
+ <!-- politty:command:staticwebsite list:options:end -->
106
+ <!-- politty:command:staticwebsite get:heading:start -->
71
107
 
72
108
  ### staticwebsite get
73
109
 
110
+ <!-- politty:command:staticwebsite get:heading:end -->
111
+
112
+ <!-- politty:command:staticwebsite get:description:start -->
113
+
74
114
  Get details of a specific static website.
75
115
 
116
+ <!-- politty:command:staticwebsite get:description:end -->
117
+
118
+ <!-- politty:command:staticwebsite get:usage:start -->
119
+
76
120
  **Usage**
77
121
 
78
122
  ```
79
123
  tailor-sdk staticwebsite get [options] <name>
80
124
  ```
81
125
 
126
+ <!-- politty:command:staticwebsite get:usage:end -->
127
+
128
+ <!-- politty:command:staticwebsite get:arguments:start -->
129
+
82
130
  **Arguments**
83
131
 
84
132
  | Argument | Description | Required |
85
133
  | -------- | ------------------- | -------- |
86
134
  | `name` | Static website name | Yes |
87
135
 
136
+ <!-- politty:command:staticwebsite get:arguments:end -->
137
+
138
+ <!-- politty:command:staticwebsite get:options:start -->
139
+
88
140
  **Options**
89
141
 
90
142
  | Option | Alias | Description | Required | Default |
@@ -93,7 +145,7 @@ tailor-sdk staticwebsite get [options] <name>
93
145
  | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - |
94
146
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - |
95
147
 
96
- <!-- politty:command:staticwebsite get:end -->
148
+ <!-- politty:command:staticwebsite get:options:end -->
97
149
 
98
150
  **Example:**
99
151