# ports

> Source: https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/ports/ · Last updated: 2026-11-25

## Interfaces

### AovBundleDetection

#### Properties

##### available

```ts
available: boolean;
```

##### offers

```ts
offers: AovBundleOffer[];
```

***

### AovBundleOffer

Active AOV offer fields consumed by the bundle-card controller.

#### Properties

##### bundleBuilderProductHandle?

```ts
bundleBuilderProductHandle?: string;
```

##### bundleBuilderProductId?

```ts
bundleBuilderProductId?: string | number;
```

##### bundleProductId?

```ts
bundleProductId?: string | number;
```

##### id?

```ts
id?: string | number;
```

##### mixMatchProductHandle?

```ts
mixMatchProductHandle?: string;
```

##### mixMatchProductId?

```ts
mixMatchProductId?: string | number;
```

##### productHandle?

```ts
productHandle?: string;
```

##### triggerProducts?

```ts
triggerProducts?: AovBundleProductCandidate[];
```

##### type?

```ts
type?: string;
```

***

### AovBundleProductCandidate

Product fields from an AOV offer that the bundle-card controller reads.

#### Extends

- [`StorefrontProduct`](#storefrontproduct)

#### Properties

##### compare_at_price?

```ts
compare_at_price?: StorefrontProductPrice;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`compare_at_price`](#compare_at_price-2)

##### compare_at_price_max?

```ts
compare_at_price_max?: StorefrontProductPrice;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`compare_at_price_max`](#compare_at_price_max-2)

##### compareAtPrice?

```ts
compareAtPrice?: StorefrontProductPrice;
```

##### compareAtPriceV2?

```ts
compareAtPriceV2?: object;
```

###### amount?

```ts
amount?: StorefrontProductPrice;
```

##### featured_image?

```ts
featured_image?: string | StorefrontProductImage;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`featured_image`](#featured_image-2)

##### featuredImage?

```ts
featuredImage?: StorefrontProductImage;
```

##### handle?

```ts
handle?: string;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`handle`](#handle-6)

##### id?

```ts
id?: string | number;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`id`](#id-12)

##### image?

```ts
image?: string | StorefrontProductImage;
```

##### images?

```ts
images?: (string | StorefrontProductImage)[];
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`images`](#images-3)

##### price?

```ts
price?: StorefrontProductPrice;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`price`](#price-3)

##### priceV2?

```ts
priceV2?: object;
```

###### amount?

```ts
amount?: StorefrontProductPrice;
```

##### product_id?

```ts
product_id?: string | number;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`product_id`](#product_id-2)

##### selling_plan_allocations?

```ts
selling_plan_allocations?: StorefrontSellingPlanAllocation[];
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`selling_plan_allocations`](#selling_plan_allocations-2)

##### sellingPlanAllocations?

```ts
sellingPlanAllocations?: StorefrontSellingPlanAllocation[];
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`sellingPlanAllocations`](#sellingplanallocations-2)

##### title?

```ts
title?: string;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`title`](#title-7)

##### variants?

```ts
variants?: StorefrontProductVariant[];
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`variants`](#variants-3)

***

### AppleWalletPassCache

#### Properties

##### createdApplePass

```ts
createdApplePass: boolean;
```

##### qrCodeDownloadApplePass

```ts
qrCodeDownloadApplePass: string;
```

***

### AuthPort

#### Methods

##### getState()

```ts
getState(): AuthState;
```

###### Returns

[`AuthState`](#authstate)

##### subscribe()

```ts
subscribe(listener): () => void;
```

###### Parameters

| Parameter  | Type                |
| ---------- | ------------------- |
| `listener` | (`state`) => `void` |

###### Returns

() => `void`

***

### Cart

#### Properties

##### cost

```ts
cost: object;
```

###### subtotalAmount

```ts
subtotalAmount: CartMoney;
```

###### totalAmount

```ts
totalAmount: CartMoney;
```

##### discountCodes

```ts
discountCodes: object[];
```

###### applicable

```ts
applicable: boolean;
```

###### code

```ts
code: string;
```

##### lines

```ts
lines: object[];
```

###### quantity

```ts
quantity: number;
```

###### variantId

```ts
variantId: string;
```

***

### CartMoney

#### Properties

##### amount

```ts
amount: string;
```

##### currencyCode

```ts
currencyCode: string;
```

***

### CartPort

#### Properties

##### capabilities

```ts
capabilities: object;
```

###### discountCodes

```ts
discountCodes: boolean;
```

###### freeGift

```ts
freeGift: boolean;
```

###### mergeCodes

```ts
mergeCodes: boolean;
```

###### revalidate

```ts
revalidate: boolean;
```

#### Methods

##### addLines()

```ts
addLines(lines): Promise<void>;
```

###### Parameters

| Parameter | Type        |
| --------- | ----------- |
| `lines`   | `object`\[] |

###### Returns

`Promise`<`void`>

##### applyDiscount()

```ts
applyDiscount(code): Promise<{
  applied: boolean;
  droppedCodes?: string[];
  ok: boolean;
  reason?: string;
}>;
```

###### Parameters

| Parameter | Type     |
| --------- | -------- |
| `code`    | `string` |

###### Returns

`Promise`<{
`applied`: `boolean`;
`droppedCodes?`: `string`\[];
`ok`: `boolean`;
`reason?`: `string`;
}>

##### getCart()

```ts
getCart(): Promise<Cart | null>;
```

###### Returns

`Promise`<[`Cart`](#cart) | `null`>

##### redeemGift()

```ts
redeemGift(input): Promise<void>;
```

###### Parameters

| Parameter         | Type                                         |
| ----------------- | -------------------------------------------- |
| `input`           | { `code`: `string`; `variantId`: `string`; } |
| `input.code`      | `string`                                     |
| `input.variantId` | `string`                                     |

###### Returns

`Promise`<`void`>

##### removeDiscount()

```ts
removeDiscount(code): Promise<void>;
```

###### Parameters

| Parameter | Type     |
| --------- | -------- |
| `code`    | `string` |

###### Returns

`Promise`<`void`>

##### revalidate()

```ts
revalidate(): void;
```

###### Returns

`void`

***

### CompleteEarningProgramData

Legacy earning payload fields core reads after a completed earning action.

#### Extends

- `Record`<`string`, `unknown`>

#### Indexable

```ts
[key: string]: unknown
```

#### Properties

##### customer?

```ts
customer?: Record<string, unknown>;
```

##### newPoint?

```ts
newPoint?: number;
```

##### point?

```ts
point?: number;
```

##### success?

```ts
success?: boolean;
```

***

### CompleteEarningProgramResult

Legacy earning result payload. All fields core reads are optional: a non-empty
unmarked payload is a successful result, while `{}` means "no result" and is a
host contract violation.

#### Extends

- `Record`<`string`, `unknown`>

#### Indexable

```ts
[key: string]: unknown
```

#### Properties

##### customer?

```ts
customer?: Record<string, unknown>;
```

##### data?

```ts
data?: CompleteEarningProgramData;
```

##### error?

```ts
error?: string | Record<string, unknown>;
```

##### newPoint?

```ts
newPoint?: number;
```

##### point?

```ts
point?: number;
```

##### status?

```ts
status?: boolean;
```

##### success?

```ts
success?: boolean;
```

***

### CurrentProduct

The current Liquid product shape consumed by the recently-viewed controller.

#### Extends

- [`StorefrontProduct`](#storefrontproduct)

#### Properties

##### compare_at_price?

```ts
compare_at_price?: StorefrontProductPrice;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`compare_at_price`](#compare_at_price-2)

##### compare_at_price_max?

```ts
compare_at_price_max?: StorefrontProductPrice;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`compare_at_price_max`](#compare_at_price_max-2)

##### featured_image?

```ts
featured_image?: string | StorefrontProductImage;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`featured_image`](#featured_image-2)

##### handle?

```ts
handle?: string;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`handle`](#handle-6)

##### id?

```ts
id?: string | number;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`id`](#id-12)

##### images?

```ts
images?: (string | StorefrontProductImage)[];
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`images`](#images-3)

##### price?

```ts
price?: StorefrontProductPrice;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`price`](#price-3)

##### product_id?

```ts
product_id?: string | number;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`product_id`](#product_id-2)

##### selling_plan_allocations?

```ts
selling_plan_allocations?: StorefrontSellingPlanAllocation[];
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`selling_plan_allocations`](#selling_plan_allocations-2)

##### sellingPlanAllocations?

```ts
sellingPlanAllocations?: StorefrontSellingPlanAllocation[];
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`sellingPlanAllocations`](#sellingplanallocations-2)

##### title?

```ts
title?: string;
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`title`](#title-7)

##### url?

```ts
url?: string;
```

##### variants?

```ts
variants?: StorefrontProductVariant[];
```

###### Inherited from

[`StorefrontProduct`](#storefrontproduct).[`variants`](#variants-3)

***

### CustomerWidgetData

#### Properties

##### customer

```ts
customer: object;
```

###### earnSignUp?

```ts
earnSignUp?: unknown;
```

###### impact?

```ts
impact?: object;
```

###### impact.plasticBottles?

```ts
plasticBottles?: unknown;
```

###### impact.trees?

```ts
trees?: unknown;
```

###### latestActivity?

```ts
latestActivity?: unknown;
```

###### point?

```ts
point?: unknown;
```

###### pointExpiration?

```ts
pointExpiration?: unknown;
```

###### tierAssessmentStatus?

```ts
tierAssessmentStatus?: unknown;
```

###### tierId?

```ts
tierId?: unknown;
```

###### tierPoint?

```ts
tierPoint?: unknown;
```

##### storeCredit?

```ts
storeCredit?: object;
```

###### accounts?

```ts
accounts?: StoreCreditAccount[];
```

###### enabled?

```ts
enabled?: boolean;
```

***

### CustomerWidgetDataRequest

#### Properties

##### customerId

```ts
customerId: string;
```

##### fresh?

```ts
fresh?: boolean;
```

Bypass the host's request cache (sign-up balance refetch).

##### includeStoreCredit

```ts
includeStoreCredit: boolean;
```

##### includeTierAssessmentStatus?

```ts
includeTierAssessmentStatus?: boolean;
```

Ask `/info` for the Tier Assessment "spend to keep" status (`ta=1`).

***

### DataCapabilities

#### Properties

##### appleWalletPass

```ts
appleWalletPass: boolean;
```

##### customerPrivacy

```ts
customerPrivacy: boolean;
```

Not available on headless hosts yet: the host has no equivalent consent surface.

##### freeGiftStock

```ts
freeGiftStock: boolean;
```

##### googleWalletPass

```ts
googleWalletPass: boolean;
```

##### joinProgram

```ts
joinProgram: boolean;
```

##### profileEdit

```ts
profileEdit: boolean;
```

##### providerReviews

```ts
providerReviews: boolean;
```

##### receivedRewards

```ts
receivedRewards: boolean;
```

##### referralHistory

```ts
referralHistory: boolean;
```

##### referralInvite

```ts
referralInvite: boolean;
```

##### sendRewardToFriend

```ts
sendRewardToFriend: boolean;
```

##### socialConnect

```ts
socialConnect: boolean;
```

##### storeCreditTransactions

```ts
storeCreditTransactions: boolean;
```

***

### DataPort

#### Properties

##### capabilities

```ts
capabilities: DataCapabilities;
```

#### Methods

##### claimInteractWebsite()

```ts
claimInteractWebsite(input): Promise<EarnActionResponse>;
```

###### Parameters

| Parameter          | Type                                               |
| ------------------ | -------------------------------------------------- |
| `input`            | { `customerId`: `string`; `programId`: `string`; } |
| `input.customerId` | `string`                                           |
| `input.programId`  | `string`                                           |

###### Returns

`Promise`<[`EarnActionResponse`](#earnactionresponse)>

##### completeEarningProgram()

```ts
completeEarningProgram(input): Promise<CompleteEarningProgramResult>;
```

###### Parameters

| Parameter        | Type                                                                                     |
| ---------------- | ---------------------------------------------------------------------------------------- |
| `input`          | { `customer`: `Record`<`string`, `unknown`>; `program`: `Record`<`string`, `unknown`>; } |
| `input.customer` | `Record`<`string`, `unknown`>                                                            |
| `input.program`  | `Record`<`string`, `unknown`>                                                            |

###### Returns

`Promise`<[`CompleteEarningProgramResult`](#completeearningprogramresult)>

##### earn()

```ts
earn(req): Promise<EarnResult>;
```

###### Parameters

| Parameter | Type                          |
| --------- | ----------------------------- |
| `req`     | [`EarnRequest`](#earnrequest) |

###### Returns

`Promise`<[`EarnResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#earnresult)>

##### earnSocial()

```ts
earnSocial(programId): Promise<SocialEarnResult>;
```

###### Parameters

| Parameter   | Type     |
| ----------- | -------- |
| `programId` | `string` |

###### Returns

`Promise`<[`SocialEarnResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#socialearnresult)>

##### earnUpload()

```ts
earnUpload(input): Promise<EarnUploadResult>;
```

###### Parameters

| Parameter      | Type                                                                                                                   |
| -------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `input`        | { `images`: [`EarnImageUpload`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#earnimageupload)\[]; } |
| `input.images` | [`EarnImageUpload`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#earnimageupload)\[]                |

###### Returns

`Promise`<[`EarnUploadResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#earnuploadresult)>

##### generateReferralLink()

```ts
generateReferralLink(input): Promise<ReferralLink>;
```

Generate a customer's referral link. Not available on headless hosts yet.

###### Parameters

| Parameter | Type                                          |
| --------- | --------------------------------------------- |
| `input`   | [`ReferralLinkRequest`](#referrallinkrequest) |

###### Returns

`Promise`<[`ReferralLink`](#referrallink)>

##### getActivities()

```ts
getActivities(query?): Promise<LegacyActivityPage>;
```

###### Parameters

| Parameter | Type                              |
| --------- | --------------------------------- |
| `query?`  | [`ActivityQuery`](#activityquery) |

###### Returns

`Promise`<[`LegacyActivityPage`](#legacyactivitypage)>

##### getAovBundleOffers()

```ts
getAovBundleOffers(): Promise<AovBundleDetection>;
```

Obtain active AOV bundle offers or return unavailable. Not available on headless hosts yet.

###### Returns

`Promise`<[`AovBundleDetection`](#aovbundledetection)>

##### getAppleWalletLink()

```ts
getAppleWalletLink(): Promise<string>;
```

###### Returns

`Promise`<`string`>

##### getAppleWalletPassCache()

```ts
getAppleWalletPassCache(): AppleWalletPassCache;
```

###### Returns

[`AppleWalletPassCache`](#applewalletpasscache)

##### getCustomer()

```ts
getCustomer(): Promise<Customer>;
```

###### Returns

`Promise`<[`Customer`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#customer-1)>

##### getCustomerWidgetData()

```ts
getCustomerWidgetData(input): Promise<CustomerWidgetData>;
```

Retrieve the customer data needed by the loyalty widget. Not available on headless hosts yet.

###### Parameters

| Parameter | Type                                                      |
| --------- | --------------------------------------------------------- |
| `input`   | [`CustomerWidgetDataRequest`](#customerwidgetdatarequest) |

###### Returns

`Promise`<[`CustomerWidgetData`](#customerwidgetdata)>

##### getFreeGiftStock()

```ts
getFreeGiftStock(input): Promise<FreeGiftStockResult>;
```

Retrieve the available variants for a free-gift program. Not available on headless hosts yet.

###### Parameters

| Parameter | Type                                            |
| --------- | ----------------------------------------------- |
| `input`   | [`FreeGiftStockRequest`](#freegiftstockrequest) |

###### Returns

`Promise`<[`FreeGiftStockResult`](#freegiftstockresult)>

##### getGoogleWalletLink()

```ts
getGoogleWalletLink(): Promise<string>;
```

###### Returns

`Promise`<`string`>

##### getImpactHistory()

```ts
getImpactHistory(customerId): Promise<ImpactHistory>;
```

Retrieve a customer's environmental-impact history and totals. Not available on headless hosts yet.

###### Parameters

| Parameter    | Type     |
| ------------ | -------- |
| `customerId` | `string` |

###### Returns

`Promise`<[`ImpactHistory`](#impacthistory)>

##### getLineAuthUrl()

```ts
getLineAuthUrl(input): Promise<{
  data?: {
     authUrl?: string;
  };
  error?: string;
  success?: boolean;
}>;
```

###### Parameters

| Parameter          | Type                        |
| ------------------ | --------------------------- |
| `input`            | { `customerId`: `string`; } |
| `input.customerId` | `string`                    |

###### Returns

`Promise`<{
`data?`: {
`authUrl?`: `string`;
};
`error?`: `string`;
`success?`: `boolean`;
}>

##### getMilestoneProgress()

```ts
getMilestoneProgress(customerId): Promise<MilestoneProgress>;
```

Retrieve a customer's milestone progress. Not available on headless hosts yet.

###### Parameters

| Parameter    | Type     |
| ------------ | -------- |
| `customerId` | `string` |

###### Returns

`Promise`<[`MilestoneProgress`](#milestoneprogress)>

##### getOrderActivities()

```ts
getOrderActivities(input): Promise<OrderListResponse>;
```

Retrieve activities for one signed-in customer's order. Not available on headless hosts yet.

###### Parameters

| Parameter | Type                                                |
| --------- | --------------------------------------------------- |
| `input`   | [`OrderActivitiesRequest`](#orderactivitiesrequest) |

###### Returns

`Promise`<[`OrderListResponse`](#orderlistresponse)>

##### getOrderById()

```ts
getOrderById(input): Promise<OrderListResponse>;
```

Retrieve one signed-in customer's order. Not available on headless hosts yet.

###### Parameters

| Parameter | Type                                    |
| --------- | --------------------------------------- |
| `input`   | [`OrderByIdRequest`](#orderbyidrequest) |

###### Returns

`Promise`<[`OrderListResponse`](#orderlistresponse)>

##### getOrders()

```ts
getOrders(input): Promise<OrderListResponse>;
```

Retrieve the signed-in customer's orders. Not available on headless hosts yet.

###### Parameters

| Parameter | Type                              |
| --------- | --------------------------------- |
| `input`   | [`OrdersRequest`](#ordersrequest) |

###### Returns

`Promise`<[`OrderListResponse`](#orderlistresponse)>

##### getPendingTierRewardClaims()

```ts
getPendingTierRewardClaims(): Promise<PendingTierRewardClaim[]>;
```

Retrieve a customer's pending tier-reward claims. Not available on headless hosts yet.

###### Returns

`Promise`<[`PendingTierRewardClaim`](#pendingtierrewardclaim)\[]>

##### getPrivacyConsentState()

```ts
getPrivacyConsentState(): Promise<PrivacyConsentState>;
```

Not available on headless hosts yet: the host has no equivalent consent surface.

###### Returns

`Promise`<[`PrivacyConsentState`](#privacyconsentstate)>

##### getProductByHandle()

```ts
getProductByHandle(handle): Promise<StorefrontProduct | null>;
```

###### Parameters

| Parameter | Type     |
| --------- | -------- |
| `handle`  | `string` |

###### Returns

`Promise`<[`StorefrontProduct`](#storefrontproduct) | `null`>

##### getPrograms()

```ts
getPrograms(): Promise<Program[]>;
```

###### Returns

`Promise`<[`Program`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#program-1)\[]>

##### getPromotedCollections()

```ts
getPromotedCollections(selections): Promise<PromotedCollection[]>;
```

Retrieve live storefront details for promoted collections. Not available on headless hosts yet.

###### Parameters

| Parameter    | Type                                                             |
| ------------ | ---------------------------------------------------------------- |
| `selections` | [`PromotedCollectionSelection`](#promotedcollectionselection)\[] |

###### Returns

`Promise`<[`PromotedCollection`](#promotedcollection)\[]>

##### getProviderReviews()

```ts
getProviderReviews(input): Promise<ProviderReviewsResult>;
```

###### Parameters

| Parameter | Type                                                |
| --------- | --------------------------------------------------- |
| `input`   | [`ProviderReviewsRequest`](#providerreviewsrequest) |

###### Returns

`Promise`<[`ProviderReviewsResult`](#providerreviewsresult)>

##### getRecentlyViewedProducts()

```ts
getRecentlyViewedProducts(): Promise<RecentlyViewedProduct[]>;
```

###### Returns

`Promise`<[`RecentlyViewedProduct`](#recentlyviewedproduct)\[]>

##### getReferral()

```ts
getReferral(): Promise<Referral>;
```

###### Returns

`Promise`<[`Referral`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#referral)>

##### getReferralHistory()

```ts
getReferralHistory(opts?): Promise<ReferralHistoryPage>;
```

###### Parameters

| Parameter | Type                              |
| --------- | --------------------------------- |
| `opts?`   | [`ReferralQuery`](#referralquery) |

###### Returns

`Promise`<[`ReferralHistoryPage`](#referralhistorypage)>

##### getReviewRewards()

```ts
getReviewRewards(input): Promise<ReviewRewardsResult>;
```

###### Parameters

| Parameter | Type                                            |
| --------- | ----------------------------------------------- |
| `input`   | [`ReviewRewardsRequest`](#reviewrewardsrequest) |

###### Returns

`Promise`<[`ReviewRewardsResult`](#reviewrewardsresult)>

##### getRewards()

```ts
getRewards(params?): Promise<LegacyRewardSet>;
```

###### Parameters

| Parameter | Type                          |
| --------- | ----------------------------- |
| `params?` | [`RewardQuery`](#rewardquery) |

###### Returns

`Promise`<[`LegacyRewardSet`](#legacyrewardset)>

##### getShopConfig()

```ts
getShopConfig(): Promise<ShopConfig>;
```

###### Returns

`Promise`<[`ShopConfig`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#shopconfig)>

##### getStoreCreditTransactions()

```ts
getStoreCreditTransactions(input): Promise<StoreCreditTransactionsResult>;
```

###### Parameters

| Parameter | Type                                                                |
| --------- | ------------------------------------------------------------------- |
| `input`   | [`StoreCreditTransactionsRequest`](#storecredittransactionsrequest) |

###### Returns

`Promise`<[`StoreCreditTransactionsResult`](#storecredittransactionsresult)>

##### getTierRewards()

```ts
getTierRewards(): Promise<TierRewardsResult>;
```

Retrieve configured tier rewards for widget perk rendering. Not available on headless hosts yet.

###### Returns

`Promise`<[`TierRewardsResult`](#tierrewardsresult)>

##### getTiers()

```ts
getTiers(): Promise<Tier[]>;
```

###### Returns

`Promise`<[`Tier`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#tier-1)\[]>

##### redeem()

```ts
redeem(programId, opts?): Promise<RedeemResult>;
```

###### Parameters

| Parameter   | Type                              |
| ----------- | --------------------------------- |
| `programId` | `string`                          |
| `opts?`     | [`RedeemOptions`](#redeemoptions) |

###### Returns

`Promise`<[`RedeemResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#redeemresult)>

##### savePrivacyConsent()

```ts
savePrivacyConsent(changes): Promise<PrivacyConsentSaveResult>;
```

Not available on headless hosts yet: the host has no equivalent consent surface.

###### Parameters

| Parameter | Type                                              |
| --------- | ------------------------------------------------- |
| `changes` | [`PrivacyConsentChanges`](#privacyconsentchanges) |

###### Returns

`Promise`<[`PrivacyConsentSaveResult`](#privacyconsentsaveresult)>

##### saveRecentlyViewedProducts()

```ts
saveRecentlyViewedProducts(items): Promise<void>;
```

###### Parameters

| Parameter | Type                                                 |
| --------- | ---------------------------------------------------- |
| `items`   | [`RecentlyViewedProduct`](#recentlyviewedproduct)\[] |

###### Returns

`Promise`<`void`>

##### sendRewardToFriend()

```ts
sendRewardToFriend(input): Promise<SendRewardToFriendResult>;
```

###### Parameters

| Parameter | Type                                                      |
| --------- | --------------------------------------------------------- |
| `input`   | [`SendRewardToFriendRequest`](#sendrewardtofriendrequest) |

###### Returns

`Promise`<[`SendRewardToFriendResult`](#sendrewardtofriendresult)>

##### setAppleWalletPassCache()

```ts
setAppleWalletPassCache(qrUrl): void;
```

###### Parameters

| Parameter | Type     |
| --------- | -------- |
| `qrUrl`   | `string` |

###### Returns

`void`

##### submitEarnForm()

```ts
submitEarnForm(input): Promise<EarnActionResponse>;
```

###### Parameters

| Parameter                      | Type                                                                                                                                                                                                                | Description                                                          |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `input`                        | { `customerId`: `string`; `programId`: `string`; `submittedAnswers?`: `object`\[]; `submittedContent`: `string`; `uploadedImageUrls`: `string`\[]; `uploadedVideo?`: { `fileName`: `string`; `path`: `string`; }; } | -                                                                    |
| `input.customerId`             | `string`                                                                                                                                                                                                            | -                                                                    |
| `input.programId`              | `string`                                                                                                                                                                                                            | -                                                                    |
| `input.submittedAnswers?`      | `object`\[]                                                                                                                                                                                                         | Form fields programs: one answer per non-file field, in admin order. |
| `input.submittedContent`       | `string`                                                                                                                                                                                                            | -                                                                    |
| `input.uploadedImageUrls`      | `string`\[]                                                                                                                                                                                                         | -                                                                    |
| `input.uploadedVideo?`         | { `fileName`: `string`; `path`: `string`; }                                                                                                                                                                         | Submit-form video already PUT to GCS via a signed URL.               |
| `input.uploadedVideo.fileName` | `string`                                                                                                                                                                                                            | -                                                                    |
| `input.uploadedVideo.path`     | `string`                                                                                                                                                                                                            | -                                                                    |

###### Returns

`Promise`<[`EarnActionResponse`](#earnactionresponse)>

##### submitGoogleMapsReview()

```ts
submitGoogleMapsReview(input): Promise<EarnActionResponse>;
```

###### Parameters

| Parameter          | Type                                                                       |
| ------------------ | -------------------------------------------------------------------------- |
| `input`            | { `customerId`: `string`; `programId?`: `string`; `reviewUrl`: `string`; } |
| `input.customerId` | `string`                                                                   |
| `input.programId?` | `string`                                                                   |
| `input.reviewUrl`  | `string`                                                                   |

###### Returns

`Promise`<[`EarnActionResponse`](#earnactionresponse)>

##### submitProviderReview()

```ts
submitProviderReview(input): Promise<SubmitProviderReviewResult>;
```

###### Parameters

| Parameter | Type                                                          |
| --------- | ------------------------------------------------------------- |
| `input`   | [`SubmitProviderReviewRequest`](#submitproviderreviewrequest) |

###### Returns

`Promise`<[`SubmitProviderReviewResult`](#submitproviderreviewresult)>

##### submitReceiptForApproval()

```ts
submitReceiptForApproval(input): Promise<EarnActionResponse>;
```

###### Parameters

| Parameter          | Type                                                                         |
| ------------------ | ---------------------------------------------------------------------------- |
| `input`            | { `customerId`: `string`; `imageUrls`: `string`\[]; `programId`: `string`; } |
| `input.customerId` | `string`                                                                     |
| `input.imageUrls`  | `string`\[]                                                                  |
| `input.programId`  | `string`                                                                     |

###### Returns

`Promise`<[`EarnActionResponse`](#earnactionresponse)>

##### subscribeToPrivacyConsent()

```ts
subscribeToPrivacyConsent(listener): () => void;
```

Not available on headless hosts yet: the host has no equivalent consent surface.

###### Parameters

| Parameter  | Type         |
| ---------- | ------------ |
| `listener` | () => `void` |

###### Returns

() => `void`

##### trackPrivacyEngagement()

```ts
trackPrivacyEngagement(event): void;
```

Not available on headless hosts yet: the host has no equivalent consent surface.

###### Parameters

| Parameter | Type                                      |
| --------- | ----------------------------------------- |
| `event`   | [`PrivacyEngagement`](#privacyengagement) |

###### Returns

`void`

##### verifyApplePass()

```ts
verifyApplePass(): Promise<boolean>;
```

###### Returns

`Promise`<`boolean`>

***

### FreeGiftStockProduct

#### Properties

##### available

```ts
available: boolean;
```

##### productId

```ts
productId: string;
```

##### variants

```ts
variants: FreeGiftStockVariant[];
```

***

### FreeGiftStockRequest

#### Properties

##### programId

```ts
programId: string;
```

##### shopId

```ts
shopId: string;
```

***

### FreeGiftStockVariant

#### Properties

##### available

```ts
available: boolean;
```

##### variantId

```ts
variantId: string;
```

***

### HostAdapter

#### Properties

##### auth

```ts
auth: AuthPort;
```

##### cart

```ts
cart: CartPort;
```

##### data

```ts
data: DataPort;
```

#### Methods

##### context()

```ts
context(): HostContext;
```

###### Returns

[`HostContext`](#hostcontext)

##### navigate()

```ts
navigate(target): void;
```

###### Parameters

| Parameter | Type                      |
| --------- | ------------------------- |
| `target`  | [`NavTarget`](#navtarget) |

###### Returns

`void`

***

### HostContext

#### Properties

##### accountUrl

```ts
accountUrl: string;
```

##### activeMarketCurrency?

```ts
activeMarketCurrency?: string;
```

Liquid active-market currency without shop or USD fallback. Not available on headless hosts yet.

##### contentLocale?

```ts
contentLocale?: string;
```

Joy content locale preserves the legacy empty-string fallback. Not available on headless hosts yet.

##### country

```ts
country: string;
```

##### currency

```ts
currency: string;
```

##### currencyRate?

```ts
currencyRate?: number;
```

Liquid active-market currency conversion rate. Not available on headless hosts yet.

##### currentProduct?

```ts
currentProduct?: CurrentProduct;
```

##### customerId?

```ts
customerId?: string;
```

##### customerProfile?

```ts
customerProfile?: object;
```

Synchronous Liquid customer fields used during initial rendering. Not available on headless hosts yet.

###### addresses?

```ts
addresses?: unknown[];
```

###### avatarUrl?

```ts
avatarUrl?: string;
```

###### default_address?

```ts
default_address?: Record<string, unknown>;
```

###### first_name?

```ts
first_name?: string;
```

###### last_name?

```ts
last_name?: string;
```

###### orders?

```ts
orders?: unknown[];
```

###### orders_count?

```ts
orders_count?: number;
```

###### phone?

```ts
phone?: string;
```

##### customerTierId?

```ts
customerTierId?: string;
```

Liquid customer tier identity backs tier-aware referral rates. Not available on headless hosts yet.

##### debug?

```ts
debug?: boolean;
```

Liquid diagnostic flag; distinct from preview mode. Not available on headless hosts yet.

##### demoMode?

```ts
demoMode?: boolean;
```

##### locale?

```ts
locale?: string;
```

##### loginUrl

```ts
loginUrl: string;
```

##### loyaltyPageUrl

```ts
loyaltyPageUrl: string;
```

##### moneyFormat?

```ts
moneyFormat?: string;
```

##### ordersCustomerId?

```ts
ordersCustomerId?: string;
```

The legacy orders API requires the bare Shopify session customer id. Not available on headless hosts yet.

##### page

```ts
page: object;
```

###### handle

```ts
handle: string;
```

###### resourceId

```ts
resourceId: string;
```

###### type

```ts
type: string;
```

##### preview?

```ts
preview?: boolean;
```

##### registerUrl

```ts
registerUrl: string;
```

##### routesRoot

```ts
routesRoot: string;
```

##### shopDomain

```ts
shopDomain: string;
```

##### shopId?

```ts
shopId?: string;
```

##### shopifyCustomerId?

```ts
shopifyCustomerId?: string;
```

Shopify session identity. Not available on headless hosts yet.

##### translation

```ts
translation: Record<string, string>;
```

##### viewport

```ts
viewport: object;
```

Liquid viewport snapshot used by launcher visibility. Not available on headless hosts yet.

###### width

```ts
width: number;
```

***

### ImpactHistory

#### Properties

##### connected

```ts
connected: boolean;
```

##### events

```ts
events: ImpactHistoryEvent[];
```

##### totals

```ts
totals: object;
```

###### plasticBottles

```ts
plasticBottles: number;
```

###### trees

```ts
trees: number;
```

***

### ImpactHistoryEvent

#### Properties

##### createdAt?

```ts
createdAt?: string;
```

##### id?

```ts
id?: string;
```

##### quantity

```ts
quantity: number;
```

##### status

```ts
status: string;
```

##### type

```ts
type: "tree" | "plastic";
```

***

### LegacyActivityPage

Legacy activity list fields consumed by the moved activity handlers.

#### Properties

##### data?

```ts
data?: unknown[];
```

##### pageInfo?

```ts
pageInfo?: LegacyPageInfo;
```

***

### LegacyPageInfo

Cursor flags consumed by the activity and reward pagers.

#### Properties

##### hasNext?

```ts
hasNext?: boolean;
```

##### hasPre?

```ts
hasPre?: boolean;
```

***

### LegacyRewardSet

Legacy reward list fields consumed by the moved reward handlers.

#### Properties

##### data?

```ts
data?: unknown[];
```

##### pageInfo?

```ts
pageInfo?: LegacyPageInfo;
```

##### response?

```ts
response?: object;
```

###### pageInfo?

```ts
pageInfo?: LegacyPageInfo;
```

###### total?

```ts
total?: number;
```

##### total?

```ts
total?: number;
```

***

### OrderActivitiesRequest

The legacy order-activities API uses Joy's customer id. Not available on headless hosts yet.

#### Properties

##### customerId

```ts
customerId: string;
```

##### orderId

```ts
orderId: string | number;
```

***

### OrderByIdRequest

The legacy orders API needs a Shopify session customer id. Not available on headless hosts yet.

#### Properties

##### customerId

```ts
customerId: string;
```

##### orderId

```ts
orderId: string | number;
```

***

### OrderListResponse

The legacy list envelope consumed by unwrapListResponse().

#### Properties

##### data?

```ts
data?: 
  | unknown[]
  | {
  data?: unknown[];
};
```

***

### OrdersRequest

The legacy orders API needs a Shopify session customer id. Not available on headless hosts yet.

#### Properties

##### customerId

```ts
customerId: string;
```

***

### PendingTierRewardClaim

#### Properties

##### claimedCount?

```ts
claimedCount?: number;
```

##### claimedVariantIds?

```ts
claimedVariantIds?: string[];
```

##### claimType?

```ts
claimType?: string;
```

##### expiredAt?

```ts
expiredAt?: string | null;
```

##### id?

```ts
id?: string;
```

##### maxClaims?

```ts
maxClaims?: number;
```

##### programId?

```ts
programId?: string;
```

##### rewardProductQuantity?

```ts
rewardProductQuantity?: number;
```

##### status?

```ts
status?: string;
```

***

### PrivacyConsent

#### Properties

##### analytics

```ts
analytics: string;
```

##### marketing

```ts
marketing: string;
```

##### preferences

```ts
preferences: string;
```

##### sale_of_data

```ts
sale_of_data: string;
```

***

### PrivacyConsentSaveResult

#### Properties

##### ok

```ts
ok: boolean;
```

##### state

```ts
state: PrivacyConsentState;
```

***

### PrivacyConsentState

#### Properties

##### consent

```ts
consent: PrivacyConsent;
```

##### region

```ts
region: "eu" | "us" | "row";
```

***

### PromotedCollection

#### Properties

##### handle

```ts
handle: string;
```

##### id

```ts
id: string;
```

##### image?

```ts
image?: string;
```

##### productCount?

```ts
productCount?: number;
```

##### title

```ts
title: string;
```

##### url

```ts
url: string;
```

***

### PromotedCollectionSelection

#### Properties

##### handle

```ts
handle: string;
```

##### id?

```ts
id?: string | number;
```

##### title?

```ts
title?: string;
```

***

### ProviderReview

Provider-neutral raw review fields consumed by normalizeReview().

#### Properties

##### body?

```ts
body?: string;
```

##### content?

```ts
content?: string;
```

##### contentReview?

```ts
contentReview?: string;
```

##### created_at?

```ts
created_at?: string;
```

##### createdAt?

```ts
createdAt?: string;
```

##### id?

```ts
id?: string | number;
```

##### images?

```ts
images?: unknown[];
```

##### product?

```ts
product?: ProviderReviewProduct;
```

##### products?

```ts
products?: ProviderReviewProduct[];
```

##### rate?

```ts
rate?: number;
```

##### rating?

```ts
rating?: number;
```

##### reviewId?

```ts
reviewId?: string | number;
```

##### reviewImages?

```ts
reviewImages?: unknown[];
```

##### title?

```ts
title?: string;
```

##### titleReview?

```ts
titleReview?: string;
```

***

### ProviderReviewProduct

Raw provider product fields consumed by normalizeProduct().

#### Properties

##### handle?

```ts
handle?: string;
```

##### id?

```ts
id?: string | number;
```

##### image?

```ts
image?: string;
```

##### title?

```ts
title?: string;
```

***

### ProviderReviewsRequest

#### Properties

##### after?

```ts
after?: string;
```

##### before?

```ts
before?: string;
```

##### customerId?

```ts
customerId?: string;
```

##### provider

```ts
provider: string;
```

***

### RecentlyViewedProduct

Persisted product-card fields rendered by the recently-viewed carousel.

#### Properties

##### compareAtPrice

```ts
compareAtPrice: string;
```

##### handle

```ts
handle: string;
```

##### id

```ts
id: string | number;
```

##### image

```ts
image: string;
```

##### imageHover

```ts
imageHover: string;
```

##### price

```ts
price: string;
```

##### title

```ts
title: string;
```

##### url

```ts
url: string;
```

***

### RedeemOptions

#### Properties

##### points?

```ts
points?: number;
```

##### recipient?

```ts
recipient?: RedeemRecipient | null;
```

##### variantId?

```ts
variantId?: string;
```

***

### RedeemRecipient

Gift-card "send as a gift" payload forwarded verbatim in the /redeem body.
Shape matches the widget's joy-redeem event detail (joy-redeem-detail
`_buildRecipientPayload`). Null/omitted for self-redeem or non-gift-card.

#### Properties

##### email

```ts
email: string;
```

##### message?

```ts
message?: string;
```

##### name?

```ts
name?: string;
```

##### sendNotificationAt?

```ts
sendNotificationAt?: string;
```

***

### ReferralHistoryItem

One paginated referral-history row returned by Liquid's `/referred` API.

#### Properties

##### createdAt

```ts
createdAt: string | null;
```

##### email

```ts
email: string;
```

##### id

```ts
id: string;
```

##### status

```ts
status: "pending" | "complete" | "cancel";
```

***

### ReferralHistoryPage

Referral-history rows plus the cursor flags the pager consumes.

#### Properties

##### items

```ts
items: ReferralHistoryItem[];
```

##### pagination

```ts
pagination: Pagination;
```

***

### ReferralLink

#### Properties

##### referralCode?

```ts
referralCode?: string;
```

##### urlReferral?

```ts
urlReferral?: string;
```

***

### ReferralLinkRequest

#### Properties

##### email

```ts
email: string;
```

##### shopId

```ts
shopId: string;
```

***

### ReferralQuery

#### Properties

##### after?

```ts
after?: string;
```

##### before?

```ts
before?: string;
```

***

### ReviewRewardsRequest

#### Properties

##### customerId?

```ts
customerId?: string;
```

##### provider

```ts
provider: string;
```

***

### ReviewRewardsResult

#### Properties

##### customerPoint?

```ts
customerPoint?: number;
```

##### rewards

```ts
rewards: Record<string, number>;
```

***

### RewardQuery

Rewards and "received rewards" (gifts from friends) are one method discriminated by
`received`, because they page independently but map to the same reward shape.
`query` is fully built by the caller — forward it whole, as with ActivityQuery.

#### Properties

##### query?

```ts
query?: string | URLSearchParams;
```

##### received?

```ts
received?: boolean;
```

***

### SendRewardToFriendRequest

#### Properties

##### couponCode

```ts
couponCode: string;
```

##### customerId

```ts
customerId: string;
```

##### programId

```ts
programId: string;
```

##### recipient

```ts
recipient: object;
```

###### personalMessage?

```ts
personalMessage?: string;
```

###### recipientEmail

```ts
recipientEmail: string;
```

###### recipientName?

```ts
recipientName?: string;
```

##### shopId

```ts
shopId: string;
```

***

### SendRewardToFriendResult

#### Properties

##### error?

```ts
error?: string;
```

##### success?

```ts
success?: boolean;
```

***

### StoreCreditAccount

#### Properties

##### amount

```ts
amount: number;
```

##### currencyCode

```ts
currencyCode: string;
```

##### id?

```ts
id?: string;
```

***

### StoreCreditTransactionsRequest

#### Properties

##### accountId

```ts
accountId: string;
```

##### after?

```ts
after?: string;
```

##### before?

```ts
before?: string;
```

##### customerId?

```ts
customerId?: string;
```

##### limit

```ts
limit: number;
```

***

### StoreCreditTransactionsResult

#### Properties

##### accountId

```ts
accountId: string | null;
```

##### data

```ts
data: unknown[];
```

##### endCursor

```ts
endCursor: string | null;
```

##### hasNextPage

```ts
hasNextPage: boolean;
```

##### hasPrevPage

```ts
hasPrevPage: boolean;
```

##### startCursor

```ts
startCursor: string | null;
```

***

### StorefrontProduct

The Shopify Ajax product shape consumed by shared product-card helpers.

#### Extended by

- [`CurrentProduct`](#currentproduct)
- [`AovBundleProductCandidate`](#aovbundleproductcandidate)

#### Properties

##### compare_at_price?

```ts
compare_at_price?: StorefrontProductPrice;
```

##### compare_at_price_max?

```ts
compare_at_price_max?: StorefrontProductPrice;
```

##### featured_image?

```ts
featured_image?: string | StorefrontProductImage;
```

##### handle?

```ts
handle?: string;
```

##### id?

```ts
id?: string | number;
```

##### images?

```ts
images?: (string | StorefrontProductImage)[];
```

##### price?

```ts
price?: StorefrontProductPrice;
```

##### product_id?

```ts
product_id?: string | number;
```

##### selling_plan_allocations?

```ts
selling_plan_allocations?: StorefrontSellingPlanAllocation[];
```

##### sellingPlanAllocations?

```ts
sellingPlanAllocations?: StorefrontSellingPlanAllocation[];
```

##### title?

```ts
title?: string;
```

##### variants?

```ts
variants?: StorefrontProductVariant[];
```

***

### StorefrontProductImage

#### Properties

##### src?

```ts
src?: string;
```

##### url?

```ts
url?: string;
```

***

### StorefrontProductVariant

#### Properties

##### compare_at_price?

```ts
compare_at_price?: StorefrontProductPrice;
```

##### price?

```ts
price?: StorefrontProductPrice;
```

##### selling_plan_allocations?

```ts
selling_plan_allocations?: StorefrontSellingPlanAllocation[];
```

##### sellingPlanAllocations?

```ts
sellingPlanAllocations?: StorefrontSellingPlanAllocation[];
```

***

### StorefrontSellingPlanAllocation

#### Properties

##### per_delivery_price?

```ts
per_delivery_price?: StorefrontProductPrice;
```

##### perDeliveryPrice?

```ts
perDeliveryPrice?: StorefrontProductPrice;
```

##### price?

```ts
price?: StorefrontProductPrice;
```

***

### SubmitProviderReviewRequest

#### Properties

##### payload

```ts
payload: Record<string, unknown>;
```

##### provider

```ts
provider: string;
```

***

### TierReward

#### Properties

##### id?

```ts
id?: string | number;
```

##### tierRewards?

```ts
tierRewards?: TierRewardDefinition[];
```

***

### WidgetControllerHandle

#### Methods

##### dispose()

```ts
dispose(): void;
```

###### Returns

`void`

## Type Aliases

### ActivityQuery

```ts
type ActivityQuery = string | URLSearchParams;
```

A fully-built activity query — NOT a bare cursor. Carries `limit` and, for the
points-only history, `type=points`, alongside any `before`/`after` cursor. A host
must forward it whole; rebuilding it from a cursor silently drops the other params.

***

### AuthState

```ts
type AuthState = 
  | {
  status: "loading";
}
  | {
  status: "guest";
}
  | {
  status: "authenticated";
};
```

***

### CoreDataPort

```ts
type CoreDataPort = Pick<DataPort, 
  | "getShopConfig"
  | "getTiers"
  | "getCustomer"
  | "getPrograms"
  | "getReferral"
  | "getReferralHistory"
  | "redeem"
  | "earn"
  | "earnUpload"
  | "earnSocial"
  | "getProductByHandle"
  | "getRecentlyViewedProducts"
| "saveRecentlyViewedProducts">;
```

The slice of [DataPort](#dataport) that BOTH the Liquid host and the headless host
implement with identical signatures. Measured, not asserted: the other 35
members are either absent from the headless port or carry a different
contract there. Adding a member here is a promise that both hosts honour it.

***

### Customer

```ts
type Customer = Customer;
```

***

### EarnActionResponse

```ts
type EarnActionResponse = object;
```

#### Properties

##### data?

```ts
data?: object & Record<string, unknown>;
```

###### Type Declaration

###### customer?

```ts
customer?: Record<string, unknown>;
```

###### point?

```ts
point?: number;
```

##### error?

```ts
error?: 
  | string
  | {
  message?: string;
};
```

##### point?

```ts
point?: number;
```

##### success?

```ts
success?: boolean;
```

***

### EarnImageInput

```ts
type EarnImageInput = EarnImageUpload;
```

***

### EarnRequest

```ts
type EarnRequest = 
  | {
  context: SubmitFormEarnContext;
  endpoint: "/submit-form";
  programId: string;
}
  | {
  context: GoogleMapsReviewEarnContext;
  endpoint: "/google-maps-review";
  programId: string;
}
  | {
  context: ReceiptEarnContext;
  endpoint: "/activity/submit-receipt";
  programId: string;
}
  | {
  context: BirthdayEarnContext;
  endpoint: "/birthday";
  programId: string;
};
```

Semantic input for the three legacy activity-submit transports. The
discriminator preserves the endpoint distinction Liquid needs, while the
`context` shapes are the frozen Headless API v1 contract Hydrogen sends to
its single `/customer/earn` endpoint.

***

### EarnResult

```ts
type EarnResult = EarnResult;
```

***

### EarnUploadResult

```ts
type EarnUploadResult = EarnUploadResult;
```

***

### FreeGiftStockResult

```ts
type FreeGiftStockResult = FreeGiftStockProduct[] | null;
```

Null preserves the legacy malformed-response branch separately from an empty stock list.

***

### MilestoneProgress

```ts
type MilestoneProgress = Record<string, number>;
```

***

### NavTarget

```ts
type NavTarget = 
  | {
  type: "login" | "register" | "loyaltyPage" | "view" | "external";
  url?: string;
  view?: string;
}
  | {
  hash: string;
  type: "hash";
};
```

***

### PrivacyConsentChanges

```ts
type PrivacyConsentChanges = Partial<Record<keyof PrivacyConsent, boolean>>;
```

***

### PrivacyEngagement

```ts
type PrivacyEngagement = 
  | {
  name: "privacy_block_viewed";
  region: PrivacyConsentState["region"];
}
  | {
  category: string;
  name: "privacy_toggle_changed";
  region?: PrivacyConsentState["region"];
};
```

***

### Program

```ts
type Program = Program;
```

***

### ProviderReviewsResult

```ts
type ProviderReviewsResult = 
  | {
  errorKind: "login_required";
}
  | {
  data?: {
     pagination?: unknown;
     reviews?: ProviderReview[];
  };
  success: true;
};
```

***

### RedeemResult

```ts
type RedeemResult = RedeemResult;
```

***

### Referral

```ts
type Referral = Referral;
```

***

### ShopConfig

```ts
type ShopConfig = ShopConfig;
```

***

### SocialEarnResult

```ts
type SocialEarnResult = SocialEarnResult;
```

***

### StorefrontProductPrice

```ts
type StorefrontProductPrice = number | string;
```

***

### SubmitProviderReviewResult

```ts
type SubmitProviderReviewResult = 
  | {
  errorKind: "login_required";
}
  | {
  unsupported: true;
}
  | {
  message?: string;
  success: false;
}
  | {
  data: ProviderReview;
  success: true;
};
```

***

### Tier

```ts
type Tier = Tier;
```

***

### TierRewardsResult

```ts
type TierRewardsResult = TierReward[] | null;
```

Null preserves the legacy malformed-response branch separately from an empty reward list.

## References

### TierRewardDefinition

Re-exports [TierRewardDefinition](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#tierrewarddefinition)
