@ourofoundation/ouro-js 3.2.4 → 3.3.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/chunk-42EQ7ULD.cjs +2 -0
- package/dist/chunk-42EQ7ULD.cjs.map +1 -0
- package/dist/chunk-43KB23BA.cjs +2 -0
- package/dist/chunk-43KB23BA.cjs.map +1 -0
- package/dist/{chunk-7RF362MN.cjs → chunk-4K6R6FZD.cjs} +2 -2
- package/dist/{chunk-7RF362MN.cjs.map → chunk-4K6R6FZD.cjs.map} +1 -1
- package/dist/{chunk-SKQ6BRPY.js → chunk-6YF2RSXS.js} +2 -2
- package/dist/{chunk-SKQ6BRPY.js.map → chunk-6YF2RSXS.js.map} +1 -1
- package/dist/{chunk-TGAK4B5M.js → chunk-B4225TEG.js} +2 -2
- package/dist/{chunk-TGAK4B5M.js.map → chunk-B4225TEG.js.map} +1 -1
- package/dist/{chunk-Q34MIANF.js → chunk-BFBGVGNF.js} +2 -2
- package/dist/{chunk-Q34MIANF.js.map → chunk-BFBGVGNF.js.map} +1 -1
- package/dist/{chunk-OFSSOFOC.cjs → chunk-BQ5WODME.cjs} +2 -2
- package/dist/{chunk-OFSSOFOC.cjs.map → chunk-BQ5WODME.cjs.map} +1 -1
- package/dist/{chunk-WYHO26N6.js → chunk-CF56NFUG.js} +2 -2
- package/dist/{chunk-WYHO26N6.js.map → chunk-CF56NFUG.js.map} +1 -1
- package/dist/chunk-CIWFH5BJ.js +2 -0
- package/dist/chunk-CIWFH5BJ.js.map +1 -0
- package/dist/chunk-EY4OFSDP.js +2 -0
- package/dist/chunk-EY4OFSDP.js.map +1 -0
- package/dist/chunk-FDKZIS34.js +2 -0
- package/dist/chunk-FDKZIS34.js.map +1 -0
- package/dist/chunk-G24BRDHO.cjs +2 -0
- package/dist/chunk-G24BRDHO.cjs.map +1 -0
- package/dist/{chunk-KZOOYWQ7.js → chunk-G2MXCB7Q.js} +2 -2
- package/dist/{chunk-KZOOYWQ7.js.map → chunk-G2MXCB7Q.js.map} +1 -1
- package/dist/{chunk-FQ4F7DQH.cjs → chunk-IP4OVRZB.cjs} +2 -2
- package/dist/{chunk-FQ4F7DQH.cjs.map → chunk-IP4OVRZB.cjs.map} +1 -1
- package/dist/{chunk-XIH622YH.js → chunk-JISPX5A6.js} +2 -2
- package/dist/{chunk-XIH622YH.js.map → chunk-JISPX5A6.js.map} +1 -1
- package/dist/{chunk-KYK27OHG.cjs → chunk-MH4A7XAY.cjs} +2 -2
- package/dist/{chunk-KYK27OHG.cjs.map → chunk-MH4A7XAY.cjs.map} +1 -1
- package/dist/chunk-MOEVC3KD.cjs +2 -0
- package/dist/chunk-MOEVC3KD.cjs.map +1 -0
- package/dist/chunk-NEINJFFK.cjs +2 -0
- package/dist/{chunk-CVFVOARW.cjs.map → chunk-NEINJFFK.cjs.map} +1 -1
- package/dist/{chunk-P5JYABNP.cjs → chunk-QT3A4ULM.cjs} +2 -2
- package/dist/{chunk-P5JYABNP.cjs.map → chunk-QT3A4ULM.cjs.map} +1 -1
- package/dist/{chunk-7SSENGQL.js → chunk-U3F23ASS.js} +2 -2
- package/dist/{chunk-7SSENGQL.js.map → chunk-U3F23ASS.js.map} +1 -1
- package/dist/chunk-UY43EQTO.cjs +2 -0
- package/dist/{chunk-IW4MZW5P.cjs.map → chunk-UY43EQTO.cjs.map} +1 -1
- package/dist/{chunk-OIPOIY6M.cjs → chunk-VOY623ZD.cjs} +2 -2
- package/dist/{chunk-OIPOIY6M.cjs.map → chunk-VOY623ZD.cjs.map} +1 -1
- package/dist/{chunk-MB4EEZKP.js → chunk-WLGOABHV.js} +2 -2
- package/dist/{chunk-MB4EEZKP.js.map → chunk-WLGOABHV.js.map} +1 -1
- package/dist/chunk-WRHPQNEL.js +2 -0
- package/dist/chunk-WRHPQNEL.js.map +1 -0
- package/dist/{chunk-V5DSXK34.cjs → chunk-WUC5AUUJ.cjs} +2 -2
- package/dist/{chunk-V5DSXK34.cjs.map → chunk-WUC5AUUJ.cjs.map} +1 -1
- package/dist/{chunk-XWUYZSVO.js → chunk-Y6AKG4FJ.js} +2 -2
- package/dist/{chunk-XWUYZSVO.js.map → chunk-Y6AKG4FJ.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -1
- package/dist/schema/assets.cjs +1 -1
- package/dist/schema/assets.d.cts +84 -90
- package/dist/schema/assets.d.ts +84 -90
- package/dist/schema/assets.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +136 -136
- package/dist/schema/comments.d.ts +136 -136
- package/dist/schema/comments.js +1 -1
- package/dist/schema/common.cjs +1 -1
- package/dist/schema/common.d.cts +17 -28
- package/dist/schema/common.d.ts +17 -28
- package/dist/schema/common.js +1 -1
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +69 -71
- package/dist/schema/conversations.d.ts +69 -71
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +106 -106
- package/dist/schema/datasets.d.ts +106 -106
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/events.cjs +2 -0
- package/dist/schema/events.cjs.map +1 -0
- package/dist/schema/events.d.cts +113 -0
- package/dist/schema/events.d.ts +113 -0
- package/dist/schema/events.js +2 -0
- package/dist/schema/events.js.map +1 -0
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +100 -100
- package/dist/schema/files.d.ts +100 -100
- package/dist/schema/files.js +1 -1
- package/dist/schema/notifications.cjs +1 -1
- package/dist/schema/notifications.d.cts +2 -4
- package/dist/schema/notifications.d.ts +2 -4
- package/dist/schema/notifications.js +1 -1
- package/dist/schema/organizations.cjs +1 -1
- package/dist/schema/organizations.d.cts +1 -1
- package/dist/schema/organizations.d.ts +1 -1
- package/dist/schema/organizations.js +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +127 -137
- package/dist/schema/posts.d.ts +127 -137
- package/dist/schema/posts.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +124 -131
- package/dist/schema/services.d.ts +124 -131
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.cjs +1 -1
- package/dist/schema/teams.d.cts +18 -18
- package/dist/schema/teams.d.ts +18 -18
- package/dist/schema/teams.js +1 -1
- package/dist/utils/navigate.cjs +1 -1
- package/dist/utils/navigate.d.cts +2 -2
- package/dist/utils/navigate.d.ts +2 -2
- package/dist/utils/navigate.js +1 -1
- package/package.json +1 -1
- package/scripts/dump-events.ts +10 -0
- package/dist/chunk-3ZHWBPGA.cjs +0 -2
- package/dist/chunk-3ZHWBPGA.cjs.map +0 -1
- package/dist/chunk-6AK3RVZR.cjs +0 -2
- package/dist/chunk-6AK3RVZR.cjs.map +0 -1
- package/dist/chunk-6RGIIOOP.js +0 -2
- package/dist/chunk-6RGIIOOP.js.map +0 -1
- package/dist/chunk-6TOGDJKP.cjs +0 -2
- package/dist/chunk-6TOGDJKP.cjs.map +0 -1
- package/dist/chunk-7ABFUHWW.js +0 -2
- package/dist/chunk-7ABFUHWW.js.map +0 -1
- package/dist/chunk-BU2S7UEL.js +0 -2
- package/dist/chunk-BU2S7UEL.js.map +0 -1
- package/dist/chunk-CVFVOARW.cjs +0 -2
- package/dist/chunk-DHQJ2FCF.cjs +0 -2
- package/dist/chunk-DHQJ2FCF.cjs.map +0 -1
- package/dist/chunk-FNW6DDNP.cjs +0 -2
- package/dist/chunk-FNW6DDNP.cjs.map +0 -1
- package/dist/chunk-IW4MZW5P.cjs +0 -2
- package/dist/chunk-JPCZIGX2.js +0 -2
- package/dist/chunk-JPCZIGX2.js.map +0 -1
- package/dist/chunk-XMYZV7TD.js +0 -2
- package/dist/chunk-XMYZV7TD.js.map +0 -1
- package/dist/schema/blueprints.cjs +0 -2
- package/dist/schema/blueprints.cjs.map +0 -1
- package/dist/schema/blueprints.d.cts +0 -823
- package/dist/schema/blueprints.d.ts +0 -823
- package/dist/schema/blueprints.js +0 -2
- package/dist/schema/blueprints.js.map +0 -1
- package/dist/schema/replications.cjs +0 -2
- package/dist/schema/replications.cjs.map +0 -1
- package/dist/schema/replications.d.cts +0 -827
- package/dist/schema/replications.d.ts +0 -827
- package/dist/schema/replications.js +0 -2
- package/dist/schema/replications.js.map +0 -1
|
@@ -108,9 +108,9 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
108
108
|
none: "none";
|
|
109
109
|
}>>;
|
|
110
110
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
111
|
-
organization: "organization";
|
|
112
111
|
public: "public";
|
|
113
112
|
private: "private";
|
|
113
|
+
organization: "organization";
|
|
114
114
|
monetized: "monetized";
|
|
115
115
|
inherit: "inherit";
|
|
116
116
|
}>>;
|
|
@@ -182,9 +182,9 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
182
182
|
text: z.ZodString;
|
|
183
183
|
}, z.core.$strip>>>;
|
|
184
184
|
visibility: z.ZodEnum<{
|
|
185
|
-
organization: "organization";
|
|
186
185
|
public: "public";
|
|
187
186
|
private: "private";
|
|
187
|
+
organization: "organization";
|
|
188
188
|
monetized: "monetized";
|
|
189
189
|
inherit: "inherit";
|
|
190
190
|
}>;
|
|
@@ -222,14 +222,14 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
222
222
|
}, z.core.$strip>>>;
|
|
223
223
|
state: z.ZodEnum<{
|
|
224
224
|
success: "success";
|
|
225
|
+
error: "error";
|
|
225
226
|
queued: "queued";
|
|
226
227
|
"in-progress": "in-progress";
|
|
227
228
|
"timed-out": "timed-out";
|
|
228
|
-
error: "error";
|
|
229
229
|
}>;
|
|
230
230
|
source: z.ZodEnum<{
|
|
231
|
-
api: "api";
|
|
232
231
|
web: "web";
|
|
232
|
+
api: "api";
|
|
233
233
|
}>;
|
|
234
234
|
created_at: z.ZodString;
|
|
235
235
|
last_updated: z.ZodString;
|
|
@@ -240,30 +240,6 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
240
240
|
}, z.core.$strip>>>>;
|
|
241
241
|
}, z.core.$strip>;
|
|
242
242
|
declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
243
|
-
user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
244
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
245
|
-
user_id: z.ZodOptional<z.ZodUUID>;
|
|
246
|
-
username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
247
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
248
|
-
avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
249
|
-
bio: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
250
|
-
is_provisioned: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
251
|
-
claimed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
252
|
-
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
253
|
-
value: z.ZodString;
|
|
254
|
-
}, z.core.$strip>>>>;
|
|
255
|
-
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
256
|
-
actor_type: z.ZodOptional<z.ZodEnum<{
|
|
257
|
-
base: "base";
|
|
258
|
-
agent: "agent";
|
|
259
|
-
verified: "verified";
|
|
260
|
-
}>>;
|
|
261
|
-
plan_type: z.ZodOptional<z.ZodEnum<{
|
|
262
|
-
free: "free";
|
|
263
|
-
gold: "gold";
|
|
264
|
-
}>>;
|
|
265
|
-
last_active: z.ZodOptional<z.ZodString>;
|
|
266
|
-
}, z.core.$strip>>>;
|
|
267
243
|
organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
268
244
|
id: z.ZodOptional<z.ZodUUID>;
|
|
269
245
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -296,6 +272,56 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
296
272
|
api_only: "api_only";
|
|
297
273
|
}>>>>;
|
|
298
274
|
}, z.core.$strip>>>;
|
|
275
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
276
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
277
|
+
web: "web";
|
|
278
|
+
api: "api";
|
|
279
|
+
}>>;
|
|
280
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
281
|
+
public: "public";
|
|
282
|
+
private: "private";
|
|
283
|
+
organization: "organization";
|
|
284
|
+
monetized: "monetized";
|
|
285
|
+
inherit: "inherit";
|
|
286
|
+
}>>;
|
|
287
|
+
monetization: z.ZodOptional<z.ZodEnum<{
|
|
288
|
+
none: "none";
|
|
289
|
+
"pay-to-unlock": "pay-to-unlock";
|
|
290
|
+
"pay-per-use": "pay-per-use";
|
|
291
|
+
}>>;
|
|
292
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
293
|
+
success: "success";
|
|
294
|
+
error: "error";
|
|
295
|
+
queued: "queued";
|
|
296
|
+
"in-progress": "in-progress";
|
|
297
|
+
"timed-out": "timed-out";
|
|
298
|
+
}>>;
|
|
299
|
+
user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
300
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
301
|
+
user_id: z.ZodOptional<z.ZodUUID>;
|
|
302
|
+
username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
303
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
304
|
+
avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
305
|
+
bio: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
306
|
+
is_provisioned: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
307
|
+
claimed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
308
|
+
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
309
|
+
value: z.ZodString;
|
|
310
|
+
}, z.core.$strip>>>>;
|
|
311
|
+
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
312
|
+
actor_type: z.ZodOptional<z.ZodEnum<{
|
|
313
|
+
base: "base";
|
|
314
|
+
agent: "agent";
|
|
315
|
+
verified: "verified";
|
|
316
|
+
}>>;
|
|
317
|
+
plan_type: z.ZodOptional<z.ZodEnum<{
|
|
318
|
+
free: "free";
|
|
319
|
+
gold: "gold";
|
|
320
|
+
}>>;
|
|
321
|
+
last_active: z.ZodOptional<z.ZodString>;
|
|
322
|
+
}, z.core.$strip>>>;
|
|
323
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
324
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
299
325
|
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
300
326
|
id: z.ZodOptional<z.ZodUUID>;
|
|
301
327
|
org_id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -343,9 +369,9 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
343
369
|
none: "none";
|
|
344
370
|
}>>;
|
|
345
371
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
346
|
-
organization: "organization";
|
|
347
372
|
public: "public";
|
|
348
373
|
private: "private";
|
|
374
|
+
organization: "organization";
|
|
349
375
|
monetized: "monetized";
|
|
350
376
|
inherit: "inherit";
|
|
351
377
|
}>>;
|
|
@@ -405,49 +431,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
405
431
|
}, z.core.$strip>>>;
|
|
406
432
|
created_at: z.ZodOptional<z.ZodString>;
|
|
407
433
|
}, z.core.$strip>>>;
|
|
408
|
-
org_id: z.ZodOptional<z.ZodUUID>;
|
|
409
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
410
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
411
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
412
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
413
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
414
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
415
|
-
originality: z.ZodEnum<{
|
|
416
|
-
original: "original";
|
|
417
|
-
derivative: "derivative";
|
|
418
|
-
"third-party": "third-party";
|
|
419
|
-
}>;
|
|
420
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
421
|
-
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
422
|
-
}, z.core.$strip>>>>;
|
|
423
|
-
team_id: z.ZodOptional<z.ZodUUID>;
|
|
424
|
-
visibility: z.ZodOptional<z.ZodEnum<{
|
|
425
|
-
organization: "organization";
|
|
426
|
-
public: "public";
|
|
427
|
-
private: "private";
|
|
428
|
-
monetized: "monetized";
|
|
429
|
-
inherit: "inherit";
|
|
430
|
-
}>>;
|
|
431
434
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
432
435
|
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
433
436
|
text: z.ZodString;
|
|
434
437
|
}, z.core.$strip>>>>;
|
|
435
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
436
|
-
api: "api";
|
|
437
|
-
web: "web";
|
|
438
|
-
}>>;
|
|
439
|
-
monetization: z.ZodOptional<z.ZodEnum<{
|
|
440
|
-
none: "none";
|
|
441
|
-
"pay-to-unlock": "pay-to-unlock";
|
|
442
|
-
"pay-per-use": "pay-per-use";
|
|
443
|
-
}>>;
|
|
444
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
445
|
-
success: "success";
|
|
446
|
-
queued: "queued";
|
|
447
|
-
"in-progress": "in-progress";
|
|
448
|
-
"timed-out": "timed-out";
|
|
449
|
-
error: "error";
|
|
450
|
-
}>>;
|
|
451
438
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
452
439
|
license_id: z.ZodOptional<z.ZodString>;
|
|
453
440
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -467,6 +454,19 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
467
454
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
468
455
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
469
456
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
457
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
458
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
459
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
460
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
461
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
462
|
+
originality: z.ZodEnum<{
|
|
463
|
+
original: "original";
|
|
464
|
+
derivative: "derivative";
|
|
465
|
+
"third-party": "third-party";
|
|
466
|
+
}>;
|
|
467
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
468
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
469
|
+
}, z.core.$strip>>>>;
|
|
470
470
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
471
471
|
type: z.ZodString;
|
|
472
472
|
content: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -482,23 +482,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
482
482
|
name: string;
|
|
483
483
|
created_at: string;
|
|
484
484
|
last_updated: string;
|
|
485
|
-
user?: {
|
|
486
|
-
id?: string | undefined;
|
|
487
|
-
user_id?: string | undefined;
|
|
488
|
-
username?: string | null | undefined;
|
|
489
|
-
name?: string | null | undefined;
|
|
490
|
-
avatar_path?: string | null | undefined;
|
|
491
|
-
bio?: string | null | undefined;
|
|
492
|
-
is_provisioned?: boolean | undefined;
|
|
493
|
-
claimed_at?: string | null | undefined;
|
|
494
|
-
urls?: {
|
|
495
|
-
value: string;
|
|
496
|
-
}[] | undefined;
|
|
497
|
-
post_id?: string | null | undefined;
|
|
498
|
-
actor_type?: "base" | "agent" | "verified" | undefined;
|
|
499
|
-
plan_type?: "free" | "gold" | undefined;
|
|
500
|
-
last_active?: string | undefined;
|
|
501
|
-
} | undefined;
|
|
502
485
|
organization?: {
|
|
503
486
|
id?: string | undefined;
|
|
504
487
|
name?: string | undefined;
|
|
@@ -518,6 +501,30 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
518
501
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
|
|
519
502
|
source_policy?: "any" | "web_only" | "api_only" | undefined;
|
|
520
503
|
} | undefined;
|
|
504
|
+
parent?: Record<string, any> | undefined;
|
|
505
|
+
source?: "web" | "api" | undefined;
|
|
506
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
507
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
508
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
509
|
+
user?: {
|
|
510
|
+
id?: string | undefined;
|
|
511
|
+
user_id?: string | undefined;
|
|
512
|
+
username?: string | null | undefined;
|
|
513
|
+
name?: string | null | undefined;
|
|
514
|
+
avatar_path?: string | null | undefined;
|
|
515
|
+
bio?: string | null | undefined;
|
|
516
|
+
is_provisioned?: boolean | undefined;
|
|
517
|
+
claimed_at?: string | null | undefined;
|
|
518
|
+
urls?: {
|
|
519
|
+
value: string;
|
|
520
|
+
}[] | undefined;
|
|
521
|
+
post_id?: string | null | undefined;
|
|
522
|
+
actor_type?: "base" | "agent" | "verified" | undefined;
|
|
523
|
+
plan_type?: "free" | "gold" | undefined;
|
|
524
|
+
last_active?: string | undefined;
|
|
525
|
+
} | undefined;
|
|
526
|
+
org_id?: string | undefined;
|
|
527
|
+
team_id?: string | undefined;
|
|
521
528
|
team?: {
|
|
522
529
|
id?: string | undefined;
|
|
523
530
|
org_id?: string | undefined;
|
|
@@ -546,7 +553,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
546
553
|
json: Record<string, any>;
|
|
547
554
|
} | null | undefined;
|
|
548
555
|
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
549
|
-
visibility?: "
|
|
556
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
550
557
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
|
|
551
558
|
source_policy?: "any" | "web_only" | "api_only" | null | undefined;
|
|
552
559
|
userMembership?: {
|
|
@@ -578,26 +585,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
578
585
|
}[] | undefined;
|
|
579
586
|
created_at?: string | undefined;
|
|
580
587
|
} | undefined;
|
|
581
|
-
org_id?: string | undefined;
|
|
582
|
-
parent?: Record<string, any> | undefined;
|
|
583
|
-
metadata?: {
|
|
584
|
-
originality: "original" | "derivative" | "third-party";
|
|
585
|
-
doi_url?: string | null | undefined;
|
|
586
|
-
external_url?: string | null | undefined;
|
|
587
|
-
paper_url?: string | null | undefined;
|
|
588
|
-
github_url?: string | null | undefined;
|
|
589
|
-
source?: string | null | undefined;
|
|
590
|
-
reply_to_comment_id?: string | null | undefined;
|
|
591
|
-
} | null | undefined;
|
|
592
|
-
team_id?: string | undefined;
|
|
593
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
594
588
|
description?: {
|
|
595
589
|
json: Record<string, any>;
|
|
596
590
|
text: string;
|
|
597
591
|
} | null | undefined;
|
|
598
|
-
source?: "api" | "web" | undefined;
|
|
599
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
600
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
601
592
|
parent_id?: string | null | undefined;
|
|
602
593
|
license_id?: string | undefined;
|
|
603
594
|
license?: Record<string, any> | undefined;
|
|
@@ -611,6 +602,15 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
611
602
|
stripe_product_id?: string | null | undefined;
|
|
612
603
|
stripe_price_id?: string | null | undefined;
|
|
613
604
|
stripe_meter_id?: string | null | undefined;
|
|
605
|
+
metadata?: {
|
|
606
|
+
originality: "original" | "derivative" | "third-party";
|
|
607
|
+
doi_url?: string | null | undefined;
|
|
608
|
+
external_url?: string | null | undefined;
|
|
609
|
+
paper_url?: string | null | undefined;
|
|
610
|
+
github_url?: string | null | undefined;
|
|
611
|
+
source?: string | null | undefined;
|
|
612
|
+
reply_to_comment_id?: string | null | undefined;
|
|
613
|
+
} | null | undefined;
|
|
614
614
|
preview?: {
|
|
615
615
|
type: string;
|
|
616
616
|
content: Record<string, any>[];
|
|
@@ -621,23 +621,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
621
621
|
name: string;
|
|
622
622
|
created_at: string;
|
|
623
623
|
last_updated: string;
|
|
624
|
-
user?: {
|
|
625
|
-
id?: string | undefined;
|
|
626
|
-
user_id?: string | undefined;
|
|
627
|
-
username?: string | null | undefined;
|
|
628
|
-
name?: string | null | undefined;
|
|
629
|
-
avatar_path?: string | null | undefined;
|
|
630
|
-
bio?: string | null | undefined;
|
|
631
|
-
is_provisioned?: boolean | undefined;
|
|
632
|
-
claimed_at?: string | null | undefined;
|
|
633
|
-
urls?: {
|
|
634
|
-
value: string;
|
|
635
|
-
}[] | undefined;
|
|
636
|
-
post_id?: string | null | undefined;
|
|
637
|
-
actor_type?: "base" | "agent" | "verified" | undefined;
|
|
638
|
-
plan_type?: "free" | "gold" | undefined;
|
|
639
|
-
last_active?: string | undefined;
|
|
640
|
-
} | undefined;
|
|
641
624
|
organization?: {
|
|
642
625
|
id?: string | undefined;
|
|
643
626
|
name?: string | undefined;
|
|
@@ -657,6 +640,30 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
657
640
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
|
|
658
641
|
source_policy?: "any" | "web_only" | "api_only" | undefined;
|
|
659
642
|
} | undefined;
|
|
643
|
+
parent?: Record<string, any> | undefined;
|
|
644
|
+
source?: "web" | "api" | undefined;
|
|
645
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
646
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
647
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
648
|
+
user?: {
|
|
649
|
+
id?: string | undefined;
|
|
650
|
+
user_id?: string | undefined;
|
|
651
|
+
username?: string | null | undefined;
|
|
652
|
+
name?: string | null | undefined;
|
|
653
|
+
avatar_path?: string | null | undefined;
|
|
654
|
+
bio?: string | null | undefined;
|
|
655
|
+
is_provisioned?: boolean | undefined;
|
|
656
|
+
claimed_at?: string | null | undefined;
|
|
657
|
+
urls?: {
|
|
658
|
+
value: string;
|
|
659
|
+
}[] | undefined;
|
|
660
|
+
post_id?: string | null | undefined;
|
|
661
|
+
actor_type?: "base" | "agent" | "verified" | undefined;
|
|
662
|
+
plan_type?: "free" | "gold" | undefined;
|
|
663
|
+
last_active?: string | undefined;
|
|
664
|
+
} | undefined;
|
|
665
|
+
org_id?: string | undefined;
|
|
666
|
+
team_id?: string | undefined;
|
|
660
667
|
team?: {
|
|
661
668
|
id?: string | undefined;
|
|
662
669
|
org_id?: string | undefined;
|
|
@@ -685,7 +692,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
685
692
|
json: Record<string, any>;
|
|
686
693
|
} | null | undefined;
|
|
687
694
|
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
688
|
-
visibility?: "
|
|
695
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
689
696
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
|
|
690
697
|
source_policy?: "any" | "web_only" | "api_only" | null | undefined;
|
|
691
698
|
userMembership?: {
|
|
@@ -717,26 +724,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
717
724
|
}[] | undefined;
|
|
718
725
|
created_at?: string | undefined;
|
|
719
726
|
} | undefined;
|
|
720
|
-
org_id?: string | undefined;
|
|
721
|
-
parent?: Record<string, any> | undefined;
|
|
722
|
-
metadata?: {
|
|
723
|
-
originality: "original" | "derivative" | "third-party";
|
|
724
|
-
doi_url?: string | null | undefined;
|
|
725
|
-
external_url?: string | null | undefined;
|
|
726
|
-
paper_url?: string | null | undefined;
|
|
727
|
-
github_url?: string | null | undefined;
|
|
728
|
-
source?: string | null | undefined;
|
|
729
|
-
reply_to_comment_id?: string | null | undefined;
|
|
730
|
-
} | null | undefined;
|
|
731
|
-
team_id?: string | undefined;
|
|
732
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
733
727
|
description?: {
|
|
734
728
|
json: Record<string, any>;
|
|
735
729
|
text: string;
|
|
736
730
|
} | null | undefined;
|
|
737
|
-
source?: "api" | "web" | undefined;
|
|
738
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
739
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
740
731
|
parent_id?: string | null | undefined;
|
|
741
732
|
license_id?: string | undefined;
|
|
742
733
|
license?: Record<string, any> | undefined;
|
|
@@ -750,6 +741,15 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
750
741
|
stripe_product_id?: string | null | undefined;
|
|
751
742
|
stripe_price_id?: string | null | undefined;
|
|
752
743
|
stripe_meter_id?: string | null | undefined;
|
|
744
|
+
metadata?: {
|
|
745
|
+
originality: "original" | "derivative" | "third-party";
|
|
746
|
+
doi_url?: string | null | undefined;
|
|
747
|
+
external_url?: string | null | undefined;
|
|
748
|
+
paper_url?: string | null | undefined;
|
|
749
|
+
github_url?: string | null | undefined;
|
|
750
|
+
source?: string | null | undefined;
|
|
751
|
+
reply_to_comment_id?: string | null | undefined;
|
|
752
|
+
} | null | undefined;
|
|
753
753
|
preview?: {
|
|
754
754
|
type: string;
|
|
755
755
|
content: Record<string, any>[];
|
package/dist/schema/comments.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as CommentSchema,b as CreateCommentSchema}from'../chunk-
|
|
1
|
+
export{a as CommentSchema,b as CreateCommentSchema}from'../chunk-6YF2RSXS.js';import'../chunk-G2MXCB7Q.js';import'../chunk-CF56NFUG.js';import'../chunk-WLGOABHV.js';import'../chunk-3N56ERWF.js';import'../chunk-WRHPQNEL.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=comments.js.map
|
|
2
2
|
//# sourceMappingURL=comments.js.map
|
package/dist/schema/common.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk43KB23BA_cjs=require('../chunk-43KB23BA.cjs');Object.defineProperty(exports,"AssetTypeSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.a}});Object.defineProperty(exports,"ConnectionSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.g}});Object.defineProperty(exports,"EmbeddingSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.f}});Object.defineProperty(exports,"MonetizationSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.d}});Object.defineProperty(exports,"PermissionSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.i}});Object.defineProperty(exports,"PriceCurrencySchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.e}});Object.defineProperty(exports,"PurchaseAssetSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.h}});Object.defineProperty(exports,"RoleSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.c}});Object.defineProperty(exports,"SourceSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.k}});Object.defineProperty(exports,"StatusSchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.j}});Object.defineProperty(exports,"VisibilitySchema",{enumerable:true,get:function(){return chunk43KB23BA_cjs.b}});//# sourceMappingURL=common.cjs.map
|
|
2
2
|
//# sourceMappingURL=common.cjs.map
|
package/dist/schema/common.d.cts
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const AssetTypeSchema: z.ZodEnum<{
|
|
4
|
-
user: "user";
|
|
5
4
|
organization: "organization";
|
|
5
|
+
file: "file";
|
|
6
|
+
user: "user";
|
|
6
7
|
team: "team";
|
|
7
8
|
dataset: "dataset";
|
|
8
|
-
file: "file";
|
|
9
9
|
service: "service";
|
|
10
10
|
route: "route";
|
|
11
11
|
post: "post";
|
|
12
12
|
quest: "quest";
|
|
13
13
|
comment: "comment";
|
|
14
14
|
conversation: "conversation";
|
|
15
|
-
blueprint: "blueprint";
|
|
16
|
-
replication: "replication";
|
|
17
15
|
}>;
|
|
18
16
|
declare const VisibilitySchema: z.ZodEnum<{
|
|
19
|
-
organization: "organization";
|
|
20
17
|
public: "public";
|
|
21
18
|
private: "private";
|
|
19
|
+
organization: "organization";
|
|
22
20
|
monetized: "monetized";
|
|
23
21
|
inherit: "inherit";
|
|
24
22
|
}>;
|
|
@@ -44,19 +42,17 @@ declare const EmbeddingSchema: z.ZodObject<{
|
|
|
44
42
|
embedding: z.ZodArray<z.ZodNumber>;
|
|
45
43
|
content: z.ZodString;
|
|
46
44
|
asset_type: z.ZodEnum<{
|
|
47
|
-
user: "user";
|
|
48
45
|
organization: "organization";
|
|
46
|
+
file: "file";
|
|
47
|
+
user: "user";
|
|
49
48
|
team: "team";
|
|
50
49
|
dataset: "dataset";
|
|
51
|
-
file: "file";
|
|
52
50
|
service: "service";
|
|
53
51
|
route: "route";
|
|
54
52
|
post: "post";
|
|
55
53
|
quest: "quest";
|
|
56
54
|
comment: "comment";
|
|
57
55
|
conversation: "conversation";
|
|
58
|
-
blueprint: "blueprint";
|
|
59
|
-
replication: "replication";
|
|
60
56
|
}>;
|
|
61
57
|
asset_id: z.ZodString;
|
|
62
58
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -73,39 +69,36 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
73
69
|
action: "action";
|
|
74
70
|
component: "component";
|
|
75
71
|
link: "link";
|
|
72
|
+
completion: "completion";
|
|
76
73
|
}>;
|
|
77
74
|
action_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
78
75
|
source_id: z.ZodUUID;
|
|
79
76
|
target_id: z.ZodUUID;
|
|
80
77
|
source_asset_type: z.ZodEnum<{
|
|
81
|
-
user: "user";
|
|
82
78
|
organization: "organization";
|
|
79
|
+
file: "file";
|
|
80
|
+
user: "user";
|
|
83
81
|
team: "team";
|
|
84
82
|
dataset: "dataset";
|
|
85
|
-
file: "file";
|
|
86
83
|
service: "service";
|
|
87
84
|
route: "route";
|
|
88
85
|
post: "post";
|
|
89
86
|
quest: "quest";
|
|
90
87
|
comment: "comment";
|
|
91
88
|
conversation: "conversation";
|
|
92
|
-
blueprint: "blueprint";
|
|
93
|
-
replication: "replication";
|
|
94
89
|
}>;
|
|
95
90
|
target_asset_type: z.ZodEnum<{
|
|
96
|
-
user: "user";
|
|
97
91
|
organization: "organization";
|
|
92
|
+
file: "file";
|
|
93
|
+
user: "user";
|
|
98
94
|
team: "team";
|
|
99
95
|
dataset: "dataset";
|
|
100
|
-
file: "file";
|
|
101
96
|
service: "service";
|
|
102
97
|
route: "route";
|
|
103
98
|
post: "post";
|
|
104
99
|
quest: "quest";
|
|
105
100
|
comment: "comment";
|
|
106
101
|
conversation: "conversation";
|
|
107
|
-
blueprint: "blueprint";
|
|
108
|
-
replication: "replication";
|
|
109
102
|
}>;
|
|
110
103
|
created_at: z.ZodString;
|
|
111
104
|
last_updated: z.ZodString;
|
|
@@ -113,23 +106,21 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
113
106
|
declare const PurchaseAssetSchema: z.ZodObject<{
|
|
114
107
|
assetId: z.ZodUUID;
|
|
115
108
|
method: z.ZodEnum<{
|
|
116
|
-
checkout: "checkout";
|
|
117
109
|
api: "api";
|
|
110
|
+
checkout: "checkout";
|
|
118
111
|
}>;
|
|
119
112
|
assetType: z.ZodEnum<{
|
|
120
|
-
user: "user";
|
|
121
113
|
organization: "organization";
|
|
114
|
+
file: "file";
|
|
115
|
+
user: "user";
|
|
122
116
|
team: "team";
|
|
123
117
|
dataset: "dataset";
|
|
124
|
-
file: "file";
|
|
125
118
|
service: "service";
|
|
126
119
|
route: "route";
|
|
127
120
|
post: "post";
|
|
128
121
|
quest: "quest";
|
|
129
122
|
comment: "comment";
|
|
130
123
|
conversation: "conversation";
|
|
131
|
-
blueprint: "blueprint";
|
|
132
|
-
replication: "replication";
|
|
133
124
|
}>;
|
|
134
125
|
}, z.core.$strip>;
|
|
135
126
|
declare const PermissionSchema: z.ZodObject<{
|
|
@@ -146,19 +137,17 @@ declare const PermissionSchema: z.ZodObject<{
|
|
|
146
137
|
user_id: z.ZodNullable<z.ZodUUID>;
|
|
147
138
|
org_id: z.ZodNullable<z.ZodUUID>;
|
|
148
139
|
asset_type: z.ZodEnum<{
|
|
149
|
-
user: "user";
|
|
150
140
|
organization: "organization";
|
|
141
|
+
file: "file";
|
|
142
|
+
user: "user";
|
|
151
143
|
team: "team";
|
|
152
144
|
dataset: "dataset";
|
|
153
|
-
file: "file";
|
|
154
145
|
service: "service";
|
|
155
146
|
route: "route";
|
|
156
147
|
post: "post";
|
|
157
148
|
quest: "quest";
|
|
158
149
|
comment: "comment";
|
|
159
150
|
conversation: "conversation";
|
|
160
|
-
blueprint: "blueprint";
|
|
161
|
-
replication: "replication";
|
|
162
151
|
}>;
|
|
163
152
|
asset_id: z.ZodUUID;
|
|
164
153
|
created_at: z.ZodString;
|
|
@@ -166,14 +155,14 @@ declare const PermissionSchema: z.ZodObject<{
|
|
|
166
155
|
}, z.core.$strip>;
|
|
167
156
|
declare const StatusSchema: z.ZodEnum<{
|
|
168
157
|
success: "success";
|
|
158
|
+
error: "error";
|
|
169
159
|
queued: "queued";
|
|
170
160
|
"in-progress": "in-progress";
|
|
171
161
|
"timed-out": "timed-out";
|
|
172
|
-
error: "error";
|
|
173
162
|
}>;
|
|
174
163
|
declare const SourceSchema: z.ZodEnum<{
|
|
175
|
-
api: "api";
|
|
176
164
|
web: "web";
|
|
165
|
+
api: "api";
|
|
177
166
|
}>;
|
|
178
167
|
|
|
179
168
|
type Role = z.infer<typeof RoleSchema>;
|