import type { APIApplicationIdentityProfile, APIApplicationIdentityProfileData, APIUserApplicationIdentity } from '../../payloads/v9/index'; /** * @see {@link https://docs.discord.com/developers/resources/application-identity-profile#update-application-identity-profile} */ export interface RESTPatchAPIApplicationIdentityProfileJSONBody { /** * The user's username in your system (max 1024 characters) */ username?: string | undefined; /** * The profile data to update * * @remarks This field is fully replaced on every request, always send the complete set of data you want stored. If it is omitted from the request body entirely, existing data is left untouched. * The serialized data is capped at 10 KB and can hold up to 30 dynamic fields. */ data?: APIApplicationIdentityProfileData | undefined; } /** * @remarks This endpoint returns a `201 Created` on the first write and a `204 No Content` on subsequent updates. * @see {@link https://docs.discord.com/developers/resources/application-identity-profile#update-application-identity-profile} */ export type RESTPatchAPIApplicationIdentityProfileResult = APIApplicationIdentityProfile | undefined; /** * @see {@link https://docs.discord.com/developers/resources/application-identity-profile#get-application-identity-profile} */ export type RESTGetAPIApplicationIdentityProfileResult = APIApplicationIdentityProfile; /** * @see {@link https://docs.discord.com/developers/resources/application-identity-profile#get-application-identities-by-user-id} */ export interface RESTGetAPIUserApplicationIdentitiesResult { /** * The application identities for the specified user and application */ identities: APIUserApplicationIdentity[]; } /** * @see {@link https://docs.discord.com/developers/resources/application-identity-profile#get-application-identities-by-external-id} */ export interface RESTGetAPIApplicationIdentitiesQuery { /** * Provider-specific identifier used to disambiguate matching provider type and provider-issued user ID */ provider_id?: string | undefined; } /** * @see {@link https://docs.discord.com/developers/resources/application-identity-profile#get-application-identities-by-external-id} */ export interface RESTGetAPIApplicationIdentitiesResult { /** * The application identities for the user and application currently associated with the specified external ID * * @remarks This is empty if no identity matches the external account key. */ identities: APIUserApplicationIdentity[]; } /** * @remarks The JSON body is optional. * @see {@link https://docs.discord.com/developers/resources/application-identity-profile#delete-application-identity} */ export interface RESTPostAPIApplicationIdentityDeleteJSONBody { /** * Provider-specific identifier used to disambiguate matching provider type and provider-issued user ID */ provider_id?: string | undefined; } /** * @see {@link https://docs.discord.com/developers/resources/application-identity-profile#delete-application-identity} */ export type RESTPostAPIApplicationIdentityDeleteResult = undefined; //# sourceMappingURL=applicationIdentityProfile.d.ts.map