@ourofoundation/ouro-js 3.0.5 → 3.1.1
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-2JCUJKLB.js +3 -0
- package/dist/chunk-2JCUJKLB.js.map +1 -0
- package/dist/chunk-3N56ERWF.js +2 -0
- package/dist/chunk-3N56ERWF.js.map +1 -0
- package/dist/{chunk-FPRFE54S.cjs → chunk-4KUHOXA5.cjs} +2 -2
- package/dist/{chunk-FPRFE54S.cjs.map → chunk-4KUHOXA5.cjs.map} +1 -1
- package/dist/chunk-4VEWTZNL.js +2 -0
- package/dist/chunk-4VEWTZNL.js.map +1 -0
- package/dist/chunk-6DQ5ZEGV.js +2 -0
- package/dist/chunk-6DQ5ZEGV.js.map +1 -0
- package/dist/chunk-6RGIIOOP.js +2 -0
- package/dist/chunk-6RGIIOOP.js.map +1 -0
- package/dist/chunk-7BEEJS6W.js +2 -0
- package/dist/chunk-7BEEJS6W.js.map +1 -0
- package/dist/chunk-7HF5VHUN.cjs +2 -0
- package/dist/chunk-7HF5VHUN.cjs.map +1 -0
- package/dist/chunk-ACWMAF3H.cjs +2 -0
- package/dist/chunk-ACWMAF3H.cjs.map +1 -0
- package/dist/chunk-AKXQDI77.cjs +2 -0
- package/dist/chunk-AKXQDI77.cjs.map +1 -0
- package/dist/chunk-ALQBCU4T.js +2 -0
- package/dist/chunk-ALQBCU4T.js.map +1 -0
- package/dist/chunk-B7NJYI4N.cjs +2 -0
- package/dist/{chunk-IIKZ5DYT.cjs.map → chunk-B7NJYI4N.cjs.map} +1 -1
- package/dist/chunk-BUSTKLOI.cjs +2 -0
- package/dist/chunk-BUSTKLOI.cjs.map +1 -0
- package/dist/chunk-BXNIUQ5W.js +2 -0
- package/dist/chunk-BXNIUQ5W.js.map +1 -0
- package/dist/chunk-CBWCC3NJ.js +2 -0
- package/dist/chunk-CBWCC3NJ.js.map +1 -0
- package/dist/chunk-DHQJ2FCF.cjs +2 -0
- package/dist/chunk-DHQJ2FCF.cjs.map +1 -0
- package/dist/chunk-DUBPWSCA.js +2 -0
- package/dist/chunk-DUBPWSCA.js.map +1 -0
- package/dist/chunk-FJZO6R7B.cjs +2 -0
- package/dist/chunk-FJZO6R7B.cjs.map +1 -0
- package/dist/{chunk-NUGG4SK2.js → chunk-FS5P754F.js} +2 -2
- package/dist/{chunk-NUGG4SK2.js.map → chunk-FS5P754F.js.map} +1 -1
- package/dist/chunk-GY6SLMMJ.cjs +2 -0
- package/dist/chunk-GY6SLMMJ.cjs.map +1 -0
- package/dist/chunk-K2JZZ624.cjs +2 -0
- package/dist/chunk-K2JZZ624.cjs.map +1 -0
- package/dist/chunk-KYQSTVIK.js +2 -0
- package/dist/chunk-KYQSTVIK.js.map +1 -0
- package/dist/chunk-LUAQEXTM.cjs +2 -0
- package/dist/chunk-LUAQEXTM.cjs.map +1 -0
- package/dist/chunk-MAHNRYUV.cjs +2 -0
- package/dist/chunk-MAHNRYUV.cjs.map +1 -0
- package/dist/chunk-OGPYSKWY.cjs +2 -0
- package/dist/chunk-OGPYSKWY.cjs.map +1 -0
- package/dist/chunk-Q5SQSLM7.cjs +2 -0
- package/dist/chunk-Q5SQSLM7.cjs.map +1 -0
- package/dist/chunk-S5TPBKS6.js +2 -0
- package/dist/{chunk-T3J5Y445.js.map → chunk-S5TPBKS6.js.map} +1 -1
- package/dist/chunk-T2FZOXMU.cjs +2 -0
- package/dist/chunk-T2FZOXMU.cjs.map +1 -0
- package/dist/chunk-T3XKETDR.cjs +3 -0
- package/dist/chunk-T3XKETDR.cjs.map +1 -0
- package/dist/chunk-T4BUMCXS.cjs +2 -0
- package/dist/chunk-T4BUMCXS.cjs.map +1 -0
- package/dist/chunk-TYOBHRLP.cjs +2 -0
- package/dist/chunk-TYOBHRLP.cjs.map +1 -0
- package/dist/chunk-UIPFVGSN.js +2 -0
- package/dist/chunk-UIPFVGSN.js.map +1 -0
- package/dist/chunk-UWVZZARS.js +2 -0
- package/dist/chunk-UWVZZARS.js.map +1 -0
- package/dist/chunk-VF2UIROP.cjs +2 -0
- package/dist/chunk-VF2UIROP.cjs.map +1 -0
- package/dist/chunk-WE6CXCEQ.js +2 -0
- package/dist/chunk-WE6CXCEQ.js.map +1 -0
- package/dist/chunk-XQE5MFWC.js +2 -0
- package/dist/chunk-XQE5MFWC.js.map +1 -0
- package/dist/chunk-Z44HJZBF.js +2 -0
- package/dist/chunk-Z44HJZBF.js.map +1 -0
- package/dist/chunk-ZE2OBRXV.js +2 -0
- package/dist/chunk-ZE2OBRXV.js.map +1 -0
- 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 +154 -26
- package/dist/schema/assets.d.ts +154 -26
- package/dist/schema/assets.js +1 -1
- package/dist/schema/blueprints.cjs +1 -1
- package/dist/schema/blueprints.d.cts +419 -33
- package/dist/schema/blueprints.d.ts +419 -33
- package/dist/schema/blueprints.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +396 -28
- package/dist/schema/comments.d.ts +396 -28
- package/dist/schema/comments.js +1 -1
- package/dist/schema/common.cjs +1 -1
- package/dist/schema/common.d.cts +12 -12
- package/dist/schema/common.d.ts +12 -12
- package/dist/schema/common.js +1 -1
- package/dist/schema/constants.cjs +2 -0
- package/dist/schema/constants.cjs.map +1 -0
- package/dist/schema/constants.d.cts +5 -0
- package/dist/schema/constants.d.ts +5 -0
- package/dist/schema/constants.js +2 -0
- package/dist/schema/constants.js.map +1 -0
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +242 -33
- package/dist/schema/conversations.d.ts +242 -33
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +357 -37
- package/dist/schema/datasets.d.ts +357 -37
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +345 -33
- package/dist/schema/files.d.ts +345 -33
- package/dist/schema/files.js +1 -1
- package/dist/schema/notifications.cjs +1 -1
- package/dist/schema/notifications.js +1 -1
- package/dist/schema/organizations.cjs +1 -1
- package/dist/schema/organizations.d.cts +32 -3
- package/dist/schema/organizations.d.ts +32 -3
- package/dist/schema/organizations.js +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +413 -69
- package/dist/schema/posts.d.ts +413 -69
- package/dist/schema/posts.js +1 -1
- package/dist/schema/reactions.cjs +1 -1
- package/dist/schema/reactions.d.cts +3 -3
- package/dist/schema/reactions.d.ts +3 -3
- package/dist/schema/reactions.js +1 -1
- package/dist/schema/replications.cjs +1 -1
- package/dist/schema/replications.d.cts +421 -33
- package/dist/schema/replications.d.ts +421 -33
- package/dist/schema/replications.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +435 -75
- package/dist/schema/services.d.ts +435 -75
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.cjs +1 -1
- package/dist/schema/teams.d.cts +147 -28
- package/dist/schema/teams.d.ts +147 -28
- package/dist/schema/teams.js +1 -1
- package/dist/schema/users.cjs +1 -1
- package/dist/schema/users.d.cts +29 -7
- package/dist/schema/users.d.ts +29 -7
- package/dist/schema/users.js +1 -1
- package/dist/utils/air/index.cjs +1 -1
- package/dist/utils/air/index.d.cts +4 -2
- package/dist/utils/air/index.d.ts +4 -2
- package/dist/utils/air/index.js +1 -1
- package/dist/utils/air/markdown-parser.cjs +1 -1
- package/dist/utils/air/markdown-parser.js +1 -1
- package/dist/utils/navigate.cjs +1 -1
- package/dist/utils/navigate.js +1 -1
- package/package.json +1 -1
- package/tsup.config.ts +16 -16
- package/dist/chunk-2TOV7G54.js +0 -2
- package/dist/chunk-2TOV7G54.js.map +0 -1
- package/dist/chunk-3RRKHJ3K.cjs +0 -2
- package/dist/chunk-3RRKHJ3K.cjs.map +0 -1
- package/dist/chunk-47E5TCNF.js +0 -3
- package/dist/chunk-47E5TCNF.js.map +0 -1
- package/dist/chunk-4RN4XNPV.cjs +0 -2
- package/dist/chunk-4RN4XNPV.cjs.map +0 -1
- package/dist/chunk-6GWDL7RE.cjs +0 -2
- package/dist/chunk-6GWDL7RE.cjs.map +0 -1
- package/dist/chunk-6Q25VZKZ.cjs +0 -2
- package/dist/chunk-6Q25VZKZ.cjs.map +0 -1
- package/dist/chunk-ARSGP6GA.js +0 -2
- package/dist/chunk-ARSGP6GA.js.map +0 -1
- package/dist/chunk-B776YSQ2.cjs +0 -2
- package/dist/chunk-B776YSQ2.cjs.map +0 -1
- package/dist/chunk-C3EY5Q7D.cjs +0 -2
- package/dist/chunk-C3EY5Q7D.cjs.map +0 -1
- package/dist/chunk-C3JUA7VU.js +0 -2
- package/dist/chunk-C3JUA7VU.js.map +0 -1
- package/dist/chunk-C7P6EZ4K.js +0 -2
- package/dist/chunk-C7P6EZ4K.js.map +0 -1
- package/dist/chunk-CEANOLSH.js +0 -2
- package/dist/chunk-CEANOLSH.js.map +0 -1
- package/dist/chunk-D2H3DN4E.cjs +0 -2
- package/dist/chunk-D2H3DN4E.cjs.map +0 -1
- package/dist/chunk-E3BVDCVN.cjs +0 -2
- package/dist/chunk-E3BVDCVN.cjs.map +0 -1
- package/dist/chunk-ENCQWA5V.js +0 -2
- package/dist/chunk-ENCQWA5V.js.map +0 -1
- package/dist/chunk-FWDYNPNC.cjs +0 -2
- package/dist/chunk-FWDYNPNC.cjs.map +0 -1
- package/dist/chunk-HT4JPC5P.js +0 -2
- package/dist/chunk-HT4JPC5P.js.map +0 -1
- package/dist/chunk-HVX2JPYI.js +0 -2
- package/dist/chunk-HVX2JPYI.js.map +0 -1
- package/dist/chunk-IF4N6V66.cjs +0 -2
- package/dist/chunk-IF4N6V66.cjs.map +0 -1
- package/dist/chunk-IIKZ5DYT.cjs +0 -2
- package/dist/chunk-JAAPYGR3.js +0 -2
- package/dist/chunk-JAAPYGR3.js.map +0 -1
- package/dist/chunk-JYZE6VG5.js +0 -2
- package/dist/chunk-JYZE6VG5.js.map +0 -1
- package/dist/chunk-LWSF5AHU.js +0 -2
- package/dist/chunk-LWSF5AHU.js.map +0 -1
- package/dist/chunk-MRSFHKNV.js +0 -2
- package/dist/chunk-MRSFHKNV.js.map +0 -1
- package/dist/chunk-N5ADIAWW.cjs +0 -2
- package/dist/chunk-N5ADIAWW.cjs.map +0 -1
- package/dist/chunk-PDLAKYCI.cjs +0 -2
- package/dist/chunk-PDLAKYCI.cjs.map +0 -1
- package/dist/chunk-QTPX6PU3.cjs +0 -2
- package/dist/chunk-QTPX6PU3.cjs.map +0 -1
- package/dist/chunk-RPUL3U2U.js +0 -2
- package/dist/chunk-RPUL3U2U.js.map +0 -1
- package/dist/chunk-SE3HKRJM.cjs +0 -3
- package/dist/chunk-SE3HKRJM.cjs.map +0 -1
- package/dist/chunk-T3J5Y445.js +0 -2
- package/dist/chunk-TNDFH7NB.js +0 -2
- package/dist/chunk-TNDFH7NB.js.map +0 -1
- package/dist/chunk-UEV6JSU5.cjs +0 -2
- package/dist/chunk-UEV6JSU5.cjs.map +0 -1
- package/dist/chunk-V4FDUFIL.cjs +0 -2
- package/dist/chunk-V4FDUFIL.cjs.map +0 -1
- package/dist/chunk-VOX7A2FD.js +0 -2
- package/dist/chunk-VOX7A2FD.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const CommentSchema: z.ZodObject<{
|
|
4
|
-
id: z.
|
|
5
|
-
user_id: z.
|
|
4
|
+
id: z.ZodUUID;
|
|
5
|
+
user_id: z.ZodUUID;
|
|
6
6
|
user: z.ZodOptional<z.ZodObject<{
|
|
7
7
|
id: z.ZodOptional<z.ZodUUID>;
|
|
8
8
|
user_id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -10,18 +10,24 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
10
10
|
name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
11
11
|
avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
12
12
|
bio: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
13
|
+
is_provisioned: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
14
|
+
claimed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
13
15
|
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
16
|
value: z.ZodString;
|
|
15
17
|
}, z.core.$strip>>>>;
|
|
16
|
-
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
17
|
-
|
|
18
|
+
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
19
|
+
actor_type: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
base: "base";
|
|
21
|
+
agent: "agent";
|
|
22
|
+
verified: "verified";
|
|
23
|
+
}>>;
|
|
18
24
|
plan_type: z.ZodOptional<z.ZodEnum<{
|
|
19
25
|
free: "free";
|
|
20
26
|
gold: "gold";
|
|
21
27
|
}>>;
|
|
22
28
|
last_active: z.ZodOptional<z.ZodString>;
|
|
23
29
|
}, z.core.$strip>>;
|
|
24
|
-
org_id: z.
|
|
30
|
+
org_id: z.ZodUUID;
|
|
25
31
|
organization: z.ZodOptional<z.ZodObject<{
|
|
26
32
|
id: z.ZodOptional<z.ZodUUID>;
|
|
27
33
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -41,12 +47,23 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
41
47
|
none: "none";
|
|
42
48
|
}>>>;
|
|
43
49
|
allow_external_members: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
50
|
+
allow_external_public_team_creation: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
44
51
|
join_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
|
|
52
|
+
actor_type_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
53
|
+
any: "any";
|
|
54
|
+
verified_only: "verified_only";
|
|
55
|
+
agents_only: "agents_only";
|
|
56
|
+
}>>>>;
|
|
57
|
+
source_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
any: "any";
|
|
59
|
+
web_only: "web_only";
|
|
60
|
+
api_only: "api_only";
|
|
61
|
+
}>>>>;
|
|
45
62
|
}, z.core.$strip>>;
|
|
46
|
-
team_id: z.
|
|
63
|
+
team_id: z.ZodUUID;
|
|
47
64
|
team: z.ZodOptional<z.ZodObject<{
|
|
48
|
-
id: z.ZodOptional<z.
|
|
49
|
-
org_id: z.ZodOptional<z.
|
|
65
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
66
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
50
67
|
organization: z.ZodOptional<z.ZodObject<{
|
|
51
68
|
id: z.ZodUUID;
|
|
52
69
|
name: z.ZodString;
|
|
@@ -66,7 +83,18 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
66
83
|
none: "none";
|
|
67
84
|
}>>;
|
|
68
85
|
allow_external_members: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
86
|
+
allow_external_public_team_creation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
69
87
|
join_policy: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
88
|
+
actor_type_policy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
89
|
+
any: "any";
|
|
90
|
+
verified_only: "verified_only";
|
|
91
|
+
agents_only: "agents_only";
|
|
92
|
+
}>>>;
|
|
93
|
+
source_policy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
any: "any";
|
|
95
|
+
web_only: "web_only";
|
|
96
|
+
api_only: "api_only";
|
|
97
|
+
}>>>;
|
|
70
98
|
}, z.core.$strip>>;
|
|
71
99
|
name: z.ZodOptional<z.ZodString>;
|
|
72
100
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -86,8 +114,18 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
86
114
|
monetized: "monetized";
|
|
87
115
|
inherit: "inherit";
|
|
88
116
|
}>>;
|
|
117
|
+
actor_type_policy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
118
|
+
any: "any";
|
|
119
|
+
verified_only: "verified_only";
|
|
120
|
+
agents_only: "agents_only";
|
|
121
|
+
}>>>>;
|
|
122
|
+
source_policy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
123
|
+
any: "any";
|
|
124
|
+
web_only: "web_only";
|
|
125
|
+
api_only: "api_only";
|
|
126
|
+
}>>>>;
|
|
89
127
|
userMembership: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
90
|
-
user_id: z.
|
|
128
|
+
user_id: z.ZodUUID;
|
|
91
129
|
role: z.ZodEnum<{
|
|
92
130
|
admin: "admin";
|
|
93
131
|
read: "read";
|
|
@@ -97,7 +135,7 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
97
135
|
}, z.core.$strip>>>>;
|
|
98
136
|
memberCount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
99
137
|
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
|
-
user_id: z.
|
|
138
|
+
user_id: z.ZodUUID;
|
|
101
139
|
role: z.ZodEnum<{
|
|
102
140
|
admin: "admin";
|
|
103
141
|
read: "read";
|
|
@@ -112,11 +150,17 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
112
150
|
name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
113
151
|
avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
114
152
|
bio: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
153
|
+
is_provisioned: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
154
|
+
claimed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
115
155
|
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
116
156
|
value: z.ZodString;
|
|
117
157
|
}, z.core.$strip>>>>;
|
|
118
|
-
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
119
|
-
|
|
158
|
+
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
159
|
+
actor_type: z.ZodOptional<z.ZodEnum<{
|
|
160
|
+
base: "base";
|
|
161
|
+
agent: "agent";
|
|
162
|
+
verified: "verified";
|
|
163
|
+
}>>;
|
|
120
164
|
plan_type: z.ZodOptional<z.ZodEnum<{
|
|
121
165
|
free: "free";
|
|
122
166
|
gold: "gold";
|
|
@@ -126,7 +170,7 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
126
170
|
}, z.core.$strip>>>;
|
|
127
171
|
created_at: z.ZodOptional<z.ZodString>;
|
|
128
172
|
}, z.core.$strip>>;
|
|
129
|
-
parent_id: z.ZodOptional<z.ZodNullable<z.
|
|
173
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
130
174
|
parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
131
175
|
license_id: z.ZodString;
|
|
132
176
|
license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -174,12 +218,13 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
174
218
|
"third-party": "third-party";
|
|
175
219
|
}>;
|
|
176
220
|
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
221
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
177
222
|
}, z.core.$strip>>>;
|
|
178
223
|
state: z.ZodEnum<{
|
|
179
224
|
success: "success";
|
|
180
|
-
error: "error";
|
|
181
225
|
queued: "queued";
|
|
182
226
|
"in-progress": "in-progress";
|
|
227
|
+
error: "error";
|
|
183
228
|
}>;
|
|
184
229
|
source: z.ZodEnum<{
|
|
185
230
|
api: "api";
|
|
@@ -193,7 +238,7 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
193
238
|
content: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
194
239
|
}, z.core.$strip>>>>;
|
|
195
240
|
}, z.core.$strip>;
|
|
196
|
-
declare const CreateCommentSchema: z.ZodObject<{
|
|
241
|
+
declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
197
242
|
user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
198
243
|
id: z.ZodOptional<z.ZodUUID>;
|
|
199
244
|
user_id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -201,11 +246,17 @@ declare const CreateCommentSchema: z.ZodObject<{
|
|
|
201
246
|
name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
202
247
|
avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
203
248
|
bio: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
249
|
+
is_provisioned: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
250
|
+
claimed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
204
251
|
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
205
252
|
value: z.ZodString;
|
|
206
253
|
}, z.core.$strip>>>>;
|
|
207
|
-
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
208
|
-
|
|
254
|
+
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
255
|
+
actor_type: z.ZodOptional<z.ZodEnum<{
|
|
256
|
+
base: "base";
|
|
257
|
+
agent: "agent";
|
|
258
|
+
verified: "verified";
|
|
259
|
+
}>>;
|
|
209
260
|
plan_type: z.ZodOptional<z.ZodEnum<{
|
|
210
261
|
free: "free";
|
|
211
262
|
gold: "gold";
|
|
@@ -231,11 +282,22 @@ declare const CreateCommentSchema: z.ZodObject<{
|
|
|
231
282
|
none: "none";
|
|
232
283
|
}>>>;
|
|
233
284
|
allow_external_members: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
285
|
+
allow_external_public_team_creation: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
234
286
|
join_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
|
|
287
|
+
actor_type_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
288
|
+
any: "any";
|
|
289
|
+
verified_only: "verified_only";
|
|
290
|
+
agents_only: "agents_only";
|
|
291
|
+
}>>>>;
|
|
292
|
+
source_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
293
|
+
any: "any";
|
|
294
|
+
web_only: "web_only";
|
|
295
|
+
api_only: "api_only";
|
|
296
|
+
}>>>>;
|
|
235
297
|
}, z.core.$strip>>>;
|
|
236
298
|
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
237
|
-
id: z.ZodOptional<z.
|
|
238
|
-
org_id: z.ZodOptional<z.
|
|
299
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
300
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
239
301
|
organization: z.ZodOptional<z.ZodObject<{
|
|
240
302
|
id: z.ZodUUID;
|
|
241
303
|
name: z.ZodString;
|
|
@@ -255,7 +317,18 @@ declare const CreateCommentSchema: z.ZodObject<{
|
|
|
255
317
|
none: "none";
|
|
256
318
|
}>>;
|
|
257
319
|
allow_external_members: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
320
|
+
allow_external_public_team_creation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
258
321
|
join_policy: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
322
|
+
actor_type_policy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
323
|
+
any: "any";
|
|
324
|
+
verified_only: "verified_only";
|
|
325
|
+
agents_only: "agents_only";
|
|
326
|
+
}>>>;
|
|
327
|
+
source_policy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
328
|
+
any: "any";
|
|
329
|
+
web_only: "web_only";
|
|
330
|
+
api_only: "api_only";
|
|
331
|
+
}>>>;
|
|
259
332
|
}, z.core.$strip>>;
|
|
260
333
|
name: z.ZodOptional<z.ZodString>;
|
|
261
334
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -275,8 +348,18 @@ declare const CreateCommentSchema: z.ZodObject<{
|
|
|
275
348
|
monetized: "monetized";
|
|
276
349
|
inherit: "inherit";
|
|
277
350
|
}>>;
|
|
351
|
+
actor_type_policy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
352
|
+
any: "any";
|
|
353
|
+
verified_only: "verified_only";
|
|
354
|
+
agents_only: "agents_only";
|
|
355
|
+
}>>>>;
|
|
356
|
+
source_policy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
357
|
+
any: "any";
|
|
358
|
+
web_only: "web_only";
|
|
359
|
+
api_only: "api_only";
|
|
360
|
+
}>>>>;
|
|
278
361
|
userMembership: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
279
|
-
user_id: z.
|
|
362
|
+
user_id: z.ZodUUID;
|
|
280
363
|
role: z.ZodEnum<{
|
|
281
364
|
admin: "admin";
|
|
282
365
|
read: "read";
|
|
@@ -286,7 +369,7 @@ declare const CreateCommentSchema: z.ZodObject<{
|
|
|
286
369
|
}, z.core.$strip>>>>;
|
|
287
370
|
memberCount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
288
371
|
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
289
|
-
user_id: z.
|
|
372
|
+
user_id: z.ZodUUID;
|
|
290
373
|
role: z.ZodEnum<{
|
|
291
374
|
admin: "admin";
|
|
292
375
|
read: "read";
|
|
@@ -301,11 +384,17 @@ declare const CreateCommentSchema: z.ZodObject<{
|
|
|
301
384
|
name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
302
385
|
avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
303
386
|
bio: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
387
|
+
is_provisioned: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
388
|
+
claimed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
304
389
|
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
305
390
|
value: z.ZodString;
|
|
306
391
|
}, z.core.$strip>>>>;
|
|
307
|
-
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
308
|
-
|
|
392
|
+
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
393
|
+
actor_type: z.ZodOptional<z.ZodEnum<{
|
|
394
|
+
base: "base";
|
|
395
|
+
agent: "agent";
|
|
396
|
+
verified: "verified";
|
|
397
|
+
}>>;
|
|
309
398
|
plan_type: z.ZodOptional<z.ZodEnum<{
|
|
310
399
|
free: "free";
|
|
311
400
|
gold: "gold";
|
|
@@ -315,7 +404,7 @@ declare const CreateCommentSchema: z.ZodObject<{
|
|
|
315
404
|
}, z.core.$strip>>>;
|
|
316
405
|
created_at: z.ZodOptional<z.ZodString>;
|
|
317
406
|
}, z.core.$strip>>>;
|
|
318
|
-
org_id: z.ZodOptional<z.
|
|
407
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
319
408
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
320
409
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
321
410
|
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -328,8 +417,9 @@ declare const CreateCommentSchema: z.ZodObject<{
|
|
|
328
417
|
"third-party": "third-party";
|
|
329
418
|
}>;
|
|
330
419
|
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
420
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
331
421
|
}, z.core.$strip>>>>;
|
|
332
|
-
team_id: z.ZodOptional<z.
|
|
422
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
333
423
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
334
424
|
organization: "organization";
|
|
335
425
|
public: "public";
|
|
@@ -352,11 +442,11 @@ declare const CreateCommentSchema: z.ZodObject<{
|
|
|
352
442
|
}>>;
|
|
353
443
|
state: z.ZodOptional<z.ZodEnum<{
|
|
354
444
|
success: "success";
|
|
355
|
-
error: "error";
|
|
356
445
|
queued: "queued";
|
|
357
446
|
"in-progress": "in-progress";
|
|
447
|
+
error: "error";
|
|
358
448
|
}>>;
|
|
359
|
-
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
449
|
+
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
360
450
|
license_id: z.ZodOptional<z.ZodString>;
|
|
361
451
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
362
452
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -384,7 +474,285 @@ declare const CreateCommentSchema: z.ZodObject<{
|
|
|
384
474
|
name: z.ZodDefault<z.ZodString>;
|
|
385
475
|
created_at: z.ZodDefault<z.ZodString>;
|
|
386
476
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
387
|
-
}, z.core.$strip
|
|
477
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
478
|
+
asset_type: "comment";
|
|
479
|
+
id: string;
|
|
480
|
+
name: string;
|
|
481
|
+
created_at: string;
|
|
482
|
+
last_updated: string;
|
|
483
|
+
user?: {
|
|
484
|
+
id?: string | undefined;
|
|
485
|
+
user_id?: string | undefined;
|
|
486
|
+
username?: string | null | undefined;
|
|
487
|
+
name?: string | null | undefined;
|
|
488
|
+
avatar_path?: string | null | undefined;
|
|
489
|
+
bio?: string | null | undefined;
|
|
490
|
+
is_provisioned?: boolean | undefined;
|
|
491
|
+
claimed_at?: string | null | undefined;
|
|
492
|
+
urls?: {
|
|
493
|
+
value: string;
|
|
494
|
+
}[] | undefined;
|
|
495
|
+
post_id?: string | null | undefined;
|
|
496
|
+
actor_type?: "base" | "agent" | "verified" | undefined;
|
|
497
|
+
plan_type?: "free" | "gold" | undefined;
|
|
498
|
+
last_active?: string | undefined;
|
|
499
|
+
} | undefined;
|
|
500
|
+
organization?: {
|
|
501
|
+
id?: string | undefined;
|
|
502
|
+
name?: string | undefined;
|
|
503
|
+
display_name?: string | null | undefined;
|
|
504
|
+
avatar_path?: string | null | undefined;
|
|
505
|
+
mission?: string | null | undefined;
|
|
506
|
+
size?: string | undefined;
|
|
507
|
+
email?: string | null | undefined;
|
|
508
|
+
domain?: string | null | undefined;
|
|
509
|
+
urls?: {
|
|
510
|
+
value: string;
|
|
511
|
+
}[] | null | undefined;
|
|
512
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
513
|
+
allow_external_members?: boolean | undefined;
|
|
514
|
+
allow_external_public_team_creation?: boolean | undefined;
|
|
515
|
+
join_policy?: string | undefined;
|
|
516
|
+
actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
|
|
517
|
+
source_policy?: "any" | "web_only" | "api_only" | undefined;
|
|
518
|
+
} | undefined;
|
|
519
|
+
team?: {
|
|
520
|
+
id?: string | undefined;
|
|
521
|
+
org_id?: string | undefined;
|
|
522
|
+
organization?: {
|
|
523
|
+
id: string;
|
|
524
|
+
name: string;
|
|
525
|
+
size: string;
|
|
526
|
+
base_role: "admin" | "read" | "write" | "none";
|
|
527
|
+
allow_external_members: boolean;
|
|
528
|
+
allow_external_public_team_creation: boolean;
|
|
529
|
+
join_policy: string;
|
|
530
|
+
actor_type_policy: "any" | "verified_only" | "agents_only";
|
|
531
|
+
source_policy: "any" | "web_only" | "api_only";
|
|
532
|
+
display_name?: string | null | undefined;
|
|
533
|
+
avatar_path?: string | null | undefined;
|
|
534
|
+
mission?: string | null | undefined;
|
|
535
|
+
email?: string | null | undefined;
|
|
536
|
+
domain?: string | null | undefined;
|
|
537
|
+
urls?: {
|
|
538
|
+
value: string;
|
|
539
|
+
}[] | null | undefined;
|
|
540
|
+
} | undefined;
|
|
541
|
+
name?: string | undefined;
|
|
542
|
+
description?: {
|
|
543
|
+
text: string;
|
|
544
|
+
json: Record<string, any>;
|
|
545
|
+
} | null | undefined;
|
|
546
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
547
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
548
|
+
actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
|
|
549
|
+
source_policy?: "any" | "web_only" | "api_only" | null | undefined;
|
|
550
|
+
userMembership?: {
|
|
551
|
+
user_id: string;
|
|
552
|
+
role: "admin" | "read" | "write" | "none";
|
|
553
|
+
} | null | undefined;
|
|
554
|
+
memberCount?: number | null | undefined;
|
|
555
|
+
members?: {
|
|
556
|
+
user_id: string;
|
|
557
|
+
role: "admin" | "read" | "write" | "none";
|
|
558
|
+
added_at: string;
|
|
559
|
+
user?: {
|
|
560
|
+
id?: string | undefined;
|
|
561
|
+
user_id?: string | undefined;
|
|
562
|
+
username?: string | null | undefined;
|
|
563
|
+
name?: string | null | undefined;
|
|
564
|
+
avatar_path?: string | null | undefined;
|
|
565
|
+
bio?: string | null | undefined;
|
|
566
|
+
is_provisioned?: boolean | undefined;
|
|
567
|
+
claimed_at?: string | null | undefined;
|
|
568
|
+
urls?: {
|
|
569
|
+
value: string;
|
|
570
|
+
}[] | undefined;
|
|
571
|
+
post_id?: string | null | undefined;
|
|
572
|
+
actor_type?: "base" | "agent" | "verified" | undefined;
|
|
573
|
+
plan_type?: "free" | "gold" | undefined;
|
|
574
|
+
last_active?: string | undefined;
|
|
575
|
+
} | null | undefined;
|
|
576
|
+
}[] | undefined;
|
|
577
|
+
created_at?: string | undefined;
|
|
578
|
+
} | undefined;
|
|
579
|
+
org_id?: string | undefined;
|
|
580
|
+
parent?: Record<string, any> | undefined;
|
|
581
|
+
metadata?: {
|
|
582
|
+
originality: "original" | "derivative" | "third-party";
|
|
583
|
+
doi_url?: string | null | undefined;
|
|
584
|
+
external_url?: string | null | undefined;
|
|
585
|
+
paper_url?: string | null | undefined;
|
|
586
|
+
github_url?: string | null | undefined;
|
|
587
|
+
source?: string | null | undefined;
|
|
588
|
+
reply_to_comment_id?: string | null | undefined;
|
|
589
|
+
} | null | undefined;
|
|
590
|
+
team_id?: string | undefined;
|
|
591
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
592
|
+
description?: {
|
|
593
|
+
json: Record<string, any>;
|
|
594
|
+
text: string;
|
|
595
|
+
} | null | undefined;
|
|
596
|
+
source?: "api" | "web" | undefined;
|
|
597
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
598
|
+
state?: "success" | "queued" | "in-progress" | "error" | undefined;
|
|
599
|
+
parent_id?: string | null | undefined;
|
|
600
|
+
license_id?: string | undefined;
|
|
601
|
+
license?: Record<string, any> | undefined;
|
|
602
|
+
name_url_slug?: string | null | undefined;
|
|
603
|
+
slug?: string | null | undefined;
|
|
604
|
+
price?: number | null | undefined;
|
|
605
|
+
unit_cost?: number | null | undefined;
|
|
606
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
607
|
+
cost_unit?: string | null | undefined;
|
|
608
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
609
|
+
stripe_product_id?: string | null | undefined;
|
|
610
|
+
stripe_price_id?: string | null | undefined;
|
|
611
|
+
stripe_meter_id?: string | null | undefined;
|
|
612
|
+
preview?: {
|
|
613
|
+
type: string;
|
|
614
|
+
content: Record<string, any>[];
|
|
615
|
+
} | null | undefined;
|
|
616
|
+
}, {
|
|
617
|
+
asset_type: "comment";
|
|
618
|
+
id: string;
|
|
619
|
+
name: string;
|
|
620
|
+
created_at: string;
|
|
621
|
+
last_updated: string;
|
|
622
|
+
user?: {
|
|
623
|
+
id?: string | undefined;
|
|
624
|
+
user_id?: string | undefined;
|
|
625
|
+
username?: string | null | undefined;
|
|
626
|
+
name?: string | null | undefined;
|
|
627
|
+
avatar_path?: string | null | undefined;
|
|
628
|
+
bio?: string | null | undefined;
|
|
629
|
+
is_provisioned?: boolean | undefined;
|
|
630
|
+
claimed_at?: string | null | undefined;
|
|
631
|
+
urls?: {
|
|
632
|
+
value: string;
|
|
633
|
+
}[] | undefined;
|
|
634
|
+
post_id?: string | null | undefined;
|
|
635
|
+
actor_type?: "base" | "agent" | "verified" | undefined;
|
|
636
|
+
plan_type?: "free" | "gold" | undefined;
|
|
637
|
+
last_active?: string | undefined;
|
|
638
|
+
} | undefined;
|
|
639
|
+
organization?: {
|
|
640
|
+
id?: string | undefined;
|
|
641
|
+
name?: string | undefined;
|
|
642
|
+
display_name?: string | null | undefined;
|
|
643
|
+
avatar_path?: string | null | undefined;
|
|
644
|
+
mission?: string | null | undefined;
|
|
645
|
+
size?: string | undefined;
|
|
646
|
+
email?: string | null | undefined;
|
|
647
|
+
domain?: string | null | undefined;
|
|
648
|
+
urls?: {
|
|
649
|
+
value: string;
|
|
650
|
+
}[] | null | undefined;
|
|
651
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
652
|
+
allow_external_members?: boolean | undefined;
|
|
653
|
+
allow_external_public_team_creation?: boolean | undefined;
|
|
654
|
+
join_policy?: string | undefined;
|
|
655
|
+
actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
|
|
656
|
+
source_policy?: "any" | "web_only" | "api_only" | undefined;
|
|
657
|
+
} | undefined;
|
|
658
|
+
team?: {
|
|
659
|
+
id?: string | undefined;
|
|
660
|
+
org_id?: string | undefined;
|
|
661
|
+
organization?: {
|
|
662
|
+
id: string;
|
|
663
|
+
name: string;
|
|
664
|
+
size: string;
|
|
665
|
+
base_role: "admin" | "read" | "write" | "none";
|
|
666
|
+
allow_external_members: boolean;
|
|
667
|
+
allow_external_public_team_creation: boolean;
|
|
668
|
+
join_policy: string;
|
|
669
|
+
actor_type_policy: "any" | "verified_only" | "agents_only";
|
|
670
|
+
source_policy: "any" | "web_only" | "api_only";
|
|
671
|
+
display_name?: string | null | undefined;
|
|
672
|
+
avatar_path?: string | null | undefined;
|
|
673
|
+
mission?: string | null | undefined;
|
|
674
|
+
email?: string | null | undefined;
|
|
675
|
+
domain?: string | null | undefined;
|
|
676
|
+
urls?: {
|
|
677
|
+
value: string;
|
|
678
|
+
}[] | null | undefined;
|
|
679
|
+
} | undefined;
|
|
680
|
+
name?: string | undefined;
|
|
681
|
+
description?: {
|
|
682
|
+
text: string;
|
|
683
|
+
json: Record<string, any>;
|
|
684
|
+
} | null | undefined;
|
|
685
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
686
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
687
|
+
actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
|
|
688
|
+
source_policy?: "any" | "web_only" | "api_only" | null | undefined;
|
|
689
|
+
userMembership?: {
|
|
690
|
+
user_id: string;
|
|
691
|
+
role: "admin" | "read" | "write" | "none";
|
|
692
|
+
} | null | undefined;
|
|
693
|
+
memberCount?: number | null | undefined;
|
|
694
|
+
members?: {
|
|
695
|
+
user_id: string;
|
|
696
|
+
role: "admin" | "read" | "write" | "none";
|
|
697
|
+
added_at: string;
|
|
698
|
+
user?: {
|
|
699
|
+
id?: string | undefined;
|
|
700
|
+
user_id?: string | undefined;
|
|
701
|
+
username?: string | null | undefined;
|
|
702
|
+
name?: string | null | undefined;
|
|
703
|
+
avatar_path?: string | null | undefined;
|
|
704
|
+
bio?: string | null | undefined;
|
|
705
|
+
is_provisioned?: boolean | undefined;
|
|
706
|
+
claimed_at?: string | null | undefined;
|
|
707
|
+
urls?: {
|
|
708
|
+
value: string;
|
|
709
|
+
}[] | undefined;
|
|
710
|
+
post_id?: string | null | undefined;
|
|
711
|
+
actor_type?: "base" | "agent" | "verified" | undefined;
|
|
712
|
+
plan_type?: "free" | "gold" | undefined;
|
|
713
|
+
last_active?: string | undefined;
|
|
714
|
+
} | null | undefined;
|
|
715
|
+
}[] | undefined;
|
|
716
|
+
created_at?: string | undefined;
|
|
717
|
+
} | undefined;
|
|
718
|
+
org_id?: string | undefined;
|
|
719
|
+
parent?: Record<string, any> | undefined;
|
|
720
|
+
metadata?: {
|
|
721
|
+
originality: "original" | "derivative" | "third-party";
|
|
722
|
+
doi_url?: string | null | undefined;
|
|
723
|
+
external_url?: string | null | undefined;
|
|
724
|
+
paper_url?: string | null | undefined;
|
|
725
|
+
github_url?: string | null | undefined;
|
|
726
|
+
source?: string | null | undefined;
|
|
727
|
+
reply_to_comment_id?: string | null | undefined;
|
|
728
|
+
} | null | undefined;
|
|
729
|
+
team_id?: string | undefined;
|
|
730
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
731
|
+
description?: {
|
|
732
|
+
json: Record<string, any>;
|
|
733
|
+
text: string;
|
|
734
|
+
} | null | undefined;
|
|
735
|
+
source?: "api" | "web" | undefined;
|
|
736
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
737
|
+
state?: "success" | "queued" | "in-progress" | "error" | undefined;
|
|
738
|
+
parent_id?: string | null | undefined;
|
|
739
|
+
license_id?: string | undefined;
|
|
740
|
+
license?: Record<string, any> | undefined;
|
|
741
|
+
name_url_slug?: string | null | undefined;
|
|
742
|
+
slug?: string | null | undefined;
|
|
743
|
+
price?: number | null | undefined;
|
|
744
|
+
unit_cost?: number | null | undefined;
|
|
745
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
746
|
+
cost_unit?: string | null | undefined;
|
|
747
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
748
|
+
stripe_product_id?: string | null | undefined;
|
|
749
|
+
stripe_price_id?: string | null | undefined;
|
|
750
|
+
stripe_meter_id?: string | null | undefined;
|
|
751
|
+
preview?: {
|
|
752
|
+
type: string;
|
|
753
|
+
content: Record<string, any>[];
|
|
754
|
+
} | null | undefined;
|
|
755
|
+
}>>;
|
|
388
756
|
|
|
389
757
|
type Comment = z.infer<typeof CommentSchema>;
|
|
390
758
|
type CreateComment = z.infer<typeof CreateCommentSchema>;
|