@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 +1 -1
- package/dist/browser.cjs +3 -3
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +3 -3
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +3 -3
- package/dist/browser.js.map +1 -1
- package/dist/contract.cjs +1 -1
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +1 -1
- package/dist/contract.d.ts +1 -1
- package/dist/contract.js +1 -1
- package/dist/contract.js.map +1 -1
- package/dist/{error-D3Jrcd-j.d.ts → error-DZAuAQ8Z.d.ts} +2 -2
- package/dist/{error-1WqH-FhJ.d.cts → error-QHUSBOHv.d.cts} +2 -2
- package/dist/{index-DC6jGVkP.d.cts → index-CcbN4xcE.d.cts} +8 -2
- package/dist/{index-DC6jGVkP.d.ts → index-CcbN4xcE.d.ts} +8 -2
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +46 -1
- package/dist/server.cjs +3 -3
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/server.js +3 -3
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/CONTRACT_SHA256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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 = "
|
|
5388
|
+
var CONTRACT_SHA256 = "32f132210ee188c28a330c9db5c6db6eaf5b7c3a65ecc041e029aca6e1335a60";
|
|
5389
5389
|
|
|
5390
5390
|
// src/client/diagnose.ts
|
|
5391
|
-
var SDK_VERSION = "0.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;
|