@misonetwork/sdk 0.5.0 → 0.7.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 (51) hide show
  1. package/README.md +23 -4
  2. package/dist/client.d.ts +24 -13
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +25 -8
  5. package/dist/client.js.map +1 -1
  6. package/dist/contracts/miso/composition.d.ts +16 -38
  7. package/dist/contracts/miso/composition.d.ts.map +1 -1
  8. package/dist/contracts/miso/composition.js +16 -37
  9. package/dist/contracts/miso/composition.js.map +1 -1
  10. package/dist/contracts/miso/recording.d.ts +43 -18
  11. package/dist/contracts/miso/recording.d.ts.map +1 -1
  12. package/dist/contracts/miso/recording.js +45 -19
  13. package/dist/contracts/miso/recording.js.map +1 -1
  14. package/dist/contracts/miso/release.d.ts +2 -0
  15. package/dist/contracts/miso/release.d.ts.map +1 -1
  16. package/dist/contracts/miso/track.d.ts +39 -8
  17. package/dist/contracts/miso/track.d.ts.map +1 -1
  18. package/dist/contracts/miso/track.js +42 -8
  19. package/dist/contracts/miso/track.js.map +1 -1
  20. package/dist/deployments.d.ts +21 -0
  21. package/dist/deployments.d.ts.map +1 -0
  22. package/dist/deployments.js +17 -0
  23. package/dist/deployments.js.map +1 -0
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +1 -0
  27. package/dist/index.js.map +1 -1
  28. package/dist/internal.d.ts.map +1 -1
  29. package/dist/internal.js +2 -0
  30. package/dist/internal.js.map +1 -1
  31. package/dist/parsers.d.ts +1 -2
  32. package/dist/parsers.d.ts.map +1 -1
  33. package/dist/parsers.js +1 -5
  34. package/dist/parsers.js.map +1 -1
  35. package/dist/transactions.d.ts +0 -9
  36. package/dist/transactions.d.ts.map +1 -1
  37. package/dist/transactions.js +1 -3
  38. package/dist/transactions.js.map +1 -1
  39. package/dist/types.d.ts +17 -8
  40. package/dist/types.d.ts.map +1 -1
  41. package/package.json +5 -1
  42. package/src/client.ts +46 -12
  43. package/src/contracts/miso/composition.ts +16 -53
  44. package/src/contracts/miso/recording.ts +59 -22
  45. package/src/contracts/miso/track.ts +51 -8
  46. package/src/deployments.ts +42 -0
  47. package/src/index.ts +1 -0
  48. package/src/internal.ts +2 -0
  49. package/src/parsers.ts +1 -10
  50. package/src/transactions.ts +1 -11
  51. package/src/types.ts +17 -9
package/src/types.ts CHANGED
@@ -35,7 +35,10 @@ export interface Composition {
35
35
  state: CompositionState;
36
36
  /** Primary title of the composition. */
37
37
  title: string;
38
- /** Royalty rate this composition earns from each recording's revenue (basis points, 0-2000). */
38
+ /**
39
+ * Royalty rate this composition earns from each recording's revenue (basis
40
+ * points, 0-10000). Immutable for the composition's lifetime.
41
+ */
39
42
  royaltyRate: BPS;
40
43
  }
41
44
 
@@ -48,14 +51,6 @@ export interface CompositionPublishedEvent {
48
51
  compositionId: string;
49
52
  }
50
53
 
51
- /**
52
- * Emitted when a composition's royalty rate is set or changed. The composition
53
- * is identified by the event's `CompositionShare` phantom type, not a field.
54
- */
55
- export interface CompositionRoyaltySetEvent {
56
- royaltyRateBps: number;
57
- }
58
-
59
54
  /**
60
55
  * Admin cap for a Composition, derived deterministically from the Composition object ID.
61
56
  *
@@ -96,6 +91,12 @@ export interface Recording {
96
91
  id: string;
97
92
  /** Current lifecycle state. */
98
93
  state: RecordingState;
94
+ /**
95
+ * Object ID of the parent composition. An identity/membership handle — not a
96
+ * revenue routing target: the composition is paid via its recording-share
97
+ * ownership, settled at recording creation. Immutable.
98
+ */
99
+ compositionId: string;
99
100
  }
100
101
 
101
102
  /**
@@ -135,6 +136,13 @@ export type TrackState = "Unassigned" | "Assigned";
135
136
  export interface Track {
136
137
  /** Current state of the track (Unassigned until the release claims it, then Assigned). */
137
138
  state: TrackState;
139
+ /**
140
+ * ID of the composition underlying this track's recording. An identity/
141
+ * membership handle — not a revenue routing target: the composition is paid
142
+ * via its recording-share ownership, and a track routes its full split to the
143
+ * recording.
144
+ */
145
+ compositionId: string;
138
146
  /** ID of the recording on this track. */
139
147
  recordingId: string;
140
148
  /** Revenue split for this track within the release (in basis points). */