@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 FileSchema: 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 FileSchema: 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 FileSchema: 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 FileSchema: 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 FileSchema: 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 FileSchema: 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 FileSchema: 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 FileSchema: 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 FileSchema: 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
  }>;
@@ -172,7 +218,7 @@ declare const FileSchema: z.ZodObject<{
172
218
  last_updated: z.ZodString;
173
219
  asset_type: z.ZodDefault<z.ZodLiteral<"file">>;
174
220
  metadata: z.ZodObject<{
175
- id: z.ZodString;
221
+ id: z.ZodUUID;
176
222
  path: z.ZodString;
177
223
  bucket: z.ZodEnum<{
178
224
  "public-files": "public-files";
@@ -196,7 +242,7 @@ declare const FileSchema: z.ZodObject<{
196
242
  source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
197
243
  }, z.core.$strip>;
198
244
  }, z.core.$strip>;
199
- declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
245
+ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
200
246
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
201
247
  monetization: z.ZodOptional<z.ZodEnum<{
202
248
  none: "none";
@@ -207,7 +253,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
207
253
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
208
254
  text: z.ZodString;
209
255
  }, z.core.$strip>>>>;
210
- parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
256
+ parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
211
257
  license_id: z.ZodOptional<z.ZodString>;
212
258
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
213
259
  unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -224,9 +270,9 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
224
270
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
225
271
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
226
272
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
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
  source: z.ZodDefault<z.ZodEnum<{
@@ -234,9 +280,9 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
234
280
  api: "api";
235
281
  }>>;
236
282
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
237
- organization: "organization";
238
283
  public: "public";
239
284
  private: "private";
285
+ organization: "organization";
240
286
  monetized: "monetized";
241
287
  inherit: "inherit";
242
288
  }>>>;
@@ -245,7 +291,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
245
291
  asset_type: z.ZodDefault<z.ZodLiteral<"file">>;
246
292
  state: z.ZodDefault<z.ZodLiteral<"success">>;
247
293
  metadata: z.ZodObject<{
248
- id: z.ZodString;
294
+ id: z.ZodUUID;
249
295
  path: z.ZodString;
250
296
  bucket: z.ZodEnum<{
251
297
  "public-files": "public-files";
@@ -279,7 +325,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
279
325
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
280
326
  text: z.ZodString;
281
327
  }, z.core.$strip>>>>;
282
- parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
328
+ parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
283
329
  license_id: z.ZodOptional<z.ZodString>;
284
330
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
285
331
  unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -296,9 +342,9 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
296
342
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
297
343
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
298
344
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
299
- id: z.ZodDefault<z.ZodString>;
300
- team_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
301
- org_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
345
+ id: z.ZodDefault<z.ZodUUID>;
346
+ team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
347
+ org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
302
348
  name: z.ZodString;
303
349
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
350
  source: z.ZodDefault<z.ZodEnum<{
@@ -306,9 +352,9 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
306
352
  api: "api";
307
353
  }>>;
308
354
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
309
- organization: "organization";
310
355
  public: "public";
311
356
  private: "private";
357
+ organization: "organization";
312
358
  monetized: "monetized";
313
359
  inherit: "inherit";
314
360
  }>>>;
@@ -329,8 +375,176 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
329
375
  }>>;
330
376
  source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
331
377
  }, z.core.$strip>;
332
- }, z.core.$strip>]>;
333
- declare const updateFileSchema: z.ZodObject<{
378
+ }, z.core.$strip>]>, z.ZodTransform<{
379
+ id: string;
380
+ team_id: string | null;
381
+ org_id: string | null;
382
+ name: string;
383
+ source: "web" | "api";
384
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
385
+ created_at: string;
386
+ last_updated: string;
387
+ asset_type: "file";
388
+ state: "success";
389
+ metadata: {
390
+ id: string;
391
+ path: string;
392
+ bucket: "public-files" | "files";
393
+ name: string;
394
+ type: string;
395
+ extension: string;
396
+ size: number;
397
+ width?: number | undefined;
398
+ height?: number | undefined;
399
+ doi_url?: string | null | undefined;
400
+ external_url?: string | null | undefined;
401
+ paper_url?: string | null | undefined;
402
+ github_url?: string | null | undefined;
403
+ originality?: "original" | "derivative" | "third-party" | undefined;
404
+ source?: string | null | undefined;
405
+ };
406
+ parent?: Record<string, any> | undefined;
407
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
408
+ description?: {
409
+ json: Record<string, any>;
410
+ text: string;
411
+ } | null | undefined;
412
+ parent_id?: string | null | undefined;
413
+ license_id?: string | undefined;
414
+ price?: number | null | undefined;
415
+ unit_cost?: number | null | undefined;
416
+ cost_accounting?: "fixed" | "variable" | null | undefined;
417
+ cost_unit?: string | null | undefined;
418
+ price_currency?: "usd" | "btc" | undefined;
419
+ stripe_product_id?: string | null | undefined;
420
+ stripe_price_id?: string | null | undefined;
421
+ stripe_meter_id?: string | null | undefined;
422
+ preview?: Record<string, any>[] | null | undefined;
423
+ name_url_slug?: string | null | undefined;
424
+ } | {
425
+ id: string;
426
+ team_id: string | null;
427
+ org_id: string | null;
428
+ name: string;
429
+ source: "web" | "api";
430
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
431
+ created_at: string;
432
+ last_updated: string;
433
+ asset_type: "file";
434
+ state: "in-progress";
435
+ metadata: {
436
+ type: string;
437
+ doi_url?: string | null | undefined;
438
+ external_url?: string | null | undefined;
439
+ paper_url?: string | null | undefined;
440
+ github_url?: string | null | undefined;
441
+ originality?: "original" | "derivative" | "third-party" | undefined;
442
+ source?: string | null | undefined;
443
+ };
444
+ parent?: Record<string, any> | undefined;
445
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
446
+ description?: {
447
+ json: Record<string, any>;
448
+ text: string;
449
+ } | null | undefined;
450
+ parent_id?: string | null | undefined;
451
+ license_id?: string | undefined;
452
+ price?: number | null | undefined;
453
+ unit_cost?: number | null | undefined;
454
+ cost_accounting?: "fixed" | "variable" | null | undefined;
455
+ cost_unit?: string | null | undefined;
456
+ price_currency?: "usd" | "btc" | undefined;
457
+ stripe_product_id?: string | null | undefined;
458
+ stripe_price_id?: string | null | undefined;
459
+ stripe_meter_id?: string | null | undefined;
460
+ preview?: Record<string, any>[] | null | undefined;
461
+ name_url_slug?: string | null | undefined;
462
+ }, {
463
+ id: string;
464
+ team_id: string | null;
465
+ org_id: string | null;
466
+ name: string;
467
+ source: "web" | "api";
468
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
469
+ created_at: string;
470
+ last_updated: string;
471
+ asset_type: "file";
472
+ state: "success";
473
+ metadata: {
474
+ id: string;
475
+ path: string;
476
+ bucket: "public-files" | "files";
477
+ name: string;
478
+ type: string;
479
+ extension: string;
480
+ size: number;
481
+ width?: number | undefined;
482
+ height?: number | undefined;
483
+ doi_url?: string | null | undefined;
484
+ external_url?: string | null | undefined;
485
+ paper_url?: string | null | undefined;
486
+ github_url?: string | null | undefined;
487
+ originality?: "original" | "derivative" | "third-party" | undefined;
488
+ source?: string | null | undefined;
489
+ };
490
+ parent?: Record<string, any> | undefined;
491
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
492
+ description?: {
493
+ json: Record<string, any>;
494
+ text: string;
495
+ } | null | undefined;
496
+ parent_id?: string | null | undefined;
497
+ license_id?: string | undefined;
498
+ price?: number | null | undefined;
499
+ unit_cost?: number | null | undefined;
500
+ cost_accounting?: "fixed" | "variable" | null | undefined;
501
+ cost_unit?: string | null | undefined;
502
+ price_currency?: "usd" | "btc" | undefined;
503
+ stripe_product_id?: string | null | undefined;
504
+ stripe_price_id?: string | null | undefined;
505
+ stripe_meter_id?: string | null | undefined;
506
+ preview?: Record<string, any>[] | null | undefined;
507
+ name_url_slug?: string | null | undefined;
508
+ } | {
509
+ id: string;
510
+ team_id: string | null;
511
+ org_id: string | null;
512
+ name: string;
513
+ source: "web" | "api";
514
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
515
+ created_at: string;
516
+ last_updated: string;
517
+ asset_type: "file";
518
+ state: "in-progress";
519
+ metadata: {
520
+ type: string;
521
+ doi_url?: string | null | undefined;
522
+ external_url?: string | null | undefined;
523
+ paper_url?: string | null | undefined;
524
+ github_url?: string | null | undefined;
525
+ originality?: "original" | "derivative" | "third-party" | undefined;
526
+ source?: string | null | undefined;
527
+ };
528
+ parent?: Record<string, any> | undefined;
529
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
530
+ description?: {
531
+ json: Record<string, any>;
532
+ text: string;
533
+ } | null | undefined;
534
+ parent_id?: string | null | undefined;
535
+ license_id?: string | undefined;
536
+ price?: number | null | undefined;
537
+ unit_cost?: number | null | undefined;
538
+ cost_accounting?: "fixed" | "variable" | null | undefined;
539
+ cost_unit?: string | null | undefined;
540
+ price_currency?: "usd" | "btc" | undefined;
541
+ stripe_product_id?: string | null | undefined;
542
+ stripe_price_id?: string | null | undefined;
543
+ stripe_meter_id?: string | null | undefined;
544
+ preview?: Record<string, any>[] | null | undefined;
545
+ name_url_slug?: string | null | undefined;
546
+ }>>;
547
+ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
334
548
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
335
549
  source: z.ZodOptional<z.ZodEnum<{
336
550
  web: "web";
@@ -338,9 +552,9 @@ declare const updateFileSchema: z.ZodObject<{
338
552
  }>>;
339
553
  asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"file">>>;
340
554
  visibility: z.ZodOptional<z.ZodEnum<{
341
- organization: "organization";
342
555
  public: "public";
343
556
  private: "private";
557
+ organization: "organization";
344
558
  monetized: "monetized";
345
559
  inherit: "inherit";
346
560
  }>>;
@@ -356,13 +570,13 @@ declare const updateFileSchema: z.ZodObject<{
356
570
  "in-progress": "in-progress";
357
571
  }>>;
358
572
  name: z.ZodOptional<z.ZodString>;
359
- org_id: z.ZodOptional<z.ZodString>;
360
- team_id: z.ZodOptional<z.ZodString>;
573
+ org_id: z.ZodOptional<z.ZodUUID>;
574
+ team_id: z.ZodOptional<z.ZodUUID>;
361
575
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
362
576
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
363
577
  text: z.ZodString;
364
578
  }, z.core.$strip>>>>;
365
- parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
579
+ parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
366
580
  license_id: z.ZodOptional<z.ZodString>;
367
581
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
368
582
  name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -381,7 +595,7 @@ declare const updateFileSchema: z.ZodObject<{
381
595
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
382
596
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
383
597
  metadata: z.ZodOptional<z.ZodObject<{
384
- id: z.ZodString;
598
+ id: z.ZodUUID;
385
599
  path: z.ZodString;
386
600
  bucket: z.ZodEnum<{
387
601
  "public-files": "public-files";
@@ -406,7 +620,97 @@ declare const updateFileSchema: z.ZodObject<{
406
620
  }, z.core.$strip>>;
407
621
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
408
622
  last_updated: z.ZodDefault<z.ZodString>;
409
- }, z.core.$strip>;
623
+ }, z.core.$strip>, z.ZodTransform<{
624
+ last_updated: string;
625
+ parent?: Record<string, any> | undefined;
626
+ source?: "web" | "api" | undefined;
627
+ asset_type?: "file" | undefined;
628
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
629
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
630
+ state?: "success" | "error" | "queued" | "in-progress" | undefined;
631
+ name?: string | undefined;
632
+ org_id?: string | undefined;
633
+ team_id?: string | undefined;
634
+ description?: {
635
+ json: Record<string, any>;
636
+ text: string;
637
+ } | null | undefined;
638
+ parent_id?: string | null | undefined;
639
+ license_id?: string | undefined;
640
+ license?: Record<string, any> | undefined;
641
+ name_url_slug?: string | null | undefined;
642
+ price?: number | null | undefined;
643
+ unit_cost?: number | null | undefined;
644
+ cost_accounting?: "fixed" | "variable" | null | undefined;
645
+ cost_unit?: string | null | undefined;
646
+ price_currency?: "usd" | "btc" | undefined;
647
+ stripe_product_id?: string | null | undefined;
648
+ stripe_price_id?: string | null | undefined;
649
+ stripe_meter_id?: string | null | undefined;
650
+ metadata?: {
651
+ id: string;
652
+ path: string;
653
+ bucket: "public-files" | "files";
654
+ name: string;
655
+ type: string;
656
+ extension: string;
657
+ size: number;
658
+ width?: number | undefined;
659
+ height?: number | undefined;
660
+ doi_url?: string | null | undefined;
661
+ external_url?: string | null | undefined;
662
+ paper_url?: string | null | undefined;
663
+ github_url?: string | null | undefined;
664
+ originality?: "original" | "derivative" | "third-party" | undefined;
665
+ source?: string | null | undefined;
666
+ } | undefined;
667
+ preview?: Record<string, any>[] | null | undefined;
668
+ }, {
669
+ last_updated: string;
670
+ parent?: Record<string, any> | undefined;
671
+ source?: "web" | "api" | undefined;
672
+ asset_type?: "file" | undefined;
673
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
674
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
675
+ state?: "success" | "error" | "queued" | "in-progress" | undefined;
676
+ name?: string | undefined;
677
+ org_id?: string | undefined;
678
+ team_id?: string | undefined;
679
+ description?: {
680
+ json: Record<string, any>;
681
+ text: string;
682
+ } | null | undefined;
683
+ parent_id?: string | null | undefined;
684
+ license_id?: string | undefined;
685
+ license?: Record<string, any> | undefined;
686
+ name_url_slug?: string | null | undefined;
687
+ price?: number | null | undefined;
688
+ unit_cost?: number | null | undefined;
689
+ cost_accounting?: "fixed" | "variable" | null | undefined;
690
+ cost_unit?: string | null | undefined;
691
+ price_currency?: "usd" | "btc" | undefined;
692
+ stripe_product_id?: string | null | undefined;
693
+ stripe_price_id?: string | null | undefined;
694
+ stripe_meter_id?: string | null | undefined;
695
+ metadata?: {
696
+ id: string;
697
+ path: string;
698
+ bucket: "public-files" | "files";
699
+ name: string;
700
+ type: string;
701
+ extension: string;
702
+ size: number;
703
+ width?: number | undefined;
704
+ height?: number | undefined;
705
+ doi_url?: string | null | undefined;
706
+ external_url?: string | null | undefined;
707
+ paper_url?: string | null | undefined;
708
+ github_url?: string | null | undefined;
709
+ originality?: "original" | "derivative" | "third-party" | undefined;
710
+ source?: string | null | undefined;
711
+ } | undefined;
712
+ preview?: Record<string, any>[] | null | undefined;
713
+ }>>;
410
714
 
411
715
  type File = z.infer<typeof FileSchema>;
412
716
  type CreateFile = z.infer<typeof CreateFileSchema>;
@@ -1,2 +1,2 @@
1
- export{b as CreateFileSchema,a as FileSchema,c as updateFileSchema}from'../chunk-RNMWNMZ4.js';import'../chunk-25I3OOVX.js';import'../chunk-23QZJWT4.js';import'../chunk-E5NMUCCO.js';import'../chunk-ARSGP6GA.js';import'../chunk-RPUL3U2U.js';//# sourceMappingURL=files.js.map
1
+ export{b as CreateFileSchema,a as FileSchema,c as updateFileSchema}from'../chunk-332F74RS.js';import'../chunk-XJH3EC3E.js';import'../chunk-QZ3AAXO5.js';import'../chunk-63BUDJ7V.js';import'../chunk-ZQAXMMR2.js';import'../chunk-CBWCC3NJ.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=files.js.map
2
2
  //# sourceMappingURL=files.js.map
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkFPRFE54S_cjs=require('../chunk-FPRFE54S.cjs');require('../chunk-3RRKHJ3K.cjs');Object.defineProperty(exports,"NotificationSchema",{enumerable:true,get:function(){return chunkFPRFE54S_cjs.a}});//# sourceMappingURL=notifications.cjs.map
1
+ 'use strict';var chunk4KUHOXA5_cjs=require('../chunk-4KUHOXA5.cjs');require('../chunk-MAHNRYUV.cjs');Object.defineProperty(exports,"NotificationSchema",{enumerable:true,get:function(){return chunk4KUHOXA5_cjs.a}});//# sourceMappingURL=notifications.cjs.map
2
2
  //# sourceMappingURL=notifications.cjs.map
@@ -37,9 +37,9 @@ declare const NotificationSchema: z.ZodObject<{
37
37
  asset: z.ZodOptional<z.ZodObject<{
38
38
  assetId: z.ZodString;
39
39
  assetType: z.ZodEnum<{
40
+ organization: "organization";
40
41
  file: "file";
41
42
  user: "user";
42
- organization: "organization";
43
43
  team: "team";
44
44
  dataset: "dataset";
45
45
  service: "service";
@@ -37,9 +37,9 @@ declare const NotificationSchema: z.ZodObject<{
37
37
  asset: z.ZodOptional<z.ZodObject<{
38
38
  assetId: z.ZodString;
39
39
  assetType: z.ZodEnum<{
40
+ organization: "organization";
40
41
  file: "file";
41
42
  user: "user";
42
- organization: "organization";
43
43
  team: "team";
44
44
  dataset: "dataset";
45
45
  service: "service";
@@ -1,2 +1,2 @@
1
- export{a as NotificationSchema}from'../chunk-NUGG4SK2.js';import'../chunk-RPUL3U2U.js';//# sourceMappingURL=notifications.js.map
1
+ export{a as NotificationSchema}from'../chunk-FS5P754F.js';import'../chunk-CBWCC3NJ.js';//# sourceMappingURL=notifications.js.map
2
2
  //# sourceMappingURL=notifications.js.map
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkLJK4UVDH_cjs=require('../chunk-LJK4UVDH.cjs');require('../chunk-N5ADIAWW.cjs'),require('../chunk-3RRKHJ3K.cjs');Object.defineProperty(exports,"MembershipSchema",{enumerable:true,get:function(){return chunkLJK4UVDH_cjs.b}});Object.defineProperty(exports,"OrganizationsSchema",{enumerable:true,get:function(){return chunkLJK4UVDH_cjs.a}});//# sourceMappingURL=organizations.cjs.map
1
+ 'use strict';var chunk6UH4ZK6D_cjs=require('../chunk-6UH4ZK6D.cjs');require('../chunk-JNBXFB5P.cjs'),require('../chunk-MAHNRYUV.cjs');Object.defineProperty(exports,"ActorTypePolicySchema",{enumerable:true,get:function(){return chunk6UH4ZK6D_cjs.a}});Object.defineProperty(exports,"MembershipSchema",{enumerable:true,get:function(){return chunk6UH4ZK6D_cjs.d}});Object.defineProperty(exports,"OrganizationsSchema",{enumerable:true,get:function(){return chunk6UH4ZK6D_cjs.c}});Object.defineProperty(exports,"SourcePolicySchema",{enumerable:true,get:function(){return chunk6UH4ZK6D_cjs.b}});//# sourceMappingURL=organizations.cjs.map
2
2
  //# sourceMappingURL=organizations.cjs.map