axiam-sdk 1.0.0 → 1.1.1
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 +100 -12
- 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-0WJkblDE.d.ts → client-BMNQi36J.d.ts} +646 -16
- package/dist/{client-yD0eMwHQ.d.cts → client-D34sXV8p.d.cts} +646 -16
- package/dist/{cookieJar-CTD5jOmd.d.cts → cookieJar-C_xPuniu.d.cts} +3 -3
- package/dist/{cookieJar-hWRmZkhe.d.ts → cookieJar-DcrMe93Q.d.ts} +3 -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-m0Tue_pE.d.cts → errors-RvGlTyUj.d.cts} +18 -3
- package/dist/{errors-CmBvsxV0.d.ts → errors-dlGXAsbh.d.ts} +18 -3
- package/dist/grpc/index.d.cts +10 -9
- package/dist/grpc/index.d.ts +10 -9
- package/dist/grpc/index.js +604 -15
- package/dist/grpc/index.js.map +1 -1
- package/dist/grpc/index.mjs +604 -15
- package/dist/grpc/index.mjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +626 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +624 -17
- 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 +53 -12
- package/dist/middleware/index.js.map +1 -1
- package/dist/middleware/index.mjs +53 -12
- 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 +631 -19
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +631 -19
- package/dist/node/index.mjs.map +1 -1
- package/dist/{oidcState-mQLVn3-A.d.cts → oidcState-BFIHt7_Y.d.cts} +29 -7
- package/dist/{oidcState-DOSCgnMG.d.ts → oidcState-qoy2vsYG.d.ts} +29 -7
- package/dist/rest/index.d.cts +64 -12
- package/dist/rest/index.d.ts +64 -12
- package/dist/rest/index.js +626 -16
- package/dist/rest/index.js.map +1 -1
- package/dist/rest/index.mjs +624 -17
- 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-BbPFTpMZ.d.ts} +3 -2
- package/dist/{session-BmjEMowX.d.cts → session-C9WlP6DV.d.cts} +3 -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-C9WlP6DV.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
|
|
@@ -1566,9 +1566,21 @@ declare class OidcClient {
|
|
|
1566
1566
|
* and obtain the code pair.
|
|
1567
1567
|
*
|
|
1568
1568
|
* @remarks
|
|
1569
|
-
* **
|
|
1570
|
-
*
|
|
1571
|
-
*
|
|
1569
|
+
* **The client authenticates as it does at every other token request
|
|
1570
|
+
* (contract 1.62, §14.1 rule 2).** A client built with a `clientSecret` sends
|
|
1571
|
+
* it as `client_secret` in the **form body** — never as `Authorization:
|
|
1572
|
+
* Basic`, whatever the client is registered for (§12.1 rule 3 stands for
|
|
1573
|
+
* this route, and the maintainer's 2026-10-16 "same rules" reading fixes the
|
|
1574
|
+
* form body) — and a client with a §6.1 client certificate presents it on the
|
|
1575
|
+
* connection, through the `mtls_endpoint_aliases` entry when discovery
|
|
1576
|
+
* publishes one (§21.3). **A public client sends no credential at all** and
|
|
1577
|
+
* is never refused client-side, so a device that cannot hold a secret still
|
|
1578
|
+
* works. The SDK sends a credential only when its caller configured one: it
|
|
1579
|
+
* never borrows one from another configuration. `private_key_jwt` client
|
|
1580
|
+
* authentication is not implemented by this SDK.
|
|
1581
|
+
*
|
|
1582
|
+
* A `401` with `{"error":"invalid_client"}` is an {@link OAuthProtocolError}
|
|
1583
|
+
* (§14.2 rule 5), is made once, and does not enter the §9 refresh guard.
|
|
1572
1584
|
*/
|
|
1573
1585
|
deviceAuthorize(params?: DeviceAuthorizeParams): Promise<DeviceAuthorization>;
|
|
1574
1586
|
/**
|
|
@@ -1616,6 +1628,15 @@ declare class OidcClient {
|
|
|
1616
1628
|
* {@link OAuthProtocolError} — `authorization_pending` and `slow_down`
|
|
1617
1629
|
* included — so a hand-rolled loop sees exactly what {@link deviceLogin}
|
|
1618
1630
|
* sees. Most callers want {@link deviceLogin}.
|
|
1631
|
+
*
|
|
1632
|
+
* Client authentication is the one {@link deviceAuthorize} describes
|
|
1633
|
+
* (contract 1.62, §14.1 rule 2): a configured `clientSecret` is sent as
|
|
1634
|
+
* `client_secret` in the form body, never as `Authorization: Basic`; a public
|
|
1635
|
+
* client sends none; `client_id` is sent on **every** poll (§14.1 rule 3). A
|
|
1636
|
+
* `401 invalid_client` surfaces as {@link OAuthProtocolError}, is not retried
|
|
1637
|
+
* and does not enter the §9 refresh guard (§14.2 rule 5). This SDK ships no
|
|
1638
|
+
* DPoP proof generator, so it cannot drive a client registered for DPoP; it
|
|
1639
|
+
* surfaces that client's refusal as the same `invalid_client`.
|
|
1619
1640
|
*/
|
|
1620
1641
|
devicePoll(params: DevicePollParams): Promise<OidcTokenSet>;
|
|
1621
1642
|
/**
|
|
@@ -2017,4 +2038,5 @@ declare class MemoryOidcStateStore implements OidcStateStore {
|
|
|
2017
2038
|
consume(state: string): Promise<OidcStateEntry | undefined>;
|
|
2018
2039
|
}
|
|
2019
2040
|
|
|
2020
|
-
export { PollSchedule as $, ACCESS_TOKEN_TYPE as A, BACKCHANNEL_LOGOUT_EVENT as B, CIBA_GRANT_TYPE as C, DEFAULT_CIBA_INTERVAL_SECS as D,
|
|
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, 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 };
|
|
2042
|
+
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-BbPFTpMZ.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
|
|
@@ -1566,9 +1566,21 @@ declare class OidcClient {
|
|
|
1566
1566
|
* and obtain the code pair.
|
|
1567
1567
|
*
|
|
1568
1568
|
* @remarks
|
|
1569
|
-
* **
|
|
1570
|
-
*
|
|
1571
|
-
*
|
|
1569
|
+
* **The client authenticates as it does at every other token request
|
|
1570
|
+
* (contract 1.62, §14.1 rule 2).** A client built with a `clientSecret` sends
|
|
1571
|
+
* it as `client_secret` in the **form body** — never as `Authorization:
|
|
1572
|
+
* Basic`, whatever the client is registered for (§12.1 rule 3 stands for
|
|
1573
|
+
* this route, and the maintainer's 2026-10-16 "same rules" reading fixes the
|
|
1574
|
+
* form body) — and a client with a §6.1 client certificate presents it on the
|
|
1575
|
+
* connection, through the `mtls_endpoint_aliases` entry when discovery
|
|
1576
|
+
* publishes one (§21.3). **A public client sends no credential at all** and
|
|
1577
|
+
* is never refused client-side, so a device that cannot hold a secret still
|
|
1578
|
+
* works. The SDK sends a credential only when its caller configured one: it
|
|
1579
|
+
* never borrows one from another configuration. `private_key_jwt` client
|
|
1580
|
+
* authentication is not implemented by this SDK.
|
|
1581
|
+
*
|
|
1582
|
+
* A `401` with `{"error":"invalid_client"}` is an {@link OAuthProtocolError}
|
|
1583
|
+
* (§14.2 rule 5), is made once, and does not enter the §9 refresh guard.
|
|
1572
1584
|
*/
|
|
1573
1585
|
deviceAuthorize(params?: DeviceAuthorizeParams): Promise<DeviceAuthorization>;
|
|
1574
1586
|
/**
|
|
@@ -1616,6 +1628,15 @@ declare class OidcClient {
|
|
|
1616
1628
|
* {@link OAuthProtocolError} — `authorization_pending` and `slow_down`
|
|
1617
1629
|
* included — so a hand-rolled loop sees exactly what {@link deviceLogin}
|
|
1618
1630
|
* sees. Most callers want {@link deviceLogin}.
|
|
1631
|
+
*
|
|
1632
|
+
* Client authentication is the one {@link deviceAuthorize} describes
|
|
1633
|
+
* (contract 1.62, §14.1 rule 2): a configured `clientSecret` is sent as
|
|
1634
|
+
* `client_secret` in the form body, never as `Authorization: Basic`; a public
|
|
1635
|
+
* client sends none; `client_id` is sent on **every** poll (§14.1 rule 3). A
|
|
1636
|
+
* `401 invalid_client` surfaces as {@link OAuthProtocolError}, is not retried
|
|
1637
|
+
* and does not enter the §9 refresh guard (§14.2 rule 5). This SDK ships no
|
|
1638
|
+
* DPoP proof generator, so it cannot drive a client registered for DPoP; it
|
|
1639
|
+
* surfaces that client's refusal as the same `invalid_client`.
|
|
1619
1640
|
*/
|
|
1620
1641
|
devicePoll(params: DevicePollParams): Promise<OidcTokenSet>;
|
|
1621
1642
|
/**
|
|
@@ -2017,4 +2038,5 @@ declare class MemoryOidcStateStore implements OidcStateStore {
|
|
|
2017
2038
|
consume(state: string): Promise<OidcStateEntry | undefined>;
|
|
2018
2039
|
}
|
|
2019
2040
|
|
|
2020
|
-
export { PollSchedule as $, ACCESS_TOKEN_TYPE as A, BACKCHANNEL_LOGOUT_EVENT as B, CIBA_GRANT_TYPE as C, DEFAULT_CIBA_INTERVAL_SECS as D,
|
|
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, 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 };
|
|
2042
|
+
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
|
|
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-D34sXV8p.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-D34sXV8p.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-C9WlP6DV.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
|
/**
|
|
@@ -106,12 +106,63 @@ declare function parseSpMetadataFromXml(xml: string): ParseSamlSpMetadata;
|
|
|
106
106
|
*/
|
|
107
107
|
declare function samlServiceProviderInputFrom(sp: SamlServiceProvider): SamlServiceProviderInput;
|
|
108
108
|
/**
|
|
109
|
-
* Read-modify-write for `ssf.updateStream` (§32.2)
|
|
110
|
-
* left absent — absent keeps the stored header (unless
|
|
111
|
-
* `endpoint_url` to another origin, §32.3 rule 5) — and so is
|
|
109
|
+
* Read-modify-write for `ssf.updateStream` (§32.2): the **plain converter**.
|
|
110
|
+
* `authorization_header` is left absent — absent keeps the stored header (unless
|
|
111
|
+
* the update moves `endpoint_url` to another origin, §32.3 rule 5) — and so is
|
|
112
112
|
* `clear_authorization_header`.
|
|
113
|
+
*
|
|
114
|
+
* `events_requested` is always sent, as read — `[]` stays `[]`, because omitting
|
|
115
|
+
* it would reset a receiver's narrowing to every allowed event — and
|
|
116
|
+
* `expected_updated_at` is the `updated_at` of the read, **the server's own
|
|
117
|
+
* string** (contract 1.61, 1.62, §32.2): the replacement lands only if nobody
|
|
118
|
+
* wrote the stream since, else `409` — reload, then retry. Delete it from the
|
|
119
|
+
* body to fall back to the server's version-at-request.
|
|
120
|
+
*
|
|
121
|
+
* **The caller's duty (contract 1.62, §32.2).** This function cannot know that
|
|
122
|
+
* you are about to lower `events_allowed`, so it does not cut
|
|
123
|
+
* `events_requested`: if you lower the ceiling on the result you MUST cut
|
|
124
|
+
* `events_requested` to the new `events_allowed` yourself, or the server answers
|
|
125
|
+
* `400` for a request outside the ceiling. Remember the three meanings of
|
|
126
|
+
* `events_requested` on an update — **absent** resets the stream to every event
|
|
127
|
+
* of `events_allowed` (widening what the receiver narrowed), **`[]`** is stored
|
|
128
|
+
* as the receiver's "none", a list is stored as given and refused (`400`)
|
|
129
|
+
* outside `events_allowed` — and that a stream written since you read it
|
|
130
|
+
* (the receiver included) is `409`. {@link ssfStreamInputWith} is the form that
|
|
131
|
+
* takes the changes and does the cut for you.
|
|
113
132
|
*/
|
|
114
133
|
declare function ssfStreamInputFrom(stream: SsfStream): SsfStreamInput;
|
|
134
|
+
/**
|
|
135
|
+
* The **change-taking** read-modify-write form for `ssf.updateStream`
|
|
136
|
+
* (contract 1.62, §32.2): `(stream, changes) → SsfStreamInput`.
|
|
137
|
+
*
|
|
138
|
+
* It applies `changes` over what was read and returns the replacement body:
|
|
139
|
+
*
|
|
140
|
+
* - `events_requested` and `expected_updated_at` are sent **as read** — an `[]`
|
|
141
|
+
* stays `[]`, and the timestamp is the stream's own `updated_at` string, byte
|
|
142
|
+
* for byte, never re-rendered — so the replacement lands only on the version
|
|
143
|
+
* you read (a write made since, the receiver's included, is `409`: reload,
|
|
144
|
+
* then retry) and a receiver's narrowing is not widened.
|
|
145
|
+
* - When `changes` names `events_allowed` and not `events_requested`,
|
|
146
|
+
* `events_requested` is **cut to the new `events_allowed`**: the entries of
|
|
147
|
+
* the read list that are in the new ceiling, in their order. An
|
|
148
|
+
* `events_requested` named in `changes` is sent as given — the server judges
|
|
149
|
+
* it (`400` outside `events_allowed`).
|
|
150
|
+
*
|
|
151
|
+
* The three meanings of `events_requested` on an update still hold for what you
|
|
152
|
+
* name: **absent** resets the stream to every event of `events_allowed`, **`[]`**
|
|
153
|
+
* is stored as the receiver's "none", a list is stored as given. To reset
|
|
154
|
+
* deliberately, name `events_requested: null` — the key is then left out of the
|
|
155
|
+
* body. Likewise `expected_updated_at: null` is "none": the key is left out and
|
|
156
|
+
* the replacement is conditional only on the version the server reads during the
|
|
157
|
+
* request. A member of `changes` whose value is `undefined` is not a change.
|
|
158
|
+
*
|
|
159
|
+
* `authorization_header` and `clear_authorization_header` are left absent unless
|
|
160
|
+
* `changes` names them (absent keeps the stored header, §32.3 rule 5).
|
|
161
|
+
*
|
|
162
|
+
* @param stream - The stream as `ssf.getStream` returned it.
|
|
163
|
+
* @param changes - The members to change, applied over the read.
|
|
164
|
+
*/
|
|
165
|
+
declare function ssfStreamInputWith(stream: SsfStream, changes?: Partial<SsfStreamInput>): SsfStreamInput;
|
|
115
166
|
/**
|
|
116
167
|
* Read-modify-write for `scimTargets.update` (§31.2). `credential` is left
|
|
117
168
|
* absent — absent keeps the stored one, unless the write moves its URL or
|
|
@@ -279,4 +330,5 @@ interface ManagementCall {
|
|
|
279
330
|
body?: unknown;
|
|
280
331
|
}
|
|
281
332
|
|
|
282
|
-
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
|
|
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-BMNQi36J.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-BMNQi36J.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-BbPFTpMZ.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
|
/**
|
|
@@ -106,12 +106,63 @@ declare function parseSpMetadataFromXml(xml: string): ParseSamlSpMetadata;
|
|
|
106
106
|
*/
|
|
107
107
|
declare function samlServiceProviderInputFrom(sp: SamlServiceProvider): SamlServiceProviderInput;
|
|
108
108
|
/**
|
|
109
|
-
* Read-modify-write for `ssf.updateStream` (§32.2)
|
|
110
|
-
* left absent — absent keeps the stored header (unless
|
|
111
|
-
* `endpoint_url` to another origin, §32.3 rule 5) — and so is
|
|
109
|
+
* Read-modify-write for `ssf.updateStream` (§32.2): the **plain converter**.
|
|
110
|
+
* `authorization_header` is left absent — absent keeps the stored header (unless
|
|
111
|
+
* the update moves `endpoint_url` to another origin, §32.3 rule 5) — and so is
|
|
112
112
|
* `clear_authorization_header`.
|
|
113
|
+
*
|
|
114
|
+
* `events_requested` is always sent, as read — `[]` stays `[]`, because omitting
|
|
115
|
+
* it would reset a receiver's narrowing to every allowed event — and
|
|
116
|
+
* `expected_updated_at` is the `updated_at` of the read, **the server's own
|
|
117
|
+
* string** (contract 1.61, 1.62, §32.2): the replacement lands only if nobody
|
|
118
|
+
* wrote the stream since, else `409` — reload, then retry. Delete it from the
|
|
119
|
+
* body to fall back to the server's version-at-request.
|
|
120
|
+
*
|
|
121
|
+
* **The caller's duty (contract 1.62, §32.2).** This function cannot know that
|
|
122
|
+
* you are about to lower `events_allowed`, so it does not cut
|
|
123
|
+
* `events_requested`: if you lower the ceiling on the result you MUST cut
|
|
124
|
+
* `events_requested` to the new `events_allowed` yourself, or the server answers
|
|
125
|
+
* `400` for a request outside the ceiling. Remember the three meanings of
|
|
126
|
+
* `events_requested` on an update — **absent** resets the stream to every event
|
|
127
|
+
* of `events_allowed` (widening what the receiver narrowed), **`[]`** is stored
|
|
128
|
+
* as the receiver's "none", a list is stored as given and refused (`400`)
|
|
129
|
+
* outside `events_allowed` — and that a stream written since you read it
|
|
130
|
+
* (the receiver included) is `409`. {@link ssfStreamInputWith} is the form that
|
|
131
|
+
* takes the changes and does the cut for you.
|
|
113
132
|
*/
|
|
114
133
|
declare function ssfStreamInputFrom(stream: SsfStream): SsfStreamInput;
|
|
134
|
+
/**
|
|
135
|
+
* The **change-taking** read-modify-write form for `ssf.updateStream`
|
|
136
|
+
* (contract 1.62, §32.2): `(stream, changes) → SsfStreamInput`.
|
|
137
|
+
*
|
|
138
|
+
* It applies `changes` over what was read and returns the replacement body:
|
|
139
|
+
*
|
|
140
|
+
* - `events_requested` and `expected_updated_at` are sent **as read** — an `[]`
|
|
141
|
+
* stays `[]`, and the timestamp is the stream's own `updated_at` string, byte
|
|
142
|
+
* for byte, never re-rendered — so the replacement lands only on the version
|
|
143
|
+
* you read (a write made since, the receiver's included, is `409`: reload,
|
|
144
|
+
* then retry) and a receiver's narrowing is not widened.
|
|
145
|
+
* - When `changes` names `events_allowed` and not `events_requested`,
|
|
146
|
+
* `events_requested` is **cut to the new `events_allowed`**: the entries of
|
|
147
|
+
* the read list that are in the new ceiling, in their order. An
|
|
148
|
+
* `events_requested` named in `changes` is sent as given — the server judges
|
|
149
|
+
* it (`400` outside `events_allowed`).
|
|
150
|
+
*
|
|
151
|
+
* The three meanings of `events_requested` on an update still hold for what you
|
|
152
|
+
* name: **absent** resets the stream to every event of `events_allowed`, **`[]`**
|
|
153
|
+
* is stored as the receiver's "none", a list is stored as given. To reset
|
|
154
|
+
* deliberately, name `events_requested: null` — the key is then left out of the
|
|
155
|
+
* body. Likewise `expected_updated_at: null` is "none": the key is left out and
|
|
156
|
+
* the replacement is conditional only on the version the server reads during the
|
|
157
|
+
* request. A member of `changes` whose value is `undefined` is not a change.
|
|
158
|
+
*
|
|
159
|
+
* `authorization_header` and `clear_authorization_header` are left absent unless
|
|
160
|
+
* `changes` names them (absent keeps the stored header, §32.3 rule 5).
|
|
161
|
+
*
|
|
162
|
+
* @param stream - The stream as `ssf.getStream` returned it.
|
|
163
|
+
* @param changes - The members to change, applied over the read.
|
|
164
|
+
*/
|
|
165
|
+
declare function ssfStreamInputWith(stream: SsfStream, changes?: Partial<SsfStreamInput>): SsfStreamInput;
|
|
115
166
|
/**
|
|
116
167
|
* Read-modify-write for `scimTargets.update` (§31.2). `credential` is left
|
|
117
168
|
* absent — absent keeps the stored one, unless the write moves its URL or
|
|
@@ -279,4 +330,5 @@ interface ManagementCall {
|
|
|
279
330
|
body?: unknown;
|
|
280
331
|
}
|
|
281
332
|
|
|
282
|
-
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 };
|