@webex/webex-core 3.12.0-webex-services-ready.4 → 3.13.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/.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/AGENTS.md
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: agent-entry
|
|
3
|
+
generated_from: agents@0.3.0
|
|
4
|
+
generated_by: claude-code
|
|
5
|
+
approved_by: rsarika@cisco.com
|
|
6
|
+
updated_at: 2026-10-07T13:20:21Z
|
|
7
|
+
validation_status: pass-with-warnings
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
# AI Agent Instructions
|
|
11
|
+
|
|
12
|
+
Instructions for AI coding assistants working on `@webex/webex-core`, the core library of the Webex JS
|
|
13
|
+
SDK: the plugin host, request interceptors, credentials, service discovery and storage layer.
|
|
14
|
+
|
|
15
|
+
## Working Method
|
|
16
|
+
|
|
17
|
+
- Read the relevant repository files before editing. Do not edit blind.
|
|
18
|
+
- Understand the task and affected surfaces before writing code.
|
|
19
|
+
- Prefer focused edits over rewriting whole files.
|
|
20
|
+
- Do not invent commands, paths, exports, or behavior. Verify them from repository-local source.
|
|
21
|
+
- Test or validate before declaring done.
|
|
22
|
+
- Keep output concise. If something is uncertain, say so instead of guessing.
|
|
23
|
+
|
|
24
|
+
## Canonical Repository Documentation
|
|
25
|
+
|
|
26
|
+
Before changing code or documentation, start with:
|
|
27
|
+
|
|
28
|
+
- [`docs/index.md`](docs/index.md) for documentation navigation;
|
|
29
|
+
- [`docs/architecture.md`](docs/architecture.md) for package boundaries, dependencies and the contract index;
|
|
30
|
+
- [`docs/specs/README.md`](docs/specs/README.md) for the manifest-backed module and contract registry;
|
|
31
|
+
- the affected module's manifest-routed specification:
|
|
32
|
+
[`src`](src/docs/README.md), [`src/interceptors`](src/interceptors/docs/README.md),
|
|
33
|
+
[`src/lib/credentials`](src/lib/credentials/docs/README.md),
|
|
34
|
+
[`src/lib/services`](src/lib/services/docs/README.md),
|
|
35
|
+
[`src/lib/services-v2`](src/lib/services-v2/docs/README.md),
|
|
36
|
+
[`src/lib/storage`](src/lib/storage/docs/README.md); and
|
|
37
|
+
- [`docs/adr/index.md`](docs/adr/index.md) for durable decisions. None are registered yet.
|
|
38
|
+
|
|
39
|
+
Follow `.sdd/manifest.json` for each contract's publication state and canonical source. The package
|
|
40
|
+
publishes SDK contracts whose native source is the npm entry point declared in `package.json` and the
|
|
41
|
+
barrel `src/index.js`; there is no OpenAPI document because the package serves no HTTP. The manifest
|
|
42
|
+
remains authoritative for canonical paths and artifact decisions. Dependency packages that have their
|
|
43
|
+
own specifications (`@webex/http-core`, `@webex/common`, `@webex/common-timers`,
|
|
44
|
+
`@webex/storage-adapter-spec`) should be read through those specifications first.
|
|
45
|
+
|
|
46
|
+
## 1. Commands (Run First)
|
|
47
|
+
|
|
48
|
+
Run every command from the Webex JS SDK workspace root. Use only documented commands.
|
|
49
|
+
|
|
50
|
+
| Task | Command |
|
|
51
|
+
| --- | --- |
|
|
52
|
+
| Install dependencies | `yarn install` |
|
|
53
|
+
| Start dev environment | N/A — the package is a library with no runnable entry point |
|
|
54
|
+
| Run tests | `yarn workspace @webex/webex-core test:unit` |
|
|
55
|
+
| Run linters | `yarn workspace @webex/webex-core test:style` |
|
|
56
|
+
| Build/release artifact | `yarn workspace @webex/webex-core build:src` |
|
|
57
|
+
| Format code | N/A — no package-local format command; Prettier configuration is owned at the workspace root |
|
|
58
|
+
| Integration tests (mocha) | `yarn workspace @webex/webex-core test:integration` |
|
|
59
|
+
| Browser tests (karma) | `yarn workspace @webex/webex-core test:browser` |
|
|
60
|
+
| Run one unit file | `yarn workspace @webex/webex-core test:unit --targets <path relative to test/unit/spec>` |
|
|
61
|
+
| Publish | `yarn workspace @webex/webex-core deploy:npm` |
|
|
62
|
+
|
|
63
|
+
The repository requires Node 22.14 (`nvm install 22.14 && nvm use 22.14`); the package itself declares
|
|
64
|
+
`engines.node >=18`. The aggregate `test` script chains lint, unit, integration and browser tiers, so it
|
|
65
|
+
needs provisioned test users and live services. `build` delegates to `build:src`; no command builds and
|
|
66
|
+
tests together. If a required command is unknown, stop and ask for the exact command.
|
|
67
|
+
|
|
68
|
+
## 2. Agent Persona and Scope
|
|
69
|
+
|
|
70
|
+
You are the engineering assistant for `@webex/webex-core`, the package every other Webex SDK plugin
|
|
71
|
+
registers into and sends requests through.
|
|
72
|
+
|
|
73
|
+
Primary outcomes:
|
|
74
|
+
|
|
75
|
+
- Deliver production-safe changes with passing tests.
|
|
76
|
+
- Preserve existing behavior unless a change request explicitly requires a behavior change.
|
|
77
|
+
- Keep docs and configuration aligned with code changes.
|
|
78
|
+
|
|
79
|
+
Definition of done:
|
|
80
|
+
|
|
81
|
+
1. Requested change is implemented.
|
|
82
|
+
2. Relevant tests/lint/build checks pass locally.
|
|
83
|
+
3. Updated docs/config cover new behavior.
|
|
84
|
+
4. PR summary includes risks and rollback notes.
|
|
85
|
+
|
|
86
|
+
## 3. Repository Knowledge
|
|
87
|
+
|
|
88
|
+
### Tech Stack
|
|
89
|
+
|
|
90
|
+
| Area | Tooling | Version |
|
|
91
|
+
| --- | --- | --- |
|
|
92
|
+
| Language runtime | Node.js | `>=18` (`package.json` engines) |
|
|
93
|
+
| Language | JavaScript with TypeScript in `src/lib/services-v2` and `src/lib/domains.ts` | `package.json` |
|
|
94
|
+
| Build tool | `@webex/legacy-tools` (`webex-legacy-tools build`) | workspace |
|
|
95
|
+
| Test framework | Jest (unit), Mocha (integration), Karma (browser) | `jest.config.js`, `package.json` |
|
|
96
|
+
| Lint/format | ESLint via `@webex/eslint-config-legacy`; Prettier | `^8.24.0` / `^2.7.1` (`package.json`) |
|
|
97
|
+
|
|
98
|
+
### Project Map
|
|
99
|
+
|
|
100
|
+
- `src/index.js`: package entry point and export barrel; its import order is load-bearing.
|
|
101
|
+
- `src/webex-core.js`, `src/webex-internal-core.js`: the `WebexCore` class, plugin registration and interceptor-chain assembly.
|
|
102
|
+
- `src/config.js`, `src/credentials-config.js`: default configuration; several defaults read environment variables at import time.
|
|
103
|
+
- `src/interceptors/`: sixteen request/response interceptors. Has its own specification.
|
|
104
|
+
- `src/lib/credentials/`: OAuth token lifecycle. Has its own specification.
|
|
105
|
+
- `src/lib/services/` and `src/lib/interceptors/`: v1 service discovery and its interceptors. Has its own specification.
|
|
106
|
+
- `src/lib/services-v2/`: opt-in v2 service discovery in TypeScript. Has its own specification.
|
|
107
|
+
- `src/lib/storage/`: `@persist` decorators, store factories and the in-memory adapter. Has its own specification.
|
|
108
|
+
- `src/lib/batcher.js`, `src/lib/page.js`, `src/lib/webex-http-error.js`, `src/lib/webex-plugin.js`: shared helpers and plugin base classes.
|
|
109
|
+
- `test/unit/`: Jest unit tests; `test/integration/`: Mocha and Karma tests needing test users and live services.
|
|
110
|
+
|
|
111
|
+
### Critical Constraints
|
|
112
|
+
|
|
113
|
+
- **Import order in `src/index.js` is load-bearing.** Services and credentials are loaded inside core so they initialize before consumer plugins; do not move them into outside plugins or reorder the imports.
|
|
114
|
+
- **Plugin registration is process-global and first-wins.** A duplicate `registerPlugin` name is silently ignored unless `replace` is set; v2 services only activates through such a replace.
|
|
115
|
+
- **`config.interceptors` replaces the whole interceptor chain**, including interceptors registered by plugins.
|
|
116
|
+
- **Tokens are persisted as plaintext JSON.** Never log tokens or weaken the allow-list that decides which hosts receive a bearer token.
|
|
117
|
+
- **Exported names, event names and config keys are public.** 49 workspace packages declare a dependency on this package; removing or renaming one is a breaking change.
|
|
118
|
+
- **Dependent packages resolve this package through `dist`.** Rebuild with `build:src` before trusting a dependent package's tests.
|
|
119
|
+
|
|
120
|
+
## 4. Testing Workflow
|
|
121
|
+
|
|
122
|
+
Run checks in this order:
|
|
123
|
+
|
|
124
|
+
1. `yarn workspace @webex/webex-core test:unit`
|
|
125
|
+
2. `yarn workspace @webex/webex-core test:style`
|
|
126
|
+
3. `yarn workspace @webex/webex-core test:integration` (requires provisioned test users and live services)
|
|
127
|
+
|
|
128
|
+
Testing rules:
|
|
129
|
+
|
|
130
|
+
- Add or update tests for every behavior change.
|
|
131
|
+
- Cover failure paths and edge cases, not only happy paths.
|
|
132
|
+
- Do not remove tests to make CI pass.
|
|
133
|
+
- Use sinon for stubs, `assert` from `@webex/test-helper-chai`, and fake timers for time-dependent code.
|
|
134
|
+
|
|
135
|
+
This package defines no coverage threshold; the repository owner confirmed there is no coverage gate
|
|
136
|
+
for it. Do not infer one from a platform or CI default.
|
|
137
|
+
|
|
138
|
+
## 5. Code Style and Patterns
|
|
139
|
+
|
|
140
|
+
Coding expectations:
|
|
141
|
+
|
|
142
|
+
- Follow repository style rules and static analysis output.
|
|
143
|
+
- Prefer small, composable functions over large procedural blocks.
|
|
144
|
+
- Make error handling explicit at system boundaries.
|
|
145
|
+
- Keep public interfaces stable unless a breaking change is requested.
|
|
146
|
+
- Before adding a literal path, filename, command, workflow identifier, status,
|
|
147
|
+
or other policy value, search the repository for exact and semantically
|
|
148
|
+
equivalent uses. When repeated production values represent one shared
|
|
149
|
+
contract, move them to the narrowest owning shared module or catalog as one
|
|
150
|
+
canonical named constant, enum, or type and update consumers. Keep incidental
|
|
151
|
+
similarities, one-off implementation details, and independent test fixtures
|
|
152
|
+
local.
|
|
153
|
+
- Do not import a default, named, object, or namespace binding and immediately
|
|
154
|
+
re-export it. Consumers should import from the owning module; package barrels
|
|
155
|
+
should use direct named re-exports.
|
|
156
|
+
- Do not write inline runtime `typeof` checks outside descriptively named guard
|
|
157
|
+
implementations. Import and reuse the owning guard instead; TypeScript
|
|
158
|
+
type-position `typeof` queries remain allowed.
|
|
159
|
+
|
|
160
|
+
Pattern example:
|
|
161
|
+
|
|
162
|
+
```text
|
|
163
|
+
Preferred:
|
|
164
|
+
- Validate external input close to the boundary.
|
|
165
|
+
- Return typed/structured results.
|
|
166
|
+
- Include actionable error messages.
|
|
167
|
+
|
|
168
|
+
Avoid:
|
|
169
|
+
- Passing unvalidated payloads deep into the system.
|
|
170
|
+
- Swallowing exceptions or returning ambiguous null values.
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
## 6. Git Workflow
|
|
174
|
+
|
|
175
|
+
- Branch naming: no repository-enforced rule was found; use a short descriptive prefix such as `feature/`, `fix/` or `chore/`
|
|
176
|
+
- Commit format: conventional commits (`feat:`, `fix:`, `docs:`, `refactor:`, `test:`, `chore:`)
|
|
177
|
+
- Keep commits focused and reversible.
|
|
178
|
+
- Rebase on the target branch before opening PR.
|
|
179
|
+
|
|
180
|
+
PR checklist:
|
|
181
|
+
|
|
182
|
+
- What changed and why.
|
|
183
|
+
- Tests run and results.
|
|
184
|
+
- Risk/impact areas.
|
|
185
|
+
- Rollback approach.
|
|
186
|
+
|
|
187
|
+
## 7. Boundaries and Escalation
|
|
188
|
+
|
|
189
|
+
### Always
|
|
190
|
+
|
|
191
|
+
- Prefer existing patterns over introducing new architecture.
|
|
192
|
+
- Keep changes minimal for the requested scope.
|
|
193
|
+
- Call out assumptions and unknowns explicitly.
|
|
194
|
+
|
|
195
|
+
### Ask First
|
|
196
|
+
|
|
197
|
+
- Adding new dependencies or external services.
|
|
198
|
+
- Large refactors or schema migrations.
|
|
199
|
+
- Security-sensitive changes (auth, token handling, persistence, allowed-domain logic).
|
|
200
|
+
- Any change to exported names, event names, config keys or the interceptor order.
|
|
201
|
+
- Any destructive data or infrastructure operation.
|
|
202
|
+
|
|
203
|
+
### Never
|
|
204
|
+
|
|
205
|
+
- Commit secrets, keys, or credentials.
|
|
206
|
+
- Bypass required checks by disabling tests or linters.
|
|
207
|
+
- Rewrite history on shared branches.
|
|
208
|
+
- Change unrelated files "while here" without clear need.
|
|
209
|
+
- Edit `.sdd/templates/repo-standards` or `dist` by hand.
|
package/dist/config.js
CHANGED
|
@@ -22,6 +22,13 @@ var _default = exports.default = {
|
|
|
22
22
|
trackingIdSuffix: '',
|
|
23
23
|
AlternateLogger: undefined,
|
|
24
24
|
credentials: new _credentialsConfig.default(),
|
|
25
|
+
/**
|
|
26
|
+
* Explicitly selects the Webex environment. When omitted, the environment is inferred from the
|
|
27
|
+
* U2C discovery URL.
|
|
28
|
+
*
|
|
29
|
+
* @type {'integration'|'production'|undefined}
|
|
30
|
+
*/
|
|
31
|
+
environment: undefined,
|
|
25
32
|
fedramp: process.env.ENABLE_FEDRAMP || false,
|
|
26
33
|
services: {
|
|
27
34
|
/**
|
|
@@ -37,6 +44,15 @@ var _default = exports.default = {
|
|
|
37
44
|
* @type {boolean}
|
|
38
45
|
*/
|
|
39
46
|
useCatalogOverride: false,
|
|
47
|
+
/**
|
|
48
|
+
* When true, skips fetching the preauth catalog during initialization
|
|
49
|
+
* while the user is unauthenticated (no existing token). The catalog is
|
|
50
|
+
* expected to be collected manually later instead. When false (default),
|
|
51
|
+
* the preauth catalog is collected automatically during init.
|
|
52
|
+
*
|
|
53
|
+
* @type {boolean}
|
|
54
|
+
*/
|
|
55
|
+
skipPreauthCatalogOnUnauthenticated: false,
|
|
40
56
|
/**
|
|
41
57
|
* Maximum time (in milliseconds) to wait for the initial service catalog
|
|
42
58
|
* collection when `waitForCatalogInit` is enabled, before letting
|
|
@@ -75,6 +91,15 @@ var _default = exports.default = {
|
|
|
75
91
|
* @type {boolean}
|
|
76
92
|
*/
|
|
77
93
|
validateDomains: true,
|
|
94
|
+
/**
|
|
95
|
+
* When true, enables the CatalogUrlInterceptor which validates that all
|
|
96
|
+
* outbound request URLs are in the service catalog or allowed domains.
|
|
97
|
+
* This prevents SSRF attacks where attacker-controlled URLs could be
|
|
98
|
+
* sent to the SDK.
|
|
99
|
+
*
|
|
100
|
+
* @type {boolean}
|
|
101
|
+
*/
|
|
102
|
+
validateCatalogUrls: false,
|
|
78
103
|
/**
|
|
79
104
|
* services that don't need auth validation
|
|
80
105
|
*/
|
|
@@ -105,6 +130,11 @@ var _default = exports.default = {
|
|
|
105
130
|
cacheU2C: false
|
|
106
131
|
},
|
|
107
132
|
payloadTransformer: {
|
|
133
|
+
/**
|
|
134
|
+
* When true, inbound payload transforms run at most once for the same successful response object.
|
|
135
|
+
* This supports request flows that pass a response through more than one interceptor pipeline.
|
|
136
|
+
*/
|
|
137
|
+
skipRepeatedInboundTransforms: false,
|
|
108
138
|
predicates: [],
|
|
109
139
|
transforms: []
|
|
110
140
|
},
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_storage","require","_credentialsConfig","_interopRequireDefault","_default","exports","default","maxAppLevelRedirects","maxLocusRedirects","maxAuthenticationReplays","maxReconnectAttempts","onBeforeLogout","trackingIdPrefix","trackingIdSuffix","AlternateLogger","undefined","credentials","CredentialsConfig","fedramp","process","env","ENABLE_FEDRAMP","services","useUserOnboardingServiceForActivations","useCatalogOverride","catalogInitTimeout","discovery","hydra","HYDRA_SERVICE_URL","sqdiscovery","SQDISCOVERY_SERVICE_URL","u2c","U2C_SERVICE_URL","validateDomains","servicesNotNeedValidation","allowedDomains","device","preDiscoveryServices","hydraServiceUrl","metrics","type","calling","cacheU2C","payloadTransformer","predicates","transforms","storage","boundedAdapter","MemoryStoreAdapter","unboundedAdapter"],"sources":["config.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* eslint camelcase: [0] */\n\nimport {MemoryStoreAdapter} from './lib/storage';\nimport CredentialsConfig from './credentials-config';\n\nexport default {\n maxAppLevelRedirects: 10,\n maxLocusRedirects: 5,\n maxAuthenticationReplays: 1,\n maxReconnectAttempts: 1,\n onBeforeLogout: [],\n trackingIdPrefix: 'webex-js-sdk',\n trackingIdSuffix: '',\n AlternateLogger: undefined,\n credentials: new CredentialsConfig(),\n fedramp: process.env.ENABLE_FEDRAMP || false,\n services: {\n /**\n * When true, uses the user-onboarding service for user activation.\n * When false (default), uses the license service.\n *\n * @type {boolean}\n */\n useUserOnboardingServiceForActivations: false,\n\n /**\n * When true, requests the U2C catalog override.\n *\n * @type {boolean}\n */\n useCatalogOverride: false,\n\n /**\n * Maximum time (in milliseconds) to wait for the initial service catalog\n * collection when `waitForCatalogInit` is enabled, before letting\n * `services.ready` (and therefore `webex.ready`) fire anyway. Prevents a\n * hung catalog request from leaving the app on a permanent spinner.\n *\n * @type {number}\n */\n catalogInitTimeout: 15000,\n\n /**\n * A list of services that are available prior to catalog collection.\n *\n * @type {Object}\n */\n discovery: {\n /**\n * The hydra discovery url.\n *\n * @type {string}\n */\n hydra: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',\n\n /**\n * load balanced region info url\n */\n sqdiscovery: process.env.SQDISCOVERY_SERVICE_URL || 'https://ds.ciscospark.com/v1/region',\n\n /**\n * The u2c discovery url\n *\n * @type {string}\n */\n u2c: process.env.U2C_SERVICE_URL || 'https://u2c.wbx2.com/u2c/api/v1',\n },\n\n /**\n * When true, considers all urls in `allowedDomains` as safe for auth tokens\n *\n * @type {boolean}\n */\n validateDomains: true,\n\n /**\n * services that don't need auth validation\n */\n\n servicesNotNeedValidation: ['webex-appapi-service'],\n\n /**\n * Contains a list of allowed domain host addresses.\n *\n * @type {Array<string>}\n */\n allowedDomains: [],\n },\n device: {\n preDiscoveryServices: {\n hydra: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',\n hydraServiceUrl: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',\n },\n validateDomains: true,\n },\n metrics: {\n type: ['behavioral', 'operational'],\n },\n calling: {\n /**\n * Controls whether U2C service catalogs should be cached and warmed from cache.\n * When false, the services layer will skip reading and writing the U2C cache.\n */\n cacheU2C: false,\n },\n payloadTransformer: {\n predicates: [],\n transforms: [],\n },\n storage: {\n boundedAdapter: MemoryStoreAdapter,\n unboundedAdapter: MemoryStoreAdapter,\n },\n};\n"],"mappings":";;;;;;;;AAMA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAPA;AACA;AACA;AAEA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAKe;EACbC,oBAAoB,EAAE,EAAE;EACxBC,iBAAiB,EAAE,CAAC;EACpBC,wBAAwB,EAAE,CAAC;EAC3BC,oBAAoB,EAAE,CAAC;EACvBC,cAAc,EAAE,EAAE;EAClBC,gBAAgB,EAAE,cAAc;EAChCC,gBAAgB,EAAE,EAAE;EACpBC,eAAe,EAAEC,SAAS;EAC1BC,WAAW,EAAE,IAAIC,0BAAiB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"names":["_storage","require","_credentialsConfig","_interopRequireDefault","_default","exports","default","maxAppLevelRedirects","maxLocusRedirects","maxAuthenticationReplays","maxReconnectAttempts","onBeforeLogout","trackingIdPrefix","trackingIdSuffix","AlternateLogger","undefined","credentials","CredentialsConfig","environment","fedramp","process","env","ENABLE_FEDRAMP","services","useUserOnboardingServiceForActivations","useCatalogOverride","skipPreauthCatalogOnUnauthenticated","catalogInitTimeout","discovery","hydra","HYDRA_SERVICE_URL","sqdiscovery","SQDISCOVERY_SERVICE_URL","u2c","U2C_SERVICE_URL","validateDomains","validateCatalogUrls","servicesNotNeedValidation","allowedDomains","device","preDiscoveryServices","hydraServiceUrl","metrics","type","calling","cacheU2C","payloadTransformer","skipRepeatedInboundTransforms","predicates","transforms","storage","boundedAdapter","MemoryStoreAdapter","unboundedAdapter"],"sources":["config.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* eslint camelcase: [0] */\n\nimport {MemoryStoreAdapter} from './lib/storage';\nimport CredentialsConfig from './credentials-config';\n\nexport default {\n maxAppLevelRedirects: 10,\n maxLocusRedirects: 5,\n maxAuthenticationReplays: 1,\n maxReconnectAttempts: 1,\n onBeforeLogout: [],\n trackingIdPrefix: 'webex-js-sdk',\n trackingIdSuffix: '',\n AlternateLogger: undefined,\n credentials: new CredentialsConfig(),\n /**\n * Explicitly selects the Webex environment. When omitted, the environment is inferred from the\n * U2C discovery URL.\n *\n * @type {'integration'|'production'|undefined}\n */\n environment: undefined,\n fedramp: process.env.ENABLE_FEDRAMP || false,\n services: {\n /**\n * When true, uses the user-onboarding service for user activation.\n * When false (default), uses the license service.\n *\n * @type {boolean}\n */\n useUserOnboardingServiceForActivations: false,\n\n /**\n * When true, requests the U2C catalog override.\n *\n * @type {boolean}\n */\n useCatalogOverride: false,\n\n /**\n * When true, skips fetching the preauth catalog during initialization\n * while the user is unauthenticated (no existing token). The catalog is\n * expected to be collected manually later instead. When false (default),\n * the preauth catalog is collected automatically during init.\n *\n * @type {boolean}\n */\n skipPreauthCatalogOnUnauthenticated: false,\n\n /**\n * Maximum time (in milliseconds) to wait for the initial service catalog\n * collection when `waitForCatalogInit` is enabled, before letting\n * `services.ready` (and therefore `webex.ready`) fire anyway. Prevents a\n * hung catalog request from leaving the app on a permanent spinner.\n *\n * @type {number}\n */\n catalogInitTimeout: 15000,\n\n /**\n * A list of services that are available prior to catalog collection.\n *\n * @type {Object}\n */\n discovery: {\n /**\n * The hydra discovery url.\n *\n * @type {string}\n */\n hydra: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',\n\n /**\n * load balanced region info url\n */\n sqdiscovery: process.env.SQDISCOVERY_SERVICE_URL || 'https://ds.ciscospark.com/v1/region',\n\n /**\n * The u2c discovery url\n *\n * @type {string}\n */\n u2c: process.env.U2C_SERVICE_URL || 'https://u2c.wbx2.com/u2c/api/v1',\n },\n\n /**\n * When true, considers all urls in `allowedDomains` as safe for auth tokens\n *\n * @type {boolean}\n */\n validateDomains: true,\n\n /**\n * When true, enables the CatalogUrlInterceptor which validates that all\n * outbound request URLs are in the service catalog or allowed domains.\n * This prevents SSRF attacks where attacker-controlled URLs could be\n * sent to the SDK.\n *\n * @type {boolean}\n */\n validateCatalogUrls: false,\n\n /**\n * services that don't need auth validation\n */\n\n servicesNotNeedValidation: ['webex-appapi-service'],\n\n /**\n * Contains a list of allowed domain host addresses.\n *\n * @type {Array<string>}\n */\n allowedDomains: [],\n },\n device: {\n preDiscoveryServices: {\n hydra: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',\n hydraServiceUrl: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',\n },\n validateDomains: true,\n },\n metrics: {\n type: ['behavioral', 'operational'],\n },\n calling: {\n /**\n * Controls whether U2C service catalogs should be cached and warmed from cache.\n * When false, the services layer will skip reading and writing the U2C cache.\n */\n cacheU2C: false,\n },\n payloadTransformer: {\n /**\n * When true, inbound payload transforms run at most once for the same successful response object.\n * This supports request flows that pass a response through more than one interceptor pipeline.\n */\n skipRepeatedInboundTransforms: false,\n predicates: [],\n transforms: [],\n },\n storage: {\n boundedAdapter: MemoryStoreAdapter,\n unboundedAdapter: MemoryStoreAdapter,\n },\n};\n"],"mappings":";;;;;;;;AAMA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAPA;AACA;AACA;AAEA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAKe;EACbC,oBAAoB,EAAE,EAAE;EACxBC,iBAAiB,EAAE,CAAC;EACpBC,wBAAwB,EAAE,CAAC;EAC3BC,oBAAoB,EAAE,CAAC;EACvBC,cAAc,EAAE,EAAE;EAClBC,gBAAgB,EAAE,cAAc;EAChCC,gBAAgB,EAA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AO,EAAE;IACPC,IAAI,EAAE,CAAC,YAAY,EAAE,aAAa;EACpC,CAAC;EACDC,OAAO,EAAE;IACP;AACJ;AACA;AACA;IACIC,QAAQ,EAAE;EACZ,CAAC;EACDC,kBAAkB,EAAE;IAClB;AACJ;AACA;AACA;IACIC,6BAA6B,EAAE,KAAK;IACpCC,UAAU,EAAE,EAAE;IACdC,UAAU,EAAE;EACd,CAAC;EACDC,OAAO,EAAE;IACPC,cAAc,EAAEC,2BAAkB;IAClCC,gBAAgB,EAAED;EACpB;AACF,CAAC","ignoreList":[]}
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,12 @@ _Object$defineProperty(exports, "Batcher", {
|
|
|
20
20
|
return _batcher.default;
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
+
_Object$defineProperty(exports, "CatalogUrlInterceptor", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function get() {
|
|
26
|
+
return _catalogUrl.default;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
23
29
|
_Object$defineProperty(exports, "Credentials", {
|
|
24
30
|
enumerable: true,
|
|
25
31
|
get: function get() {
|
|
@@ -188,6 +194,12 @@ _Object$defineProperty(exports, "StatelessWebexPlugin", {
|
|
|
188
194
|
return _statelessWebexPlugin.default;
|
|
189
195
|
}
|
|
190
196
|
});
|
|
197
|
+
_Object$defineProperty(exports, "StaticAssetLoader", {
|
|
198
|
+
enumerable: true,
|
|
199
|
+
get: function get() {
|
|
200
|
+
return _staticAssetLoader.default;
|
|
201
|
+
}
|
|
202
|
+
});
|
|
191
203
|
_Object$defineProperty(exports, "StorageError", {
|
|
192
204
|
enumerable: true,
|
|
193
205
|
get: function get() {
|
|
@@ -314,7 +326,9 @@ var _webexCore = _interopRequireWildcard(require("./webex-core"));
|
|
|
314
326
|
var _webexHttpError = _interopRequireDefault(require("./lib/webex-http-error"));
|
|
315
327
|
var _statelessWebexPlugin = _interopRequireDefault(require("./lib/stateless-webex-plugin"));
|
|
316
328
|
var _webexPlugin = _interopRequireDefault(require("./lib/webex-plugin"));
|
|
329
|
+
var _staticAssetLoader = _interopRequireDefault(require("./lib/static-asset-loader"));
|
|
317
330
|
var _auth = _interopRequireDefault(require("./interceptors/auth"));
|
|
331
|
+
var _catalogUrl = _interopRequireDefault(require("./interceptors/catalog-url"));
|
|
318
332
|
var _networkTiming = _interopRequireDefault(require("./interceptors/network-timing"));
|
|
319
333
|
var _payloadTransformer = _interopRequireDefault(require("./interceptors/payload-transformer"));
|
|
320
334
|
var _redirect = _interopRequireDefault(require("./interceptors/redirect"));
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["require","_credentials","_services","_servicesV","_serviceConstants","_interopRequireWildcard","exports","serviceConstants","_storage","_webexCore","_webexHttpError","_interopRequireDefault","_statelessWebexPlugin","_webexPlugin","_auth","_networkTiming","_payloadTransformer","_redirect","_responseLogger","_requestEvent","_requestLogger","_requestTiming","_userAgent","_proxy","_webexTrackingId","_webexUserAgent","_rateLimit","_embargo","_defaultOptions","_hostmap","_service","_serverError","_batcher","_page","_config","e","t","_WeakMap","r","n","__esModule","o","i","f","__proto__","default","_typeof","has","get","set","_t","hasOwnProperty","call","_Object$defineProperty","_Object$getOwnPropertyDescriptor"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n *\n * Services is currently a part of webex-core due to how the contents of\n * the original internal-plugin-services needed to be accessed when webex-core\n * is initialized. As a plugin outside of webex-core, it would initialize after\n * credentials, causing all requests prior to its initialization to fail\n * federation requirements, and instead send requests to the environmentally-\n * assigned urls.\n */\n\nimport './plugins/logger';\nimport './lib/credentials';\nimport './lib/services';\n\nexport {Credentials, filterScope, grantErrors, sortScope, Token} from './lib/credentials';\n\nexport {\n ServiceCatalog,\n ServiceRegistry,\n ServiceState,\n Services,\n ServiceHost,\n ServiceUrl,\n} from './lib/services';\n\nexport {ServiceCatalogV2, ServicesV2, ServiceDetail} from './lib/services-v2';\nexport * as serviceConstants from './lib/constants';\nexport {\n makeWebexStore,\n makeWebexPluginStore,\n MemoryStoreAdapter,\n NotFoundError,\n persist,\n StorageError,\n waitForValue,\n} from './lib/storage';\n\nexport {default, registerPlugin, registerInternalPlugin} from './webex-core';\n\nexport {default as WebexHttpError} from './lib/webex-http-error';\nexport {default as StatelessWebexPlugin} from './lib/stateless-webex-plugin';\nexport {default as WebexPlugin} from './lib/webex-plugin';\nexport {default as AuthInterceptor} from './interceptors/auth';\nexport {default as NetworkTimingInterceptor} from './interceptors/network-timing';\nexport {default as PayloadTransformerInterceptor} from './interceptors/payload-transformer';\nexport {default as RedirectInterceptor} from './interceptors/redirect';\nexport {default as ResponseLoggerInterceptor} from './interceptors/response-logger';\nexport {default as RequestEventInterceptor} from './interceptors/request-event';\nexport {default as RequestLoggerInterceptor} from './interceptors/request-logger';\nexport {default as RequestTimingInterceptor} from './interceptors/request-timing';\nexport {default as UserAgentInterceptor} from './interceptors/user-agent';\nexport {default as ProxyInterceptor} from './interceptors/proxy';\nexport {default as WebexTrackingIdInterceptor} from './interceptors/webex-tracking-id';\nexport {sequenceNumbers as webexTrackingIdSequenceNumbers} from './interceptors/webex-tracking-id';\nexport {default as WebexUserAgentInterceptor} from './interceptors/webex-user-agent';\nexport {default as RateLimitInterceptor} from './interceptors/rate-limit';\nexport {default as EmbargoInterceptor} from './interceptors/embargo';\nexport {default as DefaultOptionsInterceptor} from './interceptors/default-options';\nexport {default as HostMapInterceptor} from './lib/interceptors/hostmap';\nexport {default as ServiceInterceptor} from './lib/interceptors/service';\nexport {default as ServerErrorInterceptor} from './lib/interceptors/server-error';\n\nexport {default as Batcher} from './lib/batcher';\nexport {default as Page} from './lib/page';\nexport {default as config} from './config';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["require","_credentials","_services","_servicesV","_serviceConstants","_interopRequireWildcard","exports","serviceConstants","_storage","_webexCore","_webexHttpError","_interopRequireDefault","_statelessWebexPlugin","_webexPlugin","_staticAssetLoader","_auth","_catalogUrl","_networkTiming","_payloadTransformer","_redirect","_responseLogger","_requestEvent","_requestLogger","_requestTiming","_userAgent","_proxy","_webexTrackingId","_webexUserAgent","_rateLimit","_embargo","_defaultOptions","_hostmap","_service","_serverError","_batcher","_page","_config","e","t","_WeakMap","r","n","__esModule","o","i","f","__proto__","default","_typeof","has","get","set","_t","hasOwnProperty","call","_Object$defineProperty","_Object$getOwnPropertyDescriptor"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n *\n * Services is currently a part of webex-core due to how the contents of\n * the original internal-plugin-services needed to be accessed when webex-core\n * is initialized. As a plugin outside of webex-core, it would initialize after\n * credentials, causing all requests prior to its initialization to fail\n * federation requirements, and instead send requests to the environmentally-\n * assigned urls.\n */\n\nimport './plugins/logger';\nimport './lib/credentials';\nimport './lib/services';\n\nexport {Credentials, filterScope, grantErrors, sortScope, Token} from './lib/credentials';\n\nexport {\n ServiceCatalog,\n ServiceRegistry,\n ServiceState,\n Services,\n ServiceHost,\n ServiceUrl,\n} from './lib/services';\n\nexport {ServiceCatalogV2, ServicesV2, ServiceDetail} from './lib/services-v2';\nexport * as serviceConstants from './lib/constants';\nexport {\n makeWebexStore,\n makeWebexPluginStore,\n MemoryStoreAdapter,\n NotFoundError,\n persist,\n StorageError,\n waitForValue,\n} from './lib/storage';\n\nexport {default, registerPlugin, registerInternalPlugin} from './webex-core';\n\nexport {default as WebexHttpError} from './lib/webex-http-error';\nexport {default as StatelessWebexPlugin} from './lib/stateless-webex-plugin';\nexport {default as WebexPlugin} from './lib/webex-plugin';\nexport {default as StaticAssetLoader} from './lib/static-asset-loader';\nexport {default as AuthInterceptor} from './interceptors/auth';\nexport {default as CatalogUrlInterceptor} from './interceptors/catalog-url';\nexport {default as NetworkTimingInterceptor} from './interceptors/network-timing';\nexport {default as PayloadTransformerInterceptor} from './interceptors/payload-transformer';\nexport {default as RedirectInterceptor} from './interceptors/redirect';\nexport {default as ResponseLoggerInterceptor} from './interceptors/response-logger';\nexport {default as RequestEventInterceptor} from './interceptors/request-event';\nexport {default as RequestLoggerInterceptor} from './interceptors/request-logger';\nexport {default as RequestTimingInterceptor} from './interceptors/request-timing';\nexport {default as UserAgentInterceptor} from './interceptors/user-agent';\nexport {default as ProxyInterceptor} from './interceptors/proxy';\nexport {default as WebexTrackingIdInterceptor} from './interceptors/webex-tracking-id';\nexport {sequenceNumbers as webexTrackingIdSequenceNumbers} from './interceptors/webex-tracking-id';\nexport {default as WebexUserAgentInterceptor} from './interceptors/webex-user-agent';\nexport {default as RateLimitInterceptor} from './interceptors/rate-limit';\nexport {default as EmbargoInterceptor} from './interceptors/embargo';\nexport {default as DefaultOptionsInterceptor} from './interceptors/default-options';\nexport {default as HostMapInterceptor} from './lib/interceptors/hostmap';\nexport {default as ServiceInterceptor} from './lib/interceptors/service';\nexport {default as ServerErrorInterceptor} from './lib/interceptors/server-error';\n\nexport {default as Batcher} from './lib/batcher';\nexport {default as Page} from './lib/page';\nexport {default as config} from './config';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWAA,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAaA,IAAAG,UAAA,GAAAH,OAAA;AAA8E,IAAAI,iBAAA,GAAAC,uBAAA,CAAAL,OAAA;AAAAM,OAAA,CAAAC,gBAAA,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A;AACA,IAAAmC,KAAA,GAAAxB,sBAAA,CAAAX,OAAA;AACA,IAAAoC,OAAA,GAAAzB,sBAAA,CAAAX,OAAA;AAA2C,SAAAK,wBAAAgC,CAAA,EAAAC,CAAA,6BAAAC,QAAA,MAAAC,CAAA,OAAAD,QAAA,IAAAE,CAAA,OAAAF,QAAA,YAAAlC,uBAAA,YAAAA,wBAAAgC,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,gBAAAW,OAAA,CAAAX,CAAA,0BAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAM,GAAA,CAAAZ,CAAA,UAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,GAAAM,CAAA,CAAAQ,GAAA,CAAAd,CAAA,EAAAQ,CAAA,cAAAO,EAAA,IAAAf,CAAA,gBAAAe,EAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAe,EAAA,OAAAR,CAAA,IAAAD,CAAA,GAAAY,sBAAA,KAAAC,gCAAA,CAAAnB,CAAA,EAAAe,EAAA,OAAAR,CAAA,CAAAM,GAAA,IAAAN,CAAA,CAAAO,GAAA,IAAAR,CAAA,CAAAE,CAAA,EAAAO,EAAA,EAAAR,CAAA,IAAAC,CAAA,CAAAO,EAAA,IAAAf,CAAA,CAAAe,EAAA,WAAAP,CAAA,KAAAR,CAAA,EAAAC,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Reflect$construct = require("@babel/runtime-corejs2/core-js/reflect/construct");
|
|
4
|
+
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
6
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.default = void 0;
|
|
10
|
+
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
|
|
11
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
12
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
|
13
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
|
|
14
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/getPrototypeOf"));
|
|
15
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
|
|
16
|
+
var _httpCore = require("@webex/http-core");
|
|
17
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
18
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /*!
|
|
19
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Validates that request URLs are in the service catalog.
|
|
23
|
+
* Prevents SSRF attacks by blocking requests to unknown hosts.
|
|
24
|
+
* @class
|
|
25
|
+
*/
|
|
26
|
+
var CatalogUrlInterceptor = exports.default = /*#__PURE__*/function (_Interceptor) {
|
|
27
|
+
function CatalogUrlInterceptor() {
|
|
28
|
+
(0, _classCallCheck2.default)(this, CatalogUrlInterceptor);
|
|
29
|
+
return _callSuper(this, CatalogUrlInterceptor, arguments);
|
|
30
|
+
}
|
|
31
|
+
(0, _inherits2.default)(CatalogUrlInterceptor, _Interceptor);
|
|
32
|
+
return (0, _createClass2.default)(CatalogUrlInterceptor, [{
|
|
33
|
+
key: "onRequest",
|
|
34
|
+
value:
|
|
35
|
+
/**
|
|
36
|
+
* @see {@link Interceptor#onRequest}
|
|
37
|
+
* @param {Object} options
|
|
38
|
+
* @returns {Object}
|
|
39
|
+
*/
|
|
40
|
+
function onRequest(options) {
|
|
41
|
+
var _this$webex$internal;
|
|
42
|
+
if (options.service && !options.uri && !options.url) {
|
|
43
|
+
return _promise.default.resolve(options);
|
|
44
|
+
}
|
|
45
|
+
var url = options.uri || options.url;
|
|
46
|
+
|
|
47
|
+
// No URL to validate
|
|
48
|
+
if (!url) {
|
|
49
|
+
return _promise.default.resolve(options);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Check if services plugin is available
|
|
53
|
+
if (!((_this$webex$internal = this.webex.internal) !== null && _this$webex$internal !== void 0 && _this$webex$internal.services)) {
|
|
54
|
+
var _this$webex$logger, _this$webex$logger$wa;
|
|
55
|
+
// Services not loaded yet - allow but log
|
|
56
|
+
(_this$webex$logger = this.webex.logger) === null || _this$webex$logger === void 0 ? void 0 : (_this$webex$logger$wa = _this$webex$logger.warn) === null || _this$webex$logger$wa === void 0 ? void 0 : _this$webex$logger$wa.call(_this$webex$logger, "catalog-url: Cannot validate URL (services not loaded): ".concat(url));
|
|
57
|
+
return _promise.default.resolve(options);
|
|
58
|
+
}
|
|
59
|
+
var services = this.webex.internal.services;
|
|
60
|
+
|
|
61
|
+
// Check if URL is in service catalog
|
|
62
|
+
if (services.getServiceFromUrl(url)) {
|
|
63
|
+
return _promise.default.resolve(options);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Honor allowedDomains (same policy as auth interceptor)
|
|
67
|
+
if (services.validateDomains && services.hasAllowedDomains() && services.isAllowedDomainUrl(url)) {
|
|
68
|
+
return _promise.default.resolve(options);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// URL not in catalog or allowed domains - block the request
|
|
72
|
+
return _promise.default.reject(new Error("Request blocked: URL not in service catalog or allowed domains: ".concat(url, ".")));
|
|
73
|
+
}
|
|
74
|
+
}], [{
|
|
75
|
+
key: "create",
|
|
76
|
+
value:
|
|
77
|
+
/**
|
|
78
|
+
* @returns {CatalogUrlInterceptor}
|
|
79
|
+
*/
|
|
80
|
+
function create() {
|
|
81
|
+
return new CatalogUrlInterceptor({
|
|
82
|
+
webex: this
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}]);
|
|
86
|
+
}(_httpCore.Interceptor);
|
|
87
|
+
//# sourceMappingURL=catalog-url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_httpCore","require","_callSuper","t","o","e","_getPrototypeOf2","default","_possibleConstructorReturn2","_isNativeReflectConstruct","_Reflect$construct","constructor","apply","Boolean","prototype","valueOf","call","CatalogUrlInterceptor","exports","_Interceptor","_classCallCheck2","arguments","_inherits2","_createClass2","key","value","onRequest","options","_this$webex$internal","service","uri","url","_promise","resolve","webex","internal","services","_this$webex$logger","_this$webex$logger$wa","logger","warn","concat","getServiceFromUrl","validateDomains","hasAllowedDomains","isAllowedDomainUrl","reject","Error","create","Interceptor"],"sources":["catalog-url.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {Interceptor} from '@webex/http-core';\n\n/**\n * Validates that request URLs are in the service catalog.\n * Prevents SSRF attacks by blocking requests to unknown hosts.\n * @class\n */\nexport default class CatalogUrlInterceptor extends Interceptor {\n /**\n * @returns {CatalogUrlInterceptor}\n */\n static create() {\n return new CatalogUrlInterceptor({webex: this});\n }\n\n /**\n * @see {@link Interceptor#onRequest}\n * @param {Object} options\n * @returns {Object}\n */\n onRequest(options) {\n if (options.service && !options.uri && !options.url) {\n return Promise.resolve(options);\n }\n\n const url = options.uri || options.url;\n\n // No URL to validate\n if (!url) {\n return Promise.resolve(options);\n }\n\n // Check if services plugin is available\n if (!this.webex.internal?.services) {\n // Services not loaded yet - allow but log\n this.webex.logger?.warn?.(`catalog-url: Cannot validate URL (services not loaded): ${url}`);\n\n return Promise.resolve(options);\n }\n\n const {services} = this.webex.internal;\n\n // Check if URL is in service catalog\n if (services.getServiceFromUrl(url)) {\n return Promise.resolve(options);\n }\n\n // Honor allowedDomains (same policy as auth interceptor)\n if (\n services.validateDomains &&\n services.hasAllowedDomains() &&\n services.isAllowedDomainUrl(url)\n ) {\n return Promise.resolve(options);\n }\n\n // URL not in catalog or allowed domains - block the request\n return Promise.reject(\n new Error(`Request blocked: URL not in service catalog or allowed domains: ${url}.`)\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAIA,IAAAA,SAAA,GAAAC,OAAA;AAA6C,SAAAC,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,CAAAC,OAAA,EAAAH,CAAA,OAAAI,2BAAA,CAAAD,OAAA,EAAAJ,CAAA,EAAAM,yBAAA,KAAAC,kBAAA,CAAAN,CAAA,EAAAC,CAAA,YAAAC,gBAAA,CAAAC,OAAA,EAAAJ,CAAA,EAAAQ,WAAA,IAAAP,CAAA,CAAAQ,KAAA,CAAAT,CAAA,EAAAE,CAAA;AAAA,SAAAI,0BAAA,cAAAN,CAAA,IAAAU,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAN,kBAAA,CAAAG,OAAA,iCAAAV,CAAA,aAAAM,yBAAA,YAAAA,0BAAA,aAAAN,CAAA,UAJ7C;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AAJA,IAKqBc,qBAAqB,GAAAC,OAAA,CAAAX,OAAA,0BAAAY,YAAA;EAAA,SAAAF,sBAAA;IAAA,IAAAG,gBAAA,CAAAb,OAAA,QAAAU,qBAAA;IAAA,OAAAf,UAA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0B,OAAO,CAACN,OAAO,CAAC;MACjC;;MAEA;MACA,IACES,QAAQ,CAACO,eAAe,IACxBP,QAAQ,CAACQ,iBAAiB,CAAC,CAAC,IAC5BR,QAAQ,CAACS,kBAAkB,CAACd,GAAG,CAAC,EAChC;QACA,OAAOC,QAAA,CAAAzB,OAAA,CAAQ0B,OAAO,CAACN,OAAO,CAAC;MACjC;;MAEA;MACA,OAAOK,QAAA,CAAAzB,OAAA,CAAQuC,MAAM,CACnB,IAAIC,KAAK,oEAAAN,MAAA,CAAoEV,GAAG,MAAG,CACrF,CAAC;IACH;EAAC;IAAAP,GAAA;IAAAC,KAAA;IApDD;AACF;AACA;IACE,SAAOuB,MAAMA,CAAA,EAAG;MACd,OAAO,IAAI/B,qBAAqB,CAAC;QAACiB,KAAK,EAAE;MAAI,CAAC,CAAC;IACjD;EAAC;AAAA,EANgDe,qBAAW","ignoreList":[]}
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Reflect$construct = require("@babel/runtime-corejs2/core-js/reflect/construct");
|
|
4
|
-
var _Object$
|
|
4
|
+
var _Object$defineProperty2 = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
5
5
|
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
6
|
-
_Object$
|
|
6
|
+
_Object$defineProperty2(exports, "__esModule", {
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
9
|
exports.default = void 0;
|
|
10
|
-
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
|
|
11
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
12
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
|
13
12
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
|
|
14
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/getPrototypeOf"));
|
|
15
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
|
|
15
|
+
var _symbol = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/symbol"));
|
|
16
|
+
var _deleteProperty = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/reflect/delete-property"));
|
|
17
|
+
var _defineProperty = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/define-property"));
|
|
18
|
+
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
|
|
16
19
|
var _httpCore = require("@webex/http-core");
|
|
17
20
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
18
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /*!
|
|
19
22
|
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
20
23
|
*/
|
|
24
|
+
var inboundTransformPromise = (0, _symbol.default)('inboundTransformPromise');
|
|
25
|
+
|
|
21
26
|
/**
|
|
22
27
|
* @class
|
|
23
28
|
*/
|
|
@@ -54,7 +59,23 @@ var PayloadTransformerInterceptor = exports.default = /*#__PURE__*/function (_In
|
|
|
54
59
|
if (options.disableTransform) {
|
|
55
60
|
return response;
|
|
56
61
|
}
|
|
57
|
-
|
|
62
|
+
if (!this.webex.config.payloadTransformer.skipRepeatedInboundTransforms) {
|
|
63
|
+
return this.webex.transform('inbound', response);
|
|
64
|
+
}
|
|
65
|
+
if (response[inboundTransformPromise]) {
|
|
66
|
+
return response[inboundTransformPromise];
|
|
67
|
+
}
|
|
68
|
+
var transformPromise = this.webex.transform('inbound', response).catch(function (error) {
|
|
69
|
+
(0, _deleteProperty.default)(response, inboundTransformPromise);
|
|
70
|
+
throw error;
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
// Store the in-flight promise so concurrent interceptor pipelines share the same transform.
|
|
74
|
+
(0, _defineProperty.default)(response, inboundTransformPromise, {
|
|
75
|
+
configurable: true,
|
|
76
|
+
value: transformPromise
|
|
77
|
+
});
|
|
78
|
+
return transformPromise;
|
|
58
79
|
}
|
|
59
80
|
|
|
60
81
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_httpCore","require","_callSuper","t","o","e","_getPrototypeOf2","default","_possibleConstructorReturn2","_isNativeReflectConstruct","_Reflect$construct","constructor","apply","Boolean","prototype","valueOf","call","PayloadTransformerInterceptor","exports","_Interceptor","_classCallCheck2","arguments","_inherits2","_createClass2","key","value","onRequest","options","noTransform","webex","transform","onResponse","response","disableTransform","onResponseError","reason","then","r","_promise","reject","create","Interceptor"],"sources":["payload-transformer.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {Interceptor} from '@webex/http-core';\n\n/**\n * @class\n */\nexport default class PayloadTransformerInterceptor extends Interceptor {\n /**\n * @param {Object} options\n * @returns {PayloadTransformerInterceptor}\n */\n static create() {\n return new PayloadTransformerInterceptor({webex: this});\n }\n\n /**\n * @see Interceptor#onRequest\n * @param {Object} options\n * @returns {Object}\n */\n onRequest(options) {\n if (options.noTransform) {\n return options;\n }\n\n return this.webex.transform('outbound', options);\n }\n\n /**\n * @see Interceptor#onResponse\n * @param {Object} options\n * @param {HttpResponse} response\n * @returns {Object}\n */\n onResponse(options, response) {\n if (options.disableTransform) {\n return response;\n }\n\n return this.webex.transform('inbound', response);\n }\n\n /**\n * @see Interceptor#onResponseError\n * @param {Object} options\n * @param {Error} reason\n * @returns {Object}\n */\n onResponseError(options, reason) {\n return this.webex.transform('inbound', reason).then((r) => Promise.reject(r || reason));\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_httpCore","require","_callSuper","t","o","e","_getPrototypeOf2","default","_possibleConstructorReturn2","_isNativeReflectConstruct","_Reflect$construct","constructor","apply","Boolean","prototype","valueOf","call","inboundTransformPromise","_symbol","PayloadTransformerInterceptor","exports","_Interceptor","_classCallCheck2","arguments","_inherits2","_createClass2","key","value","onRequest","options","noTransform","webex","transform","onResponse","response","disableTransform","config","payloadTransformer","skipRepeatedInboundTransforms","transformPromise","catch","error","_deleteProperty","_defineProperty","configurable","onResponseError","reason","then","r","_promise","reject","create","Interceptor"],"sources":["payload-transformer.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {Interceptor} from '@webex/http-core';\n\nconst inboundTransformPromise = Symbol('inboundTransformPromise');\n\n/**\n * @class\n */\nexport default class PayloadTransformerInterceptor extends Interceptor {\n /**\n * @param {Object} options\n * @returns {PayloadTransformerInterceptor}\n */\n static create() {\n return new PayloadTransformerInterceptor({webex: this});\n }\n\n /**\n * @see Interceptor#onRequest\n * @param {Object} options\n * @returns {Object}\n */\n onRequest(options) {\n if (options.noTransform) {\n return options;\n }\n\n return this.webex.transform('outbound', options);\n }\n\n /**\n * @see Interceptor#onResponse\n * @param {Object} options\n * @param {HttpResponse} response\n * @returns {Object}\n */\n onResponse(options, response) {\n if (options.disableTransform) {\n return response;\n }\n\n if (!this.webex.config.payloadTransformer.skipRepeatedInboundTransforms) {\n return this.webex.transform('inbound', response);\n }\n\n if (response[inboundTransformPromise]) {\n return response[inboundTransformPromise];\n }\n\n const transformPromise = this.webex.transform('inbound', response).catch((error) => {\n Reflect.deleteProperty(response, inboundTransformPromise);\n\n throw error;\n });\n\n // Store the in-flight promise so concurrent interceptor pipelines share the same transform.\n Object.defineProperty(response, inboundTransformPromise, {\n configurable: true,\n value: transformPromise,\n });\n\n return transformPromise;\n }\n\n /**\n * @see Interceptor#onResponseError\n * @param {Object} options\n * @param {Error} reason\n * @returns {Object}\n */\n onResponseError(options, reason) {\n return this.webex.transform('inbound', reason).then((r) => Promise.reject(r || reason));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAIA,IAAAA,SAAA,GAAAC,OAAA;AAA6C,SAAAC,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,CAAAC,OAAA,EAAAH,CAAA,OAAAI,2BAAA,CAAAD,OAAA,EAAAJ,CAAA,EAAAM,yBAAA,KAAAC,kBAAA,CAAAN,CAAA,EAAAC,CAAA,YAAAC,gBAAA,CAAAC,OAAA,EAAAJ,CAAA,EAAAQ,WAAA,IAAAP,CAAA,CAAAQ,KAAA,CAAAT,CAAA,EAAAE,CAAA;AAAA,SAAAI,0BAAA,cAAAN,CAAA,IAAAU,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAN,kBAAA,CAAAG,OAAA,iCAAAV,CAAA,aAAAM,yBAAA,YAAAA,0BAAA,aAAAN,CAAA,UAJ7C;AACA;AACA;AAIA,IAAMc,uBAAuB,GAAG,IAAAC,OAAA,CAAAX,OAAA,EAAO,yBAAyB,CAAC;;AAEjE;AACA;AACA;AAFA,IAGqBY,6BAA6B,GAAAC,OAAA,CAAAb,OAAA,0BAAAc,YAAA;EAAA,SAAAF,8BAAA;IAAA,IAAAG,gBAAA,CAAAf,OAAA,QAAAY,6BAAA;IAAA,OAAAjB,UAAA,OAAAiB,6BAAA,EAAAI,SAAA;EAAA;EAAA,IAAAC,UAAA,CAAAjB,OAAA,EAAAY,6BAAA,EAAAE,YAAA;EAAA,WAAAI,aAAA,CAAAlB,OAAA,EAAAY,6BAAA;IAAAO,GAAA;IAAAC,KAAA;IAShD;AACF;AACA;AACA;AACA;IACE,SAAAC,SAASA,CAACC,OAAO,EAAE;MACjB,IAAIA,OAAO,CAACC,WAAW,EAAE;QACvB,OAAOD,OAAO;MAChB;MAEA,OAAO,IAAI,CAACE,KAAK,CAACC,SA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,GAAA;IAAAC,KAAA;IA/DD;AACF;AACA;AACA;IACE,SAAOwB,MAAMA,CAAA,EAAG;MACd,OAAO,IAAIhC,6BAA6B,CAAC;QAACY,KAAK,EAAE;MAAI,CAAC,CAAC;IACzD;EAAC;AAAA,EAPwDqB,qBAAW","ignoreList":[]}
|
package/dist/lib/batcher.js
CHANGED
|
@@ -302,7 +302,7 @@ var Batcher = _webexPlugin.default.extend({
|
|
|
302
302
|
fingerprintResponse: function fingerprintResponse(item) {
|
|
303
303
|
throw new Error('fingerprintResponse() must be implemented');
|
|
304
304
|
},
|
|
305
|
-
version: "3.
|
|
305
|
+
version: "3.13.0"
|
|
306
306
|
});
|
|
307
307
|
var _default2 = exports.default = Batcher;
|
|
308
308
|
//# sourceMappingURL=batcher.js.map
|