Skip to content

Commit 8fc2f10

Browse files
Add access authorities to track response (#13881)
1 parent aa6574b commit 8fc2f10

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.changeset/five-avocados-nail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@audius/sdk": minor
3+
---
4+
5+
Add accessAuthorities to track model

packages/sdk/src/sdk/api/generated/default/models/Track.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,12 @@ export interface Track {
542542
* @memberof Track
543543
*/
544544
isStreamGated: boolean;
545+
/**
546+
* Wallet addresses that can sign to authorize stream access (programmable distribution). When empty or omitted, the track is public and validator/creator nodes can serve it.
547+
* @type {Array<string>}
548+
* @memberof Track
549+
*/
550+
accessAuthorities?: Array<string> | null;
545551
/**
546552
* How to unlock stream access to the track
547553
* @type {AccessGate}
@@ -725,6 +731,7 @@ export function TrackFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tra
725731
'producerCopyrightLine': !exists(json, 'producer_copyright_line') ? undefined : DdexCopyrightFromJSON(json['producer_copyright_line']),
726732
'parentalWarningType': !exists(json, 'parental_warning_type') ? undefined : json['parental_warning_type'],
727733
'isStreamGated': json['is_stream_gated'],
734+
'accessAuthorities': !exists(json, 'access_authorities') ? undefined : json['access_authorities'],
728735
'streamConditions': !exists(json, 'stream_conditions') ? undefined : AccessGateFromJSON(json['stream_conditions']),
729736
'isDownloadGated': json['is_download_gated'],
730737
'downloadConditions': !exists(json, 'download_conditions') ? undefined : AccessGateFromJSON(json['download_conditions']),
@@ -817,6 +824,7 @@ export function TrackToJSON(value?: Track | null): any {
817824
'producer_copyright_line': DdexCopyrightToJSON(value.producerCopyrightLine),
818825
'parental_warning_type': value.parentalWarningType,
819826
'is_stream_gated': value.isStreamGated,
827+
'access_authorities': value.accessAuthorities,
820828
'stream_conditions': AccessGateToJSON(value.streamConditions),
821829
'is_download_gated': value.isDownloadGated,
822830
'download_conditions': AccessGateToJSON(value.downloadConditions),

0 commit comments

Comments
 (0)