@tailor-platform/sdk 1.39.1 → 1.40.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 +24 -0
- package/README.md +7 -10
- package/dist/{actor-Bb4OVq1j.d.mts → actor-B2oEmlTc.d.mts} +2 -2
- package/dist/application-CEeKm4R-.mjs +4 -0
- package/dist/{application-BHu8YE-g.mjs → application-C_LFXkKJ.mjs} +2 -2
- package/dist/{application-BHu8YE-g.mjs.map → application-C_LFXkKJ.mjs.map} +1 -1
- package/dist/cli/index.mjs +153 -32
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +40 -6
- package/dist/cli/lib.mjs +3 -3
- package/dist/cli/skills.mjs +13 -43
- package/dist/cli/skills.mjs.map +1 -1
- package/dist/{client-B2K45RvK.mjs → client-DjGFRjH4.mjs} +31 -3
- package/dist/{client-B2K45RvK.mjs.map → client-DjGFRjH4.mjs.map} +1 -1
- package/dist/client-Dtf48x0o.mjs +4 -0
- package/dist/configure/index.d.mts +4 -4
- package/dist/{crash-report-CPUF3T5d.mjs → crash-report-CEIXtw4D.mjs} +1 -1
- package/dist/{crash-report-CACiemAr.mjs → crash-report-CSWITsTz.mjs} +2 -2
- package/dist/{crash-report-CACiemAr.mjs.map → crash-report-CSWITsTz.mjs.map} +1 -1
- package/dist/{index-Cx1RYDbu.d.mts → index-BtXZdz-F.d.mts} +2 -2
- package/dist/{index-CeFwhUkX.d.mts → index-Chvw1Eod.d.mts} +2 -2
- package/dist/{index-Ch8Em3nz.d.mts → index-CiNNNpuH.d.mts} +2 -2
- package/dist/{index-BYmdVno1.d.mts → index-D_ezppY7.d.mts} +4 -4
- package/dist/{index-DLO_XvLi.d.mts → index-reFAYSX7.d.mts} +2 -2
- package/dist/{interceptor-B5bKVwgq.mjs → interceptor-4UC-KTno.mjs} +1 -1
- package/dist/{interceptor-B5bKVwgq.mjs.map → interceptor-4UC-KTno.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/index.d.mts +2 -2
- package/dist/repl-editor-DjycioU-.mjs +255 -0
- package/dist/repl-editor-DjycioU-.mjs.map +1 -0
- package/dist/{runtime-2xqzvkQv.mjs → runtime-im7Sq4jO.mjs} +231 -171
- package/dist/runtime-im7Sq4jO.mjs.map +1 -0
- package/dist/{tailor-db-field-B99RnR2N.d.mts → tailor-db-field-CoFKRCYW.d.mts} +1 -1
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/{workflow.generated-DSwr-k57.d.mts → workflow.generated-Btz6srLR.d.mts} +2 -2
- package/docs/cli/auth.md +20 -14
- package/docs/cli/executor.md +17 -14
- package/docs/cli/function.md +6 -4
- package/docs/cli/query.md +45 -0
- package/docs/cli/secret.md +13 -9
- package/docs/cli/skills.md +75 -0
- package/docs/cli/staticwebsite.md +6 -4
- package/docs/cli/user.md +9 -1
- package/docs/cli/workflow.md +17 -13
- package/docs/cli-reference.md +16 -0
- package/docs/services/workflow.md +1 -1
- package/package.json +11 -8
- package/dist/application-C8Lr37AM.mjs +0 -4
- package/dist/client-CEVmv94H.mjs +0 -4
- package/dist/runtime-2xqzvkQv.mjs.map +0 -1
|
@@ -1598,4 +1598,4 @@ type TailorAnyDBType = TailorDBType<any, any>;
|
|
|
1598
1598
|
type TailorDBInstance<Fields extends Record<string, TailorAnyDBField> = any, User extends object = InferredAttributeMap> = TailorDBType<Fields, User>;
|
|
1599
1599
|
//#endregion
|
|
1600
1600
|
export { ResolverInput as $, RelationType as A, FieldMetadata as At, BeforeLoginHookArgs as B, InferredAttributeMap as Bt, ResolverReadyContext as C, SCIMAuthorization as Ct, DefinedDBFieldMetadata as D, ArrayFieldOutput as Dt, DBFieldMetadata as E, TenantProvider as Et, AuthConfig as F, FieldValidateInput as Ft, UserAttributeListKey as G, JsonValue as Gt, OAuth2ClientGrantType as H, unauthenticatedTailorUser as Ht, AuthConnectionTokenResult as I, Validators as It, ValueOperand as J, UserAttributeMap as K, Prettify as Kt, AuthExternalConfig as L, AttributeList as Lt, TailorDBServiceInput as M, FieldOutput$1 as Mt, TailorDBType$1 as N, TailorFieldType as Nt, GqlOperationsConfig as O, DefinedFieldMetadata as Ot, TypeSourceInfoEntry as P, TailorToTs as Pt, Resolver as Q, AuthOwnConfig as R, AttributeMap as Rt, ResolverNamespaceData as S, SCIMAttributeMapping as St, TailorDBReadyContext as T, SCIMResource as Tt, SCIMAttributeType as U, InferFieldsOutput as Ut, DefinedAuth as V, TailorUser as Vt, UserAttributeKey as W, JsonCompatible as Wt, AuthConnectionConfig as X, TailorField as Y, AuthConnectionOAuth2Config as Z, PluginProcessContext as _, IdProvider as _t, NamespacePluginOutput as a, FunctionOperation as at, ExecutorReadyContext as b, SAML as bt, PluginConfigs as c, IncomingWebhookTrigger as ct, PluginGeneratedExecutor as d, TailorDBTrigger as dt, GeneratorConfig as et, PluginGeneratedExecutorWithFile as f, WebhookOperation as ft, PluginOutput as g, IDToken as gt, PluginNamespaceProcessContext as h, BuiltinIdP as ht, TailorDBType as i, ExecutorInput as it, SerialConfig as j, FieldOptions as jt, IndexDef as k, EnumValue as kt, PluginExecutorContext as l, ResolverExecutedTrigger as lt, PluginGeneratedType as m, AuthInvoker as mt, TailorAnyDBType as n, AuthAccessTokenTrigger as nt, Plugin as o, GqlOperation as ot, PluginGeneratedResolver as p, WorkflowOperation as pt, UsernameFieldKey as q, output as qt, TailorDBField as r, Executor as rt, PluginAttachment as s, IdpUserTrigger as st, TailorAnyDBField as t, BaseGeneratorConfig as tt, PluginExecutorContextBase as u, ScheduleTriggerInput as ut, TailorDBTypeForPlugin as v, OAuth2ClientInput as vt, TailorDBNamespaceData as w, SCIMConfig as wt, GeneratorResult as x, SCIMAttribute as xt, TypePluginOutput as y, OIDC as yt, AuthServiceInput as z, InferredAttributeList as zt };
|
|
1601
|
-
//# sourceMappingURL=tailor-db-field-
|
|
1601
|
+
//# sourceMappingURL=tailor-db-field-CoFKRCYW.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="@tailor-platform/function-types" />
|
|
2
|
-
import { D as TailorDBType } from "../../workflow.generated-
|
|
3
|
-
import { ct as WORKFLOW_TEST_ENV_KEY, n as output, vt as TailorField } from "../../index-
|
|
2
|
+
import { D as TailorDBType } from "../../workflow.generated-Btz6srLR.mjs";
|
|
3
|
+
import { ct as WORKFLOW_TEST_ENV_KEY, n as output, vt as TailorField } from "../../index-D_ezppY7.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
|
/// <reference types="@tailor-platform/function-types" />
|
|
2
|
-
import { A as RelationType, Bt as InferredAttributeMap, D as DefinedDBFieldMetadata, Dt as ArrayFieldOutput, E as DBFieldMetadata, F as AuthConfig, Ft as FieldValidateInput, It as Validators, Kt as Prettify, M as TailorDBServiceInput, Mt as FieldOutput, O as GqlOperationsConfig, Pt as TailorToTs, Ut as InferFieldsOutput, Vt as TailorUser, Y as TailorField, c as PluginConfigs, ht as BuiltinIdP, i as TailorDBType$1, j as SerialConfig, jt as FieldOptions, k as IndexDef, kt as EnumValue, qt as output, r as TailorDBField$1, t as TailorAnyDBField$1 } from "./tailor-db-field-
|
|
2
|
+
import { A as RelationType, Bt as InferredAttributeMap, D as DefinedDBFieldMetadata, Dt as ArrayFieldOutput, E as DBFieldMetadata, F as AuthConfig, Ft as FieldValidateInput, It as Validators, Kt as Prettify, M as TailorDBServiceInput, Mt as FieldOutput, O as GqlOperationsConfig, Pt as TailorToTs, Ut as InferFieldsOutput, Vt as TailorUser, Y as TailorField, c as PluginConfigs, ht as BuiltinIdP, i as TailorDBType$1, j as SerialConfig, jt as FieldOptions, k as IndexDef, kt as EnumValue, qt as output, r as TailorDBField$1, t as TailorAnyDBField$1 } from "./tailor-db-field-CoFKRCYW.mjs";
|
|
3
3
|
import { NonEmptyObject } from "type-fest";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
|
|
@@ -1204,4 +1204,4 @@ type RetryPolicy = {
|
|
|
1204
1204
|
};
|
|
1205
1205
|
//#endregion
|
|
1206
1206
|
export { TailorTypeGqlPermission as A, TailorAnyDBField as C, TailorDBType as D, TailorDBInstance as E, AllowedValuesOutput as F, unsafeAllowAllGqlPermission as M, unsafeAllowAllTypePermission as N, db as O, AllowedValues as P, IdPInput as S, TailorDBField as T, IdPUserField as _, ResolverExternalConfig as a, IdPGqlOperations as b, WorkflowServiceConfig as c, StaticWebsiteDefinitionBrand as d, StaticWebsiteInput as f, IdPExternalConfig as g, IdPConfig as h, ExecutorServiceInput as i, TailorTypePermission as j, PermissionCondition as k, WorkflowServiceInput as l, SecretsDefinitionBrand as m, AppConfig as n, ResolverServiceConfig as o, SecretsConfig as p, ExecutorServiceConfig as r, ResolverServiceInput as s, RetryPolicy as t, StaticWebsiteConfig as u, IdpDefinitionBrand as v, TailorAnyDBType as w, IdPGqlOperationsInput as x, IdPEmailConfig as y };
|
|
1207
|
-
//# sourceMappingURL=workflow.generated-
|
|
1207
|
+
//# sourceMappingURL=workflow.generated-Btz6srLR.d.mts.map
|
package/docs/cli/auth.md
CHANGED
|
@@ -110,10 +110,12 @@ tailor-sdk authconnection list [options]
|
|
|
110
110
|
|
|
111
111
|
**Options**
|
|
112
112
|
|
|
113
|
-
| Option | Alias | Description
|
|
114
|
-
| ------------------------------- | ----- |
|
|
115
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID
|
|
116
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile
|
|
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
|
+
| `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
|
|
118
|
+
| `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
|
|
117
119
|
|
|
118
120
|
<!-- politty:command:authconnection list:options:end -->
|
|
119
121
|
|
|
@@ -227,11 +229,13 @@ tailor-sdk machineuser list [options]
|
|
|
227
229
|
|
|
228
230
|
**Options**
|
|
229
231
|
|
|
230
|
-
| Option | Alias | Description
|
|
231
|
-
| ------------------------------- | ----- |
|
|
232
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID
|
|
233
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile
|
|
234
|
-
| `--config <CONFIG>` | `-c` | Path to SDK config file
|
|
232
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
233
|
+
| ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
|
|
234
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
235
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
236
|
+
| `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
|
|
237
|
+
| `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
|
|
238
|
+
| `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
|
|
235
239
|
|
|
236
240
|
<!-- politty:command:machineuser list:options:end -->
|
|
237
241
|
|
|
@@ -353,11 +357,13 @@ tailor-sdk oauth2client list [options]
|
|
|
353
357
|
|
|
354
358
|
**Options**
|
|
355
359
|
|
|
356
|
-
| Option | Alias | Description
|
|
357
|
-
| ------------------------------- | ----- |
|
|
358
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID
|
|
359
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile
|
|
360
|
-
| `--config <CONFIG>` | `-c` | Path to SDK config file
|
|
360
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
361
|
+
| ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
|
|
362
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
363
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
364
|
+
| `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
|
|
365
|
+
| `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
|
|
366
|
+
| `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
|
|
361
367
|
|
|
362
368
|
<!-- politty:command:oauth2client list:options:end -->
|
|
363
369
|
|
package/docs/cli/executor.md
CHANGED
|
@@ -70,10 +70,12 @@ tailor-sdk executor list [options]
|
|
|
70
70
|
|
|
71
71
|
**Options**
|
|
72
72
|
|
|
73
|
-
| Option | Alias | Description
|
|
74
|
-
| ------------------------------- | ----- |
|
|
75
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID
|
|
76
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile
|
|
73
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
74
|
+
| ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------- | ------------------------------ |
|
|
75
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
76
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
77
|
+
| `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
|
|
78
|
+
| `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
|
|
77
79
|
|
|
78
80
|
<!-- politty:command:executor list:options:end -->
|
|
79
81
|
|
|
@@ -169,16 +171,17 @@ tailor-sdk executor jobs [options] <executorName> [jobId]
|
|
|
169
171
|
|
|
170
172
|
**Options**
|
|
171
173
|
|
|
172
|
-
| Option | Alias | Description | Required | Default
|
|
173
|
-
| ------------------------------- | ----- | ----------------------------------------------------------------------------------------------------- | -------- |
|
|
174
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | -
|
|
175
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile | No | -
|
|
176
|
-
| `--status <STATUS>` | `-s` | Filter by status (PENDING, RUNNING, SUCCESS, FAILED, CANCELED) (list mode only) | No | -
|
|
177
|
-
| `--attempts` | - | Show job attempts (only with job ID) (detail mode only) | No | `false`
|
|
178
|
-
| `--wait` | `-W` | Wait for job completion and downstream execution (workflow/function) if applicable (detail mode only) | No | `false`
|
|
179
|
-
| `--interval <INTERVAL>` | `-i` | Polling interval when using --wait (e.g., '3s', '500ms', '1m') | No | `"3s"`
|
|
180
|
-
| `--
|
|
181
|
-
| `--limit <LIMIT>` | - | Maximum number of jobs to list (
|
|
174
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
175
|
+
| ------------------------------- | ----- | ----------------------------------------------------------------------------------------------------- | -------- | -------- | ------------------------------ |
|
|
176
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
177
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
178
|
+
| `--status <STATUS>` | `-s` | Filter by status (PENDING, RUNNING, SUCCESS, FAILED, CANCELED) (list mode only) | No | - | - |
|
|
179
|
+
| `--attempts` | - | Show job attempts (only with job ID) (detail mode only) | No | `false` | - |
|
|
180
|
+
| `--wait` | `-W` | Wait for job completion and downstream execution (workflow/function) if applicable (detail mode only) | No | `false` | - |
|
|
181
|
+
| `--interval <INTERVAL>` | `-i` | Polling interval when using --wait (e.g., '3s', '500ms', '1m') | No | `"3s"` | - |
|
|
182
|
+
| `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
|
|
183
|
+
| `--limit <LIMIT>` | - | Maximum number of jobs to list (0: unlimited, default: 50) (list mode only) | No | `50` | - |
|
|
184
|
+
| `--logs` | `-l` | Display function execution logs after completion (requires --wait) | No | `false` | - |
|
|
182
185
|
|
|
183
186
|
<!-- politty:command:executor jobs:options:end -->
|
|
184
187
|
|
package/docs/cli/function.md
CHANGED
|
@@ -76,10 +76,12 @@ tailor-sdk function logs [options] [executionId]
|
|
|
76
76
|
|
|
77
77
|
**Options**
|
|
78
78
|
|
|
79
|
-
| Option | Alias | Description
|
|
80
|
-
| ------------------------------- | ----- |
|
|
81
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID
|
|
82
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile
|
|
79
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
80
|
+
| ------------------------------- | ----- | ------------------------------------------------ | -------- | -------- | ------------------------------ |
|
|
81
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
82
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
83
|
+
| `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
|
|
84
|
+
| `--limit <LIMIT>` | `-l` | Maximum number of items to return (0: unlimited) | No | `50` | - |
|
|
83
85
|
|
|
84
86
|
<!-- politty:command:function logs:options:end -->
|
|
85
87
|
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<!-- politty:command:query:heading:start -->
|
|
2
|
+
|
|
3
|
+
## query
|
|
4
|
+
|
|
5
|
+
<!-- politty:command:query:heading:end -->
|
|
6
|
+
|
|
7
|
+
<!-- politty:command:query:description:start -->
|
|
8
|
+
|
|
9
|
+
Run SQL/GraphQL query.
|
|
10
|
+
|
|
11
|
+
<!-- politty:command:query:description:end -->
|
|
12
|
+
|
|
13
|
+
<!-- politty:command:query:usage:start -->
|
|
14
|
+
|
|
15
|
+
**Usage**
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
tailor-sdk query [options]
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
<!-- politty:command:query:usage:end -->
|
|
22
|
+
|
|
23
|
+
<!-- politty:command:query:options:start -->
|
|
24
|
+
|
|
25
|
+
**Options**
|
|
26
|
+
|
|
27
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
28
|
+
| ------------------------------- | ----- | ---------------------------------------------------------------------------------------------------- | -------- | -------------------- | ----------------------------------- |
|
|
29
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
30
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
31
|
+
| `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
|
|
32
|
+
| `--engine <ENGINE>` | - | Query engine (sql or gql) | Yes | - | - |
|
|
33
|
+
| `--query <QUERY>` | `-q` | Query string to execute directly; omit to start REPL mode | No | - | - |
|
|
34
|
+
| `--file <FILE>` | `-f` | Read query string from file; omit to start REPL mode | No | - | - |
|
|
35
|
+
| `--edit` | - | Open a temporary file in your editor; omit to start REPL mode | No | `false` | - |
|
|
36
|
+
| `--machine-user <MACHINE_USER>` | `-m` | Machine user name for query execution | Yes | - | `TAILOR_PLATFORM_MACHINE_USER_NAME` |
|
|
37
|
+
| `--newline-on-enter` | - | REPL: when true, Enter inserts a newline and Shift+Enter submits. Use --no-newline-on-enter to swap. | No | - | - |
|
|
38
|
+
|
|
39
|
+
<!-- politty:command:query:options:end -->
|
|
40
|
+
|
|
41
|
+
<!-- politty:command:query:global-options-link:start -->
|
|
42
|
+
|
|
43
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
44
|
+
|
|
45
|
+
<!-- politty:command:query:global-options-link:end -->
|
package/docs/cli/secret.md
CHANGED
|
@@ -205,10 +205,12 @@ tailor-sdk secret vault list [options]
|
|
|
205
205
|
|
|
206
206
|
**Options**
|
|
207
207
|
|
|
208
|
-
| Option | Alias | Description
|
|
209
|
-
| ------------------------------- | ----- |
|
|
210
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID
|
|
211
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile
|
|
208
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
209
|
+
| ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------- | ------------------------------ |
|
|
210
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
211
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
212
|
+
| `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
|
|
213
|
+
| `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
|
|
212
214
|
|
|
213
215
|
<!-- politty:command:secret vault list:options:end -->
|
|
214
216
|
|
|
@@ -327,11 +329,13 @@ tailor-sdk secret list [options]
|
|
|
327
329
|
|
|
328
330
|
**Options**
|
|
329
331
|
|
|
330
|
-
| Option | Alias | Description
|
|
331
|
-
| ------------------------------- | ----- |
|
|
332
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID
|
|
333
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile
|
|
334
|
-
| `--vault-name <VAULT_NAME>` | `-V` | Vault name
|
|
332
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
333
|
+
| ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------- | ------------------------------ |
|
|
334
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
335
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
336
|
+
| `--vault-name <VAULT_NAME>` | `-V` | Vault name | Yes | - | - |
|
|
337
|
+
| `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
|
|
338
|
+
| `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
|
|
335
339
|
|
|
336
340
|
<!-- politty:command:secret list:options:end -->
|
|
337
341
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<!-- politty:command:skills:heading:start -->
|
|
2
|
+
|
|
3
|
+
## skills
|
|
4
|
+
|
|
5
|
+
<!-- politty:command:skills:heading:end -->
|
|
6
|
+
|
|
7
|
+
<!-- politty:command:skills:description:start -->
|
|
8
|
+
|
|
9
|
+
Manage Tailor SDK agent skills.
|
|
10
|
+
|
|
11
|
+
<!-- politty:command:skills:description:end -->
|
|
12
|
+
|
|
13
|
+
<!-- politty:command:skills:usage:start -->
|
|
14
|
+
|
|
15
|
+
**Usage**
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
tailor-sdk skills [command]
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
<!-- politty:command:skills:usage:end -->
|
|
22
|
+
|
|
23
|
+
<!-- politty:command:skills:global-options-link:start -->
|
|
24
|
+
|
|
25
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
26
|
+
|
|
27
|
+
<!-- politty:command:skills:global-options-link:end -->
|
|
28
|
+
|
|
29
|
+
<!-- politty:command:skills:subcommands:start -->
|
|
30
|
+
|
|
31
|
+
**Commands**
|
|
32
|
+
|
|
33
|
+
| Command | Description |
|
|
34
|
+
| ----------------------------------- | ------------------------------------------------------------------ |
|
|
35
|
+
| [`skills install`](#skills-install) | Install the tailor-sdk agent skill from the installed SDK package. |
|
|
36
|
+
|
|
37
|
+
<!-- politty:command:skills:subcommands:end -->
|
|
38
|
+
<!-- politty:command:skills install:heading:start -->
|
|
39
|
+
|
|
40
|
+
### skills install
|
|
41
|
+
|
|
42
|
+
<!-- politty:command:skills install:heading:end -->
|
|
43
|
+
|
|
44
|
+
<!-- politty:command:skills install:description:start -->
|
|
45
|
+
|
|
46
|
+
Install the tailor-sdk agent skill from the installed SDK package.
|
|
47
|
+
|
|
48
|
+
<!-- politty:command:skills install:description:end -->
|
|
49
|
+
|
|
50
|
+
<!-- politty:command:skills install:usage:start -->
|
|
51
|
+
|
|
52
|
+
**Usage**
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
tailor-sdk skills install [options]
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
<!-- politty:command:skills install:usage:end -->
|
|
59
|
+
|
|
60
|
+
<!-- politty:command:skills install:options:start -->
|
|
61
|
+
|
|
62
|
+
**Options**
|
|
63
|
+
|
|
64
|
+
| Option | Alias | Description | Required | Default |
|
|
65
|
+
| ----------------- | ----- | ---------------------------------------------------------------------------- | -------- | --------------- |
|
|
66
|
+
| `--agent <AGENT>` | `-a` | vercel/skills agent name (e.g. claude-code, codex). Defaults to claude-code. | No | `"claude-code"` |
|
|
67
|
+
| `--yes` | `-y` | Auto-approve prompts. | No | `false` |
|
|
68
|
+
|
|
69
|
+
<!-- politty:command:skills install:options:end -->
|
|
70
|
+
|
|
71
|
+
<!-- politty:command:skills install:global-options-link:start -->
|
|
72
|
+
|
|
73
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
74
|
+
|
|
75
|
+
<!-- politty:command:skills install:global-options-link:end -->
|
|
@@ -107,10 +107,12 @@ tailor-sdk staticwebsite list [options]
|
|
|
107
107
|
|
|
108
108
|
**Options**
|
|
109
109
|
|
|
110
|
-
| Option | Alias | Description
|
|
111
|
-
| ------------------------------- | ----- |
|
|
112
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID
|
|
113
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile
|
|
110
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
111
|
+
| ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------- | ------------------------------ |
|
|
112
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
113
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
114
|
+
| `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
|
|
115
|
+
| `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
|
|
114
116
|
|
|
115
117
|
<!-- politty:command:staticwebsite list:options:end -->
|
|
116
118
|
|
package/docs/cli/user.md
CHANGED
|
@@ -272,12 +272,20 @@ List all personal access tokens.
|
|
|
272
272
|
**Usage**
|
|
273
273
|
|
|
274
274
|
```
|
|
275
|
-
tailor-sdk user pat list
|
|
275
|
+
tailor-sdk user pat list [options]
|
|
276
276
|
```
|
|
277
277
|
|
|
278
278
|
<!-- politty:command:user pat list:usage:end -->
|
|
279
279
|
|
|
280
280
|
<!-- politty:command:user pat list:options:start -->
|
|
281
|
+
|
|
282
|
+
**Options**
|
|
283
|
+
|
|
284
|
+
| Option | Alias | Description | Required | Default |
|
|
285
|
+
| ----------------- | ----- | -------------------------------------------------------- | -------- | -------- |
|
|
286
|
+
| `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` |
|
|
287
|
+
| `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - |
|
|
288
|
+
|
|
281
289
|
<!-- politty:command:user pat list:options:end -->
|
|
282
290
|
|
|
283
291
|
<!-- politty:command:user pat list:global-options-link:start -->
|
package/docs/cli/workflow.md
CHANGED
|
@@ -69,10 +69,12 @@ tailor-sdk workflow list [options]
|
|
|
69
69
|
|
|
70
70
|
**Options**
|
|
71
71
|
|
|
72
|
-
| Option | Alias | Description
|
|
73
|
-
| ------------------------------- | ----- |
|
|
74
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID
|
|
75
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile
|
|
72
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
73
|
+
| ------------------------------- | ----- | -------------------------------------------------------- | -------- | -------- | ------------------------------ |
|
|
74
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
75
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
76
|
+
| `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
|
|
77
|
+
| `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
|
|
76
78
|
|
|
77
79
|
<!-- politty:command:workflow list:options:end -->
|
|
78
80
|
|
|
@@ -219,15 +221,17 @@ tailor-sdk workflow executions [options] [executionId]
|
|
|
219
221
|
|
|
220
222
|
**Options**
|
|
221
223
|
|
|
222
|
-
| Option | Alias | Description | Required | Default
|
|
223
|
-
| --------------------------------- | ----- | -------------------------------------------------------------- | -------- |
|
|
224
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | -
|
|
225
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile | No | -
|
|
226
|
-
| `--
|
|
227
|
-
| `--
|
|
228
|
-
| `--
|
|
229
|
-
| `--
|
|
230
|
-
| `--
|
|
224
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
225
|
+
| --------------------------------- | ----- | -------------------------------------------------------------- | -------- | -------- | ------------------------------ |
|
|
226
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
227
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
228
|
+
| `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
|
|
229
|
+
| `--limit <LIMIT>` | `-l` | Maximum number of items to return (0: unlimited) | No | `50` | - |
|
|
230
|
+
| `--workflow-name <WORKFLOW_NAME>` | `-n` | Filter by workflow name (list mode only) | No | - | - |
|
|
231
|
+
| `--status <STATUS>` | `-s` | Filter by status (list mode only) | No | - | - |
|
|
232
|
+
| `--wait` | `-W` | Wait for execution to complete | No | `false` | - |
|
|
233
|
+
| `--interval <INTERVAL>` | `-i` | Polling interval when using --wait (e.g., '3s', '500ms', '1m') | No | `"3s"` | - |
|
|
234
|
+
| `--logs` | - | Display job execution logs (detail mode only) | No | `false` | - |
|
|
231
235
|
|
|
232
236
|
<!-- politty:command:workflow executions:options:end -->
|
|
233
237
|
|
package/docs/cli-reference.md
CHANGED
|
@@ -119,6 +119,14 @@ Commands for managing TailorDB tables, data, and schema migrations.
|
|
|
119
119
|
| [tailordb erd serve](./cli/tailordb.md#tailordb-erd-serve) | Generate and serve ERD locally (liam build + serve dist). (beta) |
|
|
120
120
|
| [tailordb erd deploy](./cli/tailordb.md#tailordb-erd-deploy) | Deploy ERD static website for TailorDB namespace(s). |
|
|
121
121
|
|
|
122
|
+
### [Query Commands](./cli/query.md)
|
|
123
|
+
|
|
124
|
+
Run ad-hoc SQL/GraphQL queries or enter the interactive REPL.
|
|
125
|
+
|
|
126
|
+
| Command | Description |
|
|
127
|
+
| ----------------------------- | ---------------------- |
|
|
128
|
+
| [query](./cli/query.md#query) | Run SQL/GraphQL query. |
|
|
129
|
+
|
|
122
130
|
### [User & Auth Commands](./cli/user.md)
|
|
123
131
|
|
|
124
132
|
Commands for authentication and user management.
|
|
@@ -269,6 +277,14 @@ Commands for upgrading SDK versions with automated code migration.
|
|
|
269
277
|
| ----------------------------------- | ------------------------------------------------------------ |
|
|
270
278
|
| [upgrade](./cli/upgrade.md#upgrade) | Run codemods to upgrade your project to a newer SDK version. |
|
|
271
279
|
|
|
280
|
+
### [Skills Commands](./cli/skills.md)
|
|
281
|
+
|
|
282
|
+
Commands for installing Tailor SDK agent skills.
|
|
283
|
+
|
|
284
|
+
| Command | Description |
|
|
285
|
+
| ------------------------------------------------ | ------------------------------------------------------------------ |
|
|
286
|
+
| [skills install](./cli/skills.md#skills-install) | Install the tailor-sdk agent skill from the installed SDK package. |
|
|
287
|
+
|
|
272
288
|
### [Completion](./cli/completion.md)
|
|
273
289
|
|
|
274
290
|
Generate shell completion scripts for bash, zsh, and fish.
|
|
@@ -256,7 +256,7 @@ export default createResolver({
|
|
|
256
256
|
|
|
257
257
|
> **Deprecated:** `auth.invoker("manager-machine-user")` still works but is deprecated. Using the string form avoids importing `auth` into runtime code.
|
|
258
258
|
|
|
259
|
-
See the full working example in the repository: [example/resolvers/triggerWorkflow.ts](
|
|
259
|
+
See the full working example in the repository: [example/resolvers/triggerWorkflow.ts](https://github.com/tailor-platform/sdk/blob/main/example/resolvers/triggerWorkflow.ts).
|
|
260
260
|
|
|
261
261
|
## File Organization
|
|
262
262
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.40.0",
|
|
4
4
|
"description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -91,11 +91,12 @@
|
|
|
91
91
|
"@opentelemetry/resources": "2.6.1",
|
|
92
92
|
"@opentelemetry/sdk-trace-node": "2.6.1",
|
|
93
93
|
"@opentelemetry/semantic-conventions": "1.40.0",
|
|
94
|
-
"@oxc-project/types": "0.
|
|
94
|
+
"@oxc-project/types": "0.126.0",
|
|
95
95
|
"@standard-schema/spec": "1.1.0",
|
|
96
96
|
"@tailor-platform/function-kysely-tailordb": "0.1.3",
|
|
97
97
|
"@tailor-platform/function-types": "0.8.4",
|
|
98
98
|
"@toiroakr/lines-db": "0.9.1",
|
|
99
|
+
"@toiroakr/read-multiline": "0.3.0",
|
|
99
100
|
"@urql/core": "6.0.1",
|
|
100
101
|
"chalk": "5.6.2",
|
|
101
102
|
"chokidar": "5.0.0",
|
|
@@ -104,6 +105,7 @@
|
|
|
104
105
|
"es-toolkit": "1.45.1",
|
|
105
106
|
"find-up-simple": "1.0.1",
|
|
106
107
|
"globals": "17.5.0",
|
|
108
|
+
"graphql": "16.13.2",
|
|
107
109
|
"inflection": "3.0.2",
|
|
108
110
|
"kysely": "0.28.16",
|
|
109
111
|
"madge": "8.0.0",
|
|
@@ -111,7 +113,7 @@
|
|
|
111
113
|
"multiline-ts": "4.0.1",
|
|
112
114
|
"open": "11.0.0",
|
|
113
115
|
"ora": "9.3.0",
|
|
114
|
-
"oxc-parser": "0.
|
|
116
|
+
"oxc-parser": "0.126.0",
|
|
115
117
|
"p-limit": "7.3.0",
|
|
116
118
|
"pathe": "2.0.3",
|
|
117
119
|
"pgsql-ast-parser": "12.0.2",
|
|
@@ -120,6 +122,7 @@
|
|
|
120
122
|
"rolldown": "1.0.0-rc.15",
|
|
121
123
|
"semver": "7.7.4",
|
|
122
124
|
"serve": "14.2.6",
|
|
125
|
+
"sql-highlight": "6.1.0",
|
|
123
126
|
"std-env": "4.0.0",
|
|
124
127
|
"table": "6.9.0",
|
|
125
128
|
"ts-cron-validator": "1.1.5",
|
|
@@ -135,18 +138,18 @@
|
|
|
135
138
|
"@types/mime-types": "3.0.1",
|
|
136
139
|
"@types/node": "24.12.2",
|
|
137
140
|
"@types/semver": "7.7.1",
|
|
138
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
141
|
+
"@typescript/native-preview": "7.0.0-dev.20260417.1",
|
|
139
142
|
"@vitest/coverage-v8": "4.1.4",
|
|
140
143
|
"eslint": "10.2.0",
|
|
141
144
|
"eslint-plugin-jsdoc": "62.9.0",
|
|
142
|
-
"eslint-plugin-oxlint": "1.
|
|
143
|
-
"oxfmt": "0.
|
|
144
|
-
"oxlint": "1.
|
|
145
|
+
"eslint-plugin-oxlint": "1.60.0",
|
|
146
|
+
"oxfmt": "0.45.0",
|
|
147
|
+
"oxlint": "1.60.0",
|
|
145
148
|
"oxlint-tsgolint": "0.20.0",
|
|
146
149
|
"sonda": "0.11.1",
|
|
147
150
|
"tsdown": "0.21.8",
|
|
148
151
|
"typescript": "5.9.3",
|
|
149
|
-
"typescript-eslint": "8.58.
|
|
152
|
+
"typescript-eslint": "8.58.2",
|
|
150
153
|
"vitest": "4.1.4",
|
|
151
154
|
"zinfer": "0.1.8"
|
|
152
155
|
},
|
package/dist/client-CEVmv94H.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { a as fetchMachineUserToken, c as formatRequestParams, d as parseMethodName, f as platformBaseUrl, i as fetchAll, l as initOAuth2Client, m as userAgent, n as closeConnectionPool, o as fetchPlatformMachineUserToken, p as resolveStaticWebsiteUrls, r as createTransport, s as fetchUserInfo, t as MAX_PAGE_SIZE, u as initOperatorClient } from "./client-B2K45RvK.mjs";
|
|
3
|
-
|
|
4
|
-
export { userAgent };
|