@ourofoundation/ouro-js 3.5.0 → 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-BFBGVGNF.js → chunk-35CJDNHH.js} +2 -2
- package/dist/{chunk-BFBGVGNF.js.map → chunk-35CJDNHH.js.map} +1 -1
- package/dist/chunk-3UWDQLTN.js +2 -0
- package/dist/chunk-3UWDQLTN.js.map +1 -0
- package/dist/chunk-6GPIZJ4T.cjs +2 -0
- package/dist/chunk-6GPIZJ4T.cjs.map +1 -0
- package/dist/{chunk-CONKY65O.cjs → chunk-6ZJQTECB.cjs} +2 -2
- package/dist/{chunk-CONKY65O.cjs.map → chunk-6ZJQTECB.cjs.map} +1 -1
- package/dist/{chunk-XWXLCG4E.cjs → chunk-BWAEBQKV.cjs} +2 -2
- package/dist/chunk-BWAEBQKV.cjs.map +1 -0
- package/dist/chunk-F5CWCYOP.cjs +2 -0
- package/dist/chunk-F5CWCYOP.cjs.map +1 -0
- package/dist/{chunk-QT3A4ULM.cjs → chunk-FRMPLGE4.cjs} +2 -2
- package/dist/{chunk-QT3A4ULM.cjs.map → chunk-FRMPLGE4.cjs.map} +1 -1
- package/dist/{chunk-6YF2RSXS.js → chunk-G3VMEPTP.js} +2 -2
- package/dist/{chunk-6YF2RSXS.js.map → chunk-G3VMEPTP.js.map} +1 -1
- package/dist/chunk-HIXNQKVP.cjs +2 -0
- package/dist/{chunk-NEINJFFK.cjs.map → chunk-HIXNQKVP.cjs.map} +1 -1
- package/dist/chunk-IWOXGKK4.js +2 -0
- 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-OBWPO2QT.cjs +2 -0
- package/dist/chunk-OBWPO2QT.cjs.map +1 -0
- package/dist/{chunk-Z3ALIFYO.js → chunk-R2W4NEEJ.js} +2 -2
- package/dist/chunk-R2W4NEEJ.js.map +1 -0
- package/dist/{chunk-IP4OVRZB.cjs → chunk-ROMY5WNQ.cjs} +2 -2
- package/dist/chunk-ROMY5WNQ.cjs.map +1 -0
- package/dist/chunk-SR5UZ4NP.js +2 -0
- package/dist/chunk-SR5UZ4NP.js.map +1 -0
- package/dist/{chunk-JKTQY4RU.js → chunk-TYOQ32UV.js} +2 -2
- package/dist/{chunk-JKTQY4RU.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.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/schema/assets.cjs +1 -1
- package/dist/schema/assets.d.cts +85 -84
- package/dist/schema/assets.d.ts +85 -84
- package/dist/schema/assets.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +140 -136
- package/dist/schema/comments.d.ts +140 -136
- package/dist/schema/comments.js +1 -1
- 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 +70 -69
- package/dist/schema/conversations.d.ts +70 -69
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +283 -107
- package/dist/schema/datasets.d.ts +283 -107
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +101 -100
- package/dist/schema/files.d.ts +101 -100
- 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 +131 -129
- package/dist/schema/posts.d.ts +131 -129
- package/dist/schema/posts.js +1 -1
- package/dist/schema/quests.cjs +1 -1
- package/dist/schema/quests.d.cts +178 -177
- package/dist/schema/quests.d.ts +178 -177
- package/dist/schema/quests.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +131 -127
- package/dist/schema/services.d.ts +131 -127
- 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-7F26V24D.js +0 -2
- package/dist/chunk-7F26V24D.js.map +0 -1
- package/dist/chunk-B4225TEG.js +0 -2
- package/dist/chunk-B4225TEG.js.map +0 -1
- package/dist/chunk-BQ5WODME.cjs +0 -2
- package/dist/chunk-BQ5WODME.cjs.map +0 -1
- package/dist/chunk-G2MXCB7Q.js +0 -2
- package/dist/chunk-G2MXCB7Q.js.map +0 -1
- package/dist/chunk-IP4OVRZB.cjs.map +0 -1
- package/dist/chunk-JW7FACNZ.cjs +0 -2
- package/dist/chunk-JW7FACNZ.cjs.map +0 -1
- package/dist/chunk-MH4A7XAY.cjs +0 -2
- package/dist/chunk-MH4A7XAY.cjs.map +0 -1
- package/dist/chunk-NEINJFFK.cjs +0 -2
- package/dist/chunk-U3F23ASS.js +0 -2
- package/dist/chunk-U3F23ASS.js.map +0 -1
- package/dist/chunk-WUC5AUUJ.cjs +0 -2
- package/dist/chunk-WUC5AUUJ.cjs.map +0 -1
- package/dist/chunk-XWXLCG4E.cjs.map +0 -1
- package/dist/chunk-Y6AKG4FJ.js +0 -2
- package/dist/chunk-Y6AKG4FJ.js.map +0 -1
- package/dist/chunk-Z3ALIFYO.js.map +0 -1
package/dist/schema/comments.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkFRMPLGE4_cjs=require('../chunk-FRMPLGE4.cjs');require('../chunk-ROMY5WNQ.cjs'),require('../chunk-UY43EQTO.cjs'),require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"CommentSchema",{enumerable:true,get:function(){return chunkFRMPLGE4_cjs.a}});Object.defineProperty(exports,"CreateCommentSchema",{enumerable:true,get:function(){return chunkFRMPLGE4_cjs.b}});//# sourceMappingURL=comments.cjs.map
|
|
2
2
|
//# sourceMappingURL=comments.cjs.map
|
|
@@ -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,15 +222,16 @@ 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
|
+
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
234
235
|
created_at: z.ZodString;
|
|
235
236
|
last_updated: z.ZodString;
|
|
236
237
|
asset_type: z.ZodDefault<z.ZodLiteral<"comment">>;
|
|
@@ -240,30 +241,6 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
240
241
|
}, z.core.$strip>>>>;
|
|
241
242
|
}, z.core.$strip>;
|
|
242
243
|
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
244
|
organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
268
245
|
id: z.ZodOptional<z.ZodUUID>;
|
|
269
246
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -296,6 +273,56 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
296
273
|
api_only: "api_only";
|
|
297
274
|
}>>>>;
|
|
298
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>;
|
|
299
326
|
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
300
327
|
id: z.ZodOptional<z.ZodUUID>;
|
|
301
328
|
org_id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -343,9 +370,9 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
343
370
|
none: "none";
|
|
344
371
|
}>>;
|
|
345
372
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
346
|
-
organization: "organization";
|
|
347
373
|
public: "public";
|
|
348
374
|
private: "private";
|
|
375
|
+
organization: "organization";
|
|
349
376
|
monetized: "monetized";
|
|
350
377
|
inherit: "inherit";
|
|
351
378
|
}>>;
|
|
@@ -405,49 +432,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
405
432
|
}, z.core.$strip>>>;
|
|
406
433
|
created_at: z.ZodOptional<z.ZodString>;
|
|
407
434
|
}, 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
435
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
432
436
|
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
433
437
|
text: z.ZodString;
|
|
434
438
|
}, 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
439
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
452
440
|
license_id: z.ZodOptional<z.ZodString>;
|
|
453
441
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -467,10 +455,24 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
467
455
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
468
456
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
469
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>>>>;
|
|
470
471
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
471
472
|
type: z.ZodString;
|
|
472
473
|
content: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
473
474
|
}, z.core.$strip>>>>>;
|
|
475
|
+
is_pinned_in_team: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
474
476
|
asset_type: z.ZodDefault<z.ZodLiteral<"comment">>;
|
|
475
477
|
id: z.ZodDefault<z.ZodString>;
|
|
476
478
|
name: z.ZodDefault<z.ZodString>;
|
|
@@ -482,23 +484,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
482
484
|
name: string;
|
|
483
485
|
created_at: string;
|
|
484
486
|
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
487
|
organization?: {
|
|
503
488
|
id?: string | undefined;
|
|
504
489
|
name?: string | undefined;
|
|
@@ -518,6 +503,30 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
518
503
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
|
|
519
504
|
source_policy?: "any" | "web_only" | "api_only" | undefined;
|
|
520
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;
|
|
521
530
|
team?: {
|
|
522
531
|
id?: string | undefined;
|
|
523
532
|
org_id?: string | undefined;
|
|
@@ -546,7 +555,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
546
555
|
json: Record<string, any>;
|
|
547
556
|
} | null | undefined;
|
|
548
557
|
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
549
|
-
visibility?: "
|
|
558
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
550
559
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
|
|
551
560
|
source_policy?: "any" | "web_only" | "api_only" | null | undefined;
|
|
552
561
|
userMembership?: {
|
|
@@ -578,26 +587,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
578
587
|
}[] | undefined;
|
|
579
588
|
created_at?: string | undefined;
|
|
580
589
|
} | 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
590
|
description?: {
|
|
595
591
|
json: Record<string, any>;
|
|
596
592
|
text: string;
|
|
597
593
|
} | 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
594
|
parent_id?: string | null | undefined;
|
|
602
595
|
license_id?: string | undefined;
|
|
603
596
|
license?: Record<string, any> | undefined;
|
|
@@ -611,33 +604,26 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
611
604
|
stripe_product_id?: string | null | undefined;
|
|
612
605
|
stripe_price_id?: string | null | undefined;
|
|
613
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;
|
|
614
616
|
preview?: {
|
|
615
617
|
type: string;
|
|
616
618
|
content: Record<string, any>[];
|
|
617
619
|
} | null | undefined;
|
|
620
|
+
is_pinned_in_team?: boolean | undefined;
|
|
618
621
|
}, {
|
|
619
622
|
asset_type: "comment";
|
|
620
623
|
id: string;
|
|
621
624
|
name: string;
|
|
622
625
|
created_at: string;
|
|
623
626
|
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
627
|
organization?: {
|
|
642
628
|
id?: string | undefined;
|
|
643
629
|
name?: string | undefined;
|
|
@@ -657,6 +643,30 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
657
643
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
|
|
658
644
|
source_policy?: "any" | "web_only" | "api_only" | undefined;
|
|
659
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;
|
|
660
670
|
team?: {
|
|
661
671
|
id?: string | undefined;
|
|
662
672
|
org_id?: string | undefined;
|
|
@@ -685,7 +695,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
685
695
|
json: Record<string, any>;
|
|
686
696
|
} | null | undefined;
|
|
687
697
|
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
688
|
-
visibility?: "
|
|
698
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
689
699
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
|
|
690
700
|
source_policy?: "any" | "web_only" | "api_only" | null | undefined;
|
|
691
701
|
userMembership?: {
|
|
@@ -717,26 +727,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
717
727
|
}[] | undefined;
|
|
718
728
|
created_at?: string | undefined;
|
|
719
729
|
} | 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
730
|
description?: {
|
|
734
731
|
json: Record<string, any>;
|
|
735
732
|
text: string;
|
|
736
733
|
} | 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
734
|
parent_id?: string | null | undefined;
|
|
741
735
|
license_id?: string | undefined;
|
|
742
736
|
license?: Record<string, any> | undefined;
|
|
@@ -750,10 +744,20 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
750
744
|
stripe_product_id?: string | null | undefined;
|
|
751
745
|
stripe_price_id?: string | null | undefined;
|
|
752
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;
|
|
753
756
|
preview?: {
|
|
754
757
|
type: string;
|
|
755
758
|
content: Record<string, any>[];
|
|
756
759
|
} | null | undefined;
|
|
760
|
+
is_pinned_in_team?: boolean | undefined;
|
|
757
761
|
}>>;
|
|
758
762
|
|
|
759
763
|
type Comment = z.infer<typeof CommentSchema>;
|