@medialane/sdk 0.85.3 → 0.85.5

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.
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as ServiceDefinition, a as ServiceCapability } from './services-Yy1coqTe.cjs';
2
- export { A as AcceptSponsorshipBidIntentParams, b as AcceptSponsorshipProposalIntentParams, c as ActivityType, d as ApiActivitiesQuery, e as ApiActivity, f as ApiActivityPrice, g as ApiAdminCollectionClaim, h as ApiAppSource, i as ApiBusinessProvisioning, j as ApiChain, k as ApiCheckoutIntentResult, l as ApiClient, m as ApiCoin, n as ApiCoinsQuery, o as ApiCollection, p as ApiCollectionClaim, q as ApiCollectionProfile, r as ApiCollectionSlugClaim, s as ApiCollectionsQuery, t as ApiComment, u as ApiCounterOffersQuery, v as ApiCreatorListResult, w as ApiCreatorProfile, x as ApiIntent, y as ApiIntentCreated, z as ApiKeyStatus, B as ApiMeta, C as ApiMetadataSignedUrl, D as ApiMetadataUpload, E as ApiOrder, F as ApiOrderConsideration, G as ApiOrderOffer, H as ApiOrderPrice, I as ApiOrderTokenMeta, J as ApiOrderTxHash, K as ApiOrdersQuery, L as ApiPointEvent, M as ApiPortalKey, N as ApiPortalKeyCreated, O as ApiPortalMe, P as ApiPublicRemix, Q as ApiRemixOffer, R as ApiRemixOfferPrice, T as ApiRemixOffersQuery, U as ApiResponse, V as ApiRewardsBadge, W as ApiRewardsBatchEntry, X as ApiRewardsConfig, Y as ApiRewardsLeaderboardEntry, Z as ApiRewardsLevel, _ as ApiSearchCollectionResult, $ as ApiSearchCreatorResult, a0 as ApiSearchResult, a1 as ApiSearchTokenResult, a2 as ApiToken, a3 as ApiTokenBalance, a4 as ApiTokenMetadata, a5 as ApiUsageDay, a6 as ApiUserRewards, a7 as ApiUserWallet, a8 as ApiWalletActivity, a9 as ApiWebhookCreated, aa as ApiWebhookEndpoint, ab as AutoRemixOfferParams, ac as CancelOrderIntentParams, ad as ChainFilter, ae as ClaimConditions, af as CollectionServiceId, ag as CollectionSort, ah as CollectionTokensSort, ai as ConfirmRemixOfferParams, aj as ConfirmSelfRemixParams, ak as ConsiderationItem, al as CreateCheckoutIntentParams, am as CreateCoinIntentParams, an as CreateCollectionIntentParams, ao as CreateCounterOfferIntentParams, ap as CreateDropParams, aq as CreateListingIntentParams, ar as CreateMembershipParams, as as CreateMintIntentParams, at as CreatePopCollectionParams, au as CreateRemixOfferParams, av as CreateSponsorshipOfferIntentParams, aw as CreateSponsorshipOfferParams, ax as CreateSponsorshipProposalIntentParams, ay as CreateTicketParams, az as CreateTierIntentParams, aA as CreateWebhookParams, aB as DropMintStatus, aC as EnforcementDeclaration, aD as FactoryFamilyServiceId, aE as FeeConfig, aF as FeeConfigSchema, aG as FulfillOrderIntentParams, aH as IPType, aI as IntentCall, aJ as IntentStatus, aK as IntentType, aL as IpAttribute, aM as IpNftMetadata, aN as LaunchCoinIntentParams, aO as MakeOfferIntentParams, aP as MedialaneApiError, aQ as MedialaneConfig, aR as MedialaneErrorCode, aS as MintMembershipsParams, aT as MintTicketsParams, aU as OPEN_LICENSES, aV as OfferItem, aW as OpenLicense, aX as Order, aY as OrderDetails, aZ as OrderParameters, a_ as OrderStatus, a$ as PlaceSponsorshipBidIntentParams, b0 as PopBatchEligibilityItem, b1 as PopClaimStatus, b2 as PopEventType, b3 as ProposeSponsorshipParams, b4 as RejectSponsorshipProposalIntentParams, b5 as RemixOfferStatus, b6 as ResolvedConfig, b7 as ResolvedFeeConfig, b8 as RetractSponsorshipBidIntentParams, b9 as RetryOptions, ba as ServiceEventDeclaration, bb as SetSponsorshipOfferOpenIntentParams, bc as SortOrder, bd as TenantPlan, be as TierServiceId, bf as TxResult, bg as WebhookEventType, bh as WebhookStatus, bi as WithdrawSponsorshipProposalIntentParams, bj as resolveConfig, bk as resolveFeeConfig } from './services-Yy1coqTe.cjs';
1
+ import { S as ServiceDefinition, a as ServiceCapability } from './services-xJvXhXQi.cjs';
2
+ export { A as AcceptSponsorshipBidIntentParams, b as AcceptSponsorshipProposalIntentParams, c as ActivityType, d as ApiActivitiesQuery, e as ApiActivity, f as ApiActivityPrice, g as ApiAdminCollectionClaim, h as ApiAppSource, i as ApiBusinessProvisioning, j as ApiChain, k as ApiCheckoutIntentResult, l as ApiClient, m as ApiCoin, n as ApiCoinsQuery, o as ApiCollection, p as ApiCollectionClaim, q as ApiCollectionProfile, r as ApiCollectionSlugClaim, s as ApiCollectionsQuery, t as ApiComment, u as ApiCounterOffersQuery, v as ApiCreatorListResult, w as ApiCreatorProfile, x as ApiIntent, y as ApiIntentCreated, z as ApiKeyStatus, B as ApiMeta, C as ApiMetadataSignedUrl, D as ApiMetadataUpload, E as ApiOrder, F as ApiOrderConsideration, G as ApiOrderOffer, H as ApiOrderPrice, I as ApiOrderTokenMeta, J as ApiOrderTxHash, K as ApiOrdersQuery, L as ApiPointEvent, M as ApiPortalKey, N as ApiPortalKeyCreated, O as ApiPortalMe, P as ApiPublicRemix, Q as ApiRemixOffer, R as ApiRemixOfferPrice, T as ApiRemixOffersQuery, U as ApiResponse, V as ApiRewardsBadge, W as ApiRewardsBatchEntry, X as ApiRewardsConfig, Y as ApiRewardsLeaderboardEntry, Z as ApiRewardsLevel, _ as ApiSearchCollectionResult, $ as ApiSearchCreatorResult, a0 as ApiSearchResult, a1 as ApiSearchTokenResult, a2 as ApiToken, a3 as ApiTokenBalance, a4 as ApiTokenMetadata, a5 as ApiUsageDay, a6 as ApiUserRewards, a7 as ApiUserWallet, a8 as ApiWalletActivity, a9 as ApiWebhookCreated, aa as ApiWebhookEndpoint, ab as AutoRemixOfferParams, ac as CancelOrderIntentParams, ad as ChainFilter, ae as ClaimConditions, af as CollectionServiceId, ag as CollectionSort, ah as CollectionTokensSort, ai as ConfirmRemixOfferParams, aj as ConfirmSelfRemixParams, ak as ConsiderationItem, al as CreateCheckoutIntentParams, am as CreateCoinIntentParams, an as CreateCollectionIntentParams, ao as CreateCounterOfferIntentParams, ap as CreateDropParams, aq as CreateListingIntentParams, ar as CreateMembershipParams, as as CreateMintIntentParams, at as CreatePopCollectionParams, au as CreateRemixOfferParams, av as CreateSponsorshipOfferIntentParams, aw as CreateSponsorshipOfferParams, ax as CreateSponsorshipProposalIntentParams, ay as CreateTicketParams, az as CreateTierIntentParams, aA as CreateWebhookParams, aB as DropMintStatus, aC as EnforcementDeclaration, aD as FactoryFamilyServiceId, aE as FeeConfig, aF as FeeConfigSchema, aG as FulfillOrderIntentParams, aH as IPType, aI as IntentCall, aJ as IntentStatus, aK as IntentType, aL as IpAttribute, aM as IpNftMetadata, aN as LaunchCoinIntentParams, aO as MakeOfferIntentParams, aP as MedialaneApiError, aQ as MedialaneConfig, aR as MedialaneErrorCode, aS as MintMembershipsParams, aT as MintTicketsParams, aU as OPEN_LICENSES, aV as OfferItem, aW as OpenLicense, aX as Order, aY as OrderDetails, aZ as OrderParameters, a_ as OrderStatus, a$ as PlaceSponsorshipBidIntentParams, b0 as PopBatchEligibilityItem, b1 as PopClaimStatus, b2 as PopEventType, b3 as ProposeSponsorshipParams, b4 as RejectSponsorshipProposalIntentParams, b5 as RemixOfferStatus, b6 as ResolvedConfig, b7 as ResolvedFeeConfig, b8 as RetractSponsorshipBidIntentParams, b9 as RetryOptions, ba as ServiceEventDeclaration, bb as SetSponsorshipOfferOpenIntentParams, bc as SortOrder, bd as TenantPlan, be as TierServiceId, bf as TxResult, bg as WebhookEventType, bh as WebhookStatus, bi as WithdrawSponsorshipProposalIntentParams, bj as resolveConfig, bk as resolveFeeConfig } from './services-xJvXhXQi.cjs';
3
3
  import { C as Chain } from './types-sIc3OCpo.cjs';
4
4
  export { A as AdapterTxResult, a as AssetRef, b as CHAINS, c as ChainCoordinates, d as CoordinatesByChain, e as CreateCollectionInput, D as DEFAULT_CHAIN, E as EvmCoordinates, I as IssuanceAdapter, M as MintInput, O as OrderRef, R as RegisterOrderParams, S as SolanaCoordinates, f as StarknetCoordinates, g as StellarCoordinates, V as VenueAdapter, h as getCoordinates, i as getStarknetCoordinates } from './types-sIc3OCpo.cjs';
5
5
  import 'zod';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as ServiceDefinition, a as ServiceCapability } from './services-14BcGiDF.js';
2
- export { A as AcceptSponsorshipBidIntentParams, b as AcceptSponsorshipProposalIntentParams, c as ActivityType, d as ApiActivitiesQuery, e as ApiActivity, f as ApiActivityPrice, g as ApiAdminCollectionClaim, h as ApiAppSource, i as ApiBusinessProvisioning, j as ApiChain, k as ApiCheckoutIntentResult, l as ApiClient, m as ApiCoin, n as ApiCoinsQuery, o as ApiCollection, p as ApiCollectionClaim, q as ApiCollectionProfile, r as ApiCollectionSlugClaim, s as ApiCollectionsQuery, t as ApiComment, u as ApiCounterOffersQuery, v as ApiCreatorListResult, w as ApiCreatorProfile, x as ApiIntent, y as ApiIntentCreated, z as ApiKeyStatus, B as ApiMeta, C as ApiMetadataSignedUrl, D as ApiMetadataUpload, E as ApiOrder, F as ApiOrderConsideration, G as ApiOrderOffer, H as ApiOrderPrice, I as ApiOrderTokenMeta, J as ApiOrderTxHash, K as ApiOrdersQuery, L as ApiPointEvent, M as ApiPortalKey, N as ApiPortalKeyCreated, O as ApiPortalMe, P as ApiPublicRemix, Q as ApiRemixOffer, R as ApiRemixOfferPrice, T as ApiRemixOffersQuery, U as ApiResponse, V as ApiRewardsBadge, W as ApiRewardsBatchEntry, X as ApiRewardsConfig, Y as ApiRewardsLeaderboardEntry, Z as ApiRewardsLevel, _ as ApiSearchCollectionResult, $ as ApiSearchCreatorResult, a0 as ApiSearchResult, a1 as ApiSearchTokenResult, a2 as ApiToken, a3 as ApiTokenBalance, a4 as ApiTokenMetadata, a5 as ApiUsageDay, a6 as ApiUserRewards, a7 as ApiUserWallet, a8 as ApiWalletActivity, a9 as ApiWebhookCreated, aa as ApiWebhookEndpoint, ab as AutoRemixOfferParams, ac as CancelOrderIntentParams, ad as ChainFilter, ae as ClaimConditions, af as CollectionServiceId, ag as CollectionSort, ah as CollectionTokensSort, ai as ConfirmRemixOfferParams, aj as ConfirmSelfRemixParams, ak as ConsiderationItem, al as CreateCheckoutIntentParams, am as CreateCoinIntentParams, an as CreateCollectionIntentParams, ao as CreateCounterOfferIntentParams, ap as CreateDropParams, aq as CreateListingIntentParams, ar as CreateMembershipParams, as as CreateMintIntentParams, at as CreatePopCollectionParams, au as CreateRemixOfferParams, av as CreateSponsorshipOfferIntentParams, aw as CreateSponsorshipOfferParams, ax as CreateSponsorshipProposalIntentParams, ay as CreateTicketParams, az as CreateTierIntentParams, aA as CreateWebhookParams, aB as DropMintStatus, aC as EnforcementDeclaration, aD as FactoryFamilyServiceId, aE as FeeConfig, aF as FeeConfigSchema, aG as FulfillOrderIntentParams, aH as IPType, aI as IntentCall, aJ as IntentStatus, aK as IntentType, aL as IpAttribute, aM as IpNftMetadata, aN as LaunchCoinIntentParams, aO as MakeOfferIntentParams, aP as MedialaneApiError, aQ as MedialaneConfig, aR as MedialaneErrorCode, aS as MintMembershipsParams, aT as MintTicketsParams, aU as OPEN_LICENSES, aV as OfferItem, aW as OpenLicense, aX as Order, aY as OrderDetails, aZ as OrderParameters, a_ as OrderStatus, a$ as PlaceSponsorshipBidIntentParams, b0 as PopBatchEligibilityItem, b1 as PopClaimStatus, b2 as PopEventType, b3 as ProposeSponsorshipParams, b4 as RejectSponsorshipProposalIntentParams, b5 as RemixOfferStatus, b6 as ResolvedConfig, b7 as ResolvedFeeConfig, b8 as RetractSponsorshipBidIntentParams, b9 as RetryOptions, ba as ServiceEventDeclaration, bb as SetSponsorshipOfferOpenIntentParams, bc as SortOrder, bd as TenantPlan, be as TierServiceId, bf as TxResult, bg as WebhookEventType, bh as WebhookStatus, bi as WithdrawSponsorshipProposalIntentParams, bj as resolveConfig, bk as resolveFeeConfig } from './services-14BcGiDF.js';
1
+ import { S as ServiceDefinition, a as ServiceCapability } from './services-hDpCpw3d.js';
2
+ export { A as AcceptSponsorshipBidIntentParams, b as AcceptSponsorshipProposalIntentParams, c as ActivityType, d as ApiActivitiesQuery, e as ApiActivity, f as ApiActivityPrice, g as ApiAdminCollectionClaim, h as ApiAppSource, i as ApiBusinessProvisioning, j as ApiChain, k as ApiCheckoutIntentResult, l as ApiClient, m as ApiCoin, n as ApiCoinsQuery, o as ApiCollection, p as ApiCollectionClaim, q as ApiCollectionProfile, r as ApiCollectionSlugClaim, s as ApiCollectionsQuery, t as ApiComment, u as ApiCounterOffersQuery, v as ApiCreatorListResult, w as ApiCreatorProfile, x as ApiIntent, y as ApiIntentCreated, z as ApiKeyStatus, B as ApiMeta, C as ApiMetadataSignedUrl, D as ApiMetadataUpload, E as ApiOrder, F as ApiOrderConsideration, G as ApiOrderOffer, H as ApiOrderPrice, I as ApiOrderTokenMeta, J as ApiOrderTxHash, K as ApiOrdersQuery, L as ApiPointEvent, M as ApiPortalKey, N as ApiPortalKeyCreated, O as ApiPortalMe, P as ApiPublicRemix, Q as ApiRemixOffer, R as ApiRemixOfferPrice, T as ApiRemixOffersQuery, U as ApiResponse, V as ApiRewardsBadge, W as ApiRewardsBatchEntry, X as ApiRewardsConfig, Y as ApiRewardsLeaderboardEntry, Z as ApiRewardsLevel, _ as ApiSearchCollectionResult, $ as ApiSearchCreatorResult, a0 as ApiSearchResult, a1 as ApiSearchTokenResult, a2 as ApiToken, a3 as ApiTokenBalance, a4 as ApiTokenMetadata, a5 as ApiUsageDay, a6 as ApiUserRewards, a7 as ApiUserWallet, a8 as ApiWalletActivity, a9 as ApiWebhookCreated, aa as ApiWebhookEndpoint, ab as AutoRemixOfferParams, ac as CancelOrderIntentParams, ad as ChainFilter, ae as ClaimConditions, af as CollectionServiceId, ag as CollectionSort, ah as CollectionTokensSort, ai as ConfirmRemixOfferParams, aj as ConfirmSelfRemixParams, ak as ConsiderationItem, al as CreateCheckoutIntentParams, am as CreateCoinIntentParams, an as CreateCollectionIntentParams, ao as CreateCounterOfferIntentParams, ap as CreateDropParams, aq as CreateListingIntentParams, ar as CreateMembershipParams, as as CreateMintIntentParams, at as CreatePopCollectionParams, au as CreateRemixOfferParams, av as CreateSponsorshipOfferIntentParams, aw as CreateSponsorshipOfferParams, ax as CreateSponsorshipProposalIntentParams, ay as CreateTicketParams, az as CreateTierIntentParams, aA as CreateWebhookParams, aB as DropMintStatus, aC as EnforcementDeclaration, aD as FactoryFamilyServiceId, aE as FeeConfig, aF as FeeConfigSchema, aG as FulfillOrderIntentParams, aH as IPType, aI as IntentCall, aJ as IntentStatus, aK as IntentType, aL as IpAttribute, aM as IpNftMetadata, aN as LaunchCoinIntentParams, aO as MakeOfferIntentParams, aP as MedialaneApiError, aQ as MedialaneConfig, aR as MedialaneErrorCode, aS as MintMembershipsParams, aT as MintTicketsParams, aU as OPEN_LICENSES, aV as OfferItem, aW as OpenLicense, aX as Order, aY as OrderDetails, aZ as OrderParameters, a_ as OrderStatus, a$ as PlaceSponsorshipBidIntentParams, b0 as PopBatchEligibilityItem, b1 as PopClaimStatus, b2 as PopEventType, b3 as ProposeSponsorshipParams, b4 as RejectSponsorshipProposalIntentParams, b5 as RemixOfferStatus, b6 as ResolvedConfig, b7 as ResolvedFeeConfig, b8 as RetractSponsorshipBidIntentParams, b9 as RetryOptions, ba as ServiceEventDeclaration, bb as SetSponsorshipOfferOpenIntentParams, bc as SortOrder, bd as TenantPlan, be as TierServiceId, bf as TxResult, bg as WebhookEventType, bh as WebhookStatus, bi as WithdrawSponsorshipProposalIntentParams, bj as resolveConfig, bk as resolveFeeConfig } from './services-hDpCpw3d.js';
3
3
  import { C as Chain } from './types-sIc3OCpo.js';
4
4
  export { A as AdapterTxResult, a as AssetRef, b as CHAINS, c as ChainCoordinates, d as CoordinatesByChain, e as CreateCollectionInput, D as DEFAULT_CHAIN, E as EvmCoordinates, I as IssuanceAdapter, M as MintInput, O as OrderRef, R as RegisterOrderParams, S as SolanaCoordinates, f as StarknetCoordinates, g as StellarCoordinates, V as VenueAdapter, h as getCoordinates, i as getStarknetCoordinates } from './types-sIc3OCpo.js';
5
5
  import 'zod';
package/dist/index.js CHANGED
@@ -331,9 +331,9 @@ var ApiClient = class {
331
331
  del(path) {
332
332
  return this.request(path, { method: "DELETE" });
333
333
  }
334
- /** Bearer header for Clerk-JWT-authenticated routes. */
335
- bearer(clerkToken) {
336
- return { Authorization: `Bearer ${clerkToken}` };
334
+ /** Bearer header for SIWS-token-authenticated routes. */
335
+ bearer(siwsToken) {
336
+ return { Authorization: `Bearer ${siwsToken}` };
337
337
  }
338
338
  // ─── Orders ────────────────────────────────────────────────────────────────
339
339
  getOrders(query = {}) {
@@ -379,12 +379,13 @@ var ApiClient = class {
379
379
  );
380
380
  }
381
381
  // ─── Collections ───────────────────────────────────────────────────────────
382
- getCollections(page = 1, limit = 20, isKnown, sort, service, chain) {
382
+ getCollections(page = 1, limit = 20, isKnown, sort, service, chain, standard) {
383
383
  const params = new URLSearchParams({ page: String(page), limit: String(limit) });
384
384
  if (isKnown !== void 0) params.set("isKnown", String(isKnown));
385
385
  if (sort) params.set("sort", sort);
386
386
  if (service) params.set("service", service);
387
387
  if (chain) params.set("chain", chain);
388
+ if (standard) params.set("standard", standard);
388
389
  return this.get(`/v1/collections?${params}`);
389
390
  }
390
391
  getCollectionsByOwner(owner, page = 1, limit = 50) {
@@ -403,6 +404,7 @@ var ApiClient = class {
403
404
  getActivities(query = {}) {
404
405
  const params = new URLSearchParams();
405
406
  if (query.type) params.set("type", query.type);
407
+ if (query.contract) params.set("contract", query.contract);
406
408
  if (query.page !== void 0) params.set("page", String(query.page));
407
409
  if (query.limit !== void 0) params.set("limit", String(query.limit));
408
410
  if (query.chain) params.set("chain", query.chain);
@@ -501,11 +503,11 @@ var ApiClient = class {
501
503
  }
502
504
  /**
503
505
  * Create a counter-offer intent. The seller proposes a new price in response
504
- * to a buyer's active bid. clerkToken is optional — the endpoint authenticates
505
- * via the tenant API key; pass a Clerk JWT only if your backend requires it.
506
+ * to a buyer's active bid. siwsToken is optional — the endpoint authenticates
507
+ * via the tenant API key; pass a SIWS token only if your backend requires it.
506
508
  */
507
- createCounterOfferIntent(params, clerkToken) {
508
- const extraHeaders = clerkToken ? { "Authorization": `Bearer ${clerkToken}` } : {};
509
+ createCounterOfferIntent(params, siwsToken) {
510
+ const extraHeaders = siwsToken ? { "Authorization": `Bearer ${siwsToken}` } : {};
509
511
  return this.request("/v1/intents/counter-offer", {
510
512
  method: "POST",
511
513
  body: JSON.stringify(params),
@@ -573,13 +575,13 @@ var ApiClient = class {
573
575
  // ─── Collection Claims ──────────────────────────────────────────────────────
574
576
  /**
575
577
  * Path 1: On-chain auto claim. Sends both x-api-key (tenant auth) and
576
- * Authorization: Bearer (Clerk JWT) simultaneously.
578
+ * Authorization: Bearer (SIWS token) simultaneously.
577
579
  */
578
- async claimCollection(contractAddress, walletAddress, clerkToken) {
580
+ async claimCollection(contractAddress, walletAddress, siwsToken) {
579
581
  return this.request("/v1/collections/claim", {
580
582
  method: "POST",
581
583
  body: JSON.stringify({ contractAddress, walletAddress }),
582
- headers: this.bearer(clerkToken)
584
+ headers: this.bearer(siwsToken)
583
585
  });
584
586
  }
585
587
  /**
@@ -607,12 +609,12 @@ var ApiClient = class {
607
609
  );
608
610
  }
609
611
  /**
610
- * Update collection profile. Requires Clerk JWT for ownership check.
612
+ * Update collection profile. Requires SIWS token for ownership check.
611
613
  */
612
- updateCollectionProfile(contractAddress, data, clerkToken) {
614
+ updateCollectionProfile(contractAddress, data, siwsToken) {
613
615
  return this.request(
614
616
  `/v1/collections/${this.addr(contractAddress)}/profile`,
615
- { method: "PATCH", body: JSON.stringify(data), headers: this.bearer(clerkToken) }
617
+ { method: "PATCH", body: JSON.stringify(data), headers: this.bearer(siwsToken) }
616
618
  );
617
619
  }
618
620
  /** No signature required — wallet activity is public on-chain data, read like any other /v1 GET. */
@@ -621,10 +623,10 @@ var ApiClient = class {
621
623
  `/v1/wallet-activity?address=${this.addr(address)}&chain=${chain}`
622
624
  );
623
625
  }
624
- getGatedContent(contractAddress, clerkToken) {
626
+ getGatedContent(contractAddress, siwsToken) {
625
627
  return this.request(
626
628
  `/v1/collections/${this.addr(contractAddress)}/gated-content`,
627
- { method: "GET", headers: this.bearer(clerkToken) },
629
+ { method: "GET", headers: this.bearer(siwsToken) },
628
630
  { allow404: true, allow403: true }
629
631
  );
630
632
  }
@@ -654,12 +656,12 @@ var ApiClient = class {
654
656
  );
655
657
  }
656
658
  /**
657
- * Update creator profile. Requires Clerk JWT; wallet must match authenticated user.
659
+ * Update creator profile. Requires SIWS token; wallet must match authenticated user.
658
660
  */
659
- updateCreatorProfile(walletAddress, data, clerkToken) {
661
+ updateCreatorProfile(walletAddress, data, siwsToken) {
660
662
  return this.request(
661
663
  `/v1/creators/${this.addr(walletAddress)}/profile`,
662
- { method: "PATCH", body: JSON.stringify(data), headers: this.bearer(clerkToken) }
664
+ { method: "PATCH", body: JSON.stringify(data), headers: this.bearer(siwsToken) }
663
665
  );
664
666
  }
665
667
  // ─── Collection Slug Claims ───────────────────────────────────────────────────
@@ -669,19 +671,19 @@ var ApiClient = class {
669
671
  `/v1/collection-slug-claims/check/${encodeURIComponent(slug.toLowerCase().trim())}`
670
672
  );
671
673
  }
672
- /** Submit a slug claim for a collection. Requires Clerk JWT — caller must be the collection owner. */
673
- submitCollectionSlugClaim(contractAddress, slug, clerkToken, notifyEmail) {
674
+ /** Submit a slug claim for a collection. Requires SIWS token — caller must be the collection owner. */
675
+ submitCollectionSlugClaim(contractAddress, slug, siwsToken, notifyEmail) {
674
676
  return this.request("/v1/collection-slug-claims", {
675
677
  method: "POST",
676
678
  body: JSON.stringify({ contractAddress, slug, notifyEmail }),
677
- headers: this.bearer(clerkToken)
679
+ headers: this.bearer(siwsToken)
678
680
  });
679
681
  }
680
- /** Returns all slug claims submitted by the authenticated wallet. Requires Clerk JWT. */
681
- getMyCollectionSlugClaims(clerkToken) {
682
+ /** Returns all slug claims submitted by the authenticated wallet. Requires SIWS token. */
683
+ getMyCollectionSlugClaims(siwsToken) {
682
684
  return this.request("/v1/collection-slug-claims/me", {
683
685
  method: "GET",
684
- headers: this.bearer(clerkToken)
686
+ headers: this.bearer(siwsToken)
685
687
  });
686
688
  }
687
689
  /** Resolve a collection slug to a full collection. Returns null if not found. */
@@ -694,19 +696,14 @@ var ApiClient = class {
694
696
  }
695
697
  // ─── User Wallet ─────────────────────────────────────────────────────────────
696
698
  /**
697
- * Upsert the authenticated user's wallet address in the backend DB.
698
- * Call after onboarding when ChipiPay confirms the wallet address.
699
- * Requires Clerk JWT; no tenant API key needed.
700
- */
701
- /**
702
- * Frictionless wallet registration. Tenant API key only (no Clerk JWT required).
699
+ * Frictionless wallet registration. Tenant API key only (no SIWS token required).
703
700
  * Idempotent — backend's ensureAccountForWallet upserts and upgrades existing
704
701
  * UNKNOWN walletType rows when a more specific value is supplied.
705
702
  */
706
703
  async registerUser(params) {
707
704
  return this.post("/v1/users/register", params);
708
705
  }
709
- async upsertMyWallet(clerkToken, options = {}) {
706
+ async upsertMyWallet(siwsToken, options = {}) {
710
707
  const body = {
711
708
  walletType: options.walletType ?? "UNKNOWN",
712
709
  appSource: options.appSource ?? "MEDIALANE_SDK"
@@ -718,7 +715,7 @@ var ApiClient = class {
718
715
  return this.request("/v1/users/me", {
719
716
  method: "POST",
720
717
  body: JSON.stringify(body),
721
- headers: this.bearer(clerkToken)
718
+ headers: this.bearer(siwsToken)
722
719
  });
723
720
  }
724
721
  /** Whether an email already has an account attached — used by io's onboarding to branch into an "already exists" message instead of creating a duplicate account. */
@@ -731,12 +728,12 @@ var ApiClient = class {
731
728
  /**
732
729
  * Get the authenticated user's stored wallet address from the backend DB.
733
730
  * Returns null if the user has not completed onboarding yet.
734
- * Requires Clerk JWT; no tenant API key needed.
731
+ * Requires SIWS token; no tenant API key needed.
735
732
  */
736
- getMyWallet(clerkToken) {
733
+ getMyWallet(siwsToken) {
737
734
  return this.request(
738
735
  "/v1/users/me",
739
- { method: "GET", headers: this.bearer(clerkToken) },
736
+ { method: "GET", headers: this.bearer(siwsToken) },
740
737
  { allow404: true }
741
738
  );
742
739
  }
@@ -754,87 +751,87 @@ var ApiClient = class {
754
751
  );
755
752
  }
756
753
  /**
757
- * Submit a custom remix offer for a token. Requires Clerk JWT.
754
+ * Submit a custom remix offer for a token. Requires SIWS token.
758
755
  */
759
- submitRemixOffer(params, clerkToken) {
756
+ submitRemixOffer(params, siwsToken) {
760
757
  return this.request("/v1/remix-offers", {
761
758
  method: "POST",
762
759
  body: JSON.stringify(params),
763
- headers: { "Authorization": `Bearer ${clerkToken}` }
760
+ headers: { "Authorization": `Bearer ${siwsToken}` }
764
761
  });
765
762
  }
766
763
  /**
767
- * Submit an auto remix offer for a token with an open license. Requires Clerk JWT.
764
+ * Submit an auto remix offer for a token with an open license. Requires SIWS token.
768
765
  */
769
- submitAutoRemixOffer(params, clerkToken) {
766
+ submitAutoRemixOffer(params, siwsToken) {
770
767
  return this.request("/v1/remix-offers/auto", {
771
768
  method: "POST",
772
769
  body: JSON.stringify(params),
773
- headers: { "Authorization": `Bearer ${clerkToken}` }
770
+ headers: { "Authorization": `Bearer ${siwsToken}` }
774
771
  });
775
772
  }
776
773
  /**
777
- * Record a self-remix (owner remixing their own token). Requires Clerk JWT.
774
+ * Record a self-remix (owner remixing their own token). Requires SIWS token.
778
775
  */
779
- confirmSelfRemix(params, clerkToken) {
776
+ confirmSelfRemix(params, siwsToken) {
780
777
  return this.request("/v1/remix-offers/self/confirm", {
781
778
  method: "POST",
782
779
  body: JSON.stringify(params),
783
- headers: { "Authorization": `Bearer ${clerkToken}` }
780
+ headers: { "Authorization": `Bearer ${siwsToken}` }
784
781
  });
785
782
  }
786
783
  /**
787
- * List remix offers by role. Requires Clerk JWT.
784
+ * List remix offers by role. Requires SIWS token.
788
785
  * role="creator" — offers where you are the original creator.
789
786
  * role="requester" — offers you made.
790
787
  */
791
- getRemixOffers(query, clerkToken) {
788
+ getRemixOffers(query, siwsToken) {
792
789
  const params = new URLSearchParams({ role: query.role });
793
790
  if (query.page !== void 0) params.set("page", String(query.page));
794
791
  if (query.limit !== void 0) params.set("limit", String(query.limit));
795
792
  return this.request(`/v1/remix-offers?${params}`, {
796
793
  method: "GET",
797
- headers: this.bearer(clerkToken)
794
+ headers: this.bearer(siwsToken)
798
795
  });
799
796
  }
800
797
  /**
801
- * Get a single remix offer. Clerk JWT optional (price/currency hidden for non-participants).
798
+ * Get a single remix offer. SIWS token optional (price/currency hidden for non-participants).
802
799
  */
803
- getRemixOffer(id, clerkToken) {
800
+ getRemixOffer(id, siwsToken) {
804
801
  return this.request(`/v1/remix-offers/${id}`, {
805
802
  method: "GET",
806
- headers: clerkToken ? this.bearer(clerkToken) : void 0
803
+ headers: siwsToken ? this.bearer(siwsToken) : void 0
807
804
  });
808
805
  }
809
806
  /**
810
- * Creator approves a remix offer (authorises the requester to mint). Requires Clerk JWT.
807
+ * Creator approves a remix offer (authorises the requester to mint). Requires SIWS token.
811
808
  */
812
- confirmRemixOffer(id, params, clerkToken) {
809
+ confirmRemixOffer(id, params, siwsToken) {
813
810
  return this.request(`/v1/remix-offers/${id}/confirm`, {
814
811
  method: "POST",
815
812
  body: JSON.stringify(params),
816
- headers: { "Authorization": `Bearer ${clerkToken}` }
813
+ headers: { "Authorization": `Bearer ${siwsToken}` }
817
814
  });
818
815
  }
819
816
  /**
820
- * Creator rejects a remix offer. Requires Clerk JWT.
817
+ * Creator rejects a remix offer. Requires SIWS token.
821
818
  */
822
- rejectRemixOffer(id, clerkToken) {
819
+ rejectRemixOffer(id, siwsToken) {
823
820
  return this.request(`/v1/remix-offers/${id}/reject`, {
824
821
  method: "POST",
825
822
  body: JSON.stringify({}),
826
- headers: { "Authorization": `Bearer ${clerkToken}` }
823
+ headers: { "Authorization": `Bearer ${siwsToken}` }
827
824
  });
828
825
  }
829
826
  /**
830
827
  * Requester extends the expiry of a pending remix offer by 1–30 days.
831
- * Requires Clerk JWT.
828
+ * Requires SIWS token.
832
829
  */
833
- extendRemixOffer(id, days, clerkToken) {
830
+ extendRemixOffer(id, days, siwsToken) {
834
831
  return this.request(`/v1/remix-offers/${id}/extend`, {
835
832
  method: "POST",
836
833
  body: JSON.stringify({ days }),
837
- headers: { "Authorization": `Bearer ${clerkToken}` }
834
+ headers: { "Authorization": `Bearer ${siwsToken}` }
838
835
  });
839
836
  }
840
837
  // ─── POP Protocol ──────────────────────────────────────────────────────────
@@ -872,7 +869,7 @@ var ApiClient = class {
872
869
  /**
873
870
  * Creator-authed coin profile edit (image/description). Backend authorizes
874
871
  * via `coin.creator` (trustless — from the factory event), not a body param;
875
- * `siwsToken` is the caller's SIWS/Clerk bearer token for `identityAuth`.
872
+ * `siwsToken` is the caller's SIWS bearer token for `identityAuth`.
876
873
  */
877
874
  updateCoinProfile(contract, data, siwsToken) {
878
875
  return this.request(`/v1/coins/${this.addr(contract)}`, {