@cronvello/shop-sdk 0.2.2 → 0.2.3

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/CONTRACT_SHA256 CHANGED
@@ -1 +1 @@
1
- 05f34929e71fb2fcb3a4c04707facca22ee46f8960a4cc47ce0a3f1a6df36056
1
+ 32f132210ee188c28a330c9db5c6db6eaf5b7c3a65ecc041e029aca6e1335a60
package/dist/browser.cjs CHANGED
@@ -1742,7 +1742,7 @@ var apiRoutes_external_apps = {
1742
1742
  meta: {
1743
1743
  tags: ["external-apps"],
1744
1744
  summary: "Get external app registration status (B2B)",
1745
- description: "Returns registration status for an app identified by its string appId. Used by AMP to discover existing connections. Includes authMethod and, for OAuth apps, the oauth client_id we will present to that app plus a truncated SHA-256 fingerprint of the stored client secret, so the other side can prove a rotation actually landed here. Never the secret itself. Also reports the entitlement paths we have stored, because registration is an upsert: a caller that only wants to hand us new credentials must send these back unchanged, or it silently repoints where we fetch entitlements from."
1745
+ description: "Returns registration status for an app identified by its string appId. Used by AMP to discover existing connections. Includes authMethod and, for OAuth apps, the oauth client_id we will present to that app plus a truncated SHA-256 fingerprint of the stored client secret, so the other side can prove a rotation actually landed here. Never the secret itself. `credentialFingerprints` lists one such fingerprint per credential we hold for that app (api_key, previous_api_key during a rotation grace period, public_api_key, oauth_client_secret). It lets the caller locate the value in the app's runtime environment by equality instead of guessing a variable name - the name differs per app, the value does not. Also reports the entitlement paths we have stored, because registration is an upsert: a caller that only wants to hand us new credentials must send these back unchanged, or it silently repoints where we fetch entitlements from."
1746
1746
  },
1747
1747
  types: null
1748
1748
  },
@@ -5385,10 +5385,10 @@ function createShopClient(options = {}) {
5385
5385
  }
5386
5386
 
5387
5387
  // src/contract-hash.ts
5388
- var CONTRACT_SHA256 = "05f34929e71fb2fcb3a4c04707facca22ee46f8960a4cc47ce0a3f1a6df36056";
5388
+ var CONTRACT_SHA256 = "32f132210ee188c28a330c9db5c6db6eaf5b7c3a65ecc041e029aca6e1335a60";
5389
5389
 
5390
5390
  // src/client/diagnose.ts
5391
- var SDK_VERSION = "0.2.2" ;
5391
+ var SDK_VERSION = "0.2.3" ;
5392
5392
  async function resolveBaseUrl(options) {
5393
5393
  const provider = options.client?.baseUrl ?? options.baseUrl ?? SHOP_API_URL;
5394
5394
  const value = typeof provider === "function" ? await provider() : provider;