axiam-sdk 1.1.0 → 1.1.2
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/README.md +27 -2
- package/dist/amqp/index.d.cts +3 -2
- package/dist/amqp/index.d.ts +3 -2
- package/dist/{authzCore-BQfX9qxN.d.cts → authzCore-CqXzLNmT.d.cts} +4 -3
- package/dist/{authzCore-BlSHwGnW.d.ts → authzCore-D-hquWSI.d.ts} +4 -3
- package/dist/browser/index.d.cts +8 -7
- package/dist/browser/index.d.ts +8 -7
- package/dist/{client-7ZKtfXW-.d.cts → client-BGFn1VQh.d.cts} +34 -24
- package/dist/{client-Putxo-yi.d.ts → client-DrQZZ1js.d.ts} +34 -24
- package/dist/{cookieJar-Cw6Zdeec.d.ts → cookieJar-BTmpjXZe.d.ts} +9 -3
- package/dist/{cookieJar-DkGcIr-i.d.cts → cookieJar-BqYOnNN-.d.cts} +9 -3
- package/dist/{errors-DMIlw2lN.d.ts → errors-DZ3k8a8i.d.cts} +2 -1
- package/dist/{errors-DMIlw2lN.d.cts → errors-DZ3k8a8i.d.ts} +2 -1
- package/dist/{errors-VpViVRSx.d.ts → errors-RvGlTyUj.d.cts} +3 -2
- package/dist/{errors-CtP_lviy.d.cts → errors-dlGXAsbh.d.ts} +3 -2
- package/dist/grpc/index.d.cts +10 -9
- package/dist/grpc/index.d.ts +10 -9
- package/dist/grpc/index.js +68 -7
- package/dist/grpc/index.js.map +1 -1
- package/dist/grpc/index.mjs +68 -7
- package/dist/grpc/index.mjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +60 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +60 -7
- package/dist/index.mjs.map +1 -1
- package/dist/{jwks-BR55d7-Z.d.cts → jwks-CTVpOWzI.d.cts} +2 -1
- package/dist/{jwks-BR55d7-Z.d.ts → jwks-CTVpOWzI.d.ts} +2 -1
- package/dist/middleware/index.d.cts +13 -12
- package/dist/middleware/index.d.ts +13 -12
- package/dist/middleware/index.js +176 -31
- package/dist/middleware/index.js.map +1 -1
- package/dist/middleware/index.mjs +176 -31
- package/dist/middleware/index.mjs.map +1 -1
- package/dist/nestjs/index.d.cts +5 -4
- package/dist/nestjs/index.d.ts +5 -4
- package/dist/node/index.d.cts +10 -9
- package/dist/node/index.d.ts +10 -9
- package/dist/node/index.js +215 -29
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +215 -29
- package/dist/node/index.mjs.map +1 -1
- package/dist/{oidcState-Cz6erz0g.d.cts → oidcState-BaJ-SM_R.d.cts} +41 -9
- package/dist/{oidcState-zGt6VU6v.d.ts → oidcState-C3VLn3eD.d.ts} +41 -9
- package/dist/rest/index.d.cts +10 -9
- package/dist/rest/index.d.ts +10 -9
- package/dist/rest/index.js +60 -7
- package/dist/rest/index.js.map +1 -1
- package/dist/rest/index.mjs +60 -7
- package/dist/rest/index.mjs.map +1 -1
- package/dist/{revocationFeed-CDoD7Twr.d.cts → revocationFeed-KQhvMMl8.d.cts} +2 -1
- package/dist/{revocationFeed-CDoD7Twr.d.ts → revocationFeed-KQhvMMl8.d.ts} +2 -1
- package/dist/{session-CeG6P9GO.d.ts → session-B03NsqVs.d.ts} +19 -2
- package/dist/{session-BmjEMowX.d.cts → session-plDr4lFu.d.cts} +19 -2
- package/dist/{telemetry--0DwnNjV.d.cts → telemetry-Du0-zS5f.d.cts} +2 -1
- package/dist/{telemetry--0DwnNjV.d.ts → telemetry-Du0-zS5f.d.ts} +2 -1
- package/dist/{webauthnErrors-fLgfOflO.d.cts → webauthnErrors-m1LZiaRy.d.cts} +2 -1
- package/dist/{webauthnErrors-fLgfOflO.d.ts → webauthnErrors-m1LZiaRy.d.ts} +2 -1
- package/package.json +2 -2
|
@@ -56,4 +56,5 @@ declare class RevocationFeed {
|
|
|
56
56
|
refresh(): Promise<void>;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
export { DEFAULT_POLL_INTERVAL_MS as D, MAX_ENTRIES as M, RevocationFeed as R, MIN_POLL_INTERVAL_MS as a
|
|
59
|
+
export { DEFAULT_POLL_INTERVAL_MS as D, MAX_ENTRIES as M, RevocationFeed as R, MIN_POLL_INTERVAL_MS as a };
|
|
60
|
+
export type { RevocationFeedOptions as b };
|
|
@@ -56,4 +56,5 @@ declare class RevocationFeed {
|
|
|
56
56
|
refresh(): Promise<void>;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
export { DEFAULT_POLL_INTERVAL_MS as D, MAX_ENTRIES as M, RevocationFeed as R, MIN_POLL_INTERVAL_MS as a
|
|
59
|
+
export { DEFAULT_POLL_INTERVAL_MS as D, MAX_ENTRIES as M, RevocationFeed as R, MIN_POLL_INTERVAL_MS as a };
|
|
60
|
+
export type { RevocationFeedOptions as b };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
2
|
import { S as Sensitive } from './sensitive-BC_s7Rrd.js';
|
|
3
|
-
import { T as TelemetryHook, a as TelemetryDispatcher, O as Outcome } from './telemetry
|
|
3
|
+
import { T as TelemetryHook, a as TelemetryDispatcher, O as Outcome } from './telemetry-Du0-zS5f.js';
|
|
4
4
|
import { a as AccessDecision } from './types-BOX-6Srv.js';
|
|
5
5
|
|
|
6
6
|
/** A session-scoped single-flight guard closure, as returned by `createRefreshGuard()`. */
|
|
@@ -468,6 +468,22 @@ declare class SharedSession {
|
|
|
468
468
|
* attached to the instance, not from per-request config.
|
|
469
469
|
*/
|
|
470
470
|
noCredentialsConfig(): AxiosRequestConfig;
|
|
471
|
+
/**
|
|
472
|
+
* Axios config for a request to an `/oauth2/*` endpoint (CONTRACT.md §12.1
|
|
473
|
+
* rule 3, §14.6; C163-12): {@link noCredentialsConfig} and, in the browser
|
|
474
|
+
* persona, the fetch adapter with `credentials: 'omit'`.
|
|
475
|
+
*
|
|
476
|
+
* `withCredentials: false` on axios's default XHR adapter is not enough: that
|
|
477
|
+
* adapter sends a same-origin cookie regardless, so an app served from the
|
|
478
|
+
* AXIAM origin would still present `axiam_*` on a token or device request.
|
|
479
|
+
* The fetch adapter derives its `credentials` from `withCredentials: false`
|
|
480
|
+
* (`'omit'`); `fetchOptions.credentials` is set as well for adapters that
|
|
481
|
+
* read it.
|
|
482
|
+
* `NodeSession` overrides this to {@link noCredentialsConfig}: its jar-free
|
|
483
|
+
* agent pair is what keeps the cookies off there, and the fetch adapter
|
|
484
|
+
* would bypass that pair.
|
|
485
|
+
*/
|
|
486
|
+
oauth2RequestConfig(): AxiosRequestConfig;
|
|
471
487
|
}
|
|
472
488
|
interface NodeTlsOptions {
|
|
473
489
|
/** §6 server-trust PEM bundle. */
|
|
@@ -478,4 +494,5 @@ interface NodeTlsOptions {
|
|
|
478
494
|
key?: string;
|
|
479
495
|
}
|
|
480
496
|
|
|
481
|
-
export {
|
|
497
|
+
export { DecisionMemo as D, MAX_TTL_MS as M, SharedSession as S, TelemetryReporter as T, memoKey as m };
|
|
498
|
+
export type { AxiamClientOptions as A, FinishRequest as F, NodeTlsOptions as N };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
2
|
import { S as Sensitive } from './sensitive-BC_s7Rrd.cjs';
|
|
3
|
-
import { T as TelemetryHook, a as TelemetryDispatcher, O as Outcome } from './telemetry
|
|
3
|
+
import { T as TelemetryHook, a as TelemetryDispatcher, O as Outcome } from './telemetry-Du0-zS5f.cjs';
|
|
4
4
|
import { a as AccessDecision } from './types-zXSpiQM-.cjs';
|
|
5
5
|
|
|
6
6
|
/** A session-scoped single-flight guard closure, as returned by `createRefreshGuard()`. */
|
|
@@ -468,6 +468,22 @@ declare class SharedSession {
|
|
|
468
468
|
* attached to the instance, not from per-request config.
|
|
469
469
|
*/
|
|
470
470
|
noCredentialsConfig(): AxiosRequestConfig;
|
|
471
|
+
/**
|
|
472
|
+
* Axios config for a request to an `/oauth2/*` endpoint (CONTRACT.md §12.1
|
|
473
|
+
* rule 3, §14.6; C163-12): {@link noCredentialsConfig} and, in the browser
|
|
474
|
+
* persona, the fetch adapter with `credentials: 'omit'`.
|
|
475
|
+
*
|
|
476
|
+
* `withCredentials: false` on axios's default XHR adapter is not enough: that
|
|
477
|
+
* adapter sends a same-origin cookie regardless, so an app served from the
|
|
478
|
+
* AXIAM origin would still present `axiam_*` on a token or device request.
|
|
479
|
+
* The fetch adapter derives its `credentials` from `withCredentials: false`
|
|
480
|
+
* (`'omit'`); `fetchOptions.credentials` is set as well for adapters that
|
|
481
|
+
* read it.
|
|
482
|
+
* `NodeSession` overrides this to {@link noCredentialsConfig}: its jar-free
|
|
483
|
+
* agent pair is what keeps the cookies off there, and the fetch adapter
|
|
484
|
+
* would bypass that pair.
|
|
485
|
+
*/
|
|
486
|
+
oauth2RequestConfig(): AxiosRequestConfig;
|
|
471
487
|
}
|
|
472
488
|
interface NodeTlsOptions {
|
|
473
489
|
/** §6 server-trust PEM bundle. */
|
|
@@ -478,4 +494,5 @@ interface NodeTlsOptions {
|
|
|
478
494
|
key?: string;
|
|
479
495
|
}
|
|
480
496
|
|
|
481
|
-
export {
|
|
497
|
+
export { DecisionMemo as D, MAX_TTL_MS as M, SharedSession as S, TelemetryReporter as T, memoKey as m };
|
|
498
|
+
export type { AxiamClientOptions as A, FinishRequest as F, NodeTlsOptions as N };
|
|
@@ -143,4 +143,5 @@ declare class TelemetryDispatcher {
|
|
|
143
143
|
get installed(): boolean;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
export {
|
|
146
|
+
export { TelemetryDispatcher as a };
|
|
147
|
+
export type { ConfigClampedEvent as C, Outcome as O, RefreshEvent as R, SsfUnjudgedCategory as S, TelemetryHook as T, RefreshRole as b, RequestEndEvent as c, RequestStartEvent as d, RetryEvent as e, SsfUnjudgedEvent as f, TelemetryEvent as g };
|
|
@@ -143,4 +143,5 @@ declare class TelemetryDispatcher {
|
|
|
143
143
|
get installed(): boolean;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
export {
|
|
146
|
+
export { TelemetryDispatcher as a };
|
|
147
|
+
export type { ConfigClampedEvent as C, Outcome as O, RefreshEvent as R, SsfUnjudgedCategory as S, TelemetryHook as T, RefreshRole as b, RequestEndEvent as c, RequestStartEvent as d, RetryEvent as e, SsfUnjudgedEvent as f, TelemetryEvent as g };
|
|
@@ -23,4 +23,5 @@ declare function classifyWebauthnError(err: unknown): WebauthnFailure;
|
|
|
23
23
|
*/
|
|
24
24
|
declare function webauthnErrorMessage(failure: WebauthnFailure): string;
|
|
25
25
|
|
|
26
|
-
export {
|
|
26
|
+
export { classifyWebauthnError as c, webauthnErrorMessage as w };
|
|
27
|
+
export type { WebauthnFailure as W };
|
|
@@ -23,4 +23,5 @@ declare function classifyWebauthnError(err: unknown): WebauthnFailure;
|
|
|
23
23
|
*/
|
|
24
24
|
declare function webauthnErrorMessage(failure: WebauthnFailure): string;
|
|
25
25
|
|
|
26
|
-
export {
|
|
26
|
+
export { classifyWebauthnError as c, webauthnErrorMessage as w };
|
|
27
|
+
export type { WebauthnFailure as W };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axiam-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Official TypeScript/JavaScript client SDK for AXIAM IAM",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"reflect-metadata": "^0.2.2",
|
|
181
181
|
"rxjs": "^7.8.2",
|
|
182
182
|
"ts-proto": "^2.12.0",
|
|
183
|
-
"tsup": "^
|
|
183
|
+
"tsup": "^9.0.0",
|
|
184
184
|
"typedoc": "^0.28.20",
|
|
185
185
|
"typescript": "~5.9.0",
|
|
186
186
|
"vitest": "^5.0.0"
|