@misonetwork/sdk 0.6.0 → 0.8.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 (296) hide show
  1. package/README.md +181 -124
  2. package/dist/client.d.ts +1229 -15
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +43 -21
  5. package/dist/client.js.map +1 -1
  6. package/dist/contracts/composition_credits/composition_credits.d.ts +181 -0
  7. package/dist/contracts/composition_credits/composition_credits.d.ts.map +1 -0
  8. package/dist/contracts/composition_credits/composition_credits.js +109 -0
  9. package/dist/contracts/composition_credits/composition_credits.js.map +1 -0
  10. package/dist/contracts/composition_credits/composition_party_role.d.ts +119 -0
  11. package/dist/contracts/composition_credits/composition_party_role.d.ts.map +1 -0
  12. package/dist/contracts/composition_credits/composition_party_role.js +139 -0
  13. package/dist/contracts/composition_credits/composition_party_role.js.map +1 -0
  14. package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts +24 -0
  15. package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts.map +1 -0
  16. package/dist/contracts/composition_credits/deps/miso_credit/credit.js +23 -0
  17. package/dist/contracts/composition_credits/deps/miso_credit/credit.js.map +1 -0
  18. package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts +37 -0
  19. package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts.map +1 -0
  20. package/dist/contracts/composition_credits/deps/sui/vec_map.js +28 -0
  21. package/dist/contracts/composition_credits/deps/sui/vec_map.js.map +1 -0
  22. package/dist/contracts/miso/composition.d.ts +17 -39
  23. package/dist/contracts/miso/composition.d.ts.map +1 -1
  24. package/dist/contracts/miso/composition.js +18 -39
  25. package/dist/contracts/miso/composition.js.map +1 -1
  26. package/dist/contracts/miso/deps/bps/bps.d.ts +1 -1
  27. package/dist/contracts/miso/deps/bps/bps.js +1 -1
  28. package/dist/contracts/miso/recording.d.ts +44 -19
  29. package/dist/contracts/miso/recording.d.ts.map +1 -1
  30. package/dist/contracts/miso/recording.js +46 -20
  31. package/dist/contracts/miso/recording.js.map +1 -1
  32. package/dist/contracts/miso/release.d.ts +63 -37
  33. package/dist/contracts/miso/release.d.ts.map +1 -1
  34. package/dist/contracts/miso/release.js +65 -38
  35. package/dist/contracts/miso/release.js.map +1 -1
  36. package/dist/contracts/miso/track.d.ts +41 -10
  37. package/dist/contracts/miso/track.d.ts.map +1 -1
  38. package/dist/contracts/miso/track.js +44 -10
  39. package/dist/contracts/miso/track.js.map +1 -1
  40. package/dist/contracts/recording_advisory/recording_advisory.d.ts +194 -0
  41. package/dist/contracts/recording_advisory/recording_advisory.d.ts.map +1 -0
  42. package/dist/contracts/recording_advisory/recording_advisory.js +204 -0
  43. package/dist/contracts/recording_advisory/recording_advisory.js.map +1 -0
  44. package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts +24 -0
  45. package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts.map +1 -0
  46. package/dist/contracts/recording_credits/deps/miso_credit/credit.js +23 -0
  47. package/dist/contracts/recording_credits/deps/miso_credit/credit.js.map +1 -0
  48. package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts +37 -0
  49. package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts.map +1 -0
  50. package/dist/contracts/recording_credits/deps/sui/vec_map.js +28 -0
  51. package/dist/contracts/recording_credits/deps/sui/vec_map.js.map +1 -0
  52. package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts +21 -0
  53. package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts.map +1 -0
  54. package/dist/contracts/recording_credits/deps/sui/vec_set.js +20 -0
  55. package/dist/contracts/recording_credits/deps/sui/vec_set.js.map +1 -0
  56. package/dist/contracts/recording_credits/recording_credits.d.ts +2313 -0
  57. package/dist/contracts/recording_credits/recording_credits.d.ts.map +1 -0
  58. package/dist/contracts/recording_credits/recording_credits.js +270 -0
  59. package/dist/contracts/recording_credits/recording_credits.js.map +1 -0
  60. package/dist/contracts/recording_credits/recording_party_role.d.ts +1174 -0
  61. package/dist/contracts/recording_credits/recording_party_role.d.ts.map +1 -0
  62. package/dist/contracts/recording_credits/recording_party_role.js +692 -0
  63. package/dist/contracts/recording_credits/recording_party_role.js.map +1 -0
  64. package/dist/contracts/recording_language/deps/language_code/language_code.d.ts +6 -0
  65. package/dist/contracts/recording_language/deps/language_code/language_code.d.ts.map +1 -0
  66. package/dist/contracts/recording_language/deps/language_code/language_code.js +8 -0
  67. package/dist/contracts/recording_language/deps/language_code/language_code.js.map +1 -0
  68. package/dist/contracts/recording_language/recording_language.d.ts +152 -0
  69. package/dist/contracts/recording_language/recording_language.d.ts.map +1 -0
  70. package/dist/contracts/recording_language/recording_language.js +149 -0
  71. package/dist/contracts/recording_language/recording_language.js.map +1 -0
  72. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts +52 -0
  73. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts.map +1 -0
  74. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js +37 -0
  75. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js.map +1 -0
  76. package/dist/contracts/recording_master_reference/recording_master_reference.d.ts +131 -0
  77. package/dist/contracts/recording_master_reference/recording_master_reference.d.ts.map +1 -0
  78. package/dist/contracts/recording_master_reference/recording_master_reference.js +121 -0
  79. package/dist/contracts/recording_master_reference/recording_master_reference.js.map +1 -0
  80. package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts +52 -0
  81. package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts.map +1 -0
  82. package/dist/contracts/recording_preview/deps/ori/walrus_data.js +37 -0
  83. package/dist/contracts/recording_preview/deps/ori/walrus_data.js.map +1 -0
  84. package/dist/contracts/recording_preview/recording_preview.d.ts +104 -0
  85. package/dist/contracts/recording_preview/recording_preview.d.ts.map +1 -0
  86. package/dist/contracts/recording_preview/recording_preview.js +94 -0
  87. package/dist/contracts/recording_preview/recording_preview.js.map +1 -0
  88. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.d.ts +52 -0
  89. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.d.ts.map +1 -0
  90. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js +37 -0
  91. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js.map +1 -0
  92. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts +46 -0
  93. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts.map +1 -0
  94. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js +21 -0
  95. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js.map +1 -0
  96. package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts +33 -0
  97. package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts.map +1 -0
  98. package/dist/contracts/release_cover_art/deps/per_track/per_track.js +32 -0
  99. package/dist/contracts/release_cover_art/deps/per_track/per_track.js.map +1 -0
  100. package/dist/contracts/release_cover_art/release_cover_art.d.ts +300 -0
  101. package/dist/contracts/release_cover_art/release_cover_art.d.ts.map +1 -0
  102. package/dist/contracts/release_cover_art/release_cover_art.js +168 -0
  103. package/dist/contracts/release_cover_art/release_cover_art.js.map +1 -0
  104. package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts +24 -0
  105. package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts.map +1 -0
  106. package/dist/contracts/release_credits/deps/miso_credit/credit.js +23 -0
  107. package/dist/contracts/release_credits/deps/miso_credit/credit.js.map +1 -0
  108. package/dist/contracts/release_credits/deps/sui/vec_map.d.ts +37 -0
  109. package/dist/contracts/release_credits/deps/sui/vec_map.d.ts.map +1 -0
  110. package/dist/contracts/release_credits/deps/sui/vec_map.js +28 -0
  111. package/dist/contracts/release_credits/deps/sui/vec_map.js.map +1 -0
  112. package/dist/contracts/release_credits/release_credits.d.ts +142 -0
  113. package/dist/contracts/release_credits/release_credits.d.ts.map +1 -0
  114. package/dist/contracts/release_credits/release_credits.js +108 -0
  115. package/dist/contracts/release_credits/release_credits.js.map +1 -0
  116. package/dist/contracts/release_credits/release_party_role.d.ts +58 -0
  117. package/dist/contracts/release_credits/release_party_role.d.ts.map +1 -0
  118. package/dist/contracts/release_credits/release_party_role.js +66 -0
  119. package/dist/contracts/release_credits/release_party_role.js.map +1 -0
  120. package/dist/contracts/release_description/release_description.d.ts +112 -0
  121. package/dist/contracts/release_description/release_description.d.ts.map +1 -0
  122. package/dist/contracts/release_description/release_description.js +123 -0
  123. package/dist/contracts/release_description/release_description.js.map +1 -0
  124. package/dist/contracts/release_dsp_link/release_dsp_link.d.ts +644 -0
  125. package/dist/contracts/release_dsp_link/release_dsp_link.d.ts.map +1 -0
  126. package/dist/contracts/release_dsp_link/release_dsp_link.js +556 -0
  127. package/dist/contracts/release_dsp_link/release_dsp_link.js.map +1 -0
  128. package/dist/contracts/release_genre/deps/per_track/per_track.d.ts +33 -0
  129. package/dist/contracts/release_genre/deps/per_track/per_track.d.ts.map +1 -0
  130. package/dist/contracts/release_genre/deps/per_track/per_track.js +32 -0
  131. package/dist/contracts/release_genre/deps/per_track/per_track.js.map +1 -0
  132. package/dist/contracts/release_genre/release_genre.d.ts +193 -0
  133. package/dist/contracts/release_genre/release_genre.d.ts.map +1 -0
  134. package/dist/contracts/release_genre/release_genre.js +207 -0
  135. package/dist/contracts/release_genre/release_genre.js.map +1 -0
  136. package/dist/contracts/release_kind/release_kind.d.ts +98 -0
  137. package/dist/contracts/release_kind/release_kind.d.ts.map +1 -0
  138. package/dist/contracts/release_kind/release_kind.js +109 -0
  139. package/dist/contracts/release_kind/release_kind.js.map +1 -0
  140. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.d.ts +52 -0
  141. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.d.ts.map +1 -0
  142. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.js +37 -0
  143. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.js.map +1 -0
  144. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.d.ts +91 -0
  145. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.d.ts.map +1 -0
  146. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.js +91 -0
  147. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.js.map +1 -0
  148. package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts +54 -0
  149. package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts.map +1 -0
  150. package/dist/contracts/routed_stake/deps/royalty_pool/stake.js +37 -0
  151. package/dist/contracts/routed_stake/deps/royalty_pool/stake.js.map +1 -0
  152. package/dist/contracts/routed_stake/deps/std/type_name.d.ts +18 -0
  153. package/dist/contracts/routed_stake/deps/std/type_name.d.ts.map +1 -0
  154. package/dist/contracts/routed_stake/deps/std/type_name.js +20 -0
  155. package/dist/contracts/routed_stake/deps/std/type_name.js.map +1 -0
  156. package/dist/contracts/routed_stake/deps/sui/balance.d.ts +13 -0
  157. package/dist/contracts/routed_stake/deps/sui/balance.d.ts.map +1 -0
  158. package/dist/contracts/routed_stake/deps/sui/balance.js +15 -0
  159. package/dist/contracts/routed_stake/deps/sui/balance.js.map +1 -0
  160. package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts +37 -0
  161. package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts.map +1 -0
  162. package/dist/contracts/routed_stake/deps/sui/vec_map.js +28 -0
  163. package/dist/contracts/routed_stake/deps/sui/vec_map.js.map +1 -0
  164. package/dist/contracts/routed_stake/routed_stake.d.ts +356 -0
  165. package/dist/contracts/routed_stake/routed_stake.d.ts.map +1 -0
  166. package/dist/contracts/routed_stake/routed_stake.js +311 -0
  167. package/dist/contracts/routed_stake/routed_stake.js.map +1 -0
  168. package/dist/contracts/royalty_pool/deps/std/type_name.d.ts +18 -0
  169. package/dist/contracts/royalty_pool/deps/std/type_name.d.ts.map +1 -0
  170. package/dist/contracts/royalty_pool/deps/std/type_name.js +20 -0
  171. package/dist/contracts/royalty_pool/deps/std/type_name.js.map +1 -0
  172. package/dist/contracts/royalty_pool/deps/sui/balance.d.ts +13 -0
  173. package/dist/contracts/royalty_pool/deps/sui/balance.d.ts.map +1 -0
  174. package/dist/contracts/royalty_pool/deps/sui/balance.js +15 -0
  175. package/dist/contracts/royalty_pool/deps/sui/balance.js.map +1 -0
  176. package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts +37 -0
  177. package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts.map +1 -0
  178. package/dist/contracts/royalty_pool/deps/sui/vec_map.js +28 -0
  179. package/dist/contracts/royalty_pool/deps/sui/vec_map.js.map +1 -0
  180. package/dist/contracts/royalty_pool/pool.d.ts +394 -0
  181. package/dist/contracts/royalty_pool/pool.d.ts.map +1 -0
  182. package/dist/contracts/royalty_pool/pool.js +387 -0
  183. package/dist/contracts/royalty_pool/pool.js.map +1 -0
  184. package/dist/contracts/royalty_pool/stake.d.ts +202 -0
  185. package/dist/contracts/royalty_pool/stake.d.ts.map +1 -0
  186. package/dist/contracts/royalty_pool/stake.js +197 -0
  187. package/dist/contracts/royalty_pool/stake.js.map +1 -0
  188. package/dist/contracts.d.ts +37 -3
  189. package/dist/contracts.d.ts.map +1 -1
  190. package/dist/contracts.js +42 -8
  191. package/dist/contracts.js.map +1 -1
  192. package/dist/deployments.d.ts +46 -12
  193. package/dist/deployments.d.ts.map +1 -1
  194. package/dist/deployments.js +119 -11
  195. package/dist/deployments.js.map +1 -1
  196. package/dist/events.d.ts +1081 -0
  197. package/dist/events.d.ts.map +1 -0
  198. package/dist/events.js +124 -0
  199. package/dist/events.js.map +1 -0
  200. package/dist/execute.d.ts.map +1 -1
  201. package/dist/execute.js +0 -4
  202. package/dist/execute.js.map +1 -1
  203. package/dist/index.d.ts +3 -0
  204. package/dist/index.d.ts.map +1 -1
  205. package/dist/index.js +6 -3
  206. package/dist/index.js.map +1 -1
  207. package/dist/internal.d.ts.map +1 -1
  208. package/dist/internal.js +2 -0
  209. package/dist/internal.js.map +1 -1
  210. package/dist/numeric.d.ts +5 -0
  211. package/dist/numeric.d.ts.map +1 -0
  212. package/dist/numeric.js +21 -0
  213. package/dist/numeric.js.map +1 -0
  214. package/dist/packages.d.ts +159 -0
  215. package/dist/packages.d.ts.map +1 -0
  216. package/dist/packages.js +179 -0
  217. package/dist/packages.js.map +1 -0
  218. package/dist/parsers.d.ts +5 -2
  219. package/dist/parsers.d.ts.map +1 -1
  220. package/dist/parsers.js +19 -7
  221. package/dist/parsers.js.map +1 -1
  222. package/dist/queries.d.ts +92 -0
  223. package/dist/queries.d.ts.map +1 -1
  224. package/dist/queries.js +132 -23
  225. package/dist/queries.js.map +1 -1
  226. package/dist/transactions.d.ts +96 -12
  227. package/dist/transactions.d.ts.map +1 -1
  228. package/dist/transactions.js +124 -14
  229. package/dist/transactions.js.map +1 -1
  230. package/dist/types.d.ts +35 -8
  231. package/dist/types.d.ts.map +1 -1
  232. package/dist/view.d.ts +6 -5
  233. package/dist/view.d.ts.map +1 -1
  234. package/dist/view.js +8 -2
  235. package/dist/view.js.map +1 -1
  236. package/package.json +14 -4
  237. package/src/client.ts +57 -25
  238. package/src/contracts/composition_credits/composition_credits.ts +169 -0
  239. package/src/contracts/composition_credits/composition_party_role.ts +189 -0
  240. package/src/contracts/composition_credits/deps/miso_credit/credit.ts +27 -0
  241. package/src/contracts/composition_credits/deps/sui/vec_map.ts +33 -0
  242. package/src/contracts/miso/composition.ts +24 -61
  243. package/src/contracts/miso/deps/bps/bps.ts +3 -3
  244. package/src/contracts/miso/recording.ts +69 -32
  245. package/src/contracts/miso/release.ts +103 -67
  246. package/src/contracts/miso/track.ts +56 -13
  247. package/src/contracts/recording_advisory/recording_advisory.ts +315 -0
  248. package/src/contracts/recording_credits/deps/miso_credit/credit.ts +27 -0
  249. package/src/contracts/recording_credits/deps/sui/vec_map.ts +33 -0
  250. package/src/contracts/recording_credits/deps/sui/vec_set.ts +21 -0
  251. package/src/contracts/recording_credits/recording_credits.ts +458 -0
  252. package/src/contracts/recording_credits/recording_party_role.ts +1041 -0
  253. package/src/contracts/recording_language/deps/language_code/language_code.ts +7 -0
  254. package/src/contracts/recording_language/recording_language.ts +237 -0
  255. package/src/contracts/recording_master_reference/deps/ori/walrus_data.ts +36 -0
  256. package/src/contracts/recording_master_reference/recording_master_reference.ts +181 -0
  257. package/src/contracts/recording_preview/deps/ori/walrus_data.ts +36 -0
  258. package/src/contracts/recording_preview/recording_preview.ts +154 -0
  259. package/src/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.ts +36 -0
  260. package/src/contracts/release_cover_art/deps/cover_art/cover_art.ts +23 -0
  261. package/src/contracts/release_cover_art/deps/per_track/per_track.ts +36 -0
  262. package/src/contracts/release_cover_art/release_cover_art.ts +251 -0
  263. package/src/contracts/release_credits/deps/miso_credit/credit.ts +27 -0
  264. package/src/contracts/release_credits/deps/sui/vec_map.ts +33 -0
  265. package/src/contracts/release_credits/release_credits.ts +156 -0
  266. package/src/contracts/release_credits/release_party_role.ts +87 -0
  267. package/src/contracts/release_description/release_description.ts +167 -0
  268. package/src/contracts/release_dsp_link/release_dsp_link.ts +813 -0
  269. package/src/contracts/release_genre/deps/per_track/per_track.ts +36 -0
  270. package/src/contracts/release_genre/release_genre.ts +314 -0
  271. package/src/contracts/release_kind/release_kind.ts +153 -0
  272. package/src/contracts/release_snapshot_bundle/deps/ori/walrus_data.ts +36 -0
  273. package/src/contracts/release_snapshot_bundle/release_snapshot_bundle.ts +124 -0
  274. package/src/contracts/routed_stake/deps/royalty_pool/stake.ts +39 -0
  275. package/src/contracts/routed_stake/deps/std/type_name.ts +22 -0
  276. package/src/contracts/routed_stake/deps/sui/balance.ts +17 -0
  277. package/src/contracts/routed_stake/deps/sui/vec_map.ts +33 -0
  278. package/src/contracts/routed_stake/routed_stake.ts +508 -0
  279. package/src/contracts/royalty_pool/deps/std/type_name.ts +22 -0
  280. package/src/contracts/royalty_pool/deps/sui/balance.ts +17 -0
  281. package/src/contracts/royalty_pool/deps/sui/vec_map.ts +33 -0
  282. package/src/contracts/royalty_pool/pool.ts +613 -0
  283. package/src/contracts/royalty_pool/stake.ts +317 -0
  284. package/src/contracts.ts +59 -6
  285. package/src/deployments.ts +160 -22
  286. package/src/events.ts +129 -0
  287. package/src/execute.ts +0 -4
  288. package/src/index.ts +6 -3
  289. package/src/internal.ts +2 -4
  290. package/src/numeric.ts +25 -0
  291. package/src/packages.ts +251 -0
  292. package/src/parsers.ts +32 -11
  293. package/src/queries.ts +227 -25
  294. package/src/transactions.ts +255 -23
  295. package/src/types.ts +37 -9
  296. package/src/view.ts +12 -6
@@ -0,0 +1,121 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * A pointer to a recording's master audio — nothing more.
6
+ *
7
+ * The value is a bare `ori::WalrusData` blob reference. This extension makes no
8
+ * claim about what the blob contains: not its codec, not its sample rate, not its
9
+ * duration, not that it is even audio. The only assertion is that the holder of
10
+ * the recording's admin cap says this blob is the master. Everything else is
11
+ * client-side convention.
12
+ *
13
+ * That thinness is the point. Miso's attested path — the Nautilus-verified master
14
+ * flow (`audio_ingester` producing a `miso_audio::Audio`), deferred — carries
15
+ * channel count, bit depth, sample rate, sample count and a PCM digest, and every
16
+ * one of those is backed by a Nautilus enclave signature over the measured audio.
17
+ * Until that path is running, stating the same fields _unverified_ would dress an
18
+ * assertion up as a measurement. A pointer cannot be mistaken for a measurement.
19
+ *
20
+ * # This extension is a holdover
21
+ *
22
+ * It exists to carry the catalogue until enclave ingestion is ready, and it is
23
+ * meant to be removed rather than grown. When a recording's master is ingested for
24
+ * real, attach the attested master via the ingester's master flow and call
25
+ * `unset_master_reference` here. The two never need to coexist, and this package
26
+ * deliberately holds nothing the attested path cannot restate.
27
+ *
28
+ * Resist adding fields. Anything worth asserting about the audio is worth
29
+ * attesting, and belongs in the ingested `Audio` rather than here.
30
+ */
31
+ import { MoveTuple, MoveStruct, normalizeMoveArguments } from "../utils/index.js";
32
+ import { bcs } from '@mysten/sui/bcs';
33
+ import {} from '@mysten/sui/transactions';
34
+ import * as walrus_data from "./deps/ori/walrus_data.js";
35
+ const $moduleName = '@local-pkg/recording_master_reference::recording_master_reference';
36
+ export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
37
+ export const MasterReferenceSetEvent = new MoveStruct({ name: `${$moduleName}::MasterReferenceSetEvent`, fields: {
38
+ recording_id: bcs.Address,
39
+ reference: walrus_data.WalrusData
40
+ } });
41
+ export const MasterReferenceUnsetEvent = new MoveStruct({ name: `${$moduleName}::MasterReferenceUnsetEvent`, fields: {
42
+ recording_id: bcs.Address
43
+ } });
44
+ /**
45
+ * Sets (or replaces) the recording's master reference.
46
+ *
47
+ * The reference must be a standalone blob. A quilt patch is rejected: a master is
48
+ * addressed and fetched on its own, and batching it with unrelated files would
49
+ * make its identity depend on what it happened to be stored alongside. Encrypted
50
+ * blobs are accepted — a sealed master is the expected shape once access control
51
+ * lands, and the reference is the same either way.
52
+ */
53
+ export function setMasterReference(options) {
54
+ const packageAddress = options.package ?? '@local-pkg/recording_master_reference';
55
+ const argumentsTypes = [
56
+ null,
57
+ null,
58
+ null
59
+ ];
60
+ const parameterNames = ["self", "cap", "reference"];
61
+ return (tx) => tx.moveCall({
62
+ package: packageAddress,
63
+ module: 'recording_master_reference',
64
+ function: 'set_master_reference',
65
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
66
+ typeArguments: options.typeArguments
67
+ });
68
+ }
69
+ /**
70
+ * Removes the master reference, if any. Idempotent.
71
+ *
72
+ * The intended use is migration: once an attested master is attached via the
73
+ * Nautilus-verified master flow (deferred), this reference has nothing left to say
74
+ * and should go.
75
+ */
76
+ export function unsetMasterReference(options) {
77
+ const packageAddress = options.package ?? '@local-pkg/recording_master_reference';
78
+ const argumentsTypes = [
79
+ null,
80
+ null
81
+ ];
82
+ const parameterNames = ["self", "cap"];
83
+ return (tx) => tx.moveCall({
84
+ package: packageAddress,
85
+ module: 'recording_master_reference',
86
+ function: 'unset_master_reference',
87
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
88
+ typeArguments: options.typeArguments
89
+ });
90
+ }
91
+ /** Whether a master reference is attached to this recording. */
92
+ export function hasMasterReference(options) {
93
+ const packageAddress = options.package ?? '@local-pkg/recording_master_reference';
94
+ const argumentsTypes = [
95
+ null
96
+ ];
97
+ const parameterNames = ["self"];
98
+ return (tx) => tx.moveCall({
99
+ package: packageAddress,
100
+ module: 'recording_master_reference',
101
+ function: 'has_master_reference',
102
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
103
+ typeArguments: options.typeArguments
104
+ });
105
+ }
106
+ /** The recording's master reference. Aborts if none is attached. */
107
+ export function masterReference(options) {
108
+ const packageAddress = options.package ?? '@local-pkg/recording_master_reference';
109
+ const argumentsTypes = [
110
+ null
111
+ ];
112
+ const parameterNames = ["self"];
113
+ return (tx) => tx.moveCall({
114
+ package: packageAddress,
115
+ module: 'recording_master_reference',
116
+ function: 'master_reference',
117
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
118
+ typeArguments: options.typeArguments
119
+ });
120
+ }
121
+ //# sourceMappingURL=recording_master_reference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recording_master_reference.js","sourceRoot":"","sources":["../../../src/contracts/recording_master_reference/recording_master_reference.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAA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,GAAG;QACnB,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,4BAA4B;QACpC,QAAQ,EAAE,kBAAkB;QAC5B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,52 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveEnum, MoveStruct, MoveTuple } from '../../../utils/index.ts';
5
+ /**
6
+ * Confidentiality of a stored blob: cleartext, or encrypted with an access policy.
7
+ * Only applies to standalone blobs — a quilt patch is a slice of a shared quilt
8
+ * blob and can never be the direct product of an encryption.
9
+ */
10
+ export declare const Confidentiality: MoveEnum<{
11
+ /** The blob is stored in the clear. */
12
+ Unencrypted: null;
13
+ /**
14
+ * The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
15
+ * — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
16
+ * itself a Seal `EncryptedObject`, which already carries the decryption-policy
17
+ * package id, so no separate policy field is stored here. Decryption is gated by
18
+ * that policy package's `seal_approve`, not by this library.
19
+ */
20
+ Encrypted: MoveStruct<{
21
+ dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
22
+ length: number;
23
+ }, string>;
24
+ }, "Confidentiality.Encrypted">;
25
+ }, "ori::walrus_data::Confidentiality">;
26
+ /** Represents either a standalone Walrus blob or a patch within a quilt. */
27
+ export declare const WalrusData: MoveEnum<{
28
+ /** A standalone Walrus blob. Fields: blob_id, confidentiality. */
29
+ Blob: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, MoveEnum<{
30
+ /** The blob is stored in the clear. */
31
+ Unencrypted: null;
32
+ /**
33
+ * The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
34
+ * — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
35
+ * itself a Seal `EncryptedObject`, which already carries the decryption-policy
36
+ * package id, so no separate policy field is stored here. Decryption is gated by
37
+ * that policy package's `seal_approve`, not by this library.
38
+ */
39
+ Encrypted: MoveStruct<{
40
+ dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
41
+ length: number;
42
+ }, string>;
43
+ }, "Confidentiality.Encrypted">;
44
+ }, "ori::walrus_data::Confidentiality">], "WalrusData.Blob">;
45
+ /**
46
+ * A patch within a Walrus quilt. Fields: quilt_id, version, start_index,
47
+ * end_index. Always a plaintext reference into a (possibly separately encrypted)
48
+ * quilt blob.
49
+ */
50
+ QuiltPatch: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("@mysten/sui/bcs").BcsType<number, number, "u8">, import("@mysten/sui/bcs").BcsType<number, number, "u16">, import("@mysten/sui/bcs").BcsType<number, number, "u16">], "WalrusData.QuiltPatch">;
51
+ }, "ori::walrus_data::WalrusData">;
52
+ //# sourceMappingURL=walrus_data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walrus_data.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/recording_preview/deps/ori/walrus_data.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAG1E;;;;GAIG;AACH,eAAO,MAAM,eAAe;IACpB,uCAAuC;;IAEvC;;;;;;OAMG;;;;;;uCAIH,CAAC;AACT,4EAA4E;AAC5E,eAAO,MAAM,UAAU;IACf,kEAAkE;;QAflE,uCAAuC;;QAEvC;;;;;;WAMG;;;;;;;IASH;;;;OAIG;;kCAEH,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveEnum, MoveStruct, MoveTuple } from "../../../utils/index.js";
5
+ import { bcs } from '@mysten/sui/bcs';
6
+ const $moduleName = 'ori::walrus_data';
7
+ /**
8
+ * Confidentiality of a stored blob: cleartext, or encrypted with an access policy.
9
+ * Only applies to standalone blobs — a quilt patch is a slice of a shared quilt
10
+ * blob and can never be the direct product of an encryption.
11
+ */
12
+ export const Confidentiality = new MoveEnum({ name: `${$moduleName}::Confidentiality`, fields: {
13
+ /** The blob is stored in the clear. */
14
+ Unencrypted: null,
15
+ /**
16
+ * The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
17
+ * — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
18
+ * itself a Seal `EncryptedObject`, which already carries the decryption-policy
19
+ * package id, so no separate policy field is stored here. Decryption is gated by
20
+ * that policy package's `seal_approve`, not by this library.
21
+ */
22
+ Encrypted: new MoveStruct({ name: `Confidentiality.Encrypted`, fields: {
23
+ dek: bcs.vector(bcs.u8())
24
+ } })
25
+ } });
26
+ /** Represents either a standalone Walrus blob or a patch within a quilt. */
27
+ export const WalrusData = new MoveEnum({ name: `${$moduleName}::WalrusData`, fields: {
28
+ /** A standalone Walrus blob. Fields: blob_id, confidentiality. */
29
+ Blob: new MoveTuple({ name: `WalrusData.Blob`, fields: [bcs.u256(), Confidentiality] }),
30
+ /**
31
+ * A patch within a Walrus quilt. Fields: quilt_id, version, start_index,
32
+ * end_index. Always a plaintext reference into a (possibly separately encrypted)
33
+ * quilt blob.
34
+ */
35
+ QuiltPatch: new MoveTuple({ name: `WalrusData.QuiltPatch`, fields: [bcs.u256(), bcs.u8(), bcs.u16(), bcs.u16()] })
36
+ } });
37
+ //# sourceMappingURL=walrus_data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walrus_data.js","sourceRoot":"","sources":["../../../../../src/contracts/recording_preview/deps/ori/walrus_data.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,kBAAkB,CAAC;AACvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,mBAAmB,EAAE,MAAM,EAAE;QACvF,uCAAuC;QACvC,WAAW,EAAE,IAAI;QACjB;;;;;;WAMG;QACH,SAAS,EAAE,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,EAAE;gBAC/D,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;aAC5B,EAAE,CAAC;KACX,EAAE,CAAC,CAAC;AACT,4EAA4E;AAC5E,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,cAAc,EAAE,MAAM,EAAE;QAC7E,kEAAkE;QAClE,IAAI,EAAE,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,eAAe,CAAC,EAAE,CAAC;QACvF;;;;WAIG;QACH,UAAU,EAAE,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;KACrH,EAAE,CAAC,CAAC"}
@@ -0,0 +1,104 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * Recording audio preview: a short, public teaser clip for a recording, stored as
6
+ * a dynamic field on the recording's UID, set/cleared via the recording's
7
+ * cap-gated `uid_mut`.
8
+ *
9
+ * V1 is deliberately minimal: the value is a bare `ori::WalrusData` blob reference
10
+ * — no ingestion or attestation ties the preview to the recording's master. What
11
+ * the blob contains (codec, duration, clip offset) is client-side convention, not
12
+ * protocol state. An attested preview standard can ship later as its own extension
13
+ * without touching this one.
14
+ */
15
+ import { MoveTuple, MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
16
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
17
+ export declare const ExtensionKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/recording_preview::recording_preview::ExtensionKey">;
18
+ export declare const PreviewSetEvent: MoveStruct<{
19
+ recording_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
20
+ preview: import("../utils/index.ts").MoveEnum<{
21
+ Blob: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("../utils/index.ts").MoveEnum<{
22
+ Unencrypted: null;
23
+ Encrypted: MoveStruct<{
24
+ dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
25
+ length: number;
26
+ }, string>;
27
+ }, "Confidentiality.Encrypted">;
28
+ }, "ori::walrus_data::Confidentiality">], "WalrusData.Blob">;
29
+ QuiltPatch: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("@mysten/sui/bcs").BcsType<number, number, "u8">, import("@mysten/sui/bcs").BcsType<number, number, "u16">, import("@mysten/sui/bcs").BcsType<number, number, "u16">], "WalrusData.QuiltPatch">;
30
+ }, "ori::walrus_data::WalrusData">;
31
+ }, "@local-pkg/recording_preview::recording_preview::PreviewSetEvent">;
32
+ export declare const PreviewUnsetEvent: MoveStruct<{
33
+ recording_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
34
+ }, "@local-pkg/recording_preview::recording_preview::PreviewUnsetEvent">;
35
+ export interface SetPreviewArguments {
36
+ self: RawTransactionArgument<string>;
37
+ cap: RawTransactionArgument<string>;
38
+ preview: TransactionArgument;
39
+ }
40
+ export interface SetPreviewOptions {
41
+ package?: string;
42
+ arguments: SetPreviewArguments | [
43
+ self: RawTransactionArgument<string>,
44
+ cap: RawTransactionArgument<string>,
45
+ preview: TransactionArgument
46
+ ];
47
+ typeArguments: [
48
+ string,
49
+ string
50
+ ];
51
+ }
52
+ /**
53
+ * Sets (or replaces) the recording's preview. The reference must be a standalone
54
+ * Walrus blob.
55
+ */
56
+ export declare function setPreview(options: SetPreviewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
57
+ export interface UnsetPreviewArguments {
58
+ self: RawTransactionArgument<string>;
59
+ cap: RawTransactionArgument<string>;
60
+ }
61
+ export interface UnsetPreviewOptions {
62
+ package?: string;
63
+ arguments: UnsetPreviewArguments | [
64
+ self: RawTransactionArgument<string>,
65
+ cap: RawTransactionArgument<string>
66
+ ];
67
+ typeArguments: [
68
+ string,
69
+ string
70
+ ];
71
+ }
72
+ /** Removes the preview, if any. */
73
+ export declare function unsetPreview(options: UnsetPreviewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
74
+ export interface HasPreviewArguments {
75
+ self: RawTransactionArgument<string>;
76
+ }
77
+ export interface HasPreviewOptions {
78
+ package?: string;
79
+ arguments: HasPreviewArguments | [
80
+ self: RawTransactionArgument<string>
81
+ ];
82
+ typeArguments: [
83
+ string,
84
+ string
85
+ ];
86
+ }
87
+ /** Returns whether a preview is attached to this recording. */
88
+ export declare function hasPreview(options: HasPreviewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
89
+ export interface PreviewArguments {
90
+ self: RawTransactionArgument<string>;
91
+ }
92
+ export interface PreviewOptions {
93
+ package?: string;
94
+ arguments: PreviewArguments | [
95
+ self: RawTransactionArgument<string>
96
+ ];
97
+ typeArguments: [
98
+ string,
99
+ string
100
+ ];
101
+ }
102
+ /** Borrows the preview's Walrus reference. Aborts if none is attached. */
103
+ export declare function preview(options: PreviewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
104
+ //# sourceMappingURL=recording_preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recording_preview.d.ts","sourceRoot":"","sources":["../../../src/contracts/recording_preview/recording_preview.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE/G,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGtF,eAAO,MAAM,YAAY,oJAAgF,CAAC;AAC1G,eAAO,MAAM,eAAe;;;;;;;;;;;;;sEAGpB,CAAC;AACT,eAAO,MAAM,iBAAiB;;wEAEtB,CAAC;AACT,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACrC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACpC,OAAO,EAAE,mBAAmB,CAAC;CAChC;AACD,MAAM,WAAW,iBAAiB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,mBAAmB,GAAG;QAC7B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACpC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACnC,OAAO,EAAE,mBAAmB;KAC/B,CAAC;IACF,aAAa,EAAE;QACX,MAAM;QACN,MAAM;KACT,CAAC;CACL;AACD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,IAQzC,IAAI,WAAW,0DAO1B;AACD,MAAM,WAAW,qBAAqB;IAClC,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* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * Recording audio preview: a short, public teaser clip for a recording, stored as
6
+ * a dynamic field on the recording's UID, set/cleared via the recording's
7
+ * cap-gated `uid_mut`.
8
+ *
9
+ * V1 is deliberately minimal: the value is a bare `ori::WalrusData` blob reference
10
+ * — no ingestion or attestation ties the preview to the recording's master. What
11
+ * the blob contains (codec, duration, clip offset) is client-side convention, not
12
+ * protocol state. An attested preview standard can ship later as its own extension
13
+ * without touching this one.
14
+ */
15
+ import { MoveTuple, MoveStruct, normalizeMoveArguments } from "../utils/index.js";
16
+ import { bcs } from '@mysten/sui/bcs';
17
+ import {} from '@mysten/sui/transactions';
18
+ import * as walrus_data from "./deps/ori/walrus_data.js";
19
+ const $moduleName = '@local-pkg/recording_preview::recording_preview';
20
+ export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
21
+ export const PreviewSetEvent = new MoveStruct({ name: `${$moduleName}::PreviewSetEvent`, fields: {
22
+ recording_id: bcs.Address,
23
+ preview: walrus_data.WalrusData
24
+ } });
25
+ export const PreviewUnsetEvent = new MoveStruct({ name: `${$moduleName}::PreviewUnsetEvent`, fields: {
26
+ recording_id: bcs.Address
27
+ } });
28
+ /**
29
+ * Sets (or replaces) the recording's preview. The reference must be a standalone
30
+ * Walrus blob.
31
+ */
32
+ export function setPreview(options) {
33
+ const packageAddress = options.package ?? '@local-pkg/recording_preview';
34
+ const argumentsTypes = [
35
+ null,
36
+ null,
37
+ null
38
+ ];
39
+ const parameterNames = ["self", "cap", "preview"];
40
+ return (tx) => tx.moveCall({
41
+ package: packageAddress,
42
+ module: 'recording_preview',
43
+ function: 'set_preview',
44
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
45
+ typeArguments: options.typeArguments
46
+ });
47
+ }
48
+ /** Removes the preview, if any. */
49
+ export function unsetPreview(options) {
50
+ const packageAddress = options.package ?? '@local-pkg/recording_preview';
51
+ const argumentsTypes = [
52
+ null,
53
+ null
54
+ ];
55
+ const parameterNames = ["self", "cap"];
56
+ return (tx) => tx.moveCall({
57
+ package: packageAddress,
58
+ module: 'recording_preview',
59
+ function: 'unset_preview',
60
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
61
+ typeArguments: options.typeArguments
62
+ });
63
+ }
64
+ /** Returns whether a preview is attached to this recording. */
65
+ export function hasPreview(options) {
66
+ const packageAddress = options.package ?? '@local-pkg/recording_preview';
67
+ const argumentsTypes = [
68
+ null
69
+ ];
70
+ const parameterNames = ["self"];
71
+ return (tx) => tx.moveCall({
72
+ package: packageAddress,
73
+ module: 'recording_preview',
74
+ function: 'has_preview',
75
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
76
+ typeArguments: options.typeArguments
77
+ });
78
+ }
79
+ /** Borrows the preview's Walrus reference. Aborts if none is attached. */
80
+ export function preview(options) {
81
+ const packageAddress = options.package ?? '@local-pkg/recording_preview';
82
+ const argumentsTypes = [
83
+ null
84
+ ];
85
+ const parameterNames = ["self"];
86
+ return (tx) => tx.moveCall({
87
+ package: packageAddress,
88
+ module: 'recording_preview',
89
+ function: 'preview',
90
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
91
+ typeArguments: options.typeArguments
92
+ });
93
+ }
94
+ //# sourceMappingURL=recording_preview.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recording_preview.js","sourceRoot":"","sources":["../../../src/contracts/recording_preview/recording_preview.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AAC/G,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,OAAO,KAAK,WAAW,MAAM,2BAA2B,CAAC;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,cAAc;QACvB,MAAM,EAAE,mBAAmB;QAC3B,QAAQ,EAAE,SAAS;QACnB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,52 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveEnum, MoveStruct, MoveTuple } from '../../../utils/index.ts';
5
+ /**
6
+ * Confidentiality of a stored blob: cleartext, or encrypted with an access policy.
7
+ * Only applies to standalone blobs — a quilt patch is a slice of a shared quilt
8
+ * blob and can never be the direct product of an encryption.
9
+ */
10
+ export declare const Confidentiality: MoveEnum<{
11
+ /** The blob is stored in the clear. */
12
+ Unencrypted: null;
13
+ /**
14
+ * The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
15
+ * — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
16
+ * itself a Seal `EncryptedObject`, which already carries the decryption-policy
17
+ * package id, so no separate policy field is stored here. Decryption is gated by
18
+ * that policy package's `seal_approve`, not by this library.
19
+ */
20
+ Encrypted: MoveStruct<{
21
+ dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
22
+ length: number;
23
+ }, string>;
24
+ }, "Confidentiality.Encrypted">;
25
+ }, "0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::Confidentiality">;
26
+ /** Represents either a standalone Walrus blob or a patch within a quilt. */
27
+ export declare const WalrusData: MoveEnum<{
28
+ /** A standalone Walrus blob. Fields: blob_id, confidentiality. */
29
+ Blob: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, MoveEnum<{
30
+ /** The blob is stored in the clear. */
31
+ Unencrypted: null;
32
+ /**
33
+ * The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
34
+ * — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
35
+ * itself a Seal `EncryptedObject`, which already carries the decryption-policy
36
+ * package id, so no separate policy field is stored here. Decryption is gated by
37
+ * that policy package's `seal_approve`, not by this library.
38
+ */
39
+ Encrypted: MoveStruct<{
40
+ dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
41
+ length: number;
42
+ }, string>;
43
+ }, "Confidentiality.Encrypted">;
44
+ }, "0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::Confidentiality">], "WalrusData.Blob">;
45
+ /**
46
+ * A patch within a Walrus quilt. Fields: quilt_id, version, start_index,
47
+ * end_index. Always a plaintext reference into a (possibly separately encrypted)
48
+ * quilt blob.
49
+ */
50
+ QuiltPatch: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("@mysten/sui/bcs").BcsType<number, number, "u8">, import("@mysten/sui/bcs").BcsType<number, number, "u16">, import("@mysten/sui/bcs").BcsType<number, number, "u16">], "WalrusData.QuiltPatch">;
51
+ }, "0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::WalrusData">;
52
+ //# sourceMappingURL=walrus_data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walrus_data.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAG1E;;;;GAIG;AACH,eAAO,MAAM,eAAe;IACpB,uCAAuC;;IAEvC;;;;;;OAMG;;;;;;sGAIH,CAAC;AACT,4EAA4E;AAC5E,eAAO,MAAM,UAAU;IACf,kEAAkE;;QAflE,uCAAuC;;QAEvC;;;;;;WAMG;;;;;;;IASH;;;;OAIG;;iGAEH,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveEnum, MoveStruct, MoveTuple } from "../../../utils/index.js";
5
+ import { bcs } from '@mysten/sui/bcs';
6
+ const $moduleName = '0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data';
7
+ /**
8
+ * Confidentiality of a stored blob: cleartext, or encrypted with an access policy.
9
+ * Only applies to standalone blobs — a quilt patch is a slice of a shared quilt
10
+ * blob and can never be the direct product of an encryption.
11
+ */
12
+ export const Confidentiality = new MoveEnum({ name: `${$moduleName}::Confidentiality`, fields: {
13
+ /** The blob is stored in the clear. */
14
+ Unencrypted: null,
15
+ /**
16
+ * The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
17
+ * — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
18
+ * itself a Seal `EncryptedObject`, which already carries the decryption-policy
19
+ * package id, so no separate policy field is stored here. Decryption is gated by
20
+ * that policy package's `seal_approve`, not by this library.
21
+ */
22
+ Encrypted: new MoveStruct({ name: `Confidentiality.Encrypted`, fields: {
23
+ dek: bcs.vector(bcs.u8())
24
+ } })
25
+ } });
26
+ /** Represents either a standalone Walrus blob or a patch within a quilt. */
27
+ export const WalrusData = new MoveEnum({ name: `${$moduleName}::WalrusData`, fields: {
28
+ /** A standalone Walrus blob. Fields: blob_id, confidentiality. */
29
+ Blob: new MoveTuple({ name: `WalrusData.Blob`, fields: [bcs.u256(), Confidentiality] }),
30
+ /**
31
+ * A patch within a Walrus quilt. Fields: quilt_id, version, start_index,
32
+ * end_index. Always a plaintext reference into a (possibly separately encrypted)
33
+ * quilt blob.
34
+ */
35
+ QuiltPatch: new MoveTuple({ name: `WalrusData.QuiltPatch`, fields: [bcs.u256(), bcs.u8(), bcs.u16(), bcs.u16()] })
36
+ } });
37
+ //# sourceMappingURL=walrus_data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walrus_data.js","sourceRoot":"","sources":["../../../../../src/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,iFAAiF,CAAC;AACtG;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,mBAAmB,EAAE,MAAM,EAAE;QACvF,uCAAuC;QACvC,WAAW,EAAE,IAAI;QACjB;;;;;;WAMG;QACH,SAAS,EAAE,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,EAAE;gBAC/D,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;aAC5B,EAAE,CAAC;KACX,EAAE,CAAC,CAAC;AACT,4EAA4E;AAC5E,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,cAAc,EAAE,MAAM,EAAE;QAC7E,kEAAkE;QAClE,IAAI,EAAE,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,eAAe,CAAC,EAAE,CAAC;QACvF;;;;WAIG;QACH,UAAU,EAAE,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;KACrH,EAAE,CAAC,CAAC"}
@@ -0,0 +1,46 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * The evolvable cover art value used by the recording/release cover art
6
+ * extensions.
7
+ *
8
+ * CoverArt format changes over time (static-only → +animated → future formats).
9
+ * Keeping it in an extension rather than immutable core means a new format is a
10
+ * republish of this small package (or a brand-new cover art standard), not of the
11
+ * frozen protocol. `CoverArt` references external storage via `ori::WalrusData`.
12
+ */
13
+ import { MoveStruct } from '../../../utils/index.ts';
14
+ export declare const CoverArt: MoveStruct<{
15
+ still: import("../../../utils/index.ts").MoveEnum<{
16
+ Blob: import("../../../utils/index.ts").MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("../../../utils/index.ts").MoveEnum<{
17
+ Unencrypted: null;
18
+ Encrypted: MoveStruct<{
19
+ dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
20
+ length: number;
21
+ }, string>;
22
+ }, "Confidentiality.Encrypted">;
23
+ }, "0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::Confidentiality">], "WalrusData.Blob">;
24
+ QuiltPatch: import("../../../utils/index.ts").MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("@mysten/sui/bcs").BcsType<number, number, "u8">, import("@mysten/sui/bcs").BcsType<number, number, "u16">, import("@mysten/sui/bcs").BcsType<number, number, "u16">], "WalrusData.QuiltPatch">;
25
+ }, "0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::WalrusData">;
26
+ animated: import("@mysten/sui/bcs").BcsType<import("@mysten/bcs").EnumOutputShapeWithKeys<{
27
+ Blob: [string, import("@mysten/bcs").EnumOutputShapeWithKeys<{
28
+ Unencrypted: true;
29
+ Encrypted: {
30
+ dek: number[];
31
+ };
32
+ }, "Unencrypted" | "Encrypted">];
33
+ QuiltPatch: [string, number, number, number];
34
+ }, "Blob" | "QuiltPatch"> | null, import("@mysten/bcs").EnumInputShape<{
35
+ Blob: readonly [string | number | bigint, import("@mysten/bcs").EnumInputShape<{
36
+ Unencrypted: boolean | object | null;
37
+ Encrypted: {
38
+ dek: Iterable<number> & {
39
+ length: number;
40
+ };
41
+ };
42
+ }>];
43
+ QuiltPatch: readonly [string | number | bigint, number, number, number];
44
+ }> | null | undefined, "Option<0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::WalrusData>">;
45
+ }, "cover_art::cover_art::CoverArt">;
46
+ //# sourceMappingURL=cover_art.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cover_art.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/release_cover_art/deps/cover_art/cover_art.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAGb,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * The evolvable cover art value used by the recording/release cover art
6
+ * extensions.
7
+ *
8
+ * CoverArt format changes over time (static-only → +animated → future formats).
9
+ * Keeping it in an extension rather than immutable core means a new format is a
10
+ * republish of this small package (or a brand-new cover art standard), not of the
11
+ * frozen protocol. `CoverArt` references external storage via `ori::WalrusData`.
12
+ */
13
+ import { MoveStruct } from "../../../utils/index.js";
14
+ import { bcs } from '@mysten/sui/bcs';
15
+ import * as walrus_data from "../0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js";
16
+ const $moduleName = 'cover_art::cover_art';
17
+ export const CoverArt = new MoveStruct({ name: `${$moduleName}::CoverArt`, fields: {
18
+ still: walrus_data.WalrusData,
19
+ animated: bcs.option(walrus_data.WalrusData)
20
+ } });
21
+ //# sourceMappingURL=cover_art.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cover_art.js","sourceRoot":"","sources":["../../../../../src/contracts/release_cover_art/deps/cover_art/cover_art.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,WAAW,MAAM,sFAAsF,CAAC;AACpH,MAAM,WAAW,GAAG,sBAAsB,CAAC;AAC3C,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,YAAY,EAAE,MAAM,EAAE;QAC3E,KAAK,EAAE,WAAW,CAAC,UAAU;QAC7B,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC;KAC/C,EAAE,CAAC,CAAC"}