@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.
@@ -1,6 +1,6 @@
1
- import { S as ShopClientOptions, H as HeaderProvider, a as ShopClient } from './error-1WqH-FhJ.cjs';
2
- export { B as BaseUrlProvider, C as CONTRACT_SHA256, M as MaybePromise, b as SHOP_API_URL, c as ShopApiError, d as ShopAuthType, e as ShopConfigurationError, f as ShopContractStatus, g as ShopDiagnoseOptions, h as ShopDiagnosis, i as ShopRequestContext, j as ShopRequestOptions, k as ShopRoute, l as ShopRouteAuth, m as ShopRouteBody, n as ShopRouteInput, o as ShopRouteKey, p as ShopRouteMethod, q as ShopRouteParams, r as ShopRouteQuery, s as ShopRouteResponse, t as ShopRouteResponseData, u as diagnoseShop } from './error-1WqH-FhJ.cjs';
3
- import './index-DC6jGVkP.cjs';
1
+ import { S as ShopClientOptions, H as HeaderProvider, a as ShopClient } from './error-QHUSBOHv.cjs';
2
+ export { B as BaseUrlProvider, C as CONTRACT_SHA256, M as MaybePromise, b as SHOP_API_URL, c as ShopApiError, d as ShopAuthType, e as ShopConfigurationError, f as ShopContractStatus, g as ShopDiagnoseOptions, h as ShopDiagnosis, i as ShopRequestContext, j as ShopRequestOptions, k as ShopRoute, l as ShopRouteAuth, m as ShopRouteBody, n as ShopRouteInput, o as ShopRouteKey, p as ShopRouteMethod, q as ShopRouteParams, r as ShopRouteQuery, s as ShopRouteResponse, t as ShopRouteResponseData, u as diagnoseShop } from './error-QHUSBOHv.cjs';
3
+ import './index-CcbN4xcE.cjs';
4
4
 
5
5
  type ShopBrowserClientOptions = Omit<ShopClientOptions, "headers"> & {
6
6
  headers?: HeadersInit | HeaderProvider;
package/dist/browser.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { S as ShopClientOptions, H as HeaderProvider, a as ShopClient } from './error-D3Jrcd-j.js';
2
- export { B as BaseUrlProvider, C as CONTRACT_SHA256, M as MaybePromise, b as SHOP_API_URL, c as ShopApiError, d as ShopAuthType, e as ShopConfigurationError, f as ShopContractStatus, g as ShopDiagnoseOptions, h as ShopDiagnosis, i as ShopRequestContext, j as ShopRequestOptions, k as ShopRoute, l as ShopRouteAuth, m as ShopRouteBody, n as ShopRouteInput, o as ShopRouteKey, p as ShopRouteMethod, q as ShopRouteParams, r as ShopRouteQuery, s as ShopRouteResponse, t as ShopRouteResponseData, u as diagnoseShop } from './error-D3Jrcd-j.js';
3
- import './index-DC6jGVkP.js';
1
+ import { S as ShopClientOptions, H as HeaderProvider, a as ShopClient } from './error-DZAuAQ8Z.js';
2
+ export { B as BaseUrlProvider, C as CONTRACT_SHA256, M as MaybePromise, b as SHOP_API_URL, c as ShopApiError, d as ShopAuthType, e as ShopConfigurationError, f as ShopContractStatus, g as ShopDiagnoseOptions, h as ShopDiagnosis, i as ShopRequestContext, j as ShopRequestOptions, k as ShopRoute, l as ShopRouteAuth, m as ShopRouteBody, n as ShopRouteInput, o as ShopRouteKey, p as ShopRouteMethod, q as ShopRouteParams, r as ShopRouteQuery, s as ShopRouteResponse, t as ShopRouteResponseData, u as diagnoseShop } from './error-DZAuAQ8Z.js';
3
+ import './index-CcbN4xcE.js';
4
4
 
5
5
  type ShopBrowserClientOptions = Omit<ShopClientOptions, "headers"> & {
6
6
  headers?: HeadersInit | HeaderProvider;
package/dist/browser.js CHANGED
@@ -1740,7 +1740,7 @@ var apiRoutes_external_apps = {
1740
1740
  meta: {
1741
1741
  tags: ["external-apps"],
1742
1742
  summary: "Get external app registration status (B2B)",
1743
- 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."
1743
+ 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."
1744
1744
  },
1745
1745
  types: null
1746
1746
  },
@@ -5383,10 +5383,10 @@ function createShopClient(options = {}) {
5383
5383
  }
5384
5384
 
5385
5385
  // src/contract-hash.ts
5386
- var CONTRACT_SHA256 = "05f34929e71fb2fcb3a4c04707facca22ee46f8960a4cc47ce0a3f1a6df36056";
5386
+ var CONTRACT_SHA256 = "32f132210ee188c28a330c9db5c6db6eaf5b7c3a65ecc041e029aca6e1335a60";
5387
5387
 
5388
5388
  // src/client/diagnose.ts
5389
- var SDK_VERSION = "0.2.2" ;
5389
+ var SDK_VERSION = "0.2.3" ;
5390
5390
  async function resolveBaseUrl(options) {
5391
5391
  const provider = options.client?.baseUrl ?? options.baseUrl ?? SHOP_API_URL;
5392
5392
  const value = typeof provider === "function" ? await provider() : provider;