@tailor-platform/sdk 1.55.0 → 1.55.2
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 +26 -0
- package/dist/application-D6znmyMd.mjs +4 -0
- package/dist/{application-DzUlASfA.mjs → application-MY7YJJ-C.mjs} +13 -17
- package/dist/application-MY7YJJ-C.mjs.map +1 -0
- package/dist/cli/index.mjs +98 -35
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +10 -10
- package/dist/cli/lib.mjs +2 -2
- package/dist/configure/index.d.mts +3 -3
- package/dist/configure/index.mjs +2 -8
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{index-BLsnrEtc.d.mts → index-1APcOP9X.d.mts} +3 -3
- package/dist/{index-BE-fpxIo.d.mts → index-CPRnOjjt.d.mts} +2 -2
- package/dist/{index-S6-FtUpA.d.mts → index-CQZVJ5SX.d.mts} +2 -2
- package/dist/{index-D9xG-a6Y.d.mts → index-CfRFkXIO.d.mts} +2 -2
- package/dist/{index-cHqh66cF.d.mts → index-DUupuPhZ.d.mts} +2 -2
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/{plugin-BuE5ZOnW.d.mts → plugin-C_FyVSdl.d.mts} +3 -3
- package/dist/{runtime-BZsl7Mh9.mjs → runtime-DH5F_z8A.mjs} +117 -40
- package/dist/runtime-DH5F_z8A.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/{workflow.generated-CQg1_Ami.d.mts → workflow.generated-BGLDYJOq.d.mts} +2 -2
- package/docs/cli-reference.md +12 -0
- package/docs/services/auth.md +11 -0
- package/package.json +11 -11
- package/dist/application-DM8q9GDI.mjs +0 -4
- package/dist/application-DzUlASfA.mjs.map +0 -1
- package/dist/runtime-BZsl7Mh9.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-BGLDYJOq.mjs";
|
|
3
|
+
import { At as TailorField, bt as WORKFLOW_TEST_ENV_KEY, n as output } from "../../index-1APcOP9X.mjs";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
|
|
6
6
|
//#region src/utils/test/mock.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as FieldOutput$1, D as Validators, E as FieldValidateInput, F as InferFieldsOutput, N as TailorUser, R as Prettify, S as FieldOptions, T as TailorToTs, b as EnumValue, d as TailorDBType$1, f as DBFieldMetadata, g as TailorField, h as SerialConfig, j as InferredAttributeMap, l as TailorDBField$1, m as GqlOperationsConfig, n as RelationType, o as ValueOperand, p as DefinedDBFieldMetadata, r as TailorDBServiceInput, s as TailorAnyDBField$1, t as IndexDef, u as TailorDBInstance$1, v as ArrayFieldOutput, w as TailorFieldType, x as FieldMetadata, y as DefinedFieldMetadata, z as output } from "./tailordb-BlBGmQK-.mjs";
|
|
2
|
-
import { B as IdProvider, G as SCIMAttribute, H as OAuth2ClientInput, J as SCIMConfig, L as AuthInvoker, R as BuiltinIdP, V as OAuth2Client, X as TenantProvider, r as PluginConfigs } from "./plugin-
|
|
2
|
+
import { B as IdProvider, G as SCIMAttribute, H as OAuth2ClientInput, J as SCIMConfig, L as AuthInvoker, R as BuiltinIdP, V as OAuth2Client, X as TenantProvider, r as PluginConfigs } from "./plugin-C_FyVSdl.mjs";
|
|
3
3
|
import { n as TailorEnv } from "./env-B-g-qgE4.mjs";
|
|
4
4
|
import { IsAny, JsonObject, NonEmptyObject } from "type-fest";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -1393,4 +1393,4 @@ type ConcurrencyPolicy = {
|
|
|
1393
1393
|
};
|
|
1394
1394
|
//#endregion
|
|
1395
1395
|
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 };
|
|
1396
|
-
//# sourceMappingURL=workflow.generated-
|
|
1396
|
+
//# sourceMappingURL=workflow.generated-BGLDYJOq.d.mts.map
|
package/docs/cli-reference.md
CHANGED
|
@@ -22,6 +22,18 @@ tailor-sdk <command> [options]
|
|
|
22
22
|
|
|
23
23
|
<!-- politty:global-options:end -->
|
|
24
24
|
|
|
25
|
+
### JSON Output
|
|
26
|
+
|
|
27
|
+
For commands that return structured results, passing `--json` writes one parseable JSON document
|
|
28
|
+
to stdout on success. Empty successful result sets are emitted as JSON values such as `[]`, not as
|
|
29
|
+
human-readable text or empty stdout.
|
|
30
|
+
|
|
31
|
+
Commands that only perform side effects and do not define a structured result may leave stdout empty
|
|
32
|
+
even when `--json` is passed.
|
|
33
|
+
|
|
34
|
+
Errors, warnings, progress, and diagnostic messages are written to stderr. On failure, check the
|
|
35
|
+
non-zero exit code and read stderr; stdout is not guaranteed to contain a JSON error object.
|
|
36
|
+
|
|
25
37
|
## Common Options
|
|
26
38
|
|
|
27
39
|
The following options are available for most commands:
|
package/docs/services/auth.md
CHANGED
|
@@ -22,6 +22,7 @@ Configure Auth service using `defineAuth()`:
|
|
|
22
22
|
|
|
23
23
|
- **One auth per application**: Each application can have exactly one Auth service
|
|
24
24
|
- **Configuration location**: Define in `tailor.config.ts` using `defineAuth()` and reference directly in the config's `auth` field
|
|
25
|
+
- **`userProfile` and `machineUserAttributes` are mutually exclusive**: Specifying both fails at deploy/generate time with ``Specify either `userProfile` or `machineUserAttributes`, not both.``
|
|
25
26
|
|
|
26
27
|
```typescript
|
|
27
28
|
import { defineAuth } from "@tailor-platform/sdk";
|
|
@@ -94,6 +95,16 @@ export const user = db.type("User", {
|
|
|
94
95
|
|
|
95
96
|
**type**: The TailorDB type that stores user records.
|
|
96
97
|
|
|
98
|
+
**namespace** (optional): The TailorDB namespace where the user type is defined. Usually auto-resolved from your `db` configuration, so you don't need to specify it. Required only when multiple TailorDB namespaces exist and the type lives in an external TailorDB:
|
|
99
|
+
|
|
100
|
+
```typescript
|
|
101
|
+
userProfile: {
|
|
102
|
+
namespace: "external-ns", // Explicitly specify the namespace
|
|
103
|
+
type: user,
|
|
104
|
+
usernameField: "email",
|
|
105
|
+
},
|
|
106
|
+
```
|
|
107
|
+
|
|
97
108
|
**usernameField**: The field in the TailorDB type used as the username. This field must have a unique constraint (`.unique()`) since it is used to uniquely identify users.
|
|
98
109
|
|
|
99
110
|
**attributes**: Specifies which fields from the TailorDB type are used as user attributes. Set to `true` to enable a field. Enabled attributes must be assigned values in all machine user definitions. Only fields with ValueOperand types (string, boolean, string[], boolean[]) can be used as attributes. The `id` field and datetime/date/time types are excluded.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/sdk",
|
|
3
|
-
"version": "1.55.
|
|
3
|
+
"version": "1.55.2",
|
|
4
4
|
"description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"@connectrpc/connect": "2.1.1",
|
|
142
142
|
"@connectrpc/connect-node": "2.1.1",
|
|
143
143
|
"@inquirer/core": "11.2.1",
|
|
144
|
-
"@inquirer/prompts": "8.5.
|
|
144
|
+
"@inquirer/prompts": "8.5.2",
|
|
145
145
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
146
146
|
"@liam-hq/cli": "0.7.24",
|
|
147
147
|
"@napi-rs/keyring": "1.3.0",
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"@opentelemetry/resources": "2.7.1",
|
|
151
151
|
"@opentelemetry/sdk-trace-node": "2.7.1",
|
|
152
152
|
"@opentelemetry/semantic-conventions": "1.41.1",
|
|
153
|
-
"@oxc-project/types": "0.
|
|
153
|
+
"@oxc-project/types": "0.134.0",
|
|
154
154
|
"@standard-schema/spec": "1.1.0",
|
|
155
155
|
"@tailor-platform/function-kysely-tailordb": "0.1.3",
|
|
156
156
|
"@toiroakr/lines-db": "0.9.2",
|
|
@@ -163,13 +163,13 @@
|
|
|
163
163
|
"es-toolkit": "1.47.0",
|
|
164
164
|
"find-up-simple": "1.0.1",
|
|
165
165
|
"globals": "17.6.0",
|
|
166
|
-
"graphql": "16.14.
|
|
166
|
+
"graphql": "16.14.1",
|
|
167
167
|
"inflection": "3.0.2",
|
|
168
168
|
"kysely": "0.29.2",
|
|
169
169
|
"madge": "8.0.0",
|
|
170
170
|
"mime-types": "3.0.2",
|
|
171
171
|
"open": "11.0.0",
|
|
172
|
-
"oxc-parser": "0.
|
|
172
|
+
"oxc-parser": "0.134.0",
|
|
173
173
|
"p-limit": "7.3.0",
|
|
174
174
|
"pathe": "2.0.3",
|
|
175
175
|
"pgsql-ast-parser": "12.0.2",
|
|
@@ -182,8 +182,8 @@
|
|
|
182
182
|
"std-env": "4.1.0",
|
|
183
183
|
"table": "6.9.0",
|
|
184
184
|
"ts-cron-validator": "1.1.5",
|
|
185
|
-
"tsx": "4.22.
|
|
186
|
-
"type-fest": "5.
|
|
185
|
+
"tsx": "4.22.4",
|
|
186
|
+
"type-fest": "5.7.0",
|
|
187
187
|
"undici": "8.3.0",
|
|
188
188
|
"xdg-basedir": "5.1.0",
|
|
189
189
|
"zod": "4.4.3"
|
|
@@ -195,14 +195,14 @@
|
|
|
195
195
|
"@types/node": "24.12.4",
|
|
196
196
|
"@types/semver": "7.7.1",
|
|
197
197
|
"@typescript/native-preview": "7.0.0-dev.20260527.2",
|
|
198
|
-
"@vitest/coverage-v8": "4.1.
|
|
199
|
-
"oxfmt": "0.
|
|
200
|
-
"oxlint": "1.
|
|
198
|
+
"@vitest/coverage-v8": "4.1.8",
|
|
199
|
+
"oxfmt": "0.53.0",
|
|
200
|
+
"oxlint": "1.68.0",
|
|
201
201
|
"oxlint-tsgolint": "0.23.0",
|
|
202
202
|
"sonda": "0.11.1",
|
|
203
203
|
"tsdown": "0.22.1",
|
|
204
204
|
"typescript": "5.9.3",
|
|
205
|
-
"vitest": "4.1.
|
|
205
|
+
"vitest": "4.1.8",
|
|
206
206
|
"zinfer": "0.1.8"
|
|
207
207
|
},
|
|
208
208
|
"peerDependencies": {
|