@ourofoundation/ouro-js 3.3.0 → 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-4KDHR4VP.js +2 -0
- package/dist/chunk-4KDHR4VP.js.map +1 -0
- package/dist/chunk-IU7AKVYI.cjs +2 -0
- package/dist/chunk-IU7AKVYI.cjs.map +1 -0
- package/dist/chunk-NRZCTFCQ.cjs +2 -0
- package/dist/chunk-NRZCTFCQ.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -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.d.cts +69 -69
- package/dist/schema/conversations.d.ts +69 -69
- package/dist/schema/datasets.d.cts +106 -106
- package/dist/schema/datasets.d.ts +106 -106
- package/dist/schema/files.d.cts +100 -100
- package/dist/schema/files.d.ts +100 -100
- 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.d.cts +127 -127
- package/dist/schema/posts.d.ts +127 -127
- 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 +159 -120
- package/dist/schema/services.d.ts +159 -120
- 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.d.cts +18 -18
- package/dist/schema/teams.d.ts +18 -18
- package/package.json +1 -1
- package/dist/chunk-42EQ7ULD.cjs +0 -2
- package/dist/chunk-42EQ7ULD.cjs.map +0 -1
- package/dist/chunk-FDKZIS34.js +0 -2
- package/dist/chunk-FDKZIS34.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";
|
|
111
112
|
public: "public";
|
|
112
113
|
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";
|
|
185
186
|
public: "public";
|
|
186
187
|
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";
|
|
226
225
|
queued: "queued";
|
|
227
226
|
"in-progress": "in-progress";
|
|
228
227
|
"timed-out": "timed-out";
|
|
228
|
+
error: "error";
|
|
229
229
|
}>;
|
|
230
230
|
source: z.ZodEnum<{
|
|
231
|
-
web: "web";
|
|
232
231
|
api: "api";
|
|
232
|
+
web: "web";
|
|
233
233
|
}>;
|
|
234
234
|
created_at: z.ZodString;
|
|
235
235
|
last_updated: z.ZodString;
|
|
@@ -240,6 +240,30 @@ 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>>>;
|
|
243
267
|
organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
244
268
|
id: z.ZodOptional<z.ZodUUID>;
|
|
245
269
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -272,56 +296,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
272
296
|
api_only: "api_only";
|
|
273
297
|
}>>>>;
|
|
274
298
|
}, 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>;
|
|
325
299
|
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
326
300
|
id: z.ZodOptional<z.ZodUUID>;
|
|
327
301
|
org_id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -369,9 +343,9 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
369
343
|
none: "none";
|
|
370
344
|
}>>;
|
|
371
345
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
346
|
+
organization: "organization";
|
|
372
347
|
public: "public";
|
|
373
348
|
private: "private";
|
|
374
|
-
organization: "organization";
|
|
375
349
|
monetized: "monetized";
|
|
376
350
|
inherit: "inherit";
|
|
377
351
|
}>>;
|
|
@@ -431,10 +405,49 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
431
405
|
}, z.core.$strip>>>;
|
|
432
406
|
created_at: z.ZodOptional<z.ZodString>;
|
|
433
407
|
}, 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
|
+
}>>;
|
|
434
431
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
435
432
|
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
436
433
|
text: z.ZodString;
|
|
437
434
|
}, 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
|
+
}>>;
|
|
438
451
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
439
452
|
license_id: z.ZodOptional<z.ZodString>;
|
|
440
453
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -454,19 +467,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
454
467
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
455
468
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
456
469
|
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,6 +482,23 @@ 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;
|
|
485
502
|
organization?: {
|
|
486
503
|
id?: string | undefined;
|
|
487
504
|
name?: string | undefined;
|
|
@@ -501,30 +518,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
501
518
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
|
|
502
519
|
source_policy?: "any" | "web_only" | "api_only" | undefined;
|
|
503
520
|
} | 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;
|
|
528
521
|
team?: {
|
|
529
522
|
id?: string | undefined;
|
|
530
523
|
org_id?: string | undefined;
|
|
@@ -553,7 +546,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
553
546
|
json: Record<string, any>;
|
|
554
547
|
} | null | undefined;
|
|
555
548
|
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
556
|
-
visibility?: "
|
|
549
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
557
550
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
|
|
558
551
|
source_policy?: "any" | "web_only" | "api_only" | null | undefined;
|
|
559
552
|
userMembership?: {
|
|
@@ -585,10 +578,26 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
585
578
|
}[] | undefined;
|
|
586
579
|
created_at?: string | undefined;
|
|
587
580
|
} | 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;
|
|
588
594
|
description?: {
|
|
589
595
|
json: Record<string, any>;
|
|
590
596
|
text: string;
|
|
591
597
|
} | 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;
|
|
592
601
|
parent_id?: string | null | undefined;
|
|
593
602
|
license_id?: string | undefined;
|
|
594
603
|
license?: Record<string, any> | undefined;
|
|
@@ -602,15 +611,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
602
611
|
stripe_product_id?: string | null | undefined;
|
|
603
612
|
stripe_price_id?: string | null | undefined;
|
|
604
613
|
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,6 +621,23 @@ 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;
|
|
624
641
|
organization?: {
|
|
625
642
|
id?: string | undefined;
|
|
626
643
|
name?: string | undefined;
|
|
@@ -640,30 +657,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
640
657
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
|
|
641
658
|
source_policy?: "any" | "web_only" | "api_only" | undefined;
|
|
642
659
|
} | 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;
|
|
667
660
|
team?: {
|
|
668
661
|
id?: string | undefined;
|
|
669
662
|
org_id?: string | undefined;
|
|
@@ -692,7 +685,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
692
685
|
json: Record<string, any>;
|
|
693
686
|
} | null | undefined;
|
|
694
687
|
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
695
|
-
visibility?: "
|
|
688
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
696
689
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
|
|
697
690
|
source_policy?: "any" | "web_only" | "api_only" | null | undefined;
|
|
698
691
|
userMembership?: {
|
|
@@ -724,10 +717,26 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
724
717
|
}[] | undefined;
|
|
725
718
|
created_at?: string | undefined;
|
|
726
719
|
} | 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;
|
|
727
733
|
description?: {
|
|
728
734
|
json: Record<string, any>;
|
|
729
735
|
text: string;
|
|
730
736
|
} | 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;
|
|
731
740
|
parent_id?: string | null | undefined;
|
|
732
741
|
license_id?: string | undefined;
|
|
733
742
|
license?: Record<string, any> | undefined;
|
|
@@ -741,15 +750,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
741
750
|
stripe_product_id?: string | null | undefined;
|
|
742
751
|
stripe_price_id?: string | null | undefined;
|
|
743
752
|
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>[];
|