Skip to content

Commit 0866c3b

Browse files
authored
Support album fields in playlist uploads (#13902)
1 parent 0bfa30f commit 0866c3b

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.changeset/little-insects-warn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@audius/sdk": patch
3+
---
4+
5+
Minor fix to allow playlist uploads with album fields in the old entity manager schemas

packages/sdk/src/sdk/api/playlists/types.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,14 @@ const CreatePlaylistMetadataSchema = z
4646
trackId: HashId
4747
})
4848
)
49-
)
49+
),
50+
51+
// Album fields
52+
isStreamGated: z.optional(z.boolean()),
53+
streamConditions: z.optional(USDCPurchaseConditions).nullable(),
54+
isDownloadGated: z.optional(z.boolean()),
55+
downloadConditions: z.optional(USDCPurchaseConditions).nullable(),
56+
isScheduledRelease: z.optional(z.boolean())
5057
})
5158
.strict()
5259

0 commit comments

Comments
 (0)