///
import { z } from 'zod';
import type { ClaimableTokensClient, EmailEncryptionService, EntityManagerService, SolanaClient, StorageService } from '../../services';
import { ProgressHandler } from '../../services/Storage/types';
import { ImageFile } from '../../types/File';
import { reactionsMap } from '../../utils/reactionsMap';
import type { CreateUserRequest, UpdateUserRequest } from '../generated/default';
export type UsersApiServicesConfig = {
storage: StorageService;
entityManager?: EntityManagerService;
claimableTokensClient: ClaimableTokensClient;
solanaClient: SolanaClient;
emailEncryptionService: EmailEncryptionService;
};
export declare const UserEventsSchema: z.ZodObject<{
referrer: z.ZodOptional>;
isMobileUser: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
referrer?: number | undefined;
isMobileUser?: boolean | undefined;
}, {
referrer?: string | undefined;
isMobileUser?: boolean | undefined;
}>;
export declare const CreateUserSchema: z.ZodObject<{
profilePictureFile: z.ZodOptional;
name: z.ZodOptional;
type: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}>, z.ZodType, z.ZodObject<{
uri: z.ZodString;
name: z.ZodNullable;
type: z.ZodNullable;
copyError: z.ZodOptional;
fileCopyUri: z.ZodNullable>;
size: z.ZodNullable>;
}, "strip", z.ZodTypeAny, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>]>, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>>;
coverArtFile: z.ZodOptional;
name: z.ZodOptional;
type: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}>, z.ZodType, z.ZodObject<{
uri: z.ZodString;
name: z.ZodNullable;
type: z.ZodNullable;
copyError: z.ZodOptional;
fileCopyUri: z.ZodNullable>;
size: z.ZodNullable>;
}, "strip", z.ZodTypeAny, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>]>, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>>;
onProgress: z.ZodOptional, z.ZodUnknown>>;
metadata: z.ZodObject<{
allowAiAttribution: z.ZodOptional;
bio: z.ZodOptional;
coverPhoto: z.ZodOptional;
coverPhotoSizes: z.ZodOptional;
donation: z.ZodOptional;
handle: z.ZodOptional;
events: z.ZodOptional>;
isMobileUser: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
referrer?: number | undefined;
isMobileUser?: boolean | undefined;
}, {
referrer?: string | undefined;
isMobileUser?: boolean | undefined;
}>>;
location: z.ZodOptional;
name: z.ZodOptional;
profilePicture: z.ZodOptional;
profilePictureSizes: z.ZodOptional;
splUsdcPayoutWallet: z.ZodOptional;
wallet: z.ZodString;
website: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
wallet: string;
allowAiAttribution?: boolean | undefined;
bio?: string | undefined;
coverPhoto?: string | undefined;
coverPhotoSizes?: string | undefined;
donation?: string | undefined;
handle?: string | undefined;
events?: {
referrer?: number | undefined;
isMobileUser?: boolean | undefined;
} | undefined;
location?: string | undefined;
name?: string | undefined;
profilePicture?: string | undefined;
profilePictureSizes?: string | undefined;
splUsdcPayoutWallet?: string | undefined;
website?: string | undefined;
}, {
wallet: string;
allowAiAttribution?: boolean | undefined;
bio?: string | undefined;
coverPhoto?: string | undefined;
coverPhotoSizes?: string | undefined;
donation?: string | undefined;
handle?: string | undefined;
events?: {
referrer?: string | undefined;
isMobileUser?: boolean | undefined;
} | undefined;
location?: string | undefined;
name?: string | undefined;
profilePicture?: string | undefined;
profilePictureSizes?: string | undefined;
splUsdcPayoutWallet?: string | undefined;
website?: string | undefined;
}>;
}, "strip", z.ZodTypeAny, {
metadata: {
wallet: string;
allowAiAttribution?: boolean | undefined;
bio?: string | undefined;
coverPhoto?: string | undefined;
coverPhotoSizes?: string | undefined;
donation?: string | undefined;
handle?: string | undefined;
events?: {
referrer?: number | undefined;
isMobileUser?: boolean | undefined;
} | undefined;
location?: string | undefined;
name?: string | undefined;
profilePicture?: string | undefined;
profilePictureSizes?: string | undefined;
splUsdcPayoutWallet?: string | undefined;
website?: string | undefined;
};
profilePictureFile?: File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined;
coverArtFile?: File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined;
onProgress?: ((...args: unknown[]) => unknown) | undefined;
}, {
metadata: {
wallet: string;
allowAiAttribution?: boolean | undefined;
bio?: string | undefined;
coverPhoto?: string | undefined;
coverPhotoSizes?: string | undefined;
donation?: string | undefined;
handle?: string | undefined;
events?: {
referrer?: string | undefined;
isMobileUser?: boolean | undefined;
} | undefined;
location?: string | undefined;
name?: string | undefined;
profilePicture?: string | undefined;
profilePictureSizes?: string | undefined;
splUsdcPayoutWallet?: string | undefined;
website?: string | undefined;
};
profilePictureFile?: File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined;
coverArtFile?: File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined;
onProgress?: ((...args: unknown[]) => unknown) | undefined;
}>;
export type EntityManagerCreateUserRequest = Omit, 'onProgress'> & {
onProgress?: (progress: number) => void;
};
export declare const CreateAssociatedWalletsSchema: z.ZodRecord>;
declare const PlaylistLibraryIdentifierSchema: z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"playlist">;
playlist_id: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
type: "playlist";
playlist_id: number;
}, {
type: "playlist";
playlist_id: number;
}>, z.ZodObject<{
type: z.ZodLiteral<"explore_playlist">;
playlist_id: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "explore_playlist";
playlist_id: string;
}, {
type: "explore_playlist";
playlist_id: string;
}>]>;
type PlaylistLibraryFolder = {
id: string;
type: 'folder';
name: string;
contents: Array>;
};
declare const PlaylistLibrarySchema: z.ZodObject<{
contents: z.ZodArray, z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"playlist">;
playlist_id: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
type: "playlist";
playlist_id: number;
}, {
type: "playlist";
playlist_id: number;
}>, z.ZodObject<{
type: z.ZodLiteral<"explore_playlist">;
playlist_id: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "explore_playlist";
playlist_id: string;
}, {
type: "explore_playlist";
playlist_id: string;
}>]>]>, "many">;
}, "strip", z.ZodTypeAny, {
contents: ({
type: "playlist";
playlist_id: number;
} | {
type: "explore_playlist";
playlist_id: string;
} | PlaylistLibraryFolder)[];
}, {
contents: ({
type: "playlist";
playlist_id: number;
} | {
type: "explore_playlist";
playlist_id: string;
} | PlaylistLibraryFolder)[];
}>;
export type EntityManagerPlaylistLibraryContents = z.input['contents'];
export declare const UpdateProfileSchema: z.ZodObject<{
userId: z.ZodEffects;
events: z.ZodOptional>;
isMobileUser: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
referrer?: number | undefined;
isMobileUser?: boolean | undefined;
}, {
referrer?: string | undefined;
isMobileUser?: boolean | undefined;
}>>;
profilePictureFile: z.ZodOptional;
name: z.ZodOptional;
type: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}>, z.ZodType, z.ZodObject<{
uri: z.ZodString;
name: z.ZodNullable;
type: z.ZodNullable;
copyError: z.ZodOptional;
fileCopyUri: z.ZodNullable>;
size: z.ZodNullable>;
}, "strip", z.ZodTypeAny, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>]>, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>>;
coverArtFile: z.ZodOptional;
name: z.ZodOptional;
type: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}>, z.ZodType, z.ZodObject<{
uri: z.ZodString;
name: z.ZodNullable;
type: z.ZodNullable;
copyError: z.ZodOptional;
fileCopyUri: z.ZodNullable>;
size: z.ZodNullable>;
}, "strip", z.ZodTypeAny, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>]>, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>>;
onProgress: z.ZodOptional, z.ZodUnknown>>;
metadata: z.ZodObject<{
name: z.ZodOptional;
handle: z.ZodOptional;
bio: z.ZodOptional;
website: z.ZodOptional;
donation: z.ZodOptional;
location: z.ZodOptional;
profileType: z.ZodOptional>>;
metadataMultihash: z.ZodOptional;
events: z.ZodOptional>;
isMobileUser: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
referrer?: number | undefined;
isMobileUser?: boolean | undefined;
}, {
referrer?: string | undefined;
isMobileUser?: boolean | undefined;
}>>;
isDeactivated: z.ZodOptional;
artistPickTrackId: z.ZodOptional>;
allowAiAttribution: z.ZodOptional;
playlistLibrary: z.ZodOptional, z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"playlist">;
playlist_id: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
type: "playlist";
playlist_id: number;
}, {
type: "playlist";
playlist_id: number;
}>, z.ZodObject<{
type: z.ZodLiteral<"explore_playlist">;
playlist_id: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "explore_playlist";
playlist_id: string;
}, {
type: "explore_playlist";
playlist_id: string;
}>]>]>, "many">;
}, "strip", z.ZodTypeAny, {
contents: ({
type: "playlist";
playlist_id: number;
} | {
type: "explore_playlist";
playlist_id: string;
} | PlaylistLibraryFolder)[];
}, {
contents: ({
type: "playlist";
playlist_id: number;
} | {
type: "explore_playlist";
playlist_id: string;
} | PlaylistLibraryFolder)[];
}>>;
twitterHandle: z.ZodOptional;
instagramHandle: z.ZodOptional;
tiktokHandle: z.ZodOptional;
splUsdcPayoutWallet: z.ZodNullable>>;
coinFlairMint: z.ZodOptional>;
coverPhoto: z.ZodOptional;
coverPhotoSizes: z.ZodOptional;
profilePicture: z.ZodOptional;
profilePictureSizes: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
name?: string | undefined;
handle?: string | undefined;
bio?: string | undefined;
website?: string | undefined;
donation?: string | undefined;
location?: string | undefined;
profileType?: "label" | null | undefined;
metadataMultihash?: string | undefined;
events?: {
referrer?: number | undefined;
isMobileUser?: boolean | undefined;
} | undefined;
isDeactivated?: boolean | undefined;
artistPickTrackId?: number | undefined;
allowAiAttribution?: boolean | undefined;
playlistLibrary?: {
contents: ({
type: "playlist";
playlist_id: number;
} | {
type: "explore_playlist";
playlist_id: string;
} | PlaylistLibraryFolder)[];
} | undefined;
twitterHandle?: string | undefined;
instagramHandle?: string | undefined;
tiktokHandle?: string | undefined;
splUsdcPayoutWallet?: string | null | undefined;
coinFlairMint?: string | null | undefined;
coverPhoto?: string | undefined;
coverPhotoSizes?: string | undefined;
profilePicture?: string | undefined;
profilePictureSizes?: string | undefined;
}, {
name?: string | undefined;
handle?: string | undefined;
bio?: string | undefined;
website?: string | undefined;
donation?: string | undefined;
location?: string | undefined;
profileType?: "label" | null | undefined;
metadataMultihash?: string | undefined;
events?: {
referrer?: string | undefined;
isMobileUser?: boolean | undefined;
} | undefined;
isDeactivated?: boolean | undefined;
artistPickTrackId?: string | undefined;
allowAiAttribution?: boolean | undefined;
playlistLibrary?: {
contents: ({
type: "playlist";
playlist_id: number;
} | {
type: "explore_playlist";
playlist_id: string;
} | PlaylistLibraryFolder)[];
} | undefined;
twitterHandle?: string | undefined;
instagramHandle?: string | undefined;
tiktokHandle?: string | undefined;
splUsdcPayoutWallet?: string | null | undefined;
coinFlairMint?: string | null | undefined;
coverPhoto?: string | undefined;
coverPhotoSizes?: string | undefined;
profilePicture?: string | undefined;
profilePictureSizes?: string | undefined;
}>;
}, "strict", z.ZodTypeAny, {
userId: number;
metadata: {
name?: string | undefined;
handle?: string | undefined;
bio?: string | undefined;
website?: string | undefined;
donation?: string | undefined;
location?: string | undefined;
profileType?: "label" | null | undefined;
metadataMultihash?: string | undefined;
events?: {
referrer?: number | undefined;
isMobileUser?: boolean | undefined;
} | undefined;
isDeactivated?: boolean | undefined;
artistPickTrackId?: number | undefined;
allowAiAttribution?: boolean | undefined;
playlistLibrary?: {
contents: ({
type: "playlist";
playlist_id: number;
} | {
type: "explore_playlist";
playlist_id: string;
} | PlaylistLibraryFolder)[];
} | undefined;
twitterHandle?: string | undefined;
instagramHandle?: string | undefined;
tiktokHandle?: string | undefined;
splUsdcPayoutWallet?: string | null | undefined;
coinFlairMint?: string | null | undefined;
coverPhoto?: string | undefined;
coverPhotoSizes?: string | undefined;
profilePicture?: string | undefined;
profilePictureSizes?: string | undefined;
};
events?: {
referrer?: number | undefined;
isMobileUser?: boolean | undefined;
} | undefined;
profilePictureFile?: File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined;
coverArtFile?: File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined;
onProgress?: ((...args: unknown[]) => unknown) | undefined;
}, {
userId: string;
metadata: {
name?: string | undefined;
handle?: string | undefined;
bio?: string | undefined;
website?: string | undefined;
donation?: string | undefined;
location?: string | undefined;
profileType?: "label" | null | undefined;
metadataMultihash?: string | undefined;
events?: {
referrer?: string | undefined;
isMobileUser?: boolean | undefined;
} | undefined;
isDeactivated?: boolean | undefined;
artistPickTrackId?: string | undefined;
allowAiAttribution?: boolean | undefined;
playlistLibrary?: {
contents: ({
type: "playlist";
playlist_id: number;
} | {
type: "explore_playlist";
playlist_id: string;
} | PlaylistLibraryFolder)[];
} | undefined;
twitterHandle?: string | undefined;
instagramHandle?: string | undefined;
tiktokHandle?: string | undefined;
splUsdcPayoutWallet?: string | null | undefined;
coinFlairMint?: string | null | undefined;
coverPhoto?: string | undefined;
coverPhotoSizes?: string | undefined;
profilePicture?: string | undefined;
profilePictureSizes?: string | undefined;
};
events?: {
referrer?: string | undefined;
isMobileUser?: boolean | undefined;
} | undefined;
profilePictureFile?: File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined;
coverArtFile?: File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined;
onProgress?: ((...args: unknown[]) => unknown) | undefined;
}>;
export type EntityManagerUpdateProfileRequest = Omit, 'onProgress'> & {
onProgress?: ProgressHandler;
};
export declare const FollowUserSchema: z.ZodObject<{
userId: z.ZodEffects;
followeeUserId: z.ZodEffects;
}, "strict", z.ZodTypeAny, {
userId: number;
followeeUserId: number;
}, {
userId: string;
followeeUserId: string;
}>;
export type EntityManagerFollowUserRequest = z.input;
export declare const UnfollowUserSchema: z.ZodObject<{
userId: z.ZodEffects;
followeeUserId: z.ZodEffects;
}, "strict", z.ZodTypeAny, {
userId: number;
followeeUserId: number;
}, {
userId: string;
followeeUserId: string;
}>;
export type EntityManagerUnfollowUserRequest = z.input;
export declare const SubscribeToUserSchema: z.ZodObject<{
userId: z.ZodEffects;
subscribeeUserId: z.ZodEffects;
}, "strict", z.ZodTypeAny, {
userId: number;
subscribeeUserId: number;
}, {
userId: string;
subscribeeUserId: string;
}>;
export type EntityManagerSubscribeToUserRequest = z.input;
export declare const UnsubscribeFromUserSchema: z.ZodObject<{
userId: z.ZodEffects;
subscribeeUserId: z.ZodEffects;
}, "strict", z.ZodTypeAny, {
userId: number;
subscribeeUserId: number;
}, {
userId: string;
subscribeeUserId: string;
}>;
export type EntityManagerUnsubscribeFromUserRequest = z.input;
export declare const SendTipSchema: z.ZodObject<{
amount: z.ZodNumber;
senderUserId: z.ZodEffects;
receiverUserId: z.ZodEffects;
}, "strict", z.ZodTypeAny, {
amount: number;
senderUserId: number;
receiverUserId: number;
}, {
amount: number;
senderUserId: string;
receiverUserId: string;
}>;
export type SendTipRequest = z.input;
export type ReactionTypes = keyof typeof reactionsMap;
export declare const SendTipReactionRequestSchema: z.ZodObject<{
userId: z.ZodEffects;
metadata: z.ZodObject<{
reactedTo: z.ZodString;
reactionValue: z.ZodEffects, number, "😍" | "🔥" | "🥳" | "🤯">;
}, "strip", z.ZodTypeAny, {
reactedTo: string;
reactionValue: number;
}, {
reactedTo: string;
reactionValue: "😍" | "🔥" | "🥳" | "🤯";
}>;
}, "strip", z.ZodTypeAny, {
userId: number;
metadata: {
reactedTo: string;
reactionValue: number;
};
}, {
userId: string;
metadata: {
reactedTo: string;
reactionValue: "😍" | "🔥" | "🥳" | "🤯";
};
}>;
export type SendTipReactionRequest = z.input;
export interface EmailRequest {
emailOwnerUserId: number;
receivingUserId: number;
initialEmailEncryptionUuid: number;
granteeUserIds?: string[];
email: string;
}
export declare const EmailSchema: z.ZodObject<{
emailOwnerUserId: z.ZodNumber;
receivingUserId: z.ZodNumber;
initialEmailEncryptionUuid: z.ZodNumber;
granteeUserIds: z.ZodOptional>;
email: z.ZodString;
}, "strip", z.ZodTypeAny, {
email: string;
emailOwnerUserId: number;
receivingUserId: number;
initialEmailEncryptionUuid: number;
granteeUserIds?: string[] | undefined;
}, {
email: string;
emailOwnerUserId: number;
receivingUserId: number;
initialEmailEncryptionUuid: number;
granteeUserIds?: string[] | undefined;
}>;
export declare const WalletSchema: z.ZodDiscriminatedUnion<"chain", [z.ZodObject<{
address: z.ZodEffects;
chain: z.ZodLiteral<"sol">;
}, "strip", z.ZodTypeAny, {
address: string;
chain: "sol";
}, {
address: string;
chain: "sol";
}>, z.ZodObject<{
address: z.ZodPipeline>;
chain: z.ZodLiteral<"eth">;
}, "strip", z.ZodTypeAny, {
address: `0x${string}`;
chain: "eth";
}, {
address: string;
chain: "eth";
}>]>;
export declare const AddAssociatedWalletSchema: z.ZodObject<{
userId: z.ZodEffects;
wallet: z.ZodDiscriminatedUnion<"chain", [z.ZodObject<{
address: z.ZodEffects;
chain: z.ZodLiteral<"sol">;
}, "strip", z.ZodTypeAny, {
address: string;
chain: "sol";
}, {
address: string;
chain: "sol";
}>, z.ZodObject<{
address: z.ZodPipeline>;
chain: z.ZodLiteral<"eth">;
}, "strip", z.ZodTypeAny, {
address: `0x${string}`;
chain: "eth";
}, {
address: string;
chain: "eth";
}>]>;
signature: z.ZodString;
}, "strip", z.ZodTypeAny, {
signature: string;
wallet: {
address: string;
chain: "sol";
} | {
address: `0x${string}`;
chain: "eth";
};
userId: number;
}, {
signature: string;
wallet: {
address: string;
chain: "sol";
} | {
address: string;
chain: "eth";
};
userId: string;
}>;
export declare const RemoveAssociatedWalletSchema: z.ZodObject<{
userId: z.ZodEffects;
wallet: z.ZodDiscriminatedUnion<"chain", [z.ZodObject<{
address: z.ZodEffects;
chain: z.ZodLiteral<"sol">;
}, "strip", z.ZodTypeAny, {
address: string;
chain: "sol";
}, {
address: string;
chain: "sol";
}>, z.ZodObject<{
address: z.ZodPipeline>;
chain: z.ZodLiteral<"eth">;
}, "strip", z.ZodTypeAny, {
address: `0x${string}`;
chain: "eth";
}, {
address: string;
chain: "eth";
}>]>;
}, "strip", z.ZodTypeAny, {
wallet: {
address: string;
chain: "sol";
} | {
address: `0x${string}`;
chain: "eth";
};
userId: number;
}, {
wallet: {
address: string;
chain: "sol";
} | {
address: string;
chain: "eth";
};
userId: string;
}>;
export type AddAssociatedWalletRequest = z.input;
export type RemoveAssociatedWalletRequest = z.input;
export declare const UpdateCollectiblesSchema: z.ZodObject<{
userId: z.ZodEffects;
collectibles: z.ZodUnion<[z.ZodObject<{
order: z.ZodArray;
}, "strip", z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.objectOutputType<{
order: z.ZodArray;
}, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "strip">, z.objectInputType<{
order: z.ZodArray;
}, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "strip">>, z.ZodNull]>;
}, "strip", z.ZodTypeAny, {
userId: number;
collectibles: ({
order: string[];
} & {
[k: string]: {};
}) | null;
}, {
userId: string;
collectibles: ({
order: string[];
} & {
[k: string]: {};
}) | null;
}>;
export type UpdateCollectiblesRequest = z.input;
export type UserFileUploadParams = {
profilePictureFile?: z.input;
coverArtFile?: z.input;
onProgress?: ProgressHandler;
};
export type CreateUserRequestWithFiles = CreateUserRequest & UserFileUploadParams;
export type UpdateUserRequestWithFiles = UpdateUserRequest & UserFileUploadParams;
export {};