@drawcall/design 0.1.8 → 0.2.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/README.md +20 -10
- package/dist/cli.js +142 -141
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1 -2
- package/dist/skill.generated.d.ts +1 -1
- package/dist/skill.generated.js +1 -1
- package/dist/target.d.ts +0 -14
- package/dist/target.js +0 -23
- package/dist/v1/contract.d.ts +109 -67
- package/dist/v1/contract.js +32 -54
- package/dist/v1/schemas.d.ts +107 -44
- package/dist/v1/schemas.js +86 -60
- package/package.json +1 -1
- package/skills/drawcall-design/SKILL.md +30 -15
- package/dist/source.d.ts +0 -10
- package/dist/source.js +0 -38
package/dist/v1/contract.d.ts
CHANGED
|
@@ -40,10 +40,23 @@ export declare const contract: {
|
|
|
40
40
|
y: z.ZodNumber;
|
|
41
41
|
width: z.ZodNumber;
|
|
42
42
|
height: z.ZodNumber;
|
|
43
|
+
viewUrl: z.ZodString;
|
|
43
44
|
createdAt: z.ZodString;
|
|
44
45
|
updatedAt: z.ZodString;
|
|
45
|
-
|
|
46
|
+
type: z.ZodLiteral<"glts">;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
projectId: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
x: z.ZodNumber;
|
|
52
|
+
y: z.ZodNumber;
|
|
53
|
+
width: z.ZodNumber;
|
|
54
|
+
height: z.ZodNumber;
|
|
46
55
|
viewUrl: z.ZodString;
|
|
56
|
+
createdAt: z.ZodString;
|
|
57
|
+
updatedAt: z.ZodString;
|
|
58
|
+
type: z.ZodLiteral<"image">;
|
|
59
|
+
file: z.ZodString;
|
|
47
60
|
}, z.core.$strip>, z.ZodObject<{
|
|
48
61
|
id: z.ZodString;
|
|
49
62
|
projectId: z.ZodString;
|
|
@@ -52,30 +65,35 @@ export declare const contract: {
|
|
|
52
65
|
y: z.ZodNumber;
|
|
53
66
|
width: z.ZodNumber;
|
|
54
67
|
height: z.ZodNumber;
|
|
68
|
+
viewUrl: z.ZodString;
|
|
55
69
|
createdAt: z.ZodString;
|
|
56
70
|
updatedAt: z.ZodString;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}, z.core.$strip>], "
|
|
71
|
+
type: z.ZodLiteral<"market">;
|
|
72
|
+
asset: z.ZodString;
|
|
73
|
+
}, z.core.$strip>], "type">>, Record<never, never>, Record<never, never>>;
|
|
60
74
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
61
75
|
project: z.ZodString;
|
|
62
76
|
name: z.ZodString;
|
|
77
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
type: z.ZodLiteral<"glts">;
|
|
63
80
|
width: z.ZodNumber;
|
|
64
81
|
height: z.ZodNumber;
|
|
82
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
83
|
+
project: z.ZodString;
|
|
84
|
+
name: z.ZodString;
|
|
65
85
|
x: z.ZodOptional<z.ZodNumber>;
|
|
66
86
|
y: z.ZodOptional<z.ZodNumber>;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}, z.core.$
|
|
87
|
+
type: z.ZodLiteral<"image">;
|
|
88
|
+
image: z.ZodUnion<readonly [z.ZodFile, z.ZodString]>;
|
|
89
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
70
90
|
project: z.ZodString;
|
|
71
91
|
name: z.ZodString;
|
|
72
|
-
width: z.ZodNumber;
|
|
73
|
-
height: z.ZodNumber;
|
|
74
92
|
x: z.ZodOptional<z.ZodNumber>;
|
|
75
93
|
y: z.ZodOptional<z.ZodNumber>;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}, z.core.$
|
|
94
|
+
type: z.ZodLiteral<"market">;
|
|
95
|
+
asset: z.ZodString;
|
|
96
|
+
}, z.core.$strict>], "type">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
79
97
|
id: z.ZodString;
|
|
80
98
|
projectId: z.ZodString;
|
|
81
99
|
name: z.ZodString;
|
|
@@ -83,10 +101,23 @@ export declare const contract: {
|
|
|
83
101
|
y: z.ZodNumber;
|
|
84
102
|
width: z.ZodNumber;
|
|
85
103
|
height: z.ZodNumber;
|
|
104
|
+
viewUrl: z.ZodString;
|
|
86
105
|
createdAt: z.ZodString;
|
|
87
106
|
updatedAt: z.ZodString;
|
|
88
|
-
|
|
107
|
+
type: z.ZodLiteral<"glts">;
|
|
108
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
projectId: z.ZodString;
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
x: z.ZodNumber;
|
|
113
|
+
y: z.ZodNumber;
|
|
114
|
+
width: z.ZodNumber;
|
|
115
|
+
height: z.ZodNumber;
|
|
89
116
|
viewUrl: z.ZodString;
|
|
117
|
+
createdAt: z.ZodString;
|
|
118
|
+
updatedAt: z.ZodString;
|
|
119
|
+
type: z.ZodLiteral<"image">;
|
|
120
|
+
file: z.ZodString;
|
|
90
121
|
}, z.core.$strip>, z.ZodObject<{
|
|
91
122
|
id: z.ZodString;
|
|
92
123
|
projectId: z.ZodString;
|
|
@@ -95,11 +126,12 @@ export declare const contract: {
|
|
|
95
126
|
y: z.ZodNumber;
|
|
96
127
|
width: z.ZodNumber;
|
|
97
128
|
height: z.ZodNumber;
|
|
129
|
+
viewUrl: z.ZodString;
|
|
98
130
|
createdAt: z.ZodString;
|
|
99
131
|
updatedAt: z.ZodString;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}, z.core.$strip>], "
|
|
132
|
+
type: z.ZodLiteral<"market">;
|
|
133
|
+
asset: z.ZodString;
|
|
134
|
+
}, z.core.$strip>], "type">, Record<never, never>, Record<never, never>>;
|
|
103
135
|
rename: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
104
136
|
project: z.ZodString;
|
|
105
137
|
frame: z.ZodString;
|
|
@@ -112,10 +144,23 @@ export declare const contract: {
|
|
|
112
144
|
y: z.ZodNumber;
|
|
113
145
|
width: z.ZodNumber;
|
|
114
146
|
height: z.ZodNumber;
|
|
147
|
+
viewUrl: z.ZodString;
|
|
115
148
|
createdAt: z.ZodString;
|
|
116
149
|
updatedAt: z.ZodString;
|
|
117
|
-
|
|
150
|
+
type: z.ZodLiteral<"glts">;
|
|
151
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
152
|
+
id: z.ZodString;
|
|
153
|
+
projectId: z.ZodString;
|
|
154
|
+
name: z.ZodString;
|
|
155
|
+
x: z.ZodNumber;
|
|
156
|
+
y: z.ZodNumber;
|
|
157
|
+
width: z.ZodNumber;
|
|
158
|
+
height: z.ZodNumber;
|
|
118
159
|
viewUrl: z.ZodString;
|
|
160
|
+
createdAt: z.ZodString;
|
|
161
|
+
updatedAt: z.ZodString;
|
|
162
|
+
type: z.ZodLiteral<"image">;
|
|
163
|
+
file: z.ZodString;
|
|
119
164
|
}, z.core.$strip>, z.ZodObject<{
|
|
120
165
|
id: z.ZodString;
|
|
121
166
|
projectId: z.ZodString;
|
|
@@ -124,11 +169,12 @@ export declare const contract: {
|
|
|
124
169
|
y: z.ZodNumber;
|
|
125
170
|
width: z.ZodNumber;
|
|
126
171
|
height: z.ZodNumber;
|
|
172
|
+
viewUrl: z.ZodString;
|
|
127
173
|
createdAt: z.ZodString;
|
|
128
174
|
updatedAt: z.ZodString;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}, z.core.$strip>], "
|
|
175
|
+
type: z.ZodLiteral<"market">;
|
|
176
|
+
asset: z.ZodString;
|
|
177
|
+
}, z.core.$strip>], "type">, Record<never, never>, Record<never, never>>;
|
|
132
178
|
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
133
179
|
project: z.ZodString;
|
|
134
180
|
frame: z.ZodString;
|
|
@@ -144,53 +190,49 @@ export declare const contract: {
|
|
|
144
190
|
height: z.ZodNumber;
|
|
145
191
|
mediaType: z.ZodLiteral<"image/png">;
|
|
146
192
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
-
paths: z.ZodArray<z.ZodString>;
|
|
192
|
-
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
193
|
-
};
|
|
193
|
+
};
|
|
194
|
+
filesystem: {
|
|
195
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
196
|
+
project: z.ZodString;
|
|
197
|
+
path: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"/">, z.ZodString]>>;
|
|
198
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
199
|
+
paths: z.ZodArray<z.ZodString>;
|
|
200
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
201
|
+
read: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
202
|
+
project: z.ZodString;
|
|
203
|
+
path: z.ZodString;
|
|
204
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
205
|
+
type: z.ZodLiteral<"text">;
|
|
206
|
+
path: z.ZodString;
|
|
207
|
+
text: z.ZodString;
|
|
208
|
+
mediaType: z.ZodLiteral<"text/plain">;
|
|
209
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
210
|
+
type: z.ZodLiteral<"binary">;
|
|
211
|
+
path: z.ZodString;
|
|
212
|
+
url: z.ZodString;
|
|
213
|
+
mediaType: z.ZodString;
|
|
214
|
+
}, z.core.$strip>], "type">, Record<never, never>, Record<never, never>>;
|
|
215
|
+
write: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
216
|
+
project: z.ZodString;
|
|
217
|
+
path: z.ZodString;
|
|
218
|
+
text: z.ZodString;
|
|
219
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
220
|
+
paths: z.ZodArray<z.ZodString>;
|
|
221
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
222
|
+
edit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
223
|
+
project: z.ZodString;
|
|
224
|
+
path: z.ZodString;
|
|
225
|
+
oldText: z.ZodString;
|
|
226
|
+
newText: z.ZodString;
|
|
227
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
228
|
+
paths: z.ZodArray<z.ZodString>;
|
|
229
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
230
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
231
|
+
project: z.ZodString;
|
|
232
|
+
path: z.ZodString;
|
|
233
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
234
|
+
paths: z.ZodArray<z.ZodString>;
|
|
235
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
194
236
|
};
|
|
195
237
|
};
|
|
196
238
|
export type V1Contract = typeof contract;
|
package/dist/v1/contract.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { createFrameSchema,
|
|
4
|
-
const projectInputSchema = z.object({ project:
|
|
5
|
-
const frameInputSchema = projectInputSchema.extend({ frame:
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
});
|
|
9
|
-
const deletedSchema = z.object({ id: z.string().min(1) });
|
|
3
|
+
import { createFrameSchema, designIdSchema, fileListSchema, fileMutationSchema, fileSchema, fileTextSchema, frameNameSchema, frameSchema, projectDirectoryPathSchema, projectNameSchema, projectPathSchema, projectSchema, screenshotSchema, userSchema, } from "./schemas.js";
|
|
4
|
+
const projectInputSchema = z.object({ project: designIdSchema });
|
|
5
|
+
const frameInputSchema = projectInputSchema.extend({ frame: designIdSchema });
|
|
6
|
+
const fileInputSchema = projectInputSchema.extend({ path: projectPathSchema });
|
|
7
|
+
const deletedSchema = z.object({ id: designIdSchema });
|
|
10
8
|
export const contract = {
|
|
11
9
|
user: {
|
|
12
10
|
me: oc.route({ method: "GET", path: "/me" }).output(userSchema),
|
|
@@ -48,52 +46,32 @@ export const contract = {
|
|
|
48
46
|
})
|
|
49
47
|
.input(frameInputSchema)
|
|
50
48
|
.output(screenshotSchema),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
.input(sourceFileInputSchema.extend({
|
|
79
|
-
oldText: sourceCodeSchema.min(1),
|
|
80
|
-
newText: sourceCodeSchema,
|
|
81
|
-
}))
|
|
82
|
-
.output(sourceMutationSchema),
|
|
83
|
-
replace: oc
|
|
84
|
-
.route({
|
|
85
|
-
method: "PUT",
|
|
86
|
-
path: "/projects/{project}/frames/{frame}/source",
|
|
87
|
-
})
|
|
88
|
-
.input(frameInputSchema.extend({ files: sourceFilesSchema }))
|
|
89
|
-
.output(sourceMutationSchema),
|
|
90
|
-
delete: oc
|
|
91
|
-
.route({
|
|
92
|
-
method: "DELETE",
|
|
93
|
-
path: "/projects/{project}/frames/{frame}/source",
|
|
94
|
-
})
|
|
95
|
-
.input(frameInputSchema.extend({ paths: sourceDeletePathsSchema }))
|
|
96
|
-
.output(sourceMutationSchema),
|
|
97
|
-
},
|
|
49
|
+
},
|
|
50
|
+
filesystem: {
|
|
51
|
+
list: oc
|
|
52
|
+
.route({ method: "GET", path: "/projects/{project}/files" })
|
|
53
|
+
.input(projectInputSchema.extend({
|
|
54
|
+
path: projectDirectoryPathSchema.optional(),
|
|
55
|
+
}))
|
|
56
|
+
.output(fileListSchema),
|
|
57
|
+
read: oc
|
|
58
|
+
.route({ method: "GET", path: "/projects/{project}/files/{path}" })
|
|
59
|
+
.input(fileInputSchema)
|
|
60
|
+
.output(fileSchema),
|
|
61
|
+
write: oc
|
|
62
|
+
.route({ method: "PUT", path: "/projects/{project}/files/{path}" })
|
|
63
|
+
.input(fileInputSchema.extend({ text: fileTextSchema }))
|
|
64
|
+
.output(fileMutationSchema),
|
|
65
|
+
edit: oc
|
|
66
|
+
.route({ method: "PATCH", path: "/projects/{project}/files/{path}" })
|
|
67
|
+
.input(fileInputSchema.extend({
|
|
68
|
+
oldText: fileTextSchema.min(1),
|
|
69
|
+
newText: fileTextSchema,
|
|
70
|
+
}))
|
|
71
|
+
.output(fileMutationSchema),
|
|
72
|
+
delete: oc
|
|
73
|
+
.route({ method: "DELETE", path: "/projects/{project}/files/{path}" })
|
|
74
|
+
.input(fileInputSchema)
|
|
75
|
+
.output(fileMutationSchema),
|
|
98
76
|
},
|
|
99
77
|
};
|
package/dist/v1/schemas.d.ts
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const MAX_FRAME_DIMENSION = 4096;
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const MAX_SOURCE_TOTAL_LENGTH = 4000000;
|
|
3
|
+
export declare const MAX_FILE_LENGTH = 512000;
|
|
4
|
+
export declare const designIdSchema: z.ZodString;
|
|
6
5
|
export declare const projectNameSchema: z.ZodString;
|
|
7
6
|
export declare const frameNameSchema: z.ZodString;
|
|
8
7
|
export declare const frameSizeSchema: z.ZodNumber;
|
|
9
8
|
export declare const framePositionSchema: z.ZodNumber;
|
|
10
9
|
export declare const httpUrlSchema: z.ZodString;
|
|
11
10
|
export declare const imageUrlSchema: z.ZodString;
|
|
12
|
-
|
|
13
|
-
export declare const
|
|
14
|
-
|
|
15
|
-
export declare const
|
|
11
|
+
/** An absolute path in the hosted project filesystem. */
|
|
12
|
+
export declare const projectPathSchema: z.ZodString;
|
|
13
|
+
/** A project directory path. `/` denotes the project root. */
|
|
14
|
+
export declare const projectDirectoryPathSchema: z.ZodUnion<readonly [z.ZodLiteral<"/">, z.ZodString]>;
|
|
15
|
+
export declare const fileTextSchema: z.ZodString;
|
|
16
|
+
export declare const marketAssetNameSchema: z.ZodString;
|
|
17
|
+
export declare const marketAssetVersionSchema: z.ZodString;
|
|
18
|
+
export declare const marketAssetSchema: z.ZodString;
|
|
16
19
|
export declare const userSchema: z.ZodObject<{
|
|
17
20
|
id: z.ZodString;
|
|
18
21
|
name: z.ZodString;
|
|
@@ -25,7 +28,7 @@ export declare const projectSchema: z.ZodObject<{
|
|
|
25
28
|
createdAt: z.ZodString;
|
|
26
29
|
updatedAt: z.ZodString;
|
|
27
30
|
}, z.core.$strip>;
|
|
28
|
-
export declare const
|
|
31
|
+
export declare const gltsFrameSchema: z.ZodObject<{
|
|
29
32
|
id: z.ZodString;
|
|
30
33
|
projectId: z.ZodString;
|
|
31
34
|
name: z.ZodString;
|
|
@@ -33,10 +36,10 @@ export declare const codeFrameSchema: z.ZodObject<{
|
|
|
33
36
|
y: z.ZodNumber;
|
|
34
37
|
width: z.ZodNumber;
|
|
35
38
|
height: z.ZodNumber;
|
|
39
|
+
viewUrl: z.ZodString;
|
|
36
40
|
createdAt: z.ZodString;
|
|
37
41
|
updatedAt: z.ZodString;
|
|
38
|
-
|
|
39
|
-
viewUrl: z.ZodString;
|
|
42
|
+
type: z.ZodLiteral<"glts">;
|
|
40
43
|
}, z.core.$strip>;
|
|
41
44
|
export declare const imageFrameSchema: z.ZodObject<{
|
|
42
45
|
id: z.ZodString;
|
|
@@ -46,12 +49,13 @@ export declare const imageFrameSchema: z.ZodObject<{
|
|
|
46
49
|
y: z.ZodNumber;
|
|
47
50
|
width: z.ZodNumber;
|
|
48
51
|
height: z.ZodNumber;
|
|
52
|
+
viewUrl: z.ZodString;
|
|
49
53
|
createdAt: z.ZodString;
|
|
50
54
|
updatedAt: z.ZodString;
|
|
51
|
-
|
|
52
|
-
|
|
55
|
+
type: z.ZodLiteral<"image">;
|
|
56
|
+
file: z.ZodString;
|
|
53
57
|
}, z.core.$strip>;
|
|
54
|
-
export declare const
|
|
58
|
+
export declare const marketFrameSchema: z.ZodObject<{
|
|
55
59
|
id: z.ZodString;
|
|
56
60
|
projectId: z.ZodString;
|
|
57
61
|
name: z.ZodString;
|
|
@@ -59,10 +63,24 @@ export declare const frameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
59
63
|
y: z.ZodNumber;
|
|
60
64
|
width: z.ZodNumber;
|
|
61
65
|
height: z.ZodNumber;
|
|
66
|
+
viewUrl: z.ZodString;
|
|
62
67
|
createdAt: z.ZodString;
|
|
63
68
|
updatedAt: z.ZodString;
|
|
64
|
-
|
|
69
|
+
type: z.ZodLiteral<"market">;
|
|
70
|
+
asset: z.ZodString;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export declare const frameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
projectId: z.ZodString;
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
x: z.ZodNumber;
|
|
77
|
+
y: z.ZodNumber;
|
|
78
|
+
width: z.ZodNumber;
|
|
79
|
+
height: z.ZodNumber;
|
|
65
80
|
viewUrl: z.ZodString;
|
|
81
|
+
createdAt: z.ZodString;
|
|
82
|
+
updatedAt: z.ZodString;
|
|
83
|
+
type: z.ZodLiteral<"glts">;
|
|
66
84
|
}, z.core.$strip>, z.ZodObject<{
|
|
67
85
|
id: z.ZodString;
|
|
68
86
|
projectId: z.ZodString;
|
|
@@ -71,58 +89,100 @@ export declare const frameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
71
89
|
y: z.ZodNumber;
|
|
72
90
|
width: z.ZodNumber;
|
|
73
91
|
height: z.ZodNumber;
|
|
92
|
+
viewUrl: z.ZodString;
|
|
74
93
|
createdAt: z.ZodString;
|
|
75
94
|
updatedAt: z.ZodString;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}, z.core.$strip
|
|
79
|
-
|
|
80
|
-
|
|
95
|
+
type: z.ZodLiteral<"image">;
|
|
96
|
+
file: z.ZodString;
|
|
97
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
98
|
+
id: z.ZodString;
|
|
99
|
+
projectId: z.ZodString;
|
|
81
100
|
name: z.ZodString;
|
|
101
|
+
x: z.ZodNumber;
|
|
102
|
+
y: z.ZodNumber;
|
|
82
103
|
width: z.ZodNumber;
|
|
83
104
|
height: z.ZodNumber;
|
|
105
|
+
viewUrl: z.ZodString;
|
|
106
|
+
createdAt: z.ZodString;
|
|
107
|
+
updatedAt: z.ZodString;
|
|
108
|
+
type: z.ZodLiteral<"market">;
|
|
109
|
+
asset: z.ZodString;
|
|
110
|
+
}, z.core.$strip>], "type">;
|
|
111
|
+
export declare const createGltsFrameSchema: z.ZodObject<{
|
|
112
|
+
project: z.ZodString;
|
|
113
|
+
name: z.ZodString;
|
|
84
114
|
x: z.ZodOptional<z.ZodNumber>;
|
|
85
115
|
y: z.ZodOptional<z.ZodNumber>;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
116
|
+
type: z.ZodLiteral<"glts">;
|
|
117
|
+
width: z.ZodNumber;
|
|
118
|
+
height: z.ZodNumber;
|
|
119
|
+
}, z.core.$strict>;
|
|
89
120
|
export declare const createImageFrameSchema: z.ZodObject<{
|
|
90
121
|
project: z.ZodString;
|
|
91
122
|
name: z.ZodString;
|
|
92
|
-
width: z.ZodNumber;
|
|
93
|
-
height: z.ZodNumber;
|
|
94
123
|
x: z.ZodOptional<z.ZodNumber>;
|
|
95
124
|
y: z.ZodOptional<z.ZodNumber>;
|
|
96
|
-
|
|
125
|
+
type: z.ZodLiteral<"image">;
|
|
97
126
|
image: z.ZodUnion<readonly [z.ZodFile, z.ZodString]>;
|
|
98
|
-
}, z.core.$
|
|
99
|
-
export declare const
|
|
127
|
+
}, z.core.$strict>;
|
|
128
|
+
export declare const createMarketFrameSchema: z.ZodObject<{
|
|
100
129
|
project: z.ZodString;
|
|
101
130
|
name: z.ZodString;
|
|
102
|
-
width: z.ZodNumber;
|
|
103
|
-
height: z.ZodNumber;
|
|
104
131
|
x: z.ZodOptional<z.ZodNumber>;
|
|
105
132
|
y: z.ZodOptional<z.ZodNumber>;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}, z.core.$
|
|
133
|
+
type: z.ZodLiteral<"market">;
|
|
134
|
+
asset: z.ZodString;
|
|
135
|
+
}, z.core.$strict>;
|
|
136
|
+
export declare const createFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
109
137
|
project: z.ZodString;
|
|
110
138
|
name: z.ZodString;
|
|
139
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
type: z.ZodLiteral<"glts">;
|
|
111
142
|
width: z.ZodNumber;
|
|
112
143
|
height: z.ZodNumber;
|
|
144
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
145
|
+
project: z.ZodString;
|
|
146
|
+
name: z.ZodString;
|
|
113
147
|
x: z.ZodOptional<z.ZodNumber>;
|
|
114
148
|
y: z.ZodOptional<z.ZodNumber>;
|
|
115
|
-
|
|
149
|
+
type: z.ZodLiteral<"image">;
|
|
116
150
|
image: z.ZodUnion<readonly [z.ZodFile, z.ZodString]>;
|
|
117
|
-
}, z.core.$
|
|
118
|
-
|
|
151
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
152
|
+
project: z.ZodString;
|
|
153
|
+
name: z.ZodString;
|
|
154
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
155
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
156
|
+
type: z.ZodLiteral<"market">;
|
|
157
|
+
asset: z.ZodString;
|
|
158
|
+
}, z.core.$strict>], "type">;
|
|
159
|
+
export declare const fileListSchema: z.ZodObject<{
|
|
119
160
|
paths: z.ZodArray<z.ZodString>;
|
|
120
161
|
}, z.core.$strip>;
|
|
121
|
-
export declare const
|
|
162
|
+
export declare const textFileSchema: z.ZodObject<{
|
|
163
|
+
type: z.ZodLiteral<"text">;
|
|
122
164
|
path: z.ZodString;
|
|
123
|
-
|
|
165
|
+
text: z.ZodString;
|
|
166
|
+
mediaType: z.ZodLiteral<"text/plain">;
|
|
124
167
|
}, z.core.$strip>;
|
|
125
|
-
export declare const
|
|
168
|
+
export declare const binaryFileSchema: z.ZodObject<{
|
|
169
|
+
type: z.ZodLiteral<"binary">;
|
|
170
|
+
path: z.ZodString;
|
|
171
|
+
url: z.ZodString;
|
|
172
|
+
mediaType: z.ZodString;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
export declare const fileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
175
|
+
type: z.ZodLiteral<"text">;
|
|
176
|
+
path: z.ZodString;
|
|
177
|
+
text: z.ZodString;
|
|
178
|
+
mediaType: z.ZodLiteral<"text/plain">;
|
|
179
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
180
|
+
type: z.ZodLiteral<"binary">;
|
|
181
|
+
path: z.ZodString;
|
|
182
|
+
url: z.ZodString;
|
|
183
|
+
mediaType: z.ZodString;
|
|
184
|
+
}, z.core.$strip>], "type">;
|
|
185
|
+
export declare const fileMutationSchema: z.ZodObject<{
|
|
126
186
|
paths: z.ZodArray<z.ZodString>;
|
|
127
187
|
}, z.core.$strip>;
|
|
128
188
|
export declare const screenshotSchema: z.ZodObject<{
|
|
@@ -133,14 +193,17 @@ export declare const screenshotSchema: z.ZodObject<{
|
|
|
133
193
|
}, z.core.$strip>;
|
|
134
194
|
export type User = z.infer<typeof userSchema>;
|
|
135
195
|
export type Project = z.infer<typeof projectSchema>;
|
|
136
|
-
export type
|
|
196
|
+
export type GltsFrame = z.infer<typeof gltsFrameSchema>;
|
|
137
197
|
export type ImageFrame = z.infer<typeof imageFrameSchema>;
|
|
198
|
+
export type MarketFrame = z.infer<typeof marketFrameSchema>;
|
|
138
199
|
export type Frame = z.infer<typeof frameSchema>;
|
|
139
|
-
export type
|
|
200
|
+
export type CreateGltsFrame = z.infer<typeof createGltsFrameSchema>;
|
|
140
201
|
export type CreateImageFrame = z.infer<typeof createImageFrameSchema>;
|
|
202
|
+
export type CreateMarketFrame = z.infer<typeof createMarketFrameSchema>;
|
|
141
203
|
export type CreateFrame = z.infer<typeof createFrameSchema>;
|
|
142
|
-
export type
|
|
143
|
-
export type
|
|
144
|
-
export type
|
|
145
|
-
export type
|
|
204
|
+
export type FileList = z.infer<typeof fileListSchema>;
|
|
205
|
+
export type TextFile = z.infer<typeof textFileSchema>;
|
|
206
|
+
export type BinaryFile = z.infer<typeof binaryFileSchema>;
|
|
207
|
+
export type DesignFile = z.infer<typeof fileSchema>;
|
|
208
|
+
export type FileMutation = z.infer<typeof fileMutationSchema>;
|
|
146
209
|
export type Screenshot = z.infer<typeof screenshotSchema>;
|