@salesforce/lds-runtime-aura 1.451.0-dev12 → 1.451.0-dev14
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/dist/ldsEngineCreator.js
CHANGED
|
@@ -2590,7 +2590,7 @@ function buildServiceDescriptor$d(luvio) {
|
|
|
2590
2590
|
},
|
|
2591
2591
|
};
|
|
2592
2592
|
}
|
|
2593
|
-
// version: 1.451.0-
|
|
2593
|
+
// version: 1.451.0-dev14-2ce0dd97dc
|
|
2594
2594
|
|
|
2595
2595
|
class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
|
|
2596
2596
|
constructor(config, documentRootType, services) {
|
|
@@ -2929,7 +2929,7 @@ function buildServiceDescriptor$9(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
2929
2929
|
},
|
|
2930
2930
|
};
|
|
2931
2931
|
}
|
|
2932
|
-
// version: 1.451.0-
|
|
2932
|
+
// version: 1.451.0-dev14-2ce0dd97dc
|
|
2933
2933
|
|
|
2934
2934
|
class RetryService {
|
|
2935
2935
|
constructor(defaultRetryPolicy) {
|
|
@@ -5935,7 +5935,7 @@ function getEnvironmentSetting(name) {
|
|
|
5935
5935
|
}
|
|
5936
5936
|
return undefined;
|
|
5937
5937
|
}
|
|
5938
|
-
// version: 1.451.0-
|
|
5938
|
+
// version: 1.451.0-dev14-e7b4018fe5
|
|
5939
5939
|
|
|
5940
5940
|
const auraClientService = getAuraClientService();
|
|
5941
5941
|
const defaultConfig = {
|
|
@@ -7705,7 +7705,7 @@ const SFAP_BASE_URL = 'api.salesforce.com';
|
|
|
7705
7705
|
// to. Distinct from SFAP's `sfap_api` so the Data360 host-rewrite interceptor only
|
|
7706
7706
|
// ever runs for that command — zero blast radius on the SFAP fleet.
|
|
7707
7707
|
//
|
|
7708
|
-
// The tag is deliberately named after the *mechanism* (the `
|
|
7708
|
+
// The tag is deliberately named after the *mechanism* (the `cdp_tse_url` host rewrite),
|
|
7709
7709
|
// not a capability, because this whole descriptor is interim: it exists only while
|
|
7710
7710
|
// the mint service returns the fixed SFAP `baseUri` regardless of platform. When the
|
|
7711
7711
|
// service returns the correct per-platform `baseUri`, the data 360 route can be re-evaluated.
|
|
@@ -7720,7 +7720,7 @@ const DATA_360_CDP_URL_REWRITE_AUTH_SCOPE = 'data_360_cdp_url_rewrite';
|
|
|
7720
7720
|
// (`<domain-suffix>`) is environment-dependent — it differs per deployment
|
|
7721
7721
|
// environment. This is why the interceptor strips any scheme before parsing
|
|
7722
7722
|
// and applies no host-suffix policy — see the interceptor docblock's trust boundary.
|
|
7723
|
-
const CDP_URL_CLAIM = '
|
|
7723
|
+
const CDP_URL_CLAIM = 'cdp_tse_url';
|
|
7724
7724
|
function buildDispatchingSfapJwtResolver(legacyResolver, parameterizedResolver) {
|
|
7725
7725
|
return {
|
|
7726
7726
|
getJwt(params) {
|
|
@@ -7770,14 +7770,14 @@ function buildJwtAuthorizedSfapFetchServiceDescriptor(logger) {
|
|
|
7770
7770
|
*
|
|
7771
7771
|
* Unlike SFAP, the per-tenant base host is NOT returned in the mint response's
|
|
7772
7772
|
* `baseUri` (which is the fixed SFAP host); it rides on the minted JWT as the
|
|
7773
|
-
* `
|
|
7773
|
+
* `cdp_tse_url` claim. The standard `JwtRequestModifier` only receives `extraInfo`,
|
|
7774
7774
|
* never the decoded claims, so the host rewrite cannot be expressed as a modifier
|
|
7775
7775
|
* — it must read the token directly. This descriptor therefore uses a bespoke
|
|
7776
7776
|
* interceptor ({@link buildData360HostRewriteInterceptor}) that mints the
|
|
7777
|
-
* parameterized SFAP JWT, attaches the Bearer token, decodes `
|
|
7777
|
+
* parameterized SFAP JWT, attaches the Bearer token, decodes `cdp_tse_url`, and
|
|
7778
7778
|
* rewrites the request host to that TSE.
|
|
7779
7779
|
*
|
|
7780
|
-
* It reuses the module's `sfapJwtManager`: `
|
|
7780
|
+
* It reuses the module's `sfapJwtManager`: `cdp_tse_url` is emitted on the same
|
|
7781
7781
|
* `SFAP_API`-scope JWT, so the Data360 command mints the same kind of token — it
|
|
7782
7782
|
* just forwards the data-cloud scopes via the context-seed `jwtMintParams`.
|
|
7783
7783
|
*
|
|
@@ -7907,25 +7907,25 @@ function buildJwtRequestInterceptor(logger) {
|
|
|
7907
7907
|
/**
|
|
7908
7908
|
* Request interceptor for the direct-to-Data360 command. It cannot use the
|
|
7909
7909
|
* standard `JwtRequestModifier` seam because the tenant host is a JWT *claim*
|
|
7910
|
-
* (`
|
|
7910
|
+
* (`cdp_tse_url`), and modifiers only receive `extraInfo`. So — like the copilot
|
|
7911
7911
|
* interceptor that reads `decodedInfo.iss` — it holds the token directly:
|
|
7912
7912
|
*
|
|
7913
7913
|
* 1. Read the command's `jwtMintParams` off the per-request context seed and
|
|
7914
7914
|
* mint (via the parameterized SFAP resolver, routed by the dispatching
|
|
7915
7915
|
* resolver inside `sfapJwtManager`). Without mint params there is no token
|
|
7916
7916
|
* to authorize with, so leave the request untouched.
|
|
7917
|
-
* 2. Decode `
|
|
7918
|
-
* (TSE). `
|
|
7917
|
+
* 2. Decode `cdp_tse_url` from the JWT and resolve the tenant-specific endpoint
|
|
7918
|
+
* (TSE). `cdp_tse_url` is a bare host, so a scheme is prepended before parsing
|
|
7919
7919
|
* and the protocol is forced to `https:`.
|
|
7920
|
-
* 3. Only after a usable `
|
|
7920
|
+
* 3. Only after a usable `cdp_tse_url` is confirmed, attach `Authorization: Bearer
|
|
7921
7921
|
* <jwt>` and rewrite the request URL's host/protocol to the TSE.
|
|
7922
7922
|
*
|
|
7923
|
-
* **Trust boundary.** `
|
|
7923
|
+
* **Trust boundary.** `cdp_tse_url` is a claim on a first-party, server-minted JWT
|
|
7924
7924
|
* delivered over the same-origin Aura transport, so the interceptor does NOT police
|
|
7925
7925
|
* its contents (no host-suffix or format allowlist) — the routing host is the
|
|
7926
7926
|
* minting service's responsibility, and this mirrors the SFAP sibling, which
|
|
7927
7927
|
* likewise trusts the server-provided `baseUri` rewrite target. The one guard that
|
|
7928
|
-
* remains is shape hygiene: if `
|
|
7928
|
+
* remains is shape hygiene: if `cdp_tse_url` is absent/empty/non-string (org not
|
|
7929
7929
|
* CDP-provisioned, so the server's claim gate did not fire) the interceptor throws
|
|
7930
7930
|
* a developer-facing error instead of an opaque parse failure. A minted token is
|
|
7931
7931
|
* never attached until a usable host is in hand.
|
|
@@ -7961,7 +7961,7 @@ function buildData360HostRewriteInterceptor(logger) {
|
|
|
7961
7961
|
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
7962
7962
|
throw new Error(`Data360 fetch service: minted JWT has no usable "${CDP_URL_CLAIM}" claim; cannot route the request to a Data Cloud tenant endpoint.`);
|
|
7963
7963
|
}
|
|
7964
|
-
// `
|
|
7964
|
+
// `cdp_tse_url` is a bare host (no scheme); prepend https so `new URL`
|
|
7965
7965
|
// parses it as an origin. Force https regardless of any scheme in the
|
|
7966
7966
|
// claim — the TSE is always TLS.
|
|
7967
7967
|
const tse = new URL(`https://${cdpUrl.replace(/^[a-z]+:\/\//i, '')}`);
|
|
@@ -11595,4 +11595,4 @@ function ldsEngineCreator() {
|
|
|
11595
11595
|
}
|
|
11596
11596
|
|
|
11597
11597
|
export { LexRequestStrategy, PDL_ENGINE_REGISTRATION_ID, PdlPrefetcherEventType, PdlRequestPriority, buildPredictorForContext, configService, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, subscribeToPrefetcherEvents, unregisterRequestStrategy, whenPredictionsReady };
|
|
11598
|
-
// version: 1.451.0-
|
|
11598
|
+
// version: 1.451.0-dev14-2ce0dd97dc
|
|
@@ -11,14 +11,14 @@ export declare function buildJwtAuthorizedSfapFetchServiceDescriptor(logger: Log
|
|
|
11
11
|
*
|
|
12
12
|
* Unlike SFAP, the per-tenant base host is NOT returned in the mint response's
|
|
13
13
|
* `baseUri` (which is the fixed SFAP host); it rides on the minted JWT as the
|
|
14
|
-
* `
|
|
14
|
+
* `cdp_tse_url` claim. The standard `JwtRequestModifier` only receives `extraInfo`,
|
|
15
15
|
* never the decoded claims, so the host rewrite cannot be expressed as a modifier
|
|
16
16
|
* — it must read the token directly. This descriptor therefore uses a bespoke
|
|
17
17
|
* interceptor ({@link buildData360HostRewriteInterceptor}) that mints the
|
|
18
|
-
* parameterized SFAP JWT, attaches the Bearer token, decodes `
|
|
18
|
+
* parameterized SFAP JWT, attaches the Bearer token, decodes `cdp_tse_url`, and
|
|
19
19
|
* rewrites the request host to that TSE.
|
|
20
20
|
*
|
|
21
|
-
* It reuses the module's `sfapJwtManager`: `
|
|
21
|
+
* It reuses the module's `sfapJwtManager`: `cdp_tse_url` is emitted on the same
|
|
22
22
|
* `SFAP_API`-scope JWT, so the Data360 command mints the same kind of token — it
|
|
23
23
|
* just forwards the data-cloud scopes via the context-seed `jwtMintParams`.
|
|
24
24
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-aura",
|
|
3
|
-
"version": "1.451.0-
|
|
3
|
+
"version": "1.451.0-dev14",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Aura runtime.",
|
|
6
6
|
"main": "dist/ldsEngineCreator.js",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@conduit-client/service-provisioner": "3.26.1-dev3",
|
|
38
38
|
"@conduit-client/tools-core": "3.26.1-dev3",
|
|
39
|
-
"@salesforce/lds-adapters-apex": "^1.451.0-
|
|
40
|
-
"@salesforce/lds-adapters-uiapi": "^1.451.0-
|
|
41
|
-
"@salesforce/lds-ads-bridge": "^1.451.0-
|
|
42
|
-
"@salesforce/lds-aura-storage": "^1.451.0-
|
|
43
|
-
"@salesforce/lds-bindings": "^1.451.0-
|
|
44
|
-
"@salesforce/lds-instrumentation": "^1.451.0-
|
|
45
|
-
"@salesforce/lds-network-adapter": "^1.451.0-
|
|
46
|
-
"@salesforce/lds-network-aura": "^1.451.0-
|
|
47
|
-
"@salesforce/lds-network-fetch": "^1.451.0-
|
|
39
|
+
"@salesforce/lds-adapters-apex": "^1.451.0-dev14",
|
|
40
|
+
"@salesforce/lds-adapters-uiapi": "^1.451.0-dev14",
|
|
41
|
+
"@salesforce/lds-ads-bridge": "^1.451.0-dev14",
|
|
42
|
+
"@salesforce/lds-aura-storage": "^1.451.0-dev14",
|
|
43
|
+
"@salesforce/lds-bindings": "^1.451.0-dev14",
|
|
44
|
+
"@salesforce/lds-instrumentation": "^1.451.0-dev14",
|
|
45
|
+
"@salesforce/lds-network-adapter": "^1.451.0-dev14",
|
|
46
|
+
"@salesforce/lds-network-aura": "^1.451.0-dev14",
|
|
47
|
+
"@salesforce/lds-network-fetch": "^1.451.0-dev14",
|
|
48
48
|
"jwt-encode": "1.0.1"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
"@luvio/network-adapter-composable": "0.161.2",
|
|
77
77
|
"@luvio/network-adapter-fetch": "0.161.2",
|
|
78
78
|
"@lwc/state": "^0.29.0",
|
|
79
|
-
"@salesforce/lds-adapters-onestore-graphql": "^1.451.0-
|
|
79
|
+
"@salesforce/lds-adapters-onestore-graphql": "^1.451.0-dev14",
|
|
80
80
|
"@salesforce/lds-adapters-uiapi-lex": "^1.415.0",
|
|
81
|
-
"@salesforce/lds-durable-storage": "^1.451.0-
|
|
82
|
-
"@salesforce/lds-luvio-service": "^1.451.0-
|
|
83
|
-
"@salesforce/lds-luvio-uiapi-records-service": "^1.451.0-
|
|
81
|
+
"@salesforce/lds-durable-storage": "^1.451.0-dev14",
|
|
82
|
+
"@salesforce/lds-luvio-service": "^1.451.0-dev14",
|
|
83
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.451.0-dev14"
|
|
84
84
|
},
|
|
85
85
|
"luvioBundlesize": [
|
|
86
86
|
{
|