@medialane/sdk 0.102.0 → 0.104.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -817,6 +817,19 @@ interface ApiCollectionProfile {
817
817
  updatedBy: string | null;
818
818
  updatedAt: string;
819
819
  }
820
+ interface UpdateCollectionProfileInput {
821
+ displayName?: string | null;
822
+ description?: string | null;
823
+ image?: string | null;
824
+ bannerImage?: string | null;
825
+ websiteUrl?: string | null;
826
+ twitterUrl?: string | null;
827
+ discordUrl?: string | null;
828
+ telegramUrl?: string | null;
829
+ gatedContentTitle?: string | null;
830
+ gatedContentUrl?: string | null;
831
+ gatedContentType?: "VIDEO" | "STREAM" | "AUDIO" | "DOCUMENT" | "LINK" | null;
832
+ }
820
833
  interface ApiCollectionSlugClaim {
821
834
  id: string;
822
835
  slug: string;
@@ -1094,7 +1107,7 @@ declare class ApiClient {
1094
1107
  }>>;
1095
1108
  completeBusinessProvisioning(id: string): Promise<ApiResponse<ApiBusinessProvisioning>>;
1096
1109
  getCollectionProfile(contractAddress: string): Promise<ApiCollectionProfile | null>;
1097
- updateCollectionProfile(contractAddress: string, data: Partial<Omit<ApiCollectionProfile, "contractAddress" | "chain" | "updatedBy" | "updatedAt">>, siwsToken: string): Promise<ApiCollectionProfile>;
1110
+ updateCollectionProfile(contractAddress: string, data: UpdateCollectionProfileInput, siwsToken: string): Promise<ApiCollectionProfile>;
1098
1111
  getWalletActivity(address: string, chain?: "STARKNET"): Promise<ApiResponse<ApiWalletActivity[]>>;
1099
1112
  getGatedContent(contractAddress: string, siwsToken: string): Promise<{
1100
1113
  title: string;
@@ -1302,4 +1315,4 @@ interface ProposeSponsorshipParams {
1302
1315
  royaltyBps: bigint | string;
1303
1316
  }
1304
1317
 
1305
- export { type ApiRewardsConfig as $, type AcceptSponsorshipBidIntentParams as A, type ApiIntent as B, type ApiIntentCreated as C, type ApiKeyStatus as D, type ApiMeta as E, type ApiMetadataSignedUrl as F, type ApiMetadataUpload as G, type ApiOrder as H, type ApiOrderConsideration as I, type ApiOrderOffer as J, type ApiOrderPrice as K, type ApiOrderTokenMeta as L, type ApiOrderTxHash as M, type ApiOrdersQuery as N, type ApiPointEvent as O, type ApiPortalKey as P, type ApiPortalKeyCreated as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiPortalMe as T, type ApiPublicRemix as U, type ApiRemixOffer as V, type ApiRemixOfferPrice as W, type ApiRemixOffersQuery as X, type ApiResponse as Y, type ApiRewardsBadge as Z, type ApiRewardsBatchEntry as _, type ServiceCapability as a, type OpenLicense as a$, type ApiRewardsLeaderboardEntry as a0, type ApiRewardsLevel as a1, type ApiSearchCollectionResult as a2, type ApiSearchCreatorResult as a3, type ApiSearchResult as a4, type ApiSearchTokenResult as a5, type ApiToken as a6, type ApiTokenBalance as a7, type ApiTokenMetadata as a8, type ApiUsageDay as a9, type CreateSponsorshipOfferIntentParams as aA, type CreateSponsorshipOfferParams as aB, type CreateSponsorshipProposalIntentParams as aC, type CreateTicketParams as aD, type CreateTierIntentParams as aE, type CreateWebhookParams as aF, type DropMintStatus as aG, type EnforcementDeclaration as aH, type FactoryFamilyServiceId as aI, type FeeConfig as aJ, FeeConfigSchema as aK, type FulfillOrderIntentParams as aL, type IPType as aM, type IntentCall as aN, type IntentStatus as aO, type IntentType as aP, type IpAttribute as aQ, type IpNftMetadata as aR, type LaunchCoinIntentParams as aS, type MakeOfferIntentParams as aT, MedialaneApiError as aU, type MedialaneConfig as aV, type MedialaneErrorCode as aW, type MintMembershipsParams as aX, type MintTicketsParams as aY, OPEN_LICENSES as aZ, type OfferItem as a_, type ApiUserRewards as aa, type ApiUserWallet as ab, type ApiWalletActivity as ac, type ApiWebhookCreated as ad, type ApiWebhookEndpoint as ae, type AutoRemixOfferParams as af, type CancelOrderIntentParams as ag, type ChainFilter as ah, type CheckoutIntentItem as ai, type ClaimConditions as aj, type CollectionServiceId as ak, type CollectionSort as al, type CollectionTokensSort as am, type ConfirmRemixOfferParams as an, type ConfirmSelfRemixParams as ao, type ConsiderationItem as ap, type CreateCheckoutIntentParams as aq, type CreateCoinIntentParams as ar, type CreateCollectionIntentParams as as, type CreateCounterOfferIntentParams as at, type CreateDropParams as au, type CreateListingIntentParams as av, type CreateMembershipParams as aw, type CreateMintIntentParams as ax, type CreatePopCollectionParams as ay, type CreateRemixOfferParams as az, type AcceptSponsorshipProposalIntentParams as b, type Order as b0, type OrderDetails as b1, type OrderParameters as b2, type OrderStatus as b3, type PlaceSponsorshipBidIntentParams as b4, type PopBatchEligibilityItem as b5, type PopClaimStatus as b6, type PopEventType as b7, type ProposeSponsorshipParams as b8, type RejectSponsorshipProposalIntentParams as b9, type RemixOfferStatus as ba, type ResolvedConfig as bb, type RetractSponsorshipBidIntentParams as bc, type RetryOptions as bd, type ServiceEventDeclaration as be, type SetSponsorshipOfferOpenIntentParams as bf, type SortOrder as bg, type TenantPlan as bh, type TierServiceId as bi, type TxResult as bj, type WebhookEventType as bk, type WebhookStatus as bl, type WithdrawSponsorshipProposalIntentParams as bm, resolveConfig as bn, resolveFeeConfig as bo, type ActivityType as c, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiAppSource as h, type ApiBusinessProvisioning as i, type ApiChain as j, type ApiCheckoutIntentResult as k, ApiClient as l, type ApiCoin as m, type ApiCoinClaimResult as n, type ApiCoinPrice as o, type ApiCoinPrices as p, type ApiCoinsQuery as q, type ApiCollection as r, type ApiCollectionClaim as s, type ApiCollectionProfile as t, type ApiCollectionSlugClaim as u, type ApiCollectionsQuery as v, type ApiComment as w, type ApiCounterOffersQuery as x, type ApiCreatorListResult as y, type ApiCreatorProfile as z };
1318
+ export { type ApiRewardsConfig as $, type AcceptSponsorshipBidIntentParams as A, type ApiIntent as B, type ApiIntentCreated as C, type ApiKeyStatus as D, type ApiMeta as E, type ApiMetadataSignedUrl as F, type ApiMetadataUpload as G, type ApiOrder as H, type ApiOrderConsideration as I, type ApiOrderOffer as J, type ApiOrderPrice as K, type ApiOrderTokenMeta as L, type ApiOrderTxHash as M, type ApiOrdersQuery as N, type ApiPointEvent as O, type ApiPortalKey as P, type ApiPortalKeyCreated as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiPortalMe as T, type ApiPublicRemix as U, type ApiRemixOffer as V, type ApiRemixOfferPrice as W, type ApiRemixOffersQuery as X, type ApiResponse as Y, type ApiRewardsBadge as Z, type ApiRewardsBatchEntry as _, type ServiceCapability as a, type OpenLicense as a$, type ApiRewardsLeaderboardEntry as a0, type ApiRewardsLevel as a1, type ApiSearchCollectionResult as a2, type ApiSearchCreatorResult as a3, type ApiSearchResult as a4, type ApiSearchTokenResult as a5, type ApiToken as a6, type ApiTokenBalance as a7, type ApiTokenMetadata as a8, type ApiUsageDay as a9, type CreateSponsorshipOfferIntentParams as aA, type CreateSponsorshipOfferParams as aB, type CreateSponsorshipProposalIntentParams as aC, type CreateTicketParams as aD, type CreateTierIntentParams as aE, type CreateWebhookParams as aF, type DropMintStatus as aG, type EnforcementDeclaration as aH, type FactoryFamilyServiceId as aI, type FeeConfig as aJ, FeeConfigSchema as aK, type FulfillOrderIntentParams as aL, type IPType as aM, type IntentCall as aN, type IntentStatus as aO, type IntentType as aP, type IpAttribute as aQ, type IpNftMetadata as aR, type LaunchCoinIntentParams as aS, type MakeOfferIntentParams as aT, MedialaneApiError as aU, type MedialaneConfig as aV, type MedialaneErrorCode as aW, type MintMembershipsParams as aX, type MintTicketsParams as aY, OPEN_LICENSES as aZ, type OfferItem as a_, type ApiUserRewards as aa, type ApiUserWallet as ab, type ApiWalletActivity as ac, type ApiWebhookCreated as ad, type ApiWebhookEndpoint as ae, type AutoRemixOfferParams as af, type CancelOrderIntentParams as ag, type ChainFilter as ah, type CheckoutIntentItem as ai, type ClaimConditions as aj, type CollectionServiceId as ak, type CollectionSort as al, type CollectionTokensSort as am, type ConfirmRemixOfferParams as an, type ConfirmSelfRemixParams as ao, type ConsiderationItem as ap, type CreateCheckoutIntentParams as aq, type CreateCoinIntentParams as ar, type CreateCollectionIntentParams as as, type CreateCounterOfferIntentParams as at, type CreateDropParams as au, type CreateListingIntentParams as av, type CreateMembershipParams as aw, type CreateMintIntentParams as ax, type CreatePopCollectionParams as ay, type CreateRemixOfferParams as az, type AcceptSponsorshipProposalIntentParams as b, type Order as b0, type OrderDetails as b1, type OrderParameters as b2, type OrderStatus as b3, type PlaceSponsorshipBidIntentParams as b4, type PopBatchEligibilityItem as b5, type PopClaimStatus as b6, type PopEventType as b7, type ProposeSponsorshipParams as b8, type RejectSponsorshipProposalIntentParams as b9, type RemixOfferStatus as ba, type ResolvedConfig as bb, type RetractSponsorshipBidIntentParams as bc, type RetryOptions as bd, type ServiceEventDeclaration as be, type SetSponsorshipOfferOpenIntentParams as bf, type SortOrder as bg, type TenantPlan as bh, type TierServiceId as bi, type TxResult as bj, type UpdateCollectionProfileInput as bk, type WebhookEventType as bl, type WebhookStatus as bm, type WithdrawSponsorshipProposalIntentParams as bn, resolveConfig as bo, resolveFeeConfig as bp, type ActivityType as c, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiAppSource as h, type ApiBusinessProvisioning as i, type ApiChain as j, type ApiCheckoutIntentResult as k, ApiClient as l, type ApiCoin as m, type ApiCoinClaimResult as n, type ApiCoinPrice as o, type ApiCoinPrices as p, type ApiCoinsQuery as q, type ApiCollection as r, type ApiCollectionClaim as s, type ApiCollectionProfile as t, type ApiCollectionSlugClaim as u, type ApiCollectionsQuery as v, type ApiComment as w, type ApiCounterOffersQuery as x, type ApiCreatorListResult as y, type ApiCreatorProfile as z };
@@ -817,6 +817,19 @@ interface ApiCollectionProfile {
817
817
  updatedBy: string | null;
818
818
  updatedAt: string;
819
819
  }
820
+ interface UpdateCollectionProfileInput {
821
+ displayName?: string | null;
822
+ description?: string | null;
823
+ image?: string | null;
824
+ bannerImage?: string | null;
825
+ websiteUrl?: string | null;
826
+ twitterUrl?: string | null;
827
+ discordUrl?: string | null;
828
+ telegramUrl?: string | null;
829
+ gatedContentTitle?: string | null;
830
+ gatedContentUrl?: string | null;
831
+ gatedContentType?: "VIDEO" | "STREAM" | "AUDIO" | "DOCUMENT" | "LINK" | null;
832
+ }
820
833
  interface ApiCollectionSlugClaim {
821
834
  id: string;
822
835
  slug: string;
@@ -1094,7 +1107,7 @@ declare class ApiClient {
1094
1107
  }>>;
1095
1108
  completeBusinessProvisioning(id: string): Promise<ApiResponse<ApiBusinessProvisioning>>;
1096
1109
  getCollectionProfile(contractAddress: string): Promise<ApiCollectionProfile | null>;
1097
- updateCollectionProfile(contractAddress: string, data: Partial<Omit<ApiCollectionProfile, "contractAddress" | "chain" | "updatedBy" | "updatedAt">>, siwsToken: string): Promise<ApiCollectionProfile>;
1110
+ updateCollectionProfile(contractAddress: string, data: UpdateCollectionProfileInput, siwsToken: string): Promise<ApiCollectionProfile>;
1098
1111
  getWalletActivity(address: string, chain?: "STARKNET"): Promise<ApiResponse<ApiWalletActivity[]>>;
1099
1112
  getGatedContent(contractAddress: string, siwsToken: string): Promise<{
1100
1113
  title: string;
@@ -1302,4 +1315,4 @@ interface ProposeSponsorshipParams {
1302
1315
  royaltyBps: bigint | string;
1303
1316
  }
1304
1317
 
1305
- export { type ApiRewardsConfig as $, type AcceptSponsorshipBidIntentParams as A, type ApiIntent as B, type ApiIntentCreated as C, type ApiKeyStatus as D, type ApiMeta as E, type ApiMetadataSignedUrl as F, type ApiMetadataUpload as G, type ApiOrder as H, type ApiOrderConsideration as I, type ApiOrderOffer as J, type ApiOrderPrice as K, type ApiOrderTokenMeta as L, type ApiOrderTxHash as M, type ApiOrdersQuery as N, type ApiPointEvent as O, type ApiPortalKey as P, type ApiPortalKeyCreated as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiPortalMe as T, type ApiPublicRemix as U, type ApiRemixOffer as V, type ApiRemixOfferPrice as W, type ApiRemixOffersQuery as X, type ApiResponse as Y, type ApiRewardsBadge as Z, type ApiRewardsBatchEntry as _, type ServiceCapability as a, type OpenLicense as a$, type ApiRewardsLeaderboardEntry as a0, type ApiRewardsLevel as a1, type ApiSearchCollectionResult as a2, type ApiSearchCreatorResult as a3, type ApiSearchResult as a4, type ApiSearchTokenResult as a5, type ApiToken as a6, type ApiTokenBalance as a7, type ApiTokenMetadata as a8, type ApiUsageDay as a9, type CreateSponsorshipOfferIntentParams as aA, type CreateSponsorshipOfferParams as aB, type CreateSponsorshipProposalIntentParams as aC, type CreateTicketParams as aD, type CreateTierIntentParams as aE, type CreateWebhookParams as aF, type DropMintStatus as aG, type EnforcementDeclaration as aH, type FactoryFamilyServiceId as aI, type FeeConfig as aJ, FeeConfigSchema as aK, type FulfillOrderIntentParams as aL, type IPType as aM, type IntentCall as aN, type IntentStatus as aO, type IntentType as aP, type IpAttribute as aQ, type IpNftMetadata as aR, type LaunchCoinIntentParams as aS, type MakeOfferIntentParams as aT, MedialaneApiError as aU, type MedialaneConfig as aV, type MedialaneErrorCode as aW, type MintMembershipsParams as aX, type MintTicketsParams as aY, OPEN_LICENSES as aZ, type OfferItem as a_, type ApiUserRewards as aa, type ApiUserWallet as ab, type ApiWalletActivity as ac, type ApiWebhookCreated as ad, type ApiWebhookEndpoint as ae, type AutoRemixOfferParams as af, type CancelOrderIntentParams as ag, type ChainFilter as ah, type CheckoutIntentItem as ai, type ClaimConditions as aj, type CollectionServiceId as ak, type CollectionSort as al, type CollectionTokensSort as am, type ConfirmRemixOfferParams as an, type ConfirmSelfRemixParams as ao, type ConsiderationItem as ap, type CreateCheckoutIntentParams as aq, type CreateCoinIntentParams as ar, type CreateCollectionIntentParams as as, type CreateCounterOfferIntentParams as at, type CreateDropParams as au, type CreateListingIntentParams as av, type CreateMembershipParams as aw, type CreateMintIntentParams as ax, type CreatePopCollectionParams as ay, type CreateRemixOfferParams as az, type AcceptSponsorshipProposalIntentParams as b, type Order as b0, type OrderDetails as b1, type OrderParameters as b2, type OrderStatus as b3, type PlaceSponsorshipBidIntentParams as b4, type PopBatchEligibilityItem as b5, type PopClaimStatus as b6, type PopEventType as b7, type ProposeSponsorshipParams as b8, type RejectSponsorshipProposalIntentParams as b9, type RemixOfferStatus as ba, type ResolvedConfig as bb, type RetractSponsorshipBidIntentParams as bc, type RetryOptions as bd, type ServiceEventDeclaration as be, type SetSponsorshipOfferOpenIntentParams as bf, type SortOrder as bg, type TenantPlan as bh, type TierServiceId as bi, type TxResult as bj, type WebhookEventType as bk, type WebhookStatus as bl, type WithdrawSponsorshipProposalIntentParams as bm, resolveConfig as bn, resolveFeeConfig as bo, type ActivityType as c, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiAppSource as h, type ApiBusinessProvisioning as i, type ApiChain as j, type ApiCheckoutIntentResult as k, ApiClient as l, type ApiCoin as m, type ApiCoinClaimResult as n, type ApiCoinPrice as o, type ApiCoinPrices as p, type ApiCoinsQuery as q, type ApiCollection as r, type ApiCollectionClaim as s, type ApiCollectionProfile as t, type ApiCollectionSlugClaim as u, type ApiCollectionsQuery as v, type ApiComment as w, type ApiCounterOffersQuery as x, type ApiCreatorListResult as y, type ApiCreatorProfile as z };
1318
+ export { type ApiRewardsConfig as $, type AcceptSponsorshipBidIntentParams as A, type ApiIntent as B, type ApiIntentCreated as C, type ApiKeyStatus as D, type ApiMeta as E, type ApiMetadataSignedUrl as F, type ApiMetadataUpload as G, type ApiOrder as H, type ApiOrderConsideration as I, type ApiOrderOffer as J, type ApiOrderPrice as K, type ApiOrderTokenMeta as L, type ApiOrderTxHash as M, type ApiOrdersQuery as N, type ApiPointEvent as O, type ApiPortalKey as P, type ApiPortalKeyCreated as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiPortalMe as T, type ApiPublicRemix as U, type ApiRemixOffer as V, type ApiRemixOfferPrice as W, type ApiRemixOffersQuery as X, type ApiResponse as Y, type ApiRewardsBadge as Z, type ApiRewardsBatchEntry as _, type ServiceCapability as a, type OpenLicense as a$, type ApiRewardsLeaderboardEntry as a0, type ApiRewardsLevel as a1, type ApiSearchCollectionResult as a2, type ApiSearchCreatorResult as a3, type ApiSearchResult as a4, type ApiSearchTokenResult as a5, type ApiToken as a6, type ApiTokenBalance as a7, type ApiTokenMetadata as a8, type ApiUsageDay as a9, type CreateSponsorshipOfferIntentParams as aA, type CreateSponsorshipOfferParams as aB, type CreateSponsorshipProposalIntentParams as aC, type CreateTicketParams as aD, type CreateTierIntentParams as aE, type CreateWebhookParams as aF, type DropMintStatus as aG, type EnforcementDeclaration as aH, type FactoryFamilyServiceId as aI, type FeeConfig as aJ, FeeConfigSchema as aK, type FulfillOrderIntentParams as aL, type IPType as aM, type IntentCall as aN, type IntentStatus as aO, type IntentType as aP, type IpAttribute as aQ, type IpNftMetadata as aR, type LaunchCoinIntentParams as aS, type MakeOfferIntentParams as aT, MedialaneApiError as aU, type MedialaneConfig as aV, type MedialaneErrorCode as aW, type MintMembershipsParams as aX, type MintTicketsParams as aY, OPEN_LICENSES as aZ, type OfferItem as a_, type ApiUserRewards as aa, type ApiUserWallet as ab, type ApiWalletActivity as ac, type ApiWebhookCreated as ad, type ApiWebhookEndpoint as ae, type AutoRemixOfferParams as af, type CancelOrderIntentParams as ag, type ChainFilter as ah, type CheckoutIntentItem as ai, type ClaimConditions as aj, type CollectionServiceId as ak, type CollectionSort as al, type CollectionTokensSort as am, type ConfirmRemixOfferParams as an, type ConfirmSelfRemixParams as ao, type ConsiderationItem as ap, type CreateCheckoutIntentParams as aq, type CreateCoinIntentParams as ar, type CreateCollectionIntentParams as as, type CreateCounterOfferIntentParams as at, type CreateDropParams as au, type CreateListingIntentParams as av, type CreateMembershipParams as aw, type CreateMintIntentParams as ax, type CreatePopCollectionParams as ay, type CreateRemixOfferParams as az, type AcceptSponsorshipProposalIntentParams as b, type Order as b0, type OrderDetails as b1, type OrderParameters as b2, type OrderStatus as b3, type PlaceSponsorshipBidIntentParams as b4, type PopBatchEligibilityItem as b5, type PopClaimStatus as b6, type PopEventType as b7, type ProposeSponsorshipParams as b8, type RejectSponsorshipProposalIntentParams as b9, type RemixOfferStatus as ba, type ResolvedConfig as bb, type RetractSponsorshipBidIntentParams as bc, type RetryOptions as bd, type ServiceEventDeclaration as be, type SetSponsorshipOfferOpenIntentParams as bf, type SortOrder as bg, type TenantPlan as bh, type TierServiceId as bi, type TxResult as bj, type UpdateCollectionProfileInput as bk, type WebhookEventType as bl, type WebhookStatus as bm, type WithdrawSponsorshipProposalIntentParams as bn, resolveConfig as bo, resolveFeeConfig as bp, type ActivityType as c, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiAppSource as h, type ApiBusinessProvisioning as i, type ApiChain as j, type ApiCheckoutIntentResult as k, ApiClient as l, type ApiCoin as m, type ApiCoinClaimResult as n, type ApiCoinPrice as o, type ApiCoinPrices as p, type ApiCoinsQuery as q, type ApiCollection as r, type ApiCollectionClaim as s, type ApiCollectionProfile as t, type ApiCollectionSlugClaim as u, type ApiCollectionsQuery as v, type ApiComment as w, type ApiCounterOffersQuery as x, type ApiCreatorListResult as y, type ApiCreatorProfile as z };
@@ -903,8 +903,23 @@ var PUBLIC_RPC_FALLBACKS = [
903
903
  "https://rpc.starknet.lava.build"
904
904
  ];
905
905
  var TRANSIENT_BODY_RE = /"code"\s*:\s*-32001|"code"\s*:\s*-32603|unable to complete|rate.?limit|too many|throttl|exceed.*quota|temporarily unavailable|service unavailable|overload|gateway.*time|upstream.*time|backend.*error/i;
906
+ var POLICY_REFUSAL_CODES = [-32003, -32005, -32600];
907
+ function isPolicyRefusal(input) {
908
+ let body = input.body;
909
+ if (typeof body === "string") {
910
+ try {
911
+ body = JSON.parse(body);
912
+ } catch {
913
+ return false;
914
+ }
915
+ }
916
+ const err = body?.error;
917
+ const code = err && typeof err === "object" ? err.code : void 0;
918
+ return typeof code === "number" && POLICY_REFUSAL_CODES.includes(code);
919
+ }
906
920
  function isTransientRpcError(input) {
907
921
  const { status, body } = input;
922
+ if (isPolicyRefusal({ body })) return false;
908
923
  if (typeof status === "number" && (status === 429 || status >= 500)) return true;
909
924
  if (body == null) return false;
910
925
  if (typeof body === "object") {