@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/dist/browser.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as ShopClientOptions, H as HeaderProvider, a as ShopClient } from './error-
|
|
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-
|
|
3
|
-
import './index-
|
|
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-
|
|
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-
|
|
3
|
-
import './index-
|
|
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 = "
|
|
5386
|
+
var CONTRACT_SHA256 = "32f132210ee188c28a330c9db5c6db6eaf5b7c3a65ecc041e029aca6e1335a60";
|
|
5387
5387
|
|
|
5388
5388
|
// src/client/diagnose.ts
|
|
5389
|
-
var SDK_VERSION = "0.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;
|