@webex/webex-core 3.12.0-webex-services-ready.4 → 3.13.0-next.1
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/.repo-context.json +653 -0
- package/.sdd/manifest.json +605 -0
- package/AGENTS.md +209 -0
- package/dist/config.js +30 -0
- package/dist/config.js.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/interceptors/catalog-url.js +87 -0
- package/dist/interceptors/catalog-url.js.map +1 -0
- package/dist/interceptors/payload-transformer.js +25 -4
- package/dist/interceptors/payload-transformer.js.map +1 -1
- package/dist/lib/batcher.js +1 -1
- package/dist/lib/credentials/credentials.js +56 -1
- package/dist/lib/credentials/credentials.js.map +1 -1
- package/dist/lib/credentials/token.js +1 -1
- package/dist/lib/services/service-catalog.js +102 -8
- package/dist/lib/services/service-catalog.js.map +1 -1
- package/dist/lib/services/services.js +84 -48
- package/dist/lib/services/services.js.map +1 -1
- package/dist/lib/services-v2/service-catalog.js +8 -1
- package/dist/lib/services-v2/service-catalog.js.map +1 -1
- package/dist/lib/services-v2/services-v2.js +90 -50
- package/dist/lib/services-v2/services-v2.js.map +1 -1
- package/dist/lib/static-asset-loader.js +153 -0
- package/dist/lib/static-asset-loader.js.map +1 -0
- package/dist/plugins/logger.js +1 -1
- package/dist/webex-core.js +11 -3
- package/dist/webex-core.js.map +1 -1
- package/docs/adr/index.md +32 -0
- package/docs/architecture.md +298 -0
- package/docs/getting-started.md +96 -0
- package/docs/index.md +55 -0
- package/docs/specs/README.md +76 -0
- package/package.json +13 -13
- package/schemas/repo-context.schema.json +796 -0
- package/src/config.js +32 -0
- package/src/docs/README.md +732 -0
- package/src/index.js +2 -0
- package/src/interceptors/catalog-url.js +66 -0
- package/src/interceptors/docs/README.md +658 -0
- package/src/interceptors/payload-transformer.js +23 -1
- package/src/lib/credentials/credentials.js +43 -0
- package/src/lib/credentials/docs/README.md +846 -0
- package/src/lib/services/docs/README.md +737 -0
- package/src/lib/services/service-catalog.js +106 -6
- package/src/lib/services/services.js +77 -32
- package/src/lib/services-v2/docs/README.md +751 -0
- package/src/lib/services-v2/service-catalog.ts +10 -1
- package/src/lib/services-v2/services-v2.ts +86 -33
- package/src/lib/static-asset-loader.ts +128 -0
- package/src/lib/storage/docs/README.md +646 -0
- package/src/webex-core.js +8 -0
- package/test/integration/spec/services/services.js +148 -113
- package/test/integration/spec/services-v2/services-v2.js +134 -99
- package/test/unit/spec/credentials/credentials.js +114 -1
- package/test/unit/spec/interceptors/catalog-url.js +224 -0
- package/test/unit/spec/interceptors/payload-transformer.js +119 -1
- package/test/unit/spec/services/service-catalog.js +275 -0
- package/test/unit/spec/services/services.js +161 -2
- package/test/unit/spec/services-v2/service-catalog.ts +41 -0
- package/test/unit/spec/services-v2/services-v2.ts +279 -2
- package/test/unit/spec/static-asset-loader.ts +224 -0
- package/test/unit/spec/webex-core.js +77 -1
package/src/config.js
CHANGED
|
@@ -17,6 +17,13 @@ export default {
|
|
|
17
17
|
trackingIdSuffix: '',
|
|
18
18
|
AlternateLogger: undefined,
|
|
19
19
|
credentials: new CredentialsConfig(),
|
|
20
|
+
/**
|
|
21
|
+
* Explicitly selects the Webex environment. When omitted, the environment is inferred from the
|
|
22
|
+
* U2C discovery URL.
|
|
23
|
+
*
|
|
24
|
+
* @type {'integration'|'production'|undefined}
|
|
25
|
+
*/
|
|
26
|
+
environment: undefined,
|
|
20
27
|
fedramp: process.env.ENABLE_FEDRAMP || false,
|
|
21
28
|
services: {
|
|
22
29
|
/**
|
|
@@ -34,6 +41,16 @@ export default {
|
|
|
34
41
|
*/
|
|
35
42
|
useCatalogOverride: false,
|
|
36
43
|
|
|
44
|
+
/**
|
|
45
|
+
* When true, skips fetching the preauth catalog during initialization
|
|
46
|
+
* while the user is unauthenticated (no existing token). The catalog is
|
|
47
|
+
* expected to be collected manually later instead. When false (default),
|
|
48
|
+
* the preauth catalog is collected automatically during init.
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
*/
|
|
52
|
+
skipPreauthCatalogOnUnauthenticated: false,
|
|
53
|
+
|
|
37
54
|
/**
|
|
38
55
|
* Maximum time (in milliseconds) to wait for the initial service catalog
|
|
39
56
|
* collection when `waitForCatalogInit` is enabled, before letting
|
|
@@ -77,6 +94,16 @@ export default {
|
|
|
77
94
|
*/
|
|
78
95
|
validateDomains: true,
|
|
79
96
|
|
|
97
|
+
/**
|
|
98
|
+
* When true, enables the CatalogUrlInterceptor which validates that all
|
|
99
|
+
* outbound request URLs are in the service catalog or allowed domains.
|
|
100
|
+
* This prevents SSRF attacks where attacker-controlled URLs could be
|
|
101
|
+
* sent to the SDK.
|
|
102
|
+
*
|
|
103
|
+
* @type {boolean}
|
|
104
|
+
*/
|
|
105
|
+
validateCatalogUrls: false,
|
|
106
|
+
|
|
80
107
|
/**
|
|
81
108
|
* services that don't need auth validation
|
|
82
109
|
*/
|
|
@@ -108,6 +135,11 @@ export default {
|
|
|
108
135
|
cacheU2C: false,
|
|
109
136
|
},
|
|
110
137
|
payloadTransformer: {
|
|
138
|
+
/**
|
|
139
|
+
* When true, inbound payload transforms run at most once for the same successful response object.
|
|
140
|
+
* This supports request flows that pass a response through more than one interceptor pipeline.
|
|
141
|
+
*/
|
|
142
|
+
skipRepeatedInboundTransforms: false,
|
|
111
143
|
predicates: [],
|
|
112
144
|
transforms: [],
|
|
113
145
|
},
|