@ourofoundation/ouro-js 1.0.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 +6 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +64 -0
- package/dist/schema/assets.d.ts +245 -0
- package/dist/schema/assets.js +38 -0
- package/dist/schema/blueprints.d.ts +541 -0
- package/dist/schema/blueprints.js +37 -0
- package/dist/schema/comments.d.ts +525 -0
- package/dist/schema/comments.js +32 -0
- package/dist/schema/common.d.ts +37 -0
- package/dist/schema/common.js +18 -0
- package/dist/schema/conversations.d.ts +696 -0
- package/dist/schema/conversations.js +53 -0
- package/dist/schema/datasets.d.ts +918 -0
- package/dist/schema/datasets.js +103 -0
- package/dist/schema/files.d.ts +277 -0
- package/dist/schema/files.js +16 -0
- package/dist/schema/index.d.ts +80 -0
- package/dist/schema/index.js +63 -0
- package/dist/schema/notifications.d.ts +97 -0
- package/dist/schema/notifications.js +45 -0
- package/dist/schema/organizations.d.ts +73 -0
- package/dist/schema/organizations.js +33 -0
- package/dist/schema/posts.d.ts +1612 -0
- package/dist/schema/posts.js +93 -0
- package/dist/schema/replications.d.ts +541 -0
- package/dist/schema/replications.js +37 -0
- package/dist/schema/services.d.ts +86 -0
- package/dist/schema/services.js +38 -0
- package/dist/schema/teams.d.ts +524 -0
- package/dist/schema/teams.js +56 -0
- package/dist/schema/users.d.ts +123 -0
- package/dist/schema/users.js +34 -0
- package/package.json +37 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updatePostSchema = exports.ReadPostsSchema = exports.ReadPostSchema = exports.ListPostsSchema = exports.CreatePostSchema = exports.PostSchema = exports.ContentSchema = exports.TipTapSchema = void 0;
|
|
4
|
+
const uuidv7_1 = require("uuidv7");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const assets_1 = require("@/schema/assets");
|
|
7
|
+
const index_1 = require("@/schema/index");
|
|
8
|
+
const PostSchema = assets_1.AssetSchema.extend({
|
|
9
|
+
name: zod_1.z.string().nullable(),
|
|
10
|
+
asset_type: index_1.AssetTypeSchema.refine((x) => ["post", "comment"].includes(x)),
|
|
11
|
+
preview: zod_1.z
|
|
12
|
+
.object({
|
|
13
|
+
type: zod_1.z.string().refine((x) => x === "doc"),
|
|
14
|
+
content: zod_1.z.array(zod_1.z.object({}).passthrough()),
|
|
15
|
+
})
|
|
16
|
+
.optional()
|
|
17
|
+
.nullable()
|
|
18
|
+
.default({ type: "doc", content: [] }),
|
|
19
|
+
});
|
|
20
|
+
exports.PostSchema = PostSchema;
|
|
21
|
+
const TipTapSchema = zod_1.z.object({
|
|
22
|
+
type: zod_1.z.string().refine((x) => x === "doc"),
|
|
23
|
+
content: zod_1.z.array(zod_1.z.object({}).passthrough()),
|
|
24
|
+
});
|
|
25
|
+
exports.TipTapSchema = TipTapSchema;
|
|
26
|
+
const ContentSchema = zod_1.z.object({
|
|
27
|
+
json: TipTapSchema,
|
|
28
|
+
text: zod_1.z.string(),
|
|
29
|
+
});
|
|
30
|
+
exports.ContentSchema = ContentSchema;
|
|
31
|
+
const CreatePostSchema = PostSchema.partial()
|
|
32
|
+
.omit({
|
|
33
|
+
id: true,
|
|
34
|
+
user_id: true,
|
|
35
|
+
})
|
|
36
|
+
.extend({
|
|
37
|
+
id: zod_1.z
|
|
38
|
+
.string()
|
|
39
|
+
.uuid()
|
|
40
|
+
.default(() => (0, uuidv7_1.uuidv7)()),
|
|
41
|
+
team_id: zod_1.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),
|
|
42
|
+
org_id: zod_1.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),
|
|
43
|
+
asset_type: index_1.AssetTypeSchema.default("post").refine((x) => x === "post"),
|
|
44
|
+
name: zod_1.z
|
|
45
|
+
.string()
|
|
46
|
+
.default("")
|
|
47
|
+
.transform((x) => x.trim())
|
|
48
|
+
.transform((x) => x || null),
|
|
49
|
+
visibility: index_1.VisibilitySchema.default("private"),
|
|
50
|
+
monetization: index_1.MonetizationSchema.default("none"),
|
|
51
|
+
// preview: z.object({
|
|
52
|
+
// type: z.string().refine((x) => x === "doc"),
|
|
53
|
+
// content: z.array(z.object({}).passthrough()),
|
|
54
|
+
// }),
|
|
55
|
+
created_at: zod_1.z.string().default(() => new Date().toISOString()),
|
|
56
|
+
last_updated: zod_1.z.string().default(() => new Date().toISOString()),
|
|
57
|
+
});
|
|
58
|
+
exports.CreatePostSchema = CreatePostSchema;
|
|
59
|
+
const ReadPostSchema = PostSchema.extend({
|
|
60
|
+
content: ContentSchema.optional()
|
|
61
|
+
.nullable()
|
|
62
|
+
.default({
|
|
63
|
+
json: { type: "doc", content: [] },
|
|
64
|
+
text: "",
|
|
65
|
+
}),
|
|
66
|
+
reactions: zod_1.z.array(zod_1.z.object({}).passthrough()).default([]),
|
|
67
|
+
views: zod_1.z.number().default(0),
|
|
68
|
+
commentCount: zod_1.z.number().default(0),
|
|
69
|
+
parent: index_1.ConnectionSchema.optional().nullable(),
|
|
70
|
+
pinned: zod_1.z.boolean().default(false),
|
|
71
|
+
});
|
|
72
|
+
exports.ReadPostSchema = ReadPostSchema;
|
|
73
|
+
const ReadPostsSchema = zod_1.z.array(ReadPostSchema);
|
|
74
|
+
exports.ReadPostsSchema = ReadPostsSchema;
|
|
75
|
+
const ListPostsSchema = zod_1.z.array(PostSchema);
|
|
76
|
+
exports.ListPostsSchema = ListPostsSchema;
|
|
77
|
+
const updatePostSchema = zod_1.z.object({
|
|
78
|
+
name: zod_1.z.string().nullable().optional(),
|
|
79
|
+
description: zod_1.z.string().nullable().optional(),
|
|
80
|
+
visibility: index_1.VisibilitySchema.nullable().optional(),
|
|
81
|
+
monetization: index_1.MonetizationSchema.nullable().optional(),
|
|
82
|
+
price: zod_1.z.number().nullable().optional(),
|
|
83
|
+
metadata: zod_1.z
|
|
84
|
+
.object({
|
|
85
|
+
table_name: zod_1.z.string(),
|
|
86
|
+
})
|
|
87
|
+
.passthrough()
|
|
88
|
+
.optional()
|
|
89
|
+
.nullable(),
|
|
90
|
+
preview: zod_1.z.array(zod_1.z.object({}).passthrough()).optional().nullable(),
|
|
91
|
+
last_updated: zod_1.z.string().default(() => new Date().toISOString()),
|
|
92
|
+
});
|
|
93
|
+
exports.updatePostSchema = updatePostSchema;
|
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
user_id: z.ZodString;
|
|
5
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
9
|
+
avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
10
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
11
|
+
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
value: string;
|
|
15
|
+
}, {
|
|
16
|
+
value: string;
|
|
17
|
+
}>, "many">>>;
|
|
18
|
+
last_active: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
id?: string | undefined;
|
|
21
|
+
user_id?: string | undefined;
|
|
22
|
+
avatar_path?: string | null | undefined;
|
|
23
|
+
urls?: {
|
|
24
|
+
value: string;
|
|
25
|
+
}[] | undefined;
|
|
26
|
+
username?: string | null | undefined;
|
|
27
|
+
bio?: string | null | undefined;
|
|
28
|
+
last_active?: string | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
id?: string | undefined;
|
|
31
|
+
user_id?: string | undefined;
|
|
32
|
+
avatar_path?: string | null | undefined;
|
|
33
|
+
urls?: {
|
|
34
|
+
value: string;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
username?: string | null | undefined;
|
|
37
|
+
bio?: string | null | undefined;
|
|
38
|
+
last_active?: string | undefined;
|
|
39
|
+
}>>;
|
|
40
|
+
org_id: z.ZodString;
|
|
41
|
+
organization: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
id: z.ZodOptional<z.ZodString>;
|
|
43
|
+
owner_id: z.ZodOptional<z.ZodString>;
|
|
44
|
+
name: z.ZodOptional<z.ZodString>;
|
|
45
|
+
avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
46
|
+
mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
47
|
+
size: z.ZodOptional<z.ZodString>;
|
|
48
|
+
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
49
|
+
domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
50
|
+
urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
51
|
+
value: z.ZodString;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
value: string;
|
|
54
|
+
}, {
|
|
55
|
+
value: string;
|
|
56
|
+
}>, "many">>>>;
|
|
57
|
+
base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
id?: string | undefined;
|
|
60
|
+
name?: string | undefined;
|
|
61
|
+
size?: string | undefined;
|
|
62
|
+
email?: string | null | undefined;
|
|
63
|
+
owner_id?: string | undefined;
|
|
64
|
+
avatar_path?: string | null | undefined;
|
|
65
|
+
mission?: string | null | undefined;
|
|
66
|
+
domain?: string | null | undefined;
|
|
67
|
+
urls?: {
|
|
68
|
+
value: string;
|
|
69
|
+
}[] | null | undefined;
|
|
70
|
+
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
id?: string | undefined;
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
size?: string | undefined;
|
|
75
|
+
email?: string | null | undefined;
|
|
76
|
+
owner_id?: string | undefined;
|
|
77
|
+
avatar_path?: string | null | undefined;
|
|
78
|
+
mission?: string | null | undefined;
|
|
79
|
+
domain?: string | null | undefined;
|
|
80
|
+
urls?: {
|
|
81
|
+
value: string;
|
|
82
|
+
}[] | null | undefined;
|
|
83
|
+
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
84
|
+
}>>;
|
|
85
|
+
team_id: z.ZodString;
|
|
86
|
+
team: z.ZodOptional<z.ZodObject<{
|
|
87
|
+
id: z.ZodOptional<z.ZodString>;
|
|
88
|
+
org_id: z.ZodOptional<z.ZodString>;
|
|
89
|
+
name: z.ZodOptional<z.ZodString>;
|
|
90
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
91
|
+
default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
|
|
92
|
+
visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
|
|
93
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
id?: string | undefined;
|
|
96
|
+
name?: string | undefined;
|
|
97
|
+
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
98
|
+
description?: string | null | undefined;
|
|
99
|
+
org_id?: string | undefined;
|
|
100
|
+
created_at?: string | undefined;
|
|
101
|
+
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
id?: string | undefined;
|
|
104
|
+
name?: string | undefined;
|
|
105
|
+
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
106
|
+
description?: string | null | undefined;
|
|
107
|
+
org_id?: string | undefined;
|
|
108
|
+
created_at?: string | undefined;
|
|
109
|
+
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
110
|
+
}>>;
|
|
111
|
+
parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
112
|
+
asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
115
|
+
slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
116
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
visibility: z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>;
|
|
118
|
+
monetization: z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>;
|
|
119
|
+
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
120
|
+
unit_cost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
121
|
+
cost_accounting: z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>;
|
|
122
|
+
cost_unit: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
123
|
+
product_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
124
|
+
price_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
125
|
+
metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
126
|
+
preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
127
|
+
created_at: z.ZodString;
|
|
128
|
+
last_updated: z.ZodString;
|
|
129
|
+
}, {
|
|
130
|
+
asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
|
|
131
|
+
}>, "strip", z.ZodTypeAny, {
|
|
132
|
+
id: string;
|
|
133
|
+
name: string;
|
|
134
|
+
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
135
|
+
user_id: string;
|
|
136
|
+
org_id: string;
|
|
137
|
+
asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
138
|
+
created_at: string;
|
|
139
|
+
last_updated: string;
|
|
140
|
+
team_id: string;
|
|
141
|
+
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
142
|
+
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
143
|
+
description?: string | null | undefined;
|
|
144
|
+
user?: {
|
|
145
|
+
id?: string | undefined;
|
|
146
|
+
user_id?: string | undefined;
|
|
147
|
+
avatar_path?: string | null | undefined;
|
|
148
|
+
urls?: {
|
|
149
|
+
value: string;
|
|
150
|
+
}[] | undefined;
|
|
151
|
+
username?: string | null | undefined;
|
|
152
|
+
bio?: string | null | undefined;
|
|
153
|
+
last_active?: string | undefined;
|
|
154
|
+
} | undefined;
|
|
155
|
+
organization?: {
|
|
156
|
+
id?: string | undefined;
|
|
157
|
+
name?: string | undefined;
|
|
158
|
+
size?: string | undefined;
|
|
159
|
+
email?: string | null | undefined;
|
|
160
|
+
owner_id?: string | undefined;
|
|
161
|
+
avatar_path?: string | null | undefined;
|
|
162
|
+
mission?: string | null | undefined;
|
|
163
|
+
domain?: string | null | undefined;
|
|
164
|
+
urls?: {
|
|
165
|
+
value: string;
|
|
166
|
+
}[] | null | undefined;
|
|
167
|
+
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
168
|
+
} | undefined;
|
|
169
|
+
team?: {
|
|
170
|
+
id?: string | undefined;
|
|
171
|
+
name?: string | undefined;
|
|
172
|
+
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
173
|
+
description?: string | null | undefined;
|
|
174
|
+
org_id?: string | undefined;
|
|
175
|
+
created_at?: string | undefined;
|
|
176
|
+
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
parent_id?: string | null | undefined;
|
|
179
|
+
name_url_slug?: string | null | undefined;
|
|
180
|
+
slug?: string | null | undefined;
|
|
181
|
+
price?: number | null | undefined;
|
|
182
|
+
unit_cost?: number | null | undefined;
|
|
183
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
184
|
+
cost_unit?: string | null | undefined;
|
|
185
|
+
product_id?: string | null | undefined;
|
|
186
|
+
price_id?: string | null | undefined;
|
|
187
|
+
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
188
|
+
}, {
|
|
189
|
+
id: string;
|
|
190
|
+
name: string;
|
|
191
|
+
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
192
|
+
user_id: string;
|
|
193
|
+
org_id: string;
|
|
194
|
+
asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
195
|
+
created_at: string;
|
|
196
|
+
last_updated: string;
|
|
197
|
+
team_id: string;
|
|
198
|
+
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
199
|
+
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
200
|
+
description?: string | null | undefined;
|
|
201
|
+
user?: {
|
|
202
|
+
id?: string | undefined;
|
|
203
|
+
user_id?: string | undefined;
|
|
204
|
+
avatar_path?: string | null | undefined;
|
|
205
|
+
urls?: {
|
|
206
|
+
value: string;
|
|
207
|
+
}[] | undefined;
|
|
208
|
+
username?: string | null | undefined;
|
|
209
|
+
bio?: string | null | undefined;
|
|
210
|
+
last_active?: string | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
organization?: {
|
|
213
|
+
id?: string | undefined;
|
|
214
|
+
name?: string | undefined;
|
|
215
|
+
size?: string | undefined;
|
|
216
|
+
email?: string | null | undefined;
|
|
217
|
+
owner_id?: string | undefined;
|
|
218
|
+
avatar_path?: string | null | undefined;
|
|
219
|
+
mission?: string | null | undefined;
|
|
220
|
+
domain?: string | null | undefined;
|
|
221
|
+
urls?: {
|
|
222
|
+
value: string;
|
|
223
|
+
}[] | null | undefined;
|
|
224
|
+
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
225
|
+
} | undefined;
|
|
226
|
+
team?: {
|
|
227
|
+
id?: string | undefined;
|
|
228
|
+
name?: string | undefined;
|
|
229
|
+
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
230
|
+
description?: string | null | undefined;
|
|
231
|
+
org_id?: string | undefined;
|
|
232
|
+
created_at?: string | undefined;
|
|
233
|
+
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
234
|
+
} | undefined;
|
|
235
|
+
parent_id?: string | null | undefined;
|
|
236
|
+
name_url_slug?: string | null | undefined;
|
|
237
|
+
slug?: string | null | undefined;
|
|
238
|
+
price?: number | null | undefined;
|
|
239
|
+
unit_cost?: number | null | undefined;
|
|
240
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
241
|
+
cost_unit?: string | null | undefined;
|
|
242
|
+
product_id?: string | null | undefined;
|
|
243
|
+
price_id?: string | null | undefined;
|
|
244
|
+
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
245
|
+
}>;
|
|
246
|
+
declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
247
|
+
id: z.ZodOptional<z.ZodString>;
|
|
248
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
249
|
+
user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
250
|
+
id: z.ZodOptional<z.ZodString>;
|
|
251
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
252
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
253
|
+
avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
254
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
255
|
+
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
256
|
+
value: z.ZodString;
|
|
257
|
+
}, "strip", z.ZodTypeAny, {
|
|
258
|
+
value: string;
|
|
259
|
+
}, {
|
|
260
|
+
value: string;
|
|
261
|
+
}>, "many">>>;
|
|
262
|
+
last_active: z.ZodOptional<z.ZodString>;
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
id?: string | undefined;
|
|
265
|
+
user_id?: string | undefined;
|
|
266
|
+
avatar_path?: string | null | undefined;
|
|
267
|
+
urls?: {
|
|
268
|
+
value: string;
|
|
269
|
+
}[] | undefined;
|
|
270
|
+
username?: string | null | undefined;
|
|
271
|
+
bio?: string | null | undefined;
|
|
272
|
+
last_active?: string | undefined;
|
|
273
|
+
}, {
|
|
274
|
+
id?: string | undefined;
|
|
275
|
+
user_id?: string | undefined;
|
|
276
|
+
avatar_path?: string | null | undefined;
|
|
277
|
+
urls?: {
|
|
278
|
+
value: string;
|
|
279
|
+
}[] | undefined;
|
|
280
|
+
username?: string | null | undefined;
|
|
281
|
+
bio?: string | null | undefined;
|
|
282
|
+
last_active?: string | undefined;
|
|
283
|
+
}>>>;
|
|
284
|
+
org_id: z.ZodOptional<z.ZodString>;
|
|
285
|
+
organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
286
|
+
id: z.ZodOptional<z.ZodString>;
|
|
287
|
+
owner_id: z.ZodOptional<z.ZodString>;
|
|
288
|
+
name: z.ZodOptional<z.ZodString>;
|
|
289
|
+
avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
290
|
+
mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
291
|
+
size: z.ZodOptional<z.ZodString>;
|
|
292
|
+
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
293
|
+
domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
294
|
+
urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
295
|
+
value: z.ZodString;
|
|
296
|
+
}, "strip", z.ZodTypeAny, {
|
|
297
|
+
value: string;
|
|
298
|
+
}, {
|
|
299
|
+
value: string;
|
|
300
|
+
}>, "many">>>>;
|
|
301
|
+
base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
|
|
302
|
+
}, "strip", z.ZodTypeAny, {
|
|
303
|
+
id?: string | undefined;
|
|
304
|
+
name?: string | undefined;
|
|
305
|
+
size?: string | undefined;
|
|
306
|
+
email?: string | null | undefined;
|
|
307
|
+
owner_id?: string | undefined;
|
|
308
|
+
avatar_path?: string | null | undefined;
|
|
309
|
+
mission?: string | null | undefined;
|
|
310
|
+
domain?: string | null | undefined;
|
|
311
|
+
urls?: {
|
|
312
|
+
value: string;
|
|
313
|
+
}[] | null | undefined;
|
|
314
|
+
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
315
|
+
}, {
|
|
316
|
+
id?: string | undefined;
|
|
317
|
+
name?: string | undefined;
|
|
318
|
+
size?: string | undefined;
|
|
319
|
+
email?: string | null | undefined;
|
|
320
|
+
owner_id?: string | undefined;
|
|
321
|
+
avatar_path?: string | null | undefined;
|
|
322
|
+
mission?: string | null | undefined;
|
|
323
|
+
domain?: string | null | undefined;
|
|
324
|
+
urls?: {
|
|
325
|
+
value: string;
|
|
326
|
+
}[] | null | undefined;
|
|
327
|
+
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
328
|
+
}>>>;
|
|
329
|
+
team_id: z.ZodOptional<z.ZodString>;
|
|
330
|
+
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
331
|
+
id: z.ZodOptional<z.ZodString>;
|
|
332
|
+
org_id: z.ZodOptional<z.ZodString>;
|
|
333
|
+
name: z.ZodOptional<z.ZodString>;
|
|
334
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
335
|
+
default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
|
|
336
|
+
visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
|
|
337
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
338
|
+
}, "strip", z.ZodTypeAny, {
|
|
339
|
+
id?: string | undefined;
|
|
340
|
+
name?: string | undefined;
|
|
341
|
+
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
342
|
+
description?: string | null | undefined;
|
|
343
|
+
org_id?: string | undefined;
|
|
344
|
+
created_at?: string | undefined;
|
|
345
|
+
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
346
|
+
}, {
|
|
347
|
+
id?: string | undefined;
|
|
348
|
+
name?: string | undefined;
|
|
349
|
+
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
350
|
+
description?: string | null | undefined;
|
|
351
|
+
org_id?: string | undefined;
|
|
352
|
+
created_at?: string | undefined;
|
|
353
|
+
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
354
|
+
}>>>;
|
|
355
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
356
|
+
name: z.ZodOptional<z.ZodString>;
|
|
357
|
+
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
358
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
359
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
360
|
+
visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
|
|
361
|
+
monetization: z.ZodOptional<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
|
|
362
|
+
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
363
|
+
unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
364
|
+
cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>>;
|
|
365
|
+
cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
366
|
+
product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
367
|
+
price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
368
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
|
|
369
|
+
preview: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>>;
|
|
370
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
371
|
+
last_updated: z.ZodOptional<z.ZodString>;
|
|
372
|
+
asset_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">>;
|
|
373
|
+
}, {
|
|
374
|
+
id: z.ZodDefault<z.ZodString>;
|
|
375
|
+
team_id: z.ZodDefault<z.ZodString>;
|
|
376
|
+
org_id: z.ZodDefault<z.ZodString>;
|
|
377
|
+
name_url_slug: z.ZodString;
|
|
378
|
+
metadata: z.ZodObject<{
|
|
379
|
+
edges: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
380
|
+
nodes: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
381
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
382
|
+
edges: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
383
|
+
nodes: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
384
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
385
|
+
edges: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
386
|
+
nodes: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
387
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
388
|
+
}>, "strip", z.ZodTypeAny, {
|
|
389
|
+
id: string;
|
|
390
|
+
metadata: {
|
|
391
|
+
edges: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
392
|
+
nodes: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
393
|
+
} & {
|
|
394
|
+
[k: string]: unknown;
|
|
395
|
+
};
|
|
396
|
+
org_id: string;
|
|
397
|
+
team_id: string;
|
|
398
|
+
name_url_slug: string;
|
|
399
|
+
name?: string | undefined;
|
|
400
|
+
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
401
|
+
description?: string | null | undefined;
|
|
402
|
+
user?: {
|
|
403
|
+
id?: string | undefined;
|
|
404
|
+
user_id?: string | undefined;
|
|
405
|
+
avatar_path?: string | null | undefined;
|
|
406
|
+
urls?: {
|
|
407
|
+
value: string;
|
|
408
|
+
}[] | undefined;
|
|
409
|
+
username?: string | null | undefined;
|
|
410
|
+
bio?: string | null | undefined;
|
|
411
|
+
last_active?: string | undefined;
|
|
412
|
+
} | undefined;
|
|
413
|
+
organization?: {
|
|
414
|
+
id?: string | undefined;
|
|
415
|
+
name?: string | undefined;
|
|
416
|
+
size?: string | undefined;
|
|
417
|
+
email?: string | null | undefined;
|
|
418
|
+
owner_id?: string | undefined;
|
|
419
|
+
avatar_path?: string | null | undefined;
|
|
420
|
+
mission?: string | null | undefined;
|
|
421
|
+
domain?: string | null | undefined;
|
|
422
|
+
urls?: {
|
|
423
|
+
value: string;
|
|
424
|
+
}[] | null | undefined;
|
|
425
|
+
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
426
|
+
} | undefined;
|
|
427
|
+
team?: {
|
|
428
|
+
id?: string | undefined;
|
|
429
|
+
name?: string | undefined;
|
|
430
|
+
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
431
|
+
description?: string | null | undefined;
|
|
432
|
+
org_id?: string | undefined;
|
|
433
|
+
created_at?: string | undefined;
|
|
434
|
+
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
435
|
+
} | undefined;
|
|
436
|
+
user_id?: string | undefined;
|
|
437
|
+
asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
438
|
+
created_at?: string | undefined;
|
|
439
|
+
last_updated?: string | undefined;
|
|
440
|
+
parent_id?: string | null | undefined;
|
|
441
|
+
slug?: string | null | undefined;
|
|
442
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
443
|
+
price?: number | null | undefined;
|
|
444
|
+
unit_cost?: number | null | undefined;
|
|
445
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
446
|
+
cost_unit?: string | null | undefined;
|
|
447
|
+
product_id?: string | null | undefined;
|
|
448
|
+
price_id?: string | null | undefined;
|
|
449
|
+
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
450
|
+
}, {
|
|
451
|
+
metadata: {
|
|
452
|
+
edges: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
453
|
+
nodes: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
454
|
+
} & {
|
|
455
|
+
[k: string]: unknown;
|
|
456
|
+
};
|
|
457
|
+
name_url_slug: string;
|
|
458
|
+
id?: string | undefined;
|
|
459
|
+
name?: string | undefined;
|
|
460
|
+
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
461
|
+
description?: string | null | undefined;
|
|
462
|
+
user?: {
|
|
463
|
+
id?: string | undefined;
|
|
464
|
+
user_id?: string | undefined;
|
|
465
|
+
avatar_path?: string | null | undefined;
|
|
466
|
+
urls?: {
|
|
467
|
+
value: string;
|
|
468
|
+
}[] | undefined;
|
|
469
|
+
username?: string | null | undefined;
|
|
470
|
+
bio?: string | null | undefined;
|
|
471
|
+
last_active?: string | undefined;
|
|
472
|
+
} | undefined;
|
|
473
|
+
organization?: {
|
|
474
|
+
id?: string | undefined;
|
|
475
|
+
name?: string | undefined;
|
|
476
|
+
size?: string | undefined;
|
|
477
|
+
email?: string | null | undefined;
|
|
478
|
+
owner_id?: string | undefined;
|
|
479
|
+
avatar_path?: string | null | undefined;
|
|
480
|
+
mission?: string | null | undefined;
|
|
481
|
+
domain?: string | null | undefined;
|
|
482
|
+
urls?: {
|
|
483
|
+
value: string;
|
|
484
|
+
}[] | null | undefined;
|
|
485
|
+
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
486
|
+
} | undefined;
|
|
487
|
+
team?: {
|
|
488
|
+
id?: string | undefined;
|
|
489
|
+
name?: string | undefined;
|
|
490
|
+
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
491
|
+
description?: string | null | undefined;
|
|
492
|
+
org_id?: string | undefined;
|
|
493
|
+
created_at?: string | undefined;
|
|
494
|
+
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
495
|
+
} | undefined;
|
|
496
|
+
user_id?: string | undefined;
|
|
497
|
+
org_id?: string | undefined;
|
|
498
|
+
asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
499
|
+
created_at?: string | undefined;
|
|
500
|
+
last_updated?: string | undefined;
|
|
501
|
+
team_id?: string | undefined;
|
|
502
|
+
parent_id?: string | null | undefined;
|
|
503
|
+
slug?: string | null | undefined;
|
|
504
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
505
|
+
price?: number | null | undefined;
|
|
506
|
+
unit_cost?: number | null | undefined;
|
|
507
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
508
|
+
cost_unit?: string | null | undefined;
|
|
509
|
+
product_id?: string | null | undefined;
|
|
510
|
+
price_id?: string | null | undefined;
|
|
511
|
+
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
512
|
+
}>;
|
|
513
|
+
declare const UpdateReplicationSchema: z.ZodObject<{
|
|
514
|
+
team_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
515
|
+
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
516
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
517
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
518
|
+
visibility: z.ZodOptional<z.ZodNullable<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
|
|
519
|
+
metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
520
|
+
last_updated: z.ZodDefault<z.ZodString>;
|
|
521
|
+
}, "strip", z.ZodTypeAny, {
|
|
522
|
+
last_updated: string;
|
|
523
|
+
name?: string | null | undefined;
|
|
524
|
+
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | null | undefined;
|
|
525
|
+
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
526
|
+
description?: string | null | undefined;
|
|
527
|
+
team_id?: string | null | undefined;
|
|
528
|
+
name_url_slug?: string | null | undefined;
|
|
529
|
+
}, {
|
|
530
|
+
name?: string | null | undefined;
|
|
531
|
+
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | null | undefined;
|
|
532
|
+
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
533
|
+
description?: string | null | undefined;
|
|
534
|
+
last_updated?: string | undefined;
|
|
535
|
+
team_id?: string | null | undefined;
|
|
536
|
+
name_url_slug?: string | null | undefined;
|
|
537
|
+
}>;
|
|
538
|
+
type Replication = z.infer<typeof ReplicationSchema>;
|
|
539
|
+
type CreateReplication = z.infer<typeof CreateReplicationSchema>;
|
|
540
|
+
type UpdateReplication = z.infer<typeof UpdateReplicationSchema>;
|
|
541
|
+
export { ReplicationSchema, CreateReplicationSchema, UpdateReplicationSchema, type Replication, type CreateReplication, type UpdateReplication, };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateReplicationSchema = exports.CreateReplicationSchema = exports.ReplicationSchema = void 0;
|
|
4
|
+
const uuidv7_1 = require("uuidv7");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const assets_1 = require("@/schema/assets");
|
|
7
|
+
const index_1 = require("@/schema/index");
|
|
8
|
+
const ReplicationSchema = assets_1.AssetSchema.extend({
|
|
9
|
+
asset_type: index_1.AssetTypeSchema.refine((val) => val === "replication"),
|
|
10
|
+
});
|
|
11
|
+
exports.ReplicationSchema = ReplicationSchema;
|
|
12
|
+
const CreateReplicationSchema = ReplicationSchema.partial().extend({
|
|
13
|
+
id: zod_1.z
|
|
14
|
+
.string()
|
|
15
|
+
.uuid()
|
|
16
|
+
.default(() => (0, uuidv7_1.uuidv7)()),
|
|
17
|
+
team_id: zod_1.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),
|
|
18
|
+
org_id: zod_1.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),
|
|
19
|
+
name_url_slug: zod_1.z.string(),
|
|
20
|
+
metadata: zod_1.z
|
|
21
|
+
.object({
|
|
22
|
+
edges: zod_1.z.array(zod_1.z.object({}).passthrough()),
|
|
23
|
+
nodes: zod_1.z.array(zod_1.z.object({}).passthrough()),
|
|
24
|
+
})
|
|
25
|
+
.passthrough(),
|
|
26
|
+
});
|
|
27
|
+
exports.CreateReplicationSchema = CreateReplicationSchema;
|
|
28
|
+
const UpdateReplicationSchema = zod_1.z.object({
|
|
29
|
+
team_id: zod_1.z.string().uuid().nullable().optional(),
|
|
30
|
+
name_url_slug: zod_1.z.string().nullable().optional(),
|
|
31
|
+
name: zod_1.z.string().nullable().optional(),
|
|
32
|
+
description: zod_1.z.string().nullable().optional(),
|
|
33
|
+
visibility: index_1.VisibilitySchema.nullable().optional(),
|
|
34
|
+
metadata: zod_1.z.object({}).passthrough().optional().nullable(),
|
|
35
|
+
last_updated: zod_1.z.string().default(() => new Date().toISOString()),
|
|
36
|
+
});
|
|
37
|
+
exports.UpdateReplicationSchema = UpdateReplicationSchema;
|