@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.
- package/README.md +23 -4
- package/dist/client.d.ts +24 -13
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +25 -8
- package/dist/client.js.map +1 -1
- package/dist/contracts/miso/composition.d.ts +16 -38
- package/dist/contracts/miso/composition.d.ts.map +1 -1
- package/dist/contracts/miso/composition.js +16 -37
- package/dist/contracts/miso/composition.js.map +1 -1
- package/dist/contracts/miso/recording.d.ts +43 -18
- package/dist/contracts/miso/recording.d.ts.map +1 -1
- package/dist/contracts/miso/recording.js +45 -19
- package/dist/contracts/miso/recording.js.map +1 -1
- package/dist/contracts/miso/release.d.ts +2 -0
- package/dist/contracts/miso/release.d.ts.map +1 -1
- package/dist/contracts/miso/track.d.ts +39 -8
- package/dist/contracts/miso/track.d.ts.map +1 -1
- package/dist/contracts/miso/track.js +42 -8
- package/dist/contracts/miso/track.js.map +1 -1
- package/dist/deployments.d.ts +21 -0
- package/dist/deployments.d.ts.map +1 -0
- package/dist/deployments.js +17 -0
- package/dist/deployments.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +2 -0
- package/dist/internal.js.map +1 -1
- package/dist/parsers.d.ts +1 -2
- package/dist/parsers.d.ts.map +1 -1
- package/dist/parsers.js +1 -5
- package/dist/parsers.js.map +1 -1
- package/dist/transactions.d.ts +0 -9
- package/dist/transactions.d.ts.map +1 -1
- package/dist/transactions.js +1 -3
- package/dist/transactions.js.map +1 -1
- package/dist/types.d.ts +17 -8
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -1
- package/src/client.ts +46 -12
- package/src/contracts/miso/composition.ts +16 -53
- package/src/contracts/miso/recording.ts +59 -22
- package/src/contracts/miso/track.ts +51 -8
- package/src/deployments.ts +42 -0
- package/src/index.ts +1 -0
- package/src/internal.ts +2 -0
- package/src/parsers.ts +1 -10
- package/src/transactions.ts +1 -11
- 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
|
-
/**
|
|
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). */
|