@anuragpal02/zcl-contracts 0.1.0 → 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/dist/assets.d.ts +161 -0
- package/dist/assets.d.ts.map +1 -0
- package/dist/assets.js +59 -0
- package/dist/auth.js +1 -1
- package/dist/client.d.ts +3 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -3
- package/dist/index.d.ts +6 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/projects.d.ts +2 -2
- package/dist/projects.js +1 -1
- package/dist/workspaces.js +1 -1
- package/package.json +1 -1
package/dist/assets.d.ts
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const assetKindSchema: z.ZodEnum<{
|
|
3
|
+
reference: "reference";
|
|
4
|
+
raw_image: "raw_image";
|
|
5
|
+
display_image: "display_image";
|
|
6
|
+
final_image: "final_image";
|
|
7
|
+
video_preview: "video_preview";
|
|
8
|
+
video_final: "video_final";
|
|
9
|
+
export: "export";
|
|
10
|
+
}>;
|
|
11
|
+
export declare const assetStatusSchema: z.ZodEnum<{
|
|
12
|
+
pending_upload: "pending_upload";
|
|
13
|
+
available: "available";
|
|
14
|
+
failed: "failed";
|
|
15
|
+
deleted: "deleted";
|
|
16
|
+
}>;
|
|
17
|
+
export declare const uploadableAssetKindSchema: z.ZodEnum<{
|
|
18
|
+
reference: "reference";
|
|
19
|
+
}>;
|
|
20
|
+
export declare const assetContentTypeSchema: z.ZodEnum<{
|
|
21
|
+
"image/png": "image/png";
|
|
22
|
+
"image/jpeg": "image/jpeg";
|
|
23
|
+
"image/webp": "image/webp";
|
|
24
|
+
}>;
|
|
25
|
+
export declare const assetSchema: z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
workspaceId: z.ZodString;
|
|
28
|
+
projectId: z.ZodString;
|
|
29
|
+
createdByUserId: z.ZodString;
|
|
30
|
+
kind: z.ZodEnum<{
|
|
31
|
+
reference: "reference";
|
|
32
|
+
raw_image: "raw_image";
|
|
33
|
+
display_image: "display_image";
|
|
34
|
+
final_image: "final_image";
|
|
35
|
+
video_preview: "video_preview";
|
|
36
|
+
video_final: "video_final";
|
|
37
|
+
export: "export";
|
|
38
|
+
}>;
|
|
39
|
+
status: z.ZodEnum<{
|
|
40
|
+
pending_upload: "pending_upload";
|
|
41
|
+
available: "available";
|
|
42
|
+
failed: "failed";
|
|
43
|
+
deleted: "deleted";
|
|
44
|
+
}>;
|
|
45
|
+
contentType: z.ZodEnum<{
|
|
46
|
+
"image/png": "image/png";
|
|
47
|
+
"image/jpeg": "image/jpeg";
|
|
48
|
+
"image/webp": "image/webp";
|
|
49
|
+
}>;
|
|
50
|
+
byteSize: z.ZodNullable<z.ZodNumber>;
|
|
51
|
+
checksumSha256: z.ZodNullable<z.ZodString>;
|
|
52
|
+
originalFilename: z.ZodNullable<z.ZodString>;
|
|
53
|
+
r2Key: z.ZodString;
|
|
54
|
+
createdAt: z.ZodString;
|
|
55
|
+
updatedAt: z.ZodString;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export declare const createAssetUploadRequestSchema: z.ZodObject<{
|
|
58
|
+
kind: z.ZodEnum<{
|
|
59
|
+
reference: "reference";
|
|
60
|
+
}>;
|
|
61
|
+
filename: z.ZodString;
|
|
62
|
+
contentType: z.ZodEnum<{
|
|
63
|
+
"image/png": "image/png";
|
|
64
|
+
"image/jpeg": "image/jpeg";
|
|
65
|
+
"image/webp": "image/webp";
|
|
66
|
+
}>;
|
|
67
|
+
byteSize: z.ZodNumber;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export declare const assetUploadSchema: z.ZodObject<{
|
|
70
|
+
assetId: z.ZodString;
|
|
71
|
+
uploadUrl: z.ZodString;
|
|
72
|
+
expiresAt: z.ZodString;
|
|
73
|
+
requiredHeaders: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export declare const createAssetUploadResponseSchema: z.ZodObject<{
|
|
76
|
+
asset: z.ZodObject<{
|
|
77
|
+
id: z.ZodString;
|
|
78
|
+
workspaceId: z.ZodString;
|
|
79
|
+
projectId: z.ZodString;
|
|
80
|
+
createdByUserId: z.ZodString;
|
|
81
|
+
kind: z.ZodEnum<{
|
|
82
|
+
reference: "reference";
|
|
83
|
+
raw_image: "raw_image";
|
|
84
|
+
display_image: "display_image";
|
|
85
|
+
final_image: "final_image";
|
|
86
|
+
video_preview: "video_preview";
|
|
87
|
+
video_final: "video_final";
|
|
88
|
+
export: "export";
|
|
89
|
+
}>;
|
|
90
|
+
status: z.ZodEnum<{
|
|
91
|
+
pending_upload: "pending_upload";
|
|
92
|
+
available: "available";
|
|
93
|
+
failed: "failed";
|
|
94
|
+
deleted: "deleted";
|
|
95
|
+
}>;
|
|
96
|
+
contentType: z.ZodEnum<{
|
|
97
|
+
"image/png": "image/png";
|
|
98
|
+
"image/jpeg": "image/jpeg";
|
|
99
|
+
"image/webp": "image/webp";
|
|
100
|
+
}>;
|
|
101
|
+
byteSize: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
checksumSha256: z.ZodNullable<z.ZodString>;
|
|
103
|
+
originalFilename: z.ZodNullable<z.ZodString>;
|
|
104
|
+
r2Key: z.ZodString;
|
|
105
|
+
createdAt: z.ZodString;
|
|
106
|
+
updatedAt: z.ZodString;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
upload: z.ZodObject<{
|
|
109
|
+
assetId: z.ZodString;
|
|
110
|
+
uploadUrl: z.ZodString;
|
|
111
|
+
expiresAt: z.ZodString;
|
|
112
|
+
requiredHeaders: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
export declare const finalizeAssetUploadRequestSchema: z.ZodObject<{
|
|
116
|
+
byteSize: z.ZodNumber;
|
|
117
|
+
checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
export declare const listAssetsResponseSchema: z.ZodObject<{
|
|
120
|
+
items: z.ZodArray<z.ZodObject<{
|
|
121
|
+
id: z.ZodString;
|
|
122
|
+
workspaceId: z.ZodString;
|
|
123
|
+
projectId: z.ZodString;
|
|
124
|
+
createdByUserId: z.ZodString;
|
|
125
|
+
kind: z.ZodEnum<{
|
|
126
|
+
reference: "reference";
|
|
127
|
+
raw_image: "raw_image";
|
|
128
|
+
display_image: "display_image";
|
|
129
|
+
final_image: "final_image";
|
|
130
|
+
video_preview: "video_preview";
|
|
131
|
+
video_final: "video_final";
|
|
132
|
+
export: "export";
|
|
133
|
+
}>;
|
|
134
|
+
status: z.ZodEnum<{
|
|
135
|
+
pending_upload: "pending_upload";
|
|
136
|
+
available: "available";
|
|
137
|
+
failed: "failed";
|
|
138
|
+
deleted: "deleted";
|
|
139
|
+
}>;
|
|
140
|
+
contentType: z.ZodEnum<{
|
|
141
|
+
"image/png": "image/png";
|
|
142
|
+
"image/jpeg": "image/jpeg";
|
|
143
|
+
"image/webp": "image/webp";
|
|
144
|
+
}>;
|
|
145
|
+
byteSize: z.ZodNullable<z.ZodNumber>;
|
|
146
|
+
checksumSha256: z.ZodNullable<z.ZodString>;
|
|
147
|
+
originalFilename: z.ZodNullable<z.ZodString>;
|
|
148
|
+
r2Key: z.ZodString;
|
|
149
|
+
createdAt: z.ZodString;
|
|
150
|
+
updatedAt: z.ZodString;
|
|
151
|
+
}, z.core.$strip>>;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
export type Asset = z.infer<typeof assetSchema>;
|
|
154
|
+
export type AssetKind = z.infer<typeof assetKindSchema>;
|
|
155
|
+
export type AssetStatus = z.infer<typeof assetStatusSchema>;
|
|
156
|
+
export type AssetUpload = z.infer<typeof assetUploadSchema>;
|
|
157
|
+
export type CreateAssetUploadRequest = z.infer<typeof createAssetUploadRequestSchema>;
|
|
158
|
+
export type CreateAssetUploadResponse = z.infer<typeof createAssetUploadResponseSchema>;
|
|
159
|
+
export type FinalizeAssetUploadRequest = z.infer<typeof finalizeAssetUploadRequestSchema>;
|
|
160
|
+
export type ListAssetsResponse = z.infer<typeof listAssetsResponseSchema>;
|
|
161
|
+
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/assets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,eAAe;;;;;;;;EAQ1B,CAAA;AAEF,eAAO,MAAM,iBAAiB;;;;;EAA+D,CAAA;AAC7F,eAAO,MAAM,yBAAyB;;EAAwB,CAAA;AAC9D,eAAO,MAAM,sBAAsB;;;;EAAoD,CAAA;AAEvF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiBtB,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;iBAKzC,CAAA;AAEF,eAAO,MAAM,iBAAiB;;;;;iBAK5B,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG1C,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;iBAO3C,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEnC,CAAA;AAEF,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AAC/C,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AACvD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAC3D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAC3D,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AACrF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AACvF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AACzF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
|
package/dist/assets.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { idSchema, isoDateSchema } from './common.js';
|
|
3
|
+
export const assetKindSchema = z.enum([
|
|
4
|
+
'reference',
|
|
5
|
+
'raw_image',
|
|
6
|
+
'display_image',
|
|
7
|
+
'final_image',
|
|
8
|
+
'video_preview',
|
|
9
|
+
'video_final',
|
|
10
|
+
'export'
|
|
11
|
+
]);
|
|
12
|
+
export const assetStatusSchema = z.enum(['pending_upload', 'available', 'failed', 'deleted']);
|
|
13
|
+
export const uploadableAssetKindSchema = z.enum(['reference']);
|
|
14
|
+
export const assetContentTypeSchema = z.enum(['image/png', 'image/jpeg', 'image/webp']);
|
|
15
|
+
export const assetSchema = z.object({
|
|
16
|
+
id: idSchema,
|
|
17
|
+
workspaceId: idSchema,
|
|
18
|
+
projectId: idSchema,
|
|
19
|
+
createdByUserId: idSchema,
|
|
20
|
+
kind: assetKindSchema,
|
|
21
|
+
status: assetStatusSchema,
|
|
22
|
+
contentType: assetContentTypeSchema,
|
|
23
|
+
byteSize: z.number().int().nonnegative().nullable(),
|
|
24
|
+
checksumSha256: z
|
|
25
|
+
.string()
|
|
26
|
+
.regex(/^[a-f0-9]{64}$/)
|
|
27
|
+
.nullable(),
|
|
28
|
+
originalFilename: z.string().min(1).max(255).nullable(),
|
|
29
|
+
r2Key: z.string().min(1),
|
|
30
|
+
createdAt: isoDateSchema,
|
|
31
|
+
updatedAt: isoDateSchema
|
|
32
|
+
});
|
|
33
|
+
export const createAssetUploadRequestSchema = z.object({
|
|
34
|
+
kind: uploadableAssetKindSchema,
|
|
35
|
+
filename: z.string().trim().min(1).max(255),
|
|
36
|
+
contentType: assetContentTypeSchema,
|
|
37
|
+
byteSize: z.number().int().min(1).max(25 * 1024 * 1024)
|
|
38
|
+
});
|
|
39
|
+
export const assetUploadSchema = z.object({
|
|
40
|
+
assetId: idSchema,
|
|
41
|
+
uploadUrl: z.string().url(),
|
|
42
|
+
expiresAt: isoDateSchema,
|
|
43
|
+
requiredHeaders: z.record(z.string(), z.string())
|
|
44
|
+
});
|
|
45
|
+
export const createAssetUploadResponseSchema = z.object({
|
|
46
|
+
asset: assetSchema,
|
|
47
|
+
upload: assetUploadSchema
|
|
48
|
+
});
|
|
49
|
+
export const finalizeAssetUploadRequestSchema = z.object({
|
|
50
|
+
byteSize: z.number().int().min(1).max(25 * 1024 * 1024),
|
|
51
|
+
checksumSha256: z
|
|
52
|
+
.string()
|
|
53
|
+
.regex(/^[a-f0-9]{64}$/)
|
|
54
|
+
.nullable()
|
|
55
|
+
.default(null)
|
|
56
|
+
});
|
|
57
|
+
export const listAssetsResponseSchema = z.object({
|
|
58
|
+
items: z.array(assetSchema)
|
|
59
|
+
});
|
package/dist/auth.js
CHANGED
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type AuthSessionResponse, type LoginRequest, type LogoutResponse, type SessionResponse, type SignupRequest } from './auth';
|
|
2
|
-
import { type ApiErrorCode } from './common';
|
|
3
|
-
import { type CreateWorkspaceRequest, type Workspace, type WorkspaceMembership } from './workspaces';
|
|
1
|
+
import { type AuthSessionResponse, type LoginRequest, type LogoutResponse, type SessionResponse, type SignupRequest } from './auth.js';
|
|
2
|
+
import { type ApiErrorCode } from './common.js';
|
|
3
|
+
import { type CreateWorkspaceRequest, type Workspace, type WorkspaceMembership } from './workspaces.js';
|
|
4
4
|
type FetchLike = (request: Request) => Promise<Response>;
|
|
5
5
|
export type ZclApiClientOptions = {
|
|
6
6
|
baseUrl: string;
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,aAAa,EACnB,MAAM,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,aAAa,EACnB,MAAM,WAAW,CAAA;AAClB,OAAO,EAA2C,KAAK,YAAY,EAAE,MAAM,aAAa,CAAA;AACxF,OAAO,EAIL,KAAK,sBAAsB,EAC3B,KAAK,SAAS,EACd,KAAK,mBAAmB,EACzB,MAAM,iBAAiB,CAAA;AAExB,KAAK,SAAS,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;AAExD,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG;IAChD,UAAU,EAAE,mBAAmB,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,uBAAuB,EAAE,CAAA;IAC/B,UAAU,EAAE;QACV,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;KAC1B,CAAA;CACF,CAAA;AAQD,qBAAa,WAAY,SAAQ,KAAK;aAElB,IAAI,EAAE,YAAY;aAElB,MAAM,EAAE,MAAM;aACd,SAAS,CAAC,EAAE,MAAM;gBAHlB,IAAI,EAAE,YAAY,EAClC,OAAO,EAAE,MAAM,EACC,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,YAAA;CAKrC;AA8BD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB;;sBAkD3C,aAAa,GAAG,OAAO,CAAC,mBAAmB,CAAC;qBAM7C,YAAY,GAAG,OAAO,CAAC,mBAAmB,CAAC;kBAM9C,OAAO,CAAC,cAAc,CAAC;;;eAK1B,OAAO,CAAC,eAAe,CAAC;;;gBAKvB,OAAO,CAAC,qBAAqB,CAAC;sBAGxB,sBAAsB,GAAG,OAAO,CAAC;YAAE,IAAI,EAAE,SAAS,CAAA;SAAE,CAAC;;EAQxE;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|
package/dist/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { authSessionResponseSchema, loginRequestSchema, logoutResponseSchema, sessionResponseSchema, signupRequestSchema } from './auth';
|
|
3
|
-
import { errorResponseSchema, listResponseSchema } from './common';
|
|
4
|
-
import { createWorkspaceRequestSchema, workspaceMembershipSchema, workspaceSchema } from './workspaces';
|
|
2
|
+
import { authSessionResponseSchema, loginRequestSchema, logoutResponseSchema, sessionResponseSchema, signupRequestSchema } from './auth.js';
|
|
3
|
+
import { errorResponseSchema, listResponseSchema } from './common.js';
|
|
4
|
+
import { createWorkspaceRequestSchema, workspaceMembershipSchema, workspaceSchema } from './workspaces.js';
|
|
5
5
|
const workspaceListResponseSchema = listResponseSchema(workspaceSchema.extend({
|
|
6
6
|
membership: workspaceMembershipSchema
|
|
7
7
|
}));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
1
|
+
export * from './assets.js';
|
|
2
|
+
export * from './auth.js';
|
|
3
|
+
export * from './client.js';
|
|
4
|
+
export * from './common.js';
|
|
5
|
+
export * from './projects.js';
|
|
6
|
+
export * from './workspaces.js';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
1
|
+
export * from './assets.js';
|
|
2
|
+
export * from './auth.js';
|
|
3
|
+
export * from './client.js';
|
|
4
|
+
export * from './common.js';
|
|
5
|
+
export * from './projects.js';
|
|
6
|
+
export * from './workspaces.js';
|
package/dist/projects.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ export declare const projectVisibilitySchema: z.ZodEnum<{
|
|
|
4
4
|
workspace: "workspace";
|
|
5
5
|
}>;
|
|
6
6
|
export declare const projectStatusSchema: z.ZodEnum<{
|
|
7
|
+
deleted: "deleted";
|
|
7
8
|
active: "active";
|
|
8
9
|
archived: "archived";
|
|
9
|
-
deleted: "deleted";
|
|
10
10
|
}>;
|
|
11
11
|
export declare const ledPanelSchema: z.ZodObject<{
|
|
12
12
|
id: z.ZodString;
|
|
@@ -46,9 +46,9 @@ export declare const projectSchema: z.ZodObject<{
|
|
|
46
46
|
workspace: "workspace";
|
|
47
47
|
}>;
|
|
48
48
|
status: z.ZodEnum<{
|
|
49
|
+
deleted: "deleted";
|
|
49
50
|
active: "active";
|
|
50
51
|
archived: "archived";
|
|
51
|
-
deleted: "deleted";
|
|
52
52
|
}>;
|
|
53
53
|
createdAt: z.ZodString;
|
|
54
54
|
updatedAt: z.ZodString;
|
package/dist/projects.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { idSchema, isoDateSchema } from './common';
|
|
2
|
+
import { idSchema, isoDateSchema } from './common.js';
|
|
3
3
|
export const projectVisibilitySchema = z.enum(['private', 'workspace']);
|
|
4
4
|
export const projectStatusSchema = z.enum(['active', 'archived', 'deleted']);
|
|
5
5
|
export const ledPanelSchema = z.object({
|
package/dist/workspaces.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { idSchema, isoDateSchema } from './common';
|
|
2
|
+
import { idSchema, isoDateSchema } from './common.js';
|
|
3
3
|
export const workspaceTypeSchema = z.enum(['personal', 'organization']);
|
|
4
4
|
export const workspaceRoleSchema = z.enum(['owner', 'admin', 'artist', 'viewer']);
|
|
5
5
|
export const workspaceMembershipStatusSchema = z.enum(['active', 'invited', 'disabled']);
|