@tailor-platform/sdk 1.17.1 → 1.19.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 (85) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/{application-BMDE8KqK.mjs → application-A6PZjujv.mjs} +192 -1673
  3. package/dist/application-A6PZjujv.mjs.map +1 -0
  4. package/dist/application-nPS5veK6.mjs +9 -0
  5. package/dist/brand-BZJCv6UY.mjs +28 -0
  6. package/dist/brand-BZJCv6UY.mjs.map +1 -0
  7. package/dist/cli/index.mjs +40 -20
  8. package/dist/cli/index.mjs.map +1 -1
  9. package/dist/cli/lib.d.mts +16 -33
  10. package/dist/cli/lib.mjs +12 -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-CGVvu3dd.mjs +115 -0
  16. package/dist/enum-constants-CGVvu3dd.mjs.map +1 -0
  17. package/dist/file-utils-GX_tGWl4.mjs +139 -0
  18. package/dist/file-utils-GX_tGWl4.mjs.map +1 -0
  19. package/dist/index-B6pvy1MK.d.mts +20 -0
  20. package/dist/index-B91ZpOcd.d.mts +18 -0
  21. package/dist/index-CPzbMghQ.d.mts +18 -0
  22. package/dist/{index-CVcYqZSf.d.mts → index-ClLZCbcm.d.mts} +18 -5
  23. package/dist/index-DDqKNFh4.d.mts +18 -0
  24. package/dist/interceptor-D8MeZOxX.mjs +33 -0
  25. package/dist/interceptor-D8MeZOxX.mjs.map +1 -0
  26. package/dist/{jiti-BrELlEYT.mjs → jiti-DfS9jItj.mjs} +2 -2
  27. package/dist/{jiti-BrELlEYT.mjs.map → jiti-DfS9jItj.mjs.map} +1 -1
  28. package/dist/{job-CULA2Pvf.mjs → job-2Q82qQ6N.mjs} +27 -5
  29. package/dist/job-2Q82qQ6N.mjs.map +1 -0
  30. package/dist/kysely-type-Cpq5TNGY.mjs +260 -0
  31. package/dist/kysely-type-Cpq5TNGY.mjs.map +1 -0
  32. package/dist/package-json-DUY2kB6z.mjs +17 -0
  33. package/dist/package-json-DUY2kB6z.mjs.map +1 -0
  34. package/dist/package-json-Dd1AnA5F.mjs +3 -0
  35. package/dist/plugin/builtin/enum-constants/index.d.mts +4 -0
  36. package/dist/plugin/builtin/enum-constants/index.mjs +3 -0
  37. package/dist/plugin/builtin/file-utils/index.d.mts +4 -0
  38. package/dist/plugin/builtin/file-utils/index.mjs +3 -0
  39. package/dist/plugin/builtin/kysely-type/index.d.mts +4 -0
  40. package/dist/plugin/builtin/kysely-type/index.mjs +3 -0
  41. package/dist/plugin/builtin/seed/index.d.mts +4 -0
  42. package/dist/plugin/builtin/seed/index.mjs +3 -0
  43. package/dist/plugin/index.d.mts +3 -3
  44. package/dist/plugin/index.mjs +11 -11
  45. package/dist/plugin/index.mjs.map +1 -1
  46. package/dist/{schema-R5TxC5Pn.mjs → schema-D5Cpd8fQ.mjs} +48 -5
  47. package/dist/schema-D5Cpd8fQ.mjs.map +1 -0
  48. package/dist/seed-CeUEANfQ.mjs +1050 -0
  49. package/dist/seed-CeUEANfQ.mjs.map +1 -0
  50. package/dist/{src-DMROgdcL.mjs → src-Bb1UVstT.mjs} +2 -2
  51. package/dist/{src-DMROgdcL.mjs.map → src-Bb1UVstT.mjs.map} +1 -1
  52. package/dist/telemetry-9A1BZqbl.mjs +3 -0
  53. package/dist/telemetry-rFq0QdvJ.mjs +84 -0
  54. package/dist/telemetry-rFq0QdvJ.mjs.map +1 -0
  55. package/dist/types-CJF3Y1x8.d.mts +158 -0
  56. package/dist/{types-CZZBCaxB.d.mts → types-CblXasFV.d.mts} +1405 -1045
  57. package/dist/{types-b-ig8nW_.mjs → types-ClK_HJ0G.mjs} +1 -1
  58. package/dist/{types-b-ig8nW_.mjs.map → types-ClK_HJ0G.mjs.map} +1 -1
  59. package/dist/{update-CUBVjZbL.mjs → update-Cr5c7h1r.mjs} +485 -244
  60. package/dist/update-Cr5c7h1r.mjs.map +1 -0
  61. package/dist/utils/test/index.d.mts +4 -4
  62. package/dist/utils/test/index.mjs +3 -2
  63. package/dist/utils/test/index.mjs.map +1 -1
  64. package/docs/cli/application.md +106 -14
  65. package/docs/cli/auth.md +92 -12
  66. package/docs/cli/completion.md +18 -2
  67. package/docs/cli/executor.md +122 -14
  68. package/docs/cli/function.md +32 -4
  69. package/docs/cli/secret.md +134 -18
  70. package/docs/cli/staticwebsite.md +60 -8
  71. package/docs/cli/tailordb.md +148 -20
  72. package/docs/cli/user.md +154 -22
  73. package/docs/cli/workflow.md +100 -12
  74. package/docs/cli/workspace.md +274 -38
  75. package/docs/generator/custom.md +2 -2
  76. package/docs/plugin/custom.md +270 -163
  77. package/docs/plugin/index.md +48 -2
  78. package/package.json +28 -2
  79. package/dist/application-BMDE8KqK.mjs.map +0 -1
  80. package/dist/application-Dni_W16P.mjs +0 -4
  81. package/dist/job-CULA2Pvf.mjs.map +0 -1
  82. package/dist/schema-R5TxC5Pn.mjs.map +0 -1
  83. package/dist/types-DthzUFfx.d.mts +0 -372
  84. package/dist/update-CUBVjZbL.mjs.map +0 -1
  85. /package/dist/{chunk-GMkBE123.mjs → chunk-CqAI0b6X.mjs} +0 -0
@@ -2,18 +2,30 @@
2
2
 
3
3
  Commands for managing TailorDB tables, data, and schema migrations.
4
4
 
5
- <!-- politty:command:tailordb:start -->
5
+ <!-- politty:command:tailordb:heading:start -->
6
6
 
7
7
  ## tailordb
8
8
 
9
+ <!-- politty:command:tailordb:heading:end -->
10
+
11
+ <!-- politty:command:tailordb:description:start -->
12
+
9
13
  Manage TailorDB tables and data.
10
14
 
15
+ <!-- politty:command:tailordb:description:end -->
16
+
17
+ <!-- politty:command:tailordb:usage:start -->
18
+
11
19
  **Usage**
12
20
 
13
21
  ```
14
22
  tailor-sdk tailordb [command]
15
23
  ```
16
24
 
25
+ <!-- politty:command:tailordb:usage:end -->
26
+
27
+ <!-- politty:command:tailordb:subcommands:start -->
28
+
17
29
  **Commands**
18
30
 
19
31
  | Command | Description |
@@ -22,25 +34,41 @@ tailor-sdk tailordb [command]
22
34
  | [`tailordb migration`](#tailordb-migration) | Manage TailorDB schema migrations. |
23
35
  | [`tailordb truncate`](#tailordb-truncate) | Truncate (delete all records from) TailorDB tables. |
24
36
 
25
- <!-- politty:command:tailordb:end -->
26
- <!-- politty:command:tailordb truncate:start -->
37
+ <!-- politty:command:tailordb:subcommands:end -->
38
+ <!-- politty:command:tailordb truncate:heading:start -->
27
39
 
28
40
  ### tailordb truncate
29
41
 
42
+ <!-- politty:command:tailordb truncate:heading:end -->
43
+
44
+ <!-- politty:command:tailordb truncate:description:start -->
45
+
30
46
  Truncate (delete all records from) TailorDB tables.
31
47
 
48
+ <!-- politty:command:tailordb truncate:description:end -->
49
+
50
+ <!-- politty:command:tailordb truncate:usage:start -->
51
+
32
52
  **Usage**
33
53
 
34
54
  ```
35
55
  tailor-sdk tailordb truncate [options] [types]
36
56
  ```
37
57
 
58
+ <!-- politty:command:tailordb truncate:usage:end -->
59
+
60
+ <!-- politty:command:tailordb truncate:arguments:start -->
61
+
38
62
  **Arguments**
39
63
 
40
64
  | Argument | Description | Required |
41
65
  | -------- | ---------------------- | -------- |
42
66
  | `types` | Type names to truncate | No |
43
67
 
68
+ <!-- politty:command:tailordb truncate:arguments:end -->
69
+
70
+ <!-- politty:command:tailordb truncate:options:start -->
71
+
44
72
  **Options**
45
73
 
46
74
  | Option | Alias | Description | Required | Default |
@@ -52,19 +80,31 @@ tailor-sdk tailordb truncate [options] [types]
52
80
  | `--all` | `-a` | Truncate all tables in all namespaces | No | `false` |
53
81
  | `--namespace <NAMESPACE>` | `-n` | Truncate all tables in specified namespace | No | - |
54
82
 
55
- <!-- politty:command:tailordb truncate:end -->
56
- <!-- politty:command:tailordb migration:start -->
83
+ <!-- politty:command:tailordb truncate:options:end -->
84
+ <!-- politty:command:tailordb migration:heading:start -->
57
85
 
58
86
  ### tailordb migration
59
87
 
88
+ <!-- politty:command:tailordb migration:heading:end -->
89
+
90
+ <!-- politty:command:tailordb migration:description:start -->
91
+
60
92
  Manage TailorDB schema migrations.
61
93
 
94
+ <!-- politty:command:tailordb migration:description:end -->
95
+
96
+ <!-- politty:command:tailordb migration:usage:start -->
97
+
62
98
  **Usage**
63
99
 
64
100
  ```
65
101
  tailor-sdk tailordb migration [command]
66
102
  ```
67
103
 
104
+ <!-- politty:command:tailordb migration:usage:end -->
105
+
106
+ <!-- politty:command:tailordb migration:subcommands:start -->
107
+
68
108
  **Commands**
69
109
 
70
110
  | Command | Description |
@@ -73,19 +113,31 @@ tailor-sdk tailordb migration [command]
73
113
  | [`tailordb migration set`](#tailordb-migration-set) | Set migration checkpoint to a specific number. |
74
114
  | [`tailordb migration status`](#tailordb-migration-status) | Show the current migration status for TailorDB namespaces, including applied and pending migrations. |
75
115
 
76
- <!-- politty:command:tailordb migration:end -->
77
- <!-- politty:command:tailordb migration generate:start -->
116
+ <!-- politty:command:tailordb migration:subcommands:end -->
117
+ <!-- politty:command:tailordb migration generate:heading:start -->
78
118
 
79
119
  #### tailordb migration generate
80
120
 
121
+ <!-- politty:command:tailordb migration generate:heading:end -->
122
+
123
+ <!-- politty:command:tailordb migration generate:description:start -->
124
+
81
125
  Generate migration files by detecting schema differences between current local types and the previous migration snapshot.
82
126
 
127
+ <!-- politty:command:tailordb migration generate:description:end -->
128
+
129
+ <!-- politty:command:tailordb migration generate:usage:start -->
130
+
83
131
  **Usage**
84
132
 
85
133
  ```
86
134
  tailor-sdk tailordb migration generate [options]
87
135
  ```
88
136
 
137
+ <!-- politty:command:tailordb migration generate:usage:end -->
138
+
139
+ <!-- politty:command:tailordb migration generate:options:start -->
140
+
89
141
  **Options**
90
142
 
91
143
  | Option | Alias | Description | Required | Default |
@@ -95,25 +147,41 @@ tailor-sdk tailordb migration generate [options]
95
147
  | `--name <NAME>` | `-n` | Optional description for the migration | No | - |
96
148
  | `--init` | - | Delete existing migrations and start fresh | No | `false` |
97
149
 
98
- <!-- politty:command:tailordb migration generate:end -->
99
- <!-- politty:command:tailordb migration set:start -->
150
+ <!-- politty:command:tailordb migration generate:options:end -->
151
+ <!-- politty:command:tailordb migration set:heading:start -->
100
152
 
101
153
  #### tailordb migration set
102
154
 
155
+ <!-- politty:command:tailordb migration set:heading:end -->
156
+
157
+ <!-- politty:command:tailordb migration set:description:start -->
158
+
103
159
  Set migration checkpoint to a specific number.
104
160
 
161
+ <!-- politty:command:tailordb migration set:description:end -->
162
+
163
+ <!-- politty:command:tailordb migration set:usage:start -->
164
+
105
165
  **Usage**
106
166
 
107
167
  ```
108
168
  tailor-sdk tailordb migration set [options] <number>
109
169
  ```
110
170
 
171
+ <!-- politty:command:tailordb migration set:usage:end -->
172
+
173
+ <!-- politty:command:tailordb migration set:arguments:start -->
174
+
111
175
  **Arguments**
112
176
 
113
177
  | Argument | Description | Required |
114
178
  | -------- | ----------------------------------------- | -------- |
115
179
  | `number` | Migration number to set (e.g., 0001 or 1) | Yes |
116
180
 
181
+ <!-- politty:command:tailordb migration set:arguments:end -->
182
+
183
+ <!-- politty:command:tailordb migration set:options:start -->
184
+
117
185
  **Options**
118
186
 
119
187
  | Option | Alias | Description | Required | Default |
@@ -124,19 +192,31 @@ tailor-sdk tailordb migration set [options] <number>
124
192
  | `--yes` | `-y` | Skip confirmation prompts | No | `false` |
125
193
  | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - |
126
194
 
127
- <!-- politty:command:tailordb migration set:end -->
128
- <!-- politty:command:tailordb migration status:start -->
195
+ <!-- politty:command:tailordb migration set:options:end -->
196
+ <!-- politty:command:tailordb migration status:heading:start -->
129
197
 
130
198
  #### tailordb migration status
131
199
 
200
+ <!-- politty:command:tailordb migration status:heading:end -->
201
+
202
+ <!-- politty:command:tailordb migration status:description:start -->
203
+
132
204
  Show the current migration status for TailorDB namespaces, including applied and pending migrations.
133
205
 
206
+ <!-- politty:command:tailordb migration status:description:end -->
207
+
208
+ <!-- politty:command:tailordb migration status:usage:start -->
209
+
134
210
  **Usage**
135
211
 
136
212
  ```
137
213
  tailor-sdk tailordb migration status [options]
138
214
  ```
139
215
 
216
+ <!-- politty:command:tailordb migration status:usage:end -->
217
+
218
+ <!-- politty:command:tailordb migration status:options:start -->
219
+
140
220
  **Options**
141
221
 
142
222
  | Option | Alias | Description | Required | Default |
@@ -146,19 +226,31 @@ tailor-sdk tailordb migration status [options]
146
226
  | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` |
147
227
  | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (shows all namespaces if not specified) | No | - |
148
228
 
149
- <!-- politty:command:tailordb migration status:end -->
150
- <!-- politty:command:tailordb erd:start -->
229
+ <!-- politty:command:tailordb migration status:options:end -->
230
+ <!-- politty:command:tailordb erd:heading:start -->
151
231
 
152
232
  ### tailordb erd
153
233
 
234
+ <!-- politty:command:tailordb erd:heading:end -->
235
+
236
+ <!-- politty:command:tailordb erd:description:start -->
237
+
154
238
  Generate ERD artifacts for TailorDB namespaces using Liam ERD. (beta)
155
239
 
240
+ <!-- politty:command:tailordb erd:description:end -->
241
+
242
+ <!-- politty:command:tailordb erd:usage:start -->
243
+
156
244
  **Usage**
157
245
 
158
246
  ```
159
247
  tailor-sdk tailordb erd [command]
160
248
  ```
161
249
 
250
+ <!-- politty:command:tailordb erd:usage:end -->
251
+
252
+ <!-- politty:command:tailordb erd:subcommands:start -->
253
+
162
254
  **Commands**
163
255
 
164
256
  | Command | Description |
@@ -167,19 +259,31 @@ tailor-sdk tailordb erd [command]
167
259
  | [`tailordb erd serve`](#tailordb-erd-serve) | Generate and serve ERD locally (liam build + serve dist). (beta) |
168
260
  | [`tailordb erd deploy`](#tailordb-erd-deploy) | Deploy ERD static website for TailorDB namespace(s). |
169
261
 
170
- <!-- politty:command:tailordb erd:end -->
171
- <!-- politty:command:tailordb erd export:start -->
262
+ <!-- politty:command:tailordb erd:subcommands:end -->
263
+ <!-- politty:command:tailordb erd export:heading:start -->
172
264
 
173
265
  #### tailordb erd export
174
266
 
267
+ <!-- politty:command:tailordb erd export:heading:end -->
268
+
269
+ <!-- politty:command:tailordb erd export:description:start -->
270
+
175
271
  Export Liam ERD dist from applied TailorDB schema.
176
272
 
273
+ <!-- politty:command:tailordb erd export:description:end -->
274
+
275
+ <!-- politty:command:tailordb erd export:usage:start -->
276
+
177
277
  **Usage**
178
278
 
179
279
  ```
180
280
  tailor-sdk tailordb erd export [options]
181
281
  ```
182
282
 
283
+ <!-- politty:command:tailordb erd export:usage:end -->
284
+
285
+ <!-- politty:command:tailordb erd export:options:start -->
286
+
183
287
  **Options**
184
288
 
185
289
  | Option | Alias | Description | Required | Default |
@@ -191,19 +295,31 @@ tailor-sdk tailordb erd export [options]
191
295
  | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional if only one namespace is defined in config) | No | - |
192
296
  | `--output <OUTPUT>` | `-o` | Output directory path for tbls-compatible ERD JSON (writes to `<outputDir>/<namespace>/schema.json`) | No | `".tailor-sdk/erd"` |
193
297
 
194
- <!-- politty:command:tailordb erd export:end -->
195
- <!-- politty:command:tailordb erd serve:start -->
298
+ <!-- politty:command:tailordb erd export:options:end -->
299
+ <!-- politty:command:tailordb erd serve:heading:start -->
196
300
 
197
301
  #### tailordb erd serve
198
302
 
303
+ <!-- politty:command:tailordb erd serve:heading:end -->
304
+
305
+ <!-- politty:command:tailordb erd serve:description:start -->
306
+
199
307
  Generate and serve ERD locally (liam build + serve dist). (beta)
200
308
 
309
+ <!-- politty:command:tailordb erd serve:description:end -->
310
+
311
+ <!-- politty:command:tailordb erd serve:usage:start -->
312
+
201
313
  **Usage**
202
314
 
203
315
  ```
204
316
  tailor-sdk tailordb erd serve [options]
205
317
  ```
206
318
 
319
+ <!-- politty:command:tailordb erd serve:usage:end -->
320
+
321
+ <!-- politty:command:tailordb erd serve:options:start -->
322
+
207
323
  **Options**
208
324
 
209
325
  | Option | Alias | Description | Required | Default |
@@ -213,19 +329,31 @@ tailor-sdk tailordb erd serve [options]
213
329
  | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` |
214
330
  | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (uses first namespace in config if not specified) | No | - |
215
331
 
216
- <!-- politty:command:tailordb erd serve:end -->
217
- <!-- politty:command:tailordb erd deploy:start -->
332
+ <!-- politty:command:tailordb erd serve:options:end -->
333
+ <!-- politty:command:tailordb erd deploy:heading:start -->
218
334
 
219
335
  #### tailordb erd deploy
220
336
 
337
+ <!-- politty:command:tailordb erd deploy:heading:end -->
338
+
339
+ <!-- politty:command:tailordb erd deploy:description:start -->
340
+
221
341
  Deploy ERD static website for TailorDB namespace(s).
222
342
 
343
+ <!-- politty:command:tailordb erd deploy:description:end -->
344
+
345
+ <!-- politty:command:tailordb erd deploy:usage:start -->
346
+
223
347
  **Usage**
224
348
 
225
349
  ```
226
350
  tailor-sdk tailordb erd deploy [options]
227
351
  ```
228
352
 
353
+ <!-- politty:command:tailordb erd deploy:usage:end -->
354
+
355
+ <!-- politty:command:tailordb erd deploy:options:start -->
356
+
229
357
  **Options**
230
358
 
231
359
  | Option | Alias | Description | Required | Default |
@@ -236,7 +364,7 @@ tailor-sdk tailordb erd deploy [options]
236
364
  | `--json` | `-j` | Output as JSON | No | `false` |
237
365
  | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional - deploys all namespaces with erdSite if omitted) | No | - |
238
366
 
239
- <!-- politty:command:tailordb erd deploy:end -->
367
+ <!-- politty:command:tailordb erd deploy:options:end -->
240
368
 
241
369
  **Usage Examples:**
242
370