@medialane/sdk 0.125.0 → 0.126.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.
@@ -7878,7 +7878,6 @@ interface TypedDataSigner {
7878
7878
  interface SponsoredExecuteConfig {
7879
7879
  proxyUrl: string;
7880
7880
  fetchImpl?: typeof fetch;
7881
- identityToken?: string;
7882
7881
  }
7883
7882
  type SponsoredExecuteResult = {
7884
7883
  status: "sponsored";
@@ -8079,7 +8078,6 @@ interface SponsoredDeps extends SelfFundedDeps {
8079
8078
  consent: SelfFundConsent;
8080
8079
  fetchImpl?: typeof fetch;
8081
8080
  fallback?: WalletExecutor;
8082
- identityToken?: () => string | null;
8083
8081
  }
8084
8082
  declare function sponsoredExecutor(deps: SponsoredDeps): WalletExecutor;
8085
8083
 
@@ -7878,7 +7878,6 @@ interface TypedDataSigner {
7878
7878
  interface SponsoredExecuteConfig {
7879
7879
  proxyUrl: string;
7880
7880
  fetchImpl?: typeof fetch;
7881
- identityToken?: string;
7882
7881
  }
7883
7882
  type SponsoredExecuteResult = {
7884
7883
  status: "sponsored";
@@ -8079,7 +8078,6 @@ interface SponsoredDeps extends SelfFundedDeps {
8079
8078
  consent: SelfFundConsent;
8080
8079
  fetchImpl?: typeof fetch;
8081
8080
  fallback?: WalletExecutor;
8082
- identityToken?: () => string | null;
8083
8081
  }
8084
8082
  declare function sponsoredExecutor(deps: SponsoredDeps): WalletExecutor;
8085
8083
 
@@ -12038,7 +12038,6 @@ async function executeSponsored(config, signer, calls) {
12038
12038
  const doFetch = config.fetchImpl ?? fetch;
12039
12039
  const base = config.proxyUrl.replace(/\/$/, "");
12040
12040
  const headers = { "Content-Type": "application/json" };
12041
- if (config.identityToken) headers.Authorization = `Bearer ${config.identityToken}`;
12042
12041
  const buildRes = await doFetch(`${base}/build`, {
12043
12042
  method: "POST",
12044
12043
  headers,
@@ -12636,11 +12635,7 @@ function sponsoredExecutor(deps) {
12636
12635
  async execute(input) {
12637
12636
  const { userAddress, privateKeyHex, calls } = input;
12638
12637
  const result = await executeSponsored(
12639
- {
12640
- proxyUrl: deps.proxyUrl,
12641
- fetchImpl: deps.fetchImpl,
12642
- identityToken: deps.identityToken?.() ?? void 0
12643
- },
12638
+ { proxyUrl: deps.proxyUrl, fetchImpl: deps.fetchImpl },
12644
12639
  {
12645
12640
  address: userAddress,
12646
12641
  signTypedData: async (data) => signWithPrivateKey(privateKeyHex, typedData.getMessageHash(data, userAddress))