@misofm/sdk 0.8.1 → 0.10.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 (279) hide show
  1. package/README.md +88 -56
  2. package/dist/client.d.ts +126 -18
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +210 -44
  5. package/dist/client.js.map +1 -1
  6. package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts +205 -0
  7. package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts.map +1 -0
  8. package/dist/contracts/composition_routed_stake/composition_routed_stake.js +184 -0
  9. package/dist/contracts/composition_routed_stake/composition_routed_stake.js.map +1 -0
  10. package/dist/contracts/composition_routed_stake/witness.d.ts +7 -0
  11. package/dist/contracts/composition_routed_stake/witness.d.ts.map +1 -0
  12. package/dist/contracts/composition_routed_stake/witness.js +9 -0
  13. package/dist/contracts/composition_routed_stake/witness.js.map +1 -0
  14. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts +89 -28
  15. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +1 -1
  16. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +84 -23
  17. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js.map +1 -1
  18. package/dist/contracts/composition_royalty_pool/witness.d.ts +6 -0
  19. package/dist/contracts/composition_royalty_pool/witness.d.ts.map +1 -0
  20. package/dist/contracts/composition_royalty_pool/witness.js +8 -0
  21. package/dist/contracts/composition_royalty_pool/witness.js.map +1 -0
  22. package/dist/contracts/genre/genre.d.ts +96 -0
  23. package/dist/contracts/genre/genre.d.ts.map +1 -0
  24. package/dist/contracts/genre/genre.js +107 -0
  25. package/dist/contracts/genre/genre.js.map +1 -0
  26. package/dist/contracts/recording_advisory/recording_advisory.d.ts +194 -0
  27. package/dist/contracts/recording_advisory/recording_advisory.d.ts.map +1 -0
  28. package/dist/contracts/recording_advisory/recording_advisory.js +204 -0
  29. package/dist/contracts/recording_advisory/recording_advisory.js.map +1 -0
  30. package/dist/contracts/recording_language/deps/language_code/language_code.d.ts +6 -0
  31. package/dist/contracts/recording_language/deps/language_code/language_code.d.ts.map +1 -0
  32. package/dist/contracts/recording_language/deps/language_code/language_code.js +8 -0
  33. package/dist/contracts/recording_language/deps/language_code/language_code.js.map +1 -0
  34. package/dist/contracts/recording_language/recording_language.d.ts +152 -0
  35. package/dist/contracts/recording_language/recording_language.d.ts.map +1 -0
  36. package/dist/contracts/recording_language/recording_language.js +149 -0
  37. package/dist/contracts/recording_language/recording_language.js.map +1 -0
  38. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts +52 -0
  39. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts.map +1 -0
  40. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js +37 -0
  41. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js.map +1 -0
  42. package/dist/contracts/recording_master_reference/recording_master_reference.d.ts +131 -0
  43. package/dist/contracts/recording_master_reference/recording_master_reference.d.ts.map +1 -0
  44. package/dist/contracts/recording_master_reference/recording_master_reference.js +121 -0
  45. package/dist/contracts/recording_master_reference/recording_master_reference.js.map +1 -0
  46. package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts +52 -0
  47. package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts.map +1 -0
  48. package/dist/contracts/recording_preview/deps/ori/walrus_data.js +37 -0
  49. package/dist/contracts/recording_preview/deps/ori/walrus_data.js.map +1 -0
  50. package/dist/contracts/recording_preview/recording_preview.d.ts +104 -0
  51. package/dist/contracts/recording_preview/recording_preview.d.ts.map +1 -0
  52. package/dist/contracts/recording_preview/recording_preview.js +94 -0
  53. package/dist/contracts/recording_preview/recording_preview.js.map +1 -0
  54. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts +90 -28
  55. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +1 -1
  56. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +84 -23
  57. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js.map +1 -1
  58. package/dist/contracts/recording_royalty_pool/witness.d.ts +6 -0
  59. package/dist/contracts/recording_royalty_pool/witness.d.ts.map +1 -0
  60. package/dist/contracts/recording_royalty_pool/witness.js +8 -0
  61. package/dist/contracts/recording_royalty_pool/witness.js.map +1 -0
  62. package/dist/contracts/release_description/release_description.d.ts +112 -0
  63. package/dist/contracts/release_description/release_description.d.ts.map +1 -0
  64. package/dist/contracts/release_description/release_description.js +123 -0
  65. package/dist/contracts/release_description/release_description.js.map +1 -0
  66. package/dist/contracts/release_dsp_link/release_dsp_link.d.ts +644 -0
  67. package/dist/contracts/release_dsp_link/release_dsp_link.d.ts.map +1 -0
  68. package/dist/contracts/release_dsp_link/release_dsp_link.js +556 -0
  69. package/dist/contracts/release_dsp_link/release_dsp_link.js.map +1 -0
  70. package/dist/contracts/release_genre/deps/per_track/per_track.d.ts +33 -0
  71. package/dist/contracts/release_genre/deps/per_track/per_track.d.ts.map +1 -0
  72. package/dist/contracts/release_genre/deps/per_track/per_track.js +32 -0
  73. package/dist/contracts/release_genre/deps/per_track/per_track.js.map +1 -0
  74. package/dist/contracts/release_genre/release_genre.d.ts +193 -0
  75. package/dist/contracts/release_genre/release_genre.d.ts.map +1 -0
  76. package/dist/contracts/release_genre/release_genre.js +207 -0
  77. package/dist/contracts/release_genre/release_genre.js.map +1 -0
  78. package/dist/contracts/release_kind/release_kind.d.ts +98 -0
  79. package/dist/contracts/release_kind/release_kind.d.ts.map +1 -0
  80. package/dist/contracts/release_kind/release_kind.js +109 -0
  81. package/dist/contracts/release_kind/release_kind.js.map +1 -0
  82. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts +106 -0
  83. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts.map +1 -0
  84. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js +113 -0
  85. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js.map +1 -0
  86. package/dist/contracts/release_revenue_distributor/witness.d.ts +7 -0
  87. package/dist/contracts/release_revenue_distributor/witness.d.ts.map +1 -0
  88. package/dist/contracts/release_revenue_distributor/witness.js +9 -0
  89. package/dist/contracts/release_revenue_distributor/witness.js.map +1 -0
  90. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.d.ts +52 -0
  91. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.d.ts.map +1 -0
  92. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.js +37 -0
  93. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.js.map +1 -0
  94. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.d.ts +91 -0
  95. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.d.ts.map +1 -0
  96. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.js +91 -0
  97. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.js.map +1 -0
  98. package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts +54 -0
  99. package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts.map +1 -0
  100. package/dist/contracts/routed_stake/deps/royalty_pool/stake.js +37 -0
  101. package/dist/contracts/routed_stake/deps/royalty_pool/stake.js.map +1 -0
  102. package/dist/contracts/routed_stake/deps/std/type_name.d.ts +18 -0
  103. package/dist/contracts/routed_stake/deps/std/type_name.d.ts.map +1 -0
  104. package/dist/contracts/routed_stake/deps/std/type_name.js +20 -0
  105. package/dist/contracts/routed_stake/deps/std/type_name.js.map +1 -0
  106. package/dist/contracts/routed_stake/deps/sui/balance.d.ts +13 -0
  107. package/dist/contracts/routed_stake/deps/sui/balance.d.ts.map +1 -0
  108. package/dist/contracts/routed_stake/deps/sui/balance.js +15 -0
  109. package/dist/contracts/routed_stake/deps/sui/balance.js.map +1 -0
  110. package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts +37 -0
  111. package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts.map +1 -0
  112. package/dist/contracts/routed_stake/deps/sui/vec_map.js +28 -0
  113. package/dist/contracts/routed_stake/deps/sui/vec_map.js.map +1 -0
  114. package/dist/contracts/routed_stake/routed_stake.d.ts +356 -0
  115. package/dist/contracts/routed_stake/routed_stake.d.ts.map +1 -0
  116. package/dist/contracts/routed_stake/routed_stake.js +311 -0
  117. package/dist/contracts/routed_stake/routed_stake.js.map +1 -0
  118. package/dist/contracts/royalty_pool/pool.d.ts +27 -17
  119. package/dist/contracts/royalty_pool/pool.d.ts.map +1 -1
  120. package/dist/contracts/royalty_pool/pool.js +26 -17
  121. package/dist/contracts/royalty_pool/pool.js.map +1 -1
  122. package/dist/contracts/vault/deps/sui/bag.d.ts +35 -0
  123. package/dist/contracts/vault/deps/sui/bag.d.ts.map +1 -0
  124. package/dist/contracts/vault/deps/sui/bag.js +37 -0
  125. package/dist/contracts/vault/deps/sui/bag.js.map +1 -0
  126. package/dist/contracts/vault/deps/sui/borrow.d.ts +20 -0
  127. package/dist/contracts/vault/deps/sui/borrow.d.ts.map +1 -0
  128. package/dist/contracts/vault/deps/sui/borrow.js +21 -0
  129. package/dist/contracts/vault/deps/sui/borrow.js.map +1 -0
  130. package/dist/contracts/vault/vault.d.ts +276 -0
  131. package/dist/contracts/vault/vault.d.ts.map +1 -0
  132. package/dist/contracts/vault/vault.js +274 -0
  133. package/dist/contracts/vault/vault.js.map +1 -0
  134. package/dist/contracts.d.ts +14 -2
  135. package/dist/contracts.d.ts.map +1 -1
  136. package/dist/contracts.js +16 -7
  137. package/dist/contracts.js.map +1 -1
  138. package/dist/cover.d.ts +17 -3
  139. package/dist/cover.d.ts.map +1 -1
  140. package/dist/cover.js +43 -20
  141. package/dist/cover.js.map +1 -1
  142. package/dist/credits.d.ts +31 -12
  143. package/dist/credits.d.ts.map +1 -1
  144. package/dist/credits.js +41 -25
  145. package/dist/credits.js.map +1 -1
  146. package/dist/deployments.d.ts +31 -57
  147. package/dist/deployments.d.ts.map +1 -1
  148. package/dist/deployments.js +5 -53
  149. package/dist/deployments.js.map +1 -1
  150. package/dist/index.d.ts +4 -2
  151. package/dist/index.d.ts.map +1 -1
  152. package/dist/index.js +6 -5
  153. package/dist/index.js.map +1 -1
  154. package/dist/pressing.d.ts +8 -7
  155. package/dist/pressing.d.ts.map +1 -1
  156. package/dist/pressing.js +91 -32
  157. package/dist/pressing.js.map +1 -1
  158. package/dist/read/artist.js +3 -3
  159. package/dist/read/artist.js.map +1 -1
  160. package/dist/read/catalog.d.ts +14 -9
  161. package/dist/read/catalog.d.ts.map +1 -1
  162. package/dist/read/catalog.js +72 -37
  163. package/dist/read/catalog.js.map +1 -1
  164. package/dist/read/client.d.ts +4 -2
  165. package/dist/read/client.d.ts.map +1 -1
  166. package/dist/read/client.js +15 -4
  167. package/dist/read/client.js.map +1 -1
  168. package/dist/read/config.d.ts +14 -11
  169. package/dist/read/config.d.ts.map +1 -1
  170. package/dist/read/config.js +10 -37
  171. package/dist/read/config.js.map +1 -1
  172. package/dist/read/index.d.ts +2 -2
  173. package/dist/read/index.d.ts.map +1 -1
  174. package/dist/read/index.js +1 -1
  175. package/dist/read/index.js.map +1 -1
  176. package/dist/read/receipts.d.ts +24 -7
  177. package/dist/read/receipts.d.ts.map +1 -1
  178. package/dist/read/receipts.js +78 -25
  179. package/dist/read/receipts.js.map +1 -1
  180. package/dist/read/types.d.ts +45 -25
  181. package/dist/read/types.d.ts.map +1 -1
  182. package/dist/read/types.js +2 -2
  183. package/dist/read/types.js.map +1 -1
  184. package/dist/read/works.d.ts.map +1 -1
  185. package/dist/read/works.js +6 -1
  186. package/dist/read/works.js.map +1 -1
  187. package/dist/recording-extensions.d.ts +37 -0
  188. package/dist/recording-extensions.d.ts.map +1 -0
  189. package/dist/recording-extensions.js +61 -0
  190. package/dist/recording-extensions.js.map +1 -0
  191. package/dist/release-extensions.d.ts +92 -0
  192. package/dist/release-extensions.d.ts.map +1 -0
  193. package/dist/release-extensions.js +175 -0
  194. package/dist/release-extensions.js.map +1 -0
  195. package/dist/release-graph.d.ts +17 -32
  196. package/dist/release-graph.d.ts.map +1 -1
  197. package/dist/release-graph.js +57 -57
  198. package/dist/release-graph.js.map +1 -1
  199. package/dist/transactions.d.ts +43 -26
  200. package/dist/transactions.d.ts.map +1 -1
  201. package/dist/transactions.js +50 -31
  202. package/dist/transactions.js.map +1 -1
  203. package/dist/vault.d.ts +268 -0
  204. package/dist/vault.d.ts.map +1 -0
  205. package/dist/vault.js +389 -0
  206. package/dist/vault.js.map +1 -0
  207. package/package.json +21 -11
  208. package/src/client.ts +428 -61
  209. package/src/contracts/composition_routed_stake/composition_routed_stake.ts +346 -0
  210. package/src/contracts/composition_routed_stake/witness.ts +11 -0
  211. package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +151 -35
  212. package/src/contracts/composition_royalty_pool/witness.ts +7 -0
  213. package/src/contracts/genre/genre.ts +151 -0
  214. package/src/contracts/recording_advisory/recording_advisory.ts +315 -0
  215. package/src/contracts/recording_language/deps/language_code/language_code.ts +7 -0
  216. package/src/contracts/recording_language/recording_language.ts +237 -0
  217. package/src/contracts/recording_master_reference/deps/ori/walrus_data.ts +36 -0
  218. package/src/contracts/recording_master_reference/recording_master_reference.ts +181 -0
  219. package/src/contracts/recording_preview/deps/ori/walrus_data.ts +36 -0
  220. package/src/contracts/recording_preview/recording_preview.ts +154 -0
  221. package/src/contracts/recording_royalty_pool/recording_royalty_pool.ts +152 -35
  222. package/src/contracts/recording_royalty_pool/witness.ts +7 -0
  223. package/src/contracts/release_description/release_description.ts +167 -0
  224. package/src/contracts/release_dsp_link/release_dsp_link.ts +813 -0
  225. package/src/contracts/release_genre/deps/per_track/per_track.ts +36 -0
  226. package/src/contracts/release_genre/release_genre.ts +314 -0
  227. package/src/contracts/release_kind/release_kind.ts +153 -0
  228. package/src/contracts/release_revenue_distributor/release_revenue_distributor.ts +178 -0
  229. package/src/contracts/release_revenue_distributor/witness.ts +11 -0
  230. package/src/contracts/release_snapshot_bundle/deps/ori/walrus_data.ts +36 -0
  231. package/src/contracts/release_snapshot_bundle/release_snapshot_bundle.ts +124 -0
  232. package/src/contracts/routed_stake/deps/royalty_pool/stake.ts +39 -0
  233. package/src/contracts/routed_stake/deps/std/type_name.ts +22 -0
  234. package/src/contracts/routed_stake/deps/sui/balance.ts +17 -0
  235. package/src/contracts/routed_stake/deps/sui/vec_map.ts +33 -0
  236. package/src/contracts/routed_stake/routed_stake.ts +508 -0
  237. package/src/contracts/royalty_pool/pool.ts +34 -24
  238. package/src/contracts/vault/deps/sui/bag.ts +39 -0
  239. package/src/contracts/vault/deps/sui/borrow.ts +25 -0
  240. package/src/contracts/vault/vault.ts +454 -0
  241. package/src/contracts.ts +17 -9
  242. package/src/cover.ts +62 -37
  243. package/src/credits.ts +64 -51
  244. package/src/deployments.ts +36 -97
  245. package/src/index.ts +11 -5
  246. package/src/pressing.ts +135 -39
  247. package/src/read/artist.ts +3 -3
  248. package/src/read/catalog.ts +100 -44
  249. package/src/read/client.ts +20 -4
  250. package/src/read/config.ts +23 -49
  251. package/src/read/index.ts +3 -1
  252. package/src/read/receipts.ts +103 -26
  253. package/src/read/types.ts +46 -27
  254. package/src/read/works.ts +6 -1
  255. package/src/recording-extensions.ts +102 -0
  256. package/src/release-extensions.ts +286 -0
  257. package/src/release-graph.ts +70 -96
  258. package/src/transactions.ts +81 -59
  259. package/src/vault.ts +777 -0
  260. package/dist/contracts/miso_drop/drop.d.ts +0 -550
  261. package/dist/contracts/miso_drop/drop.d.ts.map +0 -1
  262. package/dist/contracts/miso_drop/drop.js +0 -523
  263. package/dist/contracts/miso_drop/drop.js.map +0 -1
  264. package/dist/contracts/release_registry/release_registry.d.ts +0 -114
  265. package/dist/contracts/release_registry/release_registry.d.ts.map +0 -1
  266. package/dist/contracts/release_registry/release_registry.js +0 -119
  267. package/dist/contracts/release_registry/release_registry.js.map +0 -1
  268. package/dist/drop.d.ts +0 -127
  269. package/dist/drop.d.ts.map +0 -1
  270. package/dist/drop.js +0 -202
  271. package/dist/drop.js.map +0 -1
  272. package/dist/extensions/royalty-pool.d.ts +0 -32
  273. package/dist/extensions/royalty-pool.d.ts.map +0 -1
  274. package/dist/extensions/royalty-pool.js +0 -33
  275. package/dist/extensions/royalty-pool.js.map +0 -1
  276. package/src/contracts/miso_drop/drop.ts +0 -798
  277. package/src/contracts/release_registry/release_registry.ts +0 -160
  278. package/src/drop.ts +0 -376
  279. package/src/extensions/royalty-pool.ts +0 -90
@@ -0,0 +1,96 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * Genre vocabulary for Miso — a curated, deduplicated set of `Genre` objects.
6
+ *
7
+ * Genre is a classification, not protocol-verifiable state, so it lives in an
8
+ * extension rather than core. This module owns the **vocabulary**: `Genre` objects
9
+ * created by a `GenreRegistryCap` holder (Miso), derived by canonical name so the
10
+ * set stays deduplicated and canonical (no "hip-hop" vs "Hip Hop" forks).
11
+ *
12
+ * Genre _assignment_ — classifying a release and its individual tracks — lives in
13
+ * the `release_genre` module. How a recording is presented and classified is a
14
+ * property of the release (the consumer object), not of the recording's objective
15
+ * sound data, so nothing here touches `Recording`.
16
+ */
17
+ import { MoveStruct, MoveTuple, type RawTransactionArgument } from '../utils/index.js';
18
+ import { type Transaction } from '@mysten/sui/transactions';
19
+ export declare const GENRE: MoveStruct<{
20
+ dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
21
+ }, "@local-pkg/genre::genre::GENRE">;
22
+ export declare const GenreRegistry: MoveStruct<{
23
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
24
+ }, "@local-pkg/genre::genre::GenreRegistry">;
25
+ export declare const GenreRegistryCap: MoveStruct<{
26
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
27
+ }, "@local-pkg/genre::genre::GenreRegistryCap">;
28
+ export declare const Genre: MoveStruct<{
29
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
30
+ /** Canonical genre name (e.g. "HIP_HOP"). */
31
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
32
+ }, "@local-pkg/genre::genre::Genre">;
33
+ export declare const GenreKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string, "string">], "@local-pkg/genre::genre::GenreKey">;
34
+ export declare const GenreCreatedEvent: MoveStruct<{
35
+ genre_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
36
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
37
+ }, "@local-pkg/genre::genre::GenreCreatedEvent">;
38
+ export interface NewArguments {
39
+ _: RawTransactionArgument<string>;
40
+ registry: RawTransactionArgument<string>;
41
+ name: RawTransactionArgument<string>;
42
+ }
43
+ export interface NewOptions {
44
+ package?: string;
45
+ arguments: NewArguments | [
46
+ _: RawTransactionArgument<string>,
47
+ registry: RawTransactionArgument<string>,
48
+ name: RawTransactionArgument<string>
49
+ ];
50
+ }
51
+ /**
52
+ * Creates a new genre in the canonical vocabulary. Cap-gated: only the registry
53
+ * curator can extend the vocabulary. Derived by canonical name, so creating the
54
+ * same name twice aborts (dedup is automatic). The `Genre` is frozen — immutable
55
+ * and globally readable by reference.
56
+ */
57
+ export declare function _new(options: NewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
58
+ export interface DeriveGenreIdArguments {
59
+ self: RawTransactionArgument<string>;
60
+ name: RawTransactionArgument<string>;
61
+ }
62
+ export interface DeriveGenreIdOptions {
63
+ package?: string;
64
+ arguments: DeriveGenreIdArguments | [
65
+ self: RawTransactionArgument<string>,
66
+ name: RawTransactionArgument<string>
67
+ ];
68
+ }
69
+ /**
70
+ * Derives the object id a `Genre` with the given name would have, without creating
71
+ * it. Lets clients resolve/check a genre id offline.
72
+ */
73
+ export declare function deriveGenreId(options: DeriveGenreIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
74
+ export interface IdArguments {
75
+ self: RawTransactionArgument<string>;
76
+ }
77
+ export interface IdOptions {
78
+ package?: string;
79
+ arguments: IdArguments | [
80
+ self: RawTransactionArgument<string>
81
+ ];
82
+ }
83
+ /** Returns the genre's object id. */
84
+ export declare function id(options: IdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
85
+ export interface NameArguments {
86
+ self: RawTransactionArgument<string>;
87
+ }
88
+ export interface NameOptions {
89
+ package?: string;
90
+ arguments: NameArguments | [
91
+ self: RawTransactionArgument<string>
92
+ ];
93
+ }
94
+ /** Returns the genre's canonical name. */
95
+ export declare function name(options: NameOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
96
+ //# sourceMappingURL=genre.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"genre.d.ts","sourceRoot":"","sources":["../../../src/contracts/genre/genre.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE/G,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,KAAK;;oCAEV,CAAC;AACT,eAAO,MAAM,aAAa;;4CAElB,CAAC;AACT,eAAO,MAAM,gBAAgB;;+CAErB,CAAC;AACT,eAAO,MAAM,KAAK;;IAEV,6CAA6C;;oCAE7C,CAAC;AACT,eAAO,MAAM,QAAQ,wHAA8E,CAAC;AACpG,eAAO,MAAM,iBAAiB;;;gDAGtB,CAAC;AACT,MAAM,WAAW,YAAY;IACzB,CAAC,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAClC,QAAQ,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACzC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACxC;AACD,MAAM,WAAW,UA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BAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;CACL;AACD,0CAA0C;AAC1C,wBAAgB,IAAI,CAAC,OAAO,EAAE,WAAW,IAM7B,IAAI,WAAW,0DAM1B"}
@@ -0,0 +1,107 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * Genre vocabulary for Miso — a curated, deduplicated set of `Genre` objects.
6
+ *
7
+ * Genre is a classification, not protocol-verifiable state, so it lives in an
8
+ * extension rather than core. This module owns the **vocabulary**: `Genre` objects
9
+ * created by a `GenreRegistryCap` holder (Miso), derived by canonical name so the
10
+ * set stays deduplicated and canonical (no "hip-hop" vs "Hip Hop" forks).
11
+ *
12
+ * Genre _assignment_ — classifying a release and its individual tracks — lives in
13
+ * the `release_genre` module. How a recording is presented and classified is a
14
+ * property of the release (the consumer object), not of the recording's objective
15
+ * sound data, so nothing here touches `Recording`.
16
+ */
17
+ import { MoveStruct, MoveTuple, normalizeMoveArguments } from '../utils/index.js';
18
+ import { bcs } from '@mysten/sui/bcs';
19
+ import {} from '@mysten/sui/transactions';
20
+ const $moduleName = '@local-pkg/genre::genre';
21
+ export const GENRE = new MoveStruct({ name: `${$moduleName}::GENRE`, fields: {
22
+ dummy_field: bcs.bool()
23
+ } });
24
+ export const GenreRegistry = new MoveStruct({ name: `${$moduleName}::GenreRegistry`, fields: {
25
+ id: bcs.Address
26
+ } });
27
+ export const GenreRegistryCap = new MoveStruct({ name: `${$moduleName}::GenreRegistryCap`, fields: {
28
+ id: bcs.Address
29
+ } });
30
+ export const Genre = new MoveStruct({ name: `${$moduleName}::Genre`, fields: {
31
+ id: bcs.Address,
32
+ /** Canonical genre name (e.g. "HIP_HOP"). */
33
+ name: bcs.string()
34
+ } });
35
+ export const GenreKey = new MoveTuple({ name: `${$moduleName}::GenreKey`, fields: [bcs.string()] });
36
+ export const GenreCreatedEvent = new MoveStruct({ name: `${$moduleName}::GenreCreatedEvent`, fields: {
37
+ genre_id: bcs.Address,
38
+ name: bcs.string()
39
+ } });
40
+ /**
41
+ * Creates a new genre in the canonical vocabulary. Cap-gated: only the registry
42
+ * curator can extend the vocabulary. Derived by canonical name, so creating the
43
+ * same name twice aborts (dedup is automatic). The `Genre` is frozen — immutable
44
+ * and globally readable by reference.
45
+ */
46
+ export function _new(options) {
47
+ const packageAddress = options.package ?? '@local-pkg/genre';
48
+ const argumentsTypes = [
49
+ null,
50
+ null,
51
+ '0x1::string::String'
52
+ ];
53
+ const parameterNames = ["_", "registry", "name"];
54
+ return (tx) => tx.moveCall({
55
+ package: packageAddress,
56
+ module: 'genre',
57
+ function: 'new',
58
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
59
+ });
60
+ }
61
+ /**
62
+ * Derives the object id a `Genre` with the given name would have, without creating
63
+ * it. Lets clients resolve/check a genre id offline.
64
+ */
65
+ export function deriveGenreId(options) {
66
+ const packageAddress = options.package ?? '@local-pkg/genre';
67
+ const argumentsTypes = [
68
+ null,
69
+ '0x1::string::String'
70
+ ];
71
+ const parameterNames = ["self", "name"];
72
+ return (tx) => tx.moveCall({
73
+ package: packageAddress,
74
+ module: 'genre',
75
+ function: 'derive_genre_id',
76
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
77
+ });
78
+ }
79
+ /** Returns the genre's object id. */
80
+ export function id(options) {
81
+ const packageAddress = options.package ?? '@local-pkg/genre';
82
+ const argumentsTypes = [
83
+ null
84
+ ];
85
+ const parameterNames = ["self"];
86
+ return (tx) => tx.moveCall({
87
+ package: packageAddress,
88
+ module: 'genre',
89
+ function: 'id',
90
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
91
+ });
92
+ }
93
+ /** Returns the genre's canonical name. */
94
+ export function name(options) {
95
+ const packageAddress = options.package ?? '@local-pkg/genre';
96
+ const argumentsTypes = [
97
+ null
98
+ ];
99
+ const parameterNames = ["self"];
100
+ return (tx) => tx.moveCall({
101
+ package: packageAddress,
102
+ module: 'genre',
103
+ function: 'name',
104
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
105
+ });
106
+ }
107
+ //# sourceMappingURL=genre.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"genre.js","sourceRoot":"","sources":["../../../src/contracts/genre/genre.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AAC/G,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAoB,MAAM,0BAA0B,CAAC;AAC5D,MAAM,WAAW,GAAG,yBAAyB,CAAC;AAC9C,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,SAAS,EAAE,MAAM,EAAE;QACrE,WAAW,EAAE,GAAG,CAAC,IAAI,EAAE;KAC1B,EAAE,CAAC,CAAC;AACT,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,iBAAiB,EAAE,MAAM,EAAE;QACrF,EAAE,EAAE,GAAG,CAAC,OAAO;KAClB,EAAE,CAAC,CAAC;AACT,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,oBAAoB,EAAE,MAAM,EAAE;QAC3F,EAAE,EAAE,GAAG,CAAC,OAAO;KAClB,EAAE,CAAC,CAAC;AACT,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,SAAS,EAAE,MAAM,EAAE;QACrE,EAAE,EAAE,GAAG,CAAC,OAAO;QACf,6CAA6C;QAC7C,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE;KACrB,EAAE,CAAC,CAAC;AACT,MAAM,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;QACf,QAAQ,EAAE,iBAAiB;QAC3B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAUD,qCAAqC;AACrC,MAAM,UAAU,EAAE,CAAC,OAAkB;IACjC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,kBAAkB,CAAC;IAC7D,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,OAAO;QACf,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAUD,0CAA0C;AAC1C,MAAM,UAAU,IAAI,CAAC,OAAoB;IACrC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,kBAAkB,CAAC;IAC7D,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,OAAO;QACf,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,194 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * The parental advisory rating for a recording — whether its lyrics are explicit —
6
+ * stored as a dynamic field on the recording's UID and written through its
7
+ * cap-gated `uid_mut`.
8
+ *
9
+ * This is its own package on purpose. Advisory ratings are set by a different
10
+ * person, at a different time, for entirely different reasons than the other facts
11
+ * about a recording, and the standard that governs them moves on its own schedule.
12
+ * Bundling it into a general "recording metadata" object would mean that revising
13
+ * the advisory standard drags every unrelated field through the migration. Kept
14
+ * separate, a consumer implementing some future metadata profile selects this
15
+ * extension or ignores it, and swapping it touches nothing else.
16
+ *
17
+ * The rating is deliberately not a boolean. Every distributor and storefront
18
+ * distinguishes a _cleaned_ edit — an explicit recording re-issued with the
19
+ * offending content removed — from a recording that was never explicit at all.
20
+ * They are merchandised differently and a boolean cannot express the difference,
21
+ * so `Cleaned` is a first-class variant.
22
+ *
23
+ * Attaching the extension IS the statement. There is no "attached but undeclared"
24
+ * state: if a rating is present it has been asserted by the rights holder, and a
25
+ * recording with nothing attached has simply said nothing.
26
+ */
27
+ import { MoveTuple, MoveEnum, MoveStruct, type RawTransactionArgument } from '../utils/index.js';
28
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
29
+ export declare const ExtensionKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/recording_advisory::recording_advisory::ExtensionKey">;
30
+ /** A recording's parental advisory rating. */
31
+ export declare const ExplicitRating: MoveEnum<{
32
+ /** Contains explicit content. */
33
+ Explicit: null;
34
+ /** Contains no explicit content, and never did. */
35
+ NotExplicit: null;
36
+ /** An edited version of a recording that was originally explicit. */
37
+ Cleaned: null;
38
+ }, "@local-pkg/recording_advisory::recording_advisory::ExplicitRating">;
39
+ export declare const AdvisoryRatingSetEvent: MoveStruct<{
40
+ recording_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
41
+ rating: MoveEnum<{
42
+ /** Contains explicit content. */
43
+ Explicit: null;
44
+ /** Contains no explicit content, and never did. */
45
+ NotExplicit: null;
46
+ /** An edited version of a recording that was originally explicit. */
47
+ Cleaned: null;
48
+ }, "@local-pkg/recording_advisory::recording_advisory::ExplicitRating">;
49
+ }, "@local-pkg/recording_advisory::recording_advisory::AdvisoryRatingSetEvent">;
50
+ export declare const AdvisoryRatingUnsetEvent: MoveStruct<{
51
+ recording_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
52
+ }, "@local-pkg/recording_advisory::recording_advisory::AdvisoryRatingUnsetEvent">;
53
+ export interface ExplicitOptions {
54
+ package?: string;
55
+ arguments?: [
56
+ ];
57
+ }
58
+ /** Contains explicit content. */
59
+ export declare function explicit(options?: ExplicitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
60
+ export interface NotExplicitOptions {
61
+ package?: string;
62
+ arguments?: [
63
+ ];
64
+ }
65
+ /** Contains no explicit content, and never did. */
66
+ export declare function notExplicit(options?: NotExplicitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
67
+ export interface CleanedOptions {
68
+ package?: string;
69
+ arguments?: [
70
+ ];
71
+ }
72
+ /** An edited version of a recording that was originally explicit. */
73
+ export declare function cleaned(options?: CleanedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
74
+ export interface SetRatingArguments {
75
+ self: RawTransactionArgument<string>;
76
+ cap: RawTransactionArgument<string>;
77
+ rating: TransactionArgument;
78
+ }
79
+ export interface SetRatingOptions {
80
+ package?: string;
81
+ arguments: SetRatingArguments | [
82
+ self: RawTransactionArgument<string>,
83
+ cap: RawTransactionArgument<string>,
84
+ rating: TransactionArgument
85
+ ];
86
+ typeArguments: [
87
+ string,
88
+ string
89
+ ];
90
+ }
91
+ /** Sets (or replaces) the recording's advisory rating. */
92
+ export declare function setRating(options: SetRatingOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
93
+ export interface UnsetRatingArguments {
94
+ self: RawTransactionArgument<string>;
95
+ cap: RawTransactionArgument<string>;
96
+ }
97
+ export interface UnsetRatingOptions {
98
+ package?: string;
99
+ arguments: UnsetRatingArguments | [
100
+ self: RawTransactionArgument<string>,
101
+ cap: RawTransactionArgument<string>
102
+ ];
103
+ typeArguments: [
104
+ string,
105
+ string
106
+ ];
107
+ }
108
+ /**
109
+ * Removes the rating, if any. Idempotent — the recording is left having said
110
+ * nothing about its content, which is distinct from asserting `NotExplicit`.
111
+ */
112
+ export declare function unsetRating(options: UnsetRatingOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
113
+ export interface HasRatingArguments {
114
+ self: RawTransactionArgument<string>;
115
+ }
116
+ export interface HasRatingOptions {
117
+ package?: string;
118
+ arguments: HasRatingArguments | [
119
+ self: RawTransactionArgument<string>
120
+ ];
121
+ typeArguments: [
122
+ string,
123
+ string
124
+ ];
125
+ }
126
+ /** Whether an advisory rating is attached to this recording. */
127
+ export declare function hasRating(options: HasRatingOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
128
+ export interface RatingArguments {
129
+ self: RawTransactionArgument<string>;
130
+ }
131
+ export interface RatingOptions {
132
+ package?: string;
133
+ arguments: RatingArguments | [
134
+ self: RawTransactionArgument<string>
135
+ ];
136
+ typeArguments: [
137
+ string,
138
+ string
139
+ ];
140
+ }
141
+ /**
142
+ * The recording's advisory rating. Aborts if none is attached — callers that
143
+ * tolerate an unrated recording should check `has_rating` first, since absence is
144
+ * a meaningful state and must not be silently read as `NotExplicit`.
145
+ */
146
+ export declare function rating(options: RatingOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
147
+ export interface IsExplicitArguments {
148
+ self: TransactionArgument;
149
+ }
150
+ export interface IsExplicitOptions {
151
+ package?: string;
152
+ arguments: IsExplicitArguments | [
153
+ self: TransactionArgument
154
+ ];
155
+ }
156
+ /** Whether the recording contains explicit content. */
157
+ export declare function isExplicit(options: IsExplicitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
158
+ export interface IsNotExplicitArguments {
159
+ self: TransactionArgument;
160
+ }
161
+ export interface IsNotExplicitOptions {
162
+ package?: string;
163
+ arguments: IsNotExplicitArguments | [
164
+ self: TransactionArgument
165
+ ];
166
+ }
167
+ /** Whether the recording contains no explicit content and never did. */
168
+ export declare function isNotExplicit(options: IsNotExplicitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
169
+ export interface IsCleanedArguments {
170
+ self: TransactionArgument;
171
+ }
172
+ export interface IsCleanedOptions {
173
+ package?: string;
174
+ arguments: IsCleanedArguments | [
175
+ self: TransactionArgument
176
+ ];
177
+ }
178
+ /** Whether the recording is an edited version of an originally explicit one. */
179
+ export declare function isCleaned(options: IsCleanedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
180
+ export interface NameArguments {
181
+ self: TransactionArgument;
182
+ }
183
+ export interface NameOptions {
184
+ package?: string;
185
+ arguments: NameArguments | [
186
+ self: TransactionArgument
187
+ ];
188
+ }
189
+ /**
190
+ * The rating's canonical name, for clients and indexers that need a stable string
191
+ * rather than a Move value.
192
+ */
193
+ export declare function name(options: NameOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
194
+ //# sourceMappingURL=recording_advisory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recording_advisory.d.ts","sourceRoot":"","sources":["../../../src/contracts/recording_advisory/recording_advisory.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEzH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEtF,eAAO,MAAM,YAAY,sJAAgF,CAAC;AAC1G,8CAA8C;AAC9C,eAAO,MAAM,cAAc;IACnB,iCAAiC;;IAEjC,mDAAmD;;IAEnD,qEAAqE;;uEAErE,CAAC;AACT,eAAO,MAAM,sBAAsB;;;QAP3B,iCAAiC;;QAEjC,mD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MAAM,WAAW,iBAAiB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,mBAAmB,GAAG;QAC7B,IAAI,EAAE,mBAAmB;KAC5B,CAAC;CACL;AACD,uDAAuD;AACvD,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,IAMzC,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,mBAAmB,CAAC;CAC7B;AACD,MAAM,WAAW,oBAAoB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,sBAAsB,GAAG;QAChC,IAAI,EAAE,mBAAmB;KAC5B,CAAC;CACL;AACD,wEAAwE;AACxE,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,IAM/C,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,mBAAmB,CAAC;CAC7B;AACD,MAAM,WAAW,gBAAgB;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,kBAAkB,GAAG;QAC5B,IAAI,EAAE,mBAAmB;KAC5B,CAAC;CACL;AACD,gFAAgF;AAChF,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,IAMvC,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,mBAAmB,CAAC;CAC7B;AACD,MAAM,WAAW,WAAW;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,aAAa,GAAG;QACvB,IAAI,EAAE,mBAAmB;KAC5B,CAAC;CACL;AACD;;;GAGG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,WAAW,IAM7B,IAAI,WAAW,0DAM1B"}
@@ -0,0 +1,204 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * The parental advisory rating for a recording — whether its lyrics are explicit —
6
+ * stored as a dynamic field on the recording's UID and written through its
7
+ * cap-gated `uid_mut`.
8
+ *
9
+ * This is its own package on purpose. Advisory ratings are set by a different
10
+ * person, at a different time, for entirely different reasons than the other facts
11
+ * about a recording, and the standard that governs them moves on its own schedule.
12
+ * Bundling it into a general "recording metadata" object would mean that revising
13
+ * the advisory standard drags every unrelated field through the migration. Kept
14
+ * separate, a consumer implementing some future metadata profile selects this
15
+ * extension or ignores it, and swapping it touches nothing else.
16
+ *
17
+ * The rating is deliberately not a boolean. Every distributor and storefront
18
+ * distinguishes a _cleaned_ edit — an explicit recording re-issued with the
19
+ * offending content removed — from a recording that was never explicit at all.
20
+ * They are merchandised differently and a boolean cannot express the difference,
21
+ * so `Cleaned` is a first-class variant.
22
+ *
23
+ * Attaching the extension IS the statement. There is no "attached but undeclared"
24
+ * state: if a rating is present it has been asserted by the rights holder, and a
25
+ * recording with nothing attached has simply said nothing.
26
+ */
27
+ import { MoveTuple, MoveEnum, MoveStruct, normalizeMoveArguments } from '../utils/index.js';
28
+ import { bcs } from '@mysten/sui/bcs';
29
+ import {} from '@mysten/sui/transactions';
30
+ const $moduleName = '@local-pkg/recording_advisory::recording_advisory';
31
+ export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
32
+ /** A recording's parental advisory rating. */
33
+ export const ExplicitRating = new MoveEnum({ name: `${$moduleName}::ExplicitRating`, fields: {
34
+ /** Contains explicit content. */
35
+ Explicit: null,
36
+ /** Contains no explicit content, and never did. */
37
+ NotExplicit: null,
38
+ /** An edited version of a recording that was originally explicit. */
39
+ Cleaned: null
40
+ } });
41
+ export const AdvisoryRatingSetEvent = new MoveStruct({ name: `${$moduleName}::AdvisoryRatingSetEvent`, fields: {
42
+ recording_id: bcs.Address,
43
+ rating: ExplicitRating
44
+ } });
45
+ export const AdvisoryRatingUnsetEvent = new MoveStruct({ name: `${$moduleName}::AdvisoryRatingUnsetEvent`, fields: {
46
+ recording_id: bcs.Address
47
+ } });
48
+ /** Contains explicit content. */
49
+ export function explicit(options = {}) {
50
+ const packageAddress = options.package ?? '@local-pkg/recording_advisory';
51
+ return (tx) => tx.moveCall({
52
+ package: packageAddress,
53
+ module: 'recording_advisory',
54
+ function: 'explicit',
55
+ });
56
+ }
57
+ /** Contains no explicit content, and never did. */
58
+ export function notExplicit(options = {}) {
59
+ const packageAddress = options.package ?? '@local-pkg/recording_advisory';
60
+ return (tx) => tx.moveCall({
61
+ package: packageAddress,
62
+ module: 'recording_advisory',
63
+ function: 'not_explicit',
64
+ });
65
+ }
66
+ /** An edited version of a recording that was originally explicit. */
67
+ export function cleaned(options = {}) {
68
+ const packageAddress = options.package ?? '@local-pkg/recording_advisory';
69
+ return (tx) => tx.moveCall({
70
+ package: packageAddress,
71
+ module: 'recording_advisory',
72
+ function: 'cleaned',
73
+ });
74
+ }
75
+ /** Sets (or replaces) the recording's advisory rating. */
76
+ export function setRating(options) {
77
+ const packageAddress = options.package ?? '@local-pkg/recording_advisory';
78
+ const argumentsTypes = [
79
+ null,
80
+ null,
81
+ null
82
+ ];
83
+ const parameterNames = ["self", "cap", "rating"];
84
+ return (tx) => tx.moveCall({
85
+ package: packageAddress,
86
+ module: 'recording_advisory',
87
+ function: 'set_rating',
88
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
89
+ typeArguments: options.typeArguments
90
+ });
91
+ }
92
+ /**
93
+ * Removes the rating, if any. Idempotent — the recording is left having said
94
+ * nothing about its content, which is distinct from asserting `NotExplicit`.
95
+ */
96
+ export function unsetRating(options) {
97
+ const packageAddress = options.package ?? '@local-pkg/recording_advisory';
98
+ const argumentsTypes = [
99
+ null,
100
+ null
101
+ ];
102
+ const parameterNames = ["self", "cap"];
103
+ return (tx) => tx.moveCall({
104
+ package: packageAddress,
105
+ module: 'recording_advisory',
106
+ function: 'unset_rating',
107
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
108
+ typeArguments: options.typeArguments
109
+ });
110
+ }
111
+ /** Whether an advisory rating is attached to this recording. */
112
+ export function hasRating(options) {
113
+ const packageAddress = options.package ?? '@local-pkg/recording_advisory';
114
+ const argumentsTypes = [
115
+ null
116
+ ];
117
+ const parameterNames = ["self"];
118
+ return (tx) => tx.moveCall({
119
+ package: packageAddress,
120
+ module: 'recording_advisory',
121
+ function: 'has_rating',
122
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
123
+ typeArguments: options.typeArguments
124
+ });
125
+ }
126
+ /**
127
+ * The recording's advisory rating. Aborts if none is attached — callers that
128
+ * tolerate an unrated recording should check `has_rating` first, since absence is
129
+ * a meaningful state and must not be silently read as `NotExplicit`.
130
+ */
131
+ export function rating(options) {
132
+ const packageAddress = options.package ?? '@local-pkg/recording_advisory';
133
+ const argumentsTypes = [
134
+ null
135
+ ];
136
+ const parameterNames = ["self"];
137
+ return (tx) => tx.moveCall({
138
+ package: packageAddress,
139
+ module: 'recording_advisory',
140
+ function: 'rating',
141
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
142
+ typeArguments: options.typeArguments
143
+ });
144
+ }
145
+ /** Whether the recording contains explicit content. */
146
+ export function isExplicit(options) {
147
+ const packageAddress = options.package ?? '@local-pkg/recording_advisory';
148
+ const argumentsTypes = [
149
+ null
150
+ ];
151
+ const parameterNames = ["self"];
152
+ return (tx) => tx.moveCall({
153
+ package: packageAddress,
154
+ module: 'recording_advisory',
155
+ function: 'is_explicit',
156
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
157
+ });
158
+ }
159
+ /** Whether the recording contains no explicit content and never did. */
160
+ export function isNotExplicit(options) {
161
+ const packageAddress = options.package ?? '@local-pkg/recording_advisory';
162
+ const argumentsTypes = [
163
+ null
164
+ ];
165
+ const parameterNames = ["self"];
166
+ return (tx) => tx.moveCall({
167
+ package: packageAddress,
168
+ module: 'recording_advisory',
169
+ function: 'is_not_explicit',
170
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
171
+ });
172
+ }
173
+ /** Whether the recording is an edited version of an originally explicit one. */
174
+ export function isCleaned(options) {
175
+ const packageAddress = options.package ?? '@local-pkg/recording_advisory';
176
+ const argumentsTypes = [
177
+ null
178
+ ];
179
+ const parameterNames = ["self"];
180
+ return (tx) => tx.moveCall({
181
+ package: packageAddress,
182
+ module: 'recording_advisory',
183
+ function: 'is_cleaned',
184
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
185
+ });
186
+ }
187
+ /**
188
+ * The rating's canonical name, for clients and indexers that need a stable string
189
+ * rather than a Move value.
190
+ */
191
+ export function name(options) {
192
+ const packageAddress = options.package ?? '@local-pkg/recording_advisory';
193
+ const argumentsTypes = [
194
+ null
195
+ ];
196
+ const parameterNames = ["self"];
197
+ return (tx) => tx.moveCall({
198
+ package: packageAddress,
199
+ module: 'recording_advisory',
200
+ function: 'name',
201
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
202
+ });
203
+ }
204
+ //# sourceMappingURL=recording_advisory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recording_advisory.js","sourceRoot":"","sources":["../../../src/contracts/recording_advisory/recording_advisory.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AACzH,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,MAAM,WAAW,GAAG,mDAAmD,CAAC;AACxE,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,8CAA8C;AAC9C,MAAM,CA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AS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAUD;;;GAGG;AACH,MAAM,UAAU,IAAI,CAAC,OAAoB;IACrC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,+BAA+B,CAAC;IAC1E,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,oBAAoB;QAC5B,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveTuple } from '../../../utils/index.js';
5
+ export declare const LanguageCode: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string, "string">], "language_code::language_code::LanguageCode">;
6
+ //# sourceMappingURL=language_code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"language_code.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/recording_language/deps/language_code/language_code.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,eAAO,MAAM,YAAY,iIAAkF,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveTuple } from '../../../utils/index.js';
5
+ import { bcs } from '@mysten/sui/bcs';
6
+ const $moduleName = 'language_code::language_code';
7
+ export const LanguageCode = new MoveTuple({ name: `${$moduleName}::LanguageCode`, fields: [bcs.string()] });
8
+ //# sourceMappingURL=language_code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"language_code.js","sourceRoot":"","sources":["../../../../../src/contracts/recording_language/deps/language_code/language_code.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,8BAA8B,CAAC;AACnD,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,gBAAgB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC"}