@ourofoundation/ouro-js 3.0.5 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-25FGGQFY.cjs +2 -0
- package/dist/chunk-25FGGQFY.cjs.map +1 -0
- package/dist/chunk-332F74RS.js +2 -0
- package/dist/chunk-332F74RS.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-63BUDJ7V.js +2 -0
- package/dist/chunk-63BUDJ7V.js.map +1 -0
- package/dist/chunk-6RGIIOOP.js +2 -0
- package/dist/chunk-6RGIIOOP.js.map +1 -0
- package/dist/chunk-6UH4ZK6D.cjs +2 -0
- package/dist/chunk-6UH4ZK6D.cjs.map +1 -0
- package/dist/chunk-6XNV6B6L.cjs +2 -0
- package/dist/chunk-6XNV6B6L.cjs.map +1 -0
- package/dist/chunk-7HF5VHUN.cjs +2 -0
- package/dist/chunk-7HF5VHUN.cjs.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-BDFRHJD4.js +2 -0
- package/dist/chunk-BDFRHJD4.js.map +1 -0
- package/dist/chunk-BULBWSNF.js +2 -0
- package/dist/chunk-BULBWSNF.js.map +1 -0
- package/dist/chunk-CBWCC3NJ.js +2 -0
- package/dist/chunk-CBWCC3NJ.js.map +1 -0
- package/dist/chunk-D4SCLCSO.cjs +2 -0
- package/dist/chunk-D4SCLCSO.cjs.map +1 -0
- package/dist/chunk-DAN33Z3Q.cjs +2 -0
- package/dist/chunk-DAN33Z3Q.cjs.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-NUGG4SK2.js → chunk-FS5P754F.js} +2 -2
- package/dist/{chunk-NUGG4SK2.js.map → chunk-FS5P754F.js.map} +1 -1
- package/dist/chunk-ICU37YVV.js +2 -0
- package/dist/chunk-ICU37YVV.js.map +1 -0
- package/dist/chunk-J2SVE52E.js +2 -0
- package/dist/chunk-J2SVE52E.js.map +1 -0
- package/dist/chunk-JANLRWLU.cjs +2 -0
- package/dist/chunk-JANLRWLU.cjs.map +1 -0
- package/dist/chunk-JNBXFB5P.cjs +2 -0
- package/dist/chunk-JNBXFB5P.cjs.map +1 -0
- package/dist/chunk-LDAPPQXR.js +2 -0
- package/dist/chunk-LDAPPQXR.js.map +1 -0
- package/dist/chunk-MAHNRYUV.cjs +2 -0
- package/dist/chunk-MAHNRYUV.cjs.map +1 -0
- package/dist/chunk-MQYRINJ5.cjs +2 -0
- package/dist/chunk-MQYRINJ5.cjs.map +1 -0
- package/dist/chunk-OD7M3RFZ.cjs +2 -0
- package/dist/chunk-OD7M3RFZ.cjs.map +1 -0
- package/dist/chunk-P4VD5SVM.cjs +2 -0
- package/dist/chunk-P4VD5SVM.cjs.map +1 -0
- package/dist/chunk-PX6OZKCX.cjs +2 -0
- package/dist/chunk-PX6OZKCX.cjs.map +1 -0
- package/dist/chunk-QZ3AAXO5.js +2 -0
- package/dist/chunk-QZ3AAXO5.js.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-T4BUMCXS.cjs +2 -0
- package/dist/chunk-T4BUMCXS.cjs.map +1 -0
- package/dist/chunk-VBRZ227O.js +2 -0
- package/dist/chunk-VBRZ227O.js.map +1 -0
- package/dist/chunk-WE6CXCEQ.js +2 -0
- package/dist/chunk-WE6CXCEQ.js.map +1 -0
- package/dist/chunk-XJH3EC3E.js +2 -0
- package/dist/chunk-XJH3EC3E.js.map +1 -0
- package/dist/chunk-XPQVPGJX.js +2 -0
- package/dist/chunk-XPQVPGJX.js.map +1 -0
- package/dist/chunk-Z2GTDYQ6.cjs +2 -0
- package/dist/chunk-Z2GTDYQ6.cjs.map +1 -0
- package/dist/chunk-ZQAXMMR2.js +2 -0
- package/dist/chunk-ZQAXMMR2.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 +193 -75
- package/dist/schema/assets.d.ts +193 -75
- package/dist/schema/assets.js +1 -1
- package/dist/schema/blueprints.cjs +1 -1
- package/dist/schema/blueprints.d.cts +408 -42
- package/dist/schema/blueprints.d.ts +408 -42
- package/dist/schema/blueprints.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +429 -81
- package/dist/schema/comments.d.ts +429 -81
- package/dist/schema/comments.js +1 -1
- package/dist/schema/common.cjs +1 -1
- package/dist/schema/common.d.cts +26 -26
- package/dist/schema/common.d.ts +26 -26
- 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 +257 -63
- package/dist/schema/conversations.d.ts +257 -63
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +388 -82
- package/dist/schema/datasets.d.ts +388 -82
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +378 -80
- package/dist/schema/files.d.ts +378 -80
- package/dist/schema/files.js +1 -1
- package/dist/schema/notifications.cjs +1 -1
- package/dist/schema/notifications.d.cts +2 -2
- package/dist/schema/notifications.d.ts +2 -2
- package/dist/schema/notifications.js +1 -1
- package/dist/schema/organizations.cjs +1 -1
- package/dist/schema/organizations.d.cts +31 -4
- package/dist/schema/organizations.d.ts +31 -4
- package/dist/schema/organizations.js +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +444 -126
- package/dist/schema/posts.d.ts +444 -126
- 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 +410 -42
- package/dist/schema/replications.d.ts +410 -42
- package/dist/schema/replications.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +471 -137
- package/dist/schema/services.d.ts +471 -137
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.cjs +1 -1
- package/dist/schema/teams.d.cts +143 -36
- package/dist/schema/teams.d.ts +143 -36
- package/dist/schema/teams.js +1 -1
- package/dist/schema/users.cjs +1 -1
- package/dist/schema/users.d.cts +25 -7
- package/dist/schema/users.d.ts +25 -7
- package/dist/schema/users.js +1 -1
- package/dist/utils/air/index.cjs +1 -1
- package/dist/utils/air/index.d.cts +2 -2
- package/dist/utils/air/index.d.ts +2 -2
- package/dist/utils/air/index.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-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-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 DatasetSchema: 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>;
|
|
@@ -13,15 +13,19 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
13
13
|
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
14
|
value: z.ZodString;
|
|
15
15
|
}, z.core.$strip>>>>;
|
|
16
|
-
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
17
|
-
|
|
16
|
+
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
17
|
+
actor_type: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
base: "base";
|
|
19
|
+
agent: "agent";
|
|
20
|
+
verified: "verified";
|
|
21
|
+
}>>;
|
|
18
22
|
plan_type: z.ZodOptional<z.ZodEnum<{
|
|
19
23
|
free: "free";
|
|
20
24
|
gold: "gold";
|
|
21
25
|
}>>;
|
|
22
26
|
last_active: z.ZodOptional<z.ZodString>;
|
|
23
27
|
}, z.core.$strip>>;
|
|
24
|
-
org_id: z.
|
|
28
|
+
org_id: z.ZodUUID;
|
|
25
29
|
organization: z.ZodOptional<z.ZodObject<{
|
|
26
30
|
id: z.ZodOptional<z.ZodUUID>;
|
|
27
31
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -41,12 +45,23 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
41
45
|
none: "none";
|
|
42
46
|
}>>>;
|
|
43
47
|
allow_external_members: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
48
|
+
allow_external_public_team_creation: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
44
49
|
join_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
|
|
50
|
+
actor_type_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
any: "any";
|
|
52
|
+
verified_only: "verified_only";
|
|
53
|
+
agents_only: "agents_only";
|
|
54
|
+
}>>>>;
|
|
55
|
+
source_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
56
|
+
any: "any";
|
|
57
|
+
web_only: "web_only";
|
|
58
|
+
api_only: "api_only";
|
|
59
|
+
}>>>>;
|
|
45
60
|
}, z.core.$strip>>;
|
|
46
|
-
team_id: z.
|
|
61
|
+
team_id: z.ZodUUID;
|
|
47
62
|
team: z.ZodOptional<z.ZodObject<{
|
|
48
|
-
id: z.ZodOptional<z.
|
|
49
|
-
org_id: z.ZodOptional<z.
|
|
63
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
64
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
50
65
|
organization: z.ZodOptional<z.ZodObject<{
|
|
51
66
|
id: z.ZodUUID;
|
|
52
67
|
name: z.ZodString;
|
|
@@ -66,7 +81,18 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
66
81
|
none: "none";
|
|
67
82
|
}>>;
|
|
68
83
|
allow_external_members: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
84
|
+
allow_external_public_team_creation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
69
85
|
join_policy: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
86
|
+
actor_type_policy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
87
|
+
any: "any";
|
|
88
|
+
verified_only: "verified_only";
|
|
89
|
+
agents_only: "agents_only";
|
|
90
|
+
}>>>;
|
|
91
|
+
source_policy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
92
|
+
any: "any";
|
|
93
|
+
web_only: "web_only";
|
|
94
|
+
api_only: "api_only";
|
|
95
|
+
}>>>;
|
|
70
96
|
}, z.core.$strip>>;
|
|
71
97
|
name: z.ZodOptional<z.ZodString>;
|
|
72
98
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -80,14 +106,24 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
80
106
|
none: "none";
|
|
81
107
|
}>>;
|
|
82
108
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
83
|
-
organization: "organization";
|
|
84
109
|
public: "public";
|
|
85
110
|
private: "private";
|
|
111
|
+
organization: "organization";
|
|
86
112
|
monetized: "monetized";
|
|
87
113
|
inherit: "inherit";
|
|
88
114
|
}>>;
|
|
115
|
+
actor_type_policy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
116
|
+
any: "any";
|
|
117
|
+
verified_only: "verified_only";
|
|
118
|
+
agents_only: "agents_only";
|
|
119
|
+
}>>>>;
|
|
120
|
+
source_policy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
121
|
+
any: "any";
|
|
122
|
+
web_only: "web_only";
|
|
123
|
+
api_only: "api_only";
|
|
124
|
+
}>>>>;
|
|
89
125
|
userMembership: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
90
|
-
user_id: z.
|
|
126
|
+
user_id: z.ZodUUID;
|
|
91
127
|
role: z.ZodEnum<{
|
|
92
128
|
admin: "admin";
|
|
93
129
|
read: "read";
|
|
@@ -97,7 +133,7 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
97
133
|
}, z.core.$strip>>>>;
|
|
98
134
|
memberCount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
99
135
|
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
|
-
user_id: z.
|
|
136
|
+
user_id: z.ZodUUID;
|
|
101
137
|
role: z.ZodEnum<{
|
|
102
138
|
admin: "admin";
|
|
103
139
|
read: "read";
|
|
@@ -115,8 +151,12 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
115
151
|
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
116
152
|
value: z.ZodString;
|
|
117
153
|
}, z.core.$strip>>>>;
|
|
118
|
-
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
119
|
-
|
|
154
|
+
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
155
|
+
actor_type: z.ZodOptional<z.ZodEnum<{
|
|
156
|
+
base: "base";
|
|
157
|
+
agent: "agent";
|
|
158
|
+
verified: "verified";
|
|
159
|
+
}>>;
|
|
120
160
|
plan_type: z.ZodOptional<z.ZodEnum<{
|
|
121
161
|
free: "free";
|
|
122
162
|
gold: "gold";
|
|
@@ -126,7 +166,7 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
126
166
|
}, z.core.$strip>>>;
|
|
127
167
|
created_at: z.ZodOptional<z.ZodString>;
|
|
128
168
|
}, z.core.$strip>>;
|
|
129
|
-
parent_id: z.ZodOptional<z.ZodNullable<z.
|
|
169
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
130
170
|
parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
131
171
|
license_id: z.ZodString;
|
|
132
172
|
license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -138,9 +178,9 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
138
178
|
text: z.ZodString;
|
|
139
179
|
}, z.core.$strip>>>;
|
|
140
180
|
visibility: z.ZodEnum<{
|
|
141
|
-
organization: "organization";
|
|
142
181
|
public: "public";
|
|
143
182
|
private: "private";
|
|
183
|
+
organization: "organization";
|
|
144
184
|
monetized: "monetized";
|
|
145
185
|
inherit: "inherit";
|
|
146
186
|
}>;
|
|
@@ -170,8 +210,8 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
170
210
|
"in-progress": "in-progress";
|
|
171
211
|
}>;
|
|
172
212
|
source: z.ZodEnum<{
|
|
173
|
-
api: "api";
|
|
174
213
|
web: "web";
|
|
214
|
+
api: "api";
|
|
175
215
|
}>;
|
|
176
216
|
created_at: z.ZodString;
|
|
177
217
|
last_updated: z.ZodString;
|
|
@@ -195,7 +235,7 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
195
235
|
path: z.ZodOptional<z.ZodString>;
|
|
196
236
|
extension: z.ZodOptional<z.ZodString>;
|
|
197
237
|
name: z.ZodOptional<z.ZodString>;
|
|
198
|
-
id: z.ZodOptional<z.
|
|
238
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
199
239
|
bucket: z.ZodOptional<z.ZodEnum<{
|
|
200
240
|
"public-files": "public-files";
|
|
201
241
|
files: "files";
|
|
@@ -203,18 +243,18 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
203
243
|
}, z.core.$strip>;
|
|
204
244
|
preview: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
205
245
|
}, z.core.$strip>;
|
|
206
|
-
declare const CreateDatasetFromFileSchema: z.ZodObject<{
|
|
246
|
+
declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
207
247
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
208
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
209
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
210
|
-
text: z.ZodString;
|
|
211
|
-
}, z.core.$strip>>>>;
|
|
212
248
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
213
249
|
none: "none";
|
|
214
250
|
"pay-to-unlock": "pay-to-unlock";
|
|
215
251
|
"pay-per-use": "pay-per-use";
|
|
216
252
|
}>>;
|
|
217
|
-
|
|
253
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
254
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
255
|
+
text: z.ZodString;
|
|
256
|
+
}, z.core.$strip>>>>;
|
|
257
|
+
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
218
258
|
license_id: z.ZodOptional<z.ZodString>;
|
|
219
259
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
220
260
|
unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -230,9 +270,9 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<{
|
|
|
230
270
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
231
271
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
232
272
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
233
|
-
id: z.ZodDefault<z.
|
|
234
|
-
team_id: z.ZodDefault<z.ZodNullable<z.
|
|
235
|
-
org_id: z.ZodDefault<z.ZodNullable<z.
|
|
273
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
274
|
+
team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
275
|
+
org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
236
276
|
name: z.ZodString;
|
|
237
277
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
238
278
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
@@ -242,13 +282,13 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<{
|
|
|
242
282
|
"in-progress": "in-progress";
|
|
243
283
|
}>>>;
|
|
244
284
|
source: z.ZodDefault<z.ZodEnum<{
|
|
245
|
-
api: "api";
|
|
246
285
|
web: "web";
|
|
286
|
+
api: "api";
|
|
247
287
|
}>>;
|
|
248
288
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
249
|
-
organization: "organization";
|
|
250
289
|
public: "public";
|
|
251
290
|
private: "private";
|
|
291
|
+
organization: "organization";
|
|
252
292
|
monetized: "monetized";
|
|
253
293
|
inherit: "inherit";
|
|
254
294
|
}>>>;
|
|
@@ -274,26 +314,120 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<{
|
|
|
274
314
|
path: z.ZodString;
|
|
275
315
|
extension: z.ZodString;
|
|
276
316
|
name: z.ZodString;
|
|
277
|
-
id: z.
|
|
317
|
+
id: z.ZodUUID;
|
|
278
318
|
bucket: z.ZodEnum<{
|
|
279
319
|
"public-files": "public-files";
|
|
280
320
|
files: "files";
|
|
281
321
|
}>;
|
|
282
322
|
}, z.core.$strip>;
|
|
283
323
|
preview: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
284
|
-
}, z.core.$strip
|
|
285
|
-
|
|
324
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
325
|
+
id: string;
|
|
326
|
+
team_id: string | null;
|
|
327
|
+
org_id: string | null;
|
|
328
|
+
name: string;
|
|
329
|
+
state: "success" | "error" | "queued" | "in-progress";
|
|
330
|
+
source: "web" | "api";
|
|
331
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
332
|
+
created_at: string;
|
|
333
|
+
last_updated: string;
|
|
334
|
+
asset_type: "dataset";
|
|
335
|
+
metadata: {
|
|
336
|
+
table_name: string;
|
|
337
|
+
schema: "datasets";
|
|
338
|
+
columns: string[];
|
|
339
|
+
type: string;
|
|
340
|
+
size: number;
|
|
341
|
+
path: string;
|
|
342
|
+
extension: string;
|
|
343
|
+
name: string;
|
|
344
|
+
id: string;
|
|
345
|
+
bucket: "public-files" | "files";
|
|
346
|
+
doi_url?: string | null | undefined;
|
|
347
|
+
external_url?: string | null | undefined;
|
|
348
|
+
paper_url?: string | null | undefined;
|
|
349
|
+
github_url?: string | null | undefined;
|
|
350
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
351
|
+
source?: string | null | undefined;
|
|
352
|
+
};
|
|
353
|
+
preview: Record<string, any>[];
|
|
354
|
+
parent?: Record<string, any> | undefined;
|
|
355
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
356
|
+
description?: {
|
|
357
|
+
json: Record<string, any>;
|
|
358
|
+
text: string;
|
|
359
|
+
} | null | undefined;
|
|
360
|
+
parent_id?: string | null | undefined;
|
|
361
|
+
license_id?: string | undefined;
|
|
362
|
+
price?: number | null | undefined;
|
|
363
|
+
unit_cost?: number | null | undefined;
|
|
364
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
365
|
+
cost_unit?: string | null | undefined;
|
|
366
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
367
|
+
stripe_product_id?: string | null | undefined;
|
|
368
|
+
stripe_price_id?: string | null | undefined;
|
|
369
|
+
stripe_meter_id?: string | null | undefined;
|
|
370
|
+
name_url_slug?: string | null | undefined;
|
|
371
|
+
}, {
|
|
372
|
+
id: string;
|
|
373
|
+
team_id: string | null;
|
|
374
|
+
org_id: string | null;
|
|
375
|
+
name: string;
|
|
376
|
+
state: "success" | "error" | "queued" | "in-progress";
|
|
377
|
+
source: "web" | "api";
|
|
378
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
379
|
+
created_at: string;
|
|
380
|
+
last_updated: string;
|
|
381
|
+
asset_type: "dataset";
|
|
382
|
+
metadata: {
|
|
383
|
+
table_name: string;
|
|
384
|
+
schema: "datasets";
|
|
385
|
+
columns: string[];
|
|
386
|
+
type: string;
|
|
387
|
+
size: number;
|
|
388
|
+
path: string;
|
|
389
|
+
extension: string;
|
|
390
|
+
name: string;
|
|
391
|
+
id: string;
|
|
392
|
+
bucket: "public-files" | "files";
|
|
393
|
+
doi_url?: string | null | undefined;
|
|
394
|
+
external_url?: string | null | undefined;
|
|
395
|
+
paper_url?: string | null | undefined;
|
|
396
|
+
github_url?: string | null | undefined;
|
|
397
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
398
|
+
source?: string | null | undefined;
|
|
399
|
+
};
|
|
400
|
+
preview: Record<string, any>[];
|
|
401
|
+
parent?: Record<string, any> | undefined;
|
|
402
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
403
|
+
description?: {
|
|
404
|
+
json: Record<string, any>;
|
|
405
|
+
text: string;
|
|
406
|
+
} | null | undefined;
|
|
407
|
+
parent_id?: string | null | undefined;
|
|
408
|
+
license_id?: string | undefined;
|
|
409
|
+
price?: number | null | undefined;
|
|
410
|
+
unit_cost?: number | null | undefined;
|
|
411
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
412
|
+
cost_unit?: string | null | undefined;
|
|
413
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
414
|
+
stripe_product_id?: string | null | undefined;
|
|
415
|
+
stripe_price_id?: string | null | undefined;
|
|
416
|
+
stripe_meter_id?: string | null | undefined;
|
|
417
|
+
name_url_slug?: string | null | undefined;
|
|
418
|
+
}>>;
|
|
419
|
+
declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
286
420
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
287
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
288
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
289
|
-
text: z.ZodString;
|
|
290
|
-
}, z.core.$strip>>>>;
|
|
291
421
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
292
422
|
none: "none";
|
|
293
423
|
"pay-to-unlock": "pay-to-unlock";
|
|
294
424
|
"pay-per-use": "pay-per-use";
|
|
295
425
|
}>>;
|
|
296
|
-
|
|
426
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
427
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
428
|
+
text: z.ZodString;
|
|
429
|
+
}, z.core.$strip>>>>;
|
|
430
|
+
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
297
431
|
license_id: z.ZodOptional<z.ZodString>;
|
|
298
432
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
299
433
|
unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -309,9 +443,9 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<{
|
|
|
309
443
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
310
444
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
311
445
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
312
|
-
id: z.ZodDefault<z.
|
|
313
|
-
team_id: z.ZodDefault<z.ZodNullable<z.
|
|
314
|
-
org_id: z.ZodDefault<z.ZodNullable<z.
|
|
446
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
447
|
+
team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
448
|
+
org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
315
449
|
name: z.ZodString;
|
|
316
450
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
317
451
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
@@ -321,13 +455,13 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<{
|
|
|
321
455
|
"in-progress": "in-progress";
|
|
322
456
|
}>>>;
|
|
323
457
|
source: z.ZodDefault<z.ZodEnum<{
|
|
324
|
-
api: "api";
|
|
325
458
|
web: "web";
|
|
459
|
+
api: "api";
|
|
326
460
|
}>>;
|
|
327
461
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
328
|
-
organization: "organization";
|
|
329
462
|
public: "public";
|
|
330
463
|
private: "private";
|
|
464
|
+
organization: "organization";
|
|
331
465
|
monetized: "monetized";
|
|
332
466
|
inherit: "inherit";
|
|
333
467
|
}>>>;
|
|
@@ -350,52 +484,100 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<{
|
|
|
350
484
|
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
351
485
|
}, z.core.$strip>;
|
|
352
486
|
preview: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
353
|
-
}, z.core.$strip
|
|
354
|
-
|
|
355
|
-
|
|
487
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
488
|
+
id: string;
|
|
489
|
+
team_id: string | null;
|
|
490
|
+
org_id: string | null;
|
|
491
|
+
name: string;
|
|
492
|
+
state: "success" | "error" | "queued" | "in-progress";
|
|
493
|
+
source: "web" | "api";
|
|
494
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
495
|
+
created_at: string;
|
|
496
|
+
last_updated: string;
|
|
497
|
+
asset_type: "dataset";
|
|
498
|
+
metadata: {
|
|
499
|
+
table_name: string;
|
|
500
|
+
schema: "datasets";
|
|
501
|
+
columns: string[];
|
|
502
|
+
doi_url?: string | null | undefined;
|
|
503
|
+
external_url?: string | null | undefined;
|
|
504
|
+
paper_url?: string | null | undefined;
|
|
505
|
+
github_url?: string | null | undefined;
|
|
506
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
507
|
+
source?: string | null | undefined;
|
|
508
|
+
};
|
|
509
|
+
preview: Record<string, any>[];
|
|
510
|
+
parent?: Record<string, any> | undefined;
|
|
511
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
512
|
+
description?: {
|
|
513
|
+
json: Record<string, any>;
|
|
514
|
+
text: string;
|
|
515
|
+
} | null | undefined;
|
|
516
|
+
parent_id?: string | null | undefined;
|
|
517
|
+
license_id?: string | undefined;
|
|
518
|
+
price?: number | null | undefined;
|
|
519
|
+
unit_cost?: number | null | undefined;
|
|
520
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
521
|
+
cost_unit?: string | null | undefined;
|
|
522
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
523
|
+
stripe_product_id?: string | null | undefined;
|
|
524
|
+
stripe_price_id?: string | null | undefined;
|
|
525
|
+
stripe_meter_id?: string | null | undefined;
|
|
526
|
+
name_url_slug?: string | null | undefined;
|
|
527
|
+
}, {
|
|
528
|
+
id: string;
|
|
529
|
+
team_id: string | null;
|
|
530
|
+
org_id: string | null;
|
|
531
|
+
name: string;
|
|
532
|
+
state: "success" | "error" | "queued" | "in-progress";
|
|
533
|
+
source: "web" | "api";
|
|
534
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
535
|
+
created_at: string;
|
|
536
|
+
last_updated: string;
|
|
537
|
+
asset_type: "dataset";
|
|
538
|
+
metadata: {
|
|
539
|
+
table_name: string;
|
|
540
|
+
schema: "datasets";
|
|
541
|
+
columns: string[];
|
|
542
|
+
doi_url?: string | null | undefined;
|
|
543
|
+
external_url?: string | null | undefined;
|
|
544
|
+
paper_url?: string | null | undefined;
|
|
545
|
+
github_url?: string | null | undefined;
|
|
546
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
547
|
+
source?: string | null | undefined;
|
|
548
|
+
};
|
|
549
|
+
preview: Record<string, any>[];
|
|
550
|
+
parent?: Record<string, any> | undefined;
|
|
551
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
552
|
+
description?: {
|
|
553
|
+
json: Record<string, any>;
|
|
554
|
+
text: string;
|
|
555
|
+
} | null | undefined;
|
|
556
|
+
parent_id?: string | null | undefined;
|
|
557
|
+
license_id?: string | undefined;
|
|
558
|
+
price?: number | null | undefined;
|
|
559
|
+
unit_cost?: number | null | undefined;
|
|
560
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
561
|
+
cost_unit?: string | null | undefined;
|
|
562
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
563
|
+
stripe_product_id?: string | null | undefined;
|
|
564
|
+
stripe_price_id?: string | null | undefined;
|
|
565
|
+
stripe_meter_id?: string | null | undefined;
|
|
566
|
+
name_url_slug?: string | null | undefined;
|
|
567
|
+
}>>;
|
|
568
|
+
declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
356
569
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
362
|
-
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
363
|
-
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
364
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
365
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
366
|
-
original: "original";
|
|
367
|
-
derivative: "derivative";
|
|
368
|
-
"third-party": "third-party";
|
|
369
|
-
}>>;
|
|
370
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
371
|
-
type: z.ZodOptional<z.ZodString>;
|
|
372
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
373
|
-
path: z.ZodOptional<z.ZodString>;
|
|
374
|
-
extension: z.ZodOptional<z.ZodString>;
|
|
375
|
-
name: z.ZodOptional<z.ZodString>;
|
|
376
|
-
id: z.ZodOptional<z.ZodString>;
|
|
377
|
-
bucket: z.ZodOptional<z.ZodEnum<{
|
|
378
|
-
"public-files": "public-files";
|
|
379
|
-
files: "files";
|
|
380
|
-
}>>;
|
|
381
|
-
}, z.core.$strip>>;
|
|
382
|
-
name: z.ZodOptional<z.ZodString>;
|
|
383
|
-
team_id: z.ZodOptional<z.ZodString>;
|
|
570
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
571
|
+
web: "web";
|
|
572
|
+
api: "api";
|
|
573
|
+
}>>;
|
|
384
574
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
385
|
-
organization: "organization";
|
|
386
575
|
public: "public";
|
|
387
576
|
private: "private";
|
|
577
|
+
organization: "organization";
|
|
388
578
|
monetized: "monetized";
|
|
389
579
|
inherit: "inherit";
|
|
390
580
|
}>>;
|
|
391
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
392
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
393
|
-
text: z.ZodString;
|
|
394
|
-
}, z.core.$strip>>>>;
|
|
395
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
396
|
-
api: "api";
|
|
397
|
-
web: "web";
|
|
398
|
-
}>>;
|
|
399
581
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
400
582
|
none: "none";
|
|
401
583
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -407,7 +589,14 @@ declare const updateDatasetSchema: z.ZodObject<{
|
|
|
407
589
|
queued: "queued";
|
|
408
590
|
"in-progress": "in-progress";
|
|
409
591
|
}>>;
|
|
410
|
-
|
|
592
|
+
name: z.ZodOptional<z.ZodString>;
|
|
593
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
594
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
595
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
596
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
597
|
+
text: z.ZodString;
|
|
598
|
+
}, z.core.$strip>>>>;
|
|
599
|
+
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
411
600
|
license_id: z.ZodOptional<z.ZodString>;
|
|
412
601
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
413
602
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -425,10 +614,127 @@ declare const updateDatasetSchema: z.ZodObject<{
|
|
|
425
614
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
426
615
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
427
616
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
617
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
618
|
+
table_name: z.ZodString;
|
|
619
|
+
schema: z.ZodDefault<z.ZodLiteral<"datasets">>;
|
|
620
|
+
columns: z.ZodArray<z.ZodString>;
|
|
621
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
622
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
623
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
624
|
+
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
625
|
+
originality: z.ZodOptional<z.ZodEnum<{
|
|
626
|
+
original: "original";
|
|
627
|
+
derivative: "derivative";
|
|
628
|
+
"third-party": "third-party";
|
|
629
|
+
}>>;
|
|
630
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
631
|
+
type: z.ZodOptional<z.ZodString>;
|
|
632
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
633
|
+
path: z.ZodOptional<z.ZodString>;
|
|
634
|
+
extension: z.ZodOptional<z.ZodString>;
|
|
635
|
+
name: z.ZodOptional<z.ZodString>;
|
|
636
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
637
|
+
bucket: z.ZodOptional<z.ZodEnum<{
|
|
638
|
+
"public-files": "public-files";
|
|
639
|
+
files: "files";
|
|
640
|
+
}>>;
|
|
641
|
+
}, z.core.$strip>>;
|
|
428
642
|
preview: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
429
643
|
asset_type: z.ZodDefault<z.ZodLiteral<"dataset">>;
|
|
430
644
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
431
|
-
}, z.core.$strip
|
|
645
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
646
|
+
asset_type: "dataset";
|
|
647
|
+
last_updated: string;
|
|
648
|
+
parent?: Record<string, any> | undefined;
|
|
649
|
+
source?: "web" | "api" | undefined;
|
|
650
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
651
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
652
|
+
state?: "success" | "error" | "queued" | "in-progress" | undefined;
|
|
653
|
+
name?: string | undefined;
|
|
654
|
+
org_id?: string | undefined;
|
|
655
|
+
team_id?: string | undefined;
|
|
656
|
+
description?: {
|
|
657
|
+
json: Record<string, any>;
|
|
658
|
+
text: string;
|
|
659
|
+
} | null | undefined;
|
|
660
|
+
parent_id?: string | null | undefined;
|
|
661
|
+
license_id?: string | undefined;
|
|
662
|
+
license?: Record<string, any> | undefined;
|
|
663
|
+
name_url_slug?: string | null | undefined;
|
|
664
|
+
price?: number | null | undefined;
|
|
665
|
+
unit_cost?: number | null | undefined;
|
|
666
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
667
|
+
cost_unit?: string | null | undefined;
|
|
668
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
669
|
+
stripe_product_id?: string | null | undefined;
|
|
670
|
+
stripe_price_id?: string | null | undefined;
|
|
671
|
+
stripe_meter_id?: string | null | undefined;
|
|
672
|
+
metadata?: {
|
|
673
|
+
table_name: string;
|
|
674
|
+
schema: "datasets";
|
|
675
|
+
columns: string[];
|
|
676
|
+
doi_url?: string | null | undefined;
|
|
677
|
+
external_url?: string | null | undefined;
|
|
678
|
+
paper_url?: string | null | undefined;
|
|
679
|
+
github_url?: string | null | undefined;
|
|
680
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
681
|
+
source?: string | null | undefined;
|
|
682
|
+
type?: string | undefined;
|
|
683
|
+
size?: number | undefined;
|
|
684
|
+
path?: string | undefined;
|
|
685
|
+
extension?: string | undefined;
|
|
686
|
+
name?: string | undefined;
|
|
687
|
+
id?: string | undefined;
|
|
688
|
+
bucket?: "public-files" | "files" | undefined;
|
|
689
|
+
} | undefined;
|
|
690
|
+
preview?: Record<string, any>[] | undefined;
|
|
691
|
+
}, {
|
|
692
|
+
asset_type: "dataset";
|
|
693
|
+
last_updated: string;
|
|
694
|
+
parent?: Record<string, any> | undefined;
|
|
695
|
+
source?: "web" | "api" | undefined;
|
|
696
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
697
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
698
|
+
state?: "success" | "error" | "queued" | "in-progress" | undefined;
|
|
699
|
+
name?: string | undefined;
|
|
700
|
+
org_id?: string | undefined;
|
|
701
|
+
team_id?: string | undefined;
|
|
702
|
+
description?: {
|
|
703
|
+
json: Record<string, any>;
|
|
704
|
+
text: string;
|
|
705
|
+
} | null | undefined;
|
|
706
|
+
parent_id?: string | null | undefined;
|
|
707
|
+
license_id?: string | undefined;
|
|
708
|
+
license?: Record<string, any> | undefined;
|
|
709
|
+
name_url_slug?: string | null | undefined;
|
|
710
|
+
price?: number | null | undefined;
|
|
711
|
+
unit_cost?: number | null | undefined;
|
|
712
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
713
|
+
cost_unit?: string | null | undefined;
|
|
714
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
715
|
+
stripe_product_id?: string | null | undefined;
|
|
716
|
+
stripe_price_id?: string | null | undefined;
|
|
717
|
+
stripe_meter_id?: string | null | undefined;
|
|
718
|
+
metadata?: {
|
|
719
|
+
table_name: string;
|
|
720
|
+
schema: "datasets";
|
|
721
|
+
columns: string[];
|
|
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
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
727
|
+
source?: string | null | undefined;
|
|
728
|
+
type?: string | undefined;
|
|
729
|
+
size?: number | undefined;
|
|
730
|
+
path?: string | undefined;
|
|
731
|
+
extension?: string | undefined;
|
|
732
|
+
name?: string | undefined;
|
|
733
|
+
id?: string | undefined;
|
|
734
|
+
bucket?: "public-files" | "files" | undefined;
|
|
735
|
+
} | undefined;
|
|
736
|
+
preview?: Record<string, any>[] | undefined;
|
|
737
|
+
}>>;
|
|
432
738
|
|
|
433
739
|
type Dataset = z.infer<typeof DatasetSchema>;
|
|
434
740
|
type CreateFromFileDataset = z.infer<typeof CreateDatasetFromFileSchema>;
|