axiam-sdk 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -2
- package/dist/amqp/index.d.cts +3 -2
- package/dist/amqp/index.d.ts +3 -2
- package/dist/{authzCore-BQfX9qxN.d.cts → authzCore-CqXzLNmT.d.cts} +4 -3
- package/dist/{authzCore-BlSHwGnW.d.ts → authzCore-D-hquWSI.d.ts} +4 -3
- package/dist/browser/index.d.cts +8 -7
- package/dist/browser/index.d.ts +8 -7
- package/dist/{client-7ZKtfXW-.d.cts → client-BGFn1VQh.d.cts} +34 -24
- package/dist/{client-Putxo-yi.d.ts → client-DrQZZ1js.d.ts} +34 -24
- package/dist/{cookieJar-Cw6Zdeec.d.ts → cookieJar-BTmpjXZe.d.ts} +9 -3
- package/dist/{cookieJar-DkGcIr-i.d.cts → cookieJar-BqYOnNN-.d.cts} +9 -3
- package/dist/{errors-DMIlw2lN.d.ts → errors-DZ3k8a8i.d.cts} +2 -1
- package/dist/{errors-DMIlw2lN.d.cts → errors-DZ3k8a8i.d.ts} +2 -1
- package/dist/{errors-VpViVRSx.d.ts → errors-RvGlTyUj.d.cts} +3 -2
- package/dist/{errors-CtP_lviy.d.cts → errors-dlGXAsbh.d.ts} +3 -2
- package/dist/grpc/index.d.cts +10 -9
- package/dist/grpc/index.d.ts +10 -9
- package/dist/grpc/index.js +68 -7
- package/dist/grpc/index.js.map +1 -1
- package/dist/grpc/index.mjs +68 -7
- package/dist/grpc/index.mjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +60 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +60 -7
- package/dist/index.mjs.map +1 -1
- package/dist/{jwks-BR55d7-Z.d.cts → jwks-CTVpOWzI.d.cts} +2 -1
- package/dist/{jwks-BR55d7-Z.d.ts → jwks-CTVpOWzI.d.ts} +2 -1
- package/dist/middleware/index.d.cts +13 -12
- package/dist/middleware/index.d.ts +13 -12
- package/dist/middleware/index.js +176 -31
- package/dist/middleware/index.js.map +1 -1
- package/dist/middleware/index.mjs +176 -31
- package/dist/middleware/index.mjs.map +1 -1
- package/dist/nestjs/index.d.cts +5 -4
- package/dist/nestjs/index.d.ts +5 -4
- package/dist/node/index.d.cts +10 -9
- package/dist/node/index.d.ts +10 -9
- package/dist/node/index.js +215 -29
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +215 -29
- package/dist/node/index.mjs.map +1 -1
- package/dist/{oidcState-Cz6erz0g.d.cts → oidcState-BaJ-SM_R.d.cts} +41 -9
- package/dist/{oidcState-zGt6VU6v.d.ts → oidcState-C3VLn3eD.d.ts} +41 -9
- package/dist/rest/index.d.cts +10 -9
- package/dist/rest/index.d.ts +10 -9
- package/dist/rest/index.js +60 -7
- package/dist/rest/index.js.map +1 -1
- package/dist/rest/index.mjs +60 -7
- package/dist/rest/index.mjs.map +1 -1
- package/dist/{revocationFeed-CDoD7Twr.d.cts → revocationFeed-KQhvMMl8.d.cts} +2 -1
- package/dist/{revocationFeed-CDoD7Twr.d.ts → revocationFeed-KQhvMMl8.d.ts} +2 -1
- package/dist/{session-CeG6P9GO.d.ts → session-B03NsqVs.d.ts} +19 -2
- package/dist/{session-BmjEMowX.d.cts → session-plDr4lFu.d.cts} +19 -2
- package/dist/{telemetry--0DwnNjV.d.cts → telemetry-Du0-zS5f.d.cts} +2 -1
- package/dist/{telemetry--0DwnNjV.d.ts → telemetry-Du0-zS5f.d.ts} +2 -1
- package/dist/{webauthnErrors-fLgfOflO.d.cts → webauthnErrors-m1LZiaRy.d.cts} +2 -1
- package/dist/{webauthnErrors-fLgfOflO.d.ts → webauthnErrors-m1LZiaRy.d.ts} +2 -1
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { KeyObject } from 'node:crypto';
|
|
2
|
-
import { O as OAuthProtocolError } from './errors-
|
|
2
|
+
import { O as OAuthProtocolError } from './errors-DZ3k8a8i.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-plDr4lFu.cjs';
|
|
5
|
+
import { I as IdTokenClaims } from './jwks-CTVpOWzI.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* RFC 8705 §5 `mtls_endpoint_aliases` — the seven endpoints re-based on the
|
|
@@ -735,6 +735,12 @@ interface DeviceLoginParams {
|
|
|
735
735
|
* it: what the device does with it is the application's decision.
|
|
736
736
|
*/
|
|
737
737
|
onUserCode: (authorization: DeviceAuthorization) => void | Promise<void>;
|
|
738
|
+
/**
|
|
739
|
+
* The clock the polling loop waits on and measures the `expires_in` deadline
|
|
740
|
+
* against (§14.2 rule 4); defaults to `Date.now` and `setTimeout`. Injectable
|
|
741
|
+
* so the schedule is testable without sleeping.
|
|
742
|
+
*/
|
|
743
|
+
clock?: CibaClock;
|
|
738
744
|
}
|
|
739
745
|
/**
|
|
740
746
|
* Arguments to `tokenExchange` (CONTRACT.md §15.1).
|
|
@@ -1195,6 +1201,17 @@ declare class PollSchedule {
|
|
|
1195
1201
|
constructor(intervalSecs: number, expiresInSecs: number);
|
|
1196
1202
|
/** The current inter-poll delay, in seconds. */
|
|
1197
1203
|
get intervalSecs(): number;
|
|
1204
|
+
/**
|
|
1205
|
+
* The delay before the next poll, in seconds: the interval, or the pending
|
|
1206
|
+
* `Retry-After` when that is longer (a minimum, §14.2 rule 9).
|
|
1207
|
+
*/
|
|
1208
|
+
get waitSecs(): number;
|
|
1209
|
+
/**
|
|
1210
|
+
* Record a `429 rate_limit_exceeded` (§14.2 rule 9, contract 1.64): the next
|
|
1211
|
+
* wait lasts at least `retryAfterSecs` and stands in for one interval. The
|
|
1212
|
+
* interval itself is **not** raised — only the `400 slow_down` does that.
|
|
1213
|
+
*/
|
|
1214
|
+
rateLimited(retryAfterSecs: number | undefined): void;
|
|
1198
1215
|
/** Apply one `slow_down` (§14.2 rule 1): **cumulative, never reset.** */
|
|
1199
1216
|
slowDown(): void;
|
|
1200
1217
|
/**
|
|
@@ -1626,15 +1643,20 @@ declare class OidcClient {
|
|
|
1626
1643
|
* The raw single call, so an application driving its own loop (a UI
|
|
1627
1644
|
* rendering a countdown, say) can. The five RFC 8628 §3.5 answers surface as
|
|
1628
1645
|
* {@link OAuthProtocolError} — `authorization_pending` and `slow_down`
|
|
1629
|
-
* included — so a hand-rolled loop
|
|
1630
|
-
*
|
|
1646
|
+
* included — so a hand-rolled loop dispatches on the same answers
|
|
1647
|
+
* {@link deviceLogin} does. Most callers want {@link deviceLogin}.
|
|
1631
1648
|
*
|
|
1632
1649
|
* Client authentication is the one {@link deviceAuthorize} describes
|
|
1633
1650
|
* (contract 1.62, §14.1 rule 2): a configured `clientSecret` is sent as
|
|
1634
1651
|
* `client_secret` in the form body, never as `Authorization: Basic`; a public
|
|
1635
1652
|
* client sends none; `client_id` is sent on **every** poll (§14.1 rule 3). A
|
|
1636
1653
|
* `401 invalid_client` surfaces as {@link OAuthProtocolError}, is not retried
|
|
1637
|
-
* and does not enter the §9 refresh guard (§14.2 rule 5).
|
|
1654
|
+
* and does not enter the §9 refresh guard (§14.2 rule 5). Any `429`
|
|
1655
|
+
* is an {@link OAuthProtocolError} with `error == 'rate_limit_exceeded'` too
|
|
1656
|
+
* (rule 9, whatever its body names) — never `slow_down`; {@link deviceLogin}
|
|
1657
|
+
* waits it out. Its `Retry-After` is not exposed, so a hand-rolled loop
|
|
1658
|
+
* should wait at least one interval on it without raising the interval, or
|
|
1659
|
+
* use {@link deviceLogin}. This SDK ships no
|
|
1638
1660
|
* DPoP proof generator, so it cannot drive a client registered for DPoP; it
|
|
1639
1661
|
* surfaces that client's refusal as the same `invalid_client`.
|
|
1640
1662
|
*/
|
|
@@ -1657,7 +1679,14 @@ declare class OidcClient {
|
|
|
1657
1679
|
* even if the server has not yet said `expired_token`. A 5xx or transport
|
|
1658
1680
|
* failure mid-poll is **not** terminal (rule 6) — the loop absorbs it and
|
|
1659
1681
|
* tries again, bounded by the same deadline, because a server restart must
|
|
1660
|
-
* not lose a grant the user has already approved
|
|
1682
|
+
* not lose a grant the user has already approved: that bound holds for the
|
|
1683
|
+
* §16 retry inside a poll too, whose waits are served on the loop's clock and
|
|
1684
|
+
* never reach the deadline (`Retry-After` included; the typed `expired_token`
|
|
1685
|
+
* is raised at once, C164-36). A `429
|
|
1686
|
+
* rate_limit_exceeded` (rule 9, contract 1.64) is not terminal either: the
|
|
1687
|
+
* loop waits `Retry-After` as a minimum (capped at the `expires_in`
|
|
1688
|
+
* deadline), counts the wait as one interval, does **not** raise the
|
|
1689
|
+
* interval, and polls again.
|
|
1661
1690
|
*/
|
|
1662
1691
|
deviceLogin(params: DeviceLoginParams): Promise<OidcTokenSet>;
|
|
1663
1692
|
/**
|
|
@@ -1880,7 +1909,9 @@ declare class OidcClient {
|
|
|
1880
1909
|
* the interval and polls again.
|
|
1881
1910
|
* - Polling stops at `receivedAt + expiresIn`, even if the server has not
|
|
1882
1911
|
* said `expired_token`: when the next wait would reach the deadline, the
|
|
1883
|
-
* same `expired_token` is raised locally, without a request.
|
|
1912
|
+
* same `expired_token` is raised locally, without a request. A §16 retry
|
|
1913
|
+
* inside {@link cibaPoll} is bounded the same way (§34.2 P10): a wait that
|
|
1914
|
+
* would reach the deadline is not served and nothing is sent after it.
|
|
1884
1915
|
* - `access_denied`, `expired_token`, `invalid_grant` and any other answer
|
|
1885
1916
|
* end the loop.
|
|
1886
1917
|
*
|
|
@@ -2038,4 +2069,5 @@ declare class MemoryOidcStateStore implements OidcStateStore {
|
|
|
2038
2069
|
consume(state: string): Promise<OidcStateEntry | undefined>;
|
|
2039
2070
|
}
|
|
2040
2071
|
|
|
2041
|
-
export { PollSchedule as $, ACCESS_TOKEN_TYPE as A, BACKCHANNEL_LOGOUT_EVENT as B, CIBA_GRANT_TYPE as C, DEFAULT_CIBA_INTERVAL_SECS as D,
|
|
2072
|
+
export { PollSchedule as $, ACCESS_TOKEN_TYPE as A, BACKCHANNEL_LOGOUT_EVENT as B, CIBA_GRANT_TYPE as C, DEFAULT_CIBA_INTERVAL_SECS as D, MemoryOidcStateStore as G, HANDOFF_CODE_TTL_SECS as H, JWT_TOKEN_TYPE as J, MAX_LOGOUT_TOKEN_AGE_SECS as M, OIDC_STATE_TTL_MS as O, OidcClient as P, PROTOCOL_OAUTH2 as Y, PROTOCOL_OIDC_CONNECT as Z, PROTOCOL_SAML as _, SIGNED_REQUEST_LIFETIME_SECS as a6, SLOW_DOWN_INCREMENT_SECS as a7, SSO_CALLBACK_PATH as a8, SSO_HANDOFF_PATH as a9, SSO_OAUTH2_CALLBACK_PATH as aa, SSO_OAUTH2_START_PATH as ab, SSO_PROVIDERS_PATH as ac, SSO_START_PATH as ad, TOKEN_EXCHANGE_GRANT_TYPE as am, UMA_CLAIM_TOKEN_FORMAT as ao, UMA_PROTECTION_SCOPE as ap, UMA_TICKET_GRANT_TYPE as aq, createOidcClient as au, isAccessDenied as av, isExpiredToken as aw, normalizeOrigin as ax, umaChallengeHeader as ay, umaParseChallenge 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, MIN_DISCOVERY_TTL_MS as z };
|
|
2073
|
+
export type { ExchangedToken as E, FederationProvider as F, IntrospectParams as I, MtlsEndpointAliases as K, LoginClientCredentialsParams as L, OidcBeginParams as N, OidcClientOptions as Q, OidcConfiguration as R, OidcExchangeParams as S, OidcParParams as T, OidcRefreshParams as U, OidcStateEntry as V, OidcStateStore as W, OidcTokenSet as X, AuthorizationRequest as a, PushedAuthorizationRequest as a0, RequestedPermission as a1, RequestingPartyToken as a2, ResourceSet as a3, RevokeParams as a4, RptPermission as a5, SsoCompleteHandoffParams as ae, SsoCompleteOauth2Params as af, SsoCompleteParams as ag, SsoCompleteResult as ah, SsoProvidersParams as ai, SsoStartOauth2Params as aj, SsoStartParams as ak, SsoStartResult as al, TokenExchangeParams as an, UmaChallenge as ar, UmaExchangeTicketParams as as, VerifiedLogoutToken as at, 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, LogoutUrlParams as y };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { KeyObject } from 'node:crypto';
|
|
2
|
-
import { O as OAuthProtocolError } from './errors-
|
|
2
|
+
import { O as OAuthProtocolError } from './errors-DZ3k8a8i.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-B03NsqVs.js';
|
|
5
|
+
import { I as IdTokenClaims } from './jwks-CTVpOWzI.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* RFC 8705 §5 `mtls_endpoint_aliases` — the seven endpoints re-based on the
|
|
@@ -735,6 +735,12 @@ interface DeviceLoginParams {
|
|
|
735
735
|
* it: what the device does with it is the application's decision.
|
|
736
736
|
*/
|
|
737
737
|
onUserCode: (authorization: DeviceAuthorization) => void | Promise<void>;
|
|
738
|
+
/**
|
|
739
|
+
* The clock the polling loop waits on and measures the `expires_in` deadline
|
|
740
|
+
* against (§14.2 rule 4); defaults to `Date.now` and `setTimeout`. Injectable
|
|
741
|
+
* so the schedule is testable without sleeping.
|
|
742
|
+
*/
|
|
743
|
+
clock?: CibaClock;
|
|
738
744
|
}
|
|
739
745
|
/**
|
|
740
746
|
* Arguments to `tokenExchange` (CONTRACT.md §15.1).
|
|
@@ -1195,6 +1201,17 @@ declare class PollSchedule {
|
|
|
1195
1201
|
constructor(intervalSecs: number, expiresInSecs: number);
|
|
1196
1202
|
/** The current inter-poll delay, in seconds. */
|
|
1197
1203
|
get intervalSecs(): number;
|
|
1204
|
+
/**
|
|
1205
|
+
* The delay before the next poll, in seconds: the interval, or the pending
|
|
1206
|
+
* `Retry-After` when that is longer (a minimum, §14.2 rule 9).
|
|
1207
|
+
*/
|
|
1208
|
+
get waitSecs(): number;
|
|
1209
|
+
/**
|
|
1210
|
+
* Record a `429 rate_limit_exceeded` (§14.2 rule 9, contract 1.64): the next
|
|
1211
|
+
* wait lasts at least `retryAfterSecs` and stands in for one interval. The
|
|
1212
|
+
* interval itself is **not** raised — only the `400 slow_down` does that.
|
|
1213
|
+
*/
|
|
1214
|
+
rateLimited(retryAfterSecs: number | undefined): void;
|
|
1198
1215
|
/** Apply one `slow_down` (§14.2 rule 1): **cumulative, never reset.** */
|
|
1199
1216
|
slowDown(): void;
|
|
1200
1217
|
/**
|
|
@@ -1626,15 +1643,20 @@ declare class OidcClient {
|
|
|
1626
1643
|
* The raw single call, so an application driving its own loop (a UI
|
|
1627
1644
|
* rendering a countdown, say) can. The five RFC 8628 §3.5 answers surface as
|
|
1628
1645
|
* {@link OAuthProtocolError} — `authorization_pending` and `slow_down`
|
|
1629
|
-
* included — so a hand-rolled loop
|
|
1630
|
-
*
|
|
1646
|
+
* included — so a hand-rolled loop dispatches on the same answers
|
|
1647
|
+
* {@link deviceLogin} does. Most callers want {@link deviceLogin}.
|
|
1631
1648
|
*
|
|
1632
1649
|
* Client authentication is the one {@link deviceAuthorize} describes
|
|
1633
1650
|
* (contract 1.62, §14.1 rule 2): a configured `clientSecret` is sent as
|
|
1634
1651
|
* `client_secret` in the form body, never as `Authorization: Basic`; a public
|
|
1635
1652
|
* client sends none; `client_id` is sent on **every** poll (§14.1 rule 3). A
|
|
1636
1653
|
* `401 invalid_client` surfaces as {@link OAuthProtocolError}, is not retried
|
|
1637
|
-
* and does not enter the §9 refresh guard (§14.2 rule 5).
|
|
1654
|
+
* and does not enter the §9 refresh guard (§14.2 rule 5). Any `429`
|
|
1655
|
+
* is an {@link OAuthProtocolError} with `error == 'rate_limit_exceeded'` too
|
|
1656
|
+
* (rule 9, whatever its body names) — never `slow_down`; {@link deviceLogin}
|
|
1657
|
+
* waits it out. Its `Retry-After` is not exposed, so a hand-rolled loop
|
|
1658
|
+
* should wait at least one interval on it without raising the interval, or
|
|
1659
|
+
* use {@link deviceLogin}. This SDK ships no
|
|
1638
1660
|
* DPoP proof generator, so it cannot drive a client registered for DPoP; it
|
|
1639
1661
|
* surfaces that client's refusal as the same `invalid_client`.
|
|
1640
1662
|
*/
|
|
@@ -1657,7 +1679,14 @@ declare class OidcClient {
|
|
|
1657
1679
|
* even if the server has not yet said `expired_token`. A 5xx or transport
|
|
1658
1680
|
* failure mid-poll is **not** terminal (rule 6) — the loop absorbs it and
|
|
1659
1681
|
* tries again, bounded by the same deadline, because a server restart must
|
|
1660
|
-
* not lose a grant the user has already approved
|
|
1682
|
+
* not lose a grant the user has already approved: that bound holds for the
|
|
1683
|
+
* §16 retry inside a poll too, whose waits are served on the loop's clock and
|
|
1684
|
+
* never reach the deadline (`Retry-After` included; the typed `expired_token`
|
|
1685
|
+
* is raised at once, C164-36). A `429
|
|
1686
|
+
* rate_limit_exceeded` (rule 9, contract 1.64) is not terminal either: the
|
|
1687
|
+
* loop waits `Retry-After` as a minimum (capped at the `expires_in`
|
|
1688
|
+
* deadline), counts the wait as one interval, does **not** raise the
|
|
1689
|
+
* interval, and polls again.
|
|
1661
1690
|
*/
|
|
1662
1691
|
deviceLogin(params: DeviceLoginParams): Promise<OidcTokenSet>;
|
|
1663
1692
|
/**
|
|
@@ -1880,7 +1909,9 @@ declare class OidcClient {
|
|
|
1880
1909
|
* the interval and polls again.
|
|
1881
1910
|
* - Polling stops at `receivedAt + expiresIn`, even if the server has not
|
|
1882
1911
|
* said `expired_token`: when the next wait would reach the deadline, the
|
|
1883
|
-
* same `expired_token` is raised locally, without a request.
|
|
1912
|
+
* same `expired_token` is raised locally, without a request. A §16 retry
|
|
1913
|
+
* inside {@link cibaPoll} is bounded the same way (§34.2 P10): a wait that
|
|
1914
|
+
* would reach the deadline is not served and nothing is sent after it.
|
|
1884
1915
|
* - `access_denied`, `expired_token`, `invalid_grant` and any other answer
|
|
1885
1916
|
* end the loop.
|
|
1886
1917
|
*
|
|
@@ -2038,4 +2069,5 @@ declare class MemoryOidcStateStore implements OidcStateStore {
|
|
|
2038
2069
|
consume(state: string): Promise<OidcStateEntry | undefined>;
|
|
2039
2070
|
}
|
|
2040
2071
|
|
|
2041
|
-
export { PollSchedule as $, ACCESS_TOKEN_TYPE as A, BACKCHANNEL_LOGOUT_EVENT as B, CIBA_GRANT_TYPE as C, DEFAULT_CIBA_INTERVAL_SECS as D,
|
|
2072
|
+
export { PollSchedule as $, ACCESS_TOKEN_TYPE as A, BACKCHANNEL_LOGOUT_EVENT as B, CIBA_GRANT_TYPE as C, DEFAULT_CIBA_INTERVAL_SECS as D, MemoryOidcStateStore as G, HANDOFF_CODE_TTL_SECS as H, JWT_TOKEN_TYPE as J, MAX_LOGOUT_TOKEN_AGE_SECS as M, OIDC_STATE_TTL_MS as O, OidcClient as P, PROTOCOL_OAUTH2 as Y, PROTOCOL_OIDC_CONNECT as Z, PROTOCOL_SAML as _, SIGNED_REQUEST_LIFETIME_SECS as a6, SLOW_DOWN_INCREMENT_SECS as a7, SSO_CALLBACK_PATH as a8, SSO_HANDOFF_PATH as a9, SSO_OAUTH2_CALLBACK_PATH as aa, SSO_OAUTH2_START_PATH as ab, SSO_PROVIDERS_PATH as ac, SSO_START_PATH as ad, TOKEN_EXCHANGE_GRANT_TYPE as am, UMA_CLAIM_TOKEN_FORMAT as ao, UMA_PROTECTION_SCOPE as ap, UMA_TICKET_GRANT_TYPE as aq, createOidcClient as au, isAccessDenied as av, isExpiredToken as aw, normalizeOrigin as ax, umaChallengeHeader as ay, umaParseChallenge 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, MIN_DISCOVERY_TTL_MS as z };
|
|
2073
|
+
export type { ExchangedToken as E, FederationProvider as F, IntrospectParams as I, MtlsEndpointAliases as K, LoginClientCredentialsParams as L, OidcBeginParams as N, OidcClientOptions as Q, OidcConfiguration as R, OidcExchangeParams as S, OidcParParams as T, OidcRefreshParams as U, OidcStateEntry as V, OidcStateStore as W, OidcTokenSet as X, AuthorizationRequest as a, PushedAuthorizationRequest as a0, RequestedPermission as a1, RequestingPartyToken as a2, ResourceSet as a3, RevokeParams as a4, RptPermission as a5, SsoCompleteHandoffParams as ae, SsoCompleteOauth2Params as af, SsoCompleteParams as ag, SsoCompleteResult as ah, SsoProvidersParams as ai, SsoStartOauth2Params as aj, SsoStartParams as ak, SsoStartResult as al, TokenExchangeParams as an, UmaChallenge as ar, UmaExchangeTicketParams as as, VerifiedLogoutToken as at, 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, LogoutUrlParams as y };
|
package/dist/rest/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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 NetworkApi, bq as NetworkPolicyResponse, br as NetworkPolicySpec, bs as NetworkProfileSpec, bt as NetworkReplyProfile, bu as NetworkReplyProfileInput, bv as NetworkSegmentKind, bw as NetworkSegmentResponse, bx as NetworkSegmentSpec, by as NetworkSpec, bz as NotificationEventType, bA as NotificationPolicy, bB as NotificationRuleResponse, bC as NotificationRulesApi, bD as OAuth2ClientCreatedResponse, bE as OAuth2ClientCreatedResponseWire, bF as OAuth2ClientResponse, bG as Oauth2ClientsApi, bH as OidcAuthorizeRequest, bI as OidcAuthorizeResponse, bJ as OidcCallbackRequest, bK as OidcCallbackResponse, bL as OidcPolicy, bM as OpaqueEnrollment, bN as OpaqueEnrollmentPayload, bO as OpaquePolicy, bP as Organization, bQ as OrganizationsApi, bR as Page, bS as PageRequest, bT as PasswordPolicy, bU as PasswordResetConfirmation, bV as PasswordResetContext, bW as PasswordResetRequest, bX as Permission, bY as PermissionEffect, bZ as PermissionsApi, b_ as PgpKey, b$ as PgpKeyAlgorithm, c0 as PgpKeyPurpose, c1 as PgpKeyStatus, c2 as PgpKeysApi, c3 as PlannedAction, c4 as PlatformApi, c5 as PolicyResponse, c6 as PrivacyApi, c7 as PrivacyPolicy, c8 as ProviderConfig, c9 as RadiusServiceType, ca as RadiusTerminationAction, cb as ReactorEventDescriptor, cc as ReactorMode, cd as ReactorResponse, ce as ReactorsApi, cf as ReadyResponse, cg as RegistrationTokenResponse, ch as ReplaceNetworkPolicyRequest, ci as ReplaceNetworkReplyProfileRequest, cj as ReplaceNetworkSegmentRequest, ck as ResolvedPermissionGrant, cl as Resource, cm as ResourcesApi, cn as RetryOptions, co as RetryPolicy, cp as Role, cq as RoleAssignment, cr as RoleBinding, cs as RoleGroupAssignment, ct as RoleServiceAccountAssignment, cu as RoleUserAssignment, cv as RolesApi, cw as RotateSecretResponse, cx as RotateSecretResponseWire, cy as SamlApi, cz as SamlBinding, cA as SamlIdpCredential, cB as SamlIdpCredentialPromotion, cC as SamlIdpCredentialStatus, cD as SamlIdpInfo, cE as SamlIdpSlot, cF as SamlSpMetadataDraft, cG as ScimReconcileAccepted, cH as ScimTargetAuth, cI as ScimTargetDeliveryState, cJ as ScimTargetInputWire, cK as ScimTargetScope, cL as ScimTargetsApi, cM as ScimTokenResponse, cN as ScimTokenStatus, cO as ScimTokensApi, cP as Scope, cQ as ScopesApi, cR as SecuritySettings, cS as ServiceAccountCreatedResponse, cT as ServiceAccountCreatedResponseWire, cU as ServiceAccountResponse, cV as ServiceAccountsApi, cW as SessionResponse, cX as SetDirectoryConfigWire, cY as SetMtlsTrustAnchor, cZ as SetOrgEmailConfig, c_ as SetOrgSettings, c$ as SettingsApi, d0 as SettingsScope, d1 as SignAuditBatchRequest, d2 as SignCertificateCsrRequest, d3 as SignIntermediateCsrRequest, d4 as SignedAuditBatch, d5 as SmtpConfig, d6 as SsfApi, d7 as SsfDeliveryMethod, d8 as SsfEventType, d9 as SsfStatusActor, da as SsfStreamInputWire, db as SsfStreamStatus, dc as SsfSubjectFormat, dd as StepOutcome, de as SubjectAltName, df as Target, dg as Tenant, dh as TenantKind, di as TenantSettingsOverride, dj as TenantStatus, dk as TenantsApi, dl as TokenExchangeTrustRequest, dm as TokenExchangeTrustResponse, dn as TokenPolicy, dp as UnknownAaguidAction, dq as UpdateDirectoryConfig, dr as UpdateDirectoryConfigWire, ds as UpdateFederationConfigRequest, dt as UpdateFederationConfigRequestWire, du as UpdateGroup, dv as UpdateNotificationRuleRequest, dw as UpdateOAuth2ClientRequest, dx as UpdateOrganizationRequest, dy as UpdatePermissionRequest, dz as UpdateReactorRequest, dA as UpdateResourceRequest, dB as UpdateRole, dC as UpdateScopeRequest, dD as UpdateServiceAccount, dE as UpdateTenant, dF as UpdateUserRequest, dG as UpdateWebhookRequest, dH as UpdateWebhookRequestWire, dI as UserAttributeMap, dJ as UserNameSource, dK as UserResponse, dL as UserStatus, dM as UsersApi, dN as WebauthnAttestationPolicy, dO as WebauthnAuthenticationChallenge, dP as WebauthnAuthenticationResponse, dQ as WebauthnCreationChallenge, dR as WebauthnCreationOptionsJson, b as WebauthnCredential, dS as WebauthnCredentialDescriptorJson, a as WebauthnLoginResult, dT as WebauthnPolicy, dU as WebauthnPolicyApi, dV as WebauthnRegistrationChallenge, dW as WebauthnRegistrationResponse, dX as WebauthnRequestChallenge, dY as WebauthnRequestOptionsJson, W as WebauthnWorkspace, dZ as WebhookResponse, d_ as WebhooksApi, d$ as assertKnownScimTargetAuth, e0 as assertKnownScimTargetScope, e1 as assertValidSubjectAltName, e2 as assertValidSubjectAltNameList, e3 as backoffMs, e4 as changedCount, e5 as changes, e6 as clientRegistrationFromJson, e7 as collectPages, e8 as createFederationConfigRequestToWire, e9 as createRegistrationTokenResponseFromWire, ea as createScimTokenResponseFromWire, eb as createUserRequestToWire, ec as createWebhookRequestToWire, ed as delayMs, ee as failure, ef as generatedCaCertificateFromWire, eg as generatedCertificateFromWire, eh as generatedPgpKeyFromWire, ei as hasMore, ej as importCaCertificateRequestToWire, ek as inheritOf, el as isComplete, em as isConverged, en as managementNamespaces, eo as normalizeSearch, ep as oAuth2ClientCreatedResponseFromWire, eq as omitEmptyTenantScope, er as omitNullMembers, es as opaqueEnrollment, et as opaqueEnrollmentForSelf, eu as pageQuery, ev as resourceKeyOf, ew as roleAssignmentInherits, ex as roleKeyOf, ey as rotateSecretResponseFromWire, ez as scimTargetInputToWire, eA as scrubDirectoryConfig, eB as scrubDirectoryLinkResult, eC as scrubDirectorySyncStatus, eD as scrubSamlIdpCredential, eE as scrubSamlIdpCredentialPromotion, eF as scrubSamlIdpInfo, eG as scrubSamlServiceProvider, eH as scrubSamlSpMetadataDraft, eI as scrubScimReconcileAccepted, eJ as scrubScimTargetResponse, eK as scrubSsfStream, eL as serviceAccountCreatedResponseFromWire, eM as setDirectoryConfigToWire, eN as ssfStreamInputToWire, eO as topologicalOrder, eP as updateDirectoryConfigToWire, eQ as updateFederationConfigRequestToWire, eR as updateWebhookRequestToWire, eS as validate, eT as webauthnRequestJson, eU as withFederationConfigResponseDefaults, eV 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-
|
|
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
|
|
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-BGFn1VQh.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 NetworkApi, bq as NetworkPolicyResponse, br as NetworkPolicySpec, bs as NetworkProfileSpec, bt as NetworkReplyProfile, bu as NetworkReplyProfileInput, bv as NetworkSegmentKind, bw as NetworkSegmentResponse, bx as NetworkSegmentSpec, by as NetworkSpec, bz as NotificationEventType, bA as NotificationPolicy, bB as NotificationRuleResponse, bC as NotificationRulesApi, bD as OAuth2ClientCreatedResponse, bE as OAuth2ClientCreatedResponseWire, bF as OAuth2ClientResponse, bG as Oauth2ClientsApi, bH as OidcAuthorizeRequest, bI as OidcAuthorizeResponse, bJ as OidcCallbackRequest, bK as OidcCallbackResponse, bL as OidcPolicy, bM as OpaqueEnrollment, bN as OpaqueEnrollmentPayload, bO as OpaquePolicy, bP as Organization, bQ as OrganizationsApi, bR as Page, bS as PageRequest, bT as PasswordPolicy, bU as PasswordResetConfirmation, bV as PasswordResetContext, bW as PasswordResetRequest, bX as Permission, bY as PermissionEffect, bZ as PermissionsApi, b_ as PgpKey, b$ as PgpKeyAlgorithm, c0 as PgpKeyPurpose, c1 as PgpKeyStatus, c2 as PgpKeysApi, c3 as PlannedAction, c4 as PlatformApi, c5 as PolicyResponse, c6 as PrivacyApi, c7 as PrivacyPolicy, c8 as ProviderConfig, c9 as RadiusServiceType, ca as RadiusTerminationAction, cb as ReactorEventDescriptor, cc as ReactorMode, cd as ReactorResponse, ce as ReactorsApi, cf as ReadyResponse, cg as RegistrationTokenResponse, ch as ReplaceNetworkPolicyRequest, ci as ReplaceNetworkReplyProfileRequest, cj as ReplaceNetworkSegmentRequest, ck as ResolvedPermissionGrant, cl as Resource, cm as ResourcesApi, cn as RetryOptions, co as RetryPolicy, cp as Role, cq as RoleAssignment, cr as RoleBinding, cs as RoleGroupAssignment, ct as RoleServiceAccountAssignment, cu as RoleUserAssignment, cv as RolesApi, cw as RotateSecretResponse, cx as RotateSecretResponseWire, cy as SamlApi, cz as SamlBinding, cA as SamlIdpCredential, cB as SamlIdpCredentialPromotion, cC as SamlIdpCredentialStatus, cD as SamlIdpInfo, cE as SamlIdpSlot, cF as SamlSpMetadataDraft, cG as ScimReconcileAccepted, cH as ScimTargetAuth, cI as ScimTargetDeliveryState, cJ as ScimTargetInputWire, cK as ScimTargetScope, cL as ScimTargetsApi, cM as ScimTokenResponse, cN as ScimTokenStatus, cO as ScimTokensApi, cP as Scope, cQ as ScopesApi, cR as SecuritySettings, cS as ServiceAccountCreatedResponse, cT as ServiceAccountCreatedResponseWire, cU as ServiceAccountResponse, cV as ServiceAccountsApi, cW as SessionResponse, cX as SetDirectoryConfigWire, cY as SetMtlsTrustAnchor, cZ as SetOrgEmailConfig, c_ as SetOrgSettings, c$ as SettingsApi, d0 as SettingsScope, d1 as SignAuditBatchRequest, d2 as SignCertificateCsrRequest, d3 as SignIntermediateCsrRequest, d4 as SignedAuditBatch, d5 as SmtpConfig, d6 as SsfApi, d7 as SsfDeliveryMethod, d8 as SsfEventType, d9 as SsfStatusActor, da as SsfStreamInputWire, db as SsfStreamStatus, dc as SsfSubjectFormat, dd as StepOutcome, de as SubjectAltName, df as Target, dg as Tenant, dh as TenantKind, di as TenantSettingsOverride, dj as TenantStatus, dk as TenantsApi, dl as TokenExchangeTrustRequest, dm as TokenExchangeTrustResponse, dn as TokenPolicy, dp as UnknownAaguidAction, dq as UpdateDirectoryConfig, dr as UpdateDirectoryConfigWire, ds as UpdateFederationConfigRequest, dt as UpdateFederationConfigRequestWire, du as UpdateGroup, dv as UpdateNotificationRuleRequest, dw as UpdateOAuth2ClientRequest, dx as UpdateOrganizationRequest, dy as UpdatePermissionRequest, dz as UpdateReactorRequest, dA as UpdateResourceRequest, dB as UpdateRole, dC as UpdateScopeRequest, dD as UpdateServiceAccount, dE as UpdateTenant, dF as UpdateUserRequest, dG as UpdateWebhookRequest, dH as UpdateWebhookRequestWire, dI as UserAttributeMap, dJ as UserNameSource, dK as UserResponse, dL as UserStatus, dM as UsersApi, dN as WebauthnAttestationPolicy, dO as WebauthnAuthenticationChallenge, dP as WebauthnAuthenticationResponse, dQ as WebauthnCreationChallenge, dR as WebauthnCreationOptionsJson, b as WebauthnCredential, dS as WebauthnCredentialDescriptorJson, a as WebauthnLoginResult, dT as WebauthnPolicy, dU as WebauthnPolicyApi, dV as WebauthnRegistrationChallenge, dW as WebauthnRegistrationResponse, dX as WebauthnRequestChallenge, dY as WebauthnRequestOptionsJson, W as WebauthnWorkspace, dZ as WebhookResponse, d_ as WebhooksApi, d$ as assertKnownScimTargetAuth, e0 as assertKnownScimTargetScope, e1 as assertValidSubjectAltName, e2 as assertValidSubjectAltNameList, e3 as backoffMs, e4 as changedCount, e5 as changes, e6 as clientRegistrationFromJson, e7 as collectPages, e8 as createFederationConfigRequestToWire, e9 as createRegistrationTokenResponseFromWire, ea as createScimTokenResponseFromWire, eb as createUserRequestToWire, ec as createWebhookRequestToWire, ed as delayMs, ee as failure, ef as generatedCaCertificateFromWire, eg as generatedCertificateFromWire, eh as generatedPgpKeyFromWire, ei as hasMore, ej as importCaCertificateRequestToWire, ek as inheritOf, el as isComplete, em as isConverged, en as managementNamespaces, eo as normalizeSearch, ep as oAuth2ClientCreatedResponseFromWire, eq as omitEmptyTenantScope, er as omitNullMembers, es as opaqueEnrollment, et as opaqueEnrollmentForSelf, eu as pageQuery, ev as resourceKeyOf, ew as roleAssignmentInherits, ex as roleKeyOf, ey as rotateSecretResponseFromWire, ez as scimTargetInputToWire, eA as scrubDirectoryConfig, eB as scrubDirectoryLinkResult, eC as scrubDirectorySyncStatus, eD as scrubSamlIdpCredential, eE as scrubSamlIdpCredentialPromotion, eF as scrubSamlIdpInfo, eG as scrubSamlServiceProvider, eH as scrubSamlSpMetadataDraft, eI as scrubScimReconcileAccepted, eJ as scrubScimTargetResponse, eK as scrubSsfStream, eL as serviceAccountCreatedResponseFromWire, eM as setDirectoryConfigToWire, eN as ssfStreamInputToWire, eO as topologicalOrder, eP as updateDirectoryConfigToWire, eQ as updateFederationConfigRequestToWire, eR as updateWebhookRequestToWire, eS as validate, eT as webauthnRequestJson, eU as withFederationConfigResponseDefaults, eV as withRetry } from '../client-BGFn1VQh.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-plDr4lFu.cjs';
|
|
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
|
-
export { W as WebauthnFailure, c as classifyWebauthnError, w as webauthnErrorMessage } from '../webauthnErrors-
|
|
7
|
-
import { N as NetworkError } from '../errors-
|
|
8
|
-
export { a as AuthError, A as AuthzError, b as AxiamError, I as IdTokenFailureReason, O as OAuthProtocolError } from '../errors-
|
|
6
|
+
export { W as WebauthnFailure, c as classifyWebauthnError, w as webauthnErrorMessage } from '../webauthnErrors-m1LZiaRy.cjs';
|
|
7
|
+
import { N as NetworkError } from '../errors-DZ3k8a8i.cjs';
|
|
8
|
+
export { a as AuthError, A as AuthzError, b as AxiamError, I as IdTokenFailureReason, O as OAuthProtocolError } from '../errors-DZ3k8a8i.cjs';
|
|
9
9
|
export { S as Sensitive } from '../sensitive-BC_s7Rrd.cjs';
|
|
10
|
-
export { C as ConflictError, F as FieldError, N as NotFoundError, V as ValidationError, p as parseFieldErrors } from '../errors-
|
|
10
|
+
export { C as ConflictError, F as FieldError, N as NotFoundError, V as ValidationError, p as parseFieldErrors } from '../errors-RvGlTyUj.cjs';
|
|
11
11
|
import 'axios';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -330,4 +330,5 @@ interface ManagementCall {
|
|
|
330
330
|
body?: unknown;
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
export { AxiamGrant, AxiamGroup, AxiamPermission, AxiamResource, AxiamRole, AxiamScope, AxiamServiceAccount, AxiamUser,
|
|
333
|
+
export { AxiamGrant, AxiamGroup, AxiamPermission, AxiamResource, AxiamRole, AxiamScope, AxiamServiceAccount, AxiamUser, DirectoryConfig, GrantSpec, GroupSpec, ManagementManifest, NetworkError, OpaqueUnavailableError, ParseSamlSpMetadata, PermissionSpec, ResourceSpec, RoleSpec, SKIP_REFRESH, SamlServiceProvider, SamlServiceProviderInput, ScimTargetInput, ScimTargetResponse, ScopeSpec, ServiceAccountSpec, SetDirectoryConfig, SsfStream, SsfStreamInput, UserSpec, assertParseSpMetadataExactlyOne, collectManifest, defineManifest, opaqueAvailable, parseSpMetadataFromUrl, parseSpMetadataFromXml, samlServiceProviderInputFrom, scimTargetInputFrom, setDirectoryConfigFrom, ssfStreamInputFrom, ssfStreamInputWith };
|
|
334
|
+
export type { ClassDeco, ManagementCall, ManagementMethod };
|
package/dist/rest/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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 NetworkApi, bq as NetworkPolicyResponse, br as NetworkPolicySpec, bs as NetworkProfileSpec, bt as NetworkReplyProfile, bu as NetworkReplyProfileInput, bv as NetworkSegmentKind, bw as NetworkSegmentResponse, bx as NetworkSegmentSpec, by as NetworkSpec, bz as NotificationEventType, bA as NotificationPolicy, bB as NotificationRuleResponse, bC as NotificationRulesApi, bD as OAuth2ClientCreatedResponse, bE as OAuth2ClientCreatedResponseWire, bF as OAuth2ClientResponse, bG as Oauth2ClientsApi, bH as OidcAuthorizeRequest, bI as OidcAuthorizeResponse, bJ as OidcCallbackRequest, bK as OidcCallbackResponse, bL as OidcPolicy, bM as OpaqueEnrollment, bN as OpaqueEnrollmentPayload, bO as OpaquePolicy, bP as Organization, bQ as OrganizationsApi, bR as Page, bS as PageRequest, bT as PasswordPolicy, bU as PasswordResetConfirmation, bV as PasswordResetContext, bW as PasswordResetRequest, bX as Permission, bY as PermissionEffect, bZ as PermissionsApi, b_ as PgpKey, b$ as PgpKeyAlgorithm, c0 as PgpKeyPurpose, c1 as PgpKeyStatus, c2 as PgpKeysApi, c3 as PlannedAction, c4 as PlatformApi, c5 as PolicyResponse, c6 as PrivacyApi, c7 as PrivacyPolicy, c8 as ProviderConfig, c9 as RadiusServiceType, ca as RadiusTerminationAction, cb as ReactorEventDescriptor, cc as ReactorMode, cd as ReactorResponse, ce as ReactorsApi, cf as ReadyResponse, cg as RegistrationTokenResponse, ch as ReplaceNetworkPolicyRequest, ci as ReplaceNetworkReplyProfileRequest, cj as ReplaceNetworkSegmentRequest, ck as ResolvedPermissionGrant, cl as Resource, cm as ResourcesApi, cn as RetryOptions, co as RetryPolicy, cp as Role, cq as RoleAssignment, cr as RoleBinding, cs as RoleGroupAssignment, ct as RoleServiceAccountAssignment, cu as RoleUserAssignment, cv as RolesApi, cw as RotateSecretResponse, cx as RotateSecretResponseWire, cy as SamlApi, cz as SamlBinding, cA as SamlIdpCredential, cB as SamlIdpCredentialPromotion, cC as SamlIdpCredentialStatus, cD as SamlIdpInfo, cE as SamlIdpSlot, cF as SamlSpMetadataDraft, cG as ScimReconcileAccepted, cH as ScimTargetAuth, cI as ScimTargetDeliveryState, cJ as ScimTargetInputWire, cK as ScimTargetScope, cL as ScimTargetsApi, cM as ScimTokenResponse, cN as ScimTokenStatus, cO as ScimTokensApi, cP as Scope, cQ as ScopesApi, cR as SecuritySettings, cS as ServiceAccountCreatedResponse, cT as ServiceAccountCreatedResponseWire, cU as ServiceAccountResponse, cV as ServiceAccountsApi, cW as SessionResponse, cX as SetDirectoryConfigWire, cY as SetMtlsTrustAnchor, cZ as SetOrgEmailConfig, c_ as SetOrgSettings, c$ as SettingsApi, d0 as SettingsScope, d1 as SignAuditBatchRequest, d2 as SignCertificateCsrRequest, d3 as SignIntermediateCsrRequest, d4 as SignedAuditBatch, d5 as SmtpConfig, d6 as SsfApi, d7 as SsfDeliveryMethod, d8 as SsfEventType, d9 as SsfStatusActor, da as SsfStreamInputWire, db as SsfStreamStatus, dc as SsfSubjectFormat, dd as StepOutcome, de as SubjectAltName, df as Target, dg as Tenant, dh as TenantKind, di as TenantSettingsOverride, dj as TenantStatus, dk as TenantsApi, dl as TokenExchangeTrustRequest, dm as TokenExchangeTrustResponse, dn as TokenPolicy, dp as UnknownAaguidAction, dq as UpdateDirectoryConfig, dr as UpdateDirectoryConfigWire, ds as UpdateFederationConfigRequest, dt as UpdateFederationConfigRequestWire, du as UpdateGroup, dv as UpdateNotificationRuleRequest, dw as UpdateOAuth2ClientRequest, dx as UpdateOrganizationRequest, dy as UpdatePermissionRequest, dz as UpdateReactorRequest, dA as UpdateResourceRequest, dB as UpdateRole, dC as UpdateScopeRequest, dD as UpdateServiceAccount, dE as UpdateTenant, dF as UpdateUserRequest, dG as UpdateWebhookRequest, dH as UpdateWebhookRequestWire, dI as UserAttributeMap, dJ as UserNameSource, dK as UserResponse, dL as UserStatus, dM as UsersApi, dN as WebauthnAttestationPolicy, dO as WebauthnAuthenticationChallenge, dP as WebauthnAuthenticationResponse, dQ as WebauthnCreationChallenge, dR as WebauthnCreationOptionsJson, b as WebauthnCredential, dS as WebauthnCredentialDescriptorJson, a as WebauthnLoginResult, dT as WebauthnPolicy, dU as WebauthnPolicyApi, dV as WebauthnRegistrationChallenge, dW as WebauthnRegistrationResponse, dX as WebauthnRequestChallenge, dY as WebauthnRequestOptionsJson, W as WebauthnWorkspace, dZ as WebhookResponse, d_ as WebhooksApi, d$ as assertKnownScimTargetAuth, e0 as assertKnownScimTargetScope, e1 as assertValidSubjectAltName, e2 as assertValidSubjectAltNameList, e3 as backoffMs, e4 as changedCount, e5 as changes, e6 as clientRegistrationFromJson, e7 as collectPages, e8 as createFederationConfigRequestToWire, e9 as createRegistrationTokenResponseFromWire, ea as createScimTokenResponseFromWire, eb as createUserRequestToWire, ec as createWebhookRequestToWire, ed as delayMs, ee as failure, ef as generatedCaCertificateFromWire, eg as generatedCertificateFromWire, eh as generatedPgpKeyFromWire, ei as hasMore, ej as importCaCertificateRequestToWire, ek as inheritOf, el as isComplete, em as isConverged, en as managementNamespaces, eo as normalizeSearch, ep as oAuth2ClientCreatedResponseFromWire, eq as omitEmptyTenantScope, er as omitNullMembers, es as opaqueEnrollment, et as opaqueEnrollmentForSelf, eu as pageQuery, ev as resourceKeyOf, ew as roleAssignmentInherits, ex as roleKeyOf, ey as rotateSecretResponseFromWire, ez as scimTargetInputToWire, eA as scrubDirectoryConfig, eB as scrubDirectoryLinkResult, eC as scrubDirectorySyncStatus, eD as scrubSamlIdpCredential, eE as scrubSamlIdpCredentialPromotion, eF as scrubSamlIdpInfo, eG as scrubSamlServiceProvider, eH as scrubSamlSpMetadataDraft, eI as scrubScimReconcileAccepted, eJ as scrubScimTargetResponse, eK as scrubSsfStream, eL as serviceAccountCreatedResponseFromWire, eM as setDirectoryConfigToWire, eN as ssfStreamInputToWire, eO as topologicalOrder, eP as updateDirectoryConfigToWire, eQ as updateFederationConfigRequestToWire, eR as updateWebhookRequestToWire, eS as validate, eT as webauthnRequestJson, eU as withFederationConfigResponseDefaults, eV 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-
|
|
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
|
|
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-DrQZZ1js.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 NetworkApi, bq as NetworkPolicyResponse, br as NetworkPolicySpec, bs as NetworkProfileSpec, bt as NetworkReplyProfile, bu as NetworkReplyProfileInput, bv as NetworkSegmentKind, bw as NetworkSegmentResponse, bx as NetworkSegmentSpec, by as NetworkSpec, bz as NotificationEventType, bA as NotificationPolicy, bB as NotificationRuleResponse, bC as NotificationRulesApi, bD as OAuth2ClientCreatedResponse, bE as OAuth2ClientCreatedResponseWire, bF as OAuth2ClientResponse, bG as Oauth2ClientsApi, bH as OidcAuthorizeRequest, bI as OidcAuthorizeResponse, bJ as OidcCallbackRequest, bK as OidcCallbackResponse, bL as OidcPolicy, bM as OpaqueEnrollment, bN as OpaqueEnrollmentPayload, bO as OpaquePolicy, bP as Organization, bQ as OrganizationsApi, bR as Page, bS as PageRequest, bT as PasswordPolicy, bU as PasswordResetConfirmation, bV as PasswordResetContext, bW as PasswordResetRequest, bX as Permission, bY as PermissionEffect, bZ as PermissionsApi, b_ as PgpKey, b$ as PgpKeyAlgorithm, c0 as PgpKeyPurpose, c1 as PgpKeyStatus, c2 as PgpKeysApi, c3 as PlannedAction, c4 as PlatformApi, c5 as PolicyResponse, c6 as PrivacyApi, c7 as PrivacyPolicy, c8 as ProviderConfig, c9 as RadiusServiceType, ca as RadiusTerminationAction, cb as ReactorEventDescriptor, cc as ReactorMode, cd as ReactorResponse, ce as ReactorsApi, cf as ReadyResponse, cg as RegistrationTokenResponse, ch as ReplaceNetworkPolicyRequest, ci as ReplaceNetworkReplyProfileRequest, cj as ReplaceNetworkSegmentRequest, ck as ResolvedPermissionGrant, cl as Resource, cm as ResourcesApi, cn as RetryOptions, co as RetryPolicy, cp as Role, cq as RoleAssignment, cr as RoleBinding, cs as RoleGroupAssignment, ct as RoleServiceAccountAssignment, cu as RoleUserAssignment, cv as RolesApi, cw as RotateSecretResponse, cx as RotateSecretResponseWire, cy as SamlApi, cz as SamlBinding, cA as SamlIdpCredential, cB as SamlIdpCredentialPromotion, cC as SamlIdpCredentialStatus, cD as SamlIdpInfo, cE as SamlIdpSlot, cF as SamlSpMetadataDraft, cG as ScimReconcileAccepted, cH as ScimTargetAuth, cI as ScimTargetDeliveryState, cJ as ScimTargetInputWire, cK as ScimTargetScope, cL as ScimTargetsApi, cM as ScimTokenResponse, cN as ScimTokenStatus, cO as ScimTokensApi, cP as Scope, cQ as ScopesApi, cR as SecuritySettings, cS as ServiceAccountCreatedResponse, cT as ServiceAccountCreatedResponseWire, cU as ServiceAccountResponse, cV as ServiceAccountsApi, cW as SessionResponse, cX as SetDirectoryConfigWire, cY as SetMtlsTrustAnchor, cZ as SetOrgEmailConfig, c_ as SetOrgSettings, c$ as SettingsApi, d0 as SettingsScope, d1 as SignAuditBatchRequest, d2 as SignCertificateCsrRequest, d3 as SignIntermediateCsrRequest, d4 as SignedAuditBatch, d5 as SmtpConfig, d6 as SsfApi, d7 as SsfDeliveryMethod, d8 as SsfEventType, d9 as SsfStatusActor, da as SsfStreamInputWire, db as SsfStreamStatus, dc as SsfSubjectFormat, dd as StepOutcome, de as SubjectAltName, df as Target, dg as Tenant, dh as TenantKind, di as TenantSettingsOverride, dj as TenantStatus, dk as TenantsApi, dl as TokenExchangeTrustRequest, dm as TokenExchangeTrustResponse, dn as TokenPolicy, dp as UnknownAaguidAction, dq as UpdateDirectoryConfig, dr as UpdateDirectoryConfigWire, ds as UpdateFederationConfigRequest, dt as UpdateFederationConfigRequestWire, du as UpdateGroup, dv as UpdateNotificationRuleRequest, dw as UpdateOAuth2ClientRequest, dx as UpdateOrganizationRequest, dy as UpdatePermissionRequest, dz as UpdateReactorRequest, dA as UpdateResourceRequest, dB as UpdateRole, dC as UpdateScopeRequest, dD as UpdateServiceAccount, dE as UpdateTenant, dF as UpdateUserRequest, dG as UpdateWebhookRequest, dH as UpdateWebhookRequestWire, dI as UserAttributeMap, dJ as UserNameSource, dK as UserResponse, dL as UserStatus, dM as UsersApi, dN as WebauthnAttestationPolicy, dO as WebauthnAuthenticationChallenge, dP as WebauthnAuthenticationResponse, dQ as WebauthnCreationChallenge, dR as WebauthnCreationOptionsJson, b as WebauthnCredential, dS as WebauthnCredentialDescriptorJson, a as WebauthnLoginResult, dT as WebauthnPolicy, dU as WebauthnPolicyApi, dV as WebauthnRegistrationChallenge, dW as WebauthnRegistrationResponse, dX as WebauthnRequestChallenge, dY as WebauthnRequestOptionsJson, W as WebauthnWorkspace, dZ as WebhookResponse, d_ as WebhooksApi, d$ as assertKnownScimTargetAuth, e0 as assertKnownScimTargetScope, e1 as assertValidSubjectAltName, e2 as assertValidSubjectAltNameList, e3 as backoffMs, e4 as changedCount, e5 as changes, e6 as clientRegistrationFromJson, e7 as collectPages, e8 as createFederationConfigRequestToWire, e9 as createRegistrationTokenResponseFromWire, ea as createScimTokenResponseFromWire, eb as createUserRequestToWire, ec as createWebhookRequestToWire, ed as delayMs, ee as failure, ef as generatedCaCertificateFromWire, eg as generatedCertificateFromWire, eh as generatedPgpKeyFromWire, ei as hasMore, ej as importCaCertificateRequestToWire, ek as inheritOf, el as isComplete, em as isConverged, en as managementNamespaces, eo as normalizeSearch, ep as oAuth2ClientCreatedResponseFromWire, eq as omitEmptyTenantScope, er as omitNullMembers, es as opaqueEnrollment, et as opaqueEnrollmentForSelf, eu as pageQuery, ev as resourceKeyOf, ew as roleAssignmentInherits, ex as roleKeyOf, ey as rotateSecretResponseFromWire, ez as scimTargetInputToWire, eA as scrubDirectoryConfig, eB as scrubDirectoryLinkResult, eC as scrubDirectorySyncStatus, eD as scrubSamlIdpCredential, eE as scrubSamlIdpCredentialPromotion, eF as scrubSamlIdpInfo, eG as scrubSamlServiceProvider, eH as scrubSamlSpMetadataDraft, eI as scrubScimReconcileAccepted, eJ as scrubScimTargetResponse, eK as scrubSsfStream, eL as serviceAccountCreatedResponseFromWire, eM as setDirectoryConfigToWire, eN as ssfStreamInputToWire, eO as topologicalOrder, eP as updateDirectoryConfigToWire, eQ as updateFederationConfigRequestToWire, eR as updateWebhookRequestToWire, eS as validate, eT as webauthnRequestJson, eU as withFederationConfigResponseDefaults, eV as withRetry } from '../client-DrQZZ1js.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-B03NsqVs.js';
|
|
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
|
-
export { W as WebauthnFailure, c as classifyWebauthnError, w as webauthnErrorMessage } from '../webauthnErrors-
|
|
7
|
-
import { N as NetworkError } from '../errors-
|
|
8
|
-
export { a as AuthError, A as AuthzError, b as AxiamError, I as IdTokenFailureReason, O as OAuthProtocolError } from '../errors-
|
|
6
|
+
export { W as WebauthnFailure, c as classifyWebauthnError, w as webauthnErrorMessage } from '../webauthnErrors-m1LZiaRy.js';
|
|
7
|
+
import { N as NetworkError } from '../errors-DZ3k8a8i.js';
|
|
8
|
+
export { a as AuthError, A as AuthzError, b as AxiamError, I as IdTokenFailureReason, O as OAuthProtocolError } from '../errors-DZ3k8a8i.js';
|
|
9
9
|
export { S as Sensitive } from '../sensitive-BC_s7Rrd.js';
|
|
10
|
-
export { C as ConflictError, F as FieldError, N as NotFoundError, V as ValidationError, p as parseFieldErrors } from '../errors-
|
|
10
|
+
export { C as ConflictError, F as FieldError, N as NotFoundError, V as ValidationError, p as parseFieldErrors } from '../errors-dlGXAsbh.js';
|
|
11
11
|
import 'axios';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -330,4 +330,5 @@ interface ManagementCall {
|
|
|
330
330
|
body?: unknown;
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
export { AxiamGrant, AxiamGroup, AxiamPermission, AxiamResource, AxiamRole, AxiamScope, AxiamServiceAccount, AxiamUser,
|
|
333
|
+
export { AxiamGrant, AxiamGroup, AxiamPermission, AxiamResource, AxiamRole, AxiamScope, AxiamServiceAccount, AxiamUser, DirectoryConfig, GrantSpec, GroupSpec, ManagementManifest, NetworkError, OpaqueUnavailableError, ParseSamlSpMetadata, PermissionSpec, ResourceSpec, RoleSpec, SKIP_REFRESH, SamlServiceProvider, SamlServiceProviderInput, ScimTargetInput, ScimTargetResponse, ScopeSpec, ServiceAccountSpec, SetDirectoryConfig, SsfStream, SsfStreamInput, UserSpec, assertParseSpMetadataExactlyOne, collectManifest, defineManifest, opaqueAvailable, parseSpMetadataFromUrl, parseSpMetadataFromXml, samlServiceProviderInputFrom, scimTargetInputFrom, setDirectoryConfigFrom, ssfStreamInputFrom, ssfStreamInputWith };
|
|
334
|
+
export type { ClassDeco, ManagementCall, ManagementMethod };
|
package/dist/rest/index.js
CHANGED
|
@@ -675,6 +675,24 @@ var SharedSession = class {
|
|
|
675
675
|
noCredentialsConfig() {
|
|
676
676
|
return { withCredentials: false };
|
|
677
677
|
}
|
|
678
|
+
/**
|
|
679
|
+
* Axios config for a request to an `/oauth2/*` endpoint (CONTRACT.md §12.1
|
|
680
|
+
* rule 3, §14.6; C163-12): {@link noCredentialsConfig} and, in the browser
|
|
681
|
+
* persona, the fetch adapter with `credentials: 'omit'`.
|
|
682
|
+
*
|
|
683
|
+
* `withCredentials: false` on axios's default XHR adapter is not enough: that
|
|
684
|
+
* adapter sends a same-origin cookie regardless, so an app served from the
|
|
685
|
+
* AXIAM origin would still present `axiam_*` on a token or device request.
|
|
686
|
+
* The fetch adapter derives its `credentials` from `withCredentials: false`
|
|
687
|
+
* (`'omit'`); `fetchOptions.credentials` is set as well for adapters that
|
|
688
|
+
* read it.
|
|
689
|
+
* `NodeSession` overrides this to {@link noCredentialsConfig}: its jar-free
|
|
690
|
+
* agent pair is what keeps the cookies off there, and the fetch adapter
|
|
691
|
+
* would bypass that pair.
|
|
692
|
+
*/
|
|
693
|
+
oauth2RequestConfig() {
|
|
694
|
+
return { ...this.noCredentialsConfig(), adapter: "fetch", fetchOptions: { credentials: "omit" } };
|
|
695
|
+
}
|
|
678
696
|
};
|
|
679
697
|
function resolveTenantHeaderValue(options) {
|
|
680
698
|
if (options.tenantSlug) {
|
|
@@ -785,6 +803,9 @@ function installCsrfInterceptor(axiosInstance, session) {
|
|
|
785
803
|
if (session.isForeignHost(config.url)) {
|
|
786
804
|
return config;
|
|
787
805
|
}
|
|
806
|
+
if (isOAuth2Endpoint(config.url, session.baseUrl)) {
|
|
807
|
+
return config;
|
|
808
|
+
}
|
|
788
809
|
const method = (config.method ?? "get").toLowerCase();
|
|
789
810
|
const cookieString = typeof document !== "undefined" ? document.cookie : "";
|
|
790
811
|
const csrfToken = typeof document !== "undefined" ? csrfHeaderForMethod(method, cookieString) : csrfHeaderForMethod(method, session.csrfToken ? `axiam_csrf=${session.csrfToken}` : "");
|
|
@@ -838,23 +859,33 @@ function installRefreshInterceptor(axiosInstance, session) {
|
|
|
838
859
|
}
|
|
839
860
|
);
|
|
840
861
|
}
|
|
841
|
-
function isOAuth2Endpoint(url) {
|
|
862
|
+
function isOAuth2Endpoint(url, baseUrl) {
|
|
842
863
|
if (!url) {
|
|
843
864
|
return false;
|
|
844
865
|
}
|
|
845
|
-
|
|
846
|
-
|
|
866
|
+
try {
|
|
867
|
+
const base = new URL(baseUrl);
|
|
868
|
+
let path = new URL(url, base).pathname;
|
|
869
|
+
const prefix = base.pathname.replace(/\/+$/, "");
|
|
870
|
+
if (prefix !== "" && path.startsWith(`${prefix}/`)) {
|
|
871
|
+
path = path.slice(prefix.length);
|
|
872
|
+
}
|
|
873
|
+
return path.startsWith("/oauth2/");
|
|
874
|
+
} catch {
|
|
875
|
+
return false;
|
|
876
|
+
}
|
|
847
877
|
}
|
|
848
878
|
function installDeviceTokenInterceptor(axiosInstance, session) {
|
|
849
879
|
axiosInstance.interceptors.request.use((config) => {
|
|
850
880
|
const deviceToken = session.deviceAccessToken;
|
|
851
|
-
|
|
881
|
+
const oauth2 = isOAuth2Endpoint(config.url, session.baseUrl);
|
|
882
|
+
if (session.isForeignHost(config.url) || deviceToken === void 0 && !oauth2) {
|
|
852
883
|
return config;
|
|
853
884
|
}
|
|
854
|
-
const noCred = session.noCredentialsConfig();
|
|
885
|
+
const noCred = oauth2 ? session.oauth2RequestConfig() : session.noCredentialsConfig();
|
|
855
886
|
Object.assign(config, noCred);
|
|
856
887
|
config.headers = config.headers ?? {};
|
|
857
|
-
if (
|
|
888
|
+
if (oauth2) {
|
|
858
889
|
return config;
|
|
859
890
|
}
|
|
860
891
|
config.headers["Authorization"] = `Bearer ${deviceToken.expose()}`;
|
|
@@ -1345,6 +1376,7 @@ async function withRetry(fn, options) {
|
|
|
1345
1376
|
}
|
|
1346
1377
|
const retryAfterMs2 = isRetryAfterCarrier(err) ? err.retryAfterMs : void 0;
|
|
1347
1378
|
const delay = delayMs(attempt, retryAfterMs2, random());
|
|
1379
|
+
options.admit?.(delay);
|
|
1348
1380
|
options.telemetry?.emit({
|
|
1349
1381
|
type: "retry",
|
|
1350
1382
|
operation: options.operation ?? "unknown",
|
|
@@ -1877,7 +1909,10 @@ async function bareRequest(session, operation, config) {
|
|
|
1877
1909
|
// jar). Under the Node persona this is the jar-wrapped cookie agent, which
|
|
1878
1910
|
// `noCredentialsConfig()` below replaces with a plain one.
|
|
1879
1911
|
...defaults.httpsAgent !== void 0 ? { httpsAgent: defaults.httpsAgent } : {},
|
|
1880
|
-
|
|
1912
|
+
// The bare transport carries the RFC 7592 registration calls on `/oauth2/register/*`,
|
|
1913
|
+
// so it gets an `/oauth2/*` request's config: in the browser persona the fetch adapter
|
|
1914
|
+
// that omits credentials (C164-06; identical to `noCredentialsConfig()` under Node).
|
|
1915
|
+
...session.oauth2RequestConfig(),
|
|
1881
1916
|
withCredentials: false,
|
|
1882
1917
|
maxRedirects: 0,
|
|
1883
1918
|
validateStatus: () => true
|
|
@@ -2760,6 +2795,11 @@ function validateNetwork(network, problems) {
|
|
|
2760
2795
|
problems.push(`network segment ${q(profile.segment)} has more than one profile in the manifest`);
|
|
2761
2796
|
}
|
|
2762
2797
|
profiled.add(profile.segment);
|
|
2798
|
+
if (profile.terminationAction === null) {
|
|
2799
|
+
problems.push(
|
|
2800
|
+
`network profile of segment ${q(profile.segment)} states terminationAction as null; it has no "none" in a manifest (leave it out to keep the server default)`
|
|
2801
|
+
);
|
|
2802
|
+
}
|
|
2763
2803
|
}
|
|
2764
2804
|
}
|
|
2765
2805
|
function duplicates(kind, keys, problems) {
|
|
@@ -3717,11 +3757,24 @@ function profileDrifted(spec, read) {
|
|
|
3717
3757
|
if (spec.serviceType !== void 0 && !sameOptional(spec.serviceType, read.service_type)) return true;
|
|
3718
3758
|
return false;
|
|
3719
3759
|
}
|
|
3760
|
+
var KNOWN_TERMINATION_ACTIONS = ["default", "radius_request"];
|
|
3761
|
+
var KNOWN_SERVICE_TYPES = ["framed_user"];
|
|
3762
|
+
function refuseUnknownCarried(member, stated, read, known) {
|
|
3763
|
+
if (stated !== void 0 || read == null || known.includes(read)) return;
|
|
3764
|
+
throw new ValidationError(
|
|
3765
|
+
"manifest.plan",
|
|
3766
|
+
400,
|
|
3767
|
+
`network profile: ${member} was read as ${JSON.stringify(read)}, a value this SDK does not know, and the manifest does not state it; state ${member} to update this profile (CONTRACT.md \xA727.6.2 item 4)`,
|
|
3768
|
+
[{ field: member, message: `unknown value ${JSON.stringify(read)} on an unstated member` }]
|
|
3769
|
+
);
|
|
3770
|
+
}
|
|
3720
3771
|
function profileReplaceInput(spec, read) {
|
|
3721
3772
|
const profile = {
|
|
3722
3773
|
dictionary: read.dictionary,
|
|
3723
3774
|
session_timeout_secs: spec.sessionTimeoutSecs
|
|
3724
3775
|
};
|
|
3776
|
+
refuseUnknownCarried("termination_action", spec.terminationAction, read.termination_action, KNOWN_TERMINATION_ACTIONS);
|
|
3777
|
+
refuseUnknownCarried("service_type", spec.serviceType, read.service_type, KNOWN_SERVICE_TYPES);
|
|
3725
3778
|
const termination = spec.terminationAction === void 0 ? read.termination_action : spec.terminationAction;
|
|
3726
3779
|
if (termination != null) profile.termination_action = termination;
|
|
3727
3780
|
const idle = spec.idleTimeoutSecs === void 0 ? read.idle_timeout_secs : spec.idleTimeoutSecs;
|