axiam-sdk 1.3.0 → 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 +10 -10
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { KeyObject } from 'node:crypto';
|
|
2
2
|
import { O as OAuthProtocolError } from './errors-CWlh-wcm.js';
|
|
3
3
|
import { S as Sensitive } from './sensitive-BC_s7Rrd.js';
|
|
4
|
-
import { S as SharedSession } from './session-
|
|
5
|
-
import { I as IdTokenClaims } from './jwks-
|
|
4
|
+
import { S as SharedSession } from './session-Z-6IyaSU.js';
|
|
5
|
+
import { I as IdTokenClaims } from './jwks-CQtWokVd.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* RFC 8705 §5 `mtls_endpoint_aliases` — the seven endpoints re-based on the
|
|
@@ -1427,6 +1427,8 @@ declare class CibaRequestSigner {
|
|
|
1427
1427
|
*/
|
|
1428
1428
|
declare class OidcClient {
|
|
1429
1429
|
#private;
|
|
1430
|
+
/** @internal Test hook: the number of occupied single-flight slots. */
|
|
1431
|
+
_pendingRefreshSlots(): number;
|
|
1430
1432
|
constructor(session: SharedSession, options: OidcClientOptions);
|
|
1431
1433
|
/**
|
|
1432
1434
|
* `GET /.well-known/openid-configuration` (§12.1) — fetch the OIDC discovery
|
|
@@ -1472,17 +1474,19 @@ declare class OidcClient {
|
|
|
1472
1474
|
oidcExchange(params: OidcExchangeParams): Promise<OidcTokenSet>;
|
|
1473
1475
|
/**
|
|
1474
1476
|
* `POST /oauth2/token` with `grant_type=refresh_token` (§12.1) — refresh an
|
|
1475
|
-
* {@link OidcTokenSet},
|
|
1477
|
+
* {@link OidcTokenSet}, single-flight per refresh token (§9).
|
|
1476
1478
|
*
|
|
1477
1479
|
* @remarks
|
|
1478
1480
|
* This is a **distinct operation** from `AxiamClient.refresh()`, which drives
|
|
1479
1481
|
* the cookie/opaque-token session path at `POST /api/v1/auth/refresh`. The
|
|
1480
1482
|
* two are never merged or aliased and neither falls back to the other
|
|
1481
|
-
* (§12.1)
|
|
1482
|
-
*
|
|
1483
|
+
* (§12.1), and they do not share a lock: the single-flight here is keyed per
|
|
1484
|
+
* refresh token, so refreshes of different tokens run concurrently.
|
|
1483
1485
|
*
|
|
1484
|
-
* Concurrent `oidcRefresh` calls
|
|
1485
|
-
*
|
|
1486
|
+
* Concurrent `oidcRefresh` calls presenting the SAME refresh token (and
|
|
1487
|
+
* tenant) collapse into one HTTP request and all receive the same token set
|
|
1488
|
+
* — §9 rule 2's result sharing. A different token gets its own request and
|
|
1489
|
+
* its own result.
|
|
1486
1490
|
*
|
|
1487
1491
|
* An `id_token` in the response is validated against §12.4 rules 1–5 and 7;
|
|
1488
1492
|
* rule 6 (nonce) is skipped, since OIDC Core §12.2 does not require a nonce
|
|
@@ -1947,8 +1951,14 @@ declare class OidcClient {
|
|
|
1947
1951
|
* Every check exists because skipping it has a name:
|
|
1948
1952
|
*
|
|
1949
1953
|
* 1. **Signature**, through the same §12.4 JWKS verifier the ID-token path
|
|
1950
|
-
* uses — no second key-fetching path
|
|
1951
|
-
*
|
|
1954
|
+
* uses — no second key-fetching path. The key is selected **by `kid`**
|
|
1955
|
+
* (contract 1.69): the server signs every logout token with the header
|
|
1956
|
+
* `{"alg":"EdDSA","typ":"logout+jwt","kid":"<kid>"}`. A token with no
|
|
1957
|
+
* `kid` is refused as `unknown_kid` (no single-key fallback, no trying
|
|
1958
|
+
* every key), and an unknown `kid` causes at most one JWKS re-fetch per
|
|
1959
|
+
* cooldown window and is then refused as `unknown_kid`. §10.1 rules 10
|
|
1960
|
+
* and 11 (`typ` `at+jwt`, no `purpose`) apply to the access-token path
|
|
1961
|
+
* only, not here.
|
|
1952
1962
|
* 2. **`iss`/`aud`**: a token minted for another RP is not accepted here.
|
|
1953
1963
|
* 3. **`events` carries the back-channel-logout key.** This is what
|
|
1954
1964
|
* distinguishes a logout token from an ID token; skipping it means
|
|
@@ -2110,8 +2120,24 @@ interface OidcStateEntry {
|
|
|
2110
2120
|
codeVerifier: Sensitive<string>;
|
|
2111
2121
|
/** The `redirect_uri` that was sent on the authorization request and must be replayed on exchange. */
|
|
2112
2122
|
redirectUri: string;
|
|
2113
|
-
/**
|
|
2123
|
+
/**
|
|
2124
|
+
* Optional application-owned data, e.g. the page the user was heading to
|
|
2125
|
+
* before login. The login glue stores it only when it is a same-origin
|
|
2126
|
+
* relative path (CONTRACT.md §12.8 rule 3) and checks it again before
|
|
2127
|
+
* redirecting, whatever a store returns.
|
|
2128
|
+
*/
|
|
2114
2129
|
returnTo?: string;
|
|
2130
|
+
/**
|
|
2131
|
+
* SHA-256 (lower-case hex) of the browser-binding cookie the login glue set
|
|
2132
|
+
* for this login (CONTRACT.md §12.3 rule 1, §12.8 rule 1; contract 1.68).
|
|
2133
|
+
*
|
|
2134
|
+
* Optional so that a store written for contract 1.67 still compiles and an
|
|
2135
|
+
* entry without it can still be read — but the 1.68 callback refuses such an
|
|
2136
|
+
* entry with the uniform 401. A caller-supplied store MUST persist and return
|
|
2137
|
+
* it unchanged. It is not secret (it is a digest of a random value) but it is
|
|
2138
|
+
* not logged either.
|
|
2139
|
+
*/
|
|
2140
|
+
bindingDigest?: string;
|
|
2115
2141
|
}
|
|
2116
2142
|
/**
|
|
2117
2143
|
* Optional server-side store for in-flight `oidcBegin` state
|
|
@@ -2141,11 +2167,22 @@ interface OidcStateStore {
|
|
|
2141
2167
|
* server's `federation_login_state` row lifetime (D-22, §12.3 rule 1).
|
|
2142
2168
|
*/
|
|
2143
2169
|
declare const OIDC_STATE_TTL_MS = 600000;
|
|
2170
|
+
/**
|
|
2171
|
+
* Default maximum number of entries a {@link MemoryOidcStateStore} holds.
|
|
2172
|
+
*
|
|
2173
|
+
* The login route is unauthenticated and every call saves one entry, so
|
|
2174
|
+
* without a bound a client looping on it grows the map for the whole
|
|
2175
|
+
* 10-minute TTL. At the bound the oldest entry is evicted: its login fails
|
|
2176
|
+
* once and the user starts again, which is the cheaper failure than the
|
|
2177
|
+
* process running out of memory.
|
|
2178
|
+
*/
|
|
2179
|
+
declare const OIDC_STATE_MAX_ENTRIES = 10000;
|
|
2144
2180
|
/**
|
|
2145
2181
|
* In-memory reference implementation of {@link OidcStateStore} (§12.3 rule 1).
|
|
2146
2182
|
*
|
|
2147
2183
|
* @remarks
|
|
2148
|
-
* Per-instance (never process-global), single-use, 10-minute TTL
|
|
2184
|
+
* Per-instance (never process-global), single-use, 10-minute TTL, and
|
|
2185
|
+
* bounded at {@link OIDC_STATE_MAX_ENTRIES} entries (oldest evicted). Expired
|
|
2149
2186
|
* entries are dropped lazily on {@link consume} and swept opportunistically on
|
|
2150
2187
|
* {@link save}, so no timer is held and the store needs no shutdown hook — a
|
|
2151
2188
|
* long-lived `setInterval` would keep a Node process alive and would be a
|
|
@@ -2170,8 +2207,11 @@ declare class MemoryOidcStateStore implements OidcStateStore {
|
|
|
2170
2207
|
* {@link OIDC_STATE_TTL_MS} (10 minutes) and is **clamped to it**: a
|
|
2171
2208
|
* shorter TTL is honoured (useful in tests), a longer one is reduced,
|
|
2172
2209
|
* because §12.3 rule 1 fixes 10 minutes as the maximum.
|
|
2210
|
+
* @param maxEntries the most entries held at once. Defaults to
|
|
2211
|
+
* {@link OIDC_STATE_MAX_ENTRIES}; at the bound, saving a new entry evicts
|
|
2212
|
+
* the oldest. Must be a positive integer.
|
|
2173
2213
|
*/
|
|
2174
|
-
constructor(ttlMs?: number);
|
|
2214
|
+
constructor(ttlMs?: number, maxEntries?: number);
|
|
2175
2215
|
/** Number of unexpired entries currently held. Intended for tests and metrics. */
|
|
2176
2216
|
get size(): number;
|
|
2177
2217
|
/** Persist `entry` under its own `state`, expiring `ttlMs` from now. */
|
|
@@ -2187,5 +2227,5 @@ declare class MemoryOidcStateStore implements OidcStateStore {
|
|
|
2187
2227
|
consume(state: string): Promise<OidcStateEntry | undefined>;
|
|
2188
2228
|
}
|
|
2189
2229
|
|
|
2190
|
-
export {
|
|
2191
|
-
export type { ExchangedToken as E, FederationProvider as F, IntrospectParams as I, LoginClientCredentialsParams as L, MtlsEndpointAliases as N, ProviderNonce as P, OidcBeginParams as
|
|
2230
|
+
export { PROTOCOL_OAUTH2 as $, ACCESS_TOKEN_TYPE as A, BACKCHANNEL_LOGOUT_EVENT as B, CIBA_GRANT_TYPE as C, DEFAULT_CIBA_INTERVAL_SECS as D, MIN_DISCOVERY_TTL_MS as G, HANDOFF_CODE_TTL_SECS as H, JWT_TOKEN_TYPE as J, MemoryOidcStateStore as K, MAX_LOGOUT_TOKEN_AGE_SECS as M, OIDC_STATE_MAX_ENTRIES as O, OIDC_STATE_TTL_MS as Q, OidcClient as S, PROTOCOL_OIDC_CONNECT as a0, PROTOCOL_SAML as a1, PROVIDER_ID_TOKEN_GRANT_TYPE as a2, PollSchedule as a3, isExpiredToken as aA, normalizeOrigin as aB, umaChallengeHeader as aC, umaParseChallenge as aD, SIGNED_REQUEST_LIFETIME_SECS as aa, SLOW_DOWN_INCREMENT_SECS as ab, SSO_CALLBACK_PATH as ac, SSO_HANDOFF_PATH as ad, SSO_OAUTH2_CALLBACK_PATH as ae, SSO_OAUTH2_START_PATH as af, SSO_PROVIDERS_PATH as ag, SSO_START_PATH as ah, TOKEN_EXCHANGE_GRANT_TYPE as aq, UMA_CLAIM_TOKEN_FORMAT as as, UMA_PROTECTION_SCOPE as at, UMA_TICKET_GRANT_TYPE as au, createOidcClient as ay, isAccessDenied as az, CIBA_SLOW_DOWN_INCREMENT_SECS as b, CibaRequestSigner as j, DEFAULT_POLL_INTERVAL_SECS as o, DEVICE_CODE_GRANT_TYPE as p, DISCOVERY_PATH as q, HANDOFF_QUERY_PARAM as w };
|
|
2231
|
+
export type { ExchangedToken as E, FederationProvider as F, IntrospectParams as I, LoginClientCredentialsParams as L, MtlsEndpointAliases as N, ProviderNonce as P, OidcBeginParams as R, OidcClientOptions as T, OidcConfiguration as U, OidcExchangeParams as V, OidcParParams as W, OidcRefreshParams as X, OidcStateEntry as Y, OidcStateStore as Z, OidcTokenSet as _, AuthorizationRequest as a, PushedAuthorizationRequest as a4, RequestedPermission as a5, RequestingPartyToken as a6, ResourceSet as a7, RevokeParams as a8, RptPermission as a9, SsoCompleteHandoffParams as ai, SsoCompleteOauth2Params as aj, SsoCompleteParams as ak, SsoCompleteResult as al, SsoProvidersParams as am, SsoStartOauth2Params as an, SsoStartParams as ao, SsoStartResult as ap, TokenExchangeParams as ar, UmaChallenge as av, UmaExchangeTicketParams as aw, VerifiedLogoutToken as ax, CibaAwaitParams as c, CibaClock as d, CibaDelivery as e, CibaInitiateParams as f, CibaInitiateResponse as g, CibaPingHeaders as h, CibaPollParams as i, CibaSignerDescription as k, CibaSigningAlg as l, CibaSigningKey as m, CibaUserHint as n, DeviceAuthorization as r, DeviceAuthorizeParams as s, DeviceLoginParams as t, DevicePollParams as u, FederationProviderList as v, IntrospectionResult as x, LoginWithProviderIdTokenOptions as y, LogoutUrlParams as z };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { KeyObject } from 'node:crypto';
|
|
2
2
|
import { O as OAuthProtocolError } from './errors-CWlh-wcm.cjs';
|
|
3
3
|
import { S as Sensitive } from './sensitive-BC_s7Rrd.cjs';
|
|
4
|
-
import { S as SharedSession } from './session-
|
|
5
|
-
import { I as IdTokenClaims } from './jwks-
|
|
4
|
+
import { S as SharedSession } from './session-DoQzoChX.cjs';
|
|
5
|
+
import { I as IdTokenClaims } from './jwks-CQtWokVd.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* RFC 8705 §5 `mtls_endpoint_aliases` — the seven endpoints re-based on the
|
|
@@ -1427,6 +1427,8 @@ declare class CibaRequestSigner {
|
|
|
1427
1427
|
*/
|
|
1428
1428
|
declare class OidcClient {
|
|
1429
1429
|
#private;
|
|
1430
|
+
/** @internal Test hook: the number of occupied single-flight slots. */
|
|
1431
|
+
_pendingRefreshSlots(): number;
|
|
1430
1432
|
constructor(session: SharedSession, options: OidcClientOptions);
|
|
1431
1433
|
/**
|
|
1432
1434
|
* `GET /.well-known/openid-configuration` (§12.1) — fetch the OIDC discovery
|
|
@@ -1472,17 +1474,19 @@ declare class OidcClient {
|
|
|
1472
1474
|
oidcExchange(params: OidcExchangeParams): Promise<OidcTokenSet>;
|
|
1473
1475
|
/**
|
|
1474
1476
|
* `POST /oauth2/token` with `grant_type=refresh_token` (§12.1) — refresh an
|
|
1475
|
-
* {@link OidcTokenSet},
|
|
1477
|
+
* {@link OidcTokenSet}, single-flight per refresh token (§9).
|
|
1476
1478
|
*
|
|
1477
1479
|
* @remarks
|
|
1478
1480
|
* This is a **distinct operation** from `AxiamClient.refresh()`, which drives
|
|
1479
1481
|
* the cookie/opaque-token session path at `POST /api/v1/auth/refresh`. The
|
|
1480
1482
|
* two are never merged or aliased and neither falls back to the other
|
|
1481
|
-
* (§12.1)
|
|
1482
|
-
*
|
|
1483
|
+
* (§12.1), and they do not share a lock: the single-flight here is keyed per
|
|
1484
|
+
* refresh token, so refreshes of different tokens run concurrently.
|
|
1483
1485
|
*
|
|
1484
|
-
* Concurrent `oidcRefresh` calls
|
|
1485
|
-
*
|
|
1486
|
+
* Concurrent `oidcRefresh` calls presenting the SAME refresh token (and
|
|
1487
|
+
* tenant) collapse into one HTTP request and all receive the same token set
|
|
1488
|
+
* — §9 rule 2's result sharing. A different token gets its own request and
|
|
1489
|
+
* its own result.
|
|
1486
1490
|
*
|
|
1487
1491
|
* An `id_token` in the response is validated against §12.4 rules 1–5 and 7;
|
|
1488
1492
|
* rule 6 (nonce) is skipped, since OIDC Core §12.2 does not require a nonce
|
|
@@ -1947,8 +1951,14 @@ declare class OidcClient {
|
|
|
1947
1951
|
* Every check exists because skipping it has a name:
|
|
1948
1952
|
*
|
|
1949
1953
|
* 1. **Signature**, through the same §12.4 JWKS verifier the ID-token path
|
|
1950
|
-
* uses — no second key-fetching path
|
|
1951
|
-
*
|
|
1954
|
+
* uses — no second key-fetching path. The key is selected **by `kid`**
|
|
1955
|
+
* (contract 1.69): the server signs every logout token with the header
|
|
1956
|
+
* `{"alg":"EdDSA","typ":"logout+jwt","kid":"<kid>"}`. A token with no
|
|
1957
|
+
* `kid` is refused as `unknown_kid` (no single-key fallback, no trying
|
|
1958
|
+
* every key), and an unknown `kid` causes at most one JWKS re-fetch per
|
|
1959
|
+
* cooldown window and is then refused as `unknown_kid`. §10.1 rules 10
|
|
1960
|
+
* and 11 (`typ` `at+jwt`, no `purpose`) apply to the access-token path
|
|
1961
|
+
* only, not here.
|
|
1952
1962
|
* 2. **`iss`/`aud`**: a token minted for another RP is not accepted here.
|
|
1953
1963
|
* 3. **`events` carries the back-channel-logout key.** This is what
|
|
1954
1964
|
* distinguishes a logout token from an ID token; skipping it means
|
|
@@ -2110,8 +2120,24 @@ interface OidcStateEntry {
|
|
|
2110
2120
|
codeVerifier: Sensitive<string>;
|
|
2111
2121
|
/** The `redirect_uri` that was sent on the authorization request and must be replayed on exchange. */
|
|
2112
2122
|
redirectUri: string;
|
|
2113
|
-
/**
|
|
2123
|
+
/**
|
|
2124
|
+
* Optional application-owned data, e.g. the page the user was heading to
|
|
2125
|
+
* before login. The login glue stores it only when it is a same-origin
|
|
2126
|
+
* relative path (CONTRACT.md §12.8 rule 3) and checks it again before
|
|
2127
|
+
* redirecting, whatever a store returns.
|
|
2128
|
+
*/
|
|
2114
2129
|
returnTo?: string;
|
|
2130
|
+
/**
|
|
2131
|
+
* SHA-256 (lower-case hex) of the browser-binding cookie the login glue set
|
|
2132
|
+
* for this login (CONTRACT.md §12.3 rule 1, §12.8 rule 1; contract 1.68).
|
|
2133
|
+
*
|
|
2134
|
+
* Optional so that a store written for contract 1.67 still compiles and an
|
|
2135
|
+
* entry without it can still be read — but the 1.68 callback refuses such an
|
|
2136
|
+
* entry with the uniform 401. A caller-supplied store MUST persist and return
|
|
2137
|
+
* it unchanged. It is not secret (it is a digest of a random value) but it is
|
|
2138
|
+
* not logged either.
|
|
2139
|
+
*/
|
|
2140
|
+
bindingDigest?: string;
|
|
2115
2141
|
}
|
|
2116
2142
|
/**
|
|
2117
2143
|
* Optional server-side store for in-flight `oidcBegin` state
|
|
@@ -2141,11 +2167,22 @@ interface OidcStateStore {
|
|
|
2141
2167
|
* server's `federation_login_state` row lifetime (D-22, §12.3 rule 1).
|
|
2142
2168
|
*/
|
|
2143
2169
|
declare const OIDC_STATE_TTL_MS = 600000;
|
|
2170
|
+
/**
|
|
2171
|
+
* Default maximum number of entries a {@link MemoryOidcStateStore} holds.
|
|
2172
|
+
*
|
|
2173
|
+
* The login route is unauthenticated and every call saves one entry, so
|
|
2174
|
+
* without a bound a client looping on it grows the map for the whole
|
|
2175
|
+
* 10-minute TTL. At the bound the oldest entry is evicted: its login fails
|
|
2176
|
+
* once and the user starts again, which is the cheaper failure than the
|
|
2177
|
+
* process running out of memory.
|
|
2178
|
+
*/
|
|
2179
|
+
declare const OIDC_STATE_MAX_ENTRIES = 10000;
|
|
2144
2180
|
/**
|
|
2145
2181
|
* In-memory reference implementation of {@link OidcStateStore} (§12.3 rule 1).
|
|
2146
2182
|
*
|
|
2147
2183
|
* @remarks
|
|
2148
|
-
* Per-instance (never process-global), single-use, 10-minute TTL
|
|
2184
|
+
* Per-instance (never process-global), single-use, 10-minute TTL, and
|
|
2185
|
+
* bounded at {@link OIDC_STATE_MAX_ENTRIES} entries (oldest evicted). Expired
|
|
2149
2186
|
* entries are dropped lazily on {@link consume} and swept opportunistically on
|
|
2150
2187
|
* {@link save}, so no timer is held and the store needs no shutdown hook — a
|
|
2151
2188
|
* long-lived `setInterval` would keep a Node process alive and would be a
|
|
@@ -2170,8 +2207,11 @@ declare class MemoryOidcStateStore implements OidcStateStore {
|
|
|
2170
2207
|
* {@link OIDC_STATE_TTL_MS} (10 minutes) and is **clamped to it**: a
|
|
2171
2208
|
* shorter TTL is honoured (useful in tests), a longer one is reduced,
|
|
2172
2209
|
* because §12.3 rule 1 fixes 10 minutes as the maximum.
|
|
2210
|
+
* @param maxEntries the most entries held at once. Defaults to
|
|
2211
|
+
* {@link OIDC_STATE_MAX_ENTRIES}; at the bound, saving a new entry evicts
|
|
2212
|
+
* the oldest. Must be a positive integer.
|
|
2173
2213
|
*/
|
|
2174
|
-
constructor(ttlMs?: number);
|
|
2214
|
+
constructor(ttlMs?: number, maxEntries?: number);
|
|
2175
2215
|
/** Number of unexpired entries currently held. Intended for tests and metrics. */
|
|
2176
2216
|
get size(): number;
|
|
2177
2217
|
/** Persist `entry` under its own `state`, expiring `ttlMs` from now. */
|
|
@@ -2187,5 +2227,5 @@ declare class MemoryOidcStateStore implements OidcStateStore {
|
|
|
2187
2227
|
consume(state: string): Promise<OidcStateEntry | undefined>;
|
|
2188
2228
|
}
|
|
2189
2229
|
|
|
2190
|
-
export {
|
|
2191
|
-
export type { ExchangedToken as E, FederationProvider as F, IntrospectParams as I, LoginClientCredentialsParams as L, MtlsEndpointAliases as N, ProviderNonce as P, OidcBeginParams as
|
|
2230
|
+
export { PROTOCOL_OAUTH2 as $, ACCESS_TOKEN_TYPE as A, BACKCHANNEL_LOGOUT_EVENT as B, CIBA_GRANT_TYPE as C, DEFAULT_CIBA_INTERVAL_SECS as D, MIN_DISCOVERY_TTL_MS as G, HANDOFF_CODE_TTL_SECS as H, JWT_TOKEN_TYPE as J, MemoryOidcStateStore as K, MAX_LOGOUT_TOKEN_AGE_SECS as M, OIDC_STATE_MAX_ENTRIES as O, OIDC_STATE_TTL_MS as Q, OidcClient as S, PROTOCOL_OIDC_CONNECT as a0, PROTOCOL_SAML as a1, PROVIDER_ID_TOKEN_GRANT_TYPE as a2, PollSchedule as a3, isExpiredToken as aA, normalizeOrigin as aB, umaChallengeHeader as aC, umaParseChallenge as aD, SIGNED_REQUEST_LIFETIME_SECS as aa, SLOW_DOWN_INCREMENT_SECS as ab, SSO_CALLBACK_PATH as ac, SSO_HANDOFF_PATH as ad, SSO_OAUTH2_CALLBACK_PATH as ae, SSO_OAUTH2_START_PATH as af, SSO_PROVIDERS_PATH as ag, SSO_START_PATH as ah, TOKEN_EXCHANGE_GRANT_TYPE as aq, UMA_CLAIM_TOKEN_FORMAT as as, UMA_PROTECTION_SCOPE as at, UMA_TICKET_GRANT_TYPE as au, createOidcClient as ay, isAccessDenied as az, CIBA_SLOW_DOWN_INCREMENT_SECS as b, CibaRequestSigner as j, DEFAULT_POLL_INTERVAL_SECS as o, DEVICE_CODE_GRANT_TYPE as p, DISCOVERY_PATH as q, HANDOFF_QUERY_PARAM as w };
|
|
2231
|
+
export type { ExchangedToken as E, FederationProvider as F, IntrospectParams as I, LoginClientCredentialsParams as L, MtlsEndpointAliases as N, ProviderNonce as P, OidcBeginParams as R, OidcClientOptions as T, OidcConfiguration as U, OidcExchangeParams as V, OidcParParams as W, OidcRefreshParams as X, OidcStateEntry as Y, OidcStateStore as Z, OidcTokenSet as _, AuthorizationRequest as a, PushedAuthorizationRequest as a4, RequestedPermission as a5, RequestingPartyToken as a6, ResourceSet as a7, RevokeParams as a8, RptPermission as a9, SsoCompleteHandoffParams as ai, SsoCompleteOauth2Params as aj, SsoCompleteParams as ak, SsoCompleteResult as al, SsoProvidersParams as am, SsoStartOauth2Params as an, SsoStartParams as ao, SsoStartResult as ap, TokenExchangeParams as ar, UmaChallenge as av, UmaExchangeTicketParams as aw, VerifiedLogoutToken as ax, CibaAwaitParams as c, CibaClock as d, CibaDelivery as e, CibaInitiateParams as f, CibaInitiateResponse as g, CibaPingHeaders as h, CibaPollParams as i, CibaSignerDescription as k, CibaSigningAlg as l, CibaSigningKey as m, CibaUserHint as n, DeviceAuthorization as r, DeviceAuthorizeParams as s, DeviceLoginParams as t, DevicePollParams as u, FederationProviderList as v, IntrospectionResult as x, LoginWithProviderIdTokenOptions as y, LogoutUrlParams as z };
|
package/dist/rest/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as ParseSamlSpMetadata, S as SamlServiceProvider, c as SamlServiceProviderInput, d as ScimTargetResponse, e as ScimTargetInput, D as DirectoryConfig, f as SetDirectoryConfig, g as SsfStream, h as SsfStreamInput, G as GrantSpec, i as GroupSpec, j as PermissionSpec, R as ResourceSpec, k as RoleSpec, l as ScopeSpec, m as ServiceAccountSpec, U as UserSpec, M as ManagementManifest } from '../client-
|
|
2
|
-
export { n as AcsEndpoint, o as ActorType, p as AddMemberRequest, q as AddServiceAccountMemberRequest, r as ApiProviderConfig, s as AppliedStep, t as ApplyReport, u as AssignRoleToGroupRequest, v as AssignRoleToServiceAccountRequest, w as AssignRoleToUserRequest, x as AttestationMode, y as AttributeMapping, z as AttributeSource, B as AuditApi, C as AuditListFilter, E as AuditListSystemFilter, F as AuditLogEntry, H as AuditOutcome, I as AuthnRequestParamsMode, A as AxiamClient, J as BASE_DELAY_MS, K as BindCertificate, L as CaCertificate, N as CaCertificatesApi, O as Certificate, Q as CertificatePolicy, T as CertificateStatus, V as CertificateType, X as CertificatesApi, Y as CertificationLevel, Z as Change, _ as CibaDeliveryMode, $ as CibaRequestSigningAlg, a0 as CimdPolicy, a1 as ClientAuthMethod, a2 as ClientProfile, a3 as ClientRegistration, a4 as ComplianceReportEntry, a5 as ConsentView, a6 as CreateCaCertificateRequest, a7 as CreateCertificateRequest, a8 as CreateFederationConfigRequest, a9 as CreateFederationConfigRequestWire, aa as CreateGroupRequest, ab as CreateIntermediateCaRequest, ac as CreateNetworkReplyProfileRequest, ad as CreateNetworkSegmentRequest, ae as CreateNotificationRuleRequest, af as CreateOAuth2ClientRequest, ag as CreatePermissionRequest, ah as CreatePgpKeyRequest, ai as CreateReactorRequest, aj as CreateRegistrationTokenRequest, ak as CreateRegistrationTokenResponse, al as CreateRegistrationTokenResponseWire, am as CreateResourceRequest, an as CreateRoleRequest, ao as CreateScimTokenRequest, ap as CreateScimTokenResponse, aq as CreateScimTokenResponseWire, ar as CreateScopeRequest, as as CreateServiceAccountRequest, at as CreateTenantRequest, au as CreateUserRequest, av as CreateUserRequestWire, aw as CreateWebhookRequest, ax as CreateWebhookRequestWire, ay as DeprovisionPolicy, az as DeviceToken, aA as DirectoryApi, aB as DirectoryKind, aC as DirectoryLinkResult, aD as DirectorySyncStatus, aE as EmailConfig, aF as EmailConfigApi, aG as EmailConfigOverride, aH as EmailTestResult, aI as EmailVerificationPolicy, aJ as EncryptRequest, aK as EncryptedExport, aL as FailurePolicy, aM as FederationApi, aN as FederationConfigResponse, aO as FederationLinkResponse, aP as GeneratedCaCertificate, aQ as GeneratedCaCertificateWire, aR as GeneratedCertificate, aS as GeneratedCertificateWire, aT as GeneratedPgpKey, aU as GeneratedPgpKeyWire, aV as GrantPermissionRequest, aW as GrantScopeConsent, aX as GrantedScope, aY as Group, aZ as GroupMapping, a_ as GroupsApi, a$ as HealthResponse, b0 as ImportCaCertificateRequest, b1 as ImportCaCertificateRequestWire, b2 as IssueSamlIdpCredential, b3 as KNOWN_SCIM_TARGET_AUTH_TYPES, b4 as KNOWN_SCIM_TARGET_SCOPE_TYPES, b5 as KeyAlgorithm, b6 as LinkDirectoryAccount, b7 as LockoutPolicy, b8 as MAX_ATTEMPTS, b9 as MAX_DELAY_MS, ba as ManagedBy, bb as ManagementNamespaces, bc as ManagementPlan, bd as ManifestApi, be as ManifestFailure, bf as MdsRefreshOutcome, bg as MdsStatusResponse, bh as MfaEnrollment, bi as MfaMethodResponse, bj as MfaMethodType, bk as MfaPolicy, bl as MigrateCustodyResponse, bm as MtlsTrustAnchorResponse, bn as NameIdFormat, bo as NamespaceScope, bp as NativeLoginTrustRequest, bq as NativeLoginTrustResponse, br as NetworkApi, bs as NetworkPolicyResponse, bt as NetworkPolicySpec, bu as NetworkProfileSpec, bv as NetworkReplyProfile, bw as NetworkReplyProfileInput, bx as NetworkSegmentKind, by as NetworkSegmentResponse, bz as NetworkSegmentSpec, bA as NetworkSpec, bB as NotificationEventType, bC as NotificationPolicy, bD as NotificationRuleResponse, bE as NotificationRulesApi, bF as OAuth2ClientCreatedResponse, bG as OAuth2ClientCreatedResponseWire, bH as OAuth2ClientResponse, bI as OAuth2Policy, bJ as Oauth2ClientsApi, bK as OidcAuthorizeRequest, bL as OidcAuthorizeResponse, bM as OidcCallbackRequest, bN as OidcCallbackResponse, bO as OidcPolicy, bP as OpaqueEnrollment, bQ as OpaqueEnrollmentPayload, bR as OpaquePolicy, bS as Organization, bT as OrganizationsApi, bU as Page, bV as PageRequest, bW as PasswordPolicy, bX as PasswordResetConfirmation, bY as PasswordResetContext, bZ as PasswordResetRequest, b_ as Permission, b$ as PermissionEffect, c0 as PermissionsApi, c1 as PgpKey, c2 as PgpKeyAlgorithm, c3 as PgpKeyPurpose, c4 as PgpKeyStatus, c5 as PgpKeysApi, c6 as PlannedAction, c7 as PlatformApi, c8 as PolicyResponse, c9 as PrivacyApi, ca as PrivacyPolicy, cb as ProviderConfig, cc as RadiusServiceType, cd as RadiusTerminationAction, ce as ReactorEventDescriptor, cf as ReactorMode, cg as ReactorResponse, ch as ReactorsApi, ci as ReadyResponse, cj as RefreshReuseResponse, ck as RegistrationTokenResponse, cl as ReplaceNetworkPolicyRequest, cm as ReplaceNetworkReplyProfileRequest, cn as ReplaceNetworkSegmentRequest, co as ResolvedPermissionGrant, cp as Resource, cq as ResourcesApi, cr as RetryOptions, cs as RetryPolicy, ct as Role, cu as RoleAssignment, cv as RoleBinding, cw as RoleGroupAssignment, cx as RoleServiceAccountAssignment, cy as RoleUserAssignment, cz as RolesApi, cA as RotateSecretResponse, cB as RotateSecretResponseWire, cC as SamlApi, cD as SamlBinding, cE as SamlIdpCredential, cF as SamlIdpCredentialPromotion, cG as SamlIdpCredentialStatus, cH as SamlIdpInfo, cI as SamlIdpSlot, cJ as SamlSpMetadataDraft, cK as ScimReconcileAccepted, cL as ScimTargetAuth, cM as ScimTargetDeliveryState, cN as ScimTargetInputWire, cO as ScimTargetScope, cP as ScimTargetsApi, cQ as ScimTokenResponse, cR as ScimTokenStatus, cS as ScimTokensApi, cT as Scope, cU as ScopesApi, cV as SecuritySettings, cW as ServiceAccountCreatedResponse, cX as ServiceAccountCreatedResponseWire, cY as ServiceAccountResponse, cZ as ServiceAccountsApi, c_ as SessionResponse, c$ as SetDirectoryConfigWire, d0 as SetMtlsTrustAnchor, d1 as SetOrgEmailConfig, d2 as SetOrgSettings, d3 as SettingsApi, d4 as SettingsScope, d5 as SignAuditBatchRequest, d6 as SignCertificateCsrRequest, d7 as SignIntermediateCsrRequest, d8 as SignedAuditBatch, d9 as SmtpConfig, da as SsfApi, db as SsfDeliveryMethod, dc as SsfEventType, dd as SsfStatusActor, de as SsfStreamInputWire, df as SsfStreamStatus, dg as SsfSubjectFormat, dh as StepOutcome, di as SubjectAltName, dj as Target, dk as Tenant, dl as TenantKind, dm as TenantSettingsOverride, dn as TenantStatus, dp as TenantsApi, dq as TokenExchangeTrustRequest, dr as TokenExchangeTrustResponse, ds as TokenPolicy, dt as UnknownAaguidAction, du as UpdateDirectoryConfig, dv as UpdateDirectoryConfigWire, dw as UpdateFederationConfigRequest, dx as UpdateFederationConfigRequestWire, dy as UpdateGroup, dz as UpdateNotificationRuleRequest, dA as UpdateOAuth2ClientRequest, dB as UpdateOrganizationRequest, dC as UpdatePermissionRequest, dD as UpdateReactorRequest, dE as UpdateResourceRequest, dF as UpdateRole, dG as UpdateScopeRequest, dH as UpdateServiceAccount, dI as UpdateTenant, dJ as UpdateUserRequest, dK as UpdateWebhookRequest, dL as UpdateWebhookRequestWire, dM as UserAttributeMap, dN as UserNameSource, dO as UserResponse, dP as UserStatus, dQ as UsersApi, dR as WebauthnAttestationPolicy, dS as WebauthnAuthenticationChallenge, dT as WebauthnAuthenticationResponse, dU as WebauthnCreationChallenge, dV as WebauthnCreationOptionsJson, b as WebauthnCredential, dW as WebauthnCredentialDescriptorJson, a as WebauthnLoginResult, dX as WebauthnPolicy, dY as WebauthnPolicyApi, dZ as WebauthnRegistrationChallenge, d_ as WebauthnRegistrationResponse, d$ as WebauthnRequestChallenge, e0 as WebauthnRequestOptionsJson, W as WebauthnWorkspace, e1 as WebhookResponse, e2 as WebhooksApi, e3 as assertKnownScimTargetAuth, e4 as assertKnownScimTargetScope, e5 as assertValidSubjectAltName, e6 as assertValidSubjectAltNameList, e7 as backoffMs, e8 as changedCount, e9 as changes, ea as clientRegistrationFromJson, eb as collectPages, ec as createFederationConfigRequestToWire, ed as createRegistrationTokenResponseFromWire, ee as createScimTokenResponseFromWire, ef as createUserRequestToWire, eg as createWebhookRequestToWire, eh as delayMs, ei as failure, ej as generatedCaCertificateFromWire, ek as generatedCertificateFromWire, el as generatedPgpKeyFromWire, em as hasMore, en as importCaCertificateRequestToWire, eo as inheritOf, ep as isComplete, eq as isConverged, er as managementNamespaces, es as normalizeSearch, et as oAuth2ClientCreatedResponseFromWire, eu as omitEmptyTenantScope, ev as omitNullMembers, ew as opaqueEnrollment, ex as opaqueEnrollmentForSelf, ey as pageQuery, ez as resourceKeyOf, eA as roleAssignmentInherits, eB as roleKeyOf, eC as rotateSecretResponseFromWire, eD as scimTargetInputToWire, eE as scrubDirectoryConfig, eF as scrubDirectoryLinkResult, eG as scrubDirectorySyncStatus, eH as scrubSamlIdpCredential, eI as scrubSamlIdpCredentialPromotion, eJ as scrubSamlIdpInfo, eK as scrubSamlServiceProvider, eL as scrubSamlSpMetadataDraft, eM as scrubScimReconcileAccepted, eN as scrubScimTargetResponse, eO as scrubSsfStream, eP as serviceAccountCreatedResponseFromWire, eQ as setDirectoryConfigToWire, eR as ssfStreamInputToWire, eS as topologicalOrder, eT as updateDirectoryConfigToWire, eU as updateFederationConfigRequestToWire, eV as updateWebhookRequestToWire, eW as validate, eX as webauthnRequestJson, eY as withFederationConfigResponseDefaults, eZ as withRetry } from '../client-
|
|
3
|
-
export { A as AxiamClientOptions, D as DecisionMemo, F as FinishRequest, M as MAX_TTL_MS, S as SharedSession, T as TelemetryReporter, m as memoKey } from '../session-
|
|
1
|
+
import { P as ParseSamlSpMetadata, S as SamlServiceProvider, c as SamlServiceProviderInput, d as ScimTargetResponse, e as ScimTargetInput, D as DirectoryConfig, f as SetDirectoryConfig, g as SsfStream, h as SsfStreamInput, G as GrantSpec, i as GroupSpec, j as PermissionSpec, R as ResourceSpec, k as RoleSpec, l as ScopeSpec, m as ServiceAccountSpec, U as UserSpec, M as ManagementManifest } from '../client-Dpd864N9.cjs';
|
|
2
|
+
export { n as AcsEndpoint, o as ActorType, p as AddMemberRequest, q as AddServiceAccountMemberRequest, r as ApiProviderConfig, s as AppliedStep, t as ApplyReport, u as AssignRoleToGroupRequest, v as AssignRoleToServiceAccountRequest, w as AssignRoleToUserRequest, x as AttestationMode, y as AttributeMapping, z as AttributeSource, B as AuditApi, C as AuditListFilter, E as AuditListSystemFilter, F as AuditLogEntry, H as AuditOutcome, I as AuthnRequestParamsMode, A as AxiamClient, J as BASE_DELAY_MS, K as BindCertificate, L as CaCertificate, N as CaCertificatesApi, O as Certificate, Q as CertificatePolicy, T as CertificateStatus, V as CertificateType, X as CertificatesApi, Y as CertificationLevel, Z as Change, _ as CibaDeliveryMode, $ as CibaRequestSigningAlg, a0 as CimdPolicy, a1 as ClientAuthMethod, a2 as ClientProfile, a3 as ClientRegistration, a4 as ComplianceReportEntry, a5 as ConsentView, a6 as CreateCaCertificateRequest, a7 as CreateCertificateRequest, a8 as CreateFederationConfigRequest, a9 as CreateFederationConfigRequestWire, aa as CreateGroupRequest, ab as CreateIntermediateCaRequest, ac as CreateNetworkReplyProfileRequest, ad as CreateNetworkSegmentRequest, ae as CreateNotificationRuleRequest, af as CreateOAuth2ClientRequest, ag as CreatePermissionRequest, ah as CreatePgpKeyRequest, ai as CreateReactorRequest, aj as CreateRegistrationTokenRequest, ak as CreateRegistrationTokenResponse, al as CreateRegistrationTokenResponseWire, am as CreateResourceRequest, an as CreateRoleRequest, ao as CreateScimTokenRequest, ap as CreateScimTokenResponse, aq as CreateScimTokenResponseWire, ar as CreateScopeRequest, as as CreateServiceAccountRequest, at as CreateTenantRequest, au as CreateUserRequest, av as CreateUserRequestWire, aw as CreateWebhookRequest, ax as CreateWebhookRequestWire, ay as DeprovisionPolicy, az as DeviceToken, aA as DirectoryApi, aB as DirectoryKind, aC as DirectoryLinkResult, aD as DirectorySyncStatus, aE as EmailConfig, aF as EmailConfigApi, aG as EmailConfigOverride, aH as EmailTestResult, aI as EmailVerificationPolicy, aJ as EncryptRequest, aK as EncryptedExport, aL as FailurePolicy, aM as FederationApi, aN as FederationConfigResponse, aO as FederationLinkResponse, aP as GeneratedCaCertificate, aQ as GeneratedCaCertificateWire, aR as GeneratedCertificate, aS as GeneratedCertificateWire, aT as GeneratedPgpKey, aU as GeneratedPgpKeyWire, aV as GrantPermissionRequest, aW as GrantScopeConsent, aX as GrantedScope, aY as Group, aZ as GroupMapping, a_ as GroupsApi, a$ as HealthResponse, b0 as ImportCaCertificateRequest, b1 as ImportCaCertificateRequestWire, b2 as IssueSamlIdpCredential, b3 as KNOWN_SCIM_TARGET_AUTH_TYPES, b4 as KNOWN_SCIM_TARGET_SCOPE_TYPES, b5 as KeyAlgorithm, b6 as LinkDirectoryAccount, b7 as LockoutPolicy, b8 as MAX_ATTEMPTS, b9 as MAX_DELAY_MS, ba as ManagedBy, bb as ManagementNamespaces, bc as ManagementPlan, bd as ManifestApi, be as ManifestFailure, bf as MdsRefreshOutcome, bg as MdsStatusResponse, bh as MfaEnrollment, bi as MfaMethodResponse, bj as MfaMethodType, bk as MfaPolicy, bl as MigrateCustodyResponse, bm as MtlsTrustAnchorResponse, bn as NameIdFormat, bo as NamespaceScope, bp as NativeLoginTrustRequest, bq as NativeLoginTrustResponse, br as NetworkApi, bs as NetworkPolicyResponse, bt as NetworkPolicySpec, bu as NetworkProfileSpec, bv as NetworkReplyProfile, bw as NetworkReplyProfileInput, bx as NetworkSegmentKind, by as NetworkSegmentResponse, bz as NetworkSegmentSpec, bA as NetworkSpec, bB as NotificationEventType, bC as NotificationPolicy, bD as NotificationRuleResponse, bE as NotificationRulesApi, bF as OAuth2ClientCreatedResponse, bG as OAuth2ClientCreatedResponseWire, bH as OAuth2ClientResponse, bI as OAuth2Policy, bJ as Oauth2ClientsApi, bK as OidcAuthorizeRequest, bL as OidcAuthorizeResponse, bM as OidcCallbackRequest, bN as OidcCallbackResponse, bO as OidcPolicy, bP as OpaqueEnrollment, bQ as OpaqueEnrollmentPayload, bR as OpaquePolicy, bS as Organization, bT as OrganizationsApi, bU as Page, bV as PageRequest, bW as PasswordPolicy, bX as PasswordResetConfirmation, bY as PasswordResetContext, bZ as PasswordResetRequest, b_ as Permission, b$ as PermissionEffect, c0 as PermissionsApi, c1 as PgpKey, c2 as PgpKeyAlgorithm, c3 as PgpKeyPurpose, c4 as PgpKeyStatus, c5 as PgpKeysApi, c6 as PlannedAction, c7 as PlatformApi, c8 as PolicyResponse, c9 as PrivacyApi, ca as PrivacyPolicy, cb as ProviderConfig, cc as RadiusServiceType, cd as RadiusTerminationAction, ce as ReactorEventDescriptor, cf as ReactorMode, cg as ReactorResponse, ch as ReactorsApi, ci as ReadyResponse, cj as RefreshReuseResponse, ck as RegistrationTokenResponse, cl as ReplaceNetworkPolicyRequest, cm as ReplaceNetworkReplyProfileRequest, cn as ReplaceNetworkSegmentRequest, co as ResolvedPermissionGrant, cp as Resource, cq as ResourcesApi, cr as RetryOptions, cs as RetryPolicy, ct as Role, cu as RoleAssignment, cv as RoleBinding, cw as RoleGroupAssignment, cx as RoleServiceAccountAssignment, cy as RoleUserAssignment, cz as RolesApi, cA as RotateSecretResponse, cB as RotateSecretResponseWire, cC as SamlApi, cD as SamlBinding, cE as SamlIdpCredential, cF as SamlIdpCredentialPromotion, cG as SamlIdpCredentialStatus, cH as SamlIdpInfo, cI as SamlIdpSlot, cJ as SamlSpMetadataDraft, cK as ScimReconcileAccepted, cL as ScimTargetAuth, cM as ScimTargetDeliveryState, cN as ScimTargetInputWire, cO as ScimTargetScope, cP as ScimTargetsApi, cQ as ScimTokenResponse, cR as ScimTokenStatus, cS as ScimTokensApi, cT as Scope, cU as ScopesApi, cV as SecuritySettings, cW as ServiceAccountCreatedResponse, cX as ServiceAccountCreatedResponseWire, cY as ServiceAccountResponse, cZ as ServiceAccountsApi, c_ as SessionResponse, c$ as SetDirectoryConfigWire, d0 as SetMtlsTrustAnchor, d1 as SetOrgEmailConfig, d2 as SetOrgSettings, d3 as SettingsApi, d4 as SettingsScope, d5 as SignAuditBatchRequest, d6 as SignCertificateCsrRequest, d7 as SignIntermediateCsrRequest, d8 as SignedAuditBatch, d9 as SmtpConfig, da as SsfApi, db as SsfDeliveryMethod, dc as SsfEventType, dd as SsfStatusActor, de as SsfStreamInputWire, df as SsfStreamStatus, dg as SsfSubjectFormat, dh as StepOutcome, di as SubjectAltName, dj as Target, dk as Tenant, dl as TenantKind, dm as TenantSettingsOverride, dn as TenantStatus, dp as TenantsApi, dq as TokenExchangeTrustRequest, dr as TokenExchangeTrustResponse, ds as TokenPolicy, dt as UnknownAaguidAction, du as UpdateDirectoryConfig, dv as UpdateDirectoryConfigWire, dw as UpdateFederationConfigRequest, dx as UpdateFederationConfigRequestWire, dy as UpdateGroup, dz as UpdateNotificationRuleRequest, dA as UpdateOAuth2ClientRequest, dB as UpdateOrganizationRequest, dC as UpdatePermissionRequest, dD as UpdateReactorRequest, dE as UpdateResourceRequest, dF as UpdateRole, dG as UpdateScopeRequest, dH as UpdateServiceAccount, dI as UpdateTenant, dJ as UpdateUserRequest, dK as UpdateWebhookRequest, dL as UpdateWebhookRequestWire, dM as UserAttributeMap, dN as UserNameSource, dO as UserResponse, dP as UserStatus, dQ as UsersApi, dR as WebauthnAttestationPolicy, dS as WebauthnAuthenticationChallenge, dT as WebauthnAuthenticationResponse, dU as WebauthnCreationChallenge, dV as WebauthnCreationOptionsJson, b as WebauthnCredential, dW as WebauthnCredentialDescriptorJson, a as WebauthnLoginResult, dX as WebauthnPolicy, dY as WebauthnPolicyApi, dZ as WebauthnRegistrationChallenge, d_ as WebauthnRegistrationResponse, d$ as WebauthnRequestChallenge, e0 as WebauthnRequestOptionsJson, W as WebauthnWorkspace, e1 as WebhookResponse, e2 as WebhooksApi, e3 as assertKnownScimTargetAuth, e4 as assertKnownScimTargetScope, e5 as assertValidSubjectAltName, e6 as assertValidSubjectAltNameList, e7 as backoffMs, e8 as changedCount, e9 as changes, ea as clientRegistrationFromJson, eb as collectPages, ec as createFederationConfigRequestToWire, ed as createRegistrationTokenResponseFromWire, ee as createScimTokenResponseFromWire, ef as createUserRequestToWire, eg as createWebhookRequestToWire, eh as delayMs, ei as failure, ej as generatedCaCertificateFromWire, ek as generatedCertificateFromWire, el as generatedPgpKeyFromWire, em as hasMore, en as importCaCertificateRequestToWire, eo as inheritOf, ep as isComplete, eq as isConverged, er as managementNamespaces, es as normalizeSearch, et as oAuth2ClientCreatedResponseFromWire, eu as omitEmptyTenantScope, ev as omitNullMembers, ew as opaqueEnrollment, ex as opaqueEnrollmentForSelf, ey as pageQuery, ez as resourceKeyOf, eA as roleAssignmentInherits, eB as roleKeyOf, eC as rotateSecretResponseFromWire, eD as scimTargetInputToWire, eE as scrubDirectoryConfig, eF as scrubDirectoryLinkResult, eG as scrubDirectorySyncStatus, eH as scrubSamlIdpCredential, eI as scrubSamlIdpCredentialPromotion, eJ as scrubSamlIdpInfo, eK as scrubSamlServiceProvider, eL as scrubSamlSpMetadataDraft, eM as scrubScimReconcileAccepted, eN as scrubScimTargetResponse, eO as scrubSsfStream, eP as serviceAccountCreatedResponseFromWire, eQ as setDirectoryConfigToWire, eR as ssfStreamInputToWire, eS as topologicalOrder, eT as updateDirectoryConfigToWire, eU as updateFederationConfigRequestToWire, eV as updateWebhookRequestToWire, eW as validate, eX as webauthnRequestJson, eY as withFederationConfigResponseDefaults, eZ as withRetry } from '../client-Dpd864N9.cjs';
|
|
3
|
+
export { A as AxiamClientOptions, D as DecisionMemo, F as FinishRequest, M as MAX_TTL_MS, S as SharedSession, T as TelemetryReporter, m as memoKey } from '../session-DoQzoChX.cjs';
|
|
4
4
|
export { C as ConfigClampedEvent, O as Outcome, R as RefreshEvent, b as RefreshRole, c as RequestEndEvent, d as RequestStartEvent, e as RetryEvent, S as SsfUnjudgedCategory, f as SsfUnjudgedEvent, a as TelemetryDispatcher, g as TelemetryEvent, T as TelemetryHook } from '../telemetry-Du0-zS5f.cjs';
|
|
5
5
|
export { A as AccessCheck, a as AccessDecision, b as AxiamUserInfo, L as LoginResult } from '../types-zXSpiQM-.cjs';
|
|
6
6
|
export { W as WebauthnFailure, c as classifyWebauthnError, w as webauthnErrorMessage } from '../webauthnErrors-m1LZiaRy.cjs';
|
package/dist/rest/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as ParseSamlSpMetadata, S as SamlServiceProvider, c as SamlServiceProviderInput, d as ScimTargetResponse, e as ScimTargetInput, D as DirectoryConfig, f as SetDirectoryConfig, g as SsfStream, h as SsfStreamInput, G as GrantSpec, i as GroupSpec, j as PermissionSpec, R as ResourceSpec, k as RoleSpec, l as ScopeSpec, m as ServiceAccountSpec, U as UserSpec, M as ManagementManifest } from '../client-
|
|
2
|
-
export { n as AcsEndpoint, o as ActorType, p as AddMemberRequest, q as AddServiceAccountMemberRequest, r as ApiProviderConfig, s as AppliedStep, t as ApplyReport, u as AssignRoleToGroupRequest, v as AssignRoleToServiceAccountRequest, w as AssignRoleToUserRequest, x as AttestationMode, y as AttributeMapping, z as AttributeSource, B as AuditApi, C as AuditListFilter, E as AuditListSystemFilter, F as AuditLogEntry, H as AuditOutcome, I as AuthnRequestParamsMode, A as AxiamClient, J as BASE_DELAY_MS, K as BindCertificate, L as CaCertificate, N as CaCertificatesApi, O as Certificate, Q as CertificatePolicy, T as CertificateStatus, V as CertificateType, X as CertificatesApi, Y as CertificationLevel, Z as Change, _ as CibaDeliveryMode, $ as CibaRequestSigningAlg, a0 as CimdPolicy, a1 as ClientAuthMethod, a2 as ClientProfile, a3 as ClientRegistration, a4 as ComplianceReportEntry, a5 as ConsentView, a6 as CreateCaCertificateRequest, a7 as CreateCertificateRequest, a8 as CreateFederationConfigRequest, a9 as CreateFederationConfigRequestWire, aa as CreateGroupRequest, ab as CreateIntermediateCaRequest, ac as CreateNetworkReplyProfileRequest, ad as CreateNetworkSegmentRequest, ae as CreateNotificationRuleRequest, af as CreateOAuth2ClientRequest, ag as CreatePermissionRequest, ah as CreatePgpKeyRequest, ai as CreateReactorRequest, aj as CreateRegistrationTokenRequest, ak as CreateRegistrationTokenResponse, al as CreateRegistrationTokenResponseWire, am as CreateResourceRequest, an as CreateRoleRequest, ao as CreateScimTokenRequest, ap as CreateScimTokenResponse, aq as CreateScimTokenResponseWire, ar as CreateScopeRequest, as as CreateServiceAccountRequest, at as CreateTenantRequest, au as CreateUserRequest, av as CreateUserRequestWire, aw as CreateWebhookRequest, ax as CreateWebhookRequestWire, ay as DeprovisionPolicy, az as DeviceToken, aA as DirectoryApi, aB as DirectoryKind, aC as DirectoryLinkResult, aD as DirectorySyncStatus, aE as EmailConfig, aF as EmailConfigApi, aG as EmailConfigOverride, aH as EmailTestResult, aI as EmailVerificationPolicy, aJ as EncryptRequest, aK as EncryptedExport, aL as FailurePolicy, aM as FederationApi, aN as FederationConfigResponse, aO as FederationLinkResponse, aP as GeneratedCaCertificate, aQ as GeneratedCaCertificateWire, aR as GeneratedCertificate, aS as GeneratedCertificateWire, aT as GeneratedPgpKey, aU as GeneratedPgpKeyWire, aV as GrantPermissionRequest, aW as GrantScopeConsent, aX as GrantedScope, aY as Group, aZ as GroupMapping, a_ as GroupsApi, a$ as HealthResponse, b0 as ImportCaCertificateRequest, b1 as ImportCaCertificateRequestWire, b2 as IssueSamlIdpCredential, b3 as KNOWN_SCIM_TARGET_AUTH_TYPES, b4 as KNOWN_SCIM_TARGET_SCOPE_TYPES, b5 as KeyAlgorithm, b6 as LinkDirectoryAccount, b7 as LockoutPolicy, b8 as MAX_ATTEMPTS, b9 as MAX_DELAY_MS, ba as ManagedBy, bb as ManagementNamespaces, bc as ManagementPlan, bd as ManifestApi, be as ManifestFailure, bf as MdsRefreshOutcome, bg as MdsStatusResponse, bh as MfaEnrollment, bi as MfaMethodResponse, bj as MfaMethodType, bk as MfaPolicy, bl as MigrateCustodyResponse, bm as MtlsTrustAnchorResponse, bn as NameIdFormat, bo as NamespaceScope, bp as NativeLoginTrustRequest, bq as NativeLoginTrustResponse, br as NetworkApi, bs as NetworkPolicyResponse, bt as NetworkPolicySpec, bu as NetworkProfileSpec, bv as NetworkReplyProfile, bw as NetworkReplyProfileInput, bx as NetworkSegmentKind, by as NetworkSegmentResponse, bz as NetworkSegmentSpec, bA as NetworkSpec, bB as NotificationEventType, bC as NotificationPolicy, bD as NotificationRuleResponse, bE as NotificationRulesApi, bF as OAuth2ClientCreatedResponse, bG as OAuth2ClientCreatedResponseWire, bH as OAuth2ClientResponse, bI as OAuth2Policy, bJ as Oauth2ClientsApi, bK as OidcAuthorizeRequest, bL as OidcAuthorizeResponse, bM as OidcCallbackRequest, bN as OidcCallbackResponse, bO as OidcPolicy, bP as OpaqueEnrollment, bQ as OpaqueEnrollmentPayload, bR as OpaquePolicy, bS as Organization, bT as OrganizationsApi, bU as Page, bV as PageRequest, bW as PasswordPolicy, bX as PasswordResetConfirmation, bY as PasswordResetContext, bZ as PasswordResetRequest, b_ as Permission, b$ as PermissionEffect, c0 as PermissionsApi, c1 as PgpKey, c2 as PgpKeyAlgorithm, c3 as PgpKeyPurpose, c4 as PgpKeyStatus, c5 as PgpKeysApi, c6 as PlannedAction, c7 as PlatformApi, c8 as PolicyResponse, c9 as PrivacyApi, ca as PrivacyPolicy, cb as ProviderConfig, cc as RadiusServiceType, cd as RadiusTerminationAction, ce as ReactorEventDescriptor, cf as ReactorMode, cg as ReactorResponse, ch as ReactorsApi, ci as ReadyResponse, cj as RefreshReuseResponse, ck as RegistrationTokenResponse, cl as ReplaceNetworkPolicyRequest, cm as ReplaceNetworkReplyProfileRequest, cn as ReplaceNetworkSegmentRequest, co as ResolvedPermissionGrant, cp as Resource, cq as ResourcesApi, cr as RetryOptions, cs as RetryPolicy, ct as Role, cu as RoleAssignment, cv as RoleBinding, cw as RoleGroupAssignment, cx as RoleServiceAccountAssignment, cy as RoleUserAssignment, cz as RolesApi, cA as RotateSecretResponse, cB as RotateSecretResponseWire, cC as SamlApi, cD as SamlBinding, cE as SamlIdpCredential, cF as SamlIdpCredentialPromotion, cG as SamlIdpCredentialStatus, cH as SamlIdpInfo, cI as SamlIdpSlot, cJ as SamlSpMetadataDraft, cK as ScimReconcileAccepted, cL as ScimTargetAuth, cM as ScimTargetDeliveryState, cN as ScimTargetInputWire, cO as ScimTargetScope, cP as ScimTargetsApi, cQ as ScimTokenResponse, cR as ScimTokenStatus, cS as ScimTokensApi, cT as Scope, cU as ScopesApi, cV as SecuritySettings, cW as ServiceAccountCreatedResponse, cX as ServiceAccountCreatedResponseWire, cY as ServiceAccountResponse, cZ as ServiceAccountsApi, c_ as SessionResponse, c$ as SetDirectoryConfigWire, d0 as SetMtlsTrustAnchor, d1 as SetOrgEmailConfig, d2 as SetOrgSettings, d3 as SettingsApi, d4 as SettingsScope, d5 as SignAuditBatchRequest, d6 as SignCertificateCsrRequest, d7 as SignIntermediateCsrRequest, d8 as SignedAuditBatch, d9 as SmtpConfig, da as SsfApi, db as SsfDeliveryMethod, dc as SsfEventType, dd as SsfStatusActor, de as SsfStreamInputWire, df as SsfStreamStatus, dg as SsfSubjectFormat, dh as StepOutcome, di as SubjectAltName, dj as Target, dk as Tenant, dl as TenantKind, dm as TenantSettingsOverride, dn as TenantStatus, dp as TenantsApi, dq as TokenExchangeTrustRequest, dr as TokenExchangeTrustResponse, ds as TokenPolicy, dt as UnknownAaguidAction, du as UpdateDirectoryConfig, dv as UpdateDirectoryConfigWire, dw as UpdateFederationConfigRequest, dx as UpdateFederationConfigRequestWire, dy as UpdateGroup, dz as UpdateNotificationRuleRequest, dA as UpdateOAuth2ClientRequest, dB as UpdateOrganizationRequest, dC as UpdatePermissionRequest, dD as UpdateReactorRequest, dE as UpdateResourceRequest, dF as UpdateRole, dG as UpdateScopeRequest, dH as UpdateServiceAccount, dI as UpdateTenant, dJ as UpdateUserRequest, dK as UpdateWebhookRequest, dL as UpdateWebhookRequestWire, dM as UserAttributeMap, dN as UserNameSource, dO as UserResponse, dP as UserStatus, dQ as UsersApi, dR as WebauthnAttestationPolicy, dS as WebauthnAuthenticationChallenge, dT as WebauthnAuthenticationResponse, dU as WebauthnCreationChallenge, dV as WebauthnCreationOptionsJson, b as WebauthnCredential, dW as WebauthnCredentialDescriptorJson, a as WebauthnLoginResult, dX as WebauthnPolicy, dY as WebauthnPolicyApi, dZ as WebauthnRegistrationChallenge, d_ as WebauthnRegistrationResponse, d$ as WebauthnRequestChallenge, e0 as WebauthnRequestOptionsJson, W as WebauthnWorkspace, e1 as WebhookResponse, e2 as WebhooksApi, e3 as assertKnownScimTargetAuth, e4 as assertKnownScimTargetScope, e5 as assertValidSubjectAltName, e6 as assertValidSubjectAltNameList, e7 as backoffMs, e8 as changedCount, e9 as changes, ea as clientRegistrationFromJson, eb as collectPages, ec as createFederationConfigRequestToWire, ed as createRegistrationTokenResponseFromWire, ee as createScimTokenResponseFromWire, ef as createUserRequestToWire, eg as createWebhookRequestToWire, eh as delayMs, ei as failure, ej as generatedCaCertificateFromWire, ek as generatedCertificateFromWire, el as generatedPgpKeyFromWire, em as hasMore, en as importCaCertificateRequestToWire, eo as inheritOf, ep as isComplete, eq as isConverged, er as managementNamespaces, es as normalizeSearch, et as oAuth2ClientCreatedResponseFromWire, eu as omitEmptyTenantScope, ev as omitNullMembers, ew as opaqueEnrollment, ex as opaqueEnrollmentForSelf, ey as pageQuery, ez as resourceKeyOf, eA as roleAssignmentInherits, eB as roleKeyOf, eC as rotateSecretResponseFromWire, eD as scimTargetInputToWire, eE as scrubDirectoryConfig, eF as scrubDirectoryLinkResult, eG as scrubDirectorySyncStatus, eH as scrubSamlIdpCredential, eI as scrubSamlIdpCredentialPromotion, eJ as scrubSamlIdpInfo, eK as scrubSamlServiceProvider, eL as scrubSamlSpMetadataDraft, eM as scrubScimReconcileAccepted, eN as scrubScimTargetResponse, eO as scrubSsfStream, eP as serviceAccountCreatedResponseFromWire, eQ as setDirectoryConfigToWire, eR as ssfStreamInputToWire, eS as topologicalOrder, eT as updateDirectoryConfigToWire, eU as updateFederationConfigRequestToWire, eV as updateWebhookRequestToWire, eW as validate, eX as webauthnRequestJson, eY as withFederationConfigResponseDefaults, eZ as withRetry } from '../client-
|
|
3
|
-
export { A as AxiamClientOptions, D as DecisionMemo, F as FinishRequest, M as MAX_TTL_MS, S as SharedSession, T as TelemetryReporter, m as memoKey } from '../session-
|
|
1
|
+
import { P as ParseSamlSpMetadata, S as SamlServiceProvider, c as SamlServiceProviderInput, d as ScimTargetResponse, e as ScimTargetInput, D as DirectoryConfig, f as SetDirectoryConfig, g as SsfStream, h as SsfStreamInput, G as GrantSpec, i as GroupSpec, j as PermissionSpec, R as ResourceSpec, k as RoleSpec, l as ScopeSpec, m as ServiceAccountSpec, U as UserSpec, M as ManagementManifest } from '../client-C1kRISf8.js';
|
|
2
|
+
export { n as AcsEndpoint, o as ActorType, p as AddMemberRequest, q as AddServiceAccountMemberRequest, r as ApiProviderConfig, s as AppliedStep, t as ApplyReport, u as AssignRoleToGroupRequest, v as AssignRoleToServiceAccountRequest, w as AssignRoleToUserRequest, x as AttestationMode, y as AttributeMapping, z as AttributeSource, B as AuditApi, C as AuditListFilter, E as AuditListSystemFilter, F as AuditLogEntry, H as AuditOutcome, I as AuthnRequestParamsMode, A as AxiamClient, J as BASE_DELAY_MS, K as BindCertificate, L as CaCertificate, N as CaCertificatesApi, O as Certificate, Q as CertificatePolicy, T as CertificateStatus, V as CertificateType, X as CertificatesApi, Y as CertificationLevel, Z as Change, _ as CibaDeliveryMode, $ as CibaRequestSigningAlg, a0 as CimdPolicy, a1 as ClientAuthMethod, a2 as ClientProfile, a3 as ClientRegistration, a4 as ComplianceReportEntry, a5 as ConsentView, a6 as CreateCaCertificateRequest, a7 as CreateCertificateRequest, a8 as CreateFederationConfigRequest, a9 as CreateFederationConfigRequestWire, aa as CreateGroupRequest, ab as CreateIntermediateCaRequest, ac as CreateNetworkReplyProfileRequest, ad as CreateNetworkSegmentRequest, ae as CreateNotificationRuleRequest, af as CreateOAuth2ClientRequest, ag as CreatePermissionRequest, ah as CreatePgpKeyRequest, ai as CreateReactorRequest, aj as CreateRegistrationTokenRequest, ak as CreateRegistrationTokenResponse, al as CreateRegistrationTokenResponseWire, am as CreateResourceRequest, an as CreateRoleRequest, ao as CreateScimTokenRequest, ap as CreateScimTokenResponse, aq as CreateScimTokenResponseWire, ar as CreateScopeRequest, as as CreateServiceAccountRequest, at as CreateTenantRequest, au as CreateUserRequest, av as CreateUserRequestWire, aw as CreateWebhookRequest, ax as CreateWebhookRequestWire, ay as DeprovisionPolicy, az as DeviceToken, aA as DirectoryApi, aB as DirectoryKind, aC as DirectoryLinkResult, aD as DirectorySyncStatus, aE as EmailConfig, aF as EmailConfigApi, aG as EmailConfigOverride, aH as EmailTestResult, aI as EmailVerificationPolicy, aJ as EncryptRequest, aK as EncryptedExport, aL as FailurePolicy, aM as FederationApi, aN as FederationConfigResponse, aO as FederationLinkResponse, aP as GeneratedCaCertificate, aQ as GeneratedCaCertificateWire, aR as GeneratedCertificate, aS as GeneratedCertificateWire, aT as GeneratedPgpKey, aU as GeneratedPgpKeyWire, aV as GrantPermissionRequest, aW as GrantScopeConsent, aX as GrantedScope, aY as Group, aZ as GroupMapping, a_ as GroupsApi, a$ as HealthResponse, b0 as ImportCaCertificateRequest, b1 as ImportCaCertificateRequestWire, b2 as IssueSamlIdpCredential, b3 as KNOWN_SCIM_TARGET_AUTH_TYPES, b4 as KNOWN_SCIM_TARGET_SCOPE_TYPES, b5 as KeyAlgorithm, b6 as LinkDirectoryAccount, b7 as LockoutPolicy, b8 as MAX_ATTEMPTS, b9 as MAX_DELAY_MS, ba as ManagedBy, bb as ManagementNamespaces, bc as ManagementPlan, bd as ManifestApi, be as ManifestFailure, bf as MdsRefreshOutcome, bg as MdsStatusResponse, bh as MfaEnrollment, bi as MfaMethodResponse, bj as MfaMethodType, bk as MfaPolicy, bl as MigrateCustodyResponse, bm as MtlsTrustAnchorResponse, bn as NameIdFormat, bo as NamespaceScope, bp as NativeLoginTrustRequest, bq as NativeLoginTrustResponse, br as NetworkApi, bs as NetworkPolicyResponse, bt as NetworkPolicySpec, bu as NetworkProfileSpec, bv as NetworkReplyProfile, bw as NetworkReplyProfileInput, bx as NetworkSegmentKind, by as NetworkSegmentResponse, bz as NetworkSegmentSpec, bA as NetworkSpec, bB as NotificationEventType, bC as NotificationPolicy, bD as NotificationRuleResponse, bE as NotificationRulesApi, bF as OAuth2ClientCreatedResponse, bG as OAuth2ClientCreatedResponseWire, bH as OAuth2ClientResponse, bI as OAuth2Policy, bJ as Oauth2ClientsApi, bK as OidcAuthorizeRequest, bL as OidcAuthorizeResponse, bM as OidcCallbackRequest, bN as OidcCallbackResponse, bO as OidcPolicy, bP as OpaqueEnrollment, bQ as OpaqueEnrollmentPayload, bR as OpaquePolicy, bS as Organization, bT as OrganizationsApi, bU as Page, bV as PageRequest, bW as PasswordPolicy, bX as PasswordResetConfirmation, bY as PasswordResetContext, bZ as PasswordResetRequest, b_ as Permission, b$ as PermissionEffect, c0 as PermissionsApi, c1 as PgpKey, c2 as PgpKeyAlgorithm, c3 as PgpKeyPurpose, c4 as PgpKeyStatus, c5 as PgpKeysApi, c6 as PlannedAction, c7 as PlatformApi, c8 as PolicyResponse, c9 as PrivacyApi, ca as PrivacyPolicy, cb as ProviderConfig, cc as RadiusServiceType, cd as RadiusTerminationAction, ce as ReactorEventDescriptor, cf as ReactorMode, cg as ReactorResponse, ch as ReactorsApi, ci as ReadyResponse, cj as RefreshReuseResponse, ck as RegistrationTokenResponse, cl as ReplaceNetworkPolicyRequest, cm as ReplaceNetworkReplyProfileRequest, cn as ReplaceNetworkSegmentRequest, co as ResolvedPermissionGrant, cp as Resource, cq as ResourcesApi, cr as RetryOptions, cs as RetryPolicy, ct as Role, cu as RoleAssignment, cv as RoleBinding, cw as RoleGroupAssignment, cx as RoleServiceAccountAssignment, cy as RoleUserAssignment, cz as RolesApi, cA as RotateSecretResponse, cB as RotateSecretResponseWire, cC as SamlApi, cD as SamlBinding, cE as SamlIdpCredential, cF as SamlIdpCredentialPromotion, cG as SamlIdpCredentialStatus, cH as SamlIdpInfo, cI as SamlIdpSlot, cJ as SamlSpMetadataDraft, cK as ScimReconcileAccepted, cL as ScimTargetAuth, cM as ScimTargetDeliveryState, cN as ScimTargetInputWire, cO as ScimTargetScope, cP as ScimTargetsApi, cQ as ScimTokenResponse, cR as ScimTokenStatus, cS as ScimTokensApi, cT as Scope, cU as ScopesApi, cV as SecuritySettings, cW as ServiceAccountCreatedResponse, cX as ServiceAccountCreatedResponseWire, cY as ServiceAccountResponse, cZ as ServiceAccountsApi, c_ as SessionResponse, c$ as SetDirectoryConfigWire, d0 as SetMtlsTrustAnchor, d1 as SetOrgEmailConfig, d2 as SetOrgSettings, d3 as SettingsApi, d4 as SettingsScope, d5 as SignAuditBatchRequest, d6 as SignCertificateCsrRequest, d7 as SignIntermediateCsrRequest, d8 as SignedAuditBatch, d9 as SmtpConfig, da as SsfApi, db as SsfDeliveryMethod, dc as SsfEventType, dd as SsfStatusActor, de as SsfStreamInputWire, df as SsfStreamStatus, dg as SsfSubjectFormat, dh as StepOutcome, di as SubjectAltName, dj as Target, dk as Tenant, dl as TenantKind, dm as TenantSettingsOverride, dn as TenantStatus, dp as TenantsApi, dq as TokenExchangeTrustRequest, dr as TokenExchangeTrustResponse, ds as TokenPolicy, dt as UnknownAaguidAction, du as UpdateDirectoryConfig, dv as UpdateDirectoryConfigWire, dw as UpdateFederationConfigRequest, dx as UpdateFederationConfigRequestWire, dy as UpdateGroup, dz as UpdateNotificationRuleRequest, dA as UpdateOAuth2ClientRequest, dB as UpdateOrganizationRequest, dC as UpdatePermissionRequest, dD as UpdateReactorRequest, dE as UpdateResourceRequest, dF as UpdateRole, dG as UpdateScopeRequest, dH as UpdateServiceAccount, dI as UpdateTenant, dJ as UpdateUserRequest, dK as UpdateWebhookRequest, dL as UpdateWebhookRequestWire, dM as UserAttributeMap, dN as UserNameSource, dO as UserResponse, dP as UserStatus, dQ as UsersApi, dR as WebauthnAttestationPolicy, dS as WebauthnAuthenticationChallenge, dT as WebauthnAuthenticationResponse, dU as WebauthnCreationChallenge, dV as WebauthnCreationOptionsJson, b as WebauthnCredential, dW as WebauthnCredentialDescriptorJson, a as WebauthnLoginResult, dX as WebauthnPolicy, dY as WebauthnPolicyApi, dZ as WebauthnRegistrationChallenge, d_ as WebauthnRegistrationResponse, d$ as WebauthnRequestChallenge, e0 as WebauthnRequestOptionsJson, W as WebauthnWorkspace, e1 as WebhookResponse, e2 as WebhooksApi, e3 as assertKnownScimTargetAuth, e4 as assertKnownScimTargetScope, e5 as assertValidSubjectAltName, e6 as assertValidSubjectAltNameList, e7 as backoffMs, e8 as changedCount, e9 as changes, ea as clientRegistrationFromJson, eb as collectPages, ec as createFederationConfigRequestToWire, ed as createRegistrationTokenResponseFromWire, ee as createScimTokenResponseFromWire, ef as createUserRequestToWire, eg as createWebhookRequestToWire, eh as delayMs, ei as failure, ej as generatedCaCertificateFromWire, ek as generatedCertificateFromWire, el as generatedPgpKeyFromWire, em as hasMore, en as importCaCertificateRequestToWire, eo as inheritOf, ep as isComplete, eq as isConverged, er as managementNamespaces, es as normalizeSearch, et as oAuth2ClientCreatedResponseFromWire, eu as omitEmptyTenantScope, ev as omitNullMembers, ew as opaqueEnrollment, ex as opaqueEnrollmentForSelf, ey as pageQuery, ez as resourceKeyOf, eA as roleAssignmentInherits, eB as roleKeyOf, eC as rotateSecretResponseFromWire, eD as scimTargetInputToWire, eE as scrubDirectoryConfig, eF as scrubDirectoryLinkResult, eG as scrubDirectorySyncStatus, eH as scrubSamlIdpCredential, eI as scrubSamlIdpCredentialPromotion, eJ as scrubSamlIdpInfo, eK as scrubSamlServiceProvider, eL as scrubSamlSpMetadataDraft, eM as scrubScimReconcileAccepted, eN as scrubScimTargetResponse, eO as scrubSsfStream, eP as serviceAccountCreatedResponseFromWire, eQ as setDirectoryConfigToWire, eR as ssfStreamInputToWire, eS as topologicalOrder, eT as updateDirectoryConfigToWire, eU as updateFederationConfigRequestToWire, eV as updateWebhookRequestToWire, eW as validate, eX as webauthnRequestJson, eY as withFederationConfigResponseDefaults, eZ as withRetry } from '../client-C1kRISf8.js';
|
|
3
|
+
export { A as AxiamClientOptions, D as DecisionMemo, F as FinishRequest, M as MAX_TTL_MS, S as SharedSession, T as TelemetryReporter, m as memoKey } from '../session-Z-6IyaSU.js';
|
|
4
4
|
export { C as ConfigClampedEvent, O as Outcome, R as RefreshEvent, b as RefreshRole, c as RequestEndEvent, d as RequestStartEvent, e as RetryEvent, S as SsfUnjudgedCategory, f as SsfUnjudgedEvent, a as TelemetryDispatcher, g as TelemetryEvent, T as TelemetryHook } from '../telemetry-Du0-zS5f.js';
|
|
5
5
|
export { A as AccessCheck, a as AccessDecision, b as AxiamUserInfo, L as LoginResult } from '../types-BOX-6Srv.js';
|
|
6
6
|
export { W as WebauthnFailure, c as classifyWebauthnError, w as webauthnErrorMessage } from '../webauthnErrors-m1LZiaRy.js';
|
package/dist/rest/index.js
CHANGED
|
@@ -594,6 +594,7 @@ var SharedSession = class {
|
|
|
594
594
|
this.expectedIssuer = options.expectedIssuer;
|
|
595
595
|
this.expectedAudience = options.expectedAudience;
|
|
596
596
|
this.presentsClientCertificate = options.clientCert !== void 0 && options.clientKey !== void 0;
|
|
597
|
+
registerTlsOptions(this, options);
|
|
597
598
|
this.resolvedTenantId = options.tenantId;
|
|
598
599
|
this.resolvedOrgId = options.orgId;
|
|
599
600
|
this.refreshGuard = createRefreshGuard();
|
|
@@ -645,7 +646,7 @@ var SharedSession = class {
|
|
|
645
646
|
}
|
|
646
647
|
/**
|
|
647
648
|
* Host-isolation guard (3A, defense in depth): returns `true` when `url`
|
|
648
|
-
* targets
|
|
649
|
+
* targets an origin (scheme, host and port) other than this session's base origin — an absolute
|
|
649
650
|
* third-party URL, or a redirect that axios/the browser resolved off-origin.
|
|
650
651
|
* The tenant identifier and CSRF token must never be attached to such a
|
|
651
652
|
* request. A relative/host-less `url` (the normal case, merged against
|
|
@@ -659,7 +660,7 @@ var SharedSession = class {
|
|
|
659
660
|
}
|
|
660
661
|
try {
|
|
661
662
|
const target = new URL(url, this.baseUrl);
|
|
662
|
-
return target.
|
|
663
|
+
return target.origin !== new URL(this.baseUrl).origin;
|
|
663
664
|
} catch {
|
|
664
665
|
return true;
|
|
665
666
|
}
|
|
@@ -721,6 +722,19 @@ function resolveTenantHeaderValue(options) {
|
|
|
721
722
|
"AxiamClient construction requires a tenant: provide either tenantSlug or tenantId (CONTRACT.md \xA75)."
|
|
722
723
|
);
|
|
723
724
|
}
|
|
725
|
+
function agentTlsOptions(tls) {
|
|
726
|
+
if (tls === void 0) return {};
|
|
727
|
+
if (tls.ca === void 0) {
|
|
728
|
+
return { ...tls.cert !== void 0 ? { cert: tls.cert } : {}, ...tls.key !== void 0 ? { key: tls.key } : {} };
|
|
729
|
+
}
|
|
730
|
+
const tlsMod = loadNodeBuiltin("node:tls");
|
|
731
|
+
const secureContext = tlsMod.createSecureContext({
|
|
732
|
+
...tls.cert !== void 0 ? { cert: tls.cert } : {},
|
|
733
|
+
...tls.key !== void 0 ? { key: tls.key } : {}
|
|
734
|
+
});
|
|
735
|
+
secureContext.context.addCACert(tls.ca);
|
|
736
|
+
return { secureContext };
|
|
737
|
+
}
|
|
724
738
|
function loadNodeBuiltin(id) {
|
|
725
739
|
const getBuiltinModule = process.getBuiltinModule;
|
|
726
740
|
if (typeof getBuiltinModule === "function") {
|
|
@@ -737,6 +751,15 @@ function loadNodeBuiltin(id) {
|
|
|
737
751
|
function loadNodeHttps() {
|
|
738
752
|
return loadNodeBuiltin("node:https");
|
|
739
753
|
}
|
|
754
|
+
var sessionTlsOptions = /* @__PURE__ */ new WeakMap();
|
|
755
|
+
function registerTlsOptions(session, options) {
|
|
756
|
+
if (options.customCa === void 0 && options.clientCert === void 0) return;
|
|
757
|
+
try {
|
|
758
|
+
const tls = resolveNodeTlsOptions(options);
|
|
759
|
+
if (tls !== void 0) sessionTlsOptions.set(session, tls);
|
|
760
|
+
} catch {
|
|
761
|
+
}
|
|
762
|
+
}
|
|
740
763
|
function tlsOptionsFrom(customCa, identity) {
|
|
741
764
|
if (!customCa) {
|
|
742
765
|
if (!identity) {
|
|
@@ -752,6 +775,9 @@ function tlsOptionsFrom(customCa, identity) {
|
|
|
752
775
|
...identity ? { cert: identity.cert, key: identity.key.expose() } : {}
|
|
753
776
|
};
|
|
754
777
|
}
|
|
778
|
+
function resolveNodeTlsOptions(options) {
|
|
779
|
+
return tlsOptionsFrom(options.customCa, resolveClientIdentity(options));
|
|
780
|
+
}
|
|
755
781
|
function maybeBuildHttpsAgent(customCa, identity) {
|
|
756
782
|
const tls = tlsOptionsFrom(customCa, identity);
|
|
757
783
|
if (!tls) {
|
|
@@ -761,7 +787,7 @@ function maybeBuildHttpsAgent(customCa, identity) {
|
|
|
761
787
|
return void 0;
|
|
762
788
|
}
|
|
763
789
|
const https = loadNodeHttps();
|
|
764
|
-
return new https.Agent(tls);
|
|
790
|
+
return new https.Agent(agentTlsOptions(tls));
|
|
765
791
|
}
|
|
766
792
|
function createSession(options) {
|
|
767
793
|
const tenantHeaderValue = resolveTenantHeaderValue(options);
|