@ourofoundation/ouro-js 3.0.4 → 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.
Files changed (212) hide show
  1. package/dist/chunk-25FGGQFY.cjs +2 -0
  2. package/dist/chunk-25FGGQFY.cjs.map +1 -0
  3. package/dist/chunk-332F74RS.js +2 -0
  4. package/dist/chunk-332F74RS.js.map +1 -0
  5. package/dist/{chunk-FPRFE54S.cjs → chunk-4KUHOXA5.cjs} +2 -2
  6. package/dist/{chunk-FPRFE54S.cjs.map → chunk-4KUHOXA5.cjs.map} +1 -1
  7. package/dist/chunk-63BUDJ7V.js +2 -0
  8. package/dist/chunk-63BUDJ7V.js.map +1 -0
  9. package/dist/chunk-6RGIIOOP.js +2 -0
  10. package/dist/chunk-6RGIIOOP.js.map +1 -0
  11. package/dist/chunk-6UH4ZK6D.cjs +2 -0
  12. package/dist/chunk-6UH4ZK6D.cjs.map +1 -0
  13. package/dist/chunk-6XNV6B6L.cjs +2 -0
  14. package/dist/chunk-6XNV6B6L.cjs.map +1 -0
  15. package/dist/chunk-7HF5VHUN.cjs +2 -0
  16. package/dist/chunk-7HF5VHUN.cjs.map +1 -0
  17. package/dist/chunk-B7NJYI4N.cjs +2 -0
  18. package/dist/{chunk-IIKZ5DYT.cjs.map → chunk-B7NJYI4N.cjs.map} +1 -1
  19. package/dist/chunk-BDFRHJD4.js +2 -0
  20. package/dist/chunk-BDFRHJD4.js.map +1 -0
  21. package/dist/chunk-BULBWSNF.js +2 -0
  22. package/dist/chunk-BULBWSNF.js.map +1 -0
  23. package/dist/chunk-CBWCC3NJ.js +2 -0
  24. package/dist/chunk-CBWCC3NJ.js.map +1 -0
  25. package/dist/chunk-D4SCLCSO.cjs +2 -0
  26. package/dist/chunk-D4SCLCSO.cjs.map +1 -0
  27. package/dist/chunk-DAN33Z3Q.cjs +2 -0
  28. package/dist/chunk-DAN33Z3Q.cjs.map +1 -0
  29. package/dist/chunk-DHQJ2FCF.cjs +2 -0
  30. package/dist/chunk-DHQJ2FCF.cjs.map +1 -0
  31. package/dist/chunk-DUBPWSCA.js +2 -0
  32. package/dist/chunk-DUBPWSCA.js.map +1 -0
  33. package/dist/{chunk-NUGG4SK2.js → chunk-FS5P754F.js} +2 -2
  34. package/dist/{chunk-NUGG4SK2.js.map → chunk-FS5P754F.js.map} +1 -1
  35. package/dist/chunk-ICU37YVV.js +2 -0
  36. package/dist/chunk-ICU37YVV.js.map +1 -0
  37. package/dist/chunk-J2SVE52E.js +2 -0
  38. package/dist/chunk-J2SVE52E.js.map +1 -0
  39. package/dist/chunk-JANLRWLU.cjs +2 -0
  40. package/dist/chunk-JANLRWLU.cjs.map +1 -0
  41. package/dist/chunk-JNBXFB5P.cjs +2 -0
  42. package/dist/chunk-JNBXFB5P.cjs.map +1 -0
  43. package/dist/chunk-LDAPPQXR.js +2 -0
  44. package/dist/chunk-LDAPPQXR.js.map +1 -0
  45. package/dist/chunk-MAHNRYUV.cjs +2 -0
  46. package/dist/chunk-MAHNRYUV.cjs.map +1 -0
  47. package/dist/chunk-MQYRINJ5.cjs +2 -0
  48. package/dist/chunk-MQYRINJ5.cjs.map +1 -0
  49. package/dist/chunk-OD7M3RFZ.cjs +2 -0
  50. package/dist/chunk-OD7M3RFZ.cjs.map +1 -0
  51. package/dist/chunk-P4VD5SVM.cjs +2 -0
  52. package/dist/chunk-P4VD5SVM.cjs.map +1 -0
  53. package/dist/chunk-PX6OZKCX.cjs +2 -0
  54. package/dist/chunk-PX6OZKCX.cjs.map +1 -0
  55. package/dist/chunk-QZ3AAXO5.js +2 -0
  56. package/dist/chunk-QZ3AAXO5.js.map +1 -0
  57. package/dist/chunk-S5TPBKS6.js +2 -0
  58. package/dist/{chunk-T3J5Y445.js.map → chunk-S5TPBKS6.js.map} +1 -1
  59. package/dist/chunk-T4BUMCXS.cjs +2 -0
  60. package/dist/chunk-T4BUMCXS.cjs.map +1 -0
  61. package/dist/chunk-VBRZ227O.js +2 -0
  62. package/dist/chunk-VBRZ227O.js.map +1 -0
  63. package/dist/chunk-WE6CXCEQ.js +2 -0
  64. package/dist/chunk-WE6CXCEQ.js.map +1 -0
  65. package/dist/chunk-XJH3EC3E.js +2 -0
  66. package/dist/chunk-XJH3EC3E.js.map +1 -0
  67. package/dist/chunk-XPQVPGJX.js +2 -0
  68. package/dist/chunk-XPQVPGJX.js.map +1 -0
  69. package/dist/chunk-Z2GTDYQ6.cjs +2 -0
  70. package/dist/chunk-Z2GTDYQ6.cjs.map +1 -0
  71. package/dist/chunk-ZQAXMMR2.js +2 -0
  72. package/dist/chunk-ZQAXMMR2.js.map +1 -0
  73. package/dist/index.cjs +1 -1
  74. package/dist/index.d.cts +3 -3
  75. package/dist/index.d.ts +3 -3
  76. package/dist/index.js +1 -1
  77. package/dist/schema/assets.cjs +1 -1
  78. package/dist/schema/assets.d.cts +156 -32
  79. package/dist/schema/assets.d.ts +156 -32
  80. package/dist/schema/assets.js +1 -1
  81. package/dist/schema/blueprints.cjs +1 -1
  82. package/dist/schema/blueprints.d.cts +420 -42
  83. package/dist/schema/blueprints.d.ts +420 -42
  84. package/dist/schema/blueprints.js +1 -1
  85. package/dist/schema/comments.cjs +1 -1
  86. package/dist/schema/comments.d.cts +411 -51
  87. package/dist/schema/comments.d.ts +411 -51
  88. package/dist/schema/comments.js +1 -1
  89. package/dist/schema/common.cjs +1 -1
  90. package/dist/schema/common.d.cts +18 -18
  91. package/dist/schema/common.d.ts +18 -18
  92. package/dist/schema/common.js +1 -1
  93. package/dist/schema/constants.cjs +2 -0
  94. package/dist/schema/constants.cjs.map +1 -0
  95. package/dist/schema/constants.d.cts +5 -0
  96. package/dist/schema/constants.d.ts +5 -0
  97. package/dist/schema/constants.js +2 -0
  98. package/dist/schema/constants.js.map +1 -0
  99. package/dist/schema/conversations.cjs +1 -1
  100. package/dist/schema/conversations.d.cts +237 -37
  101. package/dist/schema/conversations.d.ts +237 -37
  102. package/dist/schema/conversations.js +1 -1
  103. package/dist/schema/datasets.cjs +1 -1
  104. package/dist/schema/datasets.d.cts +352 -40
  105. package/dist/schema/datasets.d.ts +352 -40
  106. package/dist/schema/datasets.js +1 -1
  107. package/dist/schema/files.cjs +1 -1
  108. package/dist/schema/files.d.cts +342 -38
  109. package/dist/schema/files.d.ts +342 -38
  110. package/dist/schema/files.js +1 -1
  111. package/dist/schema/notifications.cjs +1 -1
  112. package/dist/schema/notifications.d.cts +1 -1
  113. package/dist/schema/notifications.d.ts +1 -1
  114. package/dist/schema/notifications.js +1 -1
  115. package/dist/schema/organizations.cjs +1 -1
  116. package/dist/schema/organizations.d.cts +40 -9
  117. package/dist/schema/organizations.d.ts +40 -9
  118. package/dist/schema/organizations.js +1 -1
  119. package/dist/schema/posts.cjs +1 -1
  120. package/dist/schema/posts.d.cts +428 -86
  121. package/dist/schema/posts.d.ts +428 -86
  122. package/dist/schema/posts.js +1 -1
  123. package/dist/schema/reactions.cjs +1 -1
  124. package/dist/schema/reactions.d.cts +3 -3
  125. package/dist/schema/reactions.d.ts +3 -3
  126. package/dist/schema/reactions.js +1 -1
  127. package/dist/schema/replications.cjs +1 -1
  128. package/dist/schema/replications.d.cts +422 -42
  129. package/dist/schema/replications.d.ts +422 -42
  130. package/dist/schema/replications.js +1 -1
  131. package/dist/schema/services.cjs +1 -1
  132. package/dist/schema/services.d.cts +450 -92
  133. package/dist/schema/services.d.ts +450 -92
  134. package/dist/schema/services.js +1 -1
  135. package/dist/schema/teams.cjs +1 -1
  136. package/dist/schema/teams.d.cts +152 -36
  137. package/dist/schema/teams.d.ts +152 -36
  138. package/dist/schema/teams.js +1 -1
  139. package/dist/schema/users.cjs +1 -1
  140. package/dist/schema/users.d.cts +25 -7
  141. package/dist/schema/users.d.ts +25 -7
  142. package/dist/schema/users.js +1 -1
  143. package/dist/utils/air/index.cjs +1 -1
  144. package/dist/utils/air/index.d.cts +2 -2
  145. package/dist/utils/air/index.d.ts +2 -2
  146. package/dist/utils/air/index.js +1 -1
  147. package/dist/utils/navigate.cjs +1 -1
  148. package/dist/utils/navigate.js +1 -1
  149. package/package.json +1 -1
  150. package/tsup.config.ts +16 -16
  151. package/dist/chunk-23QZJWT4.js +0 -2
  152. package/dist/chunk-23QZJWT4.js.map +0 -1
  153. package/dist/chunk-25I3OOVX.js +0 -2
  154. package/dist/chunk-25I3OOVX.js.map +0 -1
  155. package/dist/chunk-2UEII2SB.js +0 -2
  156. package/dist/chunk-2UEII2SB.js.map +0 -1
  157. package/dist/chunk-3RRKHJ3K.cjs +0 -2
  158. package/dist/chunk-3RRKHJ3K.cjs.map +0 -1
  159. package/dist/chunk-46OPRUDE.cjs +0 -2
  160. package/dist/chunk-46OPRUDE.cjs.map +0 -1
  161. package/dist/chunk-5GTFTJIX.cjs +0 -2
  162. package/dist/chunk-5GTFTJIX.cjs.map +0 -1
  163. package/dist/chunk-ARSGP6GA.js +0 -2
  164. package/dist/chunk-ARSGP6GA.js.map +0 -1
  165. package/dist/chunk-C6YNSHLF.cjs +0 -2
  166. package/dist/chunk-C6YNSHLF.cjs.map +0 -1
  167. package/dist/chunk-D2H3DN4E.cjs +0 -2
  168. package/dist/chunk-D2H3DN4E.cjs.map +0 -1
  169. package/dist/chunk-DBKWAOAN.js +0 -2
  170. package/dist/chunk-DBKWAOAN.js.map +0 -1
  171. package/dist/chunk-E5NMUCCO.js +0 -2
  172. package/dist/chunk-E5NMUCCO.js.map +0 -1
  173. package/dist/chunk-ENCQWA5V.js +0 -2
  174. package/dist/chunk-ENCQWA5V.js.map +0 -1
  175. package/dist/chunk-F6BY6AFM.cjs +0 -2
  176. package/dist/chunk-F6BY6AFM.cjs.map +0 -1
  177. package/dist/chunk-GZWXQVKW.cjs +0 -2
  178. package/dist/chunk-GZWXQVKW.cjs.map +0 -1
  179. package/dist/chunk-HXZE74XM.js +0 -2
  180. package/dist/chunk-HXZE74XM.js.map +0 -1
  181. package/dist/chunk-I43MBJPR.cjs +0 -2
  182. package/dist/chunk-I43MBJPR.cjs.map +0 -1
  183. package/dist/chunk-IDZYYMV6.js +0 -2
  184. package/dist/chunk-IDZYYMV6.js.map +0 -1
  185. package/dist/chunk-IIKZ5DYT.cjs +0 -2
  186. package/dist/chunk-LJK4UVDH.cjs +0 -2
  187. package/dist/chunk-LJK4UVDH.cjs.map +0 -1
  188. package/dist/chunk-N5ADIAWW.cjs +0 -2
  189. package/dist/chunk-N5ADIAWW.cjs.map +0 -1
  190. package/dist/chunk-PRJQMFU6.cjs +0 -2
  191. package/dist/chunk-PRJQMFU6.cjs.map +0 -1
  192. package/dist/chunk-QCRTFUD5.cjs +0 -2
  193. package/dist/chunk-QCRTFUD5.cjs.map +0 -1
  194. package/dist/chunk-QTPX6PU3.cjs +0 -2
  195. package/dist/chunk-QTPX6PU3.cjs.map +0 -1
  196. package/dist/chunk-RDRNI4JL.js +0 -2
  197. package/dist/chunk-RDRNI4JL.js.map +0 -1
  198. package/dist/chunk-RNMWNMZ4.js +0 -2
  199. package/dist/chunk-RNMWNMZ4.js.map +0 -1
  200. package/dist/chunk-RPUL3U2U.js +0 -2
  201. package/dist/chunk-RPUL3U2U.js.map +0 -1
  202. package/dist/chunk-SO5EANPA.js +0 -2
  203. package/dist/chunk-SO5EANPA.js.map +0 -1
  204. package/dist/chunk-T3J5Y445.js +0 -2
  205. package/dist/chunk-VEBHQ6A7.cjs +0 -2
  206. package/dist/chunk-VEBHQ6A7.cjs.map +0 -1
  207. package/dist/chunk-VOX7A2FD.js +0 -2
  208. package/dist/chunk-VOX7A2FD.js.map +0 -1
  209. package/dist/chunk-X3BAM4T3.cjs +0 -2
  210. package/dist/chunk-X3BAM4T3.cjs.map +0 -1
  211. package/dist/chunk-YBDW45V3.js +0 -2
  212. package/dist/chunk-YBDW45V3.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.ZodString;
5
- user_id: z.ZodString;
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,18 +13,23 @@ 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.ZodString>>>;
17
- is_agent: z.ZodOptional<z.ZodBoolean>;
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.ZodString;
28
+ org_id: z.ZodUUID;
25
29
  organization: z.ZodOptional<z.ZodObject<{
26
- id: z.ZodOptional<z.ZodString>;
30
+ id: z.ZodOptional<z.ZodUUID>;
27
31
  name: z.ZodOptional<z.ZodString>;
32
+ display_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
28
33
  avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
29
34
  mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
30
35
  size: z.ZodOptional<z.ZodString>;
@@ -39,14 +44,28 @@ declare const DatasetSchema: z.ZodObject<{
39
44
  write: "write";
40
45
  none: "none";
41
46
  }>>>;
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>>>;
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
+ }>>>>;
42
60
  }, z.core.$strip>>;
43
- team_id: z.ZodString;
61
+ team_id: z.ZodUUID;
44
62
  team: z.ZodOptional<z.ZodObject<{
45
- id: z.ZodOptional<z.ZodString>;
46
- org_id: z.ZodOptional<z.ZodString>;
63
+ id: z.ZodOptional<z.ZodUUID>;
64
+ org_id: z.ZodOptional<z.ZodUUID>;
47
65
  organization: z.ZodOptional<z.ZodObject<{
48
- id: z.ZodString;
66
+ id: z.ZodUUID;
49
67
  name: z.ZodString;
68
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
69
  avatar_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
70
  mission: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
71
  size: z.ZodString;
@@ -61,6 +80,19 @@ declare const DatasetSchema: z.ZodObject<{
61
80
  write: "write";
62
81
  none: "none";
63
82
  }>>;
83
+ allow_external_members: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
84
+ allow_external_public_team_creation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
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
+ }>>>;
64
96
  }, z.core.$strip>>;
65
97
  name: z.ZodOptional<z.ZodString>;
66
98
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -74,14 +106,24 @@ declare const DatasetSchema: z.ZodObject<{
74
106
  none: "none";
75
107
  }>>;
76
108
  visibility: z.ZodOptional<z.ZodEnum<{
77
- organization: "organization";
78
109
  public: "public";
79
110
  private: "private";
111
+ organization: "organization";
80
112
  monetized: "monetized";
81
113
  inherit: "inherit";
82
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
+ }>>>>;
83
125
  userMembership: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
84
- user_id: z.ZodString;
126
+ user_id: z.ZodUUID;
85
127
  role: z.ZodEnum<{
86
128
  admin: "admin";
87
129
  read: "read";
@@ -91,7 +133,7 @@ declare const DatasetSchema: z.ZodObject<{
91
133
  }, z.core.$strip>>>>;
92
134
  memberCount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
93
135
  members: z.ZodOptional<z.ZodArray<z.ZodObject<{
94
- user_id: z.ZodString;
136
+ user_id: z.ZodUUID;
95
137
  role: z.ZodEnum<{
96
138
  admin: "admin";
97
139
  read: "read";
@@ -109,8 +151,12 @@ declare const DatasetSchema: z.ZodObject<{
109
151
  urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
110
152
  value: z.ZodString;
111
153
  }, z.core.$strip>>>>;
112
- post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
113
- is_agent: z.ZodOptional<z.ZodBoolean>;
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
+ }>>;
114
160
  plan_type: z.ZodOptional<z.ZodEnum<{
115
161
  free: "free";
116
162
  gold: "gold";
@@ -120,7 +166,7 @@ declare const DatasetSchema: z.ZodObject<{
120
166
  }, z.core.$strip>>>;
121
167
  created_at: z.ZodOptional<z.ZodString>;
122
168
  }, z.core.$strip>>;
123
- parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
169
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
124
170
  parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
125
171
  license_id: z.ZodString;
126
172
  license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -132,9 +178,9 @@ declare const DatasetSchema: z.ZodObject<{
132
178
  text: z.ZodString;
133
179
  }, z.core.$strip>>>;
134
180
  visibility: z.ZodEnum<{
135
- organization: "organization";
136
181
  public: "public";
137
182
  private: "private";
183
+ organization: "organization";
138
184
  monetized: "monetized";
139
185
  inherit: "inherit";
140
186
  }>;
@@ -189,7 +235,7 @@ declare const DatasetSchema: z.ZodObject<{
189
235
  path: z.ZodOptional<z.ZodString>;
190
236
  extension: z.ZodOptional<z.ZodString>;
191
237
  name: z.ZodOptional<z.ZodString>;
192
- id: z.ZodOptional<z.ZodString>;
238
+ id: z.ZodOptional<z.ZodUUID>;
193
239
  bucket: z.ZodOptional<z.ZodEnum<{
194
240
  "public-files": "public-files";
195
241
  files: "files";
@@ -197,7 +243,7 @@ declare const DatasetSchema: z.ZodObject<{
197
243
  }, z.core.$strip>;
198
244
  preview: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
199
245
  }, z.core.$strip>;
200
- declare const CreateDatasetFromFileSchema: z.ZodObject<{
246
+ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
201
247
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
202
248
  monetization: z.ZodOptional<z.ZodEnum<{
203
249
  none: "none";
@@ -208,7 +254,7 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<{
208
254
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
209
255
  text: z.ZodString;
210
256
  }, z.core.$strip>>>>;
211
- parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
257
+ parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
212
258
  license_id: z.ZodOptional<z.ZodString>;
213
259
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
214
260
  unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -224,9 +270,9 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<{
224
270
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
225
271
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
226
272
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
227
- id: z.ZodDefault<z.ZodString>;
228
- team_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
229
- org_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
273
+ id: z.ZodDefault<z.ZodUUID>;
274
+ team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
275
+ org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
230
276
  name: z.ZodString;
231
277
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
278
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -240,9 +286,9 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<{
240
286
  api: "api";
241
287
  }>>;
242
288
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
243
- organization: "organization";
244
289
  public: "public";
245
290
  private: "private";
291
+ organization: "organization";
246
292
  monetized: "monetized";
247
293
  inherit: "inherit";
248
294
  }>>>;
@@ -268,15 +314,109 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<{
268
314
  path: z.ZodString;
269
315
  extension: z.ZodString;
270
316
  name: z.ZodString;
271
- id: z.ZodString;
317
+ id: z.ZodUUID;
272
318
  bucket: z.ZodEnum<{
273
319
  "public-files": "public-files";
274
320
  files: "files";
275
321
  }>;
276
322
  }, z.core.$strip>;
277
323
  preview: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
278
- }, z.core.$strip>;
279
- declare const CreateDatasetFromSchemaSchema: z.ZodObject<{
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<{
280
420
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
281
421
  monetization: z.ZodOptional<z.ZodEnum<{
282
422
  none: "none";
@@ -287,7 +427,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<{
287
427
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
288
428
  text: z.ZodString;
289
429
  }, z.core.$strip>>>>;
290
- parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
430
+ parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
291
431
  license_id: z.ZodOptional<z.ZodString>;
292
432
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
293
433
  unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -303,9 +443,9 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<{
303
443
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
304
444
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
305
445
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
306
- id: z.ZodDefault<z.ZodString>;
307
- team_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
308
- org_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
446
+ id: z.ZodDefault<z.ZodUUID>;
447
+ team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
448
+ org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
309
449
  name: z.ZodString;
310
450
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
451
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -319,9 +459,9 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<{
319
459
  api: "api";
320
460
  }>>;
321
461
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
322
- organization: "organization";
323
462
  public: "public";
324
463
  private: "private";
464
+ organization: "organization";
325
465
  monetized: "monetized";
326
466
  inherit: "inherit";
327
467
  }>>>;
@@ -344,17 +484,97 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<{
344
484
  source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
345
485
  }, z.core.$strip>;
346
486
  preview: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
347
- }, z.core.$strip>;
348
- declare const updateDatasetSchema: z.ZodObject<{
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<{
349
569
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
350
570
  source: z.ZodOptional<z.ZodEnum<{
351
571
  web: "web";
352
572
  api: "api";
353
573
  }>>;
354
574
  visibility: z.ZodOptional<z.ZodEnum<{
355
- organization: "organization";
356
575
  public: "public";
357
576
  private: "private";
577
+ organization: "organization";
358
578
  monetized: "monetized";
359
579
  inherit: "inherit";
360
580
  }>>;
@@ -370,13 +590,13 @@ declare const updateDatasetSchema: z.ZodObject<{
370
590
  "in-progress": "in-progress";
371
591
  }>>;
372
592
  name: z.ZodOptional<z.ZodString>;
373
- org_id: z.ZodOptional<z.ZodString>;
374
- team_id: z.ZodOptional<z.ZodString>;
593
+ org_id: z.ZodOptional<z.ZodUUID>;
594
+ team_id: z.ZodOptional<z.ZodUUID>;
375
595
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
376
596
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
377
597
  text: z.ZodString;
378
598
  }, z.core.$strip>>>>;
379
- parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
599
+ parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
380
600
  license_id: z.ZodOptional<z.ZodString>;
381
601
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
382
602
  name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -413,7 +633,7 @@ declare const updateDatasetSchema: z.ZodObject<{
413
633
  path: z.ZodOptional<z.ZodString>;
414
634
  extension: z.ZodOptional<z.ZodString>;
415
635
  name: z.ZodOptional<z.ZodString>;
416
- id: z.ZodOptional<z.ZodString>;
636
+ id: z.ZodOptional<z.ZodUUID>;
417
637
  bucket: z.ZodOptional<z.ZodEnum<{
418
638
  "public-files": "public-files";
419
639
  files: "files";
@@ -422,7 +642,99 @@ declare const updateDatasetSchema: z.ZodObject<{
422
642
  preview: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
423
643
  asset_type: z.ZodDefault<z.ZodLiteral<"dataset">>;
424
644
  last_updated: z.ZodDefault<z.ZodString>;
425
- }, 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
+ }>>;
426
738
 
427
739
  type Dataset = z.infer<typeof DatasetSchema>;
428
740
  type CreateFromFileDataset = z.infer<typeof CreateDatasetFromFileSchema>;