@ourofoundation/ouro-js 3.2.5 → 3.4.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-36UOEIZN.js +2 -0
- package/dist/chunk-36UOEIZN.js.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-4KDHR4VP.js +2 -0
- package/dist/chunk-4KDHR4VP.js.map +1 -0
- 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-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-IU7AKVYI.cjs +2 -0
- package/dist/chunk-IU7AKVYI.cjs.map +1 -0
- 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-NEINJFFK.cjs +2 -0
- package/dist/{chunk-CVFVOARW.cjs.map → chunk-NEINJFFK.cjs.map} +1 -1
- package/dist/chunk-NRZCTFCQ.cjs +2 -0
- package/dist/chunk-NRZCTFCQ.cjs.map +1 -0
- 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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/schema/assets.cjs +1 -1
- package/dist/schema/assets.d.cts +77 -83
- package/dist/schema/assets.d.ts +77 -83
- package/dist/schema/assets.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +73 -73
- package/dist/schema/comments.d.ts +73 -73
- package/dist/schema/comments.js +1 -1
- package/dist/schema/common.cjs +1 -1
- package/dist/schema/common.d.cts +10 -21
- package/dist/schema/common.d.ts +10 -21
- package/dist/schema/common.js +1 -1
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +62 -64
- package/dist/schema/conversations.d.ts +62 -64
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +97 -97
- package/dist/schema/datasets.d.ts +97 -97
- 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 +91 -91
- package/dist/schema/files.d.ts +91 -91
- package/dist/schema/files.js +1 -1
- package/dist/schema/notifications.cjs +1 -1
- package/dist/schema/notifications.d.cts +1 -3
- package/dist/schema/notifications.d.ts +1 -3
- package/dist/schema/notifications.js +1 -1
- package/dist/schema/organizations.cjs +1 -1
- package/dist/schema/organizations.js +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +110 -120
- package/dist/schema/posts.d.ts +110 -120
- package/dist/schema/posts.js +1 -1
- package/dist/schema/quests.cjs +2 -0
- package/dist/schema/quests.cjs.map +1 -0
- package/dist/schema/quests.d.cts +1140 -0
- package/dist/schema/quests.d.ts +1140 -0
- package/dist/schema/quests.js +2 -0
- package/dist/schema/quests.js.map +1 -0
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +141 -114
- package/dist/schema/services.d.ts +141 -114
- package/dist/schema/services.js +1 -1
- package/dist/schema/tags.d.cts +7 -7
- package/dist/schema/tags.d.ts +7 -7
- package/dist/schema/teams.cjs +1 -1
- package/dist/schema/teams.d.cts +15 -15
- package/dist/schema/teams.d.ts +15 -15
- package/dist/schema/teams.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-5V7HPXUK.js +0 -2
- package/dist/chunk-5V7HPXUK.js.map +0 -1
- package/dist/chunk-6AK3RVZR.cjs +0 -2
- package/dist/chunk-6AK3RVZR.cjs.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-D7S2GB7Z.cjs +0 -2
- package/dist/chunk-D7S2GB7Z.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/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
package/dist/schema/posts.d.cts
CHANGED
|
@@ -219,32 +219,30 @@ declare const PostSchema: z.ZodObject<{
|
|
|
219
219
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
220
220
|
state: z.ZodEnum<{
|
|
221
221
|
success: "success";
|
|
222
|
-
error: "error";
|
|
223
222
|
queued: "queued";
|
|
224
223
|
"in-progress": "in-progress";
|
|
225
224
|
"timed-out": "timed-out";
|
|
225
|
+
error: "error";
|
|
226
226
|
}>;
|
|
227
227
|
source: z.ZodEnum<{
|
|
228
|
-
web: "web";
|
|
229
228
|
api: "api";
|
|
229
|
+
web: "web";
|
|
230
230
|
}>;
|
|
231
231
|
created_at: z.ZodString;
|
|
232
232
|
last_updated: z.ZodString;
|
|
233
233
|
name: z.ZodNullable<z.ZodString>;
|
|
234
234
|
asset_type: z.ZodEnum<{
|
|
235
|
-
file: "file";
|
|
236
235
|
user: "user";
|
|
237
236
|
organization: "organization";
|
|
238
237
|
team: "team";
|
|
239
238
|
dataset: "dataset";
|
|
239
|
+
file: "file";
|
|
240
240
|
service: "service";
|
|
241
241
|
route: "route";
|
|
242
242
|
post: "post";
|
|
243
243
|
quest: "quest";
|
|
244
244
|
comment: "comment";
|
|
245
245
|
conversation: "conversation";
|
|
246
|
-
blueprint: "blueprint";
|
|
247
|
-
replication: "replication";
|
|
248
246
|
}>;
|
|
249
247
|
metadata: z.ZodObject<{
|
|
250
248
|
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -273,15 +271,28 @@ declare const PostSchema: z.ZodObject<{
|
|
|
273
271
|
}, z.core.$strip>;
|
|
274
272
|
declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
275
273
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
274
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
275
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
276
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
278
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
279
|
+
originality: z.ZodEnum<{
|
|
280
|
+
original: "original";
|
|
281
|
+
derivative: "derivative";
|
|
282
|
+
"third-party": "third-party";
|
|
283
|
+
}>;
|
|
284
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
285
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
|
+
}, z.core.$strip>>>>;
|
|
287
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
288
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
289
|
+
text: z.ZodString;
|
|
290
|
+
}, z.core.$strip>>>>;
|
|
276
291
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
277
292
|
none: "none";
|
|
278
293
|
"pay-to-unlock": "pay-to-unlock";
|
|
279
294
|
"pay-per-use": "pay-per-use";
|
|
280
295
|
}>>;
|
|
281
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
282
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
283
|
-
text: z.ZodString;
|
|
284
|
-
}, z.core.$strip>>>>;
|
|
285
296
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
286
297
|
license_id: z.ZodOptional<z.ZodString>;
|
|
287
298
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -298,33 +309,20 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
298
309
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
299
310
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
300
311
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
301
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
302
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
303
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
|
-
originality: z.ZodEnum<{
|
|
307
|
-
original: "original";
|
|
308
|
-
derivative: "derivative";
|
|
309
|
-
"third-party": "third-party";
|
|
310
|
-
}>;
|
|
311
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
312
|
-
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
|
-
}, z.core.$strip>>>>;
|
|
314
312
|
id: z.ZodDefault<z.ZodUUID>;
|
|
315
313
|
team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
316
314
|
org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
317
315
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
318
316
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
319
317
|
success: "success";
|
|
320
|
-
error: "error";
|
|
321
318
|
queued: "queued";
|
|
322
319
|
"in-progress": "in-progress";
|
|
323
320
|
"timed-out": "timed-out";
|
|
321
|
+
error: "error";
|
|
324
322
|
}>>>;
|
|
325
323
|
source: z.ZodDefault<z.ZodEnum<{
|
|
326
|
-
web: "web";
|
|
327
324
|
api: "api";
|
|
325
|
+
web: "web";
|
|
328
326
|
}>>;
|
|
329
327
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
330
328
|
organization: "organization";
|
|
@@ -345,8 +343,8 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
345
343
|
id: string;
|
|
346
344
|
team_id: string | null;
|
|
347
345
|
org_id: string | null;
|
|
348
|
-
state: "success" | "
|
|
349
|
-
source: "
|
|
346
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
347
|
+
source: "api" | "web";
|
|
350
348
|
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
351
349
|
created_at: string;
|
|
352
350
|
last_updated: string;
|
|
@@ -357,11 +355,20 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
357
355
|
content: any[];
|
|
358
356
|
};
|
|
359
357
|
parent?: Record<string, any> | undefined;
|
|
360
|
-
|
|
358
|
+
metadata?: {
|
|
359
|
+
originality: "original" | "derivative" | "third-party";
|
|
360
|
+
doi_url?: string | null | undefined;
|
|
361
|
+
external_url?: string | null | undefined;
|
|
362
|
+
paper_url?: string | null | undefined;
|
|
363
|
+
github_url?: string | null | undefined;
|
|
364
|
+
source?: string | null | undefined;
|
|
365
|
+
reply_to_comment_id?: string | null | undefined;
|
|
366
|
+
} | null | undefined;
|
|
361
367
|
description?: {
|
|
362
368
|
json: Record<string, any>;
|
|
363
369
|
text: string;
|
|
364
370
|
} | null | undefined;
|
|
371
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
365
372
|
parent_id?: string | null | undefined;
|
|
366
373
|
license_id?: string | undefined;
|
|
367
374
|
price?: number | null | undefined;
|
|
@@ -372,22 +379,13 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
372
379
|
stripe_product_id?: string | null | undefined;
|
|
373
380
|
stripe_price_id?: string | null | undefined;
|
|
374
381
|
stripe_meter_id?: string | null | undefined;
|
|
375
|
-
metadata?: {
|
|
376
|
-
originality: "original" | "derivative" | "third-party";
|
|
377
|
-
doi_url?: string | null | undefined;
|
|
378
|
-
external_url?: string | null | undefined;
|
|
379
|
-
paper_url?: string | null | undefined;
|
|
380
|
-
github_url?: string | null | undefined;
|
|
381
|
-
source?: string | null | undefined;
|
|
382
|
-
reply_to_comment_id?: string | null | undefined;
|
|
383
|
-
} | null | undefined;
|
|
384
382
|
name_url_slug?: string | null | undefined;
|
|
385
383
|
}, {
|
|
386
384
|
id: string;
|
|
387
385
|
team_id: string | null;
|
|
388
386
|
org_id: string | null;
|
|
389
|
-
state: "success" | "
|
|
390
|
-
source: "
|
|
387
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
388
|
+
source: "api" | "web";
|
|
391
389
|
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
392
390
|
created_at: string;
|
|
393
391
|
last_updated: string;
|
|
@@ -398,11 +396,20 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
398
396
|
content: any[];
|
|
399
397
|
};
|
|
400
398
|
parent?: Record<string, any> | undefined;
|
|
401
|
-
|
|
399
|
+
metadata?: {
|
|
400
|
+
originality: "original" | "derivative" | "third-party";
|
|
401
|
+
doi_url?: string | null | undefined;
|
|
402
|
+
external_url?: string | null | undefined;
|
|
403
|
+
paper_url?: string | null | undefined;
|
|
404
|
+
github_url?: string | null | undefined;
|
|
405
|
+
source?: string | null | undefined;
|
|
406
|
+
reply_to_comment_id?: string | null | undefined;
|
|
407
|
+
} | null | undefined;
|
|
402
408
|
description?: {
|
|
403
409
|
json: Record<string, any>;
|
|
404
410
|
text: string;
|
|
405
411
|
} | null | undefined;
|
|
412
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
406
413
|
parent_id?: string | null | undefined;
|
|
407
414
|
license_id?: string | undefined;
|
|
408
415
|
price?: number | null | undefined;
|
|
@@ -413,15 +420,6 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
413
420
|
stripe_product_id?: string | null | undefined;
|
|
414
421
|
stripe_price_id?: string | null | undefined;
|
|
415
422
|
stripe_meter_id?: string | null | undefined;
|
|
416
|
-
metadata?: {
|
|
417
|
-
originality: "original" | "derivative" | "third-party";
|
|
418
|
-
doi_url?: string | null | undefined;
|
|
419
|
-
external_url?: string | null | undefined;
|
|
420
|
-
paper_url?: string | null | undefined;
|
|
421
|
-
github_url?: string | null | undefined;
|
|
422
|
-
source?: string | null | undefined;
|
|
423
|
-
reply_to_comment_id?: string | null | undefined;
|
|
424
|
-
} | null | undefined;
|
|
425
423
|
name_url_slug?: string | null | undefined;
|
|
426
424
|
}>>;
|
|
427
425
|
declare const ReadPostSchema: z.ZodObject<{
|
|
@@ -632,32 +630,30 @@ declare const ReadPostSchema: z.ZodObject<{
|
|
|
632
630
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
633
631
|
state: z.ZodEnum<{
|
|
634
632
|
success: "success";
|
|
635
|
-
error: "error";
|
|
636
633
|
queued: "queued";
|
|
637
634
|
"in-progress": "in-progress";
|
|
638
635
|
"timed-out": "timed-out";
|
|
636
|
+
error: "error";
|
|
639
637
|
}>;
|
|
640
638
|
source: z.ZodEnum<{
|
|
641
|
-
web: "web";
|
|
642
639
|
api: "api";
|
|
640
|
+
web: "web";
|
|
643
641
|
}>;
|
|
644
642
|
created_at: z.ZodString;
|
|
645
643
|
last_updated: z.ZodString;
|
|
646
644
|
name: z.ZodNullable<z.ZodString>;
|
|
647
645
|
asset_type: z.ZodEnum<{
|
|
648
|
-
file: "file";
|
|
649
646
|
user: "user";
|
|
650
647
|
organization: "organization";
|
|
651
648
|
team: "team";
|
|
652
649
|
dataset: "dataset";
|
|
650
|
+
file: "file";
|
|
653
651
|
service: "service";
|
|
654
652
|
route: "route";
|
|
655
653
|
post: "post";
|
|
656
654
|
quest: "quest";
|
|
657
655
|
comment: "comment";
|
|
658
656
|
conversation: "conversation";
|
|
659
|
-
blueprint: "blueprint";
|
|
660
|
-
replication: "replication";
|
|
661
657
|
}>;
|
|
662
658
|
metadata: z.ZodObject<{
|
|
663
659
|
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -896,32 +892,30 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
|
|
|
896
892
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
897
893
|
state: z.ZodEnum<{
|
|
898
894
|
success: "success";
|
|
899
|
-
error: "error";
|
|
900
895
|
queued: "queued";
|
|
901
896
|
"in-progress": "in-progress";
|
|
902
897
|
"timed-out": "timed-out";
|
|
898
|
+
error: "error";
|
|
903
899
|
}>;
|
|
904
900
|
source: z.ZodEnum<{
|
|
905
|
-
web: "web";
|
|
906
901
|
api: "api";
|
|
902
|
+
web: "web";
|
|
907
903
|
}>;
|
|
908
904
|
created_at: z.ZodString;
|
|
909
905
|
last_updated: z.ZodString;
|
|
910
906
|
name: z.ZodNullable<z.ZodString>;
|
|
911
907
|
asset_type: z.ZodEnum<{
|
|
912
|
-
file: "file";
|
|
913
908
|
user: "user";
|
|
914
909
|
organization: "organization";
|
|
915
910
|
team: "team";
|
|
916
911
|
dataset: "dataset";
|
|
912
|
+
file: "file";
|
|
917
913
|
service: "service";
|
|
918
914
|
route: "route";
|
|
919
915
|
post: "post";
|
|
920
916
|
quest: "quest";
|
|
921
917
|
comment: "comment";
|
|
922
918
|
conversation: "conversation";
|
|
923
|
-
blueprint: "blueprint";
|
|
924
|
-
replication: "replication";
|
|
925
919
|
}>;
|
|
926
920
|
metadata: z.ZodObject<{
|
|
927
921
|
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -1160,32 +1154,30 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1160
1154
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1161
1155
|
state: z.ZodEnum<{
|
|
1162
1156
|
success: "success";
|
|
1163
|
-
error: "error";
|
|
1164
1157
|
queued: "queued";
|
|
1165
1158
|
"in-progress": "in-progress";
|
|
1166
1159
|
"timed-out": "timed-out";
|
|
1160
|
+
error: "error";
|
|
1167
1161
|
}>;
|
|
1168
1162
|
source: z.ZodEnum<{
|
|
1169
|
-
web: "web";
|
|
1170
1163
|
api: "api";
|
|
1164
|
+
web: "web";
|
|
1171
1165
|
}>;
|
|
1172
1166
|
created_at: z.ZodString;
|
|
1173
1167
|
last_updated: z.ZodString;
|
|
1174
1168
|
name: z.ZodNullable<z.ZodString>;
|
|
1175
1169
|
asset_type: z.ZodEnum<{
|
|
1176
|
-
file: "file";
|
|
1177
1170
|
user: "user";
|
|
1178
1171
|
organization: "organization";
|
|
1179
1172
|
team: "team";
|
|
1180
1173
|
dataset: "dataset";
|
|
1174
|
+
file: "file";
|
|
1181
1175
|
service: "service";
|
|
1182
1176
|
route: "route";
|
|
1183
1177
|
post: "post";
|
|
1184
1178
|
quest: "quest";
|
|
1185
1179
|
comment: "comment";
|
|
1186
1180
|
conversation: "conversation";
|
|
1187
|
-
blueprint: "blueprint";
|
|
1188
|
-
replication: "replication";
|
|
1189
1181
|
}>;
|
|
1190
1182
|
metadata: z.ZodObject<{
|
|
1191
1183
|
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -1213,26 +1205,36 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1213
1205
|
}, z.core.$strip>>;
|
|
1214
1206
|
}, z.core.$strip>>;
|
|
1215
1207
|
declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
1216
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1217
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
1218
|
-
web: "web";
|
|
1219
|
-
api: "api";
|
|
1220
|
-
}>>;
|
|
1221
1208
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
1222
|
-
file: "file";
|
|
1223
1209
|
user: "user";
|
|
1224
1210
|
organization: "organization";
|
|
1225
1211
|
team: "team";
|
|
1226
1212
|
dataset: "dataset";
|
|
1213
|
+
file: "file";
|
|
1227
1214
|
service: "service";
|
|
1228
1215
|
route: "route";
|
|
1229
1216
|
post: "post";
|
|
1230
1217
|
quest: "quest";
|
|
1231
1218
|
comment: "comment";
|
|
1232
1219
|
conversation: "conversation";
|
|
1233
|
-
blueprint: "blueprint";
|
|
1234
|
-
replication: "replication";
|
|
1235
1220
|
}>>;
|
|
1221
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
1222
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1223
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1224
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1225
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1226
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1227
|
+
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1228
|
+
originality: z.ZodOptional<z.ZodEnum<{
|
|
1229
|
+
original: "original";
|
|
1230
|
+
derivative: "derivative";
|
|
1231
|
+
"third-party": "third-party";
|
|
1232
|
+
}>>;
|
|
1233
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1234
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1235
|
+
}, z.core.$strip>>;
|
|
1236
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1237
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
1236
1238
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1237
1239
|
organization: "organization";
|
|
1238
1240
|
public: "public";
|
|
@@ -1240,6 +1242,14 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1240
1242
|
monetized: "monetized";
|
|
1241
1243
|
inherit: "inherit";
|
|
1242
1244
|
}>>;
|
|
1245
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1246
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1247
|
+
text: z.ZodString;
|
|
1248
|
+
}, z.core.$strip>>>>;
|
|
1249
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1250
|
+
api: "api";
|
|
1251
|
+
web: "web";
|
|
1252
|
+
}>>;
|
|
1243
1253
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
1244
1254
|
none: "none";
|
|
1245
1255
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -1247,18 +1257,11 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1247
1257
|
}>>;
|
|
1248
1258
|
state: z.ZodOptional<z.ZodEnum<{
|
|
1249
1259
|
success: "success";
|
|
1250
|
-
error: "error";
|
|
1251
1260
|
queued: "queued";
|
|
1252
1261
|
"in-progress": "in-progress";
|
|
1253
1262
|
"timed-out": "timed-out";
|
|
1263
|
+
error: "error";
|
|
1254
1264
|
}>>;
|
|
1255
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1256
|
-
org_id: z.ZodOptional<z.ZodUUID>;
|
|
1257
|
-
team_id: z.ZodOptional<z.ZodUUID>;
|
|
1258
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1259
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1260
|
-
text: z.ZodString;
|
|
1261
|
-
}, z.core.$strip>>>>;
|
|
1262
1265
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
1263
1266
|
license_id: z.ZodOptional<z.ZodString>;
|
|
1264
1267
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -1277,19 +1280,6 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1277
1280
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1278
1281
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1279
1282
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1280
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
1281
|
-
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1282
|
-
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1283
|
-
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1284
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1285
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
1286
|
-
original: "original";
|
|
1287
|
-
derivative: "derivative";
|
|
1288
|
-
"third-party": "third-party";
|
|
1289
|
-
}>>;
|
|
1290
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1291
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1292
|
-
}, z.core.$strip>>;
|
|
1293
1283
|
preview: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
1294
1284
|
type: z.ZodLiteral<"doc">;
|
|
1295
1285
|
content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
@@ -1297,19 +1287,28 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1297
1287
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
1298
1288
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1299
1289
|
last_updated: string;
|
|
1290
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
1291
|
+
org_id?: string | undefined;
|
|
1300
1292
|
parent?: Record<string, any> | undefined;
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1293
|
+
metadata?: {
|
|
1294
|
+
doi_url?: string | null | undefined;
|
|
1295
|
+
external_url?: string | null | undefined;
|
|
1296
|
+
paper_url?: string | null | undefined;
|
|
1297
|
+
github_url?: string | null | undefined;
|
|
1298
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
1299
|
+
source?: string | null | undefined;
|
|
1300
|
+
reply_to_comment_id?: string | null | undefined;
|
|
1301
|
+
} | undefined;
|
|
1306
1302
|
name?: string | null | undefined;
|
|
1307
|
-
org_id?: string | undefined;
|
|
1308
1303
|
team_id?: string | undefined;
|
|
1304
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
1309
1305
|
description?: {
|
|
1310
1306
|
json: Record<string, any>;
|
|
1311
1307
|
text: string;
|
|
1312
1308
|
} | null | undefined;
|
|
1309
|
+
source?: "api" | "web" | undefined;
|
|
1310
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1311
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
1313
1312
|
parent_id?: string | null | undefined;
|
|
1314
1313
|
license_id?: string | undefined;
|
|
1315
1314
|
license?: Record<string, any> | undefined;
|
|
@@ -1322,6 +1321,15 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1322
1321
|
stripe_product_id?: string | null | undefined;
|
|
1323
1322
|
stripe_price_id?: string | null | undefined;
|
|
1324
1323
|
stripe_meter_id?: string | null | undefined;
|
|
1324
|
+
preview?: {
|
|
1325
|
+
type: "doc";
|
|
1326
|
+
content: any[];
|
|
1327
|
+
} | undefined;
|
|
1328
|
+
}, {
|
|
1329
|
+
last_updated: string;
|
|
1330
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
1331
|
+
org_id?: string | undefined;
|
|
1332
|
+
parent?: Record<string, any> | undefined;
|
|
1325
1333
|
metadata?: {
|
|
1326
1334
|
doi_url?: string | null | undefined;
|
|
1327
1335
|
external_url?: string | null | undefined;
|
|
@@ -1331,25 +1339,16 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1331
1339
|
source?: string | null | undefined;
|
|
1332
1340
|
reply_to_comment_id?: string | null | undefined;
|
|
1333
1341
|
} | undefined;
|
|
1334
|
-
preview?: {
|
|
1335
|
-
type: "doc";
|
|
1336
|
-
content: any[];
|
|
1337
|
-
} | undefined;
|
|
1338
|
-
}, {
|
|
1339
|
-
last_updated: string;
|
|
1340
|
-
parent?: Record<string, any> | undefined;
|
|
1341
|
-
source?: "web" | "api" | undefined;
|
|
1342
|
-
asset_type?: "file" | "user" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
1343
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
1344
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1345
|
-
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
1346
1342
|
name?: string | null | undefined;
|
|
1347
|
-
org_id?: string | undefined;
|
|
1348
1343
|
team_id?: string | undefined;
|
|
1344
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
1349
1345
|
description?: {
|
|
1350
1346
|
json: Record<string, any>;
|
|
1351
1347
|
text: string;
|
|
1352
1348
|
} | null | undefined;
|
|
1349
|
+
source?: "api" | "web" | undefined;
|
|
1350
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1351
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
1353
1352
|
parent_id?: string | null | undefined;
|
|
1354
1353
|
license_id?: string | undefined;
|
|
1355
1354
|
license?: Record<string, any> | undefined;
|
|
@@ -1362,15 +1361,6 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1362
1361
|
stripe_product_id?: string | null | undefined;
|
|
1363
1362
|
stripe_price_id?: string | null | undefined;
|
|
1364
1363
|
stripe_meter_id?: string | null | undefined;
|
|
1365
|
-
metadata?: {
|
|
1366
|
-
doi_url?: string | null | undefined;
|
|
1367
|
-
external_url?: string | null | undefined;
|
|
1368
|
-
paper_url?: string | null | undefined;
|
|
1369
|
-
github_url?: string | null | undefined;
|
|
1370
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
1371
|
-
source?: string | null | undefined;
|
|
1372
|
-
reply_to_comment_id?: string | null | undefined;
|
|
1373
|
-
} | undefined;
|
|
1374
1364
|
preview?: {
|
|
1375
1365
|
type: "doc";
|
|
1376
1366
|
content: any[];
|