@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 and deploying static websites.
4
4
 
5
- <!-- politty:command:staticwebsite:heading:start -->
6
-
7
5
  ## staticwebsite
8
6
 
9
- <!-- politty:command:staticwebsite:heading:end -->
10
-
11
- <!-- politty:command:staticwebsite:description:start -->
12
-
13
7
  Manage static websites in your workspace.
14
8
 
15
- <!-- politty:command:staticwebsite:description:end -->
16
-
17
- <!-- politty:command:staticwebsite:usage:start -->
18
-
19
9
  **Usage**
20
10
 
21
11
  ```
22
12
  tailor-sdk staticwebsite [command]
23
13
  ```
24
14
 
25
- <!-- politty:command:staticwebsite:usage:end -->
26
-
27
- <!-- politty:command:staticwebsite:subcommands:start -->
15
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
28
16
 
29
17
  **Commands**
30
18
 
@@ -35,37 +23,16 @@ tailor-sdk staticwebsite [command]
35
23
  | [`staticwebsite list`](#staticwebsite-list) | List all static websites in a workspace. |
36
24
  | [`staticwebsite get`](#staticwebsite-get) | Get details of a specific static website. |
37
25
 
38
- <!-- politty:command:staticwebsite:subcommands:end -->
39
-
40
- <!-- politty:command:staticwebsite:global-options-link:start -->
41
-
42
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
43
-
44
- <!-- politty:command:staticwebsite:global-options-link:end -->
45
- <!-- politty:command:staticwebsite deploy:heading:start -->
46
-
47
26
  ### staticwebsite deploy
48
27
 
49
- <!-- politty:command:staticwebsite deploy:heading:end -->
50
-
51
- <!-- politty:command:staticwebsite deploy:description:start -->
52
-
53
28
  Deploy a static website from a local build directory.
54
29
 
55
- <!-- politty:command:staticwebsite deploy:description:end -->
56
-
57
- <!-- politty:command:staticwebsite deploy:usage:start -->
58
-
59
30
  **Usage**
60
31
 
61
32
  ```
62
33
  tailor-sdk staticwebsite deploy [options]
63
34
  ```
64
35
 
65
- <!-- politty:command:staticwebsite deploy:usage:end -->
66
-
67
- <!-- politty:command:staticwebsite deploy:options:start -->
68
-
69
36
  **Options**
70
37
 
71
38
  | Option | Alias | Description | Required | Default | Env |
@@ -75,26 +42,28 @@ tailor-sdk staticwebsite deploy [options]
75
42
  | `--name <NAME>` | `-n` | Static website name | Yes | - | - |
76
43
  | `--dir <DIR>` | `-d` | Path to the static website files | Yes | - | - |
77
44
 
78
- <!-- politty:command:staticwebsite deploy:options:end -->
79
-
80
- <!-- politty:command:staticwebsite deploy:global-options-link:start -->
81
-
82
45
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
83
46
 
84
- <!-- politty:command:staticwebsite deploy:global-options-link:end -->
85
- <!-- politty:command:staticwebsite list:heading:start -->
47
+ **Example:**
86
48
 
87
- ### staticwebsite list
49
+ ```bash
50
+ # Deploy a static website from the dist directory
51
+ tailor-sdk staticwebsite deploy --name my-website --dir ./dist
88
52
 
89
- <!-- politty:command:staticwebsite list:heading:end -->
53
+ # Deploy with workspace ID
54
+ tailor-sdk staticwebsite deploy -n my-website -d ./dist -w ws_abc123
55
+ ```
90
56
 
91
- <!-- politty:command:staticwebsite list:description:start -->
57
+ **Notes:**
92
58
 
93
- List all static websites in a workspace.
59
+ - The deployment process uploads all files from the specified directory
60
+ - Files are uploaded with appropriate MIME types based on file extensions
61
+ - Unsupported file types or invalid files will be skipped with warnings
62
+ - The deployment URL is returned after successful deployment
94
63
 
95
- <!-- politty:command:staticwebsite list:description:end -->
64
+ ### staticwebsite list
96
65
 
97
- <!-- politty:command:staticwebsite list:usage:start -->
66
+ List all static websites in a workspace.
98
67
 
99
68
  **Usage**
100
69
 
@@ -102,10 +71,6 @@ List all static websites in a workspace.
102
71
  tailor-sdk staticwebsite list [options]
103
72
  ```
104
73
 
105
- <!-- politty:command:staticwebsite list:usage:end -->
106
-
107
- <!-- politty:command:staticwebsite list:options:start -->
108
-
109
74
  **Options**
110
75
 
111
76
  | Option | Alias | Description | Required | Default | Env |
@@ -115,43 +80,30 @@ tailor-sdk staticwebsite list [options]
115
80
  | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
116
81
  | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
117
82
 
118
- <!-- politty:command:staticwebsite list:options:end -->
119
-
120
- <!-- politty:command:staticwebsite list:global-options-link:start -->
121
-
122
83
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
123
84
 
124
- <!-- politty:command:staticwebsite list:global-options-link:end -->
125
- <!-- politty:command:staticwebsite domain:heading:start -->
85
+ **Example:**
126
86
 
127
- ### staticwebsite domain
87
+ ```bash
88
+ # List all static websites
89
+ tailor-sdk staticwebsite list
128
90
 
129
- <!-- politty:command:staticwebsite domain:heading:end -->
91
+ # List with JSON output
92
+ tailor-sdk staticwebsite list --json
93
+ ```
130
94
 
131
- <!-- politty:command:staticwebsite domain:description:start -->
95
+ ### staticwebsite domain
132
96
 
133
97
  Manage custom domains for static websites.
134
98
 
135
- <!-- politty:command:staticwebsite domain:description:end -->
136
-
137
- <!-- politty:command:staticwebsite domain:usage:start -->
138
-
139
99
  **Usage**
140
100
 
141
101
  ```
142
- tailor-sdk staticwebsite domain [command]
102
+ tailor-sdk staticwebsite domain <command>
143
103
  ```
144
104
 
145
- <!-- politty:command:staticwebsite domain:usage:end -->
146
-
147
- <!-- politty:command:staticwebsite domain:global-options-link:start -->
148
-
149
105
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
150
106
 
151
- <!-- politty:command:staticwebsite domain:global-options-link:end -->
152
-
153
- <!-- politty:command:staticwebsite domain:subcommands:start -->
154
-
155
107
  **Commands**
156
108
 
157
109
  | Command | Description |
@@ -159,41 +111,22 @@ See [Global Options](../cli-reference.md#global-options) for options available t
159
111
  | [`staticwebsite domain list`](#staticwebsite-domain-list) | List custom domains for a static website. |
160
112
  | [`staticwebsite domain get`](#staticwebsite-domain-get) | Get details of a custom domain. |
161
113
 
162
- <!-- politty:command:staticwebsite domain:subcommands:end -->
163
- <!-- politty:command:staticwebsite domain get:heading:start -->
164
-
165
114
  #### staticwebsite domain get
166
115
 
167
- <!-- politty:command:staticwebsite domain get:heading:end -->
168
-
169
- <!-- politty:command:staticwebsite domain get:description:start -->
170
-
171
116
  Get details of a custom domain.
172
117
 
173
- <!-- politty:command:staticwebsite domain get:description:end -->
174
-
175
- <!-- politty:command:staticwebsite domain get:usage:start -->
176
-
177
118
  **Usage**
178
119
 
179
120
  ```
180
121
  tailor-sdk staticwebsite domain get [options] <domain>
181
122
  ```
182
123
 
183
- <!-- politty:command:staticwebsite domain get:usage:end -->
184
-
185
- <!-- politty:command:staticwebsite domain get:arguments:start -->
186
-
187
124
  **Arguments**
188
125
 
189
126
  | Argument | Description | Required |
190
127
  | -------- | ------------------ | -------- |
191
128
  | `domain` | Custom domain name | Yes |
192
129
 
193
- <!-- politty:command:staticwebsite domain get:arguments:end -->
194
-
195
- <!-- politty:command:staticwebsite domain get:options:start -->
196
-
197
130
  **Options**
198
131
 
199
132
  | Option | Alias | Description | Required | Default | Env |
@@ -201,48 +134,24 @@ tailor-sdk staticwebsite domain get [options] <domain>
201
134
  | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
202
135
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
203
136
 
204
- <!-- politty:command:staticwebsite domain get:options:end -->
205
-
206
- <!-- politty:command:staticwebsite domain get:global-options-link:start -->
207
-
208
137
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
209
138
 
210
- <!-- politty:command:staticwebsite domain get:global-options-link:end -->
211
-
212
- <!-- politty:command:staticwebsite domain list:heading:start -->
213
-
214
139
  #### staticwebsite domain list
215
140
 
216
- <!-- politty:command:staticwebsite domain list:heading:end -->
217
-
218
- <!-- politty:command:staticwebsite domain list:description:start -->
219
-
220
141
  List custom domains for a static website.
221
142
 
222
- <!-- politty:command:staticwebsite domain list:description:end -->
223
-
224
- <!-- politty:command:staticwebsite domain list:usage:start -->
225
-
226
143
  **Usage**
227
144
 
228
145
  ```
229
146
  tailor-sdk staticwebsite domain list [options] <name>
230
147
  ```
231
148
 
232
- <!-- politty:command:staticwebsite domain list:usage:end -->
233
-
234
- <!-- politty:command:staticwebsite domain list:arguments:start -->
235
-
236
149
  **Arguments**
237
150
 
238
151
  | Argument | Description | Required |
239
152
  | -------- | ------------------- | -------- |
240
153
  | `name` | Static website name | Yes |
241
154
 
242
- <!-- politty:command:staticwebsite domain list:arguments:end -->
243
-
244
- <!-- politty:command:staticwebsite domain list:options:start -->
245
-
246
155
  **Options**
247
156
 
248
157
  | Option | Alias | Description | Required | Default | Env |
@@ -250,48 +159,24 @@ tailor-sdk staticwebsite domain list [options] <name>
250
159
  | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
251
160
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
252
161
 
253
- <!-- politty:command:staticwebsite domain list:options:end -->
254
-
255
- <!-- politty:command:staticwebsite domain list:global-options-link:start -->
256
-
257
162
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
258
163
 
259
- <!-- politty:command:staticwebsite domain list:global-options-link:end -->
260
-
261
- <!-- politty:command:staticwebsite get:heading:start -->
262
-
263
164
  ### staticwebsite get
264
165
 
265
- <!-- politty:command:staticwebsite get:heading:end -->
266
-
267
- <!-- politty:command:staticwebsite get:description:start -->
268
-
269
166
  Get details of a specific static website.
270
167
 
271
- <!-- politty:command:staticwebsite get:description:end -->
272
-
273
- <!-- politty:command:staticwebsite get:usage:start -->
274
-
275
168
  **Usage**
276
169
 
277
170
  ```
278
171
  tailor-sdk staticwebsite get [options] <name>
279
172
  ```
280
173
 
281
- <!-- politty:command:staticwebsite get:usage:end -->
282
-
283
- <!-- politty:command:staticwebsite get:arguments:start -->
284
-
285
174
  **Arguments**
286
175
 
287
176
  | Argument | Description | Required |
288
177
  | -------- | ------------------- | -------- |
289
178
  | `name` | Static website name | Yes |
290
179
 
291
- <!-- politty:command:staticwebsite get:arguments:end -->
292
-
293
- <!-- politty:command:staticwebsite get:options:start -->
294
-
295
180
  **Options**
296
181
 
297
182
  | Option | Alias | Description | Required | Default | Env |
@@ -299,41 +184,8 @@ tailor-sdk staticwebsite get [options] <name>
299
184
  | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
300
185
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
301
186
 
302
- <!-- politty:command:staticwebsite get:options:end -->
303
-
304
- <!-- politty:command:staticwebsite get:global-options-link:start -->
305
-
306
187
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
307
188
 
308
- <!-- politty:command:staticwebsite get:global-options-link:end -->
309
-
310
- **Example:**
311
-
312
- ```bash
313
- # Deploy a static website from the dist directory
314
- tailor-sdk staticwebsite deploy --name my-website --dir ./dist
315
-
316
- # Deploy with workspace ID
317
- tailor-sdk staticwebsite deploy -n my-website -d ./dist -w ws_abc123
318
- ```
319
-
320
- **Notes:**
321
-
322
- - The deployment process uploads all files from the specified directory
323
- - Files are uploaded with appropriate MIME types based on file extensions
324
- - Unsupported file types or invalid files will be skipped with warnings
325
- - The deployment URL is returned after successful deployment
326
-
327
- **Example:**
328
-
329
- ```bash
330
- # List all static websites
331
- tailor-sdk staticwebsite list
332
-
333
- # List with JSON output
334
- tailor-sdk staticwebsite list --json
335
- ```
336
-
337
189
  **Example:**
338
190
 
339
191
  ```bash