axiam-sdk 1.3.1 → 1.4.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/README.md +130 -14
- package/dist/amqp/index.d.cts +384 -17
- package/dist/amqp/index.d.ts +384 -17
- package/dist/amqp/index.js +639 -66
- package/dist/amqp/index.js.map +1 -1
- package/dist/amqp/index.mjs +631 -67
- package/dist/amqp/index.mjs.map +1 -1
- package/dist/{authzCore-D-hquWSI.d.ts → authzCore-Ced9zDIV.d.ts} +49 -12
- package/dist/{authzCore-CqXzLNmT.d.cts → authzCore-Des2NcKA.d.cts} +49 -12
- package/dist/browser/index.d.cts +1 -1
- package/dist/browser/index.d.ts +1 -1
- package/dist/{client-CaurIxje.d.ts → client-C1kRISf8.d.ts} +15 -1
- package/dist/{client-Bp7riC4k.d.cts → client-Dpd864N9.d.cts} +15 -1
- package/dist/{cookieJar-oKazfbN1.d.cts → cookieJar-CeH2FZIT.d.cts} +3 -3
- package/dist/{cookieJar-DC4GLKrJ.d.ts → cookieJar-DPx9Qtcf.d.ts} +3 -3
- package/dist/grpc/index.d.cts +5 -5
- package/dist/grpc/index.d.ts +5 -5
- package/dist/grpc/index.js +249 -18
- package/dist/grpc/index.js.map +1 -1
- package/dist/grpc/index.mjs +249 -18
- package/dist/grpc/index.mjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +29 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -3
- package/dist/index.mjs.map +1 -1
- package/dist/{jwks-CTVpOWzI.d.cts → jwks-CQtWokVd.d.cts} +62 -7
- package/dist/{jwks-CTVpOWzI.d.ts → jwks-CQtWokVd.d.ts} +62 -7
- package/dist/middleware/index.d.cts +220 -43
- package/dist/middleware/index.d.ts +220 -43
- package/dist/middleware/index.js +587 -149
- package/dist/middleware/index.js.map +1 -1
- package/dist/middleware/index.mjs +579 -150
- package/dist/middleware/index.mjs.map +1 -1
- package/dist/nestjs/index.d.cts +18 -4
- package/dist/nestjs/index.d.ts +18 -4
- package/dist/nestjs/index.js +20 -1
- package/dist/nestjs/index.js.map +1 -1
- package/dist/nestjs/index.mjs +19 -2
- package/dist/nestjs/index.mjs.map +1 -1
- package/dist/node/index.d.cts +5 -5
- package/dist/node/index.d.ts +5 -5
- package/dist/node/index.js +351 -66
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +348 -67
- package/dist/node/index.mjs.map +1 -1
- package/dist/{oidcState-CZhj0MBP.d.ts → oidcState-CzpXPAHF.d.ts} +54 -14
- package/dist/{oidcState-EnEJmoF5.d.cts → oidcState-XOYEMQP6.d.cts} +54 -14
- package/dist/rest/index.d.cts +3 -3
- package/dist/rest/index.d.ts +3 -3
- package/dist/rest/index.js +29 -3
- package/dist/rest/index.js.map +1 -1
- package/dist/rest/index.mjs +29 -3
- package/dist/rest/index.mjs.map +1 -1
- package/dist/{session-CeIUXgpE.d.cts → session-DoQzoChX.d.cts} +1 -1
- package/dist/{session-Beo11VT_.d.ts → session-Z-6IyaSU.d.ts} +1 -1
- package/package.json +9 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as Sensitive } from './sensitive-BC_s7Rrd.js';
|
|
2
2
|
import { A as AccessCheck, a as AccessDecision } from './types-BOX-6Srv.js';
|
|
3
|
-
import { V as Verifier, P as PresentedProofs } from './jwks-
|
|
3
|
+
import { V as Verifier, P as PresentedProofs } from './jwks-CQtWokVd.js';
|
|
4
4
|
import { R as RevocationFeed } from './revocationFeed-KQhvMMl8.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -85,21 +85,41 @@ interface AxiamIdentity {
|
|
|
85
85
|
userId: string;
|
|
86
86
|
/** The tenant the verified token was minted for (the token's `tenant_id` claim). */
|
|
87
87
|
tenantId: string;
|
|
88
|
-
/**
|
|
89
|
-
|
|
88
|
+
/**
|
|
89
|
+
* The verified token's `roles` claim (CONTRACT.md §10 interface contract,
|
|
90
|
+
* §11.2 rule 11; contract 1.68): the names of the subject's global roles in
|
|
91
|
+
* the tenant, as the server issued them.
|
|
92
|
+
*
|
|
93
|
+
* `undefined` when the token carries no `roles` claim — the application did
|
|
94
|
+
* not request, or its client is not registered for, the `roles` scope — and
|
|
95
|
+
* also when the claim is not a JSON array of strings. `[]` when the scope was
|
|
96
|
+
* granted and the subject holds no such role. The two are kept apart on
|
|
97
|
+
* purpose: one means "ask for the scope", the other "the user holds none".
|
|
98
|
+
*
|
|
99
|
+
* **Never filled from `scope`.** Through 1.3.x this held the `scope` claim
|
|
100
|
+
* split on spaces (N15): a scope names what the *client* asked for, not
|
|
101
|
+
* what the user holds. The granted scopes are {@link AxiamIdentity.scopes}.
|
|
102
|
+
*/
|
|
103
|
+
roles?: string[];
|
|
104
|
+
/**
|
|
105
|
+
* The verified token's granted OAuth2 scopes: its `scope` claim split on
|
|
106
|
+
* single spaces (RFC 6749 §3.3). `undefined` when the token has no `scope`
|
|
107
|
+
* claim, or one that is not a string. Read by `requireScope`.
|
|
108
|
+
*/
|
|
109
|
+
scopes?: string[];
|
|
90
110
|
}
|
|
91
111
|
/**
|
|
92
112
|
* Verify `token` locally against `session`'s cached JWKS and map the
|
|
93
113
|
* verified claims to the identity shape injected by both middleware
|
|
94
|
-
* modules.
|
|
95
|
-
*
|
|
96
|
-
* (mirrors the Rust SDK's src/middleware/actix.rs).
|
|
114
|
+
* modules. `roles` is the token's `roles` claim and `scopes` its `scope`
|
|
115
|
+
* claim; neither is derived from the other (contract 1.68, §11.2 rule 11).
|
|
97
116
|
*
|
|
98
117
|
* This is the SDK's **documented §10 guard entry point** for TypeScript, and
|
|
99
118
|
* it applies the complete CONTRACT.md §10.1 minimum local-verification set:
|
|
100
|
-
* rules 1/2/3/5/6/7 inside `verifyAccessToken` (EdDSA `alg` pinned
|
|
101
|
-
* lookup, REQUIRED numeric `exp`, `nbf` when present, conditional
|
|
102
|
-
* a named bounded clock skew
|
|
119
|
+
* rules 1/2/3/5/6/7 and 10–12 inside `verifyAccessToken` (EdDSA `alg` pinned
|
|
120
|
+
* before key lookup, REQUIRED numeric `exp`, `nbf` when present, conditional
|
|
121
|
+
* `iss`/`aud`, a named bounded clock skew; `typ` `at+jwt` when present, no
|
|
122
|
+
* `purpose` claim, a REQUIRED `kid`), rule 4 — the `tenant_id` assertion — both
|
|
103
123
|
* there and again here, so a caller-supplied `Verifier` implementation that
|
|
104
124
|
* ignores its expectations still cannot get a cross-tenant token past the
|
|
105
125
|
* middleware, and rule 9 — see `proofs` below.
|
|
@@ -320,8 +340,25 @@ type CheckOutcome = {
|
|
|
320
340
|
* Never caches the decision (§11.2.6) — a plain per-call `await`.
|
|
321
341
|
*/
|
|
322
342
|
declare function evaluateAccess(checker: AuthzChecker, action: string, resourceId: string, subjectId: string, scope?: string, challenger?: UmaChallenger): Promise<CheckOutcome>;
|
|
323
|
-
/**
|
|
324
|
-
|
|
343
|
+
/**
|
|
344
|
+
* Local (no server round-trip) role check (§11.2.9, §11.2 rule 11): true iff
|
|
345
|
+
* `roles` and the identity's roles share at least one entry, by exact,
|
|
346
|
+
* case-sensitive equality.
|
|
347
|
+
*
|
|
348
|
+
* `identityRoles` is {@link AxiamIdentity.roles} — the verified token's `roles`
|
|
349
|
+
* claim and nothing else (contract 1.68; N15). `undefined` (the token carries
|
|
350
|
+
* no `roles` claim) and `[]` (it says the user holds none) both fail: the check
|
|
351
|
+
* fails closed and never falls back to `scope`.
|
|
352
|
+
*/
|
|
353
|
+
declare function hasAnyRole(identityRoles: readonly string[] | undefined, roles: readonly string[]): boolean;
|
|
354
|
+
/**
|
|
355
|
+
* Local (no server round-trip) scope check (§11.1 `require_scope`, §11.2 rule
|
|
356
|
+
* 11 (d); contract 1.68): true iff the identity's granted OAuth2 scopes —
|
|
357
|
+
* {@link AxiamIdentity.scopes}, the token's `scope` claim split on single
|
|
358
|
+
* spaces — contain at least one of `scopes`, each compared as a whole entry by
|
|
359
|
+
* exact, case-sensitive equality. `undefined` (no `scope` claim) fails.
|
|
360
|
+
*/
|
|
361
|
+
declare function hasAnyScope(identityScopes: readonly string[] | undefined, scopes: readonly string[]): boolean;
|
|
325
362
|
|
|
326
|
-
export { ResourceResolutionError as f, assertAuthzClient as i, authenticateRequest as j, evaluateAccess as k, fromParam as l, hasAnyRole as m, resolveResourceId as r };
|
|
363
|
+
export { ResourceResolutionError as f, assertAuthzClient as i, authenticateRequest as j, evaluateAccess as k, fromParam as l, hasAnyRole as m, hasAnyScope as n, resolveResourceId as r };
|
|
327
364
|
export type { AuthzVerifiableSession as A, CheckOutcome as C, ErrorBody as E, RequireAccessOptions as R, UmaChallenger as U, VerifiableSession as V, AuthzLogger as a, AxiamIdentity as b, ResourceSpec as c, AuthzChecker as d, ResourceParamRef as e, ResourceResolver as g, UmaTicketMinter as h };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as Sensitive } from './sensitive-BC_s7Rrd.cjs';
|
|
2
2
|
import { A as AccessCheck, a as AccessDecision } from './types-zXSpiQM-.cjs';
|
|
3
|
-
import { V as Verifier, P as PresentedProofs } from './jwks-
|
|
3
|
+
import { V as Verifier, P as PresentedProofs } from './jwks-CQtWokVd.cjs';
|
|
4
4
|
import { R as RevocationFeed } from './revocationFeed-KQhvMMl8.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -85,21 +85,41 @@ interface AxiamIdentity {
|
|
|
85
85
|
userId: string;
|
|
86
86
|
/** The tenant the verified token was minted for (the token's `tenant_id` claim). */
|
|
87
87
|
tenantId: string;
|
|
88
|
-
/**
|
|
89
|
-
|
|
88
|
+
/**
|
|
89
|
+
* The verified token's `roles` claim (CONTRACT.md §10 interface contract,
|
|
90
|
+
* §11.2 rule 11; contract 1.68): the names of the subject's global roles in
|
|
91
|
+
* the tenant, as the server issued them.
|
|
92
|
+
*
|
|
93
|
+
* `undefined` when the token carries no `roles` claim — the application did
|
|
94
|
+
* not request, or its client is not registered for, the `roles` scope — and
|
|
95
|
+
* also when the claim is not a JSON array of strings. `[]` when the scope was
|
|
96
|
+
* granted and the subject holds no such role. The two are kept apart on
|
|
97
|
+
* purpose: one means "ask for the scope", the other "the user holds none".
|
|
98
|
+
*
|
|
99
|
+
* **Never filled from `scope`.** Through 1.3.x this held the `scope` claim
|
|
100
|
+
* split on spaces (N15): a scope names what the *client* asked for, not
|
|
101
|
+
* what the user holds. The granted scopes are {@link AxiamIdentity.scopes}.
|
|
102
|
+
*/
|
|
103
|
+
roles?: string[];
|
|
104
|
+
/**
|
|
105
|
+
* The verified token's granted OAuth2 scopes: its `scope` claim split on
|
|
106
|
+
* single spaces (RFC 6749 §3.3). `undefined` when the token has no `scope`
|
|
107
|
+
* claim, or one that is not a string. Read by `requireScope`.
|
|
108
|
+
*/
|
|
109
|
+
scopes?: string[];
|
|
90
110
|
}
|
|
91
111
|
/**
|
|
92
112
|
* Verify `token` locally against `session`'s cached JWKS and map the
|
|
93
113
|
* verified claims to the identity shape injected by both middleware
|
|
94
|
-
* modules.
|
|
95
|
-
*
|
|
96
|
-
* (mirrors the Rust SDK's src/middleware/actix.rs).
|
|
114
|
+
* modules. `roles` is the token's `roles` claim and `scopes` its `scope`
|
|
115
|
+
* claim; neither is derived from the other (contract 1.68, §11.2 rule 11).
|
|
97
116
|
*
|
|
98
117
|
* This is the SDK's **documented §10 guard entry point** for TypeScript, and
|
|
99
118
|
* it applies the complete CONTRACT.md §10.1 minimum local-verification set:
|
|
100
|
-
* rules 1/2/3/5/6/7 inside `verifyAccessToken` (EdDSA `alg` pinned
|
|
101
|
-
* lookup, REQUIRED numeric `exp`, `nbf` when present, conditional
|
|
102
|
-
* a named bounded clock skew
|
|
119
|
+
* rules 1/2/3/5/6/7 and 10–12 inside `verifyAccessToken` (EdDSA `alg` pinned
|
|
120
|
+
* before key lookup, REQUIRED numeric `exp`, `nbf` when present, conditional
|
|
121
|
+
* `iss`/`aud`, a named bounded clock skew; `typ` `at+jwt` when present, no
|
|
122
|
+
* `purpose` claim, a REQUIRED `kid`), rule 4 — the `tenant_id` assertion — both
|
|
103
123
|
* there and again here, so a caller-supplied `Verifier` implementation that
|
|
104
124
|
* ignores its expectations still cannot get a cross-tenant token past the
|
|
105
125
|
* middleware, and rule 9 — see `proofs` below.
|
|
@@ -320,8 +340,25 @@ type CheckOutcome = {
|
|
|
320
340
|
* Never caches the decision (§11.2.6) — a plain per-call `await`.
|
|
321
341
|
*/
|
|
322
342
|
declare function evaluateAccess(checker: AuthzChecker, action: string, resourceId: string, subjectId: string, scope?: string, challenger?: UmaChallenger): Promise<CheckOutcome>;
|
|
323
|
-
/**
|
|
324
|
-
|
|
343
|
+
/**
|
|
344
|
+
* Local (no server round-trip) role check (§11.2.9, §11.2 rule 11): true iff
|
|
345
|
+
* `roles` and the identity's roles share at least one entry, by exact,
|
|
346
|
+
* case-sensitive equality.
|
|
347
|
+
*
|
|
348
|
+
* `identityRoles` is {@link AxiamIdentity.roles} — the verified token's `roles`
|
|
349
|
+
* claim and nothing else (contract 1.68; N15). `undefined` (the token carries
|
|
350
|
+
* no `roles` claim) and `[]` (it says the user holds none) both fail: the check
|
|
351
|
+
* fails closed and never falls back to `scope`.
|
|
352
|
+
*/
|
|
353
|
+
declare function hasAnyRole(identityRoles: readonly string[] | undefined, roles: readonly string[]): boolean;
|
|
354
|
+
/**
|
|
355
|
+
* Local (no server round-trip) scope check (§11.1 `require_scope`, §11.2 rule
|
|
356
|
+
* 11 (d); contract 1.68): true iff the identity's granted OAuth2 scopes —
|
|
357
|
+
* {@link AxiamIdentity.scopes}, the token's `scope` claim split on single
|
|
358
|
+
* spaces — contain at least one of `scopes`, each compared as a whole entry by
|
|
359
|
+
* exact, case-sensitive equality. `undefined` (no `scope` claim) fails.
|
|
360
|
+
*/
|
|
361
|
+
declare function hasAnyScope(identityScopes: readonly string[] | undefined, scopes: readonly string[]): boolean;
|
|
325
362
|
|
|
326
|
-
export { ResourceResolutionError as f, assertAuthzClient as i, authenticateRequest as j, evaluateAccess as k, fromParam as l, hasAnyRole as m, resolveResourceId as r };
|
|
363
|
+
export { ResourceResolutionError as f, assertAuthzClient as i, authenticateRequest as j, evaluateAccess as k, fromParam as l, hasAnyRole as m, hasAnyScope as n, resolveResourceId as r };
|
|
327
364
|
export type { AuthzVerifiableSession as A, CheckOutcome as C, ErrorBody as E, RequireAccessOptions as R, UmaChallenger as U, VerifiableSession as V, AuthzLogger as a, AxiamIdentity as b, ResourceSpec as c, AuthzChecker as d, ResourceParamRef as e, ResourceResolver as g, UmaTicketMinter as h };
|
package/dist/browser/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { AxiamClient, WebauthnWorkspace, WebauthnLoginResult, WebauthnCredential
|
|
|
2
2
|
import { Sensitive } from '../amqp/index.cjs';
|
|
3
3
|
import { LoginResult } from '../index.cjs';
|
|
4
4
|
export { W as WebauthnFailure, c as classifyWebauthnError, w as webauthnErrorMessage } from '../webauthnErrors-m1LZiaRy.cjs';
|
|
5
|
-
import '../session-
|
|
5
|
+
import '../session-DoQzoChX.cjs';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '../telemetry-Du0-zS5f.cjs';
|
|
8
8
|
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { AxiamClient, WebauthnWorkspace, WebauthnLoginResult, WebauthnCredential
|
|
|
2
2
|
import { Sensitive } from '../amqp/index.js';
|
|
3
3
|
import { LoginResult } from '../index.js';
|
|
4
4
|
export { W as WebauthnFailure, c as classifyWebauthnError, w as webauthnErrorMessage } from '../webauthnErrors-m1LZiaRy.js';
|
|
5
|
-
import '../session-
|
|
5
|
+
import '../session-Z-6IyaSU.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '../telemetry-Du0-zS5f.js';
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as Sensitive } from './sensitive-BC_s7Rrd.js';
|
|
2
|
-
import { S as SharedSession, A as AxiamClientOptions, D as DecisionMemo, T as TelemetryReporter } from './session-
|
|
2
|
+
import { S as SharedSession, A as AxiamClientOptions, D as DecisionMemo, T as TelemetryReporter } from './session-Z-6IyaSU.js';
|
|
3
3
|
import { L as LoginResult, A as AccessCheck, a as AccessDecision } from './types-BOX-6Srv.js';
|
|
4
4
|
import { a as TelemetryDispatcher } from './telemetry-Du0-zS5f.js';
|
|
5
5
|
|
|
@@ -833,6 +833,20 @@ interface AuditLogEntry {
|
|
|
833
833
|
ip_address?: string | null;
|
|
834
834
|
/** `metadata`. */
|
|
835
835
|
metadata: unknown;
|
|
836
|
+
/**
|
|
837
|
+
* The organization a **system-partition** row (nil `tenant_id`) concerns,
|
|
838
|
+
* recorded only where the server resolved it with certainty (SA-02, N1): a
|
|
839
|
+
* deleted tenant's organization, a verified SCIM token's tenant's, or an
|
|
840
|
+
* organization or tenant the request's path names and that exists. `GET
|
|
841
|
+
* /api/v1/audit-logs/system` returns a row only to an organization principal
|
|
842
|
+
* of this organization, and a row without one to nobody.
|
|
843
|
+
*
|
|
844
|
+
* Always `None` on a tenant's own rows, whose organization is their
|
|
845
|
+
* tenant's, and on every system row written before the field existed.
|
|
846
|
+
* Omitted from the serialized form when `None`, so an existing row's export
|
|
847
|
+
* line and dead-letter line are what they were.
|
|
848
|
+
*/
|
|
849
|
+
organization_id?: string | null;
|
|
836
850
|
/** `outcome`. */
|
|
837
851
|
outcome: AuditOutcome;
|
|
838
852
|
/** `resource_id`. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as Sensitive } from './sensitive-BC_s7Rrd.cjs';
|
|
2
|
-
import { S as SharedSession, A as AxiamClientOptions, D as DecisionMemo, T as TelemetryReporter } from './session-
|
|
2
|
+
import { S as SharedSession, A as AxiamClientOptions, D as DecisionMemo, T as TelemetryReporter } from './session-DoQzoChX.cjs';
|
|
3
3
|
import { L as LoginResult, A as AccessCheck, a as AccessDecision } from './types-zXSpiQM-.cjs';
|
|
4
4
|
import { a as TelemetryDispatcher } from './telemetry-Du0-zS5f.cjs';
|
|
5
5
|
|
|
@@ -833,6 +833,20 @@ interface AuditLogEntry {
|
|
|
833
833
|
ip_address?: string | null;
|
|
834
834
|
/** `metadata`. */
|
|
835
835
|
metadata: unknown;
|
|
836
|
+
/**
|
|
837
|
+
* The organization a **system-partition** row (nil `tenant_id`) concerns,
|
|
838
|
+
* recorded only where the server resolved it with certainty (SA-02, N1): a
|
|
839
|
+
* deleted tenant's organization, a verified SCIM token's tenant's, or an
|
|
840
|
+
* organization or tenant the request's path names and that exists. `GET
|
|
841
|
+
* /api/v1/audit-logs/system` returns a row only to an organization principal
|
|
842
|
+
* of this organization, and a row without one to nobody.
|
|
843
|
+
*
|
|
844
|
+
* Always `None` on a tenant's own rows, whose organization is their
|
|
845
|
+
* tenant's, and on every system row written before the field existed.
|
|
846
|
+
* Omitted from the serialized form when `None`, so an existing row's export
|
|
847
|
+
* line and dead-letter line are what they were.
|
|
848
|
+
*/
|
|
849
|
+
organization_id?: string | null;
|
|
836
850
|
/** `outcome`. */
|
|
837
851
|
outcome: AuditOutcome;
|
|
838
852
|
/** `resource_id`. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AxiosRequestConfig, AxiosInstance } from 'axios';
|
|
2
2
|
import { CookieJar } from 'tough-cookie';
|
|
3
|
-
import { S as SharedSession, A as AxiamClientOptions, N as NodeTlsOptions } from './session-
|
|
4
|
-
import { A as AxiamClient } from './client-
|
|
3
|
+
import { S as SharedSession, A as AxiamClientOptions, N as NodeTlsOptions } from './session-DoQzoChX.cjs';
|
|
4
|
+
import { A as AxiamClient } from './client-Dpd864N9.cjs';
|
|
5
5
|
import { S as Sensitive } from './sensitive-BC_s7Rrd.cjs';
|
|
6
|
-
import { V as Verifier } from './jwks-
|
|
6
|
+
import { V as Verifier } from './jwks-CQtWokVd.cjs';
|
|
7
7
|
|
|
8
8
|
/** Tracks the access/refresh token pair for a Node session, kept in sync with the cookie jar after each REST call/refresh. */
|
|
9
9
|
declare class TokenManager {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AxiosRequestConfig, AxiosInstance } from 'axios';
|
|
2
2
|
import { CookieJar } from 'tough-cookie';
|
|
3
|
-
import { S as SharedSession, A as AxiamClientOptions, N as NodeTlsOptions } from './session-
|
|
4
|
-
import { A as AxiamClient } from './client-
|
|
3
|
+
import { S as SharedSession, A as AxiamClientOptions, N as NodeTlsOptions } from './session-Z-6IyaSU.js';
|
|
4
|
+
import { A as AxiamClient } from './client-C1kRISf8.js';
|
|
5
5
|
import { S as Sensitive } from './sensitive-BC_s7Rrd.js';
|
|
6
|
-
import { V as Verifier } from './jwks-
|
|
6
|
+
import { V as Verifier } from './jwks-CQtWokVd.js';
|
|
7
7
|
|
|
8
8
|
/** Tracks the access/refresh token pair for a Node session, kept in sync with the cookie jar after each REST call/refresh. */
|
|
9
9
|
declare class TokenManager {
|
package/dist/grpc/index.d.cts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as grpc from '@grpc/grpc-js';
|
|
2
2
|
import { Interceptor } from '@grpc/grpc-js';
|
|
3
|
-
import { N as NodeSession } from '../cookieJar-
|
|
4
|
-
export { A as ACCESS_COOKIE, C as CSRF_COOKIE, R as REFRESH_COOKIE, T as TokenManager, c as createJar, a as createNodeClient, b as createNodeSession, e as extractCookieValue, w as wrapAxios } from '../cookieJar-
|
|
3
|
+
import { N as NodeSession } from '../cookieJar-CeH2FZIT.cjs';
|
|
4
|
+
export { A as ACCESS_COOKIE, C as CSRF_COOKIE, R as REFRESH_COOKIE, T as TokenManager, c as createJar, a as createNodeClient, b as createNodeSession, e as extractCookieValue, w as wrapAxios } from '../cookieJar-CeH2FZIT.cjs';
|
|
5
5
|
import { Sensitive } from '../amqp/index.cjs';
|
|
6
6
|
import { a as AccessDecision } from '../types-zXSpiQM-.cjs';
|
|
7
7
|
import { CnfClaim } from '../middleware/index.cjs';
|
|
8
|
-
export { A as AxiamClaims, J as JWKS_PATH, V as Verifier, c as createVerifier } from '../jwks-
|
|
8
|
+
export { A as AxiamClaims, J as JWKS_PATH, V as Verifier, c as createVerifier } from '../jwks-CQtWokVd.cjs';
|
|
9
9
|
import 'axios';
|
|
10
10
|
import 'tough-cookie';
|
|
11
|
-
import '../session-
|
|
11
|
+
import '../session-DoQzoChX.cjs';
|
|
12
12
|
import '../telemetry-Du0-zS5f.cjs';
|
|
13
|
-
import '../client-
|
|
13
|
+
import '../client-Dpd864N9.cjs';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Injects `authorization: Bearer <token>` (when a token is available) and
|
package/dist/grpc/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as grpc from '@grpc/grpc-js';
|
|
2
2
|
import { Interceptor } from '@grpc/grpc-js';
|
|
3
|
-
import { N as NodeSession } from '../cookieJar-
|
|
4
|
-
export { A as ACCESS_COOKIE, C as CSRF_COOKIE, R as REFRESH_COOKIE, T as TokenManager, c as createJar, a as createNodeClient, b as createNodeSession, e as extractCookieValue, w as wrapAxios } from '../cookieJar-
|
|
3
|
+
import { N as NodeSession } from '../cookieJar-DPx9Qtcf.js';
|
|
4
|
+
export { A as ACCESS_COOKIE, C as CSRF_COOKIE, R as REFRESH_COOKIE, T as TokenManager, c as createJar, a as createNodeClient, b as createNodeSession, e as extractCookieValue, w as wrapAxios } from '../cookieJar-DPx9Qtcf.js';
|
|
5
5
|
import { Sensitive } from '../amqp/index.js';
|
|
6
6
|
import { a as AccessDecision } from '../types-BOX-6Srv.js';
|
|
7
7
|
import { CnfClaim } from '../middleware/index.js';
|
|
8
|
-
export { A as AxiamClaims, J as JWKS_PATH, V as Verifier, c as createVerifier } from '../jwks-
|
|
8
|
+
export { A as AxiamClaims, J as JWKS_PATH, V as Verifier, c as createVerifier } from '../jwks-CQtWokVd.js';
|
|
9
9
|
import 'axios';
|
|
10
10
|
import 'tough-cookie';
|
|
11
|
-
import '../session-
|
|
11
|
+
import '../session-Z-6IyaSU.js';
|
|
12
12
|
import '../telemetry-Du0-zS5f.js';
|
|
13
|
-
import '../client-
|
|
13
|
+
import '../client-C1kRISf8.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Injects `authorization: Bearer <token>` (when a token is available) and
|