@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.
@@ -1,10 +1,10 @@
1
1
  /// <reference path="./user-defined.d.ts" />
2
- import * as zod0 from "zod";
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 zod_v4_core0 from "zod/v4/core";
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: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut>;
1413
- processResolver: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut>;
1414
- processExecutor: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut>;
1415
- aggregate: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod0.ZodAny>;
1416
- processTailorDBNamespace?: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut> | undefined;
1417
- processResolverNamespace?: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut> | undefined;
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-BaiXm10C.d.mts.map
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-BaiXm10C.mjs";
3
- import { n as output } from "../../index-Bz_i9lgm.mjs";
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
@@ -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
- - `-n, --dry-run` - Run the command without making any changes
47
+ - `-d, --dry-run` - Run the command without making any changes
48
48
  - `-y, --yes` - Skip confirmation prompt
49
49
 
50
50
  ## remove
@@ -78,7 +78,7 @@ tailor-sdk secret create [options]
78
78
  **Options:**
79
79
 
80
80
  - `-V, --vault-name` - Vault name (required)
81
- - `-N, --name` - Secret name (required)
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
- - `-N, --name` - Secret name (required)
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
- - `-N, --name` - Secret name (required)
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
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/sdk",
3
- "version": "0.22.4",
3
+ "version": "0.23.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",