@tailor-platform/sdk 1.57.0 → 1.58.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.
- package/CHANGELOG.md +20 -0
- package/dist/{application-CdkoGX27.mjs → application-B59TaTk_.mjs} +4 -3
- package/dist/{application-CdkoGX27.mjs.map → application-B59TaTk_.mjs.map} +1 -1
- package/dist/application-gO_pa5BO.mjs +4 -0
- package/dist/cli/index.mjs +164 -13
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +581 -2
- package/dist/cli/lib.mjs +3 -3
- package/dist/{client-DLPEPJ_s.mjs → client-62B-r3MN.mjs} +39 -10
- package/dist/client-62B-r3MN.mjs.map +1 -0
- package/dist/{client-DrzwCD1W.mjs → client-BWl3f1XS.mjs} +1 -1
- package/dist/configure/index.d.mts +2 -2
- package/dist/{crashreport-Bm2mN5tg.mjs → crashreport-CCGpLUlP.mjs} +2 -2
- package/dist/{crashreport-Bm2mN5tg.mjs.map → crashreport-CCGpLUlP.mjs.map} +1 -1
- package/dist/{crashreport-C5oHvHUC.mjs → crashreport-CXD_Kjk-.mjs} +1 -1
- package/dist/{index-B61gFI9a.d.mts → index-BWoHfE-i.d.mts} +3 -2
- package/dist/{runtime-1YuaoNr8.mjs → runtime-BC-FbQkg.mjs} +149 -133
- package/dist/runtime-BC-FbQkg.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/{workflow.generated-Kz-nQrTf.d.mts → workflow.generated-CV77NlFp.d.mts} +3 -2
- package/docs/cli/application.md +5 -5
- package/docs/cli/auth.md +55 -6
- package/docs/cli/function.md +2 -2
- package/docs/cli/staticwebsite.md +137 -0
- package/docs/cli-reference.md +17 -14
- package/docs/generator/builtin.md +1 -1
- package/docs/services/auth.md +0 -11
- package/docs/services/staticwebsite.md +13 -0
- package/package.json +4 -4
- package/dist/application-x_mURdR0.mjs +0 -4
- package/dist/client-DLPEPJ_s.mjs.map +0 -1
- package/dist/runtime-1YuaoNr8.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as TailorInvoker } from "../../tailordb-BlBGmQK-.mjs";
|
|
2
|
-
import { W as TailorDBType } from "../../workflow.generated-
|
|
3
|
-
import { At as TailorField, bt as WORKFLOW_TEST_ENV_KEY, n as output } from "../../index-
|
|
2
|
+
import { W as TailorDBType } from "../../workflow.generated-CV77NlFp.mjs";
|
|
3
|
+
import { At as TailorField, bt as WORKFLOW_TEST_ENV_KEY, n as output } from "../../index-BWoHfE-i.mjs";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
|
|
6
6
|
//#region src/utils/test/mock.d.ts
|
|
@@ -1281,7 +1281,8 @@ type SecretsConfig = SecretsInput & SecretsDefinitionBrand;
|
|
|
1281
1281
|
type StaticWebsite = {
|
|
1282
1282
|
/** Static website name */name: string; /** Static website description */
|
|
1283
1283
|
description?: string | undefined; /** IP addresses allowed to access the website */
|
|
1284
|
-
allowedIpAddresses?: string[] | undefined;
|
|
1284
|
+
allowedIpAddresses?: string[] | undefined; /** Custom domains for the static website */
|
|
1285
|
+
customDomains?: string[] | undefined;
|
|
1285
1286
|
};
|
|
1286
1287
|
type StaticWebsiteInput = StaticWebsite;
|
|
1287
1288
|
//#endregion
|
|
@@ -1412,4 +1413,4 @@ type ConcurrencyPolicy = {
|
|
|
1412
1413
|
};
|
|
1413
1414
|
//#endregion
|
|
1414
1415
|
export { BeforeLoginHookArgs as A, TailorAnyDBField as B, IdPGqlOperationsInput as C, AuthExternalConfig as D, AuthConnectionTokenResult as E, UserAttributeListKey as F, db as G, TailorDBField as H, UserAttributeMap as I, TailorTypePermission as J, PermissionCondition as K, UsernameFieldKey as L, OAuth2ClientGrantType as M, SCIMAttributeType as N, AuthOwnConfig as O, UserAttributeKey as P, AllowedValuesOutput as Q, AuthConnectionConfig as R, IdPGqlOperations as S, AuthConfig as T, TailorDBInstance as U, TailorAnyDBType as V, TailorDBType as W, unsafeAllowAllTypePermission as X, unsafeAllowAllGqlPermission as Y, AllowedValues as Z, IdPConfig as _, ExecutorServiceConfig as a, IdpDefinitionBrand as b, ResolverServiceConfig as c, WorkflowServiceInput as d, StaticWebsiteConfig as f, SecretsDefinitionBrand as g, SecretsConfig as h, AppConfig as i, DefinedAuth as j, AuthServiceInput as k, ResolverServiceInput as l, StaticWebsiteInput as m, RetryPolicy as n, ExecutorServiceInput as o, StaticWebsiteDefinitionBrand as p, TailorTypeGqlPermission as q, HttpAdapterConfigInput as r, ResolverExternalConfig as s, ConcurrencyPolicy as t, WorkflowServiceConfig as u, IdPExternalConfig as v, IdPInput as w, IdPEmailConfig as x, IdPUserField as y, AuthConnectionOAuth2Config as z };
|
|
1415
|
-
//# sourceMappingURL=workflow.generated-
|
|
1416
|
+
//# sourceMappingURL=workflow.generated-CV77NlFp.d.mts.map
|
package/docs/cli/application.md
CHANGED
|
@@ -146,8 +146,8 @@ When migrations are configured (`db.tailordb.migration` in config), the `deploy`
|
|
|
146
146
|
|
|
147
147
|
1. Detects pending migration scripts that haven't been executed
|
|
148
148
|
2. Applies schema changes in a safe order (pre-migration → script execution → post-migration)
|
|
149
|
-
3.
|
|
150
|
-
4. Updates migration
|
|
149
|
+
3. Runs the pending migration scripts
|
|
150
|
+
4. Updates the migration checkpoint so the same migrations are not re-run
|
|
151
151
|
|
|
152
152
|
See [Automatic Migration Execution](../services/tailordb-migration.md#automatic-migration-execution) for details on automatic migration execution.
|
|
153
153
|
|
|
@@ -388,7 +388,7 @@ $ tailor-sdk api inspect GetApplication
|
|
|
388
388
|
|
|
389
389
|
Use `tailor-sdk api list` to enumerate invocable methods and `tailor-sdk api inspect <endpoint>` to print an endpoint's input message tree (combine with `--json` for machine-readable output).
|
|
390
390
|
|
|
391
|
-
The request body is inferred from the
|
|
391
|
+
The request body is inferred from the target endpoint's request schema, and commonly required fields are auto-injected so they can be omitted from `--body`:
|
|
392
392
|
|
|
393
393
|
- `workspaceId` — resolved from `-w` / `TAILOR_PLATFORM_WORKSPACE_ID` / the selected profile.
|
|
394
394
|
- `namespaceName` — resolved from `tailor.config.ts` based on the endpoint's service:
|
|
@@ -397,7 +397,7 @@ The request body is inferred from the proto definition of the target endpoint, a
|
|
|
397
397
|
|
|
398
398
|
Values already present in `--body` are never overridden. If a value cannot be resolved (e.g. no config found), injection is silently skipped and the server-side validation error takes precedence.
|
|
399
399
|
|
|
400
|
-
Use `--field key=value` (repeatable) to set request body fields without writing JSON. Dotted keys (e.g. `application.name=foo`) build nested objects. `--field` overrides matching fields in `--body` and tab-completes from the endpoint's
|
|
400
|
+
Use `--field key=value` (repeatable) to set request body fields without writing JSON. Dotted keys (e.g. `application.name=foo`) build nested objects. `--field` overrides matching fields in `--body` and tab-completes from the endpoint's request schema.
|
|
401
401
|
|
|
402
402
|
<!-- politty:command:api:notes:end -->
|
|
403
403
|
<!-- politty:command:api inspect:heading:start -->
|
|
@@ -496,6 +496,6 @@ See [Global Options](../cli-reference.md#global-options) for options available t
|
|
|
496
496
|
|
|
497
497
|
**Notes**
|
|
498
498
|
|
|
499
|
-
Only
|
|
499
|
+
Only single-request (non-streaming) methods are listed, because the CLI issues a single JSON request and reads one JSON response.
|
|
500
500
|
|
|
501
501
|
<!-- politty:command:api list:notes:end -->
|
package/docs/cli/auth.md
CHANGED
|
@@ -28,11 +28,12 @@ tailor-sdk authconnection [command]
|
|
|
28
28
|
|
|
29
29
|
**Commands**
|
|
30
30
|
|
|
31
|
-
| Command | Description
|
|
32
|
-
| ------------------------------------------------------- |
|
|
33
|
-
| [`authconnection authorize`](#authconnection-authorize) | Authorize an auth connection via OAuth2 flow.
|
|
34
|
-
| [`authconnection list`](#authconnection-list) | List all auth connections.
|
|
35
|
-
| [`authconnection revoke`](#authconnection-revoke) | Revoke an auth connection.
|
|
31
|
+
| Command | Description |
|
|
32
|
+
| ------------------------------------------------------- | ------------------------------------------------------------------------------------- |
|
|
33
|
+
| [`authconnection authorize`](#authconnection-authorize) | Authorize an auth connection via OAuth2 flow. |
|
|
34
|
+
| [`authconnection list`](#authconnection-list) | List all auth connections. |
|
|
35
|
+
| [`authconnection revoke`](#authconnection-revoke) | Revoke an auth connection's tokens (keeps the connection; use 'delete' to remove it). |
|
|
36
|
+
| [`authconnection delete`](#authconnection-delete) | Delete an auth connection entirely. |
|
|
36
37
|
|
|
37
38
|
<!-- politty:command:authconnection:subcommands:end -->
|
|
38
39
|
|
|
@@ -83,6 +84,46 @@ tailor-sdk authconnection authorize [options]
|
|
|
83
84
|
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
84
85
|
|
|
85
86
|
<!-- politty:command:authconnection authorize:global-options-link:end -->
|
|
87
|
+
<!-- politty:command:authconnection delete:heading:start -->
|
|
88
|
+
|
|
89
|
+
### authconnection delete
|
|
90
|
+
|
|
91
|
+
<!-- politty:command:authconnection delete:heading:end -->
|
|
92
|
+
|
|
93
|
+
<!-- politty:command:authconnection delete:description:start -->
|
|
94
|
+
|
|
95
|
+
Delete an auth connection entirely.
|
|
96
|
+
|
|
97
|
+
<!-- politty:command:authconnection delete:description:end -->
|
|
98
|
+
|
|
99
|
+
<!-- politty:command:authconnection delete:usage:start -->
|
|
100
|
+
|
|
101
|
+
**Usage**
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
tailor-sdk authconnection delete [options]
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
<!-- politty:command:authconnection delete:usage:end -->
|
|
108
|
+
|
|
109
|
+
<!-- politty:command:authconnection delete:options:start -->
|
|
110
|
+
|
|
111
|
+
**Options**
|
|
112
|
+
|
|
113
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
114
|
+
| ------------------------------- | ----- | ------------------------- | -------- | ------- | ------------------------------ |
|
|
115
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
116
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
117
|
+
| `--name <NAME>` | `-n` | Auth connection name | Yes | - | - |
|
|
118
|
+
| `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
|
|
119
|
+
|
|
120
|
+
<!-- politty:command:authconnection delete:options:end -->
|
|
121
|
+
|
|
122
|
+
<!-- politty:command:authconnection delete:global-options-link:start -->
|
|
123
|
+
|
|
124
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
125
|
+
|
|
126
|
+
<!-- politty:command:authconnection delete:global-options-link:end -->
|
|
86
127
|
|
|
87
128
|
<!-- politty:command:authconnection list:heading:start -->
|
|
88
129
|
|
|
@@ -132,7 +173,7 @@ See [Global Options](../cli-reference.md#global-options) for options available t
|
|
|
132
173
|
|
|
133
174
|
<!-- politty:command:authconnection revoke:description:start -->
|
|
134
175
|
|
|
135
|
-
Revoke an auth connection.
|
|
176
|
+
Revoke an auth connection's tokens (keeps the connection; use 'delete' to remove it).
|
|
136
177
|
|
|
137
178
|
<!-- politty:command:authconnection revoke:description:end -->
|
|
138
179
|
|
|
@@ -165,6 +206,14 @@ See [Global Options](../cli-reference.md#global-options) for options available t
|
|
|
165
206
|
|
|
166
207
|
<!-- politty:command:authconnection revoke:global-options-link:end -->
|
|
167
208
|
|
|
209
|
+
<!-- politty:command:authconnection revoke:notes:start -->
|
|
210
|
+
|
|
211
|
+
**Notes**
|
|
212
|
+
|
|
213
|
+
Revoke invalidates the connection's active session and tokens but keeps the connection and its stored credentials, so it can be re-authorized later. Use `delete` to remove the connection entirely.
|
|
214
|
+
|
|
215
|
+
<!-- politty:command:authconnection revoke:notes:end -->
|
|
216
|
+
|
|
168
217
|
<!-- politty:command:machineuser:heading:start -->
|
|
169
218
|
|
|
170
219
|
## machineuser
|
package/docs/cli/function.md
CHANGED
|
@@ -207,9 +207,9 @@ $ tailor-sdk function logs <execution-id> --json
|
|
|
207
207
|
|
|
208
208
|
**Notes**
|
|
209
209
|
|
|
210
|
-
When viewing a specific execution that failed, the command displays error details with the stack trace mapped back to original source files
|
|
210
|
+
When viewing a specific execution that failed, the command displays error details with the stack trace mapped back to your original source files (clickable file links and code snippets, matching `function test-run` output).
|
|
211
211
|
|
|
212
|
-
|
|
212
|
+
Stack traces stay accurate even after later redeploys, because the trace is resolved against the exact build that produced the execution. If that build is no longer available, the command falls back to a plain-text error display.
|
|
213
213
|
|
|
214
214
|
<!-- politty:command:function logs:notes:end -->
|
|
215
215
|
|
|
@@ -31,6 +31,7 @@ tailor-sdk staticwebsite [command]
|
|
|
31
31
|
| Command | Description |
|
|
32
32
|
| ----------------------------------------------- | ----------------------------------------------------- |
|
|
33
33
|
| [`staticwebsite deploy`](#staticwebsite-deploy) | Deploy a static website from a local build directory. |
|
|
34
|
+
| [`staticwebsite domain`](#staticwebsite-domain) | Manage custom domains for static websites. |
|
|
34
35
|
| [`staticwebsite list`](#staticwebsite-list) | List all static websites in a workspace. |
|
|
35
36
|
| [`staticwebsite get`](#staticwebsite-get) | Get details of a specific static website. |
|
|
36
37
|
|
|
@@ -121,6 +122,142 @@ tailor-sdk staticwebsite list [options]
|
|
|
121
122
|
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
122
123
|
|
|
123
124
|
<!-- politty:command:staticwebsite list:global-options-link:end -->
|
|
125
|
+
<!-- politty:command:staticwebsite domain:heading:start -->
|
|
126
|
+
|
|
127
|
+
### staticwebsite domain
|
|
128
|
+
|
|
129
|
+
<!-- politty:command:staticwebsite domain:heading:end -->
|
|
130
|
+
|
|
131
|
+
<!-- politty:command:staticwebsite domain:description:start -->
|
|
132
|
+
|
|
133
|
+
Manage custom domains for static websites.
|
|
134
|
+
|
|
135
|
+
<!-- politty:command:staticwebsite domain:description:end -->
|
|
136
|
+
|
|
137
|
+
<!-- politty:command:staticwebsite domain:usage:start -->
|
|
138
|
+
|
|
139
|
+
**Usage**
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
tailor-sdk staticwebsite domain [command]
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
<!-- politty:command:staticwebsite domain:usage:end -->
|
|
146
|
+
|
|
147
|
+
<!-- politty:command:staticwebsite domain:global-options-link:start -->
|
|
148
|
+
|
|
149
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
150
|
+
|
|
151
|
+
<!-- politty:command:staticwebsite domain:global-options-link:end -->
|
|
152
|
+
|
|
153
|
+
<!-- politty:command:staticwebsite domain:subcommands:start -->
|
|
154
|
+
|
|
155
|
+
**Commands**
|
|
156
|
+
|
|
157
|
+
| Command | Description |
|
|
158
|
+
| --------------------------------------------------------- | ----------------------------------------- |
|
|
159
|
+
| [`staticwebsite domain list`](#staticwebsite-domain-list) | List custom domains for a static website. |
|
|
160
|
+
| [`staticwebsite domain get`](#staticwebsite-domain-get) | Get details of a custom domain. |
|
|
161
|
+
|
|
162
|
+
<!-- politty:command:staticwebsite domain:subcommands:end -->
|
|
163
|
+
<!-- politty:command:staticwebsite domain get:heading:start -->
|
|
164
|
+
|
|
165
|
+
#### staticwebsite domain get
|
|
166
|
+
|
|
167
|
+
<!-- politty:command:staticwebsite domain get:heading:end -->
|
|
168
|
+
|
|
169
|
+
<!-- politty:command:staticwebsite domain get:description:start -->
|
|
170
|
+
|
|
171
|
+
Get details of a custom domain.
|
|
172
|
+
|
|
173
|
+
<!-- politty:command:staticwebsite domain get:description:end -->
|
|
174
|
+
|
|
175
|
+
<!-- politty:command:staticwebsite domain get:usage:start -->
|
|
176
|
+
|
|
177
|
+
**Usage**
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
tailor-sdk staticwebsite domain get [options] <domain>
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
<!-- politty:command:staticwebsite domain get:usage:end -->
|
|
184
|
+
|
|
185
|
+
<!-- politty:command:staticwebsite domain get:arguments:start -->
|
|
186
|
+
|
|
187
|
+
**Arguments**
|
|
188
|
+
|
|
189
|
+
| Argument | Description | Required |
|
|
190
|
+
| -------- | ------------------ | -------- |
|
|
191
|
+
| `domain` | Custom domain name | Yes |
|
|
192
|
+
|
|
193
|
+
<!-- politty:command:staticwebsite domain get:arguments:end -->
|
|
194
|
+
|
|
195
|
+
<!-- politty:command:staticwebsite domain get:options:start -->
|
|
196
|
+
|
|
197
|
+
**Options**
|
|
198
|
+
|
|
199
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
200
|
+
| ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
|
|
201
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
202
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
203
|
+
|
|
204
|
+
<!-- politty:command:staticwebsite domain get:options:end -->
|
|
205
|
+
|
|
206
|
+
<!-- politty:command:staticwebsite domain get:global-options-link:start -->
|
|
207
|
+
|
|
208
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
209
|
+
|
|
210
|
+
<!-- politty:command:staticwebsite domain get:global-options-link:end -->
|
|
211
|
+
|
|
212
|
+
<!-- politty:command:staticwebsite domain list:heading:start -->
|
|
213
|
+
|
|
214
|
+
#### staticwebsite domain list
|
|
215
|
+
|
|
216
|
+
<!-- politty:command:staticwebsite domain list:heading:end -->
|
|
217
|
+
|
|
218
|
+
<!-- politty:command:staticwebsite domain list:description:start -->
|
|
219
|
+
|
|
220
|
+
List custom domains for a static website.
|
|
221
|
+
|
|
222
|
+
<!-- politty:command:staticwebsite domain list:description:end -->
|
|
223
|
+
|
|
224
|
+
<!-- politty:command:staticwebsite domain list:usage:start -->
|
|
225
|
+
|
|
226
|
+
**Usage**
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
tailor-sdk staticwebsite domain list [options] <name>
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
<!-- politty:command:staticwebsite domain list:usage:end -->
|
|
233
|
+
|
|
234
|
+
<!-- politty:command:staticwebsite domain list:arguments:start -->
|
|
235
|
+
|
|
236
|
+
**Arguments**
|
|
237
|
+
|
|
238
|
+
| Argument | Description | Required |
|
|
239
|
+
| -------- | ------------------- | -------- |
|
|
240
|
+
| `name` | Static website name | Yes |
|
|
241
|
+
|
|
242
|
+
<!-- politty:command:staticwebsite domain list:arguments:end -->
|
|
243
|
+
|
|
244
|
+
<!-- politty:command:staticwebsite domain list:options:start -->
|
|
245
|
+
|
|
246
|
+
**Options**
|
|
247
|
+
|
|
248
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
249
|
+
| ------------------------------- | ----- | ----------------- | -------- | ------- | ------------------------------ |
|
|
250
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
251
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
252
|
+
|
|
253
|
+
<!-- politty:command:staticwebsite domain list:options:end -->
|
|
254
|
+
|
|
255
|
+
<!-- politty:command:staticwebsite domain list:global-options-link:start -->
|
|
256
|
+
|
|
257
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
258
|
+
|
|
259
|
+
<!-- politty:command:staticwebsite domain list:global-options-link:end -->
|
|
260
|
+
|
|
124
261
|
<!-- politty:command:staticwebsite get:heading:start -->
|
|
125
262
|
|
|
126
263
|
### staticwebsite get
|
package/docs/cli-reference.md
CHANGED
|
@@ -200,15 +200,16 @@ Commands for managing workspaces and profiles.
|
|
|
200
200
|
|
|
201
201
|
Commands for managing Auth service resources.
|
|
202
202
|
|
|
203
|
-
| Command | Description
|
|
204
|
-
| ------------------------------------------------------------------ |
|
|
205
|
-
| [authconnection authorize](./cli/auth.md#authconnection-authorize) | Authorize an auth connection via OAuth2 flow.
|
|
206
|
-
| [authconnection list](./cli/auth.md#authconnection-list) | List all auth connections.
|
|
207
|
-
| [authconnection revoke](./cli/auth.md#authconnection-revoke) | Revoke an auth connection.
|
|
208
|
-
| [
|
|
209
|
-
| [machineuser
|
|
210
|
-
| [
|
|
211
|
-
| [oauth2client
|
|
203
|
+
| Command | Description |
|
|
204
|
+
| ------------------------------------------------------------------ | ------------------------------------------------------------------------------------- |
|
|
205
|
+
| [authconnection authorize](./cli/auth.md#authconnection-authorize) | Authorize an auth connection via OAuth2 flow. |
|
|
206
|
+
| [authconnection list](./cli/auth.md#authconnection-list) | List all auth connections. |
|
|
207
|
+
| [authconnection revoke](./cli/auth.md#authconnection-revoke) | Revoke an auth connection's tokens (keeps the connection; use 'delete' to remove it). |
|
|
208
|
+
| [authconnection delete](./cli/auth.md#authconnection-delete) | Delete an auth connection entirely. |
|
|
209
|
+
| [machineuser list](./cli/auth.md#machineuser-list) | List all machine users in the application. |
|
|
210
|
+
| [machineuser token](./cli/auth.md#machineuser-token) | Get an access token for a machine user. |
|
|
211
|
+
| [oauth2client list](./cli/auth.md#oauth2client-list) | List all OAuth2 clients in the application. |
|
|
212
|
+
| [oauth2client get](./cli/auth.md#oauth2client-get) | Get OAuth2 client credentials (including client secret). |
|
|
212
213
|
|
|
213
214
|
### [Workflow Commands](./cli/workflow.md)
|
|
214
215
|
|
|
@@ -263,11 +264,13 @@ Commands for managing secrets and vaults.
|
|
|
263
264
|
|
|
264
265
|
Commands for managing and deploying static websites.
|
|
265
266
|
|
|
266
|
-
| Command
|
|
267
|
-
|
|
|
268
|
-
| [staticwebsite deploy](./cli/staticwebsite.md#staticwebsite-deploy)
|
|
269
|
-
| [staticwebsite list](./cli/staticwebsite.md#staticwebsite-list)
|
|
270
|
-
| [staticwebsite get](./cli/staticwebsite.md#staticwebsite-get)
|
|
267
|
+
| Command | Description |
|
|
268
|
+
| ----------------------------------------------------------------------------- | ----------------------------------------------------- |
|
|
269
|
+
| [staticwebsite deploy](./cli/staticwebsite.md#staticwebsite-deploy) | Deploy a static website from a local build directory. |
|
|
270
|
+
| [staticwebsite domain list](./cli/staticwebsite.md#staticwebsite-domain-list) | List custom domains for a static website. |
|
|
271
|
+
| [staticwebsite domain get](./cli/staticwebsite.md#staticwebsite-domain-get) | Get details of a custom domain. |
|
|
272
|
+
| [staticwebsite list](./cli/staticwebsite.md#staticwebsite-list) | List all static websites in a workspace. |
|
|
273
|
+
| [staticwebsite get](./cli/staticwebsite.md#staticwebsite-get) | Get details of a specific static website. |
|
|
271
274
|
|
|
272
275
|
### [Crash Report Commands](./cli/crashreport.md)
|
|
273
276
|
|
|
@@ -22,7 +22,7 @@ Generates a TypeScript file containing:
|
|
|
22
22
|
|
|
23
23
|
- Type definitions for all TailorDB types
|
|
24
24
|
- `getDB(namespace)` function to create Kysely instances
|
|
25
|
-
- Utility types for `Timestamp`, `Serial`, and `ObjectColumnType` (
|
|
25
|
+
- Utility types for `Timestamp`, `Serial`, and `ObjectColumnType` (used for nested object fields so insert and select types stay correct)
|
|
26
26
|
|
|
27
27
|
### Usage
|
|
28
28
|
|
package/docs/services/auth.md
CHANGED
|
@@ -521,14 +521,3 @@ tailor-sdk oauth2client get <name>
|
|
|
521
521
|
```
|
|
522
522
|
|
|
523
523
|
See [Auth Resource Commands](../cli/auth.md) for full documentation.
|
|
524
|
-
|
|
525
|
-
## SDK vs Platform Naming
|
|
526
|
-
|
|
527
|
-
> **Note for Platform developers**: The SDK uses different names than the underlying Platform API for user attributes:
|
|
528
|
-
>
|
|
529
|
-
> | SDK | Platform API | Description |
|
|
530
|
-
> | --------------- | --------------- | -------------------------------- |
|
|
531
|
-
> | `attributes` | `attribute_map` | Key-value map of user attributes |
|
|
532
|
-
> | `attributeList` | `attributes` | Ordered list of UUID values |
|
|
533
|
-
>
|
|
534
|
-
> This mapping is handled automatically by the SDK. If you're reading Platform documentation or API responses, be aware of this naming difference.
|
|
@@ -9,6 +9,7 @@ Static Website provides:
|
|
|
9
9
|
- Static file hosting
|
|
10
10
|
- Type-safe URL references for configuration
|
|
11
11
|
- IP address restrictions
|
|
12
|
+
- Custom domain support
|
|
12
13
|
|
|
13
14
|
For the official Tailor Platform documentation, see [Static Website Guide](https://docs.tailor.tech/guides/static-website-hosting).
|
|
14
15
|
|
|
@@ -61,6 +62,18 @@ defineStaticWebSite("my-website", {
|
|
|
61
62
|
});
|
|
62
63
|
```
|
|
63
64
|
|
|
65
|
+
### customDomains
|
|
66
|
+
|
|
67
|
+
Associate custom domains with the static website:
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
defineStaticWebSite("my-website", {
|
|
71
|
+
customDomains: ["app.example.com"],
|
|
72
|
+
});
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
After deploying, use `tailor-sdk staticwebsite domain get <domain>` to check domain status and retrieve the CNAME targets required for DNS configuration.
|
|
76
|
+
|
|
64
77
|
## Type-safe URL References
|
|
65
78
|
|
|
66
79
|
The returned website object provides a `url` property that resolves to the actual URL at deployment time. Use this for type-safe configuration:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.58.0",
|
|
4
4
|
"description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"pkg-types": "2.3.1",
|
|
176
176
|
"politty": "0.5.1",
|
|
177
177
|
"rolldown": "1.0.3",
|
|
178
|
-
"semver": "7.8.
|
|
178
|
+
"semver": "7.8.2",
|
|
179
179
|
"sql-highlight": "6.1.0",
|
|
180
180
|
"std-env": "4.1.0",
|
|
181
181
|
"table": "6.9.0",
|
|
@@ -190,9 +190,9 @@
|
|
|
190
190
|
"@opentelemetry/sdk-trace-base": "2.7.1",
|
|
191
191
|
"@types/madge": "5.0.3",
|
|
192
192
|
"@types/mime-types": "3.0.1",
|
|
193
|
-
"@types/node": "24.
|
|
193
|
+
"@types/node": "24.13.1",
|
|
194
194
|
"@types/semver": "7.7.1",
|
|
195
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
195
|
+
"@typescript/native-preview": "7.0.0-dev.20260605.1",
|
|
196
196
|
"@vitest/coverage-v8": "4.1.8",
|
|
197
197
|
"oxfmt": "0.53.0",
|
|
198
198
|
"oxlint": "1.68.0",
|