@salesforce/platform-sdk 12.8.0 → 12.10.0
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/analytics/analytics.d.ts +19 -15
- package/dist/analytics/analytics.d.ts.map +1 -1
- package/dist/analytics/error-listener.d.ts +3 -3
- package/dist/analytics/index.d.ts.map +1 -1
- package/dist/analytics/index.js +1 -1
- package/dist/analytics/method-configs.d.ts +8 -4
- package/dist/analytics/method-configs.d.ts.map +1 -1
- package/dist/analytics/pft.d.ts +22 -16
- package/dist/analytics/pft.d.ts.map +1 -1
- package/dist/analytics/proxy.d.ts +10 -8
- package/dist/analytics/proxy.d.ts.map +1 -1
- package/dist/analytics/types.d.ts +57 -43
- package/dist/analytics/types.d.ts.map +1 -1
- package/dist/{analytics-Dpz22kda.js → analytics-wESbWdca.js} +1 -1
- package/dist/app/index.d.ts +18 -13
- package/dist/app/index.d.ts.map +1 -1
- package/dist/app/index.js +5 -3
- package/dist/app/webapp.d.ts +5 -2
- package/dist/app/webapp.d.ts.map +1 -1
- package/dist/{capabilities-CKe8z6kZ.js → capabilities-B0mU0_G0.js} +1 -1
- package/dist/chat/index.js +1 -1
- package/dist/core/app.d.ts +31 -22
- package/dist/core/app.d.ts.map +1 -1
- package/dist/core/capabilities.d.ts +26 -17
- package/dist/core/capabilities.d.ts.map +1 -1
- package/dist/core/chat.d.ts +155 -125
- package/dist/core/chat.d.ts.map +1 -1
- package/dist/core/data.d.ts +146 -107
- package/dist/core/data.d.ts.map +1 -1
- package/dist/core/extension-attach.d.ts +65 -51
- package/dist/core/extension-attach.d.ts.map +1 -1
- package/dist/core/extension-types.d.ts +214 -153
- package/dist/core/extension-types.d.ts.map +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +2 -2
- package/dist/core/lightning.d.ts +11 -19
- package/dist/core/lightning.d.ts.map +1 -1
- package/dist/core/mcpapps-session.d.ts +63 -52
- package/dist/core/mcpapps-session.d.ts.map +1 -1
- package/dist/core/options.d.ts +6 -4
- package/dist/core/options.d.ts.map +1 -1
- package/dist/core/platforms.d.ts +29 -29
- package/dist/core/sdk-promise.d.ts +7 -4
- package/dist/core/sdk-promise.d.ts.map +1 -1
- package/dist/core/surface.d.ts +89 -67
- package/dist/core/surface.d.ts.map +1 -1
- package/dist/core/view.d.ts +164 -113
- package/dist/core/view.d.ts.map +1 -1
- package/dist/data/extensions/index.d.ts +5 -2
- package/dist/data/extensions/index.d.ts.map +1 -1
- package/dist/data/extensions/labels/index.d.ts +72 -49
- package/dist/data/extensions/labels/index.d.ts.map +1 -1
- package/dist/data/extensions/labels/query.d.ts +38 -29
- package/dist/data/extensions/labels/query.d.ts.map +1 -1
- package/dist/data/gql.d.ts +8 -4
- package/dist/data/gql.d.ts.map +1 -1
- package/dist/data/index.d.ts +67 -48
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/index.js +265 -242
- package/dist/data/mosaic/fetch.d.ts +24 -15
- package/dist/data/mosaic/fetch.d.ts.map +1 -1
- package/dist/data/mosaic/index.d.ts +13 -9
- package/dist/data/mosaic/index.d.ts.map +1 -1
- package/dist/data/openai/index.d.ts +11 -5
- package/dist/data/openai/index.d.ts.map +1 -1
- package/dist/data/shared/graphql/cache/command.d.ts +60 -46
- package/dist/data/shared/graphql/cache/command.d.ts.map +1 -1
- package/dist/data/shared/graphql/cache/invoker.d.ts.map +1 -1
- package/dist/data/shared/graphql/cache/services.d.ts +21 -11
- package/dist/data/shared/graphql/cache/services.d.ts.map +1 -1
- package/dist/data/shared/graphql/cached-graphql.d.ts +9 -4
- package/dist/data/shared/graphql/cached-graphql.d.ts.map +1 -1
- package/dist/data/shared/graphql/graphql-parse.d.ts +6 -3
- package/dist/data/shared/graphql/graphql-parse.d.ts.map +1 -1
- package/dist/data/shared/graphql/headers.d.ts +34 -27
- package/dist/data/shared/graphql/headers.d.ts.map +1 -1
- package/dist/data/shared/graphql/parse-response.d.ts +31 -23
- package/dist/data/shared/graphql/parse-response.d.ts.map +1 -1
- package/dist/data/shared/graphql/uncached-graphql.d.ts +10 -6
- package/dist/data/shared/graphql/uncached-graphql.d.ts.map +1 -1
- package/dist/data/shared/url-utils.d.ts +1 -1
- package/dist/data/shared/url-utils.d.ts.map +1 -1
- package/dist/data/webapp/accept-language.interceptor.d.ts +26 -9
- package/dist/data/webapp/accept-language.interceptor.d.ts.map +1 -1
- package/dist/data/webapp/client-headers.interceptor.d.ts +4 -3
- package/dist/data/webapp/client-headers.interceptor.d.ts.map +1 -1
- package/dist/data/webapp/csrf/header.interceptor.d.ts +4 -4
- package/dist/data/webapp/csrf/header.interceptor.d.ts.map +1 -1
- package/dist/data/webapp/csrf/retry.policy.d.ts +12 -11
- package/dist/data/webapp/csrf/retry.policy.d.ts.map +1 -1
- package/dist/data/webapp/csrf/token-manager.d.ts +18 -12
- package/dist/data/webapp/csrf/token-manager.d.ts.map +1 -1
- package/dist/data/webapp/fetch.d.ts +12 -8
- package/dist/data/webapp/fetch.d.ts.map +1 -1
- package/dist/data/webapp/index.d.ts +12 -7
- package/dist/data/webapp/index.d.ts.map +1 -1
- package/dist/i18n/locale-format.d.ts +23 -21
- package/dist/i18n/locale-format.d.ts.map +1 -1
- package/dist/i18n/salesforce-backend.d.ts +19 -11
- package/dist/i18n/salesforce-backend.d.ts.map +1 -1
- package/dist/i18n/salesforce-detector.d.ts +22 -14
- package/dist/i18n/salesforce-detector.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/lightning/embedding.d.ts.map +1 -1
- package/dist/lightning/index.d.ts +4 -4
- package/dist/lightning/index.d.ts.map +1 -1
- package/dist/lightning/index.js +2 -2
- package/dist/{surface-Dd2tqrPi.js → surface-DWDgqdpN.js} +18 -13
- package/dist/telemetry/tool-adapter.d.ts.map +1 -1
- package/dist/telemetry/uploader/TelemetryUploader.d.ts.map +1 -1
- package/dist/ui-embedding/index.d.ts.map +1 -1
- package/dist/ui-embedding/session.d.ts +7 -2
- package/dist/ui-embedding/session.d.ts.map +1 -1
- package/dist/ui-embedding/session.js +1 -1
- package/dist/view/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
import { Analytics, AnalyticsOptions } from './types';
|
|
2
2
|
/**
|
|
3
|
-
* Creates an Analytics instance
|
|
3
|
+
* Creates an Analytics instance and starts auto-instrumentation immediately.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* -
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* -
|
|
5
|
+
* @remarks
|
|
6
|
+
* This function handles setup internally:
|
|
7
|
+
* - It creates a `ChatSDK` instance with `getChatSDK()`, unless the caller
|
|
8
|
+
* provides one.
|
|
9
|
+
* - It calls `registerInstrumentedApp()` with `appPayloadProvider` wired to
|
|
10
|
+
* attach `appId` and the surface to every o11y log entry, plus the
|
|
11
|
+
* `pftId` when set.
|
|
12
|
+
* - It wraps the `ChatSDK` in a `Proxy` for auto-instrumentation.
|
|
13
|
+
* - It sets up global error listeners (`window.onerror`,
|
|
14
|
+
* `unhandledrejection`).
|
|
15
|
+
* - It tracks session duration from init to `dispose()`.
|
|
13
16
|
*
|
|
14
|
-
* The PFT Id is late-bound
|
|
15
|
-
*
|
|
16
|
-
* events without
|
|
17
|
+
* The PFT Id is late-bound through a closure-captured reference that this
|
|
18
|
+
* function reads on every payload emission. As a result,
|
|
19
|
+
* {@link Analytics.setPftId} updates later events without a new app
|
|
20
|
+
* registration.
|
|
17
21
|
*
|
|
18
22
|
* @example
|
|
19
23
|
* ```typescript
|
|
20
24
|
* import { createAnalytics } from '../analytics';
|
|
21
25
|
*
|
|
22
|
-
* // Static widget
|
|
26
|
+
* // Static widget: the PFT Id is known at init time
|
|
23
27
|
* const analytics = await createAnalytics({
|
|
24
28
|
* appId: 'my-app',
|
|
25
29
|
* pftId: 'aJCEE000000FgYP4A0',
|
|
26
30
|
* });
|
|
27
31
|
*
|
|
28
|
-
* // Multi-customer widget
|
|
29
|
-
* // their PFT Id
|
|
32
|
+
* // Multi-customer widget: refresh the PFT Id per tool call, because new
|
|
33
|
+
* // tools advertise their PFT Id through _meta["sfdc.pftId"] on CallToolResult
|
|
30
34
|
* const analytics = await createAnalytics({ appId: 'my-app' });
|
|
31
35
|
* analytics.setPftId('aJCEE000000FgYP4A0');
|
|
32
36
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/analytics/analytics.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAmB,MAAM,SAAS,CAAC;AAE5E
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/analytics/analytics.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAmB,MAAM,SAAS,CAAC;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,SAAS,CAAC,CAK7E"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Instrumentation } from './types';
|
|
2
2
|
/**
|
|
3
|
-
* Sets up global error auto-capture
|
|
4
|
-
* unhandledrejection
|
|
3
|
+
* Sets up global error auto-capture through `window.onerror` and
|
|
4
|
+
* `unhandledrejection`, and sends errors to `instrumentation.error()`.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* @returns A cleanup function that removes both listeners.
|
|
7
7
|
*/
|
|
8
8
|
export declare function setupErrorListeners(instrumentation: Instrumentation): () => void;
|
|
9
9
|
//# sourceMappingURL=error-listener.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/analytics/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/analytics/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAO3D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC"}
|
package/dist/analytics/index.js
CHANGED
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
export interface MethodConfig {
|
|
7
|
-
/** Whether
|
|
7
|
+
/** Whether the method returns a Promise and needs `activityAsync`. */
|
|
8
8
|
isAsync: boolean;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
/**
|
|
10
|
+
* Extracts per-call dimensional tags from the method arguments.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* The proxy merges in static tags, such as surface and PFT ids, from its
|
|
14
|
+
* `getStaticTags` provider. This function returns only method-specific keys.
|
|
15
|
+
*/
|
|
12
16
|
extractTags: (args: unknown[]) => Record<string, string>;
|
|
13
17
|
}
|
|
14
18
|
export declare const methodConfigs: Record<string, MethodConfig>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method-configs.d.ts","sourceRoot":"","sources":["../../src/analytics/method-configs.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC5B,
|
|
1
|
+
{"version":3,"file":"method-configs.d.ts","sourceRoot":"","sources":["../../src/analytics/method-configs.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC5B,sEAAsE;IACtE,OAAO,EAAE,OAAO,CAAC;IACjB;;;;;;OAMG;IACH,WAAW,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACzD;AAMD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAoCtD,CAAC"}
|
package/dist/analytics/pft.d.ts
CHANGED
|
@@ -4,29 +4,35 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* the PFT Id their tool
|
|
9
|
-
*
|
|
7
|
+
* The reserved key on `CallToolResult._meta` that tool authors use to
|
|
8
|
+
* advertise the PFT Id for their tool's attribution.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* This key is namespaced to avoid collisions with other `_meta` consumers.
|
|
10
12
|
*/
|
|
11
13
|
export declare const PFT_META_KEY = "sfdc.pftId";
|
|
12
14
|
/**
|
|
13
15
|
* Validates a PFT Id at the SDK boundary.
|
|
14
16
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* - Returns `true` only for a well-formed Salesforce PF Id that matches
|
|
19
|
+
* `^aJC[0-9A-Za-z]{12}(?:[0-9A-Za-z]{3})?$` (15 or 18 characters).
|
|
20
|
+
* - Rejects `null`, `undefined`, non-string values, and empty or
|
|
21
|
+
* whitespace-only strings.
|
|
22
|
+
* - Rejects any KeyPrefix other than `aJC`, for example PFE Ids, or
|
|
23
|
+
* account, contact, and user records.
|
|
24
|
+
* - Rejects whitespace-padded inputs, such as `" aJC... "`. Callers must
|
|
25
|
+
* pass clean values. The SDK does not fix a bad input silently, because
|
|
26
|
+
* that input could otherwise reach the wire payload and break
|
|
27
|
+
* PDP-dashboard aggregation.
|
|
23
28
|
*
|
|
24
|
-
* Rejection
|
|
25
|
-
*
|
|
26
|
-
* occurrences of the same value
|
|
29
|
+
* Rejection never throws. The function logs a debug message with
|
|
30
|
+
* `console.debug` the first time it sees a given invalid string in a
|
|
31
|
+
* session. It drops later occurrences of the same value without further
|
|
32
|
+
* logging.
|
|
27
33
|
*
|
|
28
|
-
* @param id - The candidate PFT Id
|
|
29
|
-
* @returns `true`
|
|
34
|
+
* @param id - The candidate PFT Id, in any input shape, including non-strings.
|
|
35
|
+
* @returns `true` when the value is a valid PF Id that is safe to store.
|
|
30
36
|
*
|
|
31
37
|
* @example
|
|
32
38
|
* validatePftId("aJCEE000000FgYP4A0"); // → true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pft.d.ts","sourceRoot":"","sources":["../../src/analytics/pft.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"pft.d.ts","sourceRoot":"","sources":["../../src/analytics/pft.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA0BH;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,eAAe,CAAC;AAsBzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,OAAO,GAAG,EAAE,IAAI,MAAM,CAuBvD"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { ChatSDK } from '../core';
|
|
2
2
|
import { Instrumentation } from './types';
|
|
3
3
|
/**
|
|
4
|
-
* Creates a Proxy-wrapped ChatSDK that auto-instruments every configured
|
|
5
|
-
* method
|
|
4
|
+
* Creates a Proxy-wrapped `ChatSDK` that auto-instruments every configured
|
|
5
|
+
* method with o11y activities and counters.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* - `activityAsync()` fully wraps async methods for full round-trip timing.
|
|
9
|
+
* `incrementCounter()` records call counts and error rates.
|
|
10
|
+
* - Sync methods use only `incrementCounter()`.
|
|
10
11
|
* - Unconfigured methods pass through unchanged.
|
|
11
12
|
*
|
|
12
|
-
*
|
|
13
|
-
* tag map
|
|
14
|
-
*
|
|
13
|
+
* The proxy re-reads `getStaticTags` on every invocation and merges the
|
|
14
|
+
* result into the counter tag map. Re-reading lets late-bound values, such
|
|
15
|
+
* as PFT ids and the internal-session gate, reach the metric channel
|
|
16
|
+
* without a proxy re-creation (W-23257158).
|
|
15
17
|
*/
|
|
16
18
|
export declare function createInstrumentedProxy(sdk: ChatSDK, instrumentation: Instrumentation, getStaticTags: () => Record<string, string>): ChatSDK;
|
|
17
19
|
//# sourceMappingURL=proxy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/analytics/proxy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C
|
|
1
|
+
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/analytics/proxy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CACtC,GAAG,EAAE,OAAO,EACZ,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACzC,OAAO,CAmCT"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChatSDK } from '../core';
|
|
2
2
|
import { TelemetryTransport } from '../telemetry';
|
|
3
3
|
/**
|
|
4
|
-
* o11y
|
|
4
|
+
* The o11y schema interface. Matches the `Schema` type from the o11y package.
|
|
5
5
|
*/
|
|
6
6
|
export interface Schema {
|
|
7
7
|
namespace: string;
|
|
@@ -9,14 +9,16 @@ export interface Schema {
|
|
|
9
9
|
pbjsSchema: Record<string, unknown>;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* o11y SchematizedPayload
|
|
12
|
+
* The o11y `SchematizedPayload` interface. `PayloadProvider.getPayload()`
|
|
13
|
+
* returns this shape.
|
|
13
14
|
*/
|
|
14
15
|
export interface SchematizedPayload {
|
|
15
16
|
schema: Schema;
|
|
16
17
|
payload: Record<string, unknown>;
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
|
-
* o11y PayloadProviderArgs
|
|
20
|
+
* The o11y `PayloadProviderArgs` interface. `PayloadProvider.getPayload()`
|
|
21
|
+
* receives this shape as its argument.
|
|
20
22
|
*/
|
|
21
23
|
export interface PayloadProviderArgs {
|
|
22
24
|
schema?: Schema;
|
|
@@ -24,15 +26,18 @@ export interface PayloadProviderArgs {
|
|
|
24
26
|
logMeta?: Record<string, unknown>;
|
|
25
27
|
}
|
|
26
28
|
/**
|
|
27
|
-
* o11y PayloadProvider interface.
|
|
28
|
-
*
|
|
29
|
+
* The o11y `PayloadProvider` interface.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* The SDK calls this provider on every log, error, activity, or metric
|
|
33
|
+
* emission.
|
|
29
34
|
*/
|
|
30
35
|
export interface PayloadProvider {
|
|
31
36
|
getPayload(args?: PayloadProviderArgs): SchematizedPayload | undefined;
|
|
32
37
|
}
|
|
33
38
|
/**
|
|
34
|
-
* o11y Instrumentation interface.
|
|
35
|
-
*
|
|
39
|
+
* The o11y `Instrumentation` interface. Defines the methods that analytics
|
|
40
|
+
* uses for logging and metrics.
|
|
36
41
|
*/
|
|
37
42
|
export interface Instrumentation {
|
|
38
43
|
log(schema: Schema | string, data?: Record<string, unknown>): void;
|
|
@@ -42,9 +47,9 @@ export interface Instrumentation {
|
|
|
42
47
|
incrementCounter(name: string, increment?: number, hasError?: boolean, tags?: Record<string, string>): void;
|
|
43
48
|
}
|
|
44
49
|
/**
|
|
45
|
-
* o11y InstrumentedApp interface.
|
|
46
|
-
*
|
|
47
|
-
*
|
|
50
|
+
* The o11y `InstrumentedApp` interface. `registerInstrumentedApp()` returns
|
|
51
|
+
* this interface, which extends `Instrumentation` with app-level lifecycle
|
|
52
|
+
* methods.
|
|
48
53
|
*/
|
|
49
54
|
export interface InstrumentedApp extends Instrumentation {
|
|
50
55
|
registerLogCollector(collector: unknown): void;
|
|
@@ -54,64 +59,73 @@ export interface InstrumentedApp extends Instrumentation {
|
|
|
54
59
|
getClientSessionId(): string;
|
|
55
60
|
}
|
|
56
61
|
/**
|
|
57
|
-
*
|
|
62
|
+
* The options for `createAnalytics()`.
|
|
58
63
|
*
|
|
59
|
-
*
|
|
64
|
+
* @remarks
|
|
65
|
+
* Only `appId` is required. `createAnalytics()` handles `ChatSDK` creation
|
|
66
|
+
* and o11y registration internally.
|
|
60
67
|
*/
|
|
61
68
|
export interface AnalyticsOptions {
|
|
62
|
-
/**
|
|
69
|
+
/** The developer-supplied MCP App identifier. */
|
|
63
70
|
appId: string;
|
|
64
|
-
/**
|
|
71
|
+
/** A `ChatSDK` override. If omitted, `getChatSDK()` creates one automatically. */
|
|
65
72
|
sdk?: ChatSDK;
|
|
66
|
-
/**
|
|
73
|
+
/** An o11y client session ID override. */
|
|
67
74
|
clientSessionId?: string;
|
|
68
|
-
/**
|
|
75
|
+
/** A telemetry transport. When set, the SDK auto-wires an o11y uploader to route envelopes to `transport.enqueue()`. */
|
|
69
76
|
transport?: TelemetryTransport;
|
|
70
77
|
/**
|
|
71
|
-
*
|
|
72
|
-
* events to at init time.
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
78
|
+
* The Product Feature Taxonomy (PFT) Id to attribute all analytics
|
|
79
|
+
* events to at init time.
|
|
80
|
+
*
|
|
81
|
+
* @remarks
|
|
82
|
+
* This option is convenient for static widgets, for example AccountIQ,
|
|
83
|
+
* where the Id is known up front. Multi-customer widgets, for example
|
|
84
|
+
* mosaic-widget, should leave this field unset and use the runtime
|
|
85
|
+
* `setPftId()` API instead, so the value can refresh per render or per
|
|
86
|
+
* tool call.
|
|
76
87
|
*
|
|
77
|
-
*
|
|
78
|
-
* PFE Ids (`aJD`) and malformed
|
|
79
|
-
* starts with no PFT attribution
|
|
80
|
-
* analytics dashboards
|
|
88
|
+
* The SDK validates the Id at the boundary. It accepts only PF Ids
|
|
89
|
+
* (KeyPrefix `aJC`). It silently drops PFE Ids (`aJD`) and malformed
|
|
90
|
+
* values, and the instance starts with no PFT attribution. The PFT Id
|
|
91
|
+
* is advisory. The SDK uses it only for usage-analytics dashboards.
|
|
81
92
|
*/
|
|
82
93
|
pftId?: string;
|
|
83
94
|
}
|
|
84
95
|
/**
|
|
85
|
-
* Analytics instance
|
|
96
|
+
* The Analytics instance that `createAnalytics()` returns.
|
|
86
97
|
*/
|
|
87
98
|
export interface Analytics {
|
|
88
|
-
/** Proxy-wrapped SDK
|
|
99
|
+
/** The Proxy-wrapped SDK. Pass this to the telemetry system or widget host. */
|
|
89
100
|
instrumentedSDK: ChatSDK;
|
|
90
|
-
/** The o11y InstrumentedApp
|
|
101
|
+
/** The o11y `InstrumentedApp`, exposed for advanced use, such as click tracking or log collectors. */
|
|
91
102
|
app: InstrumentedApp;
|
|
92
|
-
/**
|
|
103
|
+
/** Logs a custom business event. */
|
|
93
104
|
trackEvent: (eventName: string, properties?: Record<string, unknown>) => void;
|
|
94
|
-
/**
|
|
105
|
+
/** Logs a user interaction with a UI element. */
|
|
95
106
|
trackInteraction: (elementId: string, properties?: Record<string, unknown>) => void;
|
|
96
|
-
/**
|
|
107
|
+
/** Logs an error explicitly. */
|
|
97
108
|
trackError: (error: Error | string, properties?: Record<string, unknown>) => void;
|
|
98
|
-
/**
|
|
109
|
+
/** Logs a component load or page view. */
|
|
99
110
|
trackPageView: (componentRef: string) => void;
|
|
100
111
|
/**
|
|
101
|
-
*
|
|
102
|
-
* analytics events.
|
|
103
|
-
*
|
|
104
|
-
*
|
|
112
|
+
* Sets the Product Feature Taxonomy (PFT) Id for attribution of later
|
|
113
|
+
* analytics events.
|
|
114
|
+
*
|
|
115
|
+
* @remarks
|
|
116
|
+
* The value is late-bound. Every emission reads the current value, so
|
|
117
|
+
* callers can refresh it per render or per tool call. Multi-customer
|
|
118
|
+
* widgets, such as mosaic-widget, rely on this behavior.
|
|
105
119
|
*
|
|
106
|
-
* Validation matches the constructor option
|
|
107
|
-
*
|
|
108
|
-
* prior value
|
|
109
|
-
* losing attribution
|
|
110
|
-
* that occasionally
|
|
111
|
-
* the Id
|
|
120
|
+
* Validation matches the constructor option. The SDK accepts only PF
|
|
121
|
+
* Ids (the `aJC` prefix). It silently ignores PFE Ids and malformed
|
|
122
|
+
* values, and keeps any prior value in place. This protects long-lived
|
|
123
|
+
* widgets from losing attribution from a single bad input. For example,
|
|
124
|
+
* a tool that occasionally sends a malformed `_meta["sfdc.pftId"]` does
|
|
125
|
+
* not blank the Id that an earlier, well-formed response set.
|
|
112
126
|
*/
|
|
113
127
|
setPftId: (id: string) => void;
|
|
114
|
-
/**
|
|
128
|
+
/** Removes listeners, logs the session duration, and flushes events. */
|
|
115
129
|
dispose: () => void;
|
|
116
130
|
}
|
|
117
131
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/analytics/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,MAAM;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/analytics/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { registerInstrumentedApp as S } from "o11y/client";
|
|
2
|
-
import { g as E, S as T } from "./surface-
|
|
2
|
+
import { g as E, S as T } from "./surface-DWDgqdpN.js";
|
|
3
3
|
import { w as A } from "./sdk-promise-D0sy7OW1.js";
|
|
4
4
|
import { getChatSDK as v } from "./chat/index.js";
|
|
5
5
|
import { r as x } from "./TelemetryUploader-DKkdppe9.js";
|
package/dist/app/index.d.ts
CHANGED
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
import { CurrentApp, SDKOptions } from '../core';
|
|
2
2
|
/**
|
|
3
|
-
* Options for
|
|
3
|
+
* Options for getting the current app.
|
|
4
4
|
*/
|
|
5
5
|
export interface CurrentAppOptions extends SDKOptions {
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Gets the current, running app for the detected surface.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* mirroring how the Data/Chat SDKs degrade rather than failing the host.
|
|
10
|
+
* @remarks
|
|
11
|
+
* There is exactly one running app, so this function queries the ambient app
|
|
12
|
+
* instead of constructing a client. The runtime backs its identity with
|
|
13
|
+
* `SFDC_ENV`. The runtime injects `SFDC_ENV` on the {@link Surface.WebApp}
|
|
14
|
+
* surface. It also injects `SFDC_ENV` on an internally-hosted
|
|
15
|
+
* {@link Surface.MicroFrontend} surface, through the same core-server
|
|
16
|
+
* page-serving pipeline. This happens because the MFE host's iframe
|
|
17
|
+
* ultimately redirects to the UIBundle's own served page.
|
|
19
18
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* On every other surface, the returned {@link CurrentApp} has `identity`
|
|
20
|
+
* set to `undefined`. The same applies when the surface is unusable, or
|
|
21
|
+
* when `SFDC_ENV` is present without an `appName` (the host has not wired
|
|
22
|
+
* injection for this embed). This mirrors how the Data and Chat SDKs degrade
|
|
23
|
+
* instead of failing the host.
|
|
24
|
+
*
|
|
25
|
+
* @param options - Configuration for the query, including a surface override.
|
|
26
|
+
* @returns The current app.
|
|
22
27
|
*/
|
|
23
28
|
export declare function getCurrentApp(options?: CurrentAppOptions): Promise<CurrentApp>;
|
|
24
29
|
export { WebAppCurrentApp } from './webapp';
|
package/dist/app/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGtD;;GAEG;AAEH,MAAM,WAAW,iBAAkB,SAAQ,UAAU;CAAG;AAExD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGtD;;GAEG;AAEH,MAAM,WAAW,iBAAkB,SAAQ,UAAU;CAAG;AAExD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,CAqB9E;AAED,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/app/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as c, S as n } from "../surface-
|
|
1
|
+
import { g as c, S as n } from "../surface-DWDgqdpN.js";
|
|
2
2
|
import { w as s } from "../sdk-promise-D0sy7OW1.js";
|
|
3
3
|
const p = "c";
|
|
4
4
|
class u {
|
|
@@ -11,9 +11,11 @@ class u {
|
|
|
11
11
|
this.identity = {
|
|
12
12
|
namespace: a,
|
|
13
13
|
appName: r,
|
|
14
|
-
//
|
|
14
|
+
// This value places the namespace first, with a "__" separator. It is
|
|
15
|
+
// the UIBundle record's qualified name.
|
|
15
16
|
qualifiedName: `${a}__${r}`,
|
|
16
|
-
//
|
|
17
|
+
// This Id is the authoritative record Id from the server injector. It
|
|
18
|
+
// is absent in local dev.
|
|
17
19
|
bundleId: e?.bundleId
|
|
18
20
|
};
|
|
19
21
|
}
|
package/dist/app/webapp.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { AppIdentity, CurrentApp } from '../core';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* The current-app implementation for web apps.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* This class reads the identity that the runtime injects into
|
|
7
|
+
* `globalThis.SFDC_ENV`, then builds the qualified name from it.
|
|
5
8
|
*/
|
|
6
9
|
export declare class WebAppCurrentApp implements CurrentApp {
|
|
7
10
|
readonly identity?: AppIdentity;
|
package/dist/app/webapp.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webapp.d.ts","sourceRoot":"","sources":["../../src/app/webapp.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKvD
|
|
1
|
+
{"version":3,"file":"webapp.d.ts","sourceRoot":"","sources":["../../src/app/webapp.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKvD;;;;;;GAMG;AACH,qBAAa,gBAAiB,YAAW,UAAU;IAClD,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;;CA2BhC"}
|
package/dist/chat/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as c, S as n, a as d } from "../surface-
|
|
1
|
+
import { g as c, S as n, a as d } from "../surface-DWDgqdpN.js";
|
|
2
2
|
import { w as p } from "../sdk-promise-D0sy7OW1.js";
|
|
3
3
|
import { requireSharedSession as h } from "../ui-embedding/session.js";
|
|
4
4
|
class a {
|
package/dist/core/app.d.ts
CHANGED
|
@@ -4,47 +4,56 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* The identity of the running UIBundle (web app).
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* The runtime derives this value from the fields it injects into
|
|
11
|
+
* `globalThis.SFDC_ENV`.
|
|
9
12
|
*
|
|
10
13
|
* The {@link qualifiedName} — `namespace__appName` — is the platform-addressable
|
|
11
|
-
* name of the UIBundle record
|
|
12
|
-
*
|
|
13
|
-
* fields
|
|
14
|
-
*
|
|
14
|
+
* name of the UIBundle record. The namespace comes first, followed by a `__`
|
|
15
|
+
* separator, and it keeps its original mixed case. The runtime composes this
|
|
16
|
+
* value from the two stored fields. It is **not** the auto-assigned
|
|
17
|
+
* 18-character record ID. Consumers, such as CMS search, use this value to
|
|
18
|
+
* key off the UIBundle identity.
|
|
15
19
|
*/
|
|
16
20
|
export interface AppIdentity {
|
|
17
21
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
22
|
+
* The namespace prefix in its original mixed case, for example `MyNs`.
|
|
23
|
+
* Falls back to `c` when the org has no registered namespace.
|
|
20
24
|
*/
|
|
21
25
|
namespace: string;
|
|
22
|
-
/**
|
|
26
|
+
/** The developer (app) name of the UIBundle, for example `MyBundle`. */
|
|
23
27
|
appName: string;
|
|
24
28
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
29
|
+
* The platform-addressable qualified name `namespace__appName`, for
|
|
30
|
+
* example `MyNs__MyBundle`, or `c__MyBundle` when there is no registered
|
|
31
|
+
* namespace.
|
|
27
32
|
*/
|
|
28
33
|
qualifiedName: string;
|
|
29
34
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* and **not** {@link appName}.
|
|
33
|
-
*
|
|
35
|
+
* The authoritative UIBundle record ID. The core server, owned by App
|
|
36
|
+
* Fabric, injects this value into `SFDC_ENV`. It is explicitly **not**
|
|
37
|
+
* {@link qualifiedName} and **not** {@link appName}. The value is
|
|
38
|
+
* `undefined` when the runtime does not inject it, for example during
|
|
39
|
+
* local development and on every non-WebApp surface.
|
|
34
40
|
*/
|
|
35
41
|
bundleId?: string;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
|
-
* The current (running) app: the single, ambient app the code
|
|
39
|
-
*
|
|
44
|
+
* The current (running) app: the single, ambient app the code runs inside.
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
* Exactly one current app exists, so callers query it instead of
|
|
48
|
+
* constructing it.
|
|
40
49
|
*
|
|
41
|
-
*
|
|
42
|
-
* `SFDC_ENV`
|
|
43
|
-
* {@link identity} is absent
|
|
44
|
-
* cannot back their capability.
|
|
50
|
+
* The {@link identity} field is meaningful only on surfaces where the
|
|
51
|
+
* runtime injects `SFDC_ENV` — today, the {@link Surface.WebApp} surface.
|
|
52
|
+
* On every other surface, {@link identity} is absent. This mirrors how the
|
|
53
|
+
* other SDKs degrade when a surface cannot back their capability.
|
|
45
54
|
*/
|
|
46
55
|
export interface CurrentApp {
|
|
47
|
-
/** The running app's identity
|
|
56
|
+
/** The running app's identity. `undefined` on surfaces without `SFDC_ENV`. */
|
|
48
57
|
readonly identity?: AppIdentity;
|
|
49
58
|
}
|
|
50
59
|
//# sourceMappingURL=app.d.ts.map
|
package/dist/core/app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/core/app.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/core/app.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,WAAW;IAC3B;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,wEAAwE;IACxE,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,UAAU;IAC1B,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;CAChC"}
|