@ourofoundation/ouro-js 1.1.1 → 1.1.3
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/index.d.ts +18 -19
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +2 -81
- package/dist/index.js.map +1 -1
- package/dist/schema/assets.d.ts +111 -100
- package/dist/schema/assets.esm.js +2 -0
- package/dist/schema/assets.esm.js.map +1 -0
- package/dist/schema/assets.js +2 -95
- package/dist/schema/assets.js.map +1 -1
- package/dist/schema/blueprints.d.ts +105 -95
- package/dist/schema/blueprints.esm.js +2 -0
- package/dist/schema/blueprints.esm.js.map +1 -0
- package/dist/schema/blueprints.js +2 -38
- package/dist/schema/blueprints.js.map +1 -1
- package/dist/schema/comments.d.ts +91 -81
- package/dist/schema/comments.esm.js +2 -0
- package/dist/schema/comments.esm.js.map +1 -0
- package/dist/schema/comments.js +2 -32
- package/dist/schema/comments.js.map +1 -1
- package/dist/schema/common.d.ts +32 -32
- package/dist/schema/common.esm.js +2 -0
- package/dist/schema/common.esm.js.map +1 -0
- package/dist/schema/common.js +2 -87
- package/dist/schema/common.js.map +1 -1
- package/dist/schema/conversations.d.ts +149 -139
- package/dist/schema/conversations.esm.js +2 -0
- package/dist/schema/conversations.esm.js.map +1 -0
- package/dist/schema/conversations.js +2 -54
- package/dist/schema/conversations.js.map +1 -1
- package/dist/schema/datasets.d.ts +218 -202
- package/dist/schema/datasets.esm.js +2 -0
- package/dist/schema/datasets.esm.js.map +1 -0
- package/dist/schema/datasets.js +2 -49
- package/dist/schema/datasets.js.map +1 -1
- package/dist/schema/files.d.ts +201 -185
- package/dist/schema/files.esm.js +2 -0
- package/dist/schema/files.esm.js.map +1 -0
- package/dist/schema/files.js +2 -50
- package/dist/schema/files.js.map +1 -1
- package/dist/schema/index.d.ts +14 -80
- package/dist/schema/notifications.d.ts +22 -22
- package/dist/schema/notifications.esm.js +2 -0
- package/dist/schema/notifications.esm.js.map +1 -0
- package/dist/schema/notifications.js +2 -46
- package/dist/schema/notifications.js.map +1 -1
- package/dist/schema/organizations.d.ts +11 -11
- package/dist/schema/organizations.esm.js +2 -0
- package/dist/schema/organizations.esm.js.map +1 -0
- package/dist/schema/organizations.js +2 -33
- package/dist/schema/organizations.js.map +1 -1
- package/dist/schema/posts.d.ts +326 -298
- package/dist/schema/posts.esm.js +2 -0
- package/dist/schema/posts.esm.js.map +1 -0
- package/dist/schema/posts.js +2 -81
- package/dist/schema/posts.js.map +1 -1
- package/dist/schema/replications.d.ts +125 -115
- package/dist/schema/replications.esm.js +2 -0
- package/dist/schema/replications.esm.js.map +1 -0
- package/dist/schema/replications.js +2 -42
- package/dist/schema/replications.js.map +1 -1
- package/dist/schema/services.d.ts +14 -14
- package/dist/schema/services.esm.js +2 -0
- package/dist/schema/services.esm.js.map +1 -0
- package/dist/schema/services.js +2 -39
- package/dist/schema/services.js.map +1 -1
- package/dist/schema/teams.d.ts +99 -85
- package/dist/schema/teams.esm.js +2 -0
- package/dist/schema/teams.esm.js.map +1 -0
- package/dist/schema/teams.js +2 -57
- package/dist/schema/teams.js.map +1 -1
- package/dist/schema/users.d.ts +13 -4
- package/dist/schema/users.esm.js +2 -0
- package/dist/schema/users.esm.js.map +1 -0
- package/dist/schema/users.js +2 -35
- package/dist/schema/users.js.map +1 -1
- package/dist/types/index.d.ts +14 -0
- package/dist/utils/air/index.d.ts +1 -1
- package/dist/utils/air/index.esm.js +2 -0
- package/dist/utils/air/index.esm.js.map +1 -0
- package/dist/utils/air/index.js +2 -51
- package/dist/utils/air/index.js.map +1 -1
- package/dist/utils/air/markdown-parser.esm.js +2 -0
- package/dist/utils/air/markdown-parser.esm.js.map +1 -0
- package/dist/utils/air/markdown-parser.js +2 -118
- package/dist/utils/air/markdown-parser.js.map +1 -1
- package/dist/utils/dataset.esm.js +2 -0
- package/dist/utils/dataset.esm.js.map +1 -0
- package/dist/utils/dataset.js +2 -19
- package/dist/utils/dataset.js.map +1 -1
- package/dist/utils/navigate.esm.js +2 -0
- package/dist/utils/navigate.esm.js.map +1 -0
- package/dist/utils/navigate.js +2 -56
- package/dist/utils/navigate.js.map +1 -1
- package/package.json +21 -4
- package/rollup.config.js +52 -0
|
@@ -15,6 +15,7 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
15
15
|
}, {
|
|
16
16
|
value: string;
|
|
17
17
|
}>, "many">>>;
|
|
18
|
+
post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
18
19
|
last_active: z.ZodOptional<z.ZodString>;
|
|
19
20
|
}, "strip", z.ZodTypeAny, {
|
|
20
21
|
id?: string | undefined;
|
|
@@ -25,6 +26,7 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
25
26
|
}[] | undefined;
|
|
26
27
|
username?: string | null | undefined;
|
|
27
28
|
bio?: string | null | undefined;
|
|
29
|
+
post_id?: string | null | undefined;
|
|
28
30
|
last_active?: string | undefined;
|
|
29
31
|
}, {
|
|
30
32
|
id?: string | undefined;
|
|
@@ -35,6 +37,7 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
35
37
|
}[] | undefined;
|
|
36
38
|
username?: string | null | undefined;
|
|
37
39
|
bio?: string | null | undefined;
|
|
40
|
+
post_id?: string | null | undefined;
|
|
38
41
|
last_active?: string | undefined;
|
|
39
42
|
}>>;
|
|
40
43
|
org_id: z.ZodString;
|
|
@@ -57,27 +60,27 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
57
60
|
}, "strip", z.ZodTypeAny, {
|
|
58
61
|
id?: string | undefined;
|
|
59
62
|
name?: string | undefined;
|
|
60
|
-
size?: string | undefined;
|
|
61
|
-
email?: string | null | undefined;
|
|
62
63
|
avatar_path?: string | null | undefined;
|
|
63
64
|
mission?: string | null | undefined;
|
|
65
|
+
size?: string | undefined;
|
|
66
|
+
email?: string | null | undefined;
|
|
64
67
|
domain?: string | null | undefined;
|
|
65
68
|
urls?: {
|
|
66
69
|
value: string;
|
|
67
70
|
}[] | null | undefined;
|
|
68
|
-
base_role?: "
|
|
71
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
69
72
|
}, {
|
|
70
73
|
id?: string | undefined;
|
|
71
74
|
name?: string | undefined;
|
|
72
|
-
size?: string | undefined;
|
|
73
|
-
email?: string | null | undefined;
|
|
74
75
|
avatar_path?: string | null | undefined;
|
|
75
76
|
mission?: string | null | undefined;
|
|
77
|
+
size?: string | undefined;
|
|
78
|
+
email?: string | null | undefined;
|
|
76
79
|
domain?: string | null | undefined;
|
|
77
80
|
urls?: {
|
|
78
81
|
value: string;
|
|
79
82
|
}[] | null | undefined;
|
|
80
|
-
base_role?: "
|
|
83
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
81
84
|
}>>;
|
|
82
85
|
team_id: z.ZodString;
|
|
83
86
|
team: z.ZodOptional<z.ZodObject<{
|
|
@@ -90,20 +93,20 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
90
93
|
created_at: z.ZodOptional<z.ZodString>;
|
|
91
94
|
}, "strip", z.ZodTypeAny, {
|
|
92
95
|
id?: string | undefined;
|
|
93
|
-
name?: string | undefined;
|
|
94
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
95
|
-
description?: string | null | undefined;
|
|
96
96
|
org_id?: string | undefined;
|
|
97
97
|
created_at?: string | undefined;
|
|
98
|
-
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
id?: string | undefined;
|
|
101
98
|
name?: string | undefined;
|
|
102
|
-
visibility?: "
|
|
99
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
103
100
|
description?: string | null | undefined;
|
|
101
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
id?: string | undefined;
|
|
104
104
|
org_id?: string | undefined;
|
|
105
105
|
created_at?: string | undefined;
|
|
106
|
-
|
|
106
|
+
name?: string | undefined;
|
|
107
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
108
|
+
description?: string | null | undefined;
|
|
109
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
107
110
|
}>>;
|
|
108
111
|
parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
109
112
|
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -139,23 +142,19 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
139
142
|
}>>>>;
|
|
140
143
|
}>, "strip", z.ZodTypeAny, {
|
|
141
144
|
id: string;
|
|
142
|
-
name: string;
|
|
143
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
144
145
|
user_id: string;
|
|
145
146
|
org_id: string;
|
|
146
147
|
asset_type: "comment";
|
|
147
148
|
created_at: string;
|
|
148
149
|
last_updated: string;
|
|
150
|
+
name: string;
|
|
149
151
|
team_id: string;
|
|
152
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
150
153
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
151
154
|
preview: {
|
|
152
155
|
type: string;
|
|
153
156
|
content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
154
157
|
} | null;
|
|
155
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
156
|
-
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
157
|
-
description?: string | null | undefined;
|
|
158
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
159
158
|
user?: {
|
|
160
159
|
id?: string | undefined;
|
|
161
160
|
user_id?: string | undefined;
|
|
@@ -165,31 +164,35 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
165
164
|
}[] | undefined;
|
|
166
165
|
username?: string | null | undefined;
|
|
167
166
|
bio?: string | null | undefined;
|
|
167
|
+
post_id?: string | null | undefined;
|
|
168
168
|
last_active?: string | undefined;
|
|
169
169
|
} | undefined;
|
|
170
170
|
organization?: {
|
|
171
171
|
id?: string | undefined;
|
|
172
172
|
name?: string | undefined;
|
|
173
|
-
size?: string | undefined;
|
|
174
|
-
email?: string | null | undefined;
|
|
175
173
|
avatar_path?: string | null | undefined;
|
|
176
174
|
mission?: string | null | undefined;
|
|
175
|
+
size?: string | undefined;
|
|
176
|
+
email?: string | null | undefined;
|
|
177
177
|
domain?: string | null | undefined;
|
|
178
178
|
urls?: {
|
|
179
179
|
value: string;
|
|
180
180
|
}[] | null | undefined;
|
|
181
|
-
base_role?: "
|
|
181
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
182
182
|
} | undefined;
|
|
183
183
|
team?: {
|
|
184
184
|
id?: string | undefined;
|
|
185
|
-
name?: string | undefined;
|
|
186
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
187
|
-
description?: string | null | undefined;
|
|
188
185
|
org_id?: string | undefined;
|
|
189
186
|
created_at?: string | undefined;
|
|
190
|
-
|
|
187
|
+
name?: string | undefined;
|
|
188
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
189
|
+
description?: string | null | undefined;
|
|
190
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
191
191
|
} | undefined;
|
|
192
|
+
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
193
|
+
description?: string | null | undefined;
|
|
192
194
|
parent_id?: string | null | undefined;
|
|
195
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
193
196
|
name_url_slug?: string | null | undefined;
|
|
194
197
|
slug?: string | null | undefined;
|
|
195
198
|
price?: number | null | undefined;
|
|
@@ -198,20 +201,17 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
198
201
|
cost_unit?: string | null | undefined;
|
|
199
202
|
product_id?: string | null | undefined;
|
|
200
203
|
price_id?: string | null | undefined;
|
|
204
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
201
205
|
}, {
|
|
202
206
|
id: string;
|
|
203
|
-
name: string;
|
|
204
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
205
207
|
user_id: string;
|
|
206
208
|
org_id: string;
|
|
207
209
|
created_at: string;
|
|
208
210
|
last_updated: string;
|
|
211
|
+
name: string;
|
|
209
212
|
team_id: string;
|
|
213
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
210
214
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
211
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
212
|
-
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
213
|
-
description?: string | null | undefined;
|
|
214
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
215
215
|
user?: {
|
|
216
216
|
id?: string | undefined;
|
|
217
217
|
user_id?: string | undefined;
|
|
@@ -221,32 +221,36 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
221
221
|
}[] | undefined;
|
|
222
222
|
username?: string | null | undefined;
|
|
223
223
|
bio?: string | null | undefined;
|
|
224
|
+
post_id?: string | null | undefined;
|
|
224
225
|
last_active?: string | undefined;
|
|
225
226
|
} | undefined;
|
|
226
227
|
organization?: {
|
|
227
228
|
id?: string | undefined;
|
|
228
229
|
name?: string | undefined;
|
|
229
|
-
size?: string | undefined;
|
|
230
|
-
email?: string | null | undefined;
|
|
231
230
|
avatar_path?: string | null | undefined;
|
|
232
231
|
mission?: string | null | undefined;
|
|
232
|
+
size?: string | undefined;
|
|
233
|
+
email?: string | null | undefined;
|
|
233
234
|
domain?: string | null | undefined;
|
|
234
235
|
urls?: {
|
|
235
236
|
value: string;
|
|
236
237
|
}[] | null | undefined;
|
|
237
|
-
base_role?: "
|
|
238
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
238
239
|
} | undefined;
|
|
239
240
|
team?: {
|
|
240
241
|
id?: string | undefined;
|
|
241
|
-
name?: string | undefined;
|
|
242
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
243
|
-
description?: string | null | undefined;
|
|
244
242
|
org_id?: string | undefined;
|
|
245
243
|
created_at?: string | undefined;
|
|
246
|
-
|
|
244
|
+
name?: string | undefined;
|
|
245
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
246
|
+
description?: string | null | undefined;
|
|
247
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
247
248
|
} | undefined;
|
|
248
249
|
asset_type?: "comment" | undefined;
|
|
250
|
+
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
251
|
+
description?: string | null | undefined;
|
|
249
252
|
parent_id?: string | null | undefined;
|
|
253
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
250
254
|
name_url_slug?: string | null | undefined;
|
|
251
255
|
slug?: string | null | undefined;
|
|
252
256
|
price?: number | null | undefined;
|
|
@@ -259,6 +263,7 @@ declare const CommentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
259
263
|
type: string;
|
|
260
264
|
content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
261
265
|
} | null | undefined;
|
|
266
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
262
267
|
}>;
|
|
263
268
|
declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
264
269
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -276,6 +281,7 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
276
281
|
}, {
|
|
277
282
|
value: string;
|
|
278
283
|
}>, "many">>>;
|
|
284
|
+
post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
279
285
|
last_active: z.ZodOptional<z.ZodString>;
|
|
280
286
|
}, "strip", z.ZodTypeAny, {
|
|
281
287
|
id?: string | undefined;
|
|
@@ -286,6 +292,7 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
286
292
|
}[] | undefined;
|
|
287
293
|
username?: string | null | undefined;
|
|
288
294
|
bio?: string | null | undefined;
|
|
295
|
+
post_id?: string | null | undefined;
|
|
289
296
|
last_active?: string | undefined;
|
|
290
297
|
}, {
|
|
291
298
|
id?: string | undefined;
|
|
@@ -296,6 +303,7 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
296
303
|
}[] | undefined;
|
|
297
304
|
username?: string | null | undefined;
|
|
298
305
|
bio?: string | null | undefined;
|
|
306
|
+
post_id?: string | null | undefined;
|
|
299
307
|
last_active?: string | undefined;
|
|
300
308
|
}>>>;
|
|
301
309
|
org_id: z.ZodOptional<z.ZodString>;
|
|
@@ -318,27 +326,27 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
318
326
|
}, "strip", z.ZodTypeAny, {
|
|
319
327
|
id?: string | undefined;
|
|
320
328
|
name?: string | undefined;
|
|
321
|
-
size?: string | undefined;
|
|
322
|
-
email?: string | null | undefined;
|
|
323
329
|
avatar_path?: string | null | undefined;
|
|
324
330
|
mission?: string | null | undefined;
|
|
331
|
+
size?: string | undefined;
|
|
332
|
+
email?: string | null | undefined;
|
|
325
333
|
domain?: string | null | undefined;
|
|
326
334
|
urls?: {
|
|
327
335
|
value: string;
|
|
328
336
|
}[] | null | undefined;
|
|
329
|
-
base_role?: "
|
|
337
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
330
338
|
}, {
|
|
331
339
|
id?: string | undefined;
|
|
332
340
|
name?: string | undefined;
|
|
333
|
-
size?: string | undefined;
|
|
334
|
-
email?: string | null | undefined;
|
|
335
341
|
avatar_path?: string | null | undefined;
|
|
336
342
|
mission?: string | null | undefined;
|
|
343
|
+
size?: string | undefined;
|
|
344
|
+
email?: string | null | undefined;
|
|
337
345
|
domain?: string | null | undefined;
|
|
338
346
|
urls?: {
|
|
339
347
|
value: string;
|
|
340
348
|
}[] | null | undefined;
|
|
341
|
-
base_role?: "
|
|
349
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
342
350
|
}>>>;
|
|
343
351
|
team_id: z.ZodOptional<z.ZodString>;
|
|
344
352
|
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -351,20 +359,20 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
351
359
|
created_at: z.ZodOptional<z.ZodString>;
|
|
352
360
|
}, "strip", z.ZodTypeAny, {
|
|
353
361
|
id?: string | undefined;
|
|
354
|
-
name?: string | undefined;
|
|
355
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
356
|
-
description?: string | null | undefined;
|
|
357
362
|
org_id?: string | undefined;
|
|
358
363
|
created_at?: string | undefined;
|
|
359
|
-
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
360
|
-
}, {
|
|
361
|
-
id?: string | undefined;
|
|
362
364
|
name?: string | undefined;
|
|
363
|
-
visibility?: "
|
|
365
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
364
366
|
description?: string | null | undefined;
|
|
367
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
368
|
+
}, {
|
|
369
|
+
id?: string | undefined;
|
|
365
370
|
org_id?: string | undefined;
|
|
366
371
|
created_at?: string | undefined;
|
|
367
|
-
|
|
372
|
+
name?: string | undefined;
|
|
373
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
374
|
+
description?: string | null | undefined;
|
|
375
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
368
376
|
}>>>;
|
|
369
377
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
370
378
|
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
@@ -403,15 +411,10 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
403
411
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
404
412
|
}>, "strip", z.ZodTypeAny, {
|
|
405
413
|
id: string;
|
|
406
|
-
name: string;
|
|
407
414
|
asset_type: "comment";
|
|
408
415
|
created_at: string;
|
|
409
416
|
last_updated: string;
|
|
410
|
-
|
|
411
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
412
|
-
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
413
|
-
description?: string | null | undefined;
|
|
414
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
417
|
+
name: string;
|
|
415
418
|
user?: {
|
|
416
419
|
id?: string | undefined;
|
|
417
420
|
user_id?: string | undefined;
|
|
@@ -421,33 +424,38 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
421
424
|
}[] | undefined;
|
|
422
425
|
username?: string | null | undefined;
|
|
423
426
|
bio?: string | null | undefined;
|
|
427
|
+
post_id?: string | null | undefined;
|
|
424
428
|
last_active?: string | undefined;
|
|
425
429
|
} | undefined;
|
|
426
430
|
organization?: {
|
|
427
431
|
id?: string | undefined;
|
|
428
432
|
name?: string | undefined;
|
|
429
|
-
size?: string | undefined;
|
|
430
|
-
email?: string | null | undefined;
|
|
431
433
|
avatar_path?: string | null | undefined;
|
|
432
434
|
mission?: string | null | undefined;
|
|
435
|
+
size?: string | undefined;
|
|
436
|
+
email?: string | null | undefined;
|
|
433
437
|
domain?: string | null | undefined;
|
|
434
438
|
urls?: {
|
|
435
439
|
value: string;
|
|
436
440
|
}[] | null | undefined;
|
|
437
|
-
base_role?: "
|
|
441
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
438
442
|
} | undefined;
|
|
439
443
|
team?: {
|
|
440
444
|
id?: string | undefined;
|
|
441
|
-
name?: string | undefined;
|
|
442
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
443
|
-
description?: string | null | undefined;
|
|
444
445
|
org_id?: string | undefined;
|
|
445
446
|
created_at?: string | undefined;
|
|
446
|
-
|
|
447
|
+
name?: string | undefined;
|
|
448
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
449
|
+
description?: string | null | undefined;
|
|
450
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
447
451
|
} | undefined;
|
|
448
452
|
org_id?: string | undefined;
|
|
453
|
+
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
449
454
|
team_id?: string | undefined;
|
|
455
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
456
|
+
description?: string | null | undefined;
|
|
450
457
|
parent_id?: string | null | undefined;
|
|
458
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
451
459
|
name_url_slug?: string | null | undefined;
|
|
452
460
|
slug?: string | null | undefined;
|
|
453
461
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
@@ -461,14 +469,8 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
461
469
|
type: string;
|
|
462
470
|
content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
463
471
|
} | null | undefined;
|
|
472
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
464
473
|
}, {
|
|
465
|
-
id?: string | undefined;
|
|
466
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
467
|
-
name?: string | undefined;
|
|
468
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
469
|
-
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
470
|
-
description?: string | null | undefined;
|
|
471
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
472
474
|
user?: {
|
|
473
475
|
id?: string | undefined;
|
|
474
476
|
user_id?: string | undefined;
|
|
@@ -478,36 +480,43 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
478
480
|
}[] | undefined;
|
|
479
481
|
username?: string | null | undefined;
|
|
480
482
|
bio?: string | null | undefined;
|
|
483
|
+
post_id?: string | null | undefined;
|
|
481
484
|
last_active?: string | undefined;
|
|
482
485
|
} | undefined;
|
|
483
486
|
organization?: {
|
|
484
487
|
id?: string | undefined;
|
|
485
488
|
name?: string | undefined;
|
|
486
|
-
size?: string | undefined;
|
|
487
|
-
email?: string | null | undefined;
|
|
488
489
|
avatar_path?: string | null | undefined;
|
|
489
490
|
mission?: string | null | undefined;
|
|
491
|
+
size?: string | undefined;
|
|
492
|
+
email?: string | null | undefined;
|
|
490
493
|
domain?: string | null | undefined;
|
|
491
494
|
urls?: {
|
|
492
495
|
value: string;
|
|
493
496
|
}[] | null | undefined;
|
|
494
|
-
base_role?: "
|
|
497
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
495
498
|
} | undefined;
|
|
496
499
|
team?: {
|
|
497
500
|
id?: string | undefined;
|
|
498
|
-
name?: string | undefined;
|
|
499
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
500
|
-
description?: string | null | undefined;
|
|
501
501
|
org_id?: string | undefined;
|
|
502
502
|
created_at?: string | undefined;
|
|
503
|
-
|
|
503
|
+
name?: string | undefined;
|
|
504
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
505
|
+
description?: string | null | undefined;
|
|
506
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
504
507
|
} | undefined;
|
|
508
|
+
id?: string | undefined;
|
|
505
509
|
org_id?: string | undefined;
|
|
506
510
|
asset_type?: "comment" | undefined;
|
|
511
|
+
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
507
512
|
created_at?: string | undefined;
|
|
508
513
|
last_updated?: string | undefined;
|
|
514
|
+
name?: string | undefined;
|
|
509
515
|
team_id?: string | undefined;
|
|
516
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
517
|
+
description?: string | null | undefined;
|
|
510
518
|
parent_id?: string | null | undefined;
|
|
519
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
511
520
|
name_url_slug?: string | null | undefined;
|
|
512
521
|
slug?: string | null | undefined;
|
|
513
522
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
@@ -521,6 +530,7 @@ declare const CreateCommentSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
521
530
|
type: string;
|
|
522
531
|
content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
523
532
|
} | null | undefined;
|
|
533
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
524
534
|
}>;
|
|
525
535
|
export { CommentSchema, CreateCommentSchema };
|
|
526
536
|
export type Comment = z.infer<typeof CommentSchema>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{uuidv7 as t}from"uuidv7";import{z as e}from"zod";import{AssetSchema as a}from"./assets.esm.js";const o=a.extend({asset_type:e.literal("comment").default("comment"),preview:e.object({type:e.string().refine((t=>"doc"===t)),content:e.array(e.object({}).passthrough())}).optional().nullable().default({type:"doc",content:[]})}),n=o.partial().omit({id:!0,user_id:!0}).extend({asset_type:e.literal("comment").default("comment"),id:e.string().default((()=>t())),name:e.string().default(""),created_at:e.string().default((()=>(new Date).toISOString())),last_updated:e.string().default((()=>(new Date).toISOString()))});export{o as CommentSchema,n as CreateCommentSchema};
|
|
2
|
+
//# sourceMappingURL=comments.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comments.esm.js","sources":["../../src/schema/comments.ts"],"sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport { z } from \"zod\";\n\nimport { AssetSchema } from \"./assets\";\n\nconst CommentSchema = AssetSchema.extend({\n asset_type: z.literal(\"comment\").default(\"comment\"),\n preview: z\n .object({\n type: z.string().refine((x) => x === \"doc\"),\n content: z.array(z.object({}).passthrough()),\n })\n .optional()\n .nullable()\n .default({ type: \"doc\", content: [] }),\n});\n\nconst CreateCommentSchema = CommentSchema.partial()\n .omit({\n id: true,\n user_id: true,\n })\n .extend({\n asset_type: z.literal(\"comment\").default(\"comment\"),\n id: z.string().default(() => uuidv7()),\n name: z.string().default(\"\"),\n created_at: z.string().default(() => new Date().toISOString()),\n last_updated: z.string().default(() => new Date().toISOString()),\n });\n\nexport { CommentSchema, CreateCommentSchema };\nexport type Comment = z.infer<typeof CommentSchema>;\nexport type CreateComment = z.infer<typeof CreateCommentSchema>;\n"],"names":["CommentSchema","AssetSchema","extend","asset_type","z","literal","default","preview","object","type","string","refine","x","content","array","passthrough","optional","nullable","CreateCommentSchema","partial","omit","id","user_id","uuidv7","name","created_at","Date","toISOString","last_updated"],"mappings":"sGAKA,MAAMA,EAAgBC,EAAYC,OAAO,CACvCC,WAAYC,EAAEC,QAAQ,WAAWC,QAAQ,WACzCC,QAASH,EACNI,OAAO,CACNC,KAAML,EAAEM,SAASC,QAAQC,GAAY,QAANA,IAC/BC,QAAST,EAAEU,MAAMV,EAAEI,OAAO,CAAE,GAAEO,iBAE/BC,WACAC,WACAX,QAAQ,CAAEG,KAAM,MAAOI,QAAS,OAG/BK,EAAsBlB,EAAcmB,UACvCC,KAAK,CACJC,IAAI,EACJC,SAAS,IAEVpB,OAAO,CACNC,WAAYC,EAAEC,QAAQ,WAAWC,QAAQ,WACzCe,GAAIjB,EAAEM,SAASJ,SAAQ,IAAMiB,MAC7BC,KAAMpB,EAAEM,SAASJ,QAAQ,IACzBmB,WAAYrB,EAAEM,SAASJ,SAAQ,KAAM,IAAIoB,MAAOC,gBAChDC,aAAcxB,EAAEM,SAASJ,SAAQ,KAAM,IAAIoB,MAAOC"}
|
package/dist/schema/comments.js
CHANGED
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.CreateCommentSchema = exports.CommentSchema = void 0;
|
|
4
|
-
const uuidv7_1 = require("uuidv7");
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
const assets_1 = require("./assets");
|
|
7
|
-
const CommentSchema = assets_1.AssetSchema.extend({
|
|
8
|
-
asset_type: zod_1.z.literal("comment").default("comment"),
|
|
9
|
-
preview: zod_1.z
|
|
10
|
-
.object({
|
|
11
|
-
type: zod_1.z.string().refine((x) => x === "doc"),
|
|
12
|
-
content: zod_1.z.array(zod_1.z.object({}).passthrough()),
|
|
13
|
-
})
|
|
14
|
-
.optional()
|
|
15
|
-
.nullable()
|
|
16
|
-
.default({ type: "doc", content: [] }),
|
|
17
|
-
});
|
|
18
|
-
exports.CommentSchema = CommentSchema;
|
|
19
|
-
const CreateCommentSchema = CommentSchema.partial()
|
|
20
|
-
.omit({
|
|
21
|
-
id: true,
|
|
22
|
-
user_id: true,
|
|
23
|
-
})
|
|
24
|
-
.extend({
|
|
25
|
-
asset_type: zod_1.z.literal("comment").default("comment"),
|
|
26
|
-
id: zod_1.z.string().default(() => (0, uuidv7_1.uuidv7)()),
|
|
27
|
-
name: zod_1.z.string().default(""),
|
|
28
|
-
created_at: zod_1.z.string().default(() => new Date().toISOString()),
|
|
29
|
-
last_updated: zod_1.z.string().default(() => new Date().toISOString()),
|
|
30
|
-
});
|
|
31
|
-
exports.CreateCommentSchema = CreateCommentSchema;
|
|
32
|
-
//# sourceMappingURL=comments.js.map
|
|
1
|
+
"use strict";var e=require("uuidv7"),t=require("zod");const a=require("./assets.js").AssetSchema.extend({asset_type:t.z.literal("comment").default("comment"),preview:t.z.object({type:t.z.string().refine((e=>"doc"===e)),content:t.z.array(t.z.object({}).passthrough())}).optional().nullable().default({type:"doc",content:[]})}),r=a.partial().omit({id:!0,user_id:!0}).extend({asset_type:t.z.literal("comment").default("comment"),id:t.z.string().default((()=>e.uuidv7())),name:t.z.string().default(""),created_at:t.z.string().default((()=>(new Date).toISOString())),last_updated:t.z.string().default((()=>(new Date).toISOString()))});exports.CommentSchema=a,exports.CreateCommentSchema=r;
|
|
2
|
+
//# sourceMappingURL=comments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comments.js","
|
|
1
|
+
{"version":3,"file":"comments.js","sources":["../../src/schema/comments.ts"],"sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport { z } from \"zod\";\n\nimport { AssetSchema } from \"./assets\";\n\nconst CommentSchema = AssetSchema.extend({\n asset_type: z.literal(\"comment\").default(\"comment\"),\n preview: z\n .object({\n type: z.string().refine((x) => x === \"doc\"),\n content: z.array(z.object({}).passthrough()),\n })\n .optional()\n .nullable()\n .default({ type: \"doc\", content: [] }),\n});\n\nconst CreateCommentSchema = CommentSchema.partial()\n .omit({\n id: true,\n user_id: true,\n })\n .extend({\n asset_type: z.literal(\"comment\").default(\"comment\"),\n id: z.string().default(() => uuidv7()),\n name: z.string().default(\"\"),\n created_at: z.string().default(() => new Date().toISOString()),\n last_updated: z.string().default(() => new Date().toISOString()),\n });\n\nexport { CommentSchema, CreateCommentSchema };\nexport type Comment = z.infer<typeof CommentSchema>;\nexport type CreateComment = z.infer<typeof CreateCommentSchema>;\n"],"names":["CommentSchema","AssetSchema","extend","asset_type","z","literal","default","preview","object","type","string","refine","x","content","array","passthrough","optional","nullable","CreateCommentSchema","partial","omit","id","user_id","uuidv7","name","created_at","Date","toISOString","last_updated"],"mappings":"sDAKA,MAAMA,yBAA2BC,YAACC,OAAO,CACvCC,WAAYC,EAACA,EAACC,QAAQ,WAAWC,QAAQ,WACzCC,QAASH,EAAAA,EACNI,OAAO,CACNC,KAAML,EAACA,EAACM,SAASC,QAAQC,GAAY,QAANA,IAC/BC,QAAST,EAACA,EAACU,MAAMV,EAAAA,EAAEI,OAAO,CAAE,GAAEO,iBAE/BC,WACAC,WACAX,QAAQ,CAAEG,KAAM,MAAOI,QAAS,OAG/BK,EAAsBlB,EAAcmB,UACvCC,KAAK,CACJC,IAAI,EACJC,SAAS,IAEVpB,OAAO,CACNC,WAAYC,EAACA,EAACC,QAAQ,WAAWC,QAAQ,WACzCe,GAAIjB,EAACA,EAACM,SAASJ,SAAQ,IAAMiB,EAAMA,WACnCC,KAAMpB,EAAAA,EAAEM,SAASJ,QAAQ,IACzBmB,WAAYrB,EAAAA,EAAEM,SAASJ,SAAQ,KAAM,IAAIoB,MAAOC,gBAChDC,aAAcxB,EAAAA,EAAEM,SAASJ,SAAQ,KAAM,IAAIoB,MAAOC"}
|