@misofm/platform 0.24.0 → 0.26.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 (635) hide show
  1. package/README.md +262 -95
  2. package/dist/auth.d.ts +8 -13
  3. package/dist/auth.d.ts.map +1 -1
  4. package/dist/auth.js +78 -59
  5. package/dist/auth.js.map +1 -1
  6. package/dist/catalog.d.ts +6 -6
  7. package/dist/catalog.d.ts.map +1 -1
  8. package/dist/catalog.js +33 -21
  9. package/dist/catalog.js.map +1 -1
  10. package/dist/client.d.ts +124 -127
  11. package/dist/client.d.ts.map +1 -1
  12. package/dist/client.js +112 -114
  13. package/dist/client.js.map +1 -1
  14. package/dist/contracts/composition_credits/composition_credits.d.ts +181 -0
  15. package/dist/contracts/composition_credits/composition_credits.d.ts.map +1 -0
  16. package/dist/contracts/composition_credits/composition_credits.js +109 -0
  17. package/dist/contracts/composition_credits/composition_credits.js.map +1 -0
  18. package/dist/contracts/composition_credits/composition_party_role.d.ts +119 -0
  19. package/dist/contracts/composition_credits/composition_party_role.d.ts.map +1 -0
  20. package/dist/contracts/composition_credits/composition_party_role.js +139 -0
  21. package/dist/contracts/composition_credits/composition_party_role.js.map +1 -0
  22. package/dist/contracts/composition_credits/deps/credit/credit.d.ts +24 -0
  23. package/dist/contracts/composition_credits/deps/credit/credit.d.ts.map +1 -0
  24. package/dist/contracts/composition_credits/deps/credit/credit.js +23 -0
  25. package/dist/contracts/composition_credits/deps/credit/credit.js.map +1 -0
  26. package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts +37 -0
  27. package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts.map +1 -0
  28. package/dist/contracts/composition_credits/deps/sui/vec_map.js +28 -0
  29. package/dist/contracts/composition_credits/deps/sui/vec_map.js.map +1 -0
  30. package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts +143 -0
  31. package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts.map +1 -0
  32. package/dist/contracts/composition_routed_stake/composition_routed_stake.js +125 -0
  33. package/dist/contracts/composition_routed_stake/composition_routed_stake.js.map +1 -0
  34. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts +93 -0
  35. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +1 -0
  36. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +86 -0
  37. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js.map +1 -0
  38. package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.d.ts +90 -0
  39. package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.d.ts.map +1 -0
  40. package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.js +85 -0
  41. package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.js.map +1 -0
  42. package/dist/contracts/composition_royalty_pool_plugin/witness.d.ts +6 -0
  43. package/dist/contracts/composition_royalty_pool_plugin/witness.d.ts.map +1 -0
  44. package/dist/contracts/composition_royalty_pool_plugin/witness.js +8 -0
  45. package/dist/contracts/composition_royalty_pool_plugin/witness.js.map +1 -0
  46. package/dist/contracts/cover_art/cover_art.d.ts +83 -0
  47. package/dist/contracts/cover_art/cover_art.d.ts.map +1 -0
  48. package/dist/contracts/cover_art/cover_art.js +66 -0
  49. package/dist/contracts/cover_art/cover_art.js.map +1 -0
  50. package/dist/contracts/cover_art/deps/ori/confidentiality.d.ts +24 -0
  51. package/dist/contracts/cover_art/deps/ori/confidentiality.d.ts.map +1 -0
  52. package/dist/contracts/cover_art/deps/ori/confidentiality.js +24 -0
  53. package/dist/contracts/cover_art/deps/ori/confidentiality.js.map +1 -0
  54. package/dist/contracts/cover_art/deps/ori/data.d.ts +16 -0
  55. package/dist/contracts/cover_art/deps/ori/data.d.ts.map +1 -0
  56. package/dist/contracts/cover_art/deps/ori/data.js +12 -0
  57. package/dist/contracts/cover_art/deps/ori/data.js.map +1 -0
  58. package/dist/contracts/genre/genre.d.ts +78 -0
  59. package/dist/contracts/genre/genre.d.ts.map +1 -0
  60. package/dist/contracts/genre/genre.js +87 -0
  61. package/dist/contracts/genre/genre.js.map +1 -0
  62. package/dist/contracts/party_cta/party_cta.d.ts +120 -0
  63. package/dist/contracts/party_cta/party_cta.d.ts.map +1 -0
  64. package/dist/contracts/party_cta/party_cta.js +139 -0
  65. package/dist/contracts/party_cta/party_cta.js.map +1 -0
  66. package/dist/contracts/party_genre/party_genre.d.ts +117 -0
  67. package/dist/contracts/party_genre/party_genre.d.ts.map +1 -0
  68. package/dist/contracts/party_genre/party_genre.js +131 -0
  69. package/dist/contracts/party_genre/party_genre.js.map +1 -0
  70. package/dist/contracts/party_media/party_media.d.ts +86 -0
  71. package/dist/contracts/party_media/party_media.d.ts.map +1 -0
  72. package/dist/contracts/party_media/party_media.js +97 -0
  73. package/dist/contracts/party_media/party_media.js.map +1 -0
  74. package/dist/contracts/party_music/party_music.d.ts +209 -0
  75. package/dist/contracts/party_music/party_music.d.ts.map +1 -0
  76. package/dist/contracts/party_music/party_music.js +259 -0
  77. package/dist/contracts/party_music/party_music.js.map +1 -0
  78. package/dist/contracts/party_platform_link/party_platform_link.d.ts +89 -0
  79. package/dist/contracts/party_platform_link/party_platform_link.d.ts.map +1 -0
  80. package/dist/contracts/party_platform_link/party_platform_link.js +92 -0
  81. package/dist/contracts/party_platform_link/party_platform_link.js.map +1 -0
  82. package/dist/contracts/party_pro_link/party_pro_link.d.ts +233 -0
  83. package/dist/contracts/party_pro_link/party_pro_link.d.ts.map +1 -0
  84. package/dist/contracts/party_pro_link/party_pro_link.js +289 -0
  85. package/dist/contracts/party_pro_link/party_pro_link.js.map +1 -0
  86. package/dist/contracts/party_profile/deps/country_code/country_code.d.ts +15 -0
  87. package/dist/contracts/party_profile/deps/country_code/country_code.d.ts.map +1 -0
  88. package/dist/contracts/party_profile/deps/country_code/country_code.js +17 -0
  89. package/dist/contracts/party_profile/deps/country_code/country_code.js.map +1 -0
  90. package/dist/contracts/party_profile/deps/language_code/language_code.d.ts +6 -0
  91. package/dist/contracts/party_profile/deps/language_code/language_code.d.ts.map +1 -0
  92. package/dist/contracts/party_profile/deps/language_code/language_code.js +8 -0
  93. package/dist/contracts/party_profile/deps/language_code/language_code.js.map +1 -0
  94. package/dist/contracts/party_profile/party_profile.d.ts +133 -0
  95. package/dist/contracts/party_profile/party_profile.d.ts.map +1 -0
  96. package/dist/contracts/party_profile/party_profile.js +153 -0
  97. package/dist/contracts/party_profile/party_profile.js.map +1 -0
  98. package/dist/contracts/party_roles/party_roles.d.ts +201 -0
  99. package/dist/contracts/party_roles/party_roles.d.ts.map +1 -0
  100. package/dist/contracts/party_roles/party_roles.js +237 -0
  101. package/dist/contracts/party_roles/party_roles.js.map +1 -0
  102. package/dist/contracts/party_social/party_social.d.ts +258 -0
  103. package/dist/contracts/party_social/party_social.d.ts.map +1 -0
  104. package/dist/contracts/party_social/party_social.js +320 -0
  105. package/dist/contracts/party_social/party_social.js.map +1 -0
  106. package/dist/contracts/party_tags/party_tags.d.ts +116 -0
  107. package/dist/contracts/party_tags/party_tags.d.ts.map +1 -0
  108. package/dist/contracts/party_tags/party_tags.js +130 -0
  109. package/dist/contracts/party_tags/party_tags.js.map +1 -0
  110. package/dist/contracts/party_wallet/party_wallet.d.ts +112 -0
  111. package/dist/contracts/party_wallet/party_wallet.d.ts.map +1 -0
  112. package/dist/contracts/party_wallet/party_wallet.js +114 -0
  113. package/dist/contracts/party_wallet/party_wallet.js.map +1 -0
  114. package/dist/contracts/record/deps/std/type_name.d.ts +18 -0
  115. package/dist/contracts/record/deps/std/type_name.d.ts.map +1 -0
  116. package/dist/contracts/record/deps/std/type_name.js +20 -0
  117. package/dist/contracts/record/deps/std/type_name.js.map +1 -0
  118. package/dist/contracts/record/deps/sui/vec_set.d.ts +21 -0
  119. package/dist/contracts/record/deps/sui/vec_set.d.ts.map +1 -0
  120. package/dist/contracts/record/deps/sui/vec_set.js +20 -0
  121. package/dist/contracts/record/deps/sui/vec_set.js.map +1 -0
  122. package/dist/contracts/record/pressing.d.ts +327 -0
  123. package/dist/contracts/record/pressing.d.ts.map +1 -0
  124. package/dist/contracts/record/pressing.js +345 -0
  125. package/dist/contracts/record/pressing.js.map +1 -0
  126. package/dist/contracts/record/record.d.ts +190 -0
  127. package/dist/contracts/record/record.d.ts.map +1 -0
  128. package/dist/contracts/record/record.js +226 -0
  129. package/dist/contracts/record/record.js.map +1 -0
  130. package/dist/contracts/record_shop/deps/std/type_name.d.ts +18 -0
  131. package/dist/contracts/record_shop/deps/std/type_name.d.ts.map +1 -0
  132. package/dist/contracts/record_shop/deps/std/type_name.js +20 -0
  133. package/dist/contracts/record_shop/deps/std/type_name.js.map +1 -0
  134. package/dist/contracts/record_shop/listing.d.ts +387 -0
  135. package/dist/contracts/record_shop/listing.d.ts.map +1 -0
  136. package/dist/contracts/record_shop/listing.js +380 -0
  137. package/dist/contracts/record_shop/listing.js.map +1 -0
  138. package/dist/contracts/record_shop/witness.d.ts +7 -0
  139. package/dist/contracts/record_shop/witness.d.ts.map +1 -0
  140. package/dist/contracts/record_shop/witness.js +9 -0
  141. package/dist/contracts/record_shop/witness.js.map +1 -0
  142. package/dist/contracts/recording_advisory/recording_advisory.d.ts +194 -0
  143. package/dist/contracts/recording_advisory/recording_advisory.d.ts.map +1 -0
  144. package/dist/contracts/recording_advisory/recording_advisory.js +204 -0
  145. package/dist/contracts/recording_advisory/recording_advisory.js.map +1 -0
  146. package/dist/contracts/recording_credits/deps/credit/credit.d.ts +24 -0
  147. package/dist/contracts/recording_credits/deps/credit/credit.d.ts.map +1 -0
  148. package/dist/contracts/recording_credits/deps/credit/credit.js +23 -0
  149. package/dist/contracts/recording_credits/deps/credit/credit.js.map +1 -0
  150. package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts +37 -0
  151. package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts.map +1 -0
  152. package/dist/contracts/recording_credits/deps/sui/vec_map.js +28 -0
  153. package/dist/contracts/recording_credits/deps/sui/vec_map.js.map +1 -0
  154. package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts +21 -0
  155. package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts.map +1 -0
  156. package/dist/contracts/recording_credits/deps/sui/vec_set.js +20 -0
  157. package/dist/contracts/recording_credits/deps/sui/vec_set.js.map +1 -0
  158. package/dist/contracts/recording_credits/recording_credits.d.ts +2313 -0
  159. package/dist/contracts/recording_credits/recording_credits.d.ts.map +1 -0
  160. package/dist/contracts/recording_credits/recording_credits.js +270 -0
  161. package/dist/contracts/recording_credits/recording_credits.js.map +1 -0
  162. package/dist/contracts/recording_credits/recording_party_role.d.ts +1174 -0
  163. package/dist/contracts/recording_credits/recording_party_role.d.ts.map +1 -0
  164. package/dist/contracts/recording_credits/recording_party_role.js +692 -0
  165. package/dist/contracts/recording_credits/recording_party_role.js.map +1 -0
  166. package/dist/contracts/recording_engine_session/deps/ori/confidentiality.d.ts +24 -0
  167. package/dist/contracts/recording_engine_session/deps/ori/confidentiality.d.ts.map +1 -0
  168. package/dist/contracts/recording_engine_session/deps/ori/confidentiality.js +24 -0
  169. package/dist/contracts/recording_engine_session/deps/ori/confidentiality.js.map +1 -0
  170. package/dist/contracts/recording_engine_session/deps/ori/data.d.ts +16 -0
  171. package/dist/contracts/recording_engine_session/deps/ori/data.d.ts.map +1 -0
  172. package/dist/contracts/recording_engine_session/deps/ori/data.js +12 -0
  173. package/dist/contracts/recording_engine_session/deps/ori/data.js.map +1 -0
  174. package/dist/contracts/recording_engine_session/recording_engine_session.d.ts +296 -0
  175. package/dist/contracts/recording_engine_session/recording_engine_session.d.ts.map +1 -0
  176. package/dist/contracts/recording_engine_session/recording_engine_session.js +216 -0
  177. package/dist/contracts/recording_engine_session/recording_engine_session.js.map +1 -0
  178. package/dist/contracts/recording_genre/recording_genre.d.ts +173 -0
  179. package/dist/contracts/recording_genre/recording_genre.d.ts.map +1 -0
  180. package/dist/contracts/recording_genre/recording_genre.js +170 -0
  181. package/dist/contracts/recording_genre/recording_genre.js.map +1 -0
  182. package/dist/contracts/recording_language/deps/language_code/language_code.d.ts +6 -0
  183. package/dist/contracts/recording_language/deps/language_code/language_code.d.ts.map +1 -0
  184. package/dist/contracts/recording_language/deps/language_code/language_code.js +8 -0
  185. package/dist/contracts/recording_language/deps/language_code/language_code.js.map +1 -0
  186. package/dist/contracts/recording_language/recording_language.d.ts +152 -0
  187. package/dist/contracts/recording_language/recording_language.d.ts.map +1 -0
  188. package/dist/contracts/recording_language/recording_language.js +149 -0
  189. package/dist/contracts/recording_language/recording_language.js.map +1 -0
  190. package/dist/contracts/recording_master_reference/deps/ori/confidentiality.d.ts +24 -0
  191. package/dist/contracts/recording_master_reference/deps/ori/confidentiality.d.ts.map +1 -0
  192. package/dist/contracts/recording_master_reference/deps/ori/confidentiality.js +24 -0
  193. package/dist/contracts/recording_master_reference/deps/ori/confidentiality.js.map +1 -0
  194. package/dist/contracts/recording_master_reference/deps/ori/data.d.ts +16 -0
  195. package/dist/contracts/recording_master_reference/deps/ori/data.d.ts.map +1 -0
  196. package/dist/contracts/recording_master_reference/deps/ori/data.js +12 -0
  197. package/dist/contracts/recording_master_reference/deps/ori/data.js.map +1 -0
  198. package/dist/contracts/recording_master_reference/recording_master_reference.d.ts +129 -0
  199. package/dist/contracts/recording_master_reference/recording_master_reference.d.ts.map +1 -0
  200. package/dist/contracts/recording_master_reference/recording_master_reference.js +119 -0
  201. package/dist/contracts/recording_master_reference/recording_master_reference.js.map +1 -0
  202. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts +96 -0
  203. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +1 -0
  204. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +85 -0
  205. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js.map +1 -0
  206. package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.d.ts +92 -0
  207. package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.d.ts.map +1 -0
  208. package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.js +85 -0
  209. package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.js.map +1 -0
  210. package/dist/contracts/recording_royalty_pool_plugin/witness.d.ts +6 -0
  211. package/dist/contracts/recording_royalty_pool_plugin/witness.d.ts.map +1 -0
  212. package/dist/contracts/recording_royalty_pool_plugin/witness.js +8 -0
  213. package/dist/contracts/recording_royalty_pool_plugin/witness.js.map +1 -0
  214. package/dist/contracts/recording_streaming_transcode/deps/ori/data.d.ts +8 -0
  215. package/dist/contracts/recording_streaming_transcode/deps/ori/data.d.ts.map +1 -0
  216. package/dist/contracts/recording_streaming_transcode/deps/ori/data.js +10 -0
  217. package/dist/contracts/recording_streaming_transcode/deps/ori/data.js.map +1 -0
  218. package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.d.ts +124 -0
  219. package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.d.ts.map +1 -0
  220. package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.js +124 -0
  221. package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.js.map +1 -0
  222. package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/confidentiality.d.ts +24 -0
  223. package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/confidentiality.d.ts.map +1 -0
  224. package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/confidentiality.js +24 -0
  225. package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/confidentiality.js.map +1 -0
  226. package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/data.d.ts +16 -0
  227. package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/data.d.ts.map +1 -0
  228. package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/data.js +12 -0
  229. package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/data.js.map +1 -0
  230. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts +47 -0
  231. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts.map +1 -0
  232. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js +22 -0
  233. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js.map +1 -0
  234. package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts +33 -0
  235. package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts.map +1 -0
  236. package/dist/contracts/release_cover_art/deps/per_track/per_track.js +32 -0
  237. package/dist/contracts/release_cover_art/deps/per_track/per_track.js.map +1 -0
  238. package/dist/contracts/release_cover_art/release_cover_art.d.ts +300 -0
  239. package/dist/contracts/release_cover_art/release_cover_art.d.ts.map +1 -0
  240. package/dist/contracts/release_cover_art/release_cover_art.js +168 -0
  241. package/dist/contracts/release_cover_art/release_cover_art.js.map +1 -0
  242. package/dist/contracts/release_credits/deps/credit/credit.d.ts +24 -0
  243. package/dist/contracts/release_credits/deps/credit/credit.d.ts.map +1 -0
  244. package/dist/contracts/release_credits/deps/credit/credit.js +23 -0
  245. package/dist/contracts/release_credits/deps/credit/credit.js.map +1 -0
  246. package/dist/contracts/release_credits/deps/sui/vec_map.d.ts +37 -0
  247. package/dist/contracts/release_credits/deps/sui/vec_map.d.ts.map +1 -0
  248. package/dist/contracts/release_credits/deps/sui/vec_map.js +28 -0
  249. package/dist/contracts/release_credits/deps/sui/vec_map.js.map +1 -0
  250. package/dist/contracts/release_credits/release_credits.d.ts +142 -0
  251. package/dist/contracts/release_credits/release_credits.d.ts.map +1 -0
  252. package/dist/contracts/release_credits/release_credits.js +108 -0
  253. package/dist/contracts/release_credits/release_credits.js.map +1 -0
  254. package/dist/contracts/release_credits/release_party_role.d.ts +58 -0
  255. package/dist/contracts/release_credits/release_party_role.d.ts.map +1 -0
  256. package/dist/contracts/release_credits/release_party_role.js +66 -0
  257. package/dist/contracts/release_credits/release_party_role.js.map +1 -0
  258. package/dist/contracts/release_description/release_description.d.ts +112 -0
  259. package/dist/contracts/release_description/release_description.d.ts.map +1 -0
  260. package/dist/contracts/release_description/release_description.js +123 -0
  261. package/dist/contracts/release_description/release_description.js.map +1 -0
  262. package/dist/contracts/release_dsp_link/release_dsp_link.d.ts +643 -0
  263. package/dist/contracts/release_dsp_link/release_dsp_link.d.ts.map +1 -0
  264. package/dist/contracts/release_dsp_link/release_dsp_link.js +555 -0
  265. package/dist/contracts/release_dsp_link/release_dsp_link.js.map +1 -0
  266. package/dist/contracts/release_genre/release_genre.d.ts +145 -0
  267. package/dist/contracts/release_genre/release_genre.d.ts.map +1 -0
  268. package/dist/contracts/release_genre/release_genre.js +154 -0
  269. package/dist/contracts/release_genre/release_genre.js.map +1 -0
  270. package/dist/contracts/release_kind/release_kind.d.ts +98 -0
  271. package/dist/contracts/release_kind/release_kind.d.ts.map +1 -0
  272. package/dist/contracts/release_kind/release_kind.js +109 -0
  273. package/dist/contracts/release_kind/release_kind.js.map +1 -0
  274. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts +91 -0
  275. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts.map +1 -0
  276. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js +92 -0
  277. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js.map +1 -0
  278. package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.d.ts +73 -0
  279. package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.d.ts.map +1 -0
  280. package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.js +80 -0
  281. package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.js.map +1 -0
  282. package/dist/contracts/release_revenue_distributor_plugin/witness.d.ts +6 -0
  283. package/dist/contracts/release_revenue_distributor_plugin/witness.d.ts.map +1 -0
  284. package/dist/contracts/release_revenue_distributor_plugin/witness.js +8 -0
  285. package/dist/contracts/release_revenue_distributor_plugin/witness.js.map +1 -0
  286. package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts +67 -0
  287. package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts.map +1 -0
  288. package/dist/contracts/routed_stake/deps/royalty_pool/stake.js +50 -0
  289. package/dist/contracts/routed_stake/deps/royalty_pool/stake.js.map +1 -0
  290. package/dist/contracts/routed_stake/deps/std/type_name.d.ts +18 -0
  291. package/dist/contracts/routed_stake/deps/std/type_name.d.ts.map +1 -0
  292. package/dist/contracts/routed_stake/deps/std/type_name.js +20 -0
  293. package/dist/contracts/routed_stake/deps/std/type_name.js.map +1 -0
  294. package/dist/contracts/routed_stake/deps/sui/balance.d.ts +13 -0
  295. package/dist/contracts/routed_stake/deps/sui/balance.d.ts.map +1 -0
  296. package/dist/contracts/routed_stake/deps/sui/balance.js +15 -0
  297. package/dist/contracts/routed_stake/deps/sui/balance.js.map +1 -0
  298. package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts +37 -0
  299. package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts.map +1 -0
  300. package/dist/contracts/routed_stake/deps/sui/vec_map.js +28 -0
  301. package/dist/contracts/routed_stake/deps/sui/vec_map.js.map +1 -0
  302. package/dist/contracts/routed_stake/routed_stake.d.ts +347 -0
  303. package/dist/contracts/routed_stake/routed_stake.d.ts.map +1 -0
  304. package/dist/contracts/routed_stake/routed_stake.js +302 -0
  305. package/dist/contracts/routed_stake/routed_stake.js.map +1 -0
  306. package/dist/contracts/royalty_pool/deps/std/type_name.d.ts +18 -0
  307. package/dist/contracts/royalty_pool/deps/std/type_name.d.ts.map +1 -0
  308. package/dist/contracts/royalty_pool/deps/std/type_name.js +20 -0
  309. package/dist/contracts/royalty_pool/deps/std/type_name.js.map +1 -0
  310. package/dist/contracts/royalty_pool/deps/sui/balance.d.ts +13 -0
  311. package/dist/contracts/royalty_pool/deps/sui/balance.d.ts.map +1 -0
  312. package/dist/contracts/royalty_pool/deps/sui/balance.js +15 -0
  313. package/dist/contracts/royalty_pool/deps/sui/balance.js.map +1 -0
  314. package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts +37 -0
  315. package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts.map +1 -0
  316. package/dist/contracts/royalty_pool/deps/sui/vec_map.js +28 -0
  317. package/dist/contracts/royalty_pool/deps/sui/vec_map.js.map +1 -0
  318. package/dist/contracts/royalty_pool/pool.d.ts +414 -0
  319. package/dist/contracts/royalty_pool/pool.d.ts.map +1 -0
  320. package/dist/contracts/royalty_pool/pool.js +409 -0
  321. package/dist/contracts/royalty_pool/pool.js.map +1 -0
  322. package/dist/contracts/royalty_pool/stake.d.ts +202 -0
  323. package/dist/contracts/royalty_pool/stake.d.ts.map +1 -0
  324. package/dist/contracts/royalty_pool/stake.js +196 -0
  325. package/dist/contracts/royalty_pool/stake.js.map +1 -0
  326. package/dist/contracts/utils/index.d.ts +104 -0
  327. package/dist/contracts/utils/index.d.ts.map +1 -0
  328. package/dist/contracts/utils/index.js +272 -0
  329. package/dist/contracts/utils/index.js.map +1 -0
  330. package/dist/contracts/vault/deps/sui/bag.d.ts +35 -0
  331. package/dist/contracts/vault/deps/sui/bag.d.ts.map +1 -0
  332. package/dist/contracts/vault/deps/sui/bag.js +37 -0
  333. package/dist/contracts/vault/deps/sui/bag.js.map +1 -0
  334. package/dist/contracts/vault/deps/sui/borrow.d.ts +20 -0
  335. package/dist/contracts/vault/deps/sui/borrow.d.ts.map +1 -0
  336. package/dist/contracts/vault/deps/sui/borrow.js +21 -0
  337. package/dist/contracts/vault/deps/sui/borrow.js.map +1 -0
  338. package/dist/contracts/vault/vault.d.ts +316 -0
  339. package/dist/contracts/vault/vault.d.ts.map +1 -0
  340. package/dist/contracts/vault/vault.js +308 -0
  341. package/dist/contracts/vault/vault.js.map +1 -0
  342. package/dist/contracts.d.ts +57 -33
  343. package/dist/contracts.d.ts.map +1 -1
  344. package/dist/contracts.js +63 -41
  345. package/dist/contracts.js.map +1 -1
  346. package/dist/cover.d.ts +4 -3
  347. package/dist/cover.d.ts.map +1 -1
  348. package/dist/cover.js +30 -19
  349. package/dist/cover.js.map +1 -1
  350. package/dist/credits.d.ts +12 -10
  351. package/dist/credits.d.ts.map +1 -1
  352. package/dist/credits.js +66 -39
  353. package/dist/credits.js.map +1 -1
  354. package/dist/deployments.d.ts +122 -74
  355. package/dist/deployments.d.ts.map +1 -1
  356. package/dist/deployments.js +239 -58
  357. package/dist/deployments.js.map +1 -1
  358. package/dist/errors.d.ts +91 -0
  359. package/dist/errors.d.ts.map +1 -0
  360. package/dist/errors.js +111 -0
  361. package/dist/errors.js.map +1 -0
  362. package/dist/events.d.ts +1045 -0
  363. package/dist/events.d.ts.map +1 -0
  364. package/dist/events.js +116 -0
  365. package/dist/events.js.map +1 -0
  366. package/dist/execute.d.ts +5 -3
  367. package/dist/execute.d.ts.map +1 -1
  368. package/dist/execute.js +11 -6
  369. package/dist/execute.js.map +1 -1
  370. package/dist/genre.d.ts +108 -0
  371. package/dist/genre.d.ts.map +1 -0
  372. package/dist/genre.js +289 -0
  373. package/dist/genre.js.map +1 -0
  374. package/dist/index.d.ts +4 -0
  375. package/dist/index.d.ts.map +1 -1
  376. package/dist/index.js +9 -1
  377. package/dist/index.js.map +1 -1
  378. package/dist/internal.js +2 -2
  379. package/dist/internal.js.map +1 -1
  380. package/dist/packages.d.ts +4185 -0
  381. package/dist/packages.d.ts.map +1 -0
  382. package/dist/packages.js +190 -0
  383. package/dist/packages.js.map +1 -0
  384. package/dist/party/client.d.ts +327 -0
  385. package/dist/party/client.d.ts.map +1 -0
  386. package/dist/party/client.js +225 -0
  387. package/dist/party/client.js.map +1 -0
  388. package/dist/party/extensions/ctas.d.ts +19 -0
  389. package/dist/party/extensions/ctas.d.ts.map +1 -0
  390. package/dist/party/extensions/ctas.js +25 -0
  391. package/dist/party/extensions/ctas.js.map +1 -0
  392. package/dist/party/extensions/genres.d.ts +27 -0
  393. package/dist/party/extensions/genres.d.ts.map +1 -0
  394. package/dist/party/extensions/genres.js +31 -0
  395. package/dist/party/extensions/genres.js.map +1 -0
  396. package/dist/party/extensions/links.d.ts +66 -0
  397. package/dist/party/extensions/links.d.ts.map +1 -0
  398. package/dist/party/extensions/links.js +118 -0
  399. package/dist/party/extensions/links.js.map +1 -0
  400. package/dist/party/extensions/media.d.ts +36 -0
  401. package/dist/party/extensions/media.d.ts.map +1 -0
  402. package/dist/party/extensions/media.js +45 -0
  403. package/dist/party/extensions/media.js.map +1 -0
  404. package/dist/party/extensions/profile.d.ts +24 -0
  405. package/dist/party/extensions/profile.d.ts.map +1 -0
  406. package/dist/party/extensions/profile.js +48 -0
  407. package/dist/party/extensions/profile.js.map +1 -0
  408. package/dist/party/extensions/roles.d.ts +37 -0
  409. package/dist/party/extensions/roles.d.ts.map +1 -0
  410. package/dist/party/extensions/roles.js +46 -0
  411. package/dist/party/extensions/roles.js.map +1 -0
  412. package/dist/party/extensions/tags.d.ts +25 -0
  413. package/dist/party/extensions/tags.d.ts.map +1 -0
  414. package/dist/party/extensions/tags.js +25 -0
  415. package/dist/party/extensions/tags.js.map +1 -0
  416. package/dist/party/index.d.ts +12 -0
  417. package/dist/party/index.d.ts.map +1 -0
  418. package/dist/party/index.js +18 -0
  419. package/dist/party/index.js.map +1 -0
  420. package/dist/party/internal.d.ts +14 -0
  421. package/dist/party/internal.d.ts.map +1 -0
  422. package/dist/party/internal.js +89 -0
  423. package/dist/party/internal.js.map +1 -0
  424. package/dist/party/queries.d.ts +18 -0
  425. package/dist/party/queries.d.ts.map +1 -0
  426. package/dist/party/queries.js +124 -0
  427. package/dist/party/queries.js.map +1 -0
  428. package/dist/party/types.d.ts +54 -0
  429. package/dist/party/types.d.ts.map +1 -0
  430. package/dist/party/types.js +85 -0
  431. package/dist/party/types.js.map +1 -0
  432. package/dist/pressing.d.ts +55 -35
  433. package/dist/pressing.d.ts.map +1 -1
  434. package/dist/pressing.js +102 -79
  435. package/dist/pressing.js.map +1 -1
  436. package/dist/publication.d.ts +4 -8
  437. package/dist/publication.d.ts.map +1 -1
  438. package/dist/publication.js +53 -40
  439. package/dist/publication.js.map +1 -1
  440. package/dist/queries.d.ts +1 -1
  441. package/dist/queries.d.ts.map +1 -1
  442. package/dist/queries.js +5 -4
  443. package/dist/queries.js.map +1 -1
  444. package/dist/read/artist.d.ts +6 -4
  445. package/dist/read/artist.d.ts.map +1 -1
  446. package/dist/read/artist.js +29 -27
  447. package/dist/read/artist.js.map +1 -1
  448. package/dist/read/catalog.d.ts +21 -18
  449. package/dist/read/catalog.d.ts.map +1 -1
  450. package/dist/read/catalog.js +120 -141
  451. package/dist/read/catalog.js.map +1 -1
  452. package/dist/read/client.d.ts +15 -11
  453. package/dist/read/client.d.ts.map +1 -1
  454. package/dist/read/client.js +5 -1
  455. package/dist/read/client.js.map +1 -1
  456. package/dist/read/config.d.ts +7 -2
  457. package/dist/read/config.d.ts.map +1 -1
  458. package/dist/read/config.js +2 -0
  459. package/dist/read/config.js.map +1 -1
  460. package/dist/read/genres.d.ts +5 -3
  461. package/dist/read/genres.d.ts.map +1 -1
  462. package/dist/read/genres.js +18 -15
  463. package/dist/read/genres.js.map +1 -1
  464. package/dist/read/index.d.ts.map +1 -1
  465. package/dist/read/index.js +8 -2
  466. package/dist/read/index.js.map +1 -1
  467. package/dist/read/receipts.d.ts +15 -6
  468. package/dist/read/receipts.d.ts.map +1 -1
  469. package/dist/read/receipts.js +76 -63
  470. package/dist/read/receipts.js.map +1 -1
  471. package/dist/read/types.d.ts +1 -1
  472. package/dist/read/types.d.ts.map +1 -1
  473. package/dist/read/wallet.d.ts +12 -10
  474. package/dist/read/wallet.d.ts.map +1 -1
  475. package/dist/read/wallet.js +122 -136
  476. package/dist/read/wallet.js.map +1 -1
  477. package/dist/read/works.d.ts +9 -16
  478. package/dist/read/works.d.ts.map +1 -1
  479. package/dist/read/works.js +48 -117
  480. package/dist/read/works.js.map +1 -1
  481. package/dist/recording-extensions.d.ts +8 -7
  482. package/dist/recording-extensions.d.ts.map +1 -1
  483. package/dist/recording-extensions.js +36 -69
  484. package/dist/recording-extensions.js.map +1 -1
  485. package/dist/release-extensions.d.ts +3 -20
  486. package/dist/release-extensions.d.ts.map +1 -1
  487. package/dist/release-extensions.js +13 -59
  488. package/dist/release-extensions.js.map +1 -1
  489. package/dist/release-graph.js +2 -2
  490. package/dist/release-graph.js.map +1 -1
  491. package/dist/royalty.d.ts +87 -0
  492. package/dist/royalty.d.ts.map +1 -0
  493. package/dist/royalty.js +160 -0
  494. package/dist/royalty.js.map +1 -0
  495. package/dist/share.d.ts +7 -6
  496. package/dist/share.d.ts.map +1 -1
  497. package/dist/share.js +38 -31
  498. package/dist/share.js.map +1 -1
  499. package/dist/transactions.d.ts +2 -2
  500. package/dist/transactions.d.ts.map +1 -1
  501. package/dist/transactions.js +6 -6
  502. package/dist/transactions.js.map +1 -1
  503. package/dist/vault.d.ts +20 -8
  504. package/dist/vault.d.ts.map +1 -1
  505. package/dist/vault.js +37 -21
  506. package/dist/vault.js.map +1 -1
  507. package/package.json +31 -10
  508. package/src/auth.ts +89 -70
  509. package/src/catalog.ts +35 -51
  510. package/src/client.ts +220 -141
  511. package/src/contracts/composition_credits/composition_credits.ts +170 -0
  512. package/src/contracts/composition_credits/composition_party_role.ts +190 -0
  513. package/src/contracts/composition_credits/deps/credit/credit.ts +28 -0
  514. package/src/contracts/composition_credits/deps/sui/vec_map.ts +34 -0
  515. package/src/contracts/composition_routed_stake/composition_routed_stake.ts +239 -0
  516. package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +154 -0
  517. package/src/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.ts +165 -0
  518. package/src/contracts/composition_royalty_pool_plugin/witness.ts +8 -0
  519. package/src/contracts/cover_art/cover_art.ts +98 -0
  520. package/src/contracts/cover_art/deps/ori/confidentiality.ts +24 -0
  521. package/src/contracts/cover_art/deps/ori/data.ts +12 -0
  522. package/src/contracts/genre/genre.ts +121 -0
  523. package/src/contracts/party_cta/party_cta.ts +213 -0
  524. package/src/contracts/party_genre/party_genre.ts +200 -0
  525. package/src/contracts/party_media/party_media.ts +142 -0
  526. package/src/contracts/party_music/party_music.ts +406 -0
  527. package/src/contracts/party_platform_link/party_platform_link.ts +149 -0
  528. package/src/contracts/party_pro_link/party_pro_link.ts +454 -0
  529. package/src/contracts/party_profile/deps/country_code/country_code.ts +20 -0
  530. package/src/contracts/party_profile/deps/language_code/language_code.ts +8 -0
  531. package/src/contracts/party_profile/party_profile.ts +240 -0
  532. package/src/contracts/party_roles/party_roles.ts +364 -0
  533. package/src/contracts/party_social/party_social.ts +503 -0
  534. package/src/contracts/party_tags/party_tags.ts +199 -0
  535. package/src/contracts/party_wallet/party_wallet.ts +174 -0
  536. package/src/contracts/record/deps/std/type_name.ts +23 -0
  537. package/src/contracts/record/deps/sui/vec_set.ts +22 -0
  538. package/src/contracts/record/pressing.ts +523 -0
  539. package/src/contracts/record/record.ts +339 -0
  540. package/src/contracts/record_shop/deps/std/type_name.ts +23 -0
  541. package/src/contracts/record_shop/listing.ts +603 -0
  542. package/src/contracts/record_shop/witness.ts +12 -0
  543. package/src/contracts/recording_advisory/recording_advisory.ts +316 -0
  544. package/src/contracts/recording_credits/deps/credit/credit.ts +28 -0
  545. package/src/contracts/recording_credits/deps/sui/vec_map.ts +34 -0
  546. package/src/contracts/recording_credits/deps/sui/vec_set.ts +22 -0
  547. package/src/contracts/recording_credits/recording_credits.ts +459 -0
  548. package/src/contracts/recording_credits/recording_party_role.ts +1042 -0
  549. package/src/contracts/recording_engine_session/deps/ori/confidentiality.ts +24 -0
  550. package/src/contracts/recording_engine_session/deps/ori/data.ts +12 -0
  551. package/src/contracts/recording_engine_session/recording_engine_session.ts +335 -0
  552. package/src/contracts/recording_genre/recording_genre.ts +235 -0
  553. package/src/contracts/recording_language/deps/language_code/language_code.ts +8 -0
  554. package/src/contracts/recording_language/recording_language.ts +238 -0
  555. package/src/contracts/recording_master_reference/deps/ori/confidentiality.ts +24 -0
  556. package/src/contracts/recording_master_reference/deps/ori/data.ts +12 -0
  557. package/src/contracts/recording_master_reference/recording_master_reference.ts +180 -0
  558. package/src/contracts/recording_royalty_pool/recording_royalty_pool.ts +157 -0
  559. package/src/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.ts +167 -0
  560. package/src/contracts/recording_royalty_pool_plugin/witness.ts +8 -0
  561. package/src/contracts/recording_streaming_transcode/deps/ori/data.ts +10 -0
  562. package/src/contracts/recording_streaming_transcode/recording_streaming_transcode.ts +203 -0
  563. package/src/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/confidentiality.ts +24 -0
  564. package/src/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/data.ts +12 -0
  565. package/src/contracts/release_cover_art/deps/cover_art/cover_art.ts +25 -0
  566. package/src/contracts/release_cover_art/deps/per_track/per_track.ts +37 -0
  567. package/src/contracts/release_cover_art/release_cover_art.ts +252 -0
  568. package/src/contracts/release_credits/deps/credit/credit.ts +28 -0
  569. package/src/contracts/release_credits/deps/sui/vec_map.ts +34 -0
  570. package/src/contracts/release_credits/release_credits.ts +157 -0
  571. package/src/contracts/release_credits/release_party_role.ts +87 -0
  572. package/src/contracts/release_description/release_description.ts +168 -0
  573. package/src/contracts/release_dsp_link/release_dsp_link.ts +813 -0
  574. package/src/contracts/release_genre/release_genre.ts +203 -0
  575. package/src/contracts/release_kind/release_kind.ts +154 -0
  576. package/src/contracts/release_revenue_distributor/release_revenue_distributor.ts +141 -0
  577. package/src/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.ts +143 -0
  578. package/src/contracts/release_revenue_distributor_plugin/witness.ts +8 -0
  579. package/src/contracts/routed_stake/deps/royalty_pool/stake.ts +53 -0
  580. package/src/contracts/routed_stake/deps/std/type_name.ts +23 -0
  581. package/src/contracts/routed_stake/deps/sui/balance.ts +18 -0
  582. package/src/contracts/routed_stake/deps/sui/vec_map.ts +34 -0
  583. package/src/contracts/routed_stake/routed_stake.ts +487 -0
  584. package/src/contracts/royalty_pool/deps/std/type_name.ts +23 -0
  585. package/src/contracts/royalty_pool/deps/sui/balance.ts +18 -0
  586. package/src/contracts/royalty_pool/deps/sui/vec_map.ts +34 -0
  587. package/src/contracts/royalty_pool/pool.ts +634 -0
  588. package/src/contracts/royalty_pool/stake.ts +305 -0
  589. package/src/contracts/utils/index.ts +428 -0
  590. package/src/contracts/vault/deps/sui/bag.ts +40 -0
  591. package/src/contracts/vault/deps/sui/borrow.ts +26 -0
  592. package/src/contracts/vault/vault.ts +509 -0
  593. package/src/contracts.ts +86 -39
  594. package/src/cover.ts +19 -28
  595. package/src/credits.ts +49 -81
  596. package/src/deployments.ts +321 -73
  597. package/src/errors.ts +156 -0
  598. package/src/events.ts +121 -0
  599. package/src/execute.ts +13 -9
  600. package/src/genre.ts +384 -0
  601. package/src/index.ts +10 -1
  602. package/src/internal.ts +2 -2
  603. package/src/packages.ts +243 -0
  604. package/src/party/client.ts +280 -0
  605. package/src/party/extensions/ctas.ts +46 -0
  606. package/src/party/extensions/genres.ts +62 -0
  607. package/src/party/extensions/links.ts +186 -0
  608. package/src/party/extensions/media.ts +72 -0
  609. package/src/party/extensions/profile.ts +81 -0
  610. package/src/party/extensions/roles.ts +94 -0
  611. package/src/party/extensions/tags.ts +54 -0
  612. package/src/party/index.ts +40 -0
  613. package/src/party/internal.ts +102 -0
  614. package/src/party/queries.ts +175 -0
  615. package/src/party/types.ts +88 -0
  616. package/src/pressing.ts +163 -166
  617. package/src/publication.ts +58 -45
  618. package/src/queries.ts +5 -5
  619. package/src/read/artist.ts +47 -42
  620. package/src/read/catalog.ts +201 -224
  621. package/src/read/client.ts +20 -13
  622. package/src/read/config.ts +9 -2
  623. package/src/read/genres.ts +24 -16
  624. package/src/read/index.ts +8 -2
  625. package/src/read/receipts.ts +131 -70
  626. package/src/read/types.ts +1 -1
  627. package/src/read/wallet.ts +199 -166
  628. package/src/read/works.ts +76 -195
  629. package/src/recording-extensions.ts +44 -98
  630. package/src/release-extensions.ts +11 -87
  631. package/src/release-graph.ts +2 -2
  632. package/src/royalty.ts +264 -0
  633. package/src/share.ts +45 -30
  634. package/src/transactions.ts +6 -6
  635. package/src/vault.ts +53 -30
@@ -0,0 +1,145 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * The genre(s) a musicos `Release` is classified under, stored as a dynamic field
6
+ * on the release's UID and written through its cap-gated `uid_mut`.
7
+ *
8
+ * Genre is intrinsic to a recording — a fact about the master, not about any one
9
+ * product it appears on — so a recording's own genre lives in the sibling package
10
+ * `recording_genre`, on the recording itself. This package carries the different
11
+ * claim: what a release, as a released product, is classified as. A compilation
12
+ * can be "Jazz" on the shelf even when half its tracks are Blues or Funk on their
13
+ * own terms; that classification belongs to nobody but the release, and no amount
14
+ * of inspecting its recordings derives it. The intended read order for a track's
15
+ * genre is the recording's own (`recording_genre`), falling back to this release's
16
+ * primary when the recording has none — the release is the product-level default,
17
+ * not a per-track override, because a `Recording` carries no back-reference to any
18
+ * release and one recording can appear on many.
19
+ *
20
+ * Its own package, for the same reason genre is separated from every other release
21
+ * fact: it is set by different people, at different times, under a vocabulary (the
22
+ * shared `genre` registry) that evolves on its own schedule. A consumer building a
23
+ * metadata profile picks this extension up or ignores it, and revising it never
24
+ * disturbs anything else the release carries.
25
+ *
26
+ * Genres are kept as one ordered list, primary first, rather than a primary field
27
+ * plus a separate secondary set. A release either has a primary genre or it has no
28
+ * genre assignment at all — there is no state where secondaries exist without a
29
+ * primary, or where the primary and a secondary are the same entry needing to be
30
+ * kept disjoint — so the two structures collapse to one without losing anything
31
+ * the list needs to say. Reordering — including promoting an existing entry to
32
+ * primary — is `clear_genres` followed by `add_genre` in the desired order,
33
+ * atomically within one programmable transaction block. That is preferable to a
34
+ * dedicated set-primary function: one fewer function to review and keep in sync
35
+ * with `recording_genre`, no conditional-capacity branch (insert-new-at-front vs.
36
+ * move-existing-to- front), and the client expresses its intended final order
37
+ * directly instead of encoding it as a sequence of promotions. Order beyond index
38
+ * 0 is the caller's, in the same convention `recording_language` uses for its
39
+ * language vector: first is authoritative, the rest are unranked.
40
+ *
41
+ * The stored value is a bare `vector<ID>` under the package's own key, with no
42
+ * wrapper struct — the same shape `party_genre` uses for its `VecSet<ID>` and
43
+ * `recording_language` for its `vector<LanguageCode>`. The list is non-empty by
44
+ * construction: `remove_genre` drops the field the moment the last entry leaves,
45
+ * so "the field exists" and "there is a primary" are the same fact and no reader
46
+ * has to handle an attached-but-empty case. Every write takes `&Genre`, so only an
47
+ * id that the shared vocabulary actually minted can ever enter the list; removal
48
+ * takes a bare `ID` because nothing about proving membership is needed to take an
49
+ * entry back out.
50
+ *
51
+ * This module exposes no function derivable by composing the others. This package
52
+ * is never upgraded — every publish is a fresh identity at a fresh address — so
53
+ * every public function is permanent surface: once live, it must be carried,
54
+ * re-published, and re-audited for as long as the package is in use. A predicate
55
+ * or accessor a caller can compute from `genres()` earns nothing by also living
56
+ * on-chain. Concretely: emptiness is `genres(release).is_empty()`, and the primary
57
+ * is `genres(release)[0]` (valid whenever the vector is non-empty, by the
58
+ * non-empty-by-construction invariant above).
59
+ */
60
+ import { MoveTuple, MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
61
+ import { type Transaction } from '@mysten/sui/transactions';
62
+ export declare const ExtensionKey: MoveTuple<readonly [import("@mysten/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/release_genre::release_genre::ExtensionKey">;
63
+ export declare const GenreAddedEvent: MoveStruct<{
64
+ release_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
65
+ genre_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
66
+ }, "@local-pkg/release_genre::release_genre::GenreAddedEvent">;
67
+ export declare const GenreRemovedEvent: MoveStruct<{
68
+ release_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
69
+ genre_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
70
+ }, "@local-pkg/release_genre::release_genre::GenreRemovedEvent">;
71
+ export declare const GenresClearedEvent: MoveStruct<{
72
+ release_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
73
+ }, "@local-pkg/release_genre::release_genre::GenresClearedEvent">;
74
+ export interface AddGenreArguments {
75
+ self: RawTransactionArgument<string>;
76
+ cap: RawTransactionArgument<string>;
77
+ genre: RawTransactionArgument<string>;
78
+ }
79
+ export interface AddGenreOptions {
80
+ package?: string;
81
+ arguments: AddGenreArguments | [
82
+ self: RawTransactionArgument<string>,
83
+ cap: RawTransactionArgument<string>,
84
+ genre: RawTransactionArgument<string>
85
+ ];
86
+ }
87
+ /**
88
+ * Appends a genre to the release's list. Creates the field on first use, in which
89
+ * case that genre becomes the primary by being the only entry. Aborts
90
+ * `EDuplicateGenre` if the genre is already present, `EMaxGenres` if the release
91
+ * is already at capacity.
92
+ */
93
+ export declare function addGenre(options: AddGenreOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
94
+ export interface RemoveGenreArguments {
95
+ self: RawTransactionArgument<string>;
96
+ cap: RawTransactionArgument<string>;
97
+ genreId: RawTransactionArgument<string>;
98
+ }
99
+ export interface RemoveGenreOptions {
100
+ package?: string;
101
+ arguments: RemoveGenreArguments | [
102
+ self: RawTransactionArgument<string>,
103
+ cap: RawTransactionArgument<string>,
104
+ genreId: RawTransactionArgument<string>
105
+ ];
106
+ }
107
+ /**
108
+ * Removes a genre from the release by id. If it was the primary, the next entry
109
+ * (if any) becomes primary by virtue of now sitting at index 0. Removing the last
110
+ * genre drops the field entirely and additionally emits `GenresClearedEvent`.
111
+ * Aborts `EGenreNotPresent` if the genre is not currently assigned, including when
112
+ * the release has no genres at all.
113
+ */
114
+ export declare function removeGenre(options: RemoveGenreOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
115
+ export interface ClearGenresArguments {
116
+ self: RawTransactionArgument<string>;
117
+ cap: RawTransactionArgument<string>;
118
+ }
119
+ export interface ClearGenresOptions {
120
+ package?: string;
121
+ arguments: ClearGenresArguments | [
122
+ self: RawTransactionArgument<string>,
123
+ cap: RawTransactionArgument<string>
124
+ ];
125
+ }
126
+ /**
127
+ * Removes the release's entire genre list. A no-op when nothing is attached. Emits
128
+ * `GenresClearedEvent` only when a list was actually removed.
129
+ */
130
+ export declare function clearGenres(options: ClearGenresOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
131
+ export interface GenresArguments {
132
+ self: RawTransactionArgument<string>;
133
+ }
134
+ export interface GenresOptions {
135
+ package?: string;
136
+ arguments: GenresArguments | [
137
+ self: RawTransactionArgument<string>
138
+ ];
139
+ }
140
+ /**
141
+ * The release's genre ids, in order, primary first. Empty when nothing is
142
+ * attached.
143
+ */
144
+ export declare function genres(options: GenresOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
145
+ //# sourceMappingURL=release_genre.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release_genre.d.ts","sourceRoot":"","sources":["../../../src/contracts/release_genre/release_genre.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAA0B,KAAK,sBAAsB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C,OAAO,EAAE,kBAAkB,QAQvC,WAAW,0DAM1B;AACD,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACrC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACvC;AACD,MAAM,WAAW,kBAAkB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,oBAAoB,GAAG;QAC9B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACpC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACtC,CAAC;CACL;AACD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,kBAAkB,QAOvC,WAAW,0DAM1B;AACD,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACxC;AACD,MAAM,WAAW,aAAa;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,eAAe,GAAG;QACzB,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;CACL;AACD;;;GAGG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,aAAa,QAM7B,WAAW,0DAM1B"}
@@ -0,0 +1,154 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * The genre(s) a musicos `Release` is classified under, stored as a dynamic field
6
+ * on the release's UID and written through its cap-gated `uid_mut`.
7
+ *
8
+ * Genre is intrinsic to a recording — a fact about the master, not about any one
9
+ * product it appears on — so a recording's own genre lives in the sibling package
10
+ * `recording_genre`, on the recording itself. This package carries the different
11
+ * claim: what a release, as a released product, is classified as. A compilation
12
+ * can be "Jazz" on the shelf even when half its tracks are Blues or Funk on their
13
+ * own terms; that classification belongs to nobody but the release, and no amount
14
+ * of inspecting its recordings derives it. The intended read order for a track's
15
+ * genre is the recording's own (`recording_genre`), falling back to this release's
16
+ * primary when the recording has none — the release is the product-level default,
17
+ * not a per-track override, because a `Recording` carries no back-reference to any
18
+ * release and one recording can appear on many.
19
+ *
20
+ * Its own package, for the same reason genre is separated from every other release
21
+ * fact: it is set by different people, at different times, under a vocabulary (the
22
+ * shared `genre` registry) that evolves on its own schedule. A consumer building a
23
+ * metadata profile picks this extension up or ignores it, and revising it never
24
+ * disturbs anything else the release carries.
25
+ *
26
+ * Genres are kept as one ordered list, primary first, rather than a primary field
27
+ * plus a separate secondary set. A release either has a primary genre or it has no
28
+ * genre assignment at all — there is no state where secondaries exist without a
29
+ * primary, or where the primary and a secondary are the same entry needing to be
30
+ * kept disjoint — so the two structures collapse to one without losing anything
31
+ * the list needs to say. Reordering — including promoting an existing entry to
32
+ * primary — is `clear_genres` followed by `add_genre` in the desired order,
33
+ * atomically within one programmable transaction block. That is preferable to a
34
+ * dedicated set-primary function: one fewer function to review and keep in sync
35
+ * with `recording_genre`, no conditional-capacity branch (insert-new-at-front vs.
36
+ * move-existing-to- front), and the client expresses its intended final order
37
+ * directly instead of encoding it as a sequence of promotions. Order beyond index
38
+ * 0 is the caller's, in the same convention `recording_language` uses for its
39
+ * language vector: first is authoritative, the rest are unranked.
40
+ *
41
+ * The stored value is a bare `vector<ID>` under the package's own key, with no
42
+ * wrapper struct — the same shape `party_genre` uses for its `VecSet<ID>` and
43
+ * `recording_language` for its `vector<LanguageCode>`. The list is non-empty by
44
+ * construction: `remove_genre` drops the field the moment the last entry leaves,
45
+ * so "the field exists" and "there is a primary" are the same fact and no reader
46
+ * has to handle an attached-but-empty case. Every write takes `&Genre`, so only an
47
+ * id that the shared vocabulary actually minted can ever enter the list; removal
48
+ * takes a bare `ID` because nothing about proving membership is needed to take an
49
+ * entry back out.
50
+ *
51
+ * This module exposes no function derivable by composing the others. This package
52
+ * is never upgraded — every publish is a fresh identity at a fresh address — so
53
+ * every public function is permanent surface: once live, it must be carried,
54
+ * re-published, and re-audited for as long as the package is in use. A predicate
55
+ * or accessor a caller can compute from `genres()` earns nothing by also living
56
+ * on-chain. Concretely: emptiness is `genres(release).is_empty()`, and the primary
57
+ * is `genres(release)[0]` (valid whenever the vector is non-empty, by the
58
+ * non-empty-by-construction invariant above).
59
+ */
60
+ import { MoveTuple, MoveStruct, normalizeMoveArguments } from '../utils/index.js';
61
+ import { bcs } from '@mysten/sui/bcs';
62
+ import {} from '@mysten/sui/transactions';
63
+ const $moduleName = '@local-pkg/release_genre::release_genre';
64
+ export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
65
+ export const GenreAddedEvent = new MoveStruct({ name: `${$moduleName}::GenreAddedEvent`, fields: {
66
+ release_id: bcs.Address,
67
+ genre_id: bcs.Address
68
+ } });
69
+ export const GenreRemovedEvent = new MoveStruct({ name: `${$moduleName}::GenreRemovedEvent`, fields: {
70
+ release_id: bcs.Address,
71
+ genre_id: bcs.Address
72
+ } });
73
+ export const GenresClearedEvent = new MoveStruct({ name: `${$moduleName}::GenresClearedEvent`, fields: {
74
+ release_id: bcs.Address
75
+ } });
76
+ /**
77
+ * Appends a genre to the release's list. Creates the field on first use, in which
78
+ * case that genre becomes the primary by being the only entry. Aborts
79
+ * `EDuplicateGenre` if the genre is already present, `EMaxGenres` if the release
80
+ * is already at capacity.
81
+ */
82
+ export function addGenre(options) {
83
+ const packageAddress = options.package ?? '@local-pkg/release_genre';
84
+ const argumentsTypes = [
85
+ null,
86
+ null,
87
+ null
88
+ ];
89
+ const parameterNames = ["self", "cap", "genre"];
90
+ return (tx) => tx.moveCall({
91
+ package: packageAddress,
92
+ module: 'release_genre',
93
+ function: 'add_genre',
94
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
95
+ });
96
+ }
97
+ /**
98
+ * Removes a genre from the release by id. If it was the primary, the next entry
99
+ * (if any) becomes primary by virtue of now sitting at index 0. Removing the last
100
+ * genre drops the field entirely and additionally emits `GenresClearedEvent`.
101
+ * Aborts `EGenreNotPresent` if the genre is not currently assigned, including when
102
+ * the release has no genres at all.
103
+ */
104
+ export function removeGenre(options) {
105
+ const packageAddress = options.package ?? '@local-pkg/release_genre';
106
+ const argumentsTypes = [
107
+ null,
108
+ null,
109
+ '0x2::object::ID'
110
+ ];
111
+ const parameterNames = ["self", "cap", "genreId"];
112
+ return (tx) => tx.moveCall({
113
+ package: packageAddress,
114
+ module: 'release_genre',
115
+ function: 'remove_genre',
116
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
117
+ });
118
+ }
119
+ /**
120
+ * Removes the release's entire genre list. A no-op when nothing is attached. Emits
121
+ * `GenresClearedEvent` only when a list was actually removed.
122
+ */
123
+ export function clearGenres(options) {
124
+ const packageAddress = options.package ?? '@local-pkg/release_genre';
125
+ const argumentsTypes = [
126
+ null,
127
+ null
128
+ ];
129
+ const parameterNames = ["self", "cap"];
130
+ return (tx) => tx.moveCall({
131
+ package: packageAddress,
132
+ module: 'release_genre',
133
+ function: 'clear_genres',
134
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
135
+ });
136
+ }
137
+ /**
138
+ * The release's genre ids, in order, primary first. Empty when nothing is
139
+ * attached.
140
+ */
141
+ export function genres(options) {
142
+ const packageAddress = options.package ?? '@local-pkg/release_genre';
143
+ const argumentsTypes = [
144
+ null
145
+ ];
146
+ const parameterNames = ["self"];
147
+ return (tx) => tx.moveCall({
148
+ package: packageAddress,
149
+ module: 'release_genre',
150
+ function: 'genres',
151
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
152
+ });
153
+ }
154
+ //# sourceMappingURL=release_genre.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release_genre.js","sourceRoot":"","sources":["../../../src/contracts/release_genre/release_genre.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAEH,OAAO,EAAE,SAAS,E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;;;GAGG;AACH,MAAM,UAAU,MAAM,CAAC,OAAsB;IACzC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,0BAA0B,CAAC;IACrE,MAAM,cAAc,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,eAAe;QACvB,QAAQ,EAAE,QAAQ;QAClB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,98 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * What a release calls itself — "Album", "EP", "Mixtape", "Split" — asserted by
6
+ * whoever holds the release's admin cap, and believed.
7
+ *
8
+ * Deliberately a free string rather than an enum. An enum would not decide the
9
+ * classification (the admin still picks) but it would decide the _menu_, and
10
+ * deciding which self-descriptions are legitimate is not the protocol's job.
11
+ * Artists release beat tapes and splits and things nobody has named yet; a closed
12
+ * set would make each of those a package swap, and in the meantime would quietly
13
+ * push releases into whichever official-looking box fit worst.
14
+ *
15
+ * Nothing here derives the value or checks it for plausibility. A four-track
16
+ * release may call itself an Album and a twelve-track one an EP; both happen, and
17
+ * the artist's intent is the fact worth recording. The only checks are structural
18
+ * — non-empty and bounded — so the field stays storable.
19
+ *
20
+ * This is the opposite call from `release_genre`, on purpose. Genre is a curated
21
+ * vocabulary because discovery and reward-eligibility depend on releases agreeing
22
+ * with each other about what a genre _is_. Nothing depends on two releases
23
+ * agreeing about what an EP is.
24
+ *
25
+ * The cost of that freedom lands on readers: "EP", "ep" and "Extended Play" are
26
+ * three distinct values here. Clients that group or facet by kind should normalise
27
+ * (case-fold at minimum) rather than expect canonical strings.
28
+ */
29
+ import { MoveTuple, MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
30
+ import { type Transaction } from '@mysten/sui/transactions';
31
+ export declare const ExtensionKey: MoveTuple<readonly [import("@mysten/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/release_kind::release_kind::ExtensionKey">;
32
+ export declare const KindSetEvent: MoveStruct<{
33
+ release_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
34
+ kind: import("@mysten/bcs").BcsType<string, string, "string">;
35
+ }, "@local-pkg/release_kind::release_kind::KindSetEvent">;
36
+ export declare const KindUnsetEvent: MoveStruct<{
37
+ release_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
38
+ }, "@local-pkg/release_kind::release_kind::KindUnsetEvent">;
39
+ export interface SetKindArguments {
40
+ self: RawTransactionArgument<string>;
41
+ cap: RawTransactionArgument<string>;
42
+ kind: RawTransactionArgument<string>;
43
+ }
44
+ export interface SetKindOptions {
45
+ package?: string;
46
+ arguments: SetKindArguments | [
47
+ self: RawTransactionArgument<string>,
48
+ cap: RawTransactionArgument<string>,
49
+ kind: RawTransactionArgument<string>
50
+ ];
51
+ }
52
+ /**
53
+ * Sets (or replaces) what the release calls itself.
54
+ *
55
+ * The string is stored exactly as given, including case — it is the release's own
56
+ * word for itself, and normalising it here would be the protocol having an opinion
57
+ * after all.
58
+ */
59
+ export declare function setKind(options: SetKindOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
60
+ export interface UnsetKindArguments {
61
+ self: RawTransactionArgument<string>;
62
+ cap: RawTransactionArgument<string>;
63
+ }
64
+ export interface UnsetKindOptions {
65
+ package?: string;
66
+ arguments: UnsetKindArguments | [
67
+ self: RawTransactionArgument<string>,
68
+ cap: RawTransactionArgument<string>
69
+ ];
70
+ }
71
+ /**
72
+ * Removes the kind, if any. Idempotent. Leaves the release having said nothing
73
+ * about what it is, which is a different state from calling itself anything.
74
+ */
75
+ export declare function unsetKind(options: UnsetKindOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
76
+ export interface HasKindArguments {
77
+ self: RawTransactionArgument<string>;
78
+ }
79
+ export interface HasKindOptions {
80
+ package?: string;
81
+ arguments: HasKindArguments | [
82
+ self: RawTransactionArgument<string>
83
+ ];
84
+ }
85
+ /** Whether a kind is attached to this release. */
86
+ export declare function hasKind(options: HasKindOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
87
+ export interface KindArguments {
88
+ self: RawTransactionArgument<string>;
89
+ }
90
+ export interface KindOptions {
91
+ package?: string;
92
+ arguments: KindArguments | [
93
+ self: RawTransactionArgument<string>
94
+ ];
95
+ }
96
+ /** What the release calls itself. Aborts if nothing is attached. */
97
+ export declare function kind(options: KindOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
98
+ //# sourceMappingURL=release_kind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release_kind.d.ts","sourceRoot":"","sources":["../../../src/contracts/release_kind/release_kind.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAG/G,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,YAAY,sIAAgF,CAAC;AAC1G,eAAO,MAAM,YAAY;;;yDAGjB,CAAC;AACT,eAAO,MAAM,cAAc;;2DAEnB,CAAC;AACT,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACrC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACxC;AACD,MAAM,WAAW,cAAc;IAC3B,OAAO,CAAC,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;KACvC,CAAC;CACL;AACD,oEAAoE;AACpE,wBAAgB,IAAI,CAAC,OAAO,EAAE,WAAW,QAMzB,WAAW,0DAM1B"}
@@ -0,0 +1,109 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * What a release calls itself — "Album", "EP", "Mixtape", "Split" — asserted by
6
+ * whoever holds the release's admin cap, and believed.
7
+ *
8
+ * Deliberately a free string rather than an enum. An enum would not decide the
9
+ * classification (the admin still picks) but it would decide the _menu_, and
10
+ * deciding which self-descriptions are legitimate is not the protocol's job.
11
+ * Artists release beat tapes and splits and things nobody has named yet; a closed
12
+ * set would make each of those a package swap, and in the meantime would quietly
13
+ * push releases into whichever official-looking box fit worst.
14
+ *
15
+ * Nothing here derives the value or checks it for plausibility. A four-track
16
+ * release may call itself an Album and a twelve-track one an EP; both happen, and
17
+ * the artist's intent is the fact worth recording. The only checks are structural
18
+ * — non-empty and bounded — so the field stays storable.
19
+ *
20
+ * This is the opposite call from `release_genre`, on purpose. Genre is a curated
21
+ * vocabulary because discovery and reward-eligibility depend on releases agreeing
22
+ * with each other about what a genre _is_. Nothing depends on two releases
23
+ * agreeing about what an EP is.
24
+ *
25
+ * The cost of that freedom lands on readers: "EP", "ep" and "Extended Play" are
26
+ * three distinct values here. Clients that group or facet by kind should normalise
27
+ * (case-fold at minimum) rather than expect canonical strings.
28
+ */
29
+ import { MoveTuple, MoveStruct, normalizeMoveArguments } from '../utils/index.js';
30
+ import { bcs } from '@mysten/sui/bcs';
31
+ import {} from '@mysten/sui/transactions';
32
+ const $moduleName = '@local-pkg/release_kind::release_kind';
33
+ export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
34
+ export const KindSetEvent = new MoveStruct({ name: `${$moduleName}::KindSetEvent`, fields: {
35
+ release_id: bcs.Address,
36
+ kind: bcs.string()
37
+ } });
38
+ export const KindUnsetEvent = new MoveStruct({ name: `${$moduleName}::KindUnsetEvent`, fields: {
39
+ release_id: bcs.Address
40
+ } });
41
+ /**
42
+ * Sets (or replaces) what the release calls itself.
43
+ *
44
+ * The string is stored exactly as given, including case — it is the release's own
45
+ * word for itself, and normalising it here would be the protocol having an opinion
46
+ * after all.
47
+ */
48
+ export function setKind(options) {
49
+ const packageAddress = options.package ?? '@local-pkg/release_kind';
50
+ const argumentsTypes = [
51
+ null,
52
+ null,
53
+ '0x1::string::String'
54
+ ];
55
+ const parameterNames = ["self", "cap", "kind"];
56
+ return (tx) => tx.moveCall({
57
+ package: packageAddress,
58
+ module: 'release_kind',
59
+ function: 'set_kind',
60
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
61
+ });
62
+ }
63
+ /**
64
+ * Removes the kind, if any. Idempotent. Leaves the release having said nothing
65
+ * about what it is, which is a different state from calling itself anything.
66
+ */
67
+ export function unsetKind(options) {
68
+ const packageAddress = options.package ?? '@local-pkg/release_kind';
69
+ const argumentsTypes = [
70
+ null,
71
+ null
72
+ ];
73
+ const parameterNames = ["self", "cap"];
74
+ return (tx) => tx.moveCall({
75
+ package: packageAddress,
76
+ module: 'release_kind',
77
+ function: 'unset_kind',
78
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
79
+ });
80
+ }
81
+ /** Whether a kind is attached to this release. */
82
+ export function hasKind(options) {
83
+ const packageAddress = options.package ?? '@local-pkg/release_kind';
84
+ const argumentsTypes = [
85
+ null
86
+ ];
87
+ const parameterNames = ["self"];
88
+ return (tx) => tx.moveCall({
89
+ package: packageAddress,
90
+ module: 'release_kind',
91
+ function: 'has_kind',
92
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
93
+ });
94
+ }
95
+ /** What the release calls itself. Aborts if nothing is attached. */
96
+ export function kind(options) {
97
+ const packageAddress = options.package ?? '@local-pkg/release_kind';
98
+ const argumentsTypes = [
99
+ null
100
+ ];
101
+ const parameterNames = ["self"];
102
+ return (tx) => tx.moveCall({
103
+ package: packageAddress,
104
+ module: 'release_kind',
105
+ function: 'kind',
106
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
107
+ });
108
+ }
109
+ //# sourceMappingURL=release_kind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release_kind.js","sourceRoot":"","sources":["../../../src/contracts/release_kind/release_kind.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AAC/G,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,OAAO,EAAoB,MAAM,0BAA0B,CAAC;AAC5D,MAAM,WAAW,GAAG,uCAAuC,CAAC;AAC5D,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,gBAAgB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;AAC1G,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,gBAAgB,EAAE,MAAM,EAAE;QACnF,UAAU,EAAE,GAAG,CAAC,OAAO;QACvB,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE;KACrB,EAAE,CAAC,CAAC;AACT,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,kBAAkB,EAAE,MAAM,EAAE;QACvF,UAAU,EAAE,GAAG,CAAC,OAAO;KAC1B,EAAE,CAAC,CAAC;AAcT;;;;;;GAMG;AACH,MAAM,UAAU,OAAO,CAAC,OAAuB;IAC3C,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,yBAAyB,CAAC;IACpE,MAAM,cAAc,GAAG;QACnB,IAAI;Q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,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAUD,oEAAoE;AACpE,MAAM,UAAU,IAAI,CAAC,OAAoB;IACrC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,yBAAyB,CAAC;IACpE,MAAM,cAAc,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,cAAc;QACtB,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,91 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * Raw-cap Release revenue actions.
6
+ *
7
+ * Revenue is split from the immutable Release tracklist and sent to the
8
+ * corresponding Recording addresses. Callers select only funds already held by the
9
+ * Release; they cannot select recipients or alter split amounts.
10
+ */
11
+ import { MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
12
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
13
+ export declare const ReleaseTrackRevenueDistributedEvent: MoveStruct<{
14
+ release_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
15
+ track_index: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
16
+ recording_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
17
+ amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
18
+ }, "@local-pkg/release_revenue_distributor::release_revenue_distributor::ReleaseTrackRevenueDistributedEvent<phantom Currency>">;
19
+ export declare const ReleaseRevenueDistributedEvent: MoveStruct<{
20
+ release_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
21
+ total_input: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
22
+ total_distributed: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
23
+ remainder: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
24
+ }, "@local-pkg/release_revenue_distributor::release_revenue_distributor::ReleaseRevenueDistributedEvent<phantom Currency>">;
25
+ export interface RedeemAndDistributeArguments {
26
+ release: RawTransactionArgument<string>;
27
+ adminCap: RawTransactionArgument<string>;
28
+ value: RawTransactionArgument<number | bigint>;
29
+ }
30
+ export interface RedeemAndDistributeOptions {
31
+ package?: string;
32
+ arguments: RedeemAndDistributeArguments | [
33
+ release: RawTransactionArgument<string>,
34
+ adminCap: RawTransactionArgument<string>,
35
+ value: RawTransactionArgument<number | bigint>
36
+ ];
37
+ typeArguments: [
38
+ string
39
+ ];
40
+ }
41
+ /**
42
+ * Redeem `value` from the Release accumulator and distribute it according to the
43
+ * immutable tracklist.
44
+ */
45
+ export declare function redeemAndDistribute(options: RedeemAndDistributeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
46
+ export interface RedeemAllAndDistributeArguments {
47
+ release: RawTransactionArgument<string>;
48
+ adminCap: RawTransactionArgument<string>;
49
+ }
50
+ export interface RedeemAllAndDistributeOptions {
51
+ package?: string;
52
+ arguments: RedeemAllAndDistributeArguments | [
53
+ release: RawTransactionArgument<string>,
54
+ adminCap: RawTransactionArgument<string>
55
+ ];
56
+ typeArguments: [
57
+ string
58
+ ];
59
+ }
60
+ /**
61
+ * Redeem all Release funds settled at the start of the current consensus commit
62
+ * and distribute them according to the immutable tracklist.
63
+ *
64
+ * The framework snapshot is capped at `u64::MAX`; excess funds, newly sent funds,
65
+ * and per-track flooring remainder settle for a later call. This fixed crank
66
+ * prevents permissionless adapters from selecting dust-sized fragments. A zero
67
+ * settled snapshot is an idempotent no-op.
68
+ */
69
+ export declare function redeemAllAndDistribute(options: RedeemAllAndDistributeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
70
+ export interface ReceiveAndDistributeArguments {
71
+ release: RawTransactionArgument<string>;
72
+ adminCap: RawTransactionArgument<string>;
73
+ coins: TransactionArgument;
74
+ }
75
+ export interface ReceiveAndDistributeOptions {
76
+ package?: string;
77
+ arguments: ReceiveAndDistributeArguments | [
78
+ release: RawTransactionArgument<string>,
79
+ adminCap: RawTransactionArgument<string>,
80
+ coins: TransactionArgument
81
+ ];
82
+ typeArguments: [
83
+ string
84
+ ];
85
+ }
86
+ /**
87
+ * Receive selected coins sent to the Release and distribute their combined value
88
+ * according to the immutable tracklist.
89
+ */
90
+ export declare function receiveAndDistribute(options: ReceiveAndDistributeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
91
+ //# sourceMappingURL=release_revenue_distributor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release_revenue_distributor.d.ts","sourceRoot":"","sources":["../../../src/contracts/release_revenue_distributor/release_revenue_distributor.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAGpG,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEtF,eAAO,MAAM,mCAAmC;;;;;gIAKxC,CAAC;AACT,eAAO,MAAM,8BAA8B;;;;;2HAKnC,CAAC;AACT,MAAM,WAAW,4BAA4B;IACzC,OAAO,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACxC,QAAQ,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACzC,KAAK,EAAE,sBAAsB,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CAClD;AACD,MAAM,WAAW,0BAA0B;IACvC,OAAO,CAAC,EA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