@tailor-platform/sdk 0.22.4 → 0.23.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 +27 -0
- package/dist/cli/index.mjs +2 -2
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +1 -2
- package/dist/cli/lib.mjs +1 -1
- package/dist/configure/index.d.mts +2 -2
- package/dist/{index-Bz_i9lgm.d.mts → index-QGMXFOXH.d.mts} +2 -2
- package/dist/{list-BSi-MJbT.mjs → list-DLqfJ2jD.mjs} +4 -4
- package/dist/{list-BSi-MJbT.mjs.map → list-DLqfJ2jD.mjs.map} +1 -1
- package/dist/{types-BaiXm10C.d.mts → types-ClG0gN3S.d.mts} +9 -9
- package/dist/utils/test/index.d.mts +2 -2
- package/docs/cli/application.md +1 -1
- package/docs/cli/secret.md +3 -3
- package/docs/cli/staticwebsite.md +96 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference path="./user-defined.d.ts" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as zod34 from "zod";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import * as type_fest0 from "type-fest";
|
|
5
5
|
import { IsAny, NonEmptyObject } from "type-fest";
|
|
6
6
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
7
|
-
import * as
|
|
7
|
+
import * as zod_v4_core50 from "zod/v4/core";
|
|
8
8
|
|
|
9
9
|
//#region src/configure/types/helpers.d.ts
|
|
10
10
|
type Prettify<T$1> = { [K in keyof T$1 as string extends K ? never : K]: T$1[K] } & {};
|
|
@@ -1409,12 +1409,12 @@ declare function defineGenerators(...configs: GeneratorConfig[]): (["@tailor-pla
|
|
|
1409
1409
|
}] | {
|
|
1410
1410
|
id: string;
|
|
1411
1411
|
description: string;
|
|
1412
|
-
processType:
|
|
1413
|
-
processResolver:
|
|
1414
|
-
processExecutor:
|
|
1415
|
-
aggregate:
|
|
1416
|
-
processTailorDBNamespace?:
|
|
1417
|
-
processResolverNamespace?:
|
|
1412
|
+
processType: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod_v4_core50.$ZodFunctionOut>;
|
|
1413
|
+
processResolver: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod_v4_core50.$ZodFunctionOut>;
|
|
1414
|
+
processExecutor: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod_v4_core50.$ZodFunctionOut>;
|
|
1415
|
+
aggregate: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod34.ZodAny>;
|
|
1416
|
+
processTailorDBNamespace?: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod_v4_core50.$ZodFunctionOut> | undefined;
|
|
1417
|
+
processResolverNamespace?: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod_v4_core50.$ZodFunctionOut> | undefined;
|
|
1418
1418
|
})[];
|
|
1419
1419
|
//#endregion
|
|
1420
1420
|
//#region src/parser/service/executor/schema.d.ts
|
|
@@ -1553,4 +1553,4 @@ type Executor = z.infer<typeof ExecutorSchema>;
|
|
|
1553
1553
|
type ExecutorInput = z.input<typeof ExecutorSchema>;
|
|
1554
1554
|
//#endregion
|
|
1555
1555
|
export { SCIMAttribute as $, TailorDBType as A, AuthConfig as B, ResolverExternalConfig as C, InferFieldsOutput as Ct, ExecutorServiceInput as D, ExecutorServiceConfig as E, PermissionCondition as F, AuthServiceInput as G, AuthInvoker as H, TailorTypeGqlPermission as I, IdProviderConfig as J, BuiltinIdP as K, TailorTypePermission as L, AllowedValues as M, AllowedValuesOutput as N, TailorDBField as O, ParsedTailorDBType as P, SAML as Q, unsafeAllowAllGqlPermission as R, defineIdp as S, FieldOutput$1 as St, ResolverServiceInput as T, output as Tt, AuthOwnConfig as U, AuthExternalConfig as V, defineAuth as W, OAuth2ClientInput as X, OAuth2ClientGrantType as Y, OIDC as Z, WorkflowServiceInput as _, Resolver as _t, IncomingWebhookTrigger as a, TenantProviderConfig as at, IdPConfig as b, FieldMetadata as bt, ScheduleTriggerInput as c, UserAttributeMap as ct, AppConfig as d, AttributeList as dt, SCIMAttributeMapping as et, defineConfig as f, AttributeMap as ft, WorkflowServiceConfig as g, QueryType as gt, Generator as h, TailorField as ht, GqlOperation as i, SCIMResource as it, db as j, TailorDBInstance as k, WebhookOperation as l, UsernameFieldKey as lt, CodeGeneratorBase as m, unauthenticatedTailorUser as mt, ExecutorInput as n, SCIMAuthorization as nt, RecordTrigger as o, UserAttributeKey as ot, defineGenerators as p, TailorUser as pt, IDToken as q, FunctionOperation as r, SCIMConfig as rt, ResolverExecutedTrigger as s, UserAttributeListKey as st, Executor as t, SCIMAttributeType as tt, WorkflowOperation as u, ValueOperand as ut, StaticWebsiteConfig as v, ResolverInput as vt, ResolverServiceConfig as w, JsonCompatible as wt, IdPExternalConfig as x, FieldOptions as xt, defineStaticWebSite as y, ArrayFieldOutput as yt, unsafeAllowAllTypePermission as z };
|
|
1556
|
-
//# sourceMappingURL=types-
|
|
1556
|
+
//# sourceMappingURL=types-ClG0gN3S.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./../../user-defined.d.ts" />
|
|
2
|
-
import { A as TailorDBType, ht as TailorField } from "../../types-
|
|
3
|
-
import { n as output } from "../../index-
|
|
2
|
+
import { A as TailorDBType, ht as TailorField } from "../../types-ClG0gN3S.mjs";
|
|
3
|
+
import { n as output } from "../../index-QGMXFOXH.mjs";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
|
|
6
6
|
//#region src/utils/test/index.d.ts
|
package/docs/cli/application.md
CHANGED
|
@@ -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
|
+
- `-d, --dry-run` - Run the command without making any changes
|
|
48
48
|
- `-y, --yes` - Skip confirmation prompt
|
|
49
49
|
|
|
50
50
|
## remove
|
package/docs/cli/secret.md
CHANGED
|
@@ -78,7 +78,7 @@ tailor-sdk secret create [options]
|
|
|
78
78
|
**Options:**
|
|
79
79
|
|
|
80
80
|
- `-V, --vault-name` - Vault name (required)
|
|
81
|
-
- `-
|
|
81
|
+
- `-n, --name` - Secret name (required)
|
|
82
82
|
- `-v, --value` - Secret value (required)
|
|
83
83
|
- `-w, --workspace-id` - ID of the workspace
|
|
84
84
|
- `-p, --profile` - Workspace profile to use
|
|
@@ -94,7 +94,7 @@ tailor-sdk secret update [options]
|
|
|
94
94
|
**Options:**
|
|
95
95
|
|
|
96
96
|
- `-V, --vault-name` - Vault name (required)
|
|
97
|
-
- `-
|
|
97
|
+
- `-n, --name` - Secret name (required)
|
|
98
98
|
- `-v, --value` - New secret value (required)
|
|
99
99
|
- `-w, --workspace-id` - ID of the workspace
|
|
100
100
|
- `-p, --profile` - Workspace profile to use
|
|
@@ -125,7 +125,7 @@ tailor-sdk secret delete [options]
|
|
|
125
125
|
**Options:**
|
|
126
126
|
|
|
127
127
|
- `-V, --vault-name` - Vault name (required)
|
|
128
|
-
- `-
|
|
128
|
+
- `-n, --name` - Secret name (required)
|
|
129
129
|
- `-w, --workspace-id` - ID of the workspace
|
|
130
130
|
- `-p, --profile` - Workspace profile to use
|
|
131
131
|
- `-y, --yes` - Skip confirmation prompt
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Static Website Commands
|
|
2
|
+
|
|
3
|
+
Commands for managing and deploying static websites.
|
|
4
|
+
|
|
5
|
+
## staticwebsite
|
|
6
|
+
|
|
7
|
+
Manage static websites in your workspace.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
tailor-sdk staticwebsite <subcommand> [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### staticwebsite deploy
|
|
14
|
+
|
|
15
|
+
Deploy a static website from a local build directory.
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
tailor-sdk staticwebsite deploy [options]
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
**Options:**
|
|
22
|
+
|
|
23
|
+
- `-n, --name` - Static website name (required)
|
|
24
|
+
- `-d, --dir` - Path to the static website files (required)
|
|
25
|
+
- `-w, --workspace-id` - ID of the workspace
|
|
26
|
+
- `-p, --profile` - Workspace profile to use
|
|
27
|
+
- `-j, --json` - Output as JSON
|
|
28
|
+
|
|
29
|
+
**Example:**
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# Deploy a static website from the dist directory
|
|
33
|
+
tailor-sdk staticwebsite deploy --name my-website --dir ./dist
|
|
34
|
+
|
|
35
|
+
# Deploy with workspace ID
|
|
36
|
+
tailor-sdk staticwebsite deploy -n my-website -d ./dist -w ws_abc123
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Notes:**
|
|
40
|
+
|
|
41
|
+
- The deployment process uploads all files from the specified directory
|
|
42
|
+
- Files are uploaded with appropriate MIME types based on file extensions
|
|
43
|
+
- Unsupported file types or invalid files will be skipped with warnings
|
|
44
|
+
- The deployment URL is returned after successful deployment
|
|
45
|
+
|
|
46
|
+
### staticwebsite list
|
|
47
|
+
|
|
48
|
+
List all static websites in a workspace.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
tailor-sdk staticwebsite list [options]
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**Options:**
|
|
55
|
+
|
|
56
|
+
- `-w, --workspace-id` - ID of the workspace
|
|
57
|
+
- `-p, --profile` - Workspace profile to use
|
|
58
|
+
- `-j, --json` - Output as JSON
|
|
59
|
+
|
|
60
|
+
**Example:**
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# List all static websites
|
|
64
|
+
tailor-sdk staticwebsite list
|
|
65
|
+
|
|
66
|
+
# List with JSON output
|
|
67
|
+
tailor-sdk staticwebsite list --json
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### staticwebsite get
|
|
71
|
+
|
|
72
|
+
Get details of a specific static website.
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
tailor-sdk staticwebsite get <name> [options]
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Arguments:**
|
|
79
|
+
|
|
80
|
+
- `name` - Static website name (required)
|
|
81
|
+
|
|
82
|
+
**Options:**
|
|
83
|
+
|
|
84
|
+
- `-w, --workspace-id` - ID of the workspace
|
|
85
|
+
- `-p, --profile` - Workspace profile to use
|
|
86
|
+
- `-j, --json` - Output as JSON
|
|
87
|
+
|
|
88
|
+
**Example:**
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
# Get details of a static website
|
|
92
|
+
tailor-sdk staticwebsite get my-website
|
|
93
|
+
|
|
94
|
+
# Get with JSON output
|
|
95
|
+
tailor-sdk staticwebsite get my-website --json
|
|
96
|
+
```
|