@tailor-platform/sdk 1.39.0 → 1.39.1
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 +12 -0
- package/dist/{env-CgI46oPS.d.mts → actor-Bb4OVq1j.d.mts} +9 -9
- package/dist/{application-DhQrXEld.mjs → application-BHu8YE-g.mjs} +148 -148
- package/dist/application-BHu8YE-g.mjs.map +1 -0
- package/dist/application-C8Lr37AM.mjs +4 -0
- package/dist/{brand-D-d15jx3.mjs → brand-Ll48SMXe.mjs} +1 -1
- package/dist/{brand-D-d15jx3.mjs.map → brand-Ll48SMXe.mjs.map} +1 -1
- package/dist/cli/index.mjs +15 -15
- package/dist/cli/lib.d.mts +9 -9
- package/dist/cli/lib.mjs +4 -4
- package/dist/{client-xzPXtc_e.mjs → client-B2K45RvK.mjs} +77 -47
- package/dist/client-B2K45RvK.mjs.map +1 -0
- package/dist/{client-BWAbbA1C.mjs → client-CEVmv94H.mjs} +1 -1
- package/dist/configure/index.d.mts +4 -4
- package/dist/configure/index.mjs +55 -4
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{crash-report-DXhPL8Ue.mjs → crash-report-CACiemAr.mjs} +4 -4
- package/dist/{crash-report-DXhPL8Ue.mjs.map → crash-report-CACiemAr.mjs.map} +1 -1
- package/dist/{crash-report-BEAiCSCl.mjs → crash-report-CPUF3T5d.mjs} +1 -1
- package/dist/{errors-D9f2UJpT.mjs → errors-ChWX5ZG8.mjs} +1 -1
- package/dist/{errors-D9f2UJpT.mjs.map → errors-ChWX5ZG8.mjs.map} +1 -1
- package/dist/field-BY2vbJ8f.mjs +23 -0
- package/dist/field-BY2vbJ8f.mjs.map +1 -0
- package/dist/{index-31hm0Fq7.d.mts → index-BYmdVno1.d.mts} +133 -30
- package/dist/{index-y5790SX_.d.mts → index-CeFwhUkX.d.mts} +2 -2
- package/dist/{index-B2tsEXdh.d.mts → index-Ch8Em3nz.d.mts} +2 -2
- package/dist/{index-DbzopC7M.d.mts → index-Cx1RYDbu.d.mts} +2 -2
- package/dist/{index-DeBFa7oc.d.mts → index-DLO_XvLi.d.mts} +2 -2
- package/dist/{interceptor-CzaH2Ur6.mjs → interceptor-B5bKVwgq.mjs} +1 -1
- package/dist/{interceptor-CzaH2Ur6.mjs.map → interceptor-B5bKVwgq.mjs.map} +1 -1
- package/dist/{job-DkAklmE4.mjs → job-p6zf8Qpg.mjs} +2 -2
- package/dist/job-p6zf8Qpg.mjs.map +1 -0
- package/dist/{logger-5_JMzHmw.mjs → logger-DTNAMYGy.mjs} +1 -1
- package/dist/{logger-5_JMzHmw.mjs.map → logger-DTNAMYGy.mjs.map} +1 -1
- package/dist/package-json-CPR7s5hf.mjs +4 -0
- package/dist/{package-json-BHViVisJ.mjs → package-json-CWp8s9dE.mjs} +1 -1
- package/dist/{package-json-BHViVisJ.mjs.map → package-json-CWp8s9dE.mjs.map} +1 -1
- 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/builtin/seed/index.mjs +1 -1
- package/dist/plugin/index.d.mts +2 -2
- package/dist/{runtime-DtSOnOHh.mjs → runtime-2xqzvkQv.mjs} +86 -15
- package/dist/runtime-2xqzvkQv.mjs.map +1 -0
- package/dist/{schema-CnwUqPyM.mjs → schema-CEcfEyPN.mjs} +4 -44
- package/dist/schema-CEcfEyPN.mjs.map +1 -0
- package/dist/{seed-DrbB1VXd.mjs → seed-CyYPhvNL.mjs} +12 -12
- package/dist/seed-CyYPhvNL.mjs.map +1 -0
- package/dist/{service-Bcp6JB3w.mjs → service-SrG26B9T.mjs} +3 -3
- package/dist/{service-Bcp6JB3w.mjs.map → service-SrG26B9T.mjs.map} +1 -1
- package/dist/{plugin-_K3ZfP8B.d.mts → tailor-db-field-B99RnR2N.d.mts} +695 -1187
- package/dist/{telemetry-DwHuiNiR.mjs → telemetry-BuDto_2q.mjs} +2 -2
- package/dist/{telemetry-DwHuiNiR.mjs.map → telemetry-BuDto_2q.mjs.map} +1 -1
- package/dist/telemetry-C1hzFaiV.mjs +4 -0
- package/dist/types-BnphjkIJ.mjs +5 -0
- package/dist/{types-B9ZMosul.mjs → types-Duhhsx3R.mjs} +3 -32
- package/dist/types-Duhhsx3R.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/utils/test/index.mjs +1 -1
- package/dist/workflow.generated-DSwr-k57.d.mts +1207 -0
- package/docs/cli/application.md +21 -5
- package/docs/services/idp.md +4 -4
- package/package.json +2 -2
- package/dist/application-C1ipG5Q6.mjs +0 -4
- package/dist/application-DhQrXEld.mjs.map +0 -1
- package/dist/client-xzPXtc_e.mjs.map +0 -1
- package/dist/job-DkAklmE4.mjs.map +0 -1
- package/dist/package-json--6dmp6-h.mjs +0 -4
- package/dist/runtime-DtSOnOHh.mjs.map +0 -1
- package/dist/schema-CnwUqPyM.mjs.map +0 -1
- package/dist/seed-DrbB1VXd.mjs.map +0 -1
- package/dist/telemetry-4IOPW6wE.mjs +0 -4
- package/dist/types-B9ZMosul.mjs.map +0 -1
- package/dist/types-C45jRrCM.mjs +0 -4
- package/dist/workflow.generated-BxbnuzAE.d.mts +0 -414
package/docs/cli/application.md
CHANGED
|
@@ -330,11 +330,12 @@ tailor-sdk api [options] <endpoint>
|
|
|
330
330
|
|
|
331
331
|
**Options**
|
|
332
332
|
|
|
333
|
-
| Option | Alias | Description
|
|
334
|
-
| ------------------------------- | ----- |
|
|
335
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID
|
|
336
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile
|
|
337
|
-
| `--
|
|
333
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
334
|
+
| ------------------------------- | ----- | ----------------------- | -------- | -------------------- | --------------------------------- |
|
|
335
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
336
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
337
|
+
| `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
|
|
338
|
+
| `--body <BODY>` | `-b` | Request body as JSON | No | `"{}"` | - |
|
|
338
339
|
|
|
339
340
|
<!-- politty:command:api:options:end -->
|
|
340
341
|
|
|
@@ -343,3 +344,18 @@ tailor-sdk api [options] <endpoint>
|
|
|
343
344
|
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
344
345
|
|
|
345
346
|
<!-- politty:command:api:global-options-link:end -->
|
|
347
|
+
|
|
348
|
+
<!-- politty:command:api:notes:start -->
|
|
349
|
+
|
|
350
|
+
**Notes**
|
|
351
|
+
|
|
352
|
+
The request body is inferred from the proto definition of the target endpoint, and commonly required fields are auto-injected so they can be omitted from `--body`:
|
|
353
|
+
|
|
354
|
+
- `workspaceId` — resolved from `-w` / `TAILOR_PLATFORM_WORKSPACE_ID` / the selected profile.
|
|
355
|
+
- `namespaceName` — resolved from `tailor.config.ts` based on the endpoint's service:
|
|
356
|
+
- Auth / Tenant / UserProfile endpoints use `auth.name`.
|
|
357
|
+
- IdP / TailorDB / Pipeline endpoints use the sole configured namespace when exactly one is defined.
|
|
358
|
+
|
|
359
|
+
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.
|
|
360
|
+
|
|
361
|
+
<!-- politty:command:api:notes:end -->
|
package/docs/services/idp.md
CHANGED
|
@@ -43,9 +43,9 @@ export default defineConfig({
|
|
|
43
43
|
|
|
44
44
|
## Options
|
|
45
45
|
|
|
46
|
-
### authorization
|
|
46
|
+
### authorization (optional)
|
|
47
47
|
|
|
48
|
-
User management permissions. Controls who can manage users in the IdP.
|
|
48
|
+
User management permissions. Controls who can manage users in the IdP. This field can be omitted when using `permission` for access control.
|
|
49
49
|
|
|
50
50
|
```typescript
|
|
51
51
|
defineIdp("my-idp", {
|
|
@@ -57,7 +57,7 @@ defineIdp("my-idp", {
|
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
defineIdp("my-idp", {
|
|
60
|
-
authorization: "user.role == 'admin'", // CEL expression
|
|
60
|
+
authorization: { cel: "user.role == 'admin'" }, // CEL expression
|
|
61
61
|
});
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -65,7 +65,7 @@ defineIdp("my-idp", {
|
|
|
65
65
|
|
|
66
66
|
- `"insecure"` - No authentication required (use only for development)
|
|
67
67
|
- `"loggedIn"` - Requires authenticated user
|
|
68
|
-
-
|
|
68
|
+
- `{ cel: "<expression>" }` - Custom authorization logic using CEL
|
|
69
69
|
|
|
70
70
|
### clients
|
|
71
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/sdk",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.1",
|
|
4
4
|
"description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"typescript": "5.9.3",
|
|
149
149
|
"typescript-eslint": "8.58.1",
|
|
150
150
|
"vitest": "4.1.4",
|
|
151
|
-
"zinfer": "0.1.
|
|
151
|
+
"zinfer": "0.1.8"
|
|
152
152
|
},
|
|
153
153
|
"scripts": {
|
|
154
154
|
"test": "vitest",
|