@tailor-platform/sdk 0.18.2 → 0.20.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 +18 -0
- package/dist/cli/api.d.mts +24 -14
- package/dist/cli/api.mjs +1 -1
- package/dist/cli/api.mjs.map +1 -1
- package/dist/cli/index.d.mts +8 -1
- package/dist/cli/index.mjs +74 -182
- package/dist/cli/index.mjs.map +1 -1
- package/dist/configure/index.d.mts +2 -2
- package/dist/{index-Ba6ekRxa.d.mts → index-Zqsfkae6.d.mts} +2 -2
- package/dist/job-CL8myeqs.mjs.map +1 -1
- package/dist/{resume-8Y9mmXHa.mjs → resume-DSfYKl2w.mjs} +754 -665
- package/dist/{resume-8Y9mmXHa.mjs.map → resume-DSfYKl2w.mjs.map} +1 -1
- package/dist/{types-Dz5wcR2h.d.mts → types-BLZiwB6E.d.mts} +31 -7
- package/dist/utils/test/index.d.mts +2 -2
- package/docs/cli/application.md +3 -3
- package/docs/cli/auth.md +4 -4
- package/docs/cli/secret.md +2 -2
- package/docs/cli/user.md +10 -10
- package/docs/cli/workflow.md +12 -12
- package/docs/cli/workspace.md +6 -6
- package/docs/cli-reference.md +34 -7
- package/docs/services/workflow.md +1 -1
- package/package.json +6 -6
|
@@ -1165,14 +1165,32 @@ declare const IdPSchema: z.core.$ZodBranded<z.ZodObject<{
|
|
|
1165
1165
|
ja: "ja";
|
|
1166
1166
|
}>>;
|
|
1167
1167
|
userAuthPolicy: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
1168
|
-
useNonEmailIdentifier: z.
|
|
1169
|
-
allowSelfPasswordReset: z.
|
|
1168
|
+
useNonEmailIdentifier: z.ZodOptional<z.ZodBoolean>;
|
|
1169
|
+
allowSelfPasswordReset: z.ZodOptional<z.ZodBoolean>;
|
|
1170
|
+
passwordRequireUppercase: z.ZodOptional<z.ZodBoolean>;
|
|
1171
|
+
passwordRequireLowercase: z.ZodOptional<z.ZodBoolean>;
|
|
1172
|
+
passwordRequireNonAlphanumeric: z.ZodOptional<z.ZodBoolean>;
|
|
1173
|
+
passwordRequireNumeric: z.ZodOptional<z.ZodBoolean>;
|
|
1174
|
+
passwordMinLength: z.ZodOptional<z.ZodNumber>;
|
|
1175
|
+
passwordMaxLength: z.ZodOptional<z.ZodNumber>;
|
|
1170
1176
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1171
|
-
useNonEmailIdentifier
|
|
1172
|
-
allowSelfPasswordReset
|
|
1177
|
+
useNonEmailIdentifier?: boolean | undefined;
|
|
1178
|
+
allowSelfPasswordReset?: boolean | undefined;
|
|
1179
|
+
passwordRequireUppercase?: boolean | undefined;
|
|
1180
|
+
passwordRequireLowercase?: boolean | undefined;
|
|
1181
|
+
passwordRequireNonAlphanumeric?: boolean | undefined;
|
|
1182
|
+
passwordRequireNumeric?: boolean | undefined;
|
|
1183
|
+
passwordMinLength?: number | undefined;
|
|
1184
|
+
passwordMaxLength?: number | undefined;
|
|
1173
1185
|
}, {
|
|
1174
|
-
useNonEmailIdentifier
|
|
1175
|
-
allowSelfPasswordReset
|
|
1186
|
+
useNonEmailIdentifier?: boolean | undefined;
|
|
1187
|
+
allowSelfPasswordReset?: boolean | undefined;
|
|
1188
|
+
passwordRequireUppercase?: boolean | undefined;
|
|
1189
|
+
passwordRequireLowercase?: boolean | undefined;
|
|
1190
|
+
passwordRequireNonAlphanumeric?: boolean | undefined;
|
|
1191
|
+
passwordRequireNumeric?: boolean | undefined;
|
|
1192
|
+
passwordMinLength?: number | undefined;
|
|
1193
|
+
passwordMaxLength?: number | undefined;
|
|
1176
1194
|
}>>>;
|
|
1177
1195
|
}, z.core.$strip>, "IdPConfig">;
|
|
1178
1196
|
//#endregion
|
|
@@ -1201,6 +1219,12 @@ declare function defineIdp<const TClients extends string[]>(name: string, config
|
|
|
1201
1219
|
readonly userAuthPolicy?: {
|
|
1202
1220
|
useNonEmailIdentifier?: boolean | undefined;
|
|
1203
1221
|
allowSelfPasswordReset?: boolean | undefined;
|
|
1222
|
+
passwordRequireUppercase?: boolean | undefined;
|
|
1223
|
+
passwordRequireLowercase?: boolean | undefined;
|
|
1224
|
+
passwordRequireNonAlphanumeric?: boolean | undefined;
|
|
1225
|
+
passwordRequireNumeric?: boolean | undefined;
|
|
1226
|
+
passwordMinLength?: number | undefined;
|
|
1227
|
+
passwordMaxLength?: number | undefined;
|
|
1204
1228
|
} | undefined;
|
|
1205
1229
|
readonly clients: TClients;
|
|
1206
1230
|
} & IdpDefinitionBrand;
|
|
@@ -1501,4 +1525,4 @@ type Executor = z.infer<typeof ExecutorSchema>;
|
|
|
1501
1525
|
type ExecutorInput = z.input<typeof ExecutorSchema>;
|
|
1502
1526
|
//#endregion
|
|
1503
1527
|
export { AllowedValues, AllowedValuesOutput, AppConfig, ArrayFieldOutput, AttributeList$1 as AttributeList, AttributeMap$1 as AttributeMap, AuthConfig, AuthExternalConfig, AuthInvoker$1 as AuthInvoker, AuthOwnConfig, type AuthServiceInput, type BuiltinIdP, CodeGeneratorBase, Executor, ExecutorInput, ExecutorServiceConfig, ExecutorServiceInput, FieldMetadata, FieldOptions, FieldOutput, FunctionOperation, Generator, GqlOperation, type IDToken, IdPConfig, IdPExternalConfig, type IdProviderConfig, IncomingWebhookTrigger, InferFieldsOutput, JsonCompatible, type OAuth2ClientGrantType, OAuth2ClientInput, type OIDC, PermissionCondition, QueryType, RecordTrigger, Resolver, ResolverExecutedTrigger, ResolverExternalConfig, ResolverInput, ResolverServiceConfig, ResolverServiceInput, type SAML, type SCIMAttribute, type SCIMAttributeMapping, type SCIMAttributeType, type SCIMAuthorization, type SCIMConfig, type SCIMResource, ScheduleTriggerInput, StaticWebsiteConfig, TailorDBField, TailorDBInstance, TailorDBType, TailorDBTypeConfig, TailorField, TailorTypeGqlPermission, TailorTypePermission, TailorUser, type TenantProviderConfig, type UserAttributeKey, type UserAttributeListKey, type UserAttributeMap, type UsernameFieldKey, type ValueOperand, WebhookOperation, WorkflowOperation, WorkflowServiceConfig, WorkflowServiceInput, db, defineAuth, defineConfig, defineGenerators, defineIdp, defineStaticWebSite, output, unauthenticatedTailorUser, unsafeAllowAllGqlPermission, unsafeAllowAllTypePermission };
|
|
1504
|
-
//# sourceMappingURL=types-
|
|
1528
|
+
//# sourceMappingURL=types-BLZiwB6E.d.mts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="./../../user-defined.d.ts" />
|
|
2
2
|
|
|
3
|
-
import { TailorDBType, TailorField } from "../../types-
|
|
4
|
-
import { output } from "../../index-
|
|
3
|
+
import { TailorDBType, TailorField } from "../../types-BLZiwB6E.mjs";
|
|
4
|
+
import { output } from "../../index-Zqsfkae6.mjs";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
|
|
7
7
|
//#region src/utils/test/index.d.ts
|
package/docs/cli/application.md
CHANGED
|
@@ -29,7 +29,7 @@ tailor-sdk generate [options]
|
|
|
29
29
|
**Options:**
|
|
30
30
|
|
|
31
31
|
- `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
|
|
32
|
-
- `-
|
|
32
|
+
- `-W, --watch` - Watch for type/resolver changes and regenerate
|
|
33
33
|
|
|
34
34
|
## apply
|
|
35
35
|
|
|
@@ -44,7 +44,7 @@ tailor-sdk apply [options]
|
|
|
44
44
|
- `-w, --workspace-id` - ID of the workspace to apply the configuration to
|
|
45
45
|
- `-p, --profile` - Workspace profile to use
|
|
46
46
|
- `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
|
|
47
|
-
- `-
|
|
47
|
+
- `-n, --dry-run` - Run the command without making any changes
|
|
48
48
|
- `-y, --yes` - Skip confirmation prompt
|
|
49
49
|
|
|
50
50
|
## remove
|
|
@@ -75,7 +75,7 @@ tailor-sdk show [options]
|
|
|
75
75
|
- `-w, --workspace-id` - ID of the workspace to show the application from
|
|
76
76
|
- `-p, --profile` - Workspace profile to use
|
|
77
77
|
- `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
|
|
78
|
-
-
|
|
78
|
+
- `-j, --json` - Output as JSON
|
|
79
79
|
|
|
80
80
|
## tailordb
|
|
81
81
|
|
package/docs/cli/auth.md
CHANGED
|
@@ -23,7 +23,7 @@ tailor-sdk machineuser list [options]
|
|
|
23
23
|
- `-w, --workspace-id` - ID of the workspace
|
|
24
24
|
- `-p, --profile` - Workspace profile to use
|
|
25
25
|
- `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
|
|
26
|
-
-
|
|
26
|
+
- `-j, --json` - Output as JSON
|
|
27
27
|
|
|
28
28
|
### machineuser token
|
|
29
29
|
|
|
@@ -42,7 +42,7 @@ tailor-sdk machineuser token <name> [options]
|
|
|
42
42
|
- `-w, --workspace-id` - ID of the workspace
|
|
43
43
|
- `-p, --profile` - Workspace profile to use
|
|
44
44
|
- `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
|
|
45
|
-
-
|
|
45
|
+
- `-j, --json` - Output as JSON
|
|
46
46
|
|
|
47
47
|
## oauth2client
|
|
48
48
|
|
|
@@ -65,7 +65,7 @@ tailor-sdk oauth2client list [options]
|
|
|
65
65
|
- `-w, --workspace-id` - ID of the workspace
|
|
66
66
|
- `-p, --profile` - Workspace profile to use
|
|
67
67
|
- `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
|
|
68
|
-
-
|
|
68
|
+
- `-j, --json` - Output as JSON
|
|
69
69
|
|
|
70
70
|
**Output:**
|
|
71
71
|
|
|
@@ -95,7 +95,7 @@ tailor-sdk oauth2client get <name> [options]
|
|
|
95
95
|
- `-w, --workspace-id` - ID of the workspace
|
|
96
96
|
- `-p, --profile` - Workspace profile to use
|
|
97
97
|
- `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
|
|
98
|
-
-
|
|
98
|
+
- `-j, --json` - Output as JSON
|
|
99
99
|
|
|
100
100
|
**Output:**
|
|
101
101
|
|
package/docs/cli/secret.md
CHANGED
|
@@ -59,7 +59,7 @@ tailor-sdk secret vault list [options]
|
|
|
59
59
|
|
|
60
60
|
- `-w, --workspace-id` - ID of the workspace
|
|
61
61
|
- `-p, --profile` - Workspace profile to use
|
|
62
|
-
-
|
|
62
|
+
- `-j, --json` - Output as JSON
|
|
63
63
|
|
|
64
64
|
### secret create
|
|
65
65
|
|
|
@@ -106,7 +106,7 @@ tailor-sdk secret list [options]
|
|
|
106
106
|
- `--vault-name` - Vault name (required)
|
|
107
107
|
- `-w, --workspace-id` - ID of the workspace
|
|
108
108
|
- `-p, --profile` - Workspace profile to use
|
|
109
|
-
-
|
|
109
|
+
- `-j, --json` - Output as JSON
|
|
110
110
|
|
|
111
111
|
### secret delete
|
|
112
112
|
|
package/docs/cli/user.md
CHANGED
|
@@ -44,14 +44,14 @@ tailor-sdk user list [options]
|
|
|
44
44
|
|
|
45
45
|
**Options:**
|
|
46
46
|
|
|
47
|
-
-
|
|
47
|
+
- `-j, --json` - Output as JSON
|
|
48
48
|
|
|
49
|
-
### user
|
|
49
|
+
### user switch
|
|
50
50
|
|
|
51
51
|
Set current user.
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
|
-
tailor-sdk user
|
|
54
|
+
tailor-sdk user switch <user>
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
**Arguments:**
|
|
@@ -78,7 +78,7 @@ tailor-sdk user pat list [options]
|
|
|
78
78
|
|
|
79
79
|
**Options:**
|
|
80
80
|
|
|
81
|
-
-
|
|
81
|
+
- `-j, --json` - Output as JSON
|
|
82
82
|
|
|
83
83
|
**Output (default):**
|
|
84
84
|
|
|
@@ -87,7 +87,7 @@ tailor-sdk user pat list [options]
|
|
|
87
87
|
token-name-2: read
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
**Output (
|
|
90
|
+
**Output (`-j, --json`):**
|
|
91
91
|
|
|
92
92
|
```json
|
|
93
93
|
[
|
|
@@ -110,8 +110,8 @@ tailor-sdk user pat create <name> [options]
|
|
|
110
110
|
|
|
111
111
|
**Options:**
|
|
112
112
|
|
|
113
|
-
- `-
|
|
114
|
-
-
|
|
113
|
+
- `-W, --write` - Grant write permission (default: read-only)
|
|
114
|
+
- `-j, --json` - Output as JSON
|
|
115
115
|
|
|
116
116
|
**Output (default):**
|
|
117
117
|
|
|
@@ -125,7 +125,7 @@ scopes: read/write
|
|
|
125
125
|
Please save this token in a secure location. You won't be able to see it again.
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
-
**Output (
|
|
128
|
+
**Output (`-j, --json`):**
|
|
129
129
|
|
|
130
130
|
```json
|
|
131
131
|
{ "name": "token-name", "scopes": ["read", "write"], "token": "eyJhbGc..." }
|
|
@@ -158,7 +158,7 @@ tailor-sdk user pat update <name> [options]
|
|
|
158
158
|
**Options:**
|
|
159
159
|
|
|
160
160
|
- `-w, --write` - Grant write permission (if not specified, keeps read-only)
|
|
161
|
-
-
|
|
161
|
+
- `-j, --json` - Output as JSON
|
|
162
162
|
|
|
163
163
|
**Output (default):**
|
|
164
164
|
|
|
@@ -172,7 +172,7 @@ scopes: read/write
|
|
|
172
172
|
Please save this token in a secure location. You won't be able to see it again.
|
|
173
173
|
```
|
|
174
174
|
|
|
175
|
-
**Output (
|
|
175
|
+
**Output (`-j, --json`):**
|
|
176
176
|
|
|
177
177
|
```json
|
|
178
178
|
{
|
package/docs/cli/workflow.md
CHANGED
|
@@ -22,7 +22,7 @@ tailor-sdk workflow list [options]
|
|
|
22
22
|
|
|
23
23
|
- `-w, --workspace-id` - ID of the workspace
|
|
24
24
|
- `-p, --profile` - Workspace profile to use
|
|
25
|
-
-
|
|
25
|
+
- `-j, --json` - Output as JSON
|
|
26
26
|
|
|
27
27
|
### workflow get
|
|
28
28
|
|
|
@@ -40,7 +40,7 @@ tailor-sdk workflow get <nameOrId> [options]
|
|
|
40
40
|
|
|
41
41
|
- `-w, --workspace-id` - ID of the workspace
|
|
42
42
|
- `-p, --profile` - Workspace profile to use
|
|
43
|
-
-
|
|
43
|
+
- `-j, --json` - Output as JSON
|
|
44
44
|
|
|
45
45
|
### workflow start
|
|
46
46
|
|
|
@@ -57,13 +57,13 @@ tailor-sdk workflow start <nameOrId> [options]
|
|
|
57
57
|
**Options:**
|
|
58
58
|
|
|
59
59
|
- `-m, --machineuser` - Machine user name (required)
|
|
60
|
-
- `-
|
|
60
|
+
- `-a, --arg` - Workflow argument (JSON string)
|
|
61
61
|
- `-w, --workspace-id` - ID of the workspace
|
|
62
62
|
- `-p, --profile` - Workspace profile to use
|
|
63
63
|
- `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
|
|
64
|
-
-
|
|
64
|
+
- `-W, --wait` - Wait for execution to complete
|
|
65
65
|
- `--interval` - Polling interval when using --wait (default: `3s`)
|
|
66
|
-
-
|
|
66
|
+
- `-j, --json` - Output as JSON
|
|
67
67
|
|
|
68
68
|
**Usage Examples:**
|
|
69
69
|
|
|
@@ -72,10 +72,10 @@ tailor-sdk workflow start <nameOrId> [options]
|
|
|
72
72
|
tailor-sdk workflow start my-workflow -m admin-machine-user
|
|
73
73
|
|
|
74
74
|
# Start with argument
|
|
75
|
-
tailor-sdk workflow start my-workflow -m admin -
|
|
75
|
+
tailor-sdk workflow start my-workflow -m admin -a '{"userId": "123"}'
|
|
76
76
|
|
|
77
77
|
# Start and wait for completion
|
|
78
|
-
tailor-sdk workflow start my-workflow -m admin
|
|
78
|
+
tailor-sdk workflow start my-workflow -m admin -W
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
### workflow executions
|
|
@@ -96,10 +96,10 @@ tailor-sdk workflow executions [executionId] [options]
|
|
|
96
96
|
- `-p, --profile` - Workspace profile to use
|
|
97
97
|
- `-n, --workflow-name` - Filter by workflow name (list mode only)
|
|
98
98
|
- `-s, --status` - Filter by status: `PENDING`, `PENDING_RESUME`, `RUNNING`, `SUCCESS`, `FAILED` (list mode only)
|
|
99
|
-
-
|
|
99
|
+
- `-W, --wait` - Wait for execution to complete (detail mode only)
|
|
100
100
|
- `--interval` - Polling interval when using --wait (default: `3s`)
|
|
101
101
|
- `--logs` - Display job execution logs (detail mode only)
|
|
102
|
-
-
|
|
102
|
+
- `-j, --json` - Output as JSON
|
|
103
103
|
|
|
104
104
|
**Usage Examples:**
|
|
105
105
|
|
|
@@ -120,7 +120,7 @@ tailor-sdk workflow executions <execution-id>
|
|
|
120
120
|
tailor-sdk workflow executions <execution-id> --logs
|
|
121
121
|
|
|
122
122
|
# Wait for execution to complete
|
|
123
|
-
tailor-sdk workflow executions <execution-id>
|
|
123
|
+
tailor-sdk workflow executions <execution-id> -W
|
|
124
124
|
```
|
|
125
125
|
|
|
126
126
|
### workflow resume
|
|
@@ -139,6 +139,6 @@ tailor-sdk workflow resume <executionId> [options]
|
|
|
139
139
|
|
|
140
140
|
- `-w, --workspace-id` - ID of the workspace
|
|
141
141
|
- `-p, --profile` - Workspace profile to use
|
|
142
|
-
-
|
|
142
|
+
- `-W, --wait` - Wait for execution to complete after resuming
|
|
143
143
|
- `--interval` - Polling interval when using --wait (default: `3s`)
|
|
144
|
-
-
|
|
144
|
+
- `-j, --json` - Output as JSON
|
package/docs/cli/workspace.md
CHANGED
|
@@ -25,7 +25,7 @@ tailor-sdk workspace create [options]
|
|
|
25
25
|
- `-d, --delete-protection` - Enable delete protection for the workspace
|
|
26
26
|
- `-o, --organization-id` - Organization ID to associate the workspace with
|
|
27
27
|
- `-f, --folder-id` - Folder ID to associate the workspace with
|
|
28
|
-
-
|
|
28
|
+
- `-j, --json` - Output as JSON
|
|
29
29
|
|
|
30
30
|
### workspace list
|
|
31
31
|
|
|
@@ -37,8 +37,8 @@ tailor-sdk workspace list [options]
|
|
|
37
37
|
|
|
38
38
|
**Options:**
|
|
39
39
|
|
|
40
|
-
-
|
|
41
|
-
-
|
|
40
|
+
- `-j, --json` - Output as JSON
|
|
41
|
+
- `-l, --limit <number>` - Maximum number of workspaces to list (positive integer)
|
|
42
42
|
|
|
43
43
|
### workspace delete
|
|
44
44
|
|
|
@@ -77,7 +77,7 @@ tailor-sdk profile create <name> [options]
|
|
|
77
77
|
|
|
78
78
|
- `-u, --user` - User email (required)
|
|
79
79
|
- `-w, --workspace-id` - Workspace ID (required)
|
|
80
|
-
-
|
|
80
|
+
- `-j, --json` - Output as JSON
|
|
81
81
|
|
|
82
82
|
### profile list
|
|
83
83
|
|
|
@@ -89,7 +89,7 @@ tailor-sdk profile list [options]
|
|
|
89
89
|
|
|
90
90
|
**Options:**
|
|
91
91
|
|
|
92
|
-
-
|
|
92
|
+
- `-j, --json` - Output as JSON
|
|
93
93
|
|
|
94
94
|
### profile update
|
|
95
95
|
|
|
@@ -107,7 +107,7 @@ tailor-sdk profile update <name> [options]
|
|
|
107
107
|
|
|
108
108
|
- `-u, --user` - New user email
|
|
109
109
|
- `-w, --workspace-id` - New workspace ID
|
|
110
|
-
-
|
|
110
|
+
- `-j, --json` - Output as JSON
|
|
111
111
|
|
|
112
112
|
### profile delete
|
|
113
113
|
|
package/docs/cli-reference.md
CHANGED
|
@@ -12,17 +12,44 @@ tailor-sdk <command> [options]
|
|
|
12
12
|
|
|
13
13
|
The following options are available for most commands:
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
| Option | Short | Description |
|
|
16
|
+
| ---------------- | ----- | --------------------------------------------------- |
|
|
17
|
+
| `--env-file` | `-e` | Specify a custom environment file path |
|
|
18
|
+
| `--verbose` | `-v` | Enable verbose logging (show stack traces on error) |
|
|
19
|
+
| `--json` | `-j` | Output as JSON (where applicable) |
|
|
20
|
+
| `--workspace-id` | `-w` | Workspace ID (for deployment commands) |
|
|
21
|
+
| `--profile` | `-p` | Workspace profile |
|
|
22
|
+
| `--config` | `-c` | Path to SDK config file |
|
|
23
|
+
| `--yes` | `-y` | Skip confirmation prompts |
|
|
17
24
|
|
|
18
25
|
## Environment Variables
|
|
19
26
|
|
|
20
27
|
You can use environment variables to configure workspace and authentication:
|
|
21
28
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
29
|
+
| Variable | Description |
|
|
30
|
+
| --------------------------------- | --------------------------------------------------- |
|
|
31
|
+
| `TAILOR_PLATFORM_WORKSPACE_ID` | Workspace ID for deployment commands |
|
|
32
|
+
| `TAILOR_PLATFORM_TOKEN` | Authentication token (alternative to `login`) |
|
|
33
|
+
| `TAILOR_TOKEN` | **Deprecated.** Use `TAILOR_PLATFORM_TOKEN` instead |
|
|
34
|
+
| `TAILOR_PLATFORM_PROFILE` | Workspace profile name |
|
|
35
|
+
| `TAILOR_PLATFORM_SDK_CONFIG_PATH` | Path to SDK config file |
|
|
36
|
+
|
|
37
|
+
### Authentication Token Priority
|
|
38
|
+
|
|
39
|
+
Token resolution follows this priority order:
|
|
40
|
+
|
|
41
|
+
1. `TAILOR_PLATFORM_TOKEN` environment variable
|
|
42
|
+
2. `TAILOR_TOKEN` environment variable (deprecated)
|
|
43
|
+
3. Profile specified via `--profile` option or `TAILOR_PLATFORM_PROFILE`
|
|
44
|
+
4. Current user from platform config (`~/.config/tailor-platform/config.yaml`)
|
|
45
|
+
|
|
46
|
+
### Workspace ID Priority
|
|
47
|
+
|
|
48
|
+
Workspace ID resolution follows this priority order:
|
|
49
|
+
|
|
50
|
+
1. `--workspace-id` command option
|
|
51
|
+
2. `TAILOR_PLATFORM_WORKSPACE_ID` environment variable
|
|
52
|
+
3. Profile specified via `--profile` option or `TAILOR_PLATFORM_PROFILE`
|
|
26
53
|
|
|
27
54
|
## Commands
|
|
28
55
|
|
|
@@ -49,7 +76,7 @@ Commands for authentication and user management.
|
|
|
49
76
|
| [logout](./cli/user.md#logout) | Logout from Tailor Platform |
|
|
50
77
|
| [user current](./cli/user.md#user-current) | Show current user |
|
|
51
78
|
| [user list](./cli/user.md#user-list) | List all users |
|
|
52
|
-
| [user
|
|
79
|
+
| [user switch](./cli/user.md#user-switch) | Set current user |
|
|
53
80
|
| [user pat list](./cli/user.md#user-pat-list) | List personal access tokens |
|
|
54
81
|
| [user pat create](./cli/user.md#user-pat-create) | Create a personal access token |
|
|
55
82
|
| [user pat delete](./cli/user.md#user-pat-delete) | Delete a personal access token |
|
|
@@ -161,7 +161,7 @@ tailor-sdk workflow list
|
|
|
161
161
|
tailor-sdk workflow get <name>
|
|
162
162
|
|
|
163
163
|
# Start a workflow
|
|
164
|
-
tailor-sdk workflow start <name> -m <machine-user> -
|
|
164
|
+
tailor-sdk workflow start <name> -m <machine-user> -a '{"key": "value"}'
|
|
165
165
|
|
|
166
166
|
# List executions
|
|
167
167
|
tailor-sdk workflow executions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/configure/index.mjs",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@bufbuild/protobuf": "2.10.2",
|
|
44
44
|
"@connectrpc/connect": "2.1.1",
|
|
45
45
|
"@connectrpc/connect-node": "2.1.1",
|
|
46
|
-
"@standard-schema/spec": "1.
|
|
46
|
+
"@standard-schema/spec": "1.1.0",
|
|
47
47
|
"@urql/core": "5.2.0",
|
|
48
48
|
"chalk": "5.6.2",
|
|
49
49
|
"chokidar": "4.0.3",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"es-toolkit": "1.43.0",
|
|
55
55
|
"inflection": "3.0.2",
|
|
56
56
|
"madge": "8.0.0",
|
|
57
|
-
"mime-types": "
|
|
57
|
+
"mime-types": "3.0.2",
|
|
58
58
|
"multiline-ts": "4.0.1",
|
|
59
59
|
"open": "10.2.0",
|
|
60
60
|
"ora": "9.0.0",
|
|
@@ -68,13 +68,13 @@
|
|
|
68
68
|
"type-fest": "5.3.1",
|
|
69
69
|
"uuid": "13.0.0",
|
|
70
70
|
"xdg-basedir": "5.1.0",
|
|
71
|
-
"zod": "4.
|
|
71
|
+
"zod": "4.2.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@eslint/js": "9.39.2",
|
|
75
75
|
"@tailor-platform/function-types": "0.8.0",
|
|
76
76
|
"@types/madge": "5.0.3",
|
|
77
|
-
"@types/mime-types": "
|
|
77
|
+
"@types/mime-types": "3.0.1",
|
|
78
78
|
"@types/node": "22.19.3",
|
|
79
79
|
"cross-env": "10.1.0",
|
|
80
80
|
"eslint": "9.39.2",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"sonda": "0.10.1",
|
|
84
84
|
"tsdown": "0.15.6",
|
|
85
85
|
"typescript": "5.9.3",
|
|
86
|
-
"typescript-eslint": "8.
|
|
86
|
+
"typescript-eslint": "8.50.0",
|
|
87
87
|
"vitest": "4.0.15"
|
|
88
88
|
},
|
|
89
89
|
"scripts": {
|