---
title: "Conta"
description: "Perfil, biblioteca, indicações e preferências."
---
<div class="lm-ref-kicker"><code>user</code><span>namespace</span></div>

Perfil, biblioteca, indicações e preferências.

<div class="lm-ref-stats lm-ref-stats--compact">
  <div class="lm-ref-stat"><strong>17</strong><span>métodos</span></div>
  <div class="lm-ref-stat"><code>user</code><span>namespace</span></div>
</div>

> Esta página é gerada automaticamente pelo `@luckymaker/sdk-generator`. Não edite manualmente.

## `attachPhysicalBonds`

<div class="lm-endpoint"><span class="lm-http lm-http--post">POST</span><code>/user/physicalBonds/attach</code></div>

Assinatura:

```ts
attachPhysicalBonds(body?: AttachPhysicalBondsBody, settings?: SdkSettings): Promise<AttachPhysicalBondsResponse>
```

### Body

| Nome | Tipo | Obrigatório |
|---|---|---|
| `bondNumber` | `string` | sim |
| `securityCode` | `string` | sim |

### Tipos

```ts
type AttachPhysicalBondsBody = { "bondNumber": string; "securityCode": string; };
type AttachPhysicalBondsResponse = { "message": string; "bond": { "number": string; "raffleUUID": string; }; };
```

### Exemplo

```ts
const response = await sdk.user.attachPhysicalBonds({ "bondNumber": "string", "securityCode": "string" });
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=attachPhysicalBonds">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `deleteProfile`

<div class="lm-endpoint"><span class="lm-http lm-http--delete">DELETE</span><code>/user/profile</code></div>

Assinatura:

```ts
deleteProfile(body?: DeleteProfileBody, settings?: SdkSettings): Promise<DeleteProfileResponse>
```

### Body

| Nome | Tipo | Obrigatório |
|---|---|---|
| `reason` | `"TOO_MANY_NOTIFICATIONS" \| "DONT_KNOW_THE_SITE" \| "CANNOT_CONTACT_SUPPORT" \| "DONT_TRUST_THEY_WILL_WIN" \| "STOPPED_PURCHASING" \| "OTHER_REASON"` | sim |
| `details` | `string` | sim |

### Tipos

```ts
type DeleteProfileBody = { "reason": "TOO_MANY_NOTIFICATIONS" | "DONT_KNOW_THE_SITE" | "CANNOT_CONTACT_SUPPORT" | "DONT_TRUST_THEY_WILL_WIN" | "STOPPED_PURCHASING" | "OTHER_REASON"; "details": string; };
type DeleteProfileResponse = unknown;
```

### Exemplo

```ts
const response = await sdk.user.deleteProfile({ "reason": "TOO_MANY_NOTIFICATIONS", "details": "string" });
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=deleteProfile">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `downloadDigitalLibraryItemUrl`

<div class="lm-endpoint"><span class="lm-http lm-http--post">POST</span><code>/user/digital-library/items/:id/download-url</code></div>

Assinatura:

```ts
downloadDigitalLibraryItemUrl(id: string, settings?: SdkSettings): Promise<DownloadDigitalLibraryItemUrlResponse>
```

### Parâmetros de rota

| Nome | Tipo |
|---|---|
| `id` | `string` |

### Tipos

```ts
type DownloadDigitalLibraryItemUrlParams = { "id": string; };
type DownloadDigitalLibraryItemUrlResponse = unknown;
```

### Exemplo

```ts
const response = await sdk.user.downloadDigitalLibraryItemUrl("string");
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=downloadDigitalLibraryItemUrl">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `getBalanceHistory`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/balance/history</code></div>

Assinatura:

```ts
getBalanceHistory(query?: GetBalanceHistoryQuery, settings?: SdkSettings): Promise<GetBalanceHistoryResponse>
```

### Query

| Nome | Tipo | Obrigatório |
|---|---|---|
| `page` | `number` | não |
| `limit` | `number` | não |
| `wallet` | `"CREDITS" \| "CHECKING_ACCOUNT" \| "POINTS"` | não |

### Tipos

```ts
type GetBalanceHistoryQuery = { "page"?: number; "limit"?: number; "wallet"?: "CREDITS" | "CHECKING_ACCOUNT" | "POINTS"; };
type GetBalanceHistoryResponse = { "overview": { "currentPage": number; "maxPage": number; "totalItems": number; }; "items": Array<{ "id": number; "value": number; "amount": number; "operation": string; "status": string; "source": string; "wallet": string; "description": string; "errorMessage"?: string; "createdAt": string; }>; };
```

### Exemplo

```ts
const response = await sdk.user.getBalanceHistory();
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=getBalanceHistory">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `getBondsRaffle`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/guest/bonds/raffles/:uuid</code></div>

Assinatura:

```ts
getBondsRaffle(uuid: string, query?: GetBondsRaffleQuery, settings?: SdkSettings): Promise<GetBondsRaffleResponse>
```

### Parâmetros de rota

| Nome | Tipo |
|---|---|
| `uuid` | `string` |

### Query

| Nome | Tipo | Obrigatório |
|---|---|---|
| `page` | `number` | não |
| `perPage` | `number` | não |

### Tipos

```ts
type GetBondsRaffleParams = { "uuid": string; };
type GetBondsRaffleQuery = { "page"?: number; "perPage"?: number; };
type GetBondsRaffleResponse = { "raffle": { "id": number; "uuid": string; "title": string; "thumbnail": string; "susepProcess"?: string; "regulation"?: string; "digitsPerLuckyNumber"?: number; "kind"?: "MAIN" | "SECONDARY" | "GAMBLING"; "edition"?: string; "gambling"?: { "minimumBetPrice"?: string; "maximumBetPrice"?: string; "highestMultiplier"?: number; }; "hideRaffleCountdown"?: boolean | null; "marquee"?: { "text": string; }; "gallery"?: Array<{ "_id"?: string; "type": "YOUTUBE"; "purpose": "RESULTS_LIVE"; "url": string; } | { "_id"?: string; "type": "LIVESTREAM"; "endedAt"?: string; "embedURL": string; "thumbnailURL": string; "publishedAt": string; } | { "_id"?: string; "type": "RESULT"; "embedURL": string; "thumbnailURL": string; "publishedAt": string; } | { "_id"?: string; "type": "IMAGE"; "mediaId"?: string; "url"?: string; "purpose": "BANNER" | "RESULTS_BANNER"; } | { "_id"?: string; "type": "VIDEO"; "mediaId"?: string; "variants"?: Array<{ "format": string; "url": string; "dimensions": string; }>; }>; "highestMatrixNumber"?: number; "participationRules"?: { "canPurchaseBondsDirectly"?: boolean; "allowedCountryStates"?: Array<string>; "allowedCities"?: Array<string>; "supportsFastSignUp"?: boolean; }; "whereToWatch"?: { "facebook"?: string; "youtube"?: string; "twitch"?: string; }; "startAt": string; "endAt": string; "prizes"?: Array<{ "id": number; "name": string; "raffleKind": string; }>; "instantPrizes"?: { "drawMethods": Array<string>; }; "cart"?: { "selectorAmounts"?: Array<number>; "defaultAmountButtonIndex"?: number; "defaultAmountForLandingPage"?: number; "popularAmountButtonIndex"?: number; "increasingAmount"?: number; "minimumAmount"?: number; "selectorButtonLabels"?: Array<{ "text": string; "color": string; "icon"?: string; } | null>; "at"?: { "LANDING_PAGE"?: { "selectorAmounts"?: Array<number>; "defaultAmountButtonIndex"?: number; "defaultAmountForLandingPage"?: number; "popularAmountButtonIndex"?: number; "increasingAmount"?: number; "minimumAmount"?: number; "selectorButtonLabels"?: Array<{ "text": string; "color": string; "icon"?: string; } | null>; }; }; }; "category"?: { "slug": string; }; "drawDate"?: string; "results"?: Array<{ "winner": { "number": number; "name": string; "city": string; "state": string; "neighborhood": string; }; "prize": { "name": string; }; }>; "isOpenForPurchase": boolean; }; "total": number; "instantPrizes"?: false | Array<{ "number": string; "awardedItem"?: { "icon"?: string; "title": string; "subtitle": string; }; "type": "SCRATCH_CARD"; "itemsFound": Array<{ "icon"?: string; "title": string; "subtitle": string; }>; }>; "bonds": Array<{ "luckyNumber": string; "matrixChances": Array<{ "chanceIndex": number; "numbers": Array<string>; }>; }>; };
```

### Exemplo

```ts
const response = await sdk.user.getBondsRaffle("string");
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=getBondsRaffle">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `getCommunicationOptions`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/communication-options</code></div>

Assinatura:

```ts
getCommunicationOptions(settings?: SdkSettings): Promise<GetCommunicationOptionsResponse>
```

### Tipos

```ts
type GetCommunicationOptionsResponse = { "mediums": { "SMS": boolean; "PUSH": boolean; "WHATSAPP": boolean; "EMAIL": boolean; }; "categories": { "PAYMENT_STATUS": boolean; "PROMOTIONAL": boolean; "MARKETING": boolean; "NEWSLETTER": boolean; }; };
```

### Exemplo

```ts
const response = await sdk.user.getCommunicationOptions();
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=getCommunicationOptions">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `getDigitalLibrary`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/digital-library</code></div>

Assinatura:

```ts
getDigitalLibrary(query?: GetDigitalLibraryQuery, settings?: SdkSettings): Promise<GetDigitalLibraryResponse>
```

### Query

| Nome | Tipo | Obrigatório |
|---|---|---|
| `page` | `number` | não |
| `perPage` | `number` | não |

### Tipos

```ts
type GetDigitalLibraryQuery = { "page"?: number; "perPage"?: number; };
type GetDigitalLibraryResponse = unknown;
```

### Exemplo

```ts
const response = await sdk.user.getDigitalLibrary();
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=getDigitalLibrary">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `getDigitalLibraryItemDetail`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/digital-library/items/:id/detail</code></div>

Assinatura:

```ts
getDigitalLibraryItemDetail(id: string, settings?: SdkSettings): Promise<GetDigitalLibraryItemDetailResponse>
```

### Parâmetros de rota

| Nome | Tipo |
|---|---|
| `id` | `string` |

### Tipos

```ts
type GetDigitalLibraryItemDetailParams = { "id": string; };
type GetDigitalLibraryItemDetailResponse = unknown;
```

### Exemplo

```ts
const response = await sdk.user.getDigitalLibraryItemDetail("string");
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=getDigitalLibraryItemDetail">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `getDigitalLibraryItemPlayback`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/digital-library/items/:id/playback</code></div>

Assinatura:

```ts
getDigitalLibraryItemPlayback(id: string, settings?: SdkSettings): Promise<GetDigitalLibraryItemPlaybackResponse>
```

### Parâmetros de rota

| Nome | Tipo |
|---|---|
| `id` | `string` |

### Tipos

```ts
type GetDigitalLibraryItemPlaybackParams = { "id": string; };
type GetDigitalLibraryItemPlaybackResponse = unknown;
```

### Exemplo

```ts
const response = await sdk.user.getDigitalLibraryItemPlayback("string");
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=getDigitalLibraryItemPlayback">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `getNotificationsInfo`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/notifications/info</code></div>

Assinatura:

```ts
getNotificationsInfo(settings?: SdkSettings): Promise<GetNotificationsInfoResponse>
```

### Tipos

```ts
type GetNotificationsInfoResponse = { "id": { "value": string; "hash": string; }; "email": { "value": string; "hash": string; }; "tel": { "value": string; "hash": string; }; };
```

### Exemplo

```ts
const response = await sdk.user.getNotificationsInfo();
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=getNotificationsInfo">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `getProfile`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/profile</code></div>

Assinatura:

```ts
getProfile(settings?: SdkSettings): Promise<GetProfileResponse>
```

### Tipos

```ts
type GetProfileResponse = { "id": number; "email": string; "name"?: string; "originalName"?: string; "socialName"?: string | null; "cpf": string; "idd"?: string; "tel": string; "birthdate"?: string; "gender"?: "M" | "F" | "O" | "N" | null; "address": { "cep": string; "streetName": string; "number"?: string; "neighborhood": string; "complement"?: string; "city": string; "state": string; }; "creditsAmount"?: number; "checkingAccountAmount"?: number; };
```

### Exemplo

```ts
const response = await sdk.user.getProfile();
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=getProfile">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `getReferralHistory`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/referral/history</code></div>

Assinatura:

```ts
getReferralHistory(query?: GetReferralHistoryQuery, settings?: SdkSettings): Promise<GetReferralHistoryResponse>
```

### Query

| Nome | Tipo | Obrigatório |
|---|---|---|
| `from` | `string` | não |
| `to` | `string` | não |
| `page` | `number` | não |
| `perPage` | `number` | não |

### Tipos

```ts
type GetReferralHistoryQuery = { "from"?: string; "to"?: string; "page"?: number; "perPage"?: number; };
type GetReferralHistoryResponse = unknown;
```

### Exemplo

```ts
const response = await sdk.user.getReferralHistory();
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=getReferralHistory">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `getReferralProgram`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/referral/me</code></div>

Assinatura:

```ts
getReferralProgram(settings?: SdkSettings): Promise<GetReferralProgramResponse>
```

### Tipos

```ts
type GetReferralProgramResponse = unknown;
```

### Exemplo

```ts
const response = await sdk.user.getReferralProgram();
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=getReferralProgram">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `listGuestPurchasedRaffle`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/guest/bonds</code></div>

Assinatura:

```ts
listGuestPurchasedRaffle(query?: ListGuestPurchasedRaffleQuery, settings?: SdkSettings): Promise<ListGuestPurchasedRaffleResponse>
```

### Query

| Nome | Tipo | Obrigatório |
|---|---|---|
| `page` | `number` | não |
| `drawedAt` | `"FUTURE" \| "PAST"` | não |

### Tipos

```ts
type ListGuestPurchasedRaffleQuery = { "page"?: number; "drawedAt"?: "FUTURE" | "PAST"; };
type ListGuestPurchasedRaffleResponse = Array<{ "uuid": string; "title": string; "thumbnail": string; "susepProcess"?: string; "regulation"?: string; "digitsPerLuckyNumber"?: number; "kind"?: "MAIN" | "SECONDARY" | "GAMBLING"; "edition"?: string; "gambling"?: { "minimumBetPrice"?: string; "maximumBetPrice"?: string; "highestMultiplier"?: number; }; "hideRaffleCountdown"?: boolean | null; "marquee"?: { "text": string; }; "gallery"?: Array<{ "_id"?: string; "type": "YOUTUBE"; "purpose": "RESULTS_LIVE"; "url": string; } | { "_id"?: string; "type": "LIVESTREAM"; "endedAt"?: string; "embedURL": string; "thumbnailURL": string; "publishedAt": string; } | { "_id"?: string; "type": "RESULT"; "embedURL": string; "thumbnailURL": string; "publishedAt": string; } | { "_id"?: string; "type": "IMAGE"; "mediaId"?: string; "url"?: string; "purpose": "BANNER" | "RESULTS_BANNER"; } | { "_id"?: string; "type": "VIDEO"; "mediaId"?: string; "variants"?: Array<{ "format": string; "url": string; "dimensions": string; }>; }>; "highestMatrixNumber"?: number; "participationRules"?: { "canPurchaseBondsDirectly"?: boolean; "allowedCountryStates"?: Array<string>; "allowedCities"?: Array<string>; "supportsFastSignUp"?: boolean; }; "whereToWatch"?: { "facebook"?: string; "youtube"?: string; "twitch"?: string; }; "startAt": string; "endAt": string; "prizes"?: Array<{ "id": number; "name": string; "raffleKind": string; }>; "instantPrizes"?: { "drawMethods": Array<string>; }; "cart"?: { "selectorAmounts"?: Array<number>; "defaultAmountButtonIndex"?: number; "defaultAmountForLandingPage"?: number; "popularAmountButtonIndex"?: number; "increasingAmount"?: number; "minimumAmount"?: number; "selectorButtonLabels"?: Array<{ "text": string; "color": string; "icon"?: string; } | null>; "at"?: { "LANDING_PAGE"?: { "selectorAmounts"?: Array<number>; "defaultAmountButtonIndex"?: number; "defaultAmountForLandingPage"?: number; "popularAmountButtonIndex"?: number; "increasingAmount"?: number; "minimumAmount"?: number; "selectorButtonLabels"?: Array<{ "text": string; "color": string; "icon"?: string; } | null>; }; }; }; "category"?: { "slug": string; }; "drawDate"?: string; "results"?: Array<{ "winner": { "number": number; "name": string; "city": string; "state": string; "neighborhood": string; }; "prize": { "name": string; }; }>; "bondCount": number; }>;
```

### Exemplo

```ts
const response = await sdk.user.listGuestPurchasedRaffle();
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=listGuestPurchasedRaffle">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `listReferralPublicLinks`

<div class="lm-endpoint"><span class="lm-http lm-http--get">GET</span><code>/user/referral/me/links</code></div>

Assinatura:

```ts
listReferralPublicLinks(settings?: SdkSettings): Promise<ListReferralPublicLinksResponse>
```

### Tipos

```ts
type ListReferralPublicLinksResponse = { "links": Array<{ "campaignId": string; "link": string; }>; };
```

### Exemplo

```ts
const response = await sdk.user.listReferralPublicLinks();
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=listReferralPublicLinks">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `setCommunicationOptions`

<div class="lm-endpoint"><span class="lm-http lm-http--post">POST</span><code>/user/communication-options</code></div>

Assinatura:

```ts
setCommunicationOptions(body?: SetCommunicationOptionsBody, settings?: SdkSettings): Promise<SetCommunicationOptionsResponse>
```

### Body

| Nome | Tipo | Obrigatório |
|---|---|---|
| `mediums` | `{ "SMS": boolean; "PUSH": boolean; "WHATSAPP": boolean; "EMAIL": boolean; }` | sim |
| `categories` | `{ "PAYMENT_STATUS": boolean; "PROMOTIONAL": boolean; "MARKETING": boolean; "NEWSLETTER": boolean; }` | sim |

### Tipos

```ts
type SetCommunicationOptionsBody = { "mediums": { "SMS": boolean; "PUSH": boolean; "WHATSAPP": boolean; "EMAIL": boolean; }; "categories": { "PAYMENT_STATUS": boolean; "PROMOTIONAL": boolean; "MARKETING": boolean; "NEWSLETTER": boolean; }; };
type SetCommunicationOptionsResponse = unknown;
```

### Exemplo

```ts
const response = await sdk.user.setCommunicationOptions({ "mediums": { "SMS": true, "PUSH": true, "WHATSAPP": true, "EMAIL": true }, "categories": { "PAYMENT_STATUS": true, "PROMOTIONAL": true, "MARKETING": true, "NEWSLETTER": true } });
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=setCommunicationOptions">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>

## `updateProfile`

<div class="lm-endpoint"><span class="lm-http lm-http--put">PUT</span><code>/user/profile</code></div>

Assinatura:

```ts
updateProfile(body?: UpdateProfileBody, settings?: SdkSettings): Promise<UpdateProfileResponse>
```

### Body

| Nome | Tipo | Obrigatório |
|---|---|---|
| `email` | `string` | não |
| `name` | `string` | não |
| `originalName` | `string` | não |
| `socialName` | `string \| null` | não |
| `idd` | `string` | não |
| `tel` | `string` | não |
| `birthdate` | `string` | não |
| `gender` | `"M" \| "F" \| "O" \| "N" \| null` | não |
| `address` | `{ "cep"?: string; "streetName"?: string \| null; "number"?: string; "neighborhood"?: string \| null; "complement"?: string; }` | não |

### Tipos

```ts
type UpdateProfileBody = { "email"?: string; "name"?: string; "originalName"?: string; "socialName"?: string | null; "idd"?: string; "tel"?: string; "birthdate"?: string; "gender"?: "M" | "F" | "O" | "N" | null; "address"?: { "cep"?: string; "streetName"?: string | null; "number"?: string; "neighborhood"?: string | null; "complement"?: string; }; };
type UpdateProfileResponse = { "id": number; "email": string; "name"?: string; "originalName"?: string; "socialName"?: string | null; "cpf": string; "idd"?: string; "tel": string; "birthdate"?: string; "gender"?: "M" | "F" | "O" | "N" | null; "address": { "cep": string; "streetName": string; "number"?: string; "neighborhood": string; "complement"?: string; "city": string; "state": string; }; "creditsAmount"?: number; "checkingAccountAmount"?: number; };
```

### Exemplo

```ts
const response = await sdk.user.updateProfile({ "email": "string", "name": "string", "originalName": "string", "socialName": "string", "idd": "string", "tel": "string", "birthdate": "string", "gender": "M", "address": { "cep": "string", "streetName": "string", "number": "string", "neighborhood": "string", "complement": "string" } });
```

<a class="lm-playground-link" href="/docs/guias/playground/?namespace=user&method=updateProfile">Testar esta função no playground <svg class="lm-arrow-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></a>