@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
package/dist/schema/files.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const FileSchema: 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 FileSchema: 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 FileSchema: 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 FileSchema: 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 FileSchema: 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 FileSchema: 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 FileSchema: 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 FileSchema: 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>>;
|
|
@@ -166,9 +210,9 @@ declare const FileSchema: z.ZodObject<{
|
|
|
166
210
|
preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
167
211
|
state: z.ZodEnum<{
|
|
168
212
|
success: "success";
|
|
169
|
-
error: "error";
|
|
170
213
|
queued: "queued";
|
|
171
214
|
"in-progress": "in-progress";
|
|
215
|
+
error: "error";
|
|
172
216
|
}>;
|
|
173
217
|
source: z.ZodEnum<{
|
|
174
218
|
api: "api";
|
|
@@ -178,7 +222,7 @@ declare const FileSchema: z.ZodObject<{
|
|
|
178
222
|
last_updated: z.ZodString;
|
|
179
223
|
asset_type: z.ZodDefault<z.ZodLiteral<"file">>;
|
|
180
224
|
metadata: z.ZodObject<{
|
|
181
|
-
id: z.
|
|
225
|
+
id: z.ZodUUID;
|
|
182
226
|
path: z.ZodString;
|
|
183
227
|
bucket: z.ZodEnum<{
|
|
184
228
|
"public-files": "public-files";
|
|
@@ -200,9 +244,10 @@ declare const FileSchema: z.ZodObject<{
|
|
|
200
244
|
"third-party": "third-party";
|
|
201
245
|
}>>;
|
|
202
246
|
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
247
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
203
248
|
}, z.core.$strip>;
|
|
204
249
|
}, z.core.$strip>;
|
|
205
|
-
declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
250
|
+
declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
206
251
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
207
252
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
208
253
|
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -213,7 +258,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
213
258
|
"pay-to-unlock": "pay-to-unlock";
|
|
214
259
|
"pay-per-use": "pay-per-use";
|
|
215
260
|
}>>;
|
|
216
|
-
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
261
|
+
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
217
262
|
license_id: z.ZodOptional<z.ZodString>;
|
|
218
263
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
219
264
|
unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -230,9 +275,9 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
230
275
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
231
276
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
232
277
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
233
|
-
id: z.ZodDefault<z.
|
|
234
|
-
team_id: z.ZodDefault<z.ZodNullable<z.
|
|
235
|
-
org_id: z.ZodDefault<z.ZodNullable<z.
|
|
278
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
279
|
+
team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
280
|
+
org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
236
281
|
name: z.ZodString;
|
|
237
282
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
238
283
|
source: z.ZodDefault<z.ZodEnum<{
|
|
@@ -251,7 +296,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
251
296
|
asset_type: z.ZodDefault<z.ZodLiteral<"file">>;
|
|
252
297
|
state: z.ZodDefault<z.ZodLiteral<"success">>;
|
|
253
298
|
metadata: z.ZodObject<{
|
|
254
|
-
id: z.
|
|
299
|
+
id: z.ZodUUID;
|
|
255
300
|
path: z.ZodString;
|
|
256
301
|
bucket: z.ZodEnum<{
|
|
257
302
|
"public-files": "public-files";
|
|
@@ -273,6 +318,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
273
318
|
"third-party": "third-party";
|
|
274
319
|
}>>;
|
|
275
320
|
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
321
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
276
322
|
}, z.core.$strip>;
|
|
277
323
|
}, z.core.$strip>, z.ZodObject<{
|
|
278
324
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -285,7 +331,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
285
331
|
"pay-to-unlock": "pay-to-unlock";
|
|
286
332
|
"pay-per-use": "pay-per-use";
|
|
287
333
|
}>>;
|
|
288
|
-
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
334
|
+
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
289
335
|
license_id: z.ZodOptional<z.ZodString>;
|
|
290
336
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
291
337
|
unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -302,9 +348,9 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
302
348
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
303
349
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
304
350
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
305
|
-
id: z.ZodDefault<z.
|
|
306
|
-
team_id: z.ZodDefault<z.ZodNullable<z.
|
|
307
|
-
org_id: z.ZodDefault<z.ZodNullable<z.
|
|
351
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
352
|
+
team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
353
|
+
org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
308
354
|
name: z.ZodString;
|
|
309
355
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
310
356
|
source: z.ZodDefault<z.ZodEnum<{
|
|
@@ -334,14 +380,187 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
334
380
|
"third-party": "third-party";
|
|
335
381
|
}>>;
|
|
336
382
|
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
383
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
337
384
|
}, z.core.$strip>;
|
|
338
|
-
}, z.core.$strip>]
|
|
339
|
-
|
|
385
|
+
}, z.core.$strip>]>, z.ZodTransform<{
|
|
386
|
+
id: string;
|
|
387
|
+
team_id: string | null;
|
|
388
|
+
org_id: string | null;
|
|
389
|
+
name: string;
|
|
390
|
+
source: "api" | "web";
|
|
391
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
392
|
+
created_at: string;
|
|
393
|
+
last_updated: string;
|
|
394
|
+
asset_type: "file";
|
|
395
|
+
state: "success";
|
|
396
|
+
metadata: {
|
|
397
|
+
id: string;
|
|
398
|
+
path: string;
|
|
399
|
+
bucket: "public-files" | "files";
|
|
400
|
+
name: string;
|
|
401
|
+
type: string;
|
|
402
|
+
extension: string;
|
|
403
|
+
size: number;
|
|
404
|
+
width?: number | undefined;
|
|
405
|
+
height?: number | undefined;
|
|
406
|
+
doi_url?: string | null | undefined;
|
|
407
|
+
external_url?: string | null | undefined;
|
|
408
|
+
paper_url?: string | null | undefined;
|
|
409
|
+
github_url?: string | null | undefined;
|
|
410
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
411
|
+
source?: string | null | undefined;
|
|
412
|
+
reply_to_comment_id?: string | null | undefined;
|
|
413
|
+
};
|
|
414
|
+
parent?: Record<string, any> | undefined;
|
|
415
|
+
description?: {
|
|
416
|
+
json: Record<string, any>;
|
|
417
|
+
text: string;
|
|
418
|
+
} | null | undefined;
|
|
419
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
420
|
+
parent_id?: string | null | undefined;
|
|
421
|
+
license_id?: string | undefined;
|
|
422
|
+
price?: number | null | undefined;
|
|
423
|
+
unit_cost?: number | null | undefined;
|
|
424
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
425
|
+
cost_unit?: string | null | undefined;
|
|
426
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
427
|
+
stripe_product_id?: string | null | undefined;
|
|
428
|
+
stripe_price_id?: string | null | undefined;
|
|
429
|
+
stripe_meter_id?: string | null | undefined;
|
|
430
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
431
|
+
name_url_slug?: string | null | undefined;
|
|
432
|
+
} | {
|
|
433
|
+
id: string;
|
|
434
|
+
team_id: string | null;
|
|
435
|
+
org_id: string | null;
|
|
436
|
+
name: string;
|
|
437
|
+
source: "api" | "web";
|
|
438
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
439
|
+
created_at: string;
|
|
440
|
+
last_updated: string;
|
|
441
|
+
asset_type: "file";
|
|
442
|
+
state: "in-progress";
|
|
443
|
+
metadata: {
|
|
444
|
+
type: string;
|
|
445
|
+
doi_url?: string | null | undefined;
|
|
446
|
+
external_url?: string | null | undefined;
|
|
447
|
+
paper_url?: string | null | undefined;
|
|
448
|
+
github_url?: string | null | undefined;
|
|
449
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
450
|
+
source?: string | null | undefined;
|
|
451
|
+
reply_to_comment_id?: string | null | undefined;
|
|
452
|
+
};
|
|
453
|
+
parent?: Record<string, any> | undefined;
|
|
454
|
+
description?: {
|
|
455
|
+
json: Record<string, any>;
|
|
456
|
+
text: string;
|
|
457
|
+
} | null | undefined;
|
|
458
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
459
|
+
parent_id?: string | null | undefined;
|
|
460
|
+
license_id?: string | undefined;
|
|
461
|
+
price?: number | null | undefined;
|
|
462
|
+
unit_cost?: number | null | undefined;
|
|
463
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
464
|
+
cost_unit?: string | null | undefined;
|
|
465
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
466
|
+
stripe_product_id?: string | null | undefined;
|
|
467
|
+
stripe_price_id?: string | null | undefined;
|
|
468
|
+
stripe_meter_id?: string | null | undefined;
|
|
469
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
470
|
+
name_url_slug?: string | null | undefined;
|
|
471
|
+
}, {
|
|
472
|
+
id: string;
|
|
473
|
+
team_id: string | null;
|
|
474
|
+
org_id: string | null;
|
|
475
|
+
name: string;
|
|
476
|
+
source: "api" | "web";
|
|
477
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
478
|
+
created_at: string;
|
|
479
|
+
last_updated: string;
|
|
480
|
+
asset_type: "file";
|
|
481
|
+
state: "success";
|
|
482
|
+
metadata: {
|
|
483
|
+
id: string;
|
|
484
|
+
path: string;
|
|
485
|
+
bucket: "public-files" | "files";
|
|
486
|
+
name: string;
|
|
487
|
+
type: string;
|
|
488
|
+
extension: string;
|
|
489
|
+
size: number;
|
|
490
|
+
width?: number | undefined;
|
|
491
|
+
height?: number | undefined;
|
|
492
|
+
doi_url?: string | null | undefined;
|
|
493
|
+
external_url?: string | null | undefined;
|
|
494
|
+
paper_url?: string | null | undefined;
|
|
495
|
+
github_url?: string | null | undefined;
|
|
496
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
497
|
+
source?: string | null | undefined;
|
|
498
|
+
reply_to_comment_id?: string | null | undefined;
|
|
499
|
+
};
|
|
500
|
+
parent?: Record<string, any> | undefined;
|
|
501
|
+
description?: {
|
|
502
|
+
json: Record<string, any>;
|
|
503
|
+
text: string;
|
|
504
|
+
} | null | undefined;
|
|
505
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
506
|
+
parent_id?: string | null | undefined;
|
|
507
|
+
license_id?: string | undefined;
|
|
508
|
+
price?: number | null | undefined;
|
|
509
|
+
unit_cost?: number | null | undefined;
|
|
510
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
511
|
+
cost_unit?: string | null | undefined;
|
|
512
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
513
|
+
stripe_product_id?: string | null | undefined;
|
|
514
|
+
stripe_price_id?: string | null | undefined;
|
|
515
|
+
stripe_meter_id?: string | null | undefined;
|
|
516
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
517
|
+
name_url_slug?: string | null | undefined;
|
|
518
|
+
} | {
|
|
519
|
+
id: string;
|
|
520
|
+
team_id: string | null;
|
|
521
|
+
org_id: string | null;
|
|
522
|
+
name: string;
|
|
523
|
+
source: "api" | "web";
|
|
524
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
525
|
+
created_at: string;
|
|
526
|
+
last_updated: string;
|
|
527
|
+
asset_type: "file";
|
|
528
|
+
state: "in-progress";
|
|
529
|
+
metadata: {
|
|
530
|
+
type: string;
|
|
531
|
+
doi_url?: string | null | undefined;
|
|
532
|
+
external_url?: string | null | undefined;
|
|
533
|
+
paper_url?: string | null | undefined;
|
|
534
|
+
github_url?: string | null | undefined;
|
|
535
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
536
|
+
source?: string | null | undefined;
|
|
537
|
+
reply_to_comment_id?: string | null | undefined;
|
|
538
|
+
};
|
|
539
|
+
parent?: Record<string, any> | undefined;
|
|
540
|
+
description?: {
|
|
541
|
+
json: Record<string, any>;
|
|
542
|
+
text: string;
|
|
543
|
+
} | null | undefined;
|
|
544
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
545
|
+
parent_id?: string | null | undefined;
|
|
546
|
+
license_id?: string | undefined;
|
|
547
|
+
price?: number | null | undefined;
|
|
548
|
+
unit_cost?: number | null | undefined;
|
|
549
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
550
|
+
cost_unit?: string | null | undefined;
|
|
551
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
552
|
+
stripe_product_id?: string | null | undefined;
|
|
553
|
+
stripe_price_id?: string | null | undefined;
|
|
554
|
+
stripe_meter_id?: string | null | undefined;
|
|
555
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
556
|
+
name_url_slug?: string | null | undefined;
|
|
557
|
+
}>>;
|
|
558
|
+
declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
340
559
|
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"file">>>;
|
|
341
|
-
org_id: z.ZodOptional<z.
|
|
560
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
342
561
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
343
562
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
344
|
-
id: z.
|
|
563
|
+
id: z.ZodUUID;
|
|
345
564
|
path: z.ZodString;
|
|
346
565
|
bucket: z.ZodEnum<{
|
|
347
566
|
"public-files": "public-files";
|
|
@@ -363,9 +582,10 @@ declare const updateFileSchema: z.ZodObject<{
|
|
|
363
582
|
"third-party": "third-party";
|
|
364
583
|
}>>;
|
|
365
584
|
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
585
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
366
586
|
}, z.core.$strip>>;
|
|
367
587
|
name: z.ZodOptional<z.ZodString>;
|
|
368
|
-
team_id: z.ZodOptional<z.
|
|
588
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
369
589
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
370
590
|
organization: "organization";
|
|
371
591
|
public: "public";
|
|
@@ -388,11 +608,11 @@ declare const updateFileSchema: z.ZodObject<{
|
|
|
388
608
|
}>>;
|
|
389
609
|
state: z.ZodOptional<z.ZodEnum<{
|
|
390
610
|
success: "success";
|
|
391
|
-
error: "error";
|
|
392
611
|
queued: "queued";
|
|
393
612
|
"in-progress": "in-progress";
|
|
613
|
+
error: "error";
|
|
394
614
|
}>>;
|
|
395
|
-
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
615
|
+
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
396
616
|
license_id: z.ZodOptional<z.ZodString>;
|
|
397
617
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
398
618
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -412,7 +632,99 @@ declare const updateFileSchema: z.ZodObject<{
|
|
|
412
632
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
413
633
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
414
634
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
415
|
-
}, z.core.$strip
|
|
635
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
636
|
+
last_updated: string;
|
|
637
|
+
asset_type?: "file" | undefined;
|
|
638
|
+
org_id?: string | undefined;
|
|
639
|
+
parent?: Record<string, any> | undefined;
|
|
640
|
+
metadata?: {
|
|
641
|
+
id: string;
|
|
642
|
+
path: string;
|
|
643
|
+
bucket: "public-files" | "files";
|
|
644
|
+
name: string;
|
|
645
|
+
type: string;
|
|
646
|
+
extension: string;
|
|
647
|
+
size: number;
|
|
648
|
+
width?: number | undefined;
|
|
649
|
+
height?: number | undefined;
|
|
650
|
+
doi_url?: string | null | undefined;
|
|
651
|
+
external_url?: string | null | undefined;
|
|
652
|
+
paper_url?: string | null | undefined;
|
|
653
|
+
github_url?: string | null | undefined;
|
|
654
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
655
|
+
source?: string | null | undefined;
|
|
656
|
+
reply_to_comment_id?: string | null | undefined;
|
|
657
|
+
} | undefined;
|
|
658
|
+
name?: string | undefined;
|
|
659
|
+
team_id?: string | undefined;
|
|
660
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
661
|
+
description?: {
|
|
662
|
+
json: Record<string, any>;
|
|
663
|
+
text: string;
|
|
664
|
+
} | null | undefined;
|
|
665
|
+
source?: "api" | "web" | undefined;
|
|
666
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
667
|
+
state?: "success" | "queued" | "in-progress" | "error" | undefined;
|
|
668
|
+
parent_id?: string | null | undefined;
|
|
669
|
+
license_id?: string | undefined;
|
|
670
|
+
license?: Record<string, any> | undefined;
|
|
671
|
+
name_url_slug?: string | null | undefined;
|
|
672
|
+
price?: number | null | undefined;
|
|
673
|
+
unit_cost?: number | null | undefined;
|
|
674
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
675
|
+
cost_unit?: string | null | undefined;
|
|
676
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
677
|
+
stripe_product_id?: string | null | undefined;
|
|
678
|
+
stripe_price_id?: string | null | undefined;
|
|
679
|
+
stripe_meter_id?: string | null | undefined;
|
|
680
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
681
|
+
}, {
|
|
682
|
+
last_updated: string;
|
|
683
|
+
asset_type?: "file" | undefined;
|
|
684
|
+
org_id?: string | undefined;
|
|
685
|
+
parent?: Record<string, any> | undefined;
|
|
686
|
+
metadata?: {
|
|
687
|
+
id: string;
|
|
688
|
+
path: string;
|
|
689
|
+
bucket: "public-files" | "files";
|
|
690
|
+
name: string;
|
|
691
|
+
type: string;
|
|
692
|
+
extension: string;
|
|
693
|
+
size: number;
|
|
694
|
+
width?: number | undefined;
|
|
695
|
+
height?: number | undefined;
|
|
696
|
+
doi_url?: string | null | undefined;
|
|
697
|
+
external_url?: string | null | undefined;
|
|
698
|
+
paper_url?: string | null | undefined;
|
|
699
|
+
github_url?: string | null | undefined;
|
|
700
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
701
|
+
source?: string | null | undefined;
|
|
702
|
+
reply_to_comment_id?: string | null | undefined;
|
|
703
|
+
} | undefined;
|
|
704
|
+
name?: string | undefined;
|
|
705
|
+
team_id?: string | undefined;
|
|
706
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
707
|
+
description?: {
|
|
708
|
+
json: Record<string, any>;
|
|
709
|
+
text: string;
|
|
710
|
+
} | null | undefined;
|
|
711
|
+
source?: "api" | "web" | undefined;
|
|
712
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
713
|
+
state?: "success" | "queued" | "in-progress" | "error" | undefined;
|
|
714
|
+
parent_id?: string | null | undefined;
|
|
715
|
+
license_id?: string | undefined;
|
|
716
|
+
license?: Record<string, any> | undefined;
|
|
717
|
+
name_url_slug?: string | null | undefined;
|
|
718
|
+
price?: number | null | undefined;
|
|
719
|
+
unit_cost?: number | null | undefined;
|
|
720
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
721
|
+
cost_unit?: string | null | undefined;
|
|
722
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
723
|
+
stripe_product_id?: string | null | undefined;
|
|
724
|
+
stripe_price_id?: string | null | undefined;
|
|
725
|
+
stripe_meter_id?: string | null | undefined;
|
|
726
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
727
|
+
}>>;
|
|
416
728
|
|
|
417
729
|
type File = z.infer<typeof FileSchema>;
|
|
418
730
|
type CreateFile = z.infer<typeof CreateFileSchema>;
|