@webstudio-is/sdk 0.274.5 → 0.275.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.
@@ -2,171 +2,50 @@ import { z } from "zod";
2
2
  export declare const resource: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
5
- control: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"system">, z.ZodLiteral<"graphql">]>>;
6
- method: z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">, z.ZodLiteral<"put">, z.ZodLiteral<"delete">]>;
5
+ control: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"system">, z.ZodLiteral<"graphql">]>>;
6
+ method: z.ZodUnion<readonly [z.ZodLiteral<"get">, z.ZodLiteral<"post">, z.ZodLiteral<"put">, z.ZodLiteral<"delete">]>;
7
7
  url: z.ZodString;
8
8
  searchParams: z.ZodOptional<z.ZodArray<z.ZodObject<{
9
9
  name: z.ZodString;
10
10
  value: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- value: string;
13
- name: string;
14
- }, {
15
- value: string;
16
- name: string;
17
- }>, "many">>;
11
+ }, z.core.$strip>>>;
18
12
  headers: z.ZodArray<z.ZodObject<{
19
13
  name: z.ZodString;
20
14
  value: z.ZodString;
21
- }, "strip", z.ZodTypeAny, {
22
- value: string;
23
- name: string;
24
- }, {
25
- value: string;
26
- name: string;
27
- }>, "many">;
15
+ }, z.core.$strip>>;
28
16
  body: z.ZodOptional<z.ZodString>;
29
- }, "strip", z.ZodTypeAny, {
30
- name: string;
31
- id: string;
32
- method: "get" | "post" | "put" | "delete";
33
- url: string;
34
- headers: {
35
- value: string;
36
- name: string;
37
- }[];
38
- control?: "system" | "graphql" | undefined;
39
- searchParams?: {
40
- value: string;
41
- name: string;
42
- }[] | undefined;
43
- body?: string | undefined;
44
- }, {
45
- name: string;
46
- id: string;
47
- method: "get" | "post" | "put" | "delete";
48
- url: string;
49
- headers: {
50
- value: string;
51
- name: string;
52
- }[];
53
- control?: "system" | "graphql" | undefined;
54
- searchParams?: {
55
- value: string;
56
- name: string;
57
- }[] | undefined;
58
- body?: string | undefined;
59
- }>;
17
+ }, z.core.$strip>;
60
18
  export type Resource = z.infer<typeof resource>;
61
19
  export declare const resourceRequest: z.ZodObject<{
62
20
  name: z.ZodString;
63
- method: z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">, z.ZodLiteral<"put">, z.ZodLiteral<"delete">]>;
21
+ control: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"system">, z.ZodLiteral<"graphql">]>>;
22
+ method: z.ZodUnion<readonly [z.ZodLiteral<"get">, z.ZodLiteral<"post">, z.ZodLiteral<"put">, z.ZodLiteral<"delete">]>;
64
23
  url: z.ZodString;
65
24
  searchParams: z.ZodArray<z.ZodObject<{
66
25
  name: z.ZodString;
67
26
  value: z.ZodUnknown;
68
- }, "strip", z.ZodTypeAny, {
69
- name: string;
70
- value?: unknown;
71
- }, {
72
- name: string;
73
- value?: unknown;
74
- }>, "many">;
27
+ }, z.core.$strip>>;
75
28
  headers: z.ZodArray<z.ZodObject<{
76
29
  name: z.ZodString;
77
30
  value: z.ZodUnknown;
78
- }, "strip", z.ZodTypeAny, {
79
- name: string;
80
- value?: unknown;
81
- }, {
82
- name: string;
83
- value?: unknown;
84
- }>, "many">;
31
+ }, z.core.$strip>>;
85
32
  body: z.ZodOptional<z.ZodUnknown>;
86
- }, "strip", z.ZodTypeAny, {
87
- name: string;
88
- method: "get" | "post" | "put" | "delete";
89
- url: string;
90
- searchParams: {
91
- name: string;
92
- value?: unknown;
93
- }[];
94
- headers: {
95
- name: string;
96
- value?: unknown;
97
- }[];
98
- body?: unknown;
99
- }, {
100
- name: string;
101
- method: "get" | "post" | "put" | "delete";
102
- url: string;
103
- searchParams: {
104
- name: string;
105
- value?: unknown;
106
- }[];
107
- headers: {
108
- name: string;
109
- value?: unknown;
110
- }[];
111
- body?: unknown;
112
- }>;
33
+ }, z.core.$strip>;
113
34
  export type ResourceRequest = z.infer<typeof resourceRequest>;
114
35
  export declare const resources: z.ZodMap<z.ZodString, z.ZodObject<{
115
36
  id: z.ZodString;
116
37
  name: z.ZodString;
117
- control: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"system">, z.ZodLiteral<"graphql">]>>;
118
- method: z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">, z.ZodLiteral<"put">, z.ZodLiteral<"delete">]>;
38
+ control: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"system">, z.ZodLiteral<"graphql">]>>;
39
+ method: z.ZodUnion<readonly [z.ZodLiteral<"get">, z.ZodLiteral<"post">, z.ZodLiteral<"put">, z.ZodLiteral<"delete">]>;
119
40
  url: z.ZodString;
120
41
  searchParams: z.ZodOptional<z.ZodArray<z.ZodObject<{
121
42
  name: z.ZodString;
122
43
  value: z.ZodString;
123
- }, "strip", z.ZodTypeAny, {
124
- value: string;
125
- name: string;
126
- }, {
127
- value: string;
128
- name: string;
129
- }>, "many">>;
44
+ }, z.core.$strip>>>;
130
45
  headers: z.ZodArray<z.ZodObject<{
131
46
  name: z.ZodString;
132
47
  value: z.ZodString;
133
- }, "strip", z.ZodTypeAny, {
134
- value: string;
135
- name: string;
136
- }, {
137
- value: string;
138
- name: string;
139
- }>, "many">;
48
+ }, z.core.$strip>>;
140
49
  body: z.ZodOptional<z.ZodString>;
141
- }, "strip", z.ZodTypeAny, {
142
- name: string;
143
- id: string;
144
- method: "get" | "post" | "put" | "delete";
145
- url: string;
146
- headers: {
147
- value: string;
148
- name: string;
149
- }[];
150
- control?: "system" | "graphql" | undefined;
151
- searchParams?: {
152
- value: string;
153
- name: string;
154
- }[] | undefined;
155
- body?: string | undefined;
156
- }, {
157
- name: string;
158
- id: string;
159
- method: "get" | "post" | "put" | "delete";
160
- url: string;
161
- headers: {
162
- value: string;
163
- name: string;
164
- }[];
165
- control?: "system" | "graphql" | undefined;
166
- searchParams?: {
167
- value: string;
168
- name: string;
169
- }[] | undefined;
170
- body?: string | undefined;
171
- }>>;
50
+ }, z.core.$strip>>;
172
51
  export type Resources = z.infer<typeof resources>;
@@ -1,23 +1,11 @@
1
1
  import { z } from "zod";
2
2
  export declare const styleSourceSelection: z.ZodObject<{
3
3
  instanceId: z.ZodString;
4
- values: z.ZodArray<z.ZodString, "many">;
5
- }, "strip", z.ZodTypeAny, {
6
- values: string[];
7
- instanceId: string;
8
- }, {
9
- values: string[];
10
- instanceId: string;
11
- }>;
4
+ values: z.ZodArray<z.ZodString>;
5
+ }, z.core.$strip>;
12
6
  export type StyleSourceSelection = z.infer<typeof styleSourceSelection>;
13
7
  export declare const styleSourceSelections: z.ZodMap<z.ZodString, z.ZodObject<{
14
8
  instanceId: z.ZodString;
15
- values: z.ZodArray<z.ZodString, "many">;
16
- }, "strip", z.ZodTypeAny, {
17
- values: string[];
18
- instanceId: string;
19
- }, {
20
- values: string[];
21
- instanceId: string;
22
- }>>;
9
+ values: z.ZodArray<z.ZodString>;
10
+ }, z.core.$strip>>;
23
11
  export type StyleSourceSelections = z.infer<typeof styleSourceSelections>;
@@ -4,68 +4,26 @@ declare const styleSourceToken: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  name: z.ZodString;
6
6
  locked: z.ZodOptional<z.ZodBoolean>;
7
- }, "strip", z.ZodTypeAny, {
8
- type: "token";
9
- name: string;
10
- id: string;
11
- locked?: boolean | undefined;
12
- }, {
13
- type: "token";
14
- name: string;
15
- id: string;
16
- locked?: boolean | undefined;
17
- }>;
7
+ }, z.core.$strip>;
18
8
  export type StyleSourceToken = z.infer<typeof styleSourceToken>;
19
- export declare const styleSource: z.ZodUnion<[z.ZodObject<{
9
+ export declare const styleSource: z.ZodUnion<readonly [z.ZodObject<{
20
10
  type: z.ZodLiteral<"token">;
21
11
  id: z.ZodString;
22
12
  name: z.ZodString;
23
13
  locked: z.ZodOptional<z.ZodBoolean>;
24
- }, "strip", z.ZodTypeAny, {
25
- type: "token";
26
- name: string;
27
- id: string;
28
- locked?: boolean | undefined;
29
- }, {
30
- type: "token";
31
- name: string;
32
- id: string;
33
- locked?: boolean | undefined;
34
- }>, z.ZodObject<{
14
+ }, z.core.$strip>, z.ZodObject<{
35
15
  type: z.ZodLiteral<"local">;
36
16
  id: z.ZodString;
37
- }, "strip", z.ZodTypeAny, {
38
- type: "local";
39
- id: string;
40
- }, {
41
- type: "local";
42
- id: string;
43
- }>]>;
17
+ }, z.core.$strip>]>;
44
18
  export type StyleSource = z.infer<typeof styleSource>;
45
- export declare const styleSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
19
+ export declare const styleSources: z.ZodMap<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
46
20
  type: z.ZodLiteral<"token">;
47
21
  id: z.ZodString;
48
22
  name: z.ZodString;
49
23
  locked: z.ZodOptional<z.ZodBoolean>;
50
- }, "strip", z.ZodTypeAny, {
51
- type: "token";
52
- name: string;
53
- id: string;
54
- locked?: boolean | undefined;
55
- }, {
56
- type: "token";
57
- name: string;
58
- id: string;
59
- locked?: boolean | undefined;
60
- }>, z.ZodObject<{
24
+ }, z.core.$strip>, z.ZodObject<{
61
25
  type: z.ZodLiteral<"local">;
62
26
  id: z.ZodString;
63
- }, "strip", z.ZodTypeAny, {
64
- type: "local";
65
- id: string;
66
- }, {
67
- type: "local";
68
- id: string;
69
- }>]>>;
27
+ }, z.core.$strip>]>>;
70
28
  export type StyleSources = z.infer<typeof styleSources>;
71
29
  export {};