@misofm/platform 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +125 -57
- package/dist/catalog.d.ts +1 -1
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +1 -1
- package/dist/catalog.js.map +1 -1
- package/dist/client.d.ts +107 -97
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +59 -39
- package/dist/client.js.map +1 -1
- package/dist/contracts/composition_credits/composition_credits.d.ts +181 -0
- package/dist/contracts/composition_credits/composition_credits.d.ts.map +1 -0
- package/dist/contracts/composition_credits/composition_credits.js +109 -0
- package/dist/contracts/composition_credits/composition_credits.js.map +1 -0
- package/dist/contracts/composition_credits/composition_party_role.d.ts +119 -0
- package/dist/contracts/composition_credits/composition_party_role.d.ts.map +1 -0
- package/dist/contracts/composition_credits/composition_party_role.js +139 -0
- package/dist/contracts/composition_credits/composition_party_role.js.map +1 -0
- package/dist/contracts/composition_credits/deps/credit/credit.d.ts +24 -0
- package/dist/contracts/composition_credits/deps/credit/credit.d.ts.map +1 -0
- package/dist/contracts/composition_credits/deps/credit/credit.js +23 -0
- package/dist/contracts/composition_credits/deps/credit/credit.js.map +1 -0
- package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/composition_credits/deps/sui/vec_map.js +28 -0
- package/dist/contracts/composition_credits/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts +143 -0
- package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts.map +1 -0
- package/dist/contracts/composition_routed_stake/composition_routed_stake.js +125 -0
- package/dist/contracts/composition_routed_stake/composition_routed_stake.js.map +1 -0
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts +93 -0
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +1 -0
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +86 -0
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js.map +1 -0
- package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.d.ts +90 -0
- package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.d.ts.map +1 -0
- package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.js +85 -0
- package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.js.map +1 -0
- package/dist/contracts/composition_royalty_pool_plugin/witness.d.ts +6 -0
- package/dist/contracts/composition_royalty_pool_plugin/witness.d.ts.map +1 -0
- package/dist/contracts/composition_royalty_pool_plugin/witness.js +8 -0
- package/dist/contracts/composition_royalty_pool_plugin/witness.js.map +1 -0
- package/dist/contracts/cover_art/cover_art.d.ts +83 -0
- package/dist/contracts/cover_art/cover_art.d.ts.map +1 -0
- package/dist/contracts/cover_art/cover_art.js +66 -0
- package/dist/contracts/cover_art/cover_art.js.map +1 -0
- package/dist/contracts/cover_art/deps/ori/confidentiality.d.ts +24 -0
- package/dist/contracts/cover_art/deps/ori/confidentiality.d.ts.map +1 -0
- package/dist/contracts/cover_art/deps/ori/confidentiality.js +24 -0
- package/dist/contracts/cover_art/deps/ori/confidentiality.js.map +1 -0
- package/dist/contracts/cover_art/deps/ori/data.d.ts +16 -0
- package/dist/contracts/cover_art/deps/ori/data.d.ts.map +1 -0
- package/dist/contracts/cover_art/deps/ori/data.js +12 -0
- package/dist/contracts/cover_art/deps/ori/data.js.map +1 -0
- package/dist/contracts/genre/genre.d.ts +78 -0
- package/dist/contracts/genre/genre.d.ts.map +1 -0
- package/dist/contracts/genre/genre.js +87 -0
- package/dist/contracts/genre/genre.js.map +1 -0
- package/dist/contracts/party_cta/party_cta.d.ts +120 -0
- package/dist/contracts/party_cta/party_cta.d.ts.map +1 -0
- package/dist/contracts/party_cta/party_cta.js +139 -0
- package/dist/contracts/party_cta/party_cta.js.map +1 -0
- package/dist/contracts/party_genre/party_genre.d.ts +117 -0
- package/dist/contracts/party_genre/party_genre.d.ts.map +1 -0
- package/dist/contracts/party_genre/party_genre.js +131 -0
- package/dist/contracts/party_genre/party_genre.js.map +1 -0
- package/dist/contracts/party_media/party_media.d.ts +86 -0
- package/dist/contracts/party_media/party_media.d.ts.map +1 -0
- package/dist/contracts/party_media/party_media.js +97 -0
- package/dist/contracts/party_media/party_media.js.map +1 -0
- package/dist/contracts/party_music/party_music.d.ts +209 -0
- package/dist/contracts/party_music/party_music.d.ts.map +1 -0
- package/dist/contracts/party_music/party_music.js +259 -0
- package/dist/contracts/party_music/party_music.js.map +1 -0
- package/dist/contracts/party_platform_link/party_platform_link.d.ts +89 -0
- package/dist/contracts/party_platform_link/party_platform_link.d.ts.map +1 -0
- package/dist/contracts/party_platform_link/party_platform_link.js +92 -0
- package/dist/contracts/party_platform_link/party_platform_link.js.map +1 -0
- package/dist/contracts/party_pro_link/party_pro_link.d.ts +233 -0
- package/dist/contracts/party_pro_link/party_pro_link.d.ts.map +1 -0
- package/dist/contracts/party_pro_link/party_pro_link.js +289 -0
- package/dist/contracts/party_pro_link/party_pro_link.js.map +1 -0
- package/dist/contracts/party_profile/deps/country_code/country_code.d.ts +15 -0
- package/dist/contracts/party_profile/deps/country_code/country_code.d.ts.map +1 -0
- package/dist/contracts/party_profile/deps/country_code/country_code.js +17 -0
- package/dist/contracts/party_profile/deps/country_code/country_code.js.map +1 -0
- package/dist/contracts/party_profile/deps/language_code/language_code.d.ts +6 -0
- package/dist/contracts/party_profile/deps/language_code/language_code.d.ts.map +1 -0
- package/dist/contracts/party_profile/deps/language_code/language_code.js +8 -0
- package/dist/contracts/party_profile/deps/language_code/language_code.js.map +1 -0
- package/dist/contracts/party_profile/party_profile.d.ts +133 -0
- package/dist/contracts/party_profile/party_profile.d.ts.map +1 -0
- package/dist/contracts/party_profile/party_profile.js +153 -0
- package/dist/contracts/party_profile/party_profile.js.map +1 -0
- package/dist/contracts/party_roles/party_roles.d.ts +201 -0
- package/dist/contracts/party_roles/party_roles.d.ts.map +1 -0
- package/dist/contracts/party_roles/party_roles.js +237 -0
- package/dist/contracts/party_roles/party_roles.js.map +1 -0
- package/dist/contracts/party_social/party_social.d.ts +258 -0
- package/dist/contracts/party_social/party_social.d.ts.map +1 -0
- package/dist/contracts/party_social/party_social.js +320 -0
- package/dist/contracts/party_social/party_social.js.map +1 -0
- package/dist/contracts/party_tags/party_tags.d.ts +116 -0
- package/dist/contracts/party_tags/party_tags.d.ts.map +1 -0
- package/dist/contracts/party_tags/party_tags.js +130 -0
- package/dist/contracts/party_tags/party_tags.js.map +1 -0
- package/dist/contracts/party_wallet/party_wallet.d.ts +112 -0
- package/dist/contracts/party_wallet/party_wallet.d.ts.map +1 -0
- package/dist/contracts/party_wallet/party_wallet.js +114 -0
- package/dist/contracts/party_wallet/party_wallet.js.map +1 -0
- package/dist/contracts/record/deps/std/type_name.d.ts +18 -0
- package/dist/contracts/record/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/record/deps/std/type_name.js +20 -0
- package/dist/contracts/record/deps/std/type_name.js.map +1 -0
- package/dist/contracts/record/deps/sui/vec_set.d.ts +21 -0
- package/dist/contracts/record/deps/sui/vec_set.d.ts.map +1 -0
- package/dist/contracts/record/deps/sui/vec_set.js +20 -0
- package/dist/contracts/record/deps/sui/vec_set.js.map +1 -0
- package/dist/contracts/record/pressing.d.ts +327 -0
- package/dist/contracts/record/pressing.d.ts.map +1 -0
- package/dist/contracts/record/pressing.js +345 -0
- package/dist/contracts/record/pressing.js.map +1 -0
- package/dist/contracts/record/record.d.ts +190 -0
- package/dist/contracts/record/record.d.ts.map +1 -0
- package/dist/contracts/record/record.js +226 -0
- package/dist/contracts/record/record.js.map +1 -0
- package/dist/contracts/record_shop/deps/std/type_name.d.ts +18 -0
- package/dist/contracts/record_shop/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/record_shop/deps/std/type_name.js +20 -0
- package/dist/contracts/record_shop/deps/std/type_name.js.map +1 -0
- package/dist/contracts/record_shop/listing.d.ts +387 -0
- package/dist/contracts/record_shop/listing.d.ts.map +1 -0
- package/dist/contracts/record_shop/listing.js +380 -0
- package/dist/contracts/record_shop/listing.js.map +1 -0
- package/dist/contracts/record_shop/witness.d.ts +7 -0
- package/dist/contracts/record_shop/witness.d.ts.map +1 -0
- package/dist/contracts/record_shop/witness.js +9 -0
- package/dist/contracts/record_shop/witness.js.map +1 -0
- package/dist/contracts/recording_advisory/recording_advisory.d.ts +194 -0
- package/dist/contracts/recording_advisory/recording_advisory.d.ts.map +1 -0
- package/dist/contracts/recording_advisory/recording_advisory.js +204 -0
- package/dist/contracts/recording_advisory/recording_advisory.js.map +1 -0
- package/dist/contracts/recording_credits/deps/credit/credit.d.ts +24 -0
- package/dist/contracts/recording_credits/deps/credit/credit.d.ts.map +1 -0
- package/dist/contracts/recording_credits/deps/credit/credit.js +23 -0
- package/dist/contracts/recording_credits/deps/credit/credit.js.map +1 -0
- package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/recording_credits/deps/sui/vec_map.js +28 -0
- package/dist/contracts/recording_credits/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts +21 -0
- package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts.map +1 -0
- package/dist/contracts/recording_credits/deps/sui/vec_set.js +20 -0
- package/dist/contracts/recording_credits/deps/sui/vec_set.js.map +1 -0
- package/dist/contracts/recording_credits/recording_credits.d.ts +2313 -0
- package/dist/contracts/recording_credits/recording_credits.d.ts.map +1 -0
- package/dist/contracts/recording_credits/recording_credits.js +270 -0
- package/dist/contracts/recording_credits/recording_credits.js.map +1 -0
- package/dist/contracts/recording_credits/recording_party_role.d.ts +1174 -0
- package/dist/contracts/recording_credits/recording_party_role.d.ts.map +1 -0
- package/dist/contracts/recording_credits/recording_party_role.js +692 -0
- package/dist/contracts/recording_credits/recording_party_role.js.map +1 -0
- package/dist/contracts/recording_engine_session/deps/ori/confidentiality.d.ts +24 -0
- package/dist/contracts/recording_engine_session/deps/ori/confidentiality.d.ts.map +1 -0
- package/dist/contracts/recording_engine_session/deps/ori/confidentiality.js +24 -0
- package/dist/contracts/recording_engine_session/deps/ori/confidentiality.js.map +1 -0
- package/dist/contracts/recording_engine_session/deps/ori/data.d.ts +16 -0
- package/dist/contracts/recording_engine_session/deps/ori/data.d.ts.map +1 -0
- package/dist/contracts/recording_engine_session/deps/ori/data.js +12 -0
- package/dist/contracts/recording_engine_session/deps/ori/data.js.map +1 -0
- package/dist/contracts/recording_engine_session/recording_engine_session.d.ts +296 -0
- package/dist/contracts/recording_engine_session/recording_engine_session.d.ts.map +1 -0
- package/dist/contracts/recording_engine_session/recording_engine_session.js +216 -0
- package/dist/contracts/recording_engine_session/recording_engine_session.js.map +1 -0
- package/dist/contracts/recording_genre/recording_genre.d.ts +173 -0
- package/dist/contracts/recording_genre/recording_genre.d.ts.map +1 -0
- package/dist/contracts/recording_genre/recording_genre.js +170 -0
- package/dist/contracts/recording_genre/recording_genre.js.map +1 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.d.ts +6 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.d.ts.map +1 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.js +8 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.js.map +1 -0
- package/dist/contracts/recording_language/recording_language.d.ts +152 -0
- package/dist/contracts/recording_language/recording_language.d.ts.map +1 -0
- package/dist/contracts/recording_language/recording_language.js +149 -0
- package/dist/contracts/recording_language/recording_language.js.map +1 -0
- package/dist/contracts/recording_master_reference/deps/ori/confidentiality.d.ts +24 -0
- package/dist/contracts/recording_master_reference/deps/ori/confidentiality.d.ts.map +1 -0
- package/dist/contracts/recording_master_reference/deps/ori/confidentiality.js +24 -0
- package/dist/contracts/recording_master_reference/deps/ori/confidentiality.js.map +1 -0
- package/dist/contracts/recording_master_reference/deps/ori/data.d.ts +16 -0
- package/dist/contracts/recording_master_reference/deps/ori/data.d.ts.map +1 -0
- package/dist/contracts/recording_master_reference/deps/ori/data.js +12 -0
- package/dist/contracts/recording_master_reference/deps/ori/data.js.map +1 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.d.ts +129 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.d.ts.map +1 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.js +119 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.js.map +1 -0
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts +96 -0
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +1 -0
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +85 -0
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js.map +1 -0
- package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.d.ts +92 -0
- package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.d.ts.map +1 -0
- package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.js +85 -0
- package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.js.map +1 -0
- package/dist/contracts/recording_royalty_pool_plugin/witness.d.ts +6 -0
- package/dist/contracts/recording_royalty_pool_plugin/witness.d.ts.map +1 -0
- package/dist/contracts/recording_royalty_pool_plugin/witness.js +8 -0
- package/dist/contracts/recording_royalty_pool_plugin/witness.js.map +1 -0
- package/dist/contracts/recording_streaming_transcode/deps/ori/data.d.ts +8 -0
- package/dist/contracts/recording_streaming_transcode/deps/ori/data.d.ts.map +1 -0
- package/dist/contracts/recording_streaming_transcode/deps/ori/data.js +10 -0
- package/dist/contracts/recording_streaming_transcode/deps/ori/data.js.map +1 -0
- package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.d.ts +124 -0
- package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.d.ts.map +1 -0
- package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.js +124 -0
- package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.js.map +1 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/confidentiality.d.ts +24 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/confidentiality.d.ts.map +1 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/confidentiality.js +24 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/confidentiality.js.map +1 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/data.d.ts +16 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/data.d.ts.map +1 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/data.js +12 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/data.js.map +1 -0
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts +47 -0
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts.map +1 -0
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js +22 -0
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js.map +1 -0
- package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts +33 -0
- package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts.map +1 -0
- package/dist/contracts/release_cover_art/deps/per_track/per_track.js +32 -0
- package/dist/contracts/release_cover_art/deps/per_track/per_track.js.map +1 -0
- package/dist/contracts/release_cover_art/release_cover_art.d.ts +300 -0
- package/dist/contracts/release_cover_art/release_cover_art.d.ts.map +1 -0
- package/dist/contracts/release_cover_art/release_cover_art.js +168 -0
- package/dist/contracts/release_cover_art/release_cover_art.js.map +1 -0
- package/dist/contracts/release_credits/deps/credit/credit.d.ts +24 -0
- package/dist/contracts/release_credits/deps/credit/credit.d.ts.map +1 -0
- package/dist/contracts/release_credits/deps/credit/credit.js +23 -0
- package/dist/contracts/release_credits/deps/credit/credit.js.map +1 -0
- package/dist/contracts/release_credits/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/release_credits/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/release_credits/deps/sui/vec_map.js +28 -0
- package/dist/contracts/release_credits/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/release_credits/release_credits.d.ts +142 -0
- package/dist/contracts/release_credits/release_credits.d.ts.map +1 -0
- package/dist/contracts/release_credits/release_credits.js +108 -0
- package/dist/contracts/release_credits/release_credits.js.map +1 -0
- package/dist/contracts/release_credits/release_party_role.d.ts +58 -0
- package/dist/contracts/release_credits/release_party_role.d.ts.map +1 -0
- package/dist/contracts/release_credits/release_party_role.js +66 -0
- package/dist/contracts/release_credits/release_party_role.js.map +1 -0
- package/dist/contracts/release_description/release_description.d.ts +112 -0
- package/dist/contracts/release_description/release_description.d.ts.map +1 -0
- package/dist/contracts/release_description/release_description.js +123 -0
- package/dist/contracts/release_description/release_description.js.map +1 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.d.ts +643 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.d.ts.map +1 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.js +555 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.js.map +1 -0
- package/dist/contracts/release_genre/release_genre.d.ts +145 -0
- package/dist/contracts/release_genre/release_genre.d.ts.map +1 -0
- package/dist/contracts/release_genre/release_genre.js +154 -0
- package/dist/contracts/release_genre/release_genre.js.map +1 -0
- package/dist/contracts/release_kind/release_kind.d.ts +98 -0
- package/dist/contracts/release_kind/release_kind.d.ts.map +1 -0
- package/dist/contracts/release_kind/release_kind.js +109 -0
- package/dist/contracts/release_kind/release_kind.js.map +1 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts +91 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts.map +1 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js +92 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js.map +1 -0
- package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.d.ts +73 -0
- package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.d.ts.map +1 -0
- package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.js +80 -0
- package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.js.map +1 -0
- package/dist/contracts/release_revenue_distributor_plugin/witness.d.ts +6 -0
- package/dist/contracts/release_revenue_distributor_plugin/witness.d.ts.map +1 -0
- package/dist/contracts/release_revenue_distributor_plugin/witness.js +8 -0
- package/dist/contracts/release_revenue_distributor_plugin/witness.js.map +1 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts +67 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.js +50 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.js.map +1 -0
- package/dist/contracts/routed_stake/deps/std/type_name.d.ts +18 -0
- package/dist/contracts/routed_stake/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/std/type_name.js +20 -0
- package/dist/contracts/routed_stake/deps/std/type_name.js.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/balance.d.ts +13 -0
- package/dist/contracts/routed_stake/deps/sui/balance.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/balance.js +15 -0
- package/dist/contracts/routed_stake/deps/sui/balance.js.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.js +28 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/routed_stake/routed_stake.d.ts +347 -0
- package/dist/contracts/routed_stake/routed_stake.d.ts.map +1 -0
- package/dist/contracts/routed_stake/routed_stake.js +302 -0
- package/dist/contracts/routed_stake/routed_stake.js.map +1 -0
- package/dist/contracts/royalty_pool/deps/std/type_name.d.ts +18 -0
- package/dist/contracts/royalty_pool/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/deps/std/type_name.js +20 -0
- package/dist/contracts/royalty_pool/deps/std/type_name.js.map +1 -0
- package/dist/contracts/royalty_pool/deps/sui/balance.d.ts +13 -0
- package/dist/contracts/royalty_pool/deps/sui/balance.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/deps/sui/balance.js +15 -0
- package/dist/contracts/royalty_pool/deps/sui/balance.js.map +1 -0
- package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/deps/sui/vec_map.js +28 -0
- package/dist/contracts/royalty_pool/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/royalty_pool/pool.d.ts +414 -0
- package/dist/contracts/royalty_pool/pool.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/pool.js +409 -0
- package/dist/contracts/royalty_pool/pool.js.map +1 -0
- package/dist/contracts/royalty_pool/stake.d.ts +202 -0
- package/dist/contracts/royalty_pool/stake.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/stake.js +196 -0
- package/dist/contracts/royalty_pool/stake.js.map +1 -0
- package/dist/contracts/utils/index.d.ts +104 -0
- package/dist/contracts/utils/index.d.ts.map +1 -0
- package/dist/contracts/utils/index.js +272 -0
- package/dist/contracts/utils/index.js.map +1 -0
- package/dist/contracts/vault/deps/sui/bag.d.ts +35 -0
- package/dist/contracts/vault/deps/sui/bag.d.ts.map +1 -0
- package/dist/contracts/vault/deps/sui/bag.js +37 -0
- package/dist/contracts/vault/deps/sui/bag.js.map +1 -0
- package/dist/contracts/vault/deps/sui/borrow.d.ts +20 -0
- package/dist/contracts/vault/deps/sui/borrow.d.ts.map +1 -0
- package/dist/contracts/vault/deps/sui/borrow.js +21 -0
- package/dist/contracts/vault/deps/sui/borrow.js.map +1 -0
- package/dist/contracts/vault/vault.d.ts +316 -0
- package/dist/contracts/vault/vault.d.ts.map +1 -0
- package/dist/contracts/vault/vault.js +308 -0
- package/dist/contracts/vault/vault.js.map +1 -0
- package/dist/contracts.d.ts +57 -33
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +63 -41
- package/dist/contracts.js.map +1 -1
- package/dist/cover.js +2 -2
- package/dist/cover.js.map +1 -1
- package/dist/credits.js +6 -6
- package/dist/credits.js.map +1 -1
- package/dist/deployments.d.ts +104 -64
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +170 -36
- package/dist/deployments.js.map +1 -1
- package/dist/events.d.ts +1045 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +116 -0
- package/dist/events.js.map +1 -0
- package/dist/execute.d.ts +2 -2
- package/dist/execute.d.ts.map +1 -1
- package/dist/execute.js +2 -2
- package/dist/execute.js.map +1 -1
- package/dist/genre.d.ts +124 -0
- package/dist/genre.d.ts.map +1 -0
- package/dist/genre.js +238 -0
- package/dist/genre.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/internal.js +2 -2
- package/dist/internal.js.map +1 -1
- package/dist/packages.d.ts +4185 -0
- package/dist/packages.d.ts.map +1 -0
- package/dist/packages.js +190 -0
- package/dist/packages.js.map +1 -0
- package/dist/party/client.d.ts +324 -0
- package/dist/party/client.d.ts.map +1 -0
- package/dist/party/client.js +214 -0
- package/dist/party/client.js.map +1 -0
- package/dist/party/extensions/ctas.d.ts +19 -0
- package/dist/party/extensions/ctas.d.ts.map +1 -0
- package/dist/party/extensions/ctas.js +25 -0
- package/dist/party/extensions/ctas.js.map +1 -0
- package/dist/party/extensions/genres.d.ts +27 -0
- package/dist/party/extensions/genres.d.ts.map +1 -0
- package/dist/party/extensions/genres.js +31 -0
- package/dist/party/extensions/genres.js.map +1 -0
- package/dist/party/extensions/links.d.ts +65 -0
- package/dist/party/extensions/links.d.ts.map +1 -0
- package/dist/party/extensions/links.js +117 -0
- package/dist/party/extensions/links.js.map +1 -0
- package/dist/party/extensions/media.d.ts +36 -0
- package/dist/party/extensions/media.d.ts.map +1 -0
- package/dist/party/extensions/media.js +45 -0
- package/dist/party/extensions/media.js.map +1 -0
- package/dist/party/extensions/profile.d.ts +24 -0
- package/dist/party/extensions/profile.d.ts.map +1 -0
- package/dist/party/extensions/profile.js +48 -0
- package/dist/party/extensions/profile.js.map +1 -0
- package/dist/party/extensions/roles.d.ts +37 -0
- package/dist/party/extensions/roles.d.ts.map +1 -0
- package/dist/party/extensions/roles.js +46 -0
- package/dist/party/extensions/roles.js.map +1 -0
- package/dist/party/extensions/tags.d.ts +25 -0
- package/dist/party/extensions/tags.d.ts.map +1 -0
- package/dist/party/extensions/tags.js +25 -0
- package/dist/party/extensions/tags.js.map +1 -0
- package/dist/party/index.d.ts +12 -0
- package/dist/party/index.d.ts.map +1 -0
- package/dist/party/index.js +18 -0
- package/dist/party/index.js.map +1 -0
- package/dist/party/internal.d.ts +14 -0
- package/dist/party/internal.d.ts.map +1 -0
- package/dist/party/internal.js +89 -0
- package/dist/party/internal.js.map +1 -0
- package/dist/party/queries.d.ts +17 -0
- package/dist/party/queries.d.ts.map +1 -0
- package/dist/party/queries.js +118 -0
- package/dist/party/queries.js.map +1 -0
- package/dist/party/types.d.ts +43 -0
- package/dist/party/types.d.ts.map +1 -0
- package/dist/party/types.js +4 -0
- package/dist/party/types.js.map +1 -0
- package/dist/pressing.js +3 -3
- package/dist/pressing.js.map +1 -1
- package/dist/publication.d.ts +4 -8
- package/dist/publication.d.ts.map +1 -1
- package/dist/publication.js +53 -40
- package/dist/publication.js.map +1 -1
- package/dist/queries.d.ts +1 -1
- package/dist/queries.d.ts.map +1 -1
- package/dist/queries.js +2 -2
- package/dist/queries.js.map +1 -1
- package/dist/read/artist.js +3 -3
- package/dist/read/artist.js.map +1 -1
- package/dist/read/catalog.d.ts +1 -1
- package/dist/read/catalog.d.ts.map +1 -1
- package/dist/read/catalog.js +3 -3
- package/dist/read/catalog.js.map +1 -1
- package/dist/read/client.d.ts +6 -3
- package/dist/read/client.d.ts.map +1 -1
- package/dist/read/client.js +5 -1
- package/dist/read/client.js.map +1 -1
- package/dist/read/config.d.ts +7 -2
- package/dist/read/config.d.ts.map +1 -1
- package/dist/read/config.js +2 -0
- package/dist/read/config.js.map +1 -1
- package/dist/read/index.js +1 -1
- package/dist/read/index.js.map +1 -1
- package/dist/read/receipts.js +4 -4
- package/dist/read/receipts.js.map +1 -1
- package/dist/read/types.d.ts +1 -1
- package/dist/read/types.d.ts.map +1 -1
- package/dist/read/wallet.d.ts +1 -1
- package/dist/read/wallet.d.ts.map +1 -1
- package/dist/read/wallet.js +15 -14
- package/dist/read/wallet.js.map +1 -1
- package/dist/read/works.d.ts +1 -1
- package/dist/read/works.d.ts.map +1 -1
- package/dist/read/works.js +1 -1
- package/dist/read/works.js.map +1 -1
- package/dist/recording-extensions.js +7 -7
- package/dist/recording-extensions.js.map +1 -1
- package/dist/release-extensions.d.ts +0 -18
- package/dist/release-extensions.d.ts.map +1 -1
- package/dist/release-extensions.js +4 -49
- package/dist/release-extensions.js.map +1 -1
- package/dist/release-graph.js +2 -2
- package/dist/release-graph.js.map +1 -1
- package/dist/royalty.d.ts +87 -0
- package/dist/royalty.d.ts.map +1 -0
- package/dist/royalty.js +78 -0
- package/dist/royalty.js.map +1 -0
- package/dist/share.js +1 -1
- package/dist/share.js.map +1 -1
- package/dist/transactions.d.ts +2 -2
- package/dist/transactions.d.ts.map +1 -1
- package/dist/transactions.js +6 -6
- package/dist/transactions.js.map +1 -1
- package/dist/vault.d.ts.map +1 -1
- package/dist/vault.js +13 -10
- package/dist/vault.js.map +1 -1
- package/package.json +24 -10
- package/src/catalog.ts +2 -2
- package/src/client.ts +103 -44
- package/src/contracts/composition_credits/composition_credits.ts +170 -0
- package/src/contracts/composition_credits/composition_party_role.ts +190 -0
- package/src/contracts/composition_credits/deps/credit/credit.ts +28 -0
- package/src/contracts/composition_credits/deps/sui/vec_map.ts +34 -0
- package/src/contracts/composition_routed_stake/composition_routed_stake.ts +239 -0
- package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +154 -0
- package/src/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.ts +165 -0
- package/src/contracts/composition_royalty_pool_plugin/witness.ts +8 -0
- package/src/contracts/cover_art/cover_art.ts +98 -0
- package/src/contracts/cover_art/deps/ori/confidentiality.ts +24 -0
- package/src/contracts/cover_art/deps/ori/data.ts +12 -0
- package/src/contracts/genre/genre.ts +121 -0
- package/src/contracts/party_cta/party_cta.ts +213 -0
- package/src/contracts/party_genre/party_genre.ts +200 -0
- package/src/contracts/party_media/party_media.ts +142 -0
- package/src/contracts/party_music/party_music.ts +406 -0
- package/src/contracts/party_platform_link/party_platform_link.ts +149 -0
- package/src/contracts/party_pro_link/party_pro_link.ts +454 -0
- package/src/contracts/party_profile/deps/country_code/country_code.ts +20 -0
- package/src/contracts/party_profile/deps/language_code/language_code.ts +8 -0
- package/src/contracts/party_profile/party_profile.ts +240 -0
- package/src/contracts/party_roles/party_roles.ts +364 -0
- package/src/contracts/party_social/party_social.ts +503 -0
- package/src/contracts/party_tags/party_tags.ts +199 -0
- package/src/contracts/party_wallet/party_wallet.ts +174 -0
- package/src/contracts/record/deps/std/type_name.ts +23 -0
- package/src/contracts/record/deps/sui/vec_set.ts +22 -0
- package/src/contracts/record/pressing.ts +523 -0
- package/src/contracts/record/record.ts +339 -0
- package/src/contracts/record_shop/deps/std/type_name.ts +23 -0
- package/src/contracts/record_shop/listing.ts +603 -0
- package/src/contracts/record_shop/witness.ts +12 -0
- package/src/contracts/recording_advisory/recording_advisory.ts +316 -0
- package/src/contracts/recording_credits/deps/credit/credit.ts +28 -0
- package/src/contracts/recording_credits/deps/sui/vec_map.ts +34 -0
- package/src/contracts/recording_credits/deps/sui/vec_set.ts +22 -0
- package/src/contracts/recording_credits/recording_credits.ts +459 -0
- package/src/contracts/recording_credits/recording_party_role.ts +1042 -0
- package/src/contracts/recording_engine_session/deps/ori/confidentiality.ts +24 -0
- package/src/contracts/recording_engine_session/deps/ori/data.ts +12 -0
- package/src/contracts/recording_engine_session/recording_engine_session.ts +335 -0
- package/src/contracts/recording_genre/recording_genre.ts +235 -0
- package/src/contracts/recording_language/deps/language_code/language_code.ts +8 -0
- package/src/contracts/recording_language/recording_language.ts +238 -0
- package/src/contracts/recording_master_reference/deps/ori/confidentiality.ts +24 -0
- package/src/contracts/recording_master_reference/deps/ori/data.ts +12 -0
- package/src/contracts/recording_master_reference/recording_master_reference.ts +180 -0
- package/src/contracts/recording_royalty_pool/recording_royalty_pool.ts +157 -0
- package/src/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.ts +167 -0
- package/src/contracts/recording_royalty_pool_plugin/witness.ts +8 -0
- package/src/contracts/recording_streaming_transcode/deps/ori/data.ts +10 -0
- package/src/contracts/recording_streaming_transcode/recording_streaming_transcode.ts +203 -0
- package/src/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/confidentiality.ts +24 -0
- package/src/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/data.ts +12 -0
- package/src/contracts/release_cover_art/deps/cover_art/cover_art.ts +25 -0
- package/src/contracts/release_cover_art/deps/per_track/per_track.ts +37 -0
- package/src/contracts/release_cover_art/release_cover_art.ts +252 -0
- package/src/contracts/release_credits/deps/credit/credit.ts +28 -0
- package/src/contracts/release_credits/deps/sui/vec_map.ts +34 -0
- package/src/contracts/release_credits/release_credits.ts +157 -0
- package/src/contracts/release_credits/release_party_role.ts +87 -0
- package/src/contracts/release_description/release_description.ts +168 -0
- package/src/contracts/release_dsp_link/release_dsp_link.ts +813 -0
- package/src/contracts/release_genre/release_genre.ts +203 -0
- package/src/contracts/release_kind/release_kind.ts +154 -0
- package/src/contracts/release_revenue_distributor/release_revenue_distributor.ts +141 -0
- package/src/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.ts +143 -0
- package/src/contracts/release_revenue_distributor_plugin/witness.ts +8 -0
- package/src/contracts/routed_stake/deps/royalty_pool/stake.ts +53 -0
- package/src/contracts/routed_stake/deps/std/type_name.ts +23 -0
- package/src/contracts/routed_stake/deps/sui/balance.ts +18 -0
- package/src/contracts/routed_stake/deps/sui/vec_map.ts +34 -0
- package/src/contracts/routed_stake/routed_stake.ts +487 -0
- package/src/contracts/royalty_pool/deps/std/type_name.ts +23 -0
- package/src/contracts/royalty_pool/deps/sui/balance.ts +18 -0
- package/src/contracts/royalty_pool/deps/sui/vec_map.ts +34 -0
- package/src/contracts/royalty_pool/pool.ts +634 -0
- package/src/contracts/royalty_pool/stake.ts +305 -0
- package/src/contracts/utils/index.ts +428 -0
- package/src/contracts/vault/deps/sui/bag.ts +40 -0
- package/src/contracts/vault/deps/sui/borrow.ts +26 -0
- package/src/contracts/vault/vault.ts +509 -0
- package/src/contracts.ts +86 -39
- package/src/cover.ts +2 -2
- package/src/credits.ts +6 -6
- package/src/deployments.ts +253 -39
- package/src/events.ts +121 -0
- package/src/execute.ts +3 -3
- package/src/genre.ts +369 -0
- package/src/index.ts +10 -1
- package/src/internal.ts +2 -2
- package/src/packages.ts +243 -0
- package/src/party/client.ts +268 -0
- package/src/party/extensions/ctas.ts +46 -0
- package/src/party/extensions/genres.ts +62 -0
- package/src/party/extensions/links.ts +185 -0
- package/src/party/extensions/media.ts +72 -0
- package/src/party/extensions/profile.ts +81 -0
- package/src/party/extensions/roles.ts +94 -0
- package/src/party/extensions/tags.ts +54 -0
- package/src/party/index.ts +40 -0
- package/src/party/internal.ts +102 -0
- package/src/party/queries.ts +163 -0
- package/src/party/types.ts +84 -0
- package/src/pressing.ts +5 -5
- package/src/publication.ts +58 -45
- package/src/queries.ts +2 -2
- package/src/read/artist.ts +3 -3
- package/src/read/catalog.ts +4 -4
- package/src/read/client.ts +9 -3
- package/src/read/config.ts +9 -2
- package/src/read/index.ts +1 -1
- package/src/read/receipts.ts +4 -4
- package/src/read/types.ts +1 -1
- package/src/read/wallet.ts +15 -14
- package/src/read/works.ts +1 -1
- package/src/recording-extensions.ts +7 -7
- package/src/release-extensions.ts +4 -75
- package/src/release-graph.ts +2 -2
- package/src/royalty.ts +167 -0
- package/src/share.ts +1 -1
- package/src/transactions.ts +6 -6
- package/src/vault.ts +18 -17
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { MoveEnum, MoveStruct } from '../../../utils/index.ts';
|
|
5
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
6
|
+
import type {} from "@mysten/bcs";
|
|
7
|
+
const $moduleName = 'ori::confidentiality';
|
|
8
|
+
/**
|
|
9
|
+
* Confidentiality metadata for referenced data.
|
|
10
|
+
*
|
|
11
|
+
* Variants can only be constructed in this module, so encrypted values always
|
|
12
|
+
* carry a non-empty Seal-sealed data-encryption key.
|
|
13
|
+
*/
|
|
14
|
+
export const Confidentiality = new MoveEnum({ name: `${$moduleName}::Confidentiality`, fields: {
|
|
15
|
+
/** The referenced data is stored in the clear. */
|
|
16
|
+
Unencrypted: null,
|
|
17
|
+
/**
|
|
18
|
+
* The referenced data is encrypted. `sealed_dek` is its Seal-sealed
|
|
19
|
+
* data-encryption key, not the plaintext key.
|
|
20
|
+
*/
|
|
21
|
+
Encrypted: new MoveStruct({ name: `Confidentiality.Encrypted`, fields: {
|
|
22
|
+
sealed_dek: bcs.vector(bcs.u8())
|
|
23
|
+
} })
|
|
24
|
+
} });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { MoveStruct } from '../../../utils/index.ts';
|
|
5
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
6
|
+
import type {} from "@mysten/bcs";
|
|
7
|
+
import * as confidentiality from './confidentiality.ts';
|
|
8
|
+
const $moduleName = 'ori::data';
|
|
9
|
+
export const WalrusBlob = new MoveStruct({ name: `${$moduleName}::WalrusBlob`, fields: {
|
|
10
|
+
blob_id: bcs.u256(),
|
|
11
|
+
confidentiality: confidentiality.Confidentiality
|
|
12
|
+
} });
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A recording administrator's pointer to the Miso Engine session for a recording:
|
|
8
|
+
* the canonical Session V1 document plus every stem it plays.
|
|
9
|
+
*
|
|
10
|
+
* The Session V1 document references each source by the SHA-256 digest of its
|
|
11
|
+
* canonical PCM (engine `STEM_IDENTITY_V1`) and carries no locator. Walrus serves
|
|
12
|
+
* blobs by blob ID. `EngineSession` therefore records, next to the session blob,
|
|
13
|
+
* one `Stem` per source pairing that digest with the standalone Walrus blob
|
|
14
|
+
* holding its FLAC delivery object. A client reads one value and can resolve every
|
|
15
|
+
* source the session names.
|
|
16
|
+
*
|
|
17
|
+
* Session and stems are one value and are replaced together: adding a source
|
|
18
|
+
* changes the document, so a new document and a new stem set land in a single
|
|
19
|
+
* `set_engine_session`. Stems are sorted by digest and unique, so the value has
|
|
20
|
+
* exactly one canonical form for a given session.
|
|
21
|
+
*
|
|
22
|
+
* Every referenced blob is unencrypted; the constructors reject encrypted
|
|
23
|
+
* confidentiality. This extension asserts only which blobs the recording
|
|
24
|
+
* administrator chose. It does not prove storage availability, document validity,
|
|
25
|
+
* that a stem decodes to its digest, or that the digests match the document's
|
|
26
|
+
* sources. Publication tooling must perform those checks before attachment.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
import { MoveTuple, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.ts';
|
|
30
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
31
|
+
import type {} from "@mysten/bcs";
|
|
32
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
33
|
+
import * as data_1 from './deps/ori/data.ts';
|
|
34
|
+
const $moduleName = '@local-pkg/recording_engine_session::recording_engine_session';
|
|
35
|
+
export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
|
|
36
|
+
export const Stem = new MoveStruct({ name: `${$moduleName}::Stem`, fields: {
|
|
37
|
+
/**
|
|
38
|
+
* SHA-256 digest of the stem's canonical PCM serialization (engine
|
|
39
|
+
* `STEM_IDENTITY_V1`), 32 raw bytes in natural order. Equals the source's
|
|
40
|
+
* `content` identity in the Session V1 document without its `sha256:` prefix.
|
|
41
|
+
*/
|
|
42
|
+
digest: bcs.vector(bcs.u8()),
|
|
43
|
+
/**
|
|
44
|
+
* Unencrypted standalone Walrus blob holding the stem's FLAC delivery object,
|
|
45
|
+
* which decodes to the PCM the digest commits to.
|
|
46
|
+
*/
|
|
47
|
+
data: data_1.WalrusBlob
|
|
48
|
+
} });
|
|
49
|
+
export const EngineSession = new MoveStruct({ name: `${$moduleName}::EngineSession`, fields: {
|
|
50
|
+
/**
|
|
51
|
+
* Unencrypted standalone Walrus blob holding the canonical Session V1 JSON
|
|
52
|
+
* document, byte for byte as the engine emitted it.
|
|
53
|
+
*/
|
|
54
|
+
data: data_1.WalrusBlob,
|
|
55
|
+
/** Every stem the document's sources reference, sorted by digest, unique. */
|
|
56
|
+
stems: bcs.vector(Stem)
|
|
57
|
+
} });
|
|
58
|
+
export const EngineSessionSetEvent = new MoveStruct({ name: `${$moduleName}::EngineSessionSetEvent`, fields: {
|
|
59
|
+
recording_id: bcs.Address,
|
|
60
|
+
session: EngineSession
|
|
61
|
+
} });
|
|
62
|
+
export const EngineSessionUnsetEvent = new MoveStruct({ name: `${$moduleName}::EngineSessionUnsetEvent`, fields: {
|
|
63
|
+
recording_id: bcs.Address
|
|
64
|
+
} });
|
|
65
|
+
export interface NewStemArguments {
|
|
66
|
+
digest: RawTransactionArgument<Array<number>>;
|
|
67
|
+
data: TransactionArgument;
|
|
68
|
+
}
|
|
69
|
+
export interface NewStemOptions {
|
|
70
|
+
package?: string;
|
|
71
|
+
arguments: NewStemArguments | [
|
|
72
|
+
digest: RawTransactionArgument<Array<number>>,
|
|
73
|
+
data: TransactionArgument
|
|
74
|
+
];
|
|
75
|
+
}
|
|
76
|
+
/** Creates a stem reference from a 32-byte PCM digest and an unencrypted blob. */
|
|
77
|
+
export function newStem(options: NewStemOptions) {
|
|
78
|
+
const packageAddress = options.package ?? '@local-pkg/recording_engine_session';
|
|
79
|
+
const argumentsTypes = [
|
|
80
|
+
'vector<u8>',
|
|
81
|
+
null
|
|
82
|
+
] satisfies (string | null)[];
|
|
83
|
+
const parameterNames = ["digest", "data"];
|
|
84
|
+
return (tx: Transaction) => tx.moveCall({
|
|
85
|
+
package: packageAddress,
|
|
86
|
+
module: 'recording_engine_session',
|
|
87
|
+
function: 'new_stem',
|
|
88
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
export interface NewArguments {
|
|
92
|
+
data: TransactionArgument;
|
|
93
|
+
stems: TransactionArgument;
|
|
94
|
+
}
|
|
95
|
+
export interface NewOptions {
|
|
96
|
+
package?: string;
|
|
97
|
+
arguments: NewArguments | [
|
|
98
|
+
data: TransactionArgument,
|
|
99
|
+
stems: TransactionArgument
|
|
100
|
+
];
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Creates an engine session from an unencrypted session blob and its stems.
|
|
104
|
+
*
|
|
105
|
+
* `stems` must be in strictly increasing digest order, which also forbids
|
|
106
|
+
* duplicates. An empty vector is valid: a Session V1 document may declare no
|
|
107
|
+
* sources.
|
|
108
|
+
*/
|
|
109
|
+
export function _new(options: NewOptions) {
|
|
110
|
+
const packageAddress = options.package ?? '@local-pkg/recording_engine_session';
|
|
111
|
+
const argumentsTypes = [
|
|
112
|
+
null,
|
|
113
|
+
'vector<null>'
|
|
114
|
+
] satisfies (string | null)[];
|
|
115
|
+
const parameterNames = ["data", "stems"];
|
|
116
|
+
return (tx: Transaction) => tx.moveCall({
|
|
117
|
+
package: packageAddress,
|
|
118
|
+
module: 'recording_engine_session',
|
|
119
|
+
function: 'new',
|
|
120
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
export interface DataArguments {
|
|
124
|
+
self: TransactionArgument;
|
|
125
|
+
}
|
|
126
|
+
export interface DataOptions {
|
|
127
|
+
package?: string;
|
|
128
|
+
arguments: DataArguments | [
|
|
129
|
+
self: TransactionArgument
|
|
130
|
+
];
|
|
131
|
+
}
|
|
132
|
+
/** Returns the unencrypted Walrus blob containing the Session V1 document. */
|
|
133
|
+
export function data(options: DataOptions) {
|
|
134
|
+
const packageAddress = options.package ?? '@local-pkg/recording_engine_session';
|
|
135
|
+
const argumentsTypes = [
|
|
136
|
+
null
|
|
137
|
+
] satisfies (string | null)[];
|
|
138
|
+
const parameterNames = ["self"];
|
|
139
|
+
return (tx: Transaction) => tx.moveCall({
|
|
140
|
+
package: packageAddress,
|
|
141
|
+
module: 'recording_engine_session',
|
|
142
|
+
function: 'data',
|
|
143
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
export interface StemsArguments {
|
|
147
|
+
self: TransactionArgument;
|
|
148
|
+
}
|
|
149
|
+
export interface StemsOptions {
|
|
150
|
+
package?: string;
|
|
151
|
+
arguments: StemsArguments | [
|
|
152
|
+
self: TransactionArgument
|
|
153
|
+
];
|
|
154
|
+
}
|
|
155
|
+
/** Returns the session's stems, sorted by digest. */
|
|
156
|
+
export function stems(options: StemsOptions) {
|
|
157
|
+
const packageAddress = options.package ?? '@local-pkg/recording_engine_session';
|
|
158
|
+
const argumentsTypes = [
|
|
159
|
+
null
|
|
160
|
+
] satisfies (string | null)[];
|
|
161
|
+
const parameterNames = ["self"];
|
|
162
|
+
return (tx: Transaction) => tx.moveCall({
|
|
163
|
+
package: packageAddress,
|
|
164
|
+
module: 'recording_engine_session',
|
|
165
|
+
function: 'stems',
|
|
166
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
export interface StemDigestArguments {
|
|
170
|
+
self: TransactionArgument;
|
|
171
|
+
}
|
|
172
|
+
export interface StemDigestOptions {
|
|
173
|
+
package?: string;
|
|
174
|
+
arguments: StemDigestArguments | [
|
|
175
|
+
self: TransactionArgument
|
|
176
|
+
];
|
|
177
|
+
}
|
|
178
|
+
/** Returns a stem's 32-byte canonical PCM digest. */
|
|
179
|
+
export function stemDigest(options: StemDigestOptions) {
|
|
180
|
+
const packageAddress = options.package ?? '@local-pkg/recording_engine_session';
|
|
181
|
+
const argumentsTypes = [
|
|
182
|
+
null
|
|
183
|
+
] satisfies (string | null)[];
|
|
184
|
+
const parameterNames = ["self"];
|
|
185
|
+
return (tx: Transaction) => tx.moveCall({
|
|
186
|
+
package: packageAddress,
|
|
187
|
+
module: 'recording_engine_session',
|
|
188
|
+
function: 'stem_digest',
|
|
189
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
export interface StemDataArguments {
|
|
193
|
+
self: TransactionArgument;
|
|
194
|
+
}
|
|
195
|
+
export interface StemDataOptions {
|
|
196
|
+
package?: string;
|
|
197
|
+
arguments: StemDataArguments | [
|
|
198
|
+
self: TransactionArgument
|
|
199
|
+
];
|
|
200
|
+
}
|
|
201
|
+
/** Returns the unencrypted Walrus blob holding a stem's FLAC delivery object. */
|
|
202
|
+
export function stemData(options: StemDataOptions) {
|
|
203
|
+
const packageAddress = options.package ?? '@local-pkg/recording_engine_session';
|
|
204
|
+
const argumentsTypes = [
|
|
205
|
+
null
|
|
206
|
+
] satisfies (string | null)[];
|
|
207
|
+
const parameterNames = ["self"];
|
|
208
|
+
return (tx: Transaction) => tx.moveCall({
|
|
209
|
+
package: packageAddress,
|
|
210
|
+
module: 'recording_engine_session',
|
|
211
|
+
function: 'stem_data',
|
|
212
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
export interface SetEngineSessionArguments {
|
|
216
|
+
self: RawTransactionArgument<string>;
|
|
217
|
+
cap: RawTransactionArgument<string>;
|
|
218
|
+
session: TransactionArgument;
|
|
219
|
+
}
|
|
220
|
+
export interface SetEngineSessionOptions {
|
|
221
|
+
package?: string;
|
|
222
|
+
arguments: SetEngineSessionArguments | [
|
|
223
|
+
self: RawTransactionArgument<string>,
|
|
224
|
+
cap: RawTransactionArgument<string>,
|
|
225
|
+
session: TransactionArgument
|
|
226
|
+
];
|
|
227
|
+
typeArguments: [
|
|
228
|
+
string,
|
|
229
|
+
string
|
|
230
|
+
];
|
|
231
|
+
}
|
|
232
|
+
/** Sets or replaces the recording's Miso Engine session. */
|
|
233
|
+
export function setEngineSession(options: SetEngineSessionOptions) {
|
|
234
|
+
const packageAddress = options.package ?? '@local-pkg/recording_engine_session';
|
|
235
|
+
const argumentsTypes = [
|
|
236
|
+
null,
|
|
237
|
+
null,
|
|
238
|
+
null
|
|
239
|
+
] satisfies (string | null)[];
|
|
240
|
+
const parameterNames = ["self", "cap", "session"];
|
|
241
|
+
return (tx: Transaction) => tx.moveCall({
|
|
242
|
+
package: packageAddress,
|
|
243
|
+
module: 'recording_engine_session',
|
|
244
|
+
function: 'set_engine_session',
|
|
245
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
246
|
+
typeArguments: options.typeArguments
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
export interface UnsetEngineSessionArguments {
|
|
250
|
+
self: RawTransactionArgument<string>;
|
|
251
|
+
cap: RawTransactionArgument<string>;
|
|
252
|
+
}
|
|
253
|
+
export interface UnsetEngineSessionOptions {
|
|
254
|
+
package?: string;
|
|
255
|
+
arguments: UnsetEngineSessionArguments | [
|
|
256
|
+
self: RawTransactionArgument<string>,
|
|
257
|
+
cap: RawTransactionArgument<string>
|
|
258
|
+
];
|
|
259
|
+
typeArguments: [
|
|
260
|
+
string,
|
|
261
|
+
string
|
|
262
|
+
];
|
|
263
|
+
}
|
|
264
|
+
/** Removes the recording's Miso Engine session, if present. Idempotent. */
|
|
265
|
+
export function unsetEngineSession(options: UnsetEngineSessionOptions) {
|
|
266
|
+
const packageAddress = options.package ?? '@local-pkg/recording_engine_session';
|
|
267
|
+
const argumentsTypes = [
|
|
268
|
+
null,
|
|
269
|
+
null
|
|
270
|
+
] satisfies (string | null)[];
|
|
271
|
+
const parameterNames = ["self", "cap"];
|
|
272
|
+
return (tx: Transaction) => tx.moveCall({
|
|
273
|
+
package: packageAddress,
|
|
274
|
+
module: 'recording_engine_session',
|
|
275
|
+
function: 'unset_engine_session',
|
|
276
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
277
|
+
typeArguments: options.typeArguments
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
export interface HasEngineSessionArguments {
|
|
281
|
+
self: RawTransactionArgument<string>;
|
|
282
|
+
}
|
|
283
|
+
export interface HasEngineSessionOptions {
|
|
284
|
+
package?: string;
|
|
285
|
+
arguments: HasEngineSessionArguments | [
|
|
286
|
+
self: RawTransactionArgument<string>
|
|
287
|
+
];
|
|
288
|
+
typeArguments: [
|
|
289
|
+
string,
|
|
290
|
+
string
|
|
291
|
+
];
|
|
292
|
+
}
|
|
293
|
+
/** Whether a Miso Engine session is attached to the recording. */
|
|
294
|
+
export function hasEngineSession(options: HasEngineSessionOptions) {
|
|
295
|
+
const packageAddress = options.package ?? '@local-pkg/recording_engine_session';
|
|
296
|
+
const argumentsTypes = [
|
|
297
|
+
null
|
|
298
|
+
] satisfies (string | null)[];
|
|
299
|
+
const parameterNames = ["self"];
|
|
300
|
+
return (tx: Transaction) => tx.moveCall({
|
|
301
|
+
package: packageAddress,
|
|
302
|
+
module: 'recording_engine_session',
|
|
303
|
+
function: 'has_engine_session',
|
|
304
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
305
|
+
typeArguments: options.typeArguments
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
export interface EngineSessionArguments {
|
|
309
|
+
self: RawTransactionArgument<string>;
|
|
310
|
+
}
|
|
311
|
+
export interface EngineSessionOptions {
|
|
312
|
+
package?: string;
|
|
313
|
+
arguments: EngineSessionArguments | [
|
|
314
|
+
self: RawTransactionArgument<string>
|
|
315
|
+
];
|
|
316
|
+
typeArguments: [
|
|
317
|
+
string,
|
|
318
|
+
string
|
|
319
|
+
];
|
|
320
|
+
}
|
|
321
|
+
/** The recording's Miso Engine session. Aborts when none is attached. */
|
|
322
|
+
export function engineSession(options: EngineSessionOptions) {
|
|
323
|
+
const packageAddress = options.package ?? '@local-pkg/recording_engine_session';
|
|
324
|
+
const argumentsTypes = [
|
|
325
|
+
null
|
|
326
|
+
] satisfies (string | null)[];
|
|
327
|
+
const parameterNames = ["self"];
|
|
328
|
+
return (tx: Transaction) => tx.moveCall({
|
|
329
|
+
package: packageAddress,
|
|
330
|
+
module: 'recording_engine_session',
|
|
331
|
+
function: 'engine_session',
|
|
332
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
333
|
+
typeArguments: options.typeArguments
|
|
334
|
+
});
|
|
335
|
+
}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The genres that classify a recording, in order with the primary first, stored as
|
|
8
|
+
* a dynamic field on the recording's UID and written through its cap-gated
|
|
9
|
+
* `uid_mut`.
|
|
10
|
+
*
|
|
11
|
+
* This is its own package on purpose. Genre is classified by different people, at
|
|
12
|
+
* different times, against a vocabulary that evolves on its own schedule — exactly
|
|
13
|
+
* the split behind `recording_advisory` and `recording_language`. A consumer
|
|
14
|
+
* implementing some future classification profile picks this extension up or
|
|
15
|
+
* ignores it, and replacing it never disturbs anything else attached to the
|
|
16
|
+
* recording.
|
|
17
|
+
*
|
|
18
|
+
* **Why the recording, and not the release.** `musicos::track`'s module doc is
|
|
19
|
+
* explicit that a `Track` embeds only facts "genuinely release-specific and not
|
|
20
|
+
* derivable from the recording" — title and cover art were excluded for exactly
|
|
21
|
+
* this reason. Genre is not release-specific: it is a fact about the audio itself,
|
|
22
|
+
* and `track::new` can be called repeatedly against one published `Recording` with
|
|
23
|
+
* different target releases, so one master can be a track on many releases at
|
|
24
|
+
* once. `Recording` holds no back-reference to any release. A per-track genre
|
|
25
|
+
* override written from the release side is therefore N independent
|
|
26
|
+
* classifications of one master, made by whichever compilation curator happens to
|
|
27
|
+
* hold that release's cap — someone who does not own the master and has no
|
|
28
|
+
* standing to assert what genre it is. The recording's own admin is the party
|
|
29
|
+
* entitled to classify it, and does so once, here.
|
|
30
|
+
*
|
|
31
|
+
* **Division of labour with `release_genre`.** Release-level genre is a separate,
|
|
32
|
+
* legitimate claim: a compilation is "Jazz" _as a product_ even when the
|
|
33
|
+
* recordings inside it are not, individually, jazz. `release_genre` keeps that
|
|
34
|
+
* product-level classification. A client resolving a track's genre should read
|
|
35
|
+
* this package first — the recording's own classification — and fall back to the
|
|
36
|
+
* release's primary genre only when the recording has none.
|
|
37
|
+
*
|
|
38
|
+
* **Shape.** One ordered `vector<ID>` of `genre::Genre` object ids, index 0 the
|
|
39
|
+
* primary, capped at `MAX_GENRES` — the house precedent is `recording_language`:
|
|
40
|
+
* "Order is the caller's: first is conventionally the predominant one." The old
|
|
41
|
+
* release-side design split a single ordered concept into `primary: ID` plus
|
|
42
|
+
* `secondary: vector<ID>`, and three of its six error codes existed only to police
|
|
43
|
+
* the boundary between the two halves — states that cannot exist in a single list.
|
|
44
|
+
* Reordering — including promoting an existing entry to primary — is
|
|
45
|
+
* `clear_genres` followed by `add_genre` in the desired order, atomically within
|
|
46
|
+
* one programmable transaction block: one fewer function to keep in lockstep with
|
|
47
|
+
* `release_genre`, no conditional-capacity branch (insert-new-at-front vs.
|
|
48
|
+
* move-existing-to-front), and the client states its intended final order directly
|
|
49
|
+
* instead of encoding it as a sequence of promotions.
|
|
50
|
+
*
|
|
51
|
+
* The stored value is a bare `vector<ID>` under the package's own key, no wrapper
|
|
52
|
+
* struct — the same choice `party_genre` makes for its `VecSet<ID>` and
|
|
53
|
+
* `recording_language` makes for its `vector<LanguageCode>`. `vector<ID>` has
|
|
54
|
+
* `drop`, so removing the field is `let _: vector<ID> = df::remove(...)` with no
|
|
55
|
+
* destructuring required.
|
|
56
|
+
*
|
|
57
|
+
* Non-empty by construction: removing the last genre drops the field, so "the
|
|
58
|
+
* field is attached" always implies "there is a primary" — there is no
|
|
59
|
+
* attached-but-empty state to special-case.
|
|
60
|
+
*
|
|
61
|
+
* Every write takes `&Genre` — a real, name-derived object from the shared
|
|
62
|
+
* vocabulary — so only ids that resolve to a genuine vocabulary entry can ever
|
|
63
|
+
* enter the list. Removal takes a bare `ID`, since the object itself is not needed
|
|
64
|
+
* to drop a reference to it.
|
|
65
|
+
*
|
|
66
|
+
* This module exposes no function derivable by composing the others. This package
|
|
67
|
+
* is never upgraded — every publish is a fresh identity at a fresh address — so
|
|
68
|
+
* every public function is permanent surface: once live, it must be carried,
|
|
69
|
+
* re-published, and re-audited for as long as the package is in use. A predicate
|
|
70
|
+
* or accessor a caller can compute from `genres()` earns nothing by also living
|
|
71
|
+
* on-chain. Concretely: emptiness is `genres(recording).is_empty()`, and the
|
|
72
|
+
* primary is `genres(recording)[0]` (valid whenever the vector is non-empty, by
|
|
73
|
+
* the non-empty-by-construction invariant above).
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
import { MoveTuple, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.ts';
|
|
77
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
78
|
+
import type {} from "@mysten/bcs";
|
|
79
|
+
import { type Transaction } from '@mysten/sui/transactions';
|
|
80
|
+
const $moduleName = '@local-pkg/recording_genre::recording_genre';
|
|
81
|
+
export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
|
|
82
|
+
export const GenreAddedEvent = new MoveStruct({ name: `${$moduleName}::GenreAddedEvent`, fields: {
|
|
83
|
+
recording_id: bcs.Address,
|
|
84
|
+
genre_id: bcs.Address
|
|
85
|
+
} });
|
|
86
|
+
export const GenreRemovedEvent = new MoveStruct({ name: `${$moduleName}::GenreRemovedEvent`, fields: {
|
|
87
|
+
recording_id: bcs.Address,
|
|
88
|
+
genre_id: bcs.Address
|
|
89
|
+
} });
|
|
90
|
+
export const GenresClearedEvent = new MoveStruct({ name: `${$moduleName}::GenresClearedEvent`, fields: {
|
|
91
|
+
recording_id: bcs.Address
|
|
92
|
+
} });
|
|
93
|
+
export interface AddGenreArguments {
|
|
94
|
+
self: RawTransactionArgument<string>;
|
|
95
|
+
cap: RawTransactionArgument<string>;
|
|
96
|
+
genre: RawTransactionArgument<string>;
|
|
97
|
+
}
|
|
98
|
+
export interface AddGenreOptions {
|
|
99
|
+
package?: string;
|
|
100
|
+
arguments: AddGenreArguments | [
|
|
101
|
+
self: RawTransactionArgument<string>,
|
|
102
|
+
cap: RawTransactionArgument<string>,
|
|
103
|
+
genre: RawTransactionArgument<string>
|
|
104
|
+
];
|
|
105
|
+
typeArguments: [
|
|
106
|
+
string,
|
|
107
|
+
string
|
|
108
|
+
];
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Appends a genre to the recording's list. Creates the field on first use, in
|
|
112
|
+
* which case the appended genre becomes the primary. Aborts `EDuplicateGenre` if
|
|
113
|
+
* the genre is already present, `EMaxGenres` if the recording is already at
|
|
114
|
+
* capacity.
|
|
115
|
+
*/
|
|
116
|
+
export function addGenre(options: AddGenreOptions) {
|
|
117
|
+
const packageAddress = options.package ?? '@local-pkg/recording_genre';
|
|
118
|
+
const argumentsTypes = [
|
|
119
|
+
null,
|
|
120
|
+
null,
|
|
121
|
+
null
|
|
122
|
+
] satisfies (string | null)[];
|
|
123
|
+
const parameterNames = ["self", "cap", "genre"];
|
|
124
|
+
return (tx: Transaction) => tx.moveCall({
|
|
125
|
+
package: packageAddress,
|
|
126
|
+
module: 'recording_genre',
|
|
127
|
+
function: 'add_genre',
|
|
128
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
129
|
+
typeArguments: options.typeArguments
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
export interface RemoveGenreArguments {
|
|
133
|
+
self: RawTransactionArgument<string>;
|
|
134
|
+
cap: RawTransactionArgument<string>;
|
|
135
|
+
genreId: RawTransactionArgument<string>;
|
|
136
|
+
}
|
|
137
|
+
export interface RemoveGenreOptions {
|
|
138
|
+
package?: string;
|
|
139
|
+
arguments: RemoveGenreArguments | [
|
|
140
|
+
self: RawTransactionArgument<string>,
|
|
141
|
+
cap: RawTransactionArgument<string>,
|
|
142
|
+
genreId: RawTransactionArgument<string>
|
|
143
|
+
];
|
|
144
|
+
typeArguments: [
|
|
145
|
+
string,
|
|
146
|
+
string
|
|
147
|
+
];
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Removes a genre by id. If it was the primary, the next genre in the list becomes
|
|
151
|
+
* primary. Removing the last remaining genre drops the field entirely and
|
|
152
|
+
* additionally emits `GenresClearedEvent`. Aborts `EGenreNotPresent` if the genre
|
|
153
|
+
* is not assigned — including when nothing is attached at all.
|
|
154
|
+
*/
|
|
155
|
+
export function removeGenre(options: RemoveGenreOptions) {
|
|
156
|
+
const packageAddress = options.package ?? '@local-pkg/recording_genre';
|
|
157
|
+
const argumentsTypes = [
|
|
158
|
+
null,
|
|
159
|
+
null,
|
|
160
|
+
'0x2::object::ID'
|
|
161
|
+
] satisfies (string | null)[];
|
|
162
|
+
const parameterNames = ["self", "cap", "genreId"];
|
|
163
|
+
return (tx: Transaction) => tx.moveCall({
|
|
164
|
+
package: packageAddress,
|
|
165
|
+
module: 'recording_genre',
|
|
166
|
+
function: 'remove_genre',
|
|
167
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
168
|
+
typeArguments: options.typeArguments
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
export interface ClearGenresArguments {
|
|
172
|
+
self: RawTransactionArgument<string>;
|
|
173
|
+
cap: RawTransactionArgument<string>;
|
|
174
|
+
}
|
|
175
|
+
export interface ClearGenresOptions {
|
|
176
|
+
package?: string;
|
|
177
|
+
arguments: ClearGenresArguments | [
|
|
178
|
+
self: RawTransactionArgument<string>,
|
|
179
|
+
cap: RawTransactionArgument<string>
|
|
180
|
+
];
|
|
181
|
+
typeArguments: [
|
|
182
|
+
string,
|
|
183
|
+
string
|
|
184
|
+
];
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Removes the recording's entire genre list. A no-op when nothing is attached.
|
|
188
|
+
* Emits `GenresClearedEvent` only when a list was actually removed.
|
|
189
|
+
*/
|
|
190
|
+
export function clearGenres(options: ClearGenresOptions) {
|
|
191
|
+
const packageAddress = options.package ?? '@local-pkg/recording_genre';
|
|
192
|
+
const argumentsTypes = [
|
|
193
|
+
null,
|
|
194
|
+
null
|
|
195
|
+
] satisfies (string | null)[];
|
|
196
|
+
const parameterNames = ["self", "cap"];
|
|
197
|
+
return (tx: Transaction) => tx.moveCall({
|
|
198
|
+
package: packageAddress,
|
|
199
|
+
module: 'recording_genre',
|
|
200
|
+
function: 'clear_genres',
|
|
201
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
202
|
+
typeArguments: options.typeArguments
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
export interface GenresArguments {
|
|
206
|
+
self: RawTransactionArgument<string>;
|
|
207
|
+
}
|
|
208
|
+
export interface GenresOptions {
|
|
209
|
+
package?: string;
|
|
210
|
+
arguments: GenresArguments | [
|
|
211
|
+
self: RawTransactionArgument<string>
|
|
212
|
+
];
|
|
213
|
+
typeArguments: [
|
|
214
|
+
string,
|
|
215
|
+
string
|
|
216
|
+
];
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* The recording's genre ids in order, primary first. Empty when nothing is
|
|
220
|
+
* attached.
|
|
221
|
+
*/
|
|
222
|
+
export function genres(options: GenresOptions) {
|
|
223
|
+
const packageAddress = options.package ?? '@local-pkg/recording_genre';
|
|
224
|
+
const argumentsTypes = [
|
|
225
|
+
null
|
|
226
|
+
] satisfies (string | null)[];
|
|
227
|
+
const parameterNames = ["self"];
|
|
228
|
+
return (tx: Transaction) => tx.moveCall({
|
|
229
|
+
package: packageAddress,
|
|
230
|
+
module: 'recording_genre',
|
|
231
|
+
function: 'genres',
|
|
232
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
233
|
+
typeArguments: options.typeArguments
|
|
234
|
+
});
|
|
235
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { MoveTuple } from '../../../utils/index.ts';
|
|
5
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
6
|
+
import type {} from "@mysten/bcs";
|
|
7
|
+
const $moduleName = 'language_code::language_code';
|
|
8
|
+
export const LanguageCode = new MoveTuple({ name: `${$moduleName}::LanguageCode`, fields: [bcs.string()] });
|