@ourofoundation/ouro-js 3.5.1 → 3.5.2
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-XQQVHVWP.js → chunk-35CJDNHH.js} +2 -2
- package/dist/{chunk-XQQVHVWP.js.map → chunk-35CJDNHH.js.map} +1 -1
- package/dist/{chunk-6XQFD2Z2.cjs → chunk-6GPIZJ4T.cjs} +2 -2
- package/dist/chunk-6GPIZJ4T.cjs.map +1 -0
- package/dist/{chunk-HN7Y7VMJ.cjs → chunk-6ZJQTECB.cjs} +2 -2
- package/dist/{chunk-HN7Y7VMJ.cjs.map → chunk-6ZJQTECB.cjs.map} +1 -1
- package/dist/{chunk-6FG474SV.cjs → chunk-BWAEBQKV.cjs} +2 -2
- package/dist/chunk-BWAEBQKV.cjs.map +1 -0
- package/dist/{chunk-DC6TYS3A.cjs → chunk-F5CWCYOP.cjs} +2 -2
- package/dist/chunk-F5CWCYOP.cjs.map +1 -0
- package/dist/{chunk-NJQ5YWYJ.cjs → chunk-HIXNQKVP.cjs} +2 -2
- package/dist/{chunk-NJQ5YWYJ.cjs.map → chunk-HIXNQKVP.cjs.map} +1 -1
- package/dist/{chunk-OS542EYD.js → chunk-IWOXGKK4.js} +2 -2
- package/dist/chunk-IWOXGKK4.js.map +1 -0
- package/dist/chunk-KCVE35IO.js +2 -0
- package/dist/chunk-KCVE35IO.js.map +1 -0
- package/dist/chunk-MLTO7TMM.js +2 -0
- package/dist/chunk-MLTO7TMM.js.map +1 -0
- package/dist/{chunk-EK5P7FST.js → chunk-R2W4NEEJ.js} +2 -2
- package/dist/chunk-R2W4NEEJ.js.map +1 -0
- package/dist/{chunk-M2JJPDBW.js → chunk-TYOQ32UV.js} +2 -2
- package/dist/{chunk-M2JJPDBW.js.map → chunk-TYOQ32UV.js.map} +1 -1
- package/dist/chunk-V73EW77Y.cjs +2 -0
- package/dist/chunk-V73EW77Y.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/schema/assets.d.cts +84 -84
- package/dist/schema/assets.d.ts +84 -84
- package/dist/schema/comments.d.cts +136 -136
- package/dist/schema/comments.d.ts +136 -136
- package/dist/schema/common.d.cts +16 -16
- package/dist/schema/common.d.ts +16 -16
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +69 -69
- package/dist/schema/conversations.d.ts +69 -69
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.d.cts +137 -137
- package/dist/schema/datasets.d.ts +137 -137
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +100 -103
- package/dist/schema/files.d.ts +100 -103
- package/dist/schema/files.js +1 -1
- package/dist/schema/notifications.d.cts +2 -2
- package/dist/schema/notifications.d.ts +2 -2
- package/dist/schema/organizations.d.cts +1 -1
- package/dist/schema/organizations.d.ts +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +127 -130
- package/dist/schema/posts.d.ts +127 -130
- package/dist/schema/posts.js +1 -1
- package/dist/schema/quests.cjs +1 -1
- package/dist/schema/quests.d.cts +177 -180
- package/dist/schema/quests.d.ts +177 -180
- package/dist/schema/quests.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +127 -130
- package/dist/schema/services.d.ts +127 -130
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.d.cts +18 -18
- package/dist/schema/teams.d.ts +18 -18
- package/dist/utils/quest-submission.cjs +1 -1
- package/dist/utils/quest-submission.d.cts +7 -7
- package/dist/utils/quest-submission.d.ts +7 -7
- package/dist/utils/quest-submission.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-6FG474SV.cjs.map +0 -1
- package/dist/chunk-6XQFD2Z2.cjs.map +0 -1
- package/dist/chunk-DC6TYS3A.cjs.map +0 -1
- package/dist/chunk-EK5P7FST.js.map +0 -1
- package/dist/chunk-OFDJA6ZW.cjs +0 -2
- package/dist/chunk-OFDJA6ZW.cjs.map +0 -1
- package/dist/chunk-OS542EYD.js.map +0 -1
- package/dist/chunk-VJJLRHOX.js +0 -2
- package/dist/chunk-VJJLRHOX.js.map +0 -1
- package/dist/chunk-W5UCZ73B.js +0 -2
- package/dist/chunk-W5UCZ73B.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
|
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
235
235
|
created_at: z.ZodString;
|
|
@@ -241,30 +241,6 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
241
241
|
}, z.core.$strip>>>>;
|
|
242
242
|
}, z.core.$strip>;
|
|
243
243
|
declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
244
|
-
user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
245
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
246
|
-
user_id: z.ZodOptional<z.ZodUUID>;
|
|
247
|
-
username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
248
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
249
|
-
avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
250
|
-
bio: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
251
|
-
is_provisioned: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
252
|
-
claimed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
253
|
-
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
254
|
-
value: z.ZodString;
|
|
255
|
-
}, z.core.$strip>>>>;
|
|
256
|
-
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
257
|
-
actor_type: z.ZodOptional<z.ZodEnum<{
|
|
258
|
-
base: "base";
|
|
259
|
-
agent: "agent";
|
|
260
|
-
verified: "verified";
|
|
261
|
-
}>>;
|
|
262
|
-
plan_type: z.ZodOptional<z.ZodEnum<{
|
|
263
|
-
free: "free";
|
|
264
|
-
gold: "gold";
|
|
265
|
-
}>>;
|
|
266
|
-
last_active: z.ZodOptional<z.ZodString>;
|
|
267
|
-
}, z.core.$strip>>>;
|
|
268
244
|
organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
269
245
|
id: z.ZodOptional<z.ZodUUID>;
|
|
270
246
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -297,6 +273,56 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
297
273
|
api_only: "api_only";
|
|
298
274
|
}>>>>;
|
|
299
275
|
}, z.core.$strip>>>;
|
|
276
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
277
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
278
|
+
web: "web";
|
|
279
|
+
api: "api";
|
|
280
|
+
}>>;
|
|
281
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
282
|
+
public: "public";
|
|
283
|
+
private: "private";
|
|
284
|
+
organization: "organization";
|
|
285
|
+
monetized: "monetized";
|
|
286
|
+
inherit: "inherit";
|
|
287
|
+
}>>;
|
|
288
|
+
monetization: z.ZodOptional<z.ZodEnum<{
|
|
289
|
+
none: "none";
|
|
290
|
+
"pay-to-unlock": "pay-to-unlock";
|
|
291
|
+
"pay-per-use": "pay-per-use";
|
|
292
|
+
}>>;
|
|
293
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
294
|
+
success: "success";
|
|
295
|
+
error: "error";
|
|
296
|
+
queued: "queued";
|
|
297
|
+
"in-progress": "in-progress";
|
|
298
|
+
"timed-out": "timed-out";
|
|
299
|
+
}>>;
|
|
300
|
+
user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
301
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
302
|
+
user_id: z.ZodOptional<z.ZodUUID>;
|
|
303
|
+
username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
304
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
305
|
+
avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
306
|
+
bio: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
307
|
+
is_provisioned: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
308
|
+
claimed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
309
|
+
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
310
|
+
value: z.ZodString;
|
|
311
|
+
}, z.core.$strip>>>>;
|
|
312
|
+
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
313
|
+
actor_type: z.ZodOptional<z.ZodEnum<{
|
|
314
|
+
base: "base";
|
|
315
|
+
agent: "agent";
|
|
316
|
+
verified: "verified";
|
|
317
|
+
}>>;
|
|
318
|
+
plan_type: z.ZodOptional<z.ZodEnum<{
|
|
319
|
+
free: "free";
|
|
320
|
+
gold: "gold";
|
|
321
|
+
}>>;
|
|
322
|
+
last_active: z.ZodOptional<z.ZodString>;
|
|
323
|
+
}, z.core.$strip>>>;
|
|
324
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
325
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
300
326
|
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
301
327
|
id: z.ZodOptional<z.ZodUUID>;
|
|
302
328
|
org_id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -344,9 +370,9 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
344
370
|
none: "none";
|
|
345
371
|
}>>;
|
|
346
372
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
347
|
-
organization: "organization";
|
|
348
373
|
public: "public";
|
|
349
374
|
private: "private";
|
|
375
|
+
organization: "organization";
|
|
350
376
|
monetized: "monetized";
|
|
351
377
|
inherit: "inherit";
|
|
352
378
|
}>>;
|
|
@@ -406,49 +432,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
406
432
|
}, z.core.$strip>>>;
|
|
407
433
|
created_at: z.ZodOptional<z.ZodString>;
|
|
408
434
|
}, z.core.$strip>>>;
|
|
409
|
-
org_id: z.ZodOptional<z.ZodUUID>;
|
|
410
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
411
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
412
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
413
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
414
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
415
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
416
|
-
originality: z.ZodEnum<{
|
|
417
|
-
original: "original";
|
|
418
|
-
derivative: "derivative";
|
|
419
|
-
"third-party": "third-party";
|
|
420
|
-
}>;
|
|
421
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
422
|
-
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
423
|
-
}, z.core.$strip>>>>;
|
|
424
|
-
team_id: z.ZodOptional<z.ZodUUID>;
|
|
425
|
-
visibility: z.ZodOptional<z.ZodEnum<{
|
|
426
|
-
organization: "organization";
|
|
427
|
-
public: "public";
|
|
428
|
-
private: "private";
|
|
429
|
-
monetized: "monetized";
|
|
430
|
-
inherit: "inherit";
|
|
431
|
-
}>>;
|
|
432
435
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
433
436
|
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
434
437
|
text: z.ZodString;
|
|
435
438
|
}, z.core.$strip>>>>;
|
|
436
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
437
|
-
api: "api";
|
|
438
|
-
web: "web";
|
|
439
|
-
}>>;
|
|
440
|
-
monetization: z.ZodOptional<z.ZodEnum<{
|
|
441
|
-
none: "none";
|
|
442
|
-
"pay-to-unlock": "pay-to-unlock";
|
|
443
|
-
"pay-per-use": "pay-per-use";
|
|
444
|
-
}>>;
|
|
445
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
446
|
-
success: "success";
|
|
447
|
-
queued: "queued";
|
|
448
|
-
"in-progress": "in-progress";
|
|
449
|
-
"timed-out": "timed-out";
|
|
450
|
-
error: "error";
|
|
451
|
-
}>>;
|
|
452
439
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
453
440
|
license_id: z.ZodOptional<z.ZodString>;
|
|
454
441
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -468,6 +455,19 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
468
455
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
469
456
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
470
457
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
458
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
459
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
460
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
461
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
462
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
463
|
+
originality: z.ZodEnum<{
|
|
464
|
+
original: "original";
|
|
465
|
+
derivative: "derivative";
|
|
466
|
+
"third-party": "third-party";
|
|
467
|
+
}>;
|
|
468
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
469
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
470
|
+
}, z.core.$strip>>>>;
|
|
471
471
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
472
472
|
type: z.ZodString;
|
|
473
473
|
content: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -484,23 +484,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
484
484
|
name: string;
|
|
485
485
|
created_at: string;
|
|
486
486
|
last_updated: string;
|
|
487
|
-
user?: {
|
|
488
|
-
id?: string | undefined;
|
|
489
|
-
user_id?: string | undefined;
|
|
490
|
-
username?: string | null | undefined;
|
|
491
|
-
name?: string | null | undefined;
|
|
492
|
-
avatar_path?: string | null | undefined;
|
|
493
|
-
bio?: string | null | undefined;
|
|
494
|
-
is_provisioned?: boolean | undefined;
|
|
495
|
-
claimed_at?: string | null | undefined;
|
|
496
|
-
urls?: {
|
|
497
|
-
value: string;
|
|
498
|
-
}[] | undefined;
|
|
499
|
-
post_id?: string | null | undefined;
|
|
500
|
-
actor_type?: "base" | "agent" | "verified" | undefined;
|
|
501
|
-
plan_type?: "free" | "gold" | undefined;
|
|
502
|
-
last_active?: string | undefined;
|
|
503
|
-
} | undefined;
|
|
504
487
|
organization?: {
|
|
505
488
|
id?: string | undefined;
|
|
506
489
|
name?: string | undefined;
|
|
@@ -520,6 +503,30 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
520
503
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
|
|
521
504
|
source_policy?: "any" | "web_only" | "api_only" | undefined;
|
|
522
505
|
} | undefined;
|
|
506
|
+
parent?: Record<string, any> | undefined;
|
|
507
|
+
source?: "web" | "api" | undefined;
|
|
508
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
509
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
510
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
511
|
+
user?: {
|
|
512
|
+
id?: string | undefined;
|
|
513
|
+
user_id?: string | undefined;
|
|
514
|
+
username?: string | null | undefined;
|
|
515
|
+
name?: string | null | undefined;
|
|
516
|
+
avatar_path?: string | null | undefined;
|
|
517
|
+
bio?: string | null | undefined;
|
|
518
|
+
is_provisioned?: boolean | undefined;
|
|
519
|
+
claimed_at?: string | null | undefined;
|
|
520
|
+
urls?: {
|
|
521
|
+
value: string;
|
|
522
|
+
}[] | undefined;
|
|
523
|
+
post_id?: string | null | undefined;
|
|
524
|
+
actor_type?: "base" | "agent" | "verified" | undefined;
|
|
525
|
+
plan_type?: "free" | "gold" | undefined;
|
|
526
|
+
last_active?: string | undefined;
|
|
527
|
+
} | undefined;
|
|
528
|
+
org_id?: string | undefined;
|
|
529
|
+
team_id?: string | undefined;
|
|
523
530
|
team?: {
|
|
524
531
|
id?: string | undefined;
|
|
525
532
|
org_id?: string | undefined;
|
|
@@ -548,7 +555,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
548
555
|
json: Record<string, any>;
|
|
549
556
|
} | null | undefined;
|
|
550
557
|
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
551
|
-
visibility?: "
|
|
558
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
552
559
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
|
|
553
560
|
source_policy?: "any" | "web_only" | "api_only" | null | undefined;
|
|
554
561
|
userMembership?: {
|
|
@@ -580,26 +587,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
580
587
|
}[] | undefined;
|
|
581
588
|
created_at?: string | undefined;
|
|
582
589
|
} | undefined;
|
|
583
|
-
org_id?: string | undefined;
|
|
584
|
-
parent?: Record<string, any> | undefined;
|
|
585
|
-
metadata?: {
|
|
586
|
-
originality: "original" | "derivative" | "third-party";
|
|
587
|
-
doi_url?: string | null | undefined;
|
|
588
|
-
external_url?: string | null | undefined;
|
|
589
|
-
paper_url?: string | null | undefined;
|
|
590
|
-
github_url?: string | null | undefined;
|
|
591
|
-
source?: string | null | undefined;
|
|
592
|
-
reply_to_comment_id?: string | null | undefined;
|
|
593
|
-
} | null | undefined;
|
|
594
|
-
team_id?: string | undefined;
|
|
595
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
596
590
|
description?: {
|
|
597
591
|
json: Record<string, any>;
|
|
598
592
|
text: string;
|
|
599
593
|
} | null | undefined;
|
|
600
|
-
source?: "api" | "web" | undefined;
|
|
601
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
602
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
603
594
|
parent_id?: string | null | undefined;
|
|
604
595
|
license_id?: string | undefined;
|
|
605
596
|
license?: Record<string, any> | undefined;
|
|
@@ -613,6 +604,15 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
613
604
|
stripe_product_id?: string | null | undefined;
|
|
614
605
|
stripe_price_id?: string | null | undefined;
|
|
615
606
|
stripe_meter_id?: string | null | undefined;
|
|
607
|
+
metadata?: {
|
|
608
|
+
originality: "original" | "derivative" | "third-party";
|
|
609
|
+
doi_url?: string | null | undefined;
|
|
610
|
+
external_url?: string | null | undefined;
|
|
611
|
+
paper_url?: string | null | undefined;
|
|
612
|
+
github_url?: string | null | undefined;
|
|
613
|
+
source?: string | null | undefined;
|
|
614
|
+
reply_to_comment_id?: string | null | undefined;
|
|
615
|
+
} | null | undefined;
|
|
616
616
|
preview?: {
|
|
617
617
|
type: string;
|
|
618
618
|
content: Record<string, any>[];
|
|
@@ -624,23 +624,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
624
624
|
name: string;
|
|
625
625
|
created_at: string;
|
|
626
626
|
last_updated: string;
|
|
627
|
-
user?: {
|
|
628
|
-
id?: string | undefined;
|
|
629
|
-
user_id?: string | undefined;
|
|
630
|
-
username?: string | null | undefined;
|
|
631
|
-
name?: string | null | undefined;
|
|
632
|
-
avatar_path?: string | null | undefined;
|
|
633
|
-
bio?: string | null | undefined;
|
|
634
|
-
is_provisioned?: boolean | undefined;
|
|
635
|
-
claimed_at?: string | null | undefined;
|
|
636
|
-
urls?: {
|
|
637
|
-
value: string;
|
|
638
|
-
}[] | undefined;
|
|
639
|
-
post_id?: string | null | undefined;
|
|
640
|
-
actor_type?: "base" | "agent" | "verified" | undefined;
|
|
641
|
-
plan_type?: "free" | "gold" | undefined;
|
|
642
|
-
last_active?: string | undefined;
|
|
643
|
-
} | undefined;
|
|
644
627
|
organization?: {
|
|
645
628
|
id?: string | undefined;
|
|
646
629
|
name?: string | undefined;
|
|
@@ -660,6 +643,30 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
660
643
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
|
|
661
644
|
source_policy?: "any" | "web_only" | "api_only" | undefined;
|
|
662
645
|
} | undefined;
|
|
646
|
+
parent?: Record<string, any> | undefined;
|
|
647
|
+
source?: "web" | "api" | undefined;
|
|
648
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
649
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
650
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
651
|
+
user?: {
|
|
652
|
+
id?: string | undefined;
|
|
653
|
+
user_id?: string | undefined;
|
|
654
|
+
username?: string | null | undefined;
|
|
655
|
+
name?: string | null | undefined;
|
|
656
|
+
avatar_path?: string | null | undefined;
|
|
657
|
+
bio?: string | null | undefined;
|
|
658
|
+
is_provisioned?: boolean | undefined;
|
|
659
|
+
claimed_at?: string | null | undefined;
|
|
660
|
+
urls?: {
|
|
661
|
+
value: string;
|
|
662
|
+
}[] | undefined;
|
|
663
|
+
post_id?: string | null | undefined;
|
|
664
|
+
actor_type?: "base" | "agent" | "verified" | undefined;
|
|
665
|
+
plan_type?: "free" | "gold" | undefined;
|
|
666
|
+
last_active?: string | undefined;
|
|
667
|
+
} | undefined;
|
|
668
|
+
org_id?: string | undefined;
|
|
669
|
+
team_id?: string | undefined;
|
|
663
670
|
team?: {
|
|
664
671
|
id?: string | undefined;
|
|
665
672
|
org_id?: string | undefined;
|
|
@@ -688,7 +695,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
688
695
|
json: Record<string, any>;
|
|
689
696
|
} | null | undefined;
|
|
690
697
|
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
691
|
-
visibility?: "
|
|
698
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
692
699
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
|
|
693
700
|
source_policy?: "any" | "web_only" | "api_only" | null | undefined;
|
|
694
701
|
userMembership?: {
|
|
@@ -720,26 +727,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
720
727
|
}[] | undefined;
|
|
721
728
|
created_at?: string | undefined;
|
|
722
729
|
} | undefined;
|
|
723
|
-
org_id?: string | undefined;
|
|
724
|
-
parent?: Record<string, any> | undefined;
|
|
725
|
-
metadata?: {
|
|
726
|
-
originality: "original" | "derivative" | "third-party";
|
|
727
|
-
doi_url?: string | null | undefined;
|
|
728
|
-
external_url?: string | null | undefined;
|
|
729
|
-
paper_url?: string | null | undefined;
|
|
730
|
-
github_url?: string | null | undefined;
|
|
731
|
-
source?: string | null | undefined;
|
|
732
|
-
reply_to_comment_id?: string | null | undefined;
|
|
733
|
-
} | null | undefined;
|
|
734
|
-
team_id?: string | undefined;
|
|
735
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
736
730
|
description?: {
|
|
737
731
|
json: Record<string, any>;
|
|
738
732
|
text: string;
|
|
739
733
|
} | null | undefined;
|
|
740
|
-
source?: "api" | "web" | undefined;
|
|
741
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
742
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
743
734
|
parent_id?: string | null | undefined;
|
|
744
735
|
license_id?: string | undefined;
|
|
745
736
|
license?: Record<string, any> | undefined;
|
|
@@ -753,6 +744,15 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
753
744
|
stripe_product_id?: string | null | undefined;
|
|
754
745
|
stripe_price_id?: string | null | undefined;
|
|
755
746
|
stripe_meter_id?: string | null | undefined;
|
|
747
|
+
metadata?: {
|
|
748
|
+
originality: "original" | "derivative" | "third-party";
|
|
749
|
+
doi_url?: string | null | undefined;
|
|
750
|
+
external_url?: string | null | undefined;
|
|
751
|
+
paper_url?: string | null | undefined;
|
|
752
|
+
github_url?: string | null | undefined;
|
|
753
|
+
source?: string | null | undefined;
|
|
754
|
+
reply_to_comment_id?: string | null | undefined;
|
|
755
|
+
} | null | undefined;
|
|
756
756
|
preview?: {
|
|
757
757
|
type: string;
|
|
758
758
|
content: Record<string, any>[];
|