Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

6 changes: 0 additions & 6 deletions docs/docs/developers/api/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ const sidebar: SidebarsConfig = {
label: 'Get User by Handle',
className: 'api-method get',
},
{
type: 'doc',
id: 'developers/api/get-ai-attributed-tracks-by-user-handle',
label: 'Get AI Attributed Tracks by User Handle',
className: 'api-method get',
},
{
type: 'doc',
id: 'developers/api/get-user-id-from-wallet',
Expand Down
2 changes: 0 additions & 2 deletions docs/docs/developers/upload-track-metadata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Contains required and optional fields for uploading a track.
releaseDate?: Date; // Should not be in the future. Defaults to today's date.
tags?: string; // Comma separated list of tags
remixOf?: { tracks: Array<{ parentTrackId: string }> }; // For specifying the track(s) that your track is a remix of
aiAttributionUserId?: string; // Audius user ID of the artist whom your AI-generated track was trained on. Note: Only artists who have opted into AI attribution can be used.
isStreamGated?: boolean; // Whether streaming your track is only available to users who meet certain criteria, which must be specified by `streamConditions`.
streamConditions?: AccessConditions; // See "Specifying Stream Conditions" section below
isDownloadGated?: boolean; // Whether downloading your track is only available to users who meet certain criteria, which must be specified by `downloadConditions`. Note that stream gated tracks are automatically download gated, whereas the reverse is not true.
Expand Down Expand Up @@ -70,7 +69,6 @@ const { trackId } = await audiusSdk.tracks.uploadTrack({
releaseDate: new Date('2022-09-30'),
tags: 'plantlife,love,monstera',
remixOf: { tracks: [{ parentTrackId: 'KVx2xpO' }] },
aiAttributionUserId: '3aE1p',
isStreamGated: true,
streamConditions: {
tipUserId: '7eP5n', // Require tipping user to unlock track for streaming
Expand Down
1 change: 0 additions & 1 deletion docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ module.exports = {
'developers/api/get-purchasers',
'developers/api/get-remixers',
'developers/api/get-top-track-tags',
'developers/api/get-ai-attributed-tracks-by-user-handle',
'developers/api/get-related-users',
'developers/api/verify-id-token',
'developers/api/get-authorized-apps',
Expand Down
9 changes: 1 addition & 8 deletions packages/commands/src/user/create-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ export const createUserCommand = new Command('create')
'-e, --email <email>',
'The email for the new user (chosen randomly if not specified)'
)
.option(
'-ai, --allow-ai-attribution [isAllowed]',
"Whether to allow other users to attribute AI tracks using this user's likeness",
parseBoolean
)
.addOption(outputFormatOption)
.action(async (handle, options) => {
const audiusSdk = await initializeAudiusSdk()
Expand All @@ -37,8 +32,7 @@ export const createUserCommand = new Command('create')

const {
email = `audius-cmd+${handle || rand}@audius.co`,
password = 'password',
allowAiAttribution
password = 'password'
} = options

const hedgehog = getHedgehog()
Expand All @@ -47,7 +41,6 @@ export const createUserCommand = new Command('create')

const { metadata: newMetadata } = await audiusSdk.users.createUser({
metadata: {
allowAiAttribution,
bio: `account generated by audius-cmd ${rand}`,
handle: handle || `handle${rand}`,
location: `location${rand}`,
Expand Down
31 changes: 12 additions & 19 deletions packages/commands/src/user/edit-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,19 @@ export const editUserCommand = new Command('edit')
.option('-n, --name <name>', "The user's new name")
.option('-b, --bio <bio>', "The user's new bio")
.option('-l, --location <location>', "The user's new location")
.option(
'-ai, --allow-ai-attribution <isAllowed>',
"Whether to allow other users to attribute AI tracks using this user's likeness",
parseBoolean
)
.addOption(outputFormatOption)
.action(
async (handle, { name, bio, location, allowAiAttribution, output }) => {
const audiusSdk = await initializeAudiusSdk({ handle })
const userId = await getCurrentUserId()
.action(async (handle, { name, bio, location, output }) => {
const audiusSdk = await initializeAudiusSdk({ handle })
const userId = await getCurrentUserId()

const result = await audiusSdk.users.updateProfile({
userId,
metadata: { name, bio, location, allowAiAttribution }
})
const result = await audiusSdk.users.updateProfile({
userId,
metadata: { name, bio, location }
})

if (output === 'json') {
console.log(JSON.stringify(result))
} else {
console.log(chalk.green('Successfully updated user!'))
}
if (output === 'json') {
console.log(JSON.stringify(result))
} else {
console.log(chalk.green('Successfully updated user!'))
}
)
})
2 changes: 0 additions & 2 deletions packages/common/src/adapters/track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ export const userTrackMetadataFromSDK = (
license: (input.license as License) ?? null,

// Nullable fields
ai_attribution_user_id: input.aiAttributionUserId ?? null,
allowed_api_keys: input.allowedApiKeys ?? null,
artists: input.artists
? transformAndCleanList(input.artists, resourceContributorFromSDK)
Expand Down Expand Up @@ -271,7 +270,6 @@ export const trackMetadataForUploadToSdk = (
previewStartSeconds: input.preview_start_seconds ?? undefined,
previewCid: input.preview_cid ?? '',
ddexApp: input.ddex_app ?? '',
aiAttributionUserId: OptionalId.parse(input.ai_attribution_user_id),
audioUploadId: input.audio_upload_id ?? undefined,
duration: input.duration ?? undefined,
musicalKey: input.musical_key
Expand Down
1 change: 0 additions & 1 deletion packages/common/src/adapters/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ export const userMetadataToSdk = (
'name',
'handle',
'is_deactivated',
'allow_ai_attribution',
'profile_type',
'spl_usdc_payout_wallet'
])
Expand Down
110 changes: 0 additions & 110 deletions packages/common/src/api/tan-query/lineups/useAiTracks.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/common/src/messages/edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,12 @@ export const priceAndAudienceMessages = {
export const advancedTrackMessages = {
title: 'Advanced',
description: 'Share metadata to help manage your music.',
isAiGenerated: 'AI-Generated',
bpm: {
header: 'Tempo',
label: 'BPM',
validError: 'Must be a valid decimal number'
},
musicalKey: 'Key',
aiGenerated: {
header: 'AI Generated',
description: 'Mark this track as AI generated',
tooltip:
'If your AI-generated track was trained on an existing Audius artist, you can give them credit here. Only users who have opted-in will appear in this list.',
placeholder: 'Search for Users',
requiredError: 'Valid user must be selected.'
},
apiAllowed: {
header: 'Disallow Streaming via the API',
description:
Expand Down
5 changes: 0 additions & 5 deletions packages/common/src/messages/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export const settingsMessages = {
matrixMode: 'Matrix',
signOut: 'Sign Out',

aiGeneratedCardTitle: 'AI Generated music',
appearanceTitle: 'Appearance',
inboxSettingsCardTitle: 'Inbox Settings',
commentSettingsCardTitle: 'Comment Settings',
Expand All @@ -29,8 +28,6 @@ export const settingsMessages = {
verificationCardTitle: 'Verification',
desktopAppCardTitle: 'Download the Desktop App',

aiGeneratedCardDescription:
'Opt in to allow AI models to be trained on your likeness, and to let users credit you in their AI generated works.',
appearanceDescription:
"Enable dark mode or choose 'Auto' to change with your system settings.",
inboxSettingsCardDescription:
Expand All @@ -50,8 +47,6 @@ export const settingsMessages = {
labelAccountCardDescription:
'Identify as a record label on your Audius profile.',

aiGeneratedEnabled: 'Enabled',
aiGeneratedButtonText: 'AI Generated Music Settings',
inboxSettingsButtonText: 'Inbox Settings',
commentSettingsButtonText: 'Comment Settings',
notificationsButtonText: 'Configure Notifications',
Expand Down
2 changes: 0 additions & 2 deletions packages/common/src/models/Search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ type BaseUser = Pick<
export type SearchUser = UserMultihash &
UserImage &
BaseUser & {
allow_ai_attribution?: boolean
album_count: null
bio: string
followee_count: null
Expand All @@ -39,7 +38,6 @@ export type SearchUser = UserMultihash &
}

export type SearchTrack = TrackImage & {
ai_attribution_user_id?: number
_co_sign: undefined
description: string | null
genre: string
Expand Down
1 change: 0 additions & 1 deletion packages/common/src/models/Track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ type CoverArtSizesWithMirror = CoverArtSizes & {
}

export type TrackMetadata = {
ai_attribution_user_id?: Nullable<number>
allowed_api_keys?: Nullable<string[]>
audio_upload_id?: Nullable<string>
blocknumber: number
Expand Down
1 change: 0 additions & 1 deletion packages/common/src/models/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export type SocialPlatform = 'x' | 'instagram' | 'tiktok'

export type UserMetadata = {
album_count: number
allow_ai_attribution?: boolean
artist_coin_badge?: Nullable<{
mint: string
logo_uri: string
Expand Down
2 changes: 0 additions & 2 deletions packages/common/src/schemas/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const trackMetadataSchema = {
isrc: null,
iswc: null,
is_playlist_upload: false,
ai_attribution_user_id: null,
ddex_release_ids: null,
ddex_app: null,
artists: null,
Expand Down Expand Up @@ -137,7 +136,6 @@ export const newCollectionMetadata = (fields?: any, validate = false) => {
}

const userMetadataSchema = {
allow_ai_attribution: false,
wallet: '',
name: null,
handle: '',
Expand Down
1 change: 0 additions & 1 deletion packages/common/src/schemas/upload/uploadFormSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ const createSdkSchema = () =>
z
.object({
track_id: z.optional(z.number()).nullable(),
ai_attribution_user_id: z.optional(z.number()).nullable(),
allowed_api_keys: z.optional(z.array(z.string())).nullable(),
description: z
.optional(z.string().max(MAX_DESCRIPTION_LENGTH))
Expand Down
6 changes: 0 additions & 6 deletions packages/common/src/store/lineup/registry.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { LineupState } from '~/models/Lineup'
import {
aiPageLineupActions,
aiPageSelectors,
collectionPageLineupActions,
collectionPageSelectors,
feedPageLineupActions,
Expand Down Expand Up @@ -35,10 +33,6 @@ type LineupEntry = {
}

export const lineupRegistry: Record<string, LineupEntry> = {
[aiPageLineupActions.prefix]: {
actions: aiPageLineupActions,
selector: aiPageSelectors.getLineup
},
[collectionPageLineupActions.prefix]: {
actions: collectionPageLineupActions,
selector: collectionPageSelectors.getCollectionTracksLineup
Expand Down
11 changes: 0 additions & 11 deletions packages/common/src/store/pages/ai/lineup/actions.ts

This file was deleted.

Loading