axiam-sdk 1.1.1 → 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 +20 -4
- package/dist/browser/index.d.cts +1 -1
- package/dist/browser/index.d.ts +1 -1
- package/dist/{client-D34sXV8p.d.cts → client-BGFn1VQh.d.cts} +7 -1
- package/dist/{client-BMNQi36J.d.ts → client-DrQZZ1js.d.ts} +7 -1
- package/dist/{cookieJar-DcrMe93Q.d.ts → cookieJar-BTmpjXZe.d.ts} +8 -2
- package/dist/{cookieJar-C_xPuniu.d.cts → cookieJar-BqYOnNN-.d.cts} +8 -2
- package/dist/grpc/index.d.cts +4 -4
- package/dist/grpc/index.d.ts +4 -4
- package/dist/grpc/index.js +32 -2
- package/dist/grpc/index.js.map +1 -1
- package/dist/grpc/index.mjs +32 -2
- package/dist/grpc/index.mjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +24 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -2
- package/dist/index.mjs.map +1 -1
- package/dist/middleware/index.d.cts +3 -3
- package/dist/middleware/index.d.ts +3 -3
- package/dist/middleware/index.js +149 -22
- package/dist/middleware/index.js.map +1 -1
- package/dist/middleware/index.mjs +149 -22
- package/dist/middleware/index.mjs.map +1 -1
- package/dist/node/index.d.cts +3 -3
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.js +178 -23
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +178 -23
- package/dist/node/index.mjs.map +1 -1
- package/dist/{oidcState-BFIHt7_Y.d.cts → oidcState-BaJ-SM_R.d.cts} +37 -6
- package/dist/{oidcState-qoy2vsYG.d.ts → oidcState-C3VLn3eD.d.ts} +37 -6
- package/dist/rest/index.d.cts +3 -3
- package/dist/rest/index.d.ts +3 -3
- package/dist/rest/index.js +24 -2
- package/dist/rest/index.js.map +1 -1
- package/dist/rest/index.mjs +24 -2
- package/dist/rest/index.mjs.map +1 -1
- package/dist/{session-BbPFTpMZ.d.ts → session-B03NsqVs.d.ts} +16 -0
- package/dist/{session-C9WlP6DV.d.cts → session-plDr4lFu.d.cts} +16 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { KeyObject } from 'node:crypto';
|
|
2
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-
|
|
4
|
+
import { S as SharedSession } from './session-plDr4lFu.cjs';
|
|
5
5
|
import { I as IdTokenClaims } from './jwks-CTVpOWzI.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -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
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { KeyObject } from 'node:crypto';
|
|
2
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-
|
|
4
|
+
import { S as SharedSession } from './session-B03NsqVs.js';
|
|
5
5
|
import { I as IdTokenClaims } from './jwks-CTVpOWzI.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -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
|
*
|
package/dist/rest/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as ParseSamlSpMetadata, S as SamlServiceProvider, c as SamlServiceProviderInput, d as ScimTargetResponse, e as ScimTargetInput, D as DirectoryConfig, f as SetDirectoryConfig, g as SsfStream, h as SsfStreamInput, G as GrantSpec, i as GroupSpec, j as PermissionSpec, R as ResourceSpec, k as RoleSpec, l as ScopeSpec, m as ServiceAccountSpec, U as UserSpec, M as ManagementManifest } from '../client-
|
|
2
|
-
export { n as AcsEndpoint, o as ActorType, p as AddMemberRequest, q as AddServiceAccountMemberRequest, r as ApiProviderConfig, s as AppliedStep, t as ApplyReport, u as AssignRoleToGroupRequest, v as AssignRoleToServiceAccountRequest, w as AssignRoleToUserRequest, x as AttestationMode, y as AttributeMapping, z as AttributeSource, B as AuditApi, C as AuditListFilter, E as AuditListSystemFilter, F as AuditLogEntry, H as AuditOutcome, I as AuthnRequestParamsMode, A as AxiamClient, J as BASE_DELAY_MS, K as BindCertificate, L as CaCertificate, N as CaCertificatesApi, O as Certificate, Q as CertificatePolicy, T as CertificateStatus, V as CertificateType, X as CertificatesApi, Y as CertificationLevel, Z as Change, _ as CibaDeliveryMode, $ as CibaRequestSigningAlg, a0 as CimdPolicy, a1 as ClientAuthMethod, a2 as ClientProfile, a3 as ClientRegistration, a4 as ComplianceReportEntry, a5 as ConsentView, a6 as CreateCaCertificateRequest, a7 as CreateCertificateRequest, a8 as CreateFederationConfigRequest, a9 as CreateFederationConfigRequestWire, aa as CreateGroupRequest, ab as CreateIntermediateCaRequest, ac as CreateNetworkReplyProfileRequest, ad as CreateNetworkSegmentRequest, ae as CreateNotificationRuleRequest, af as CreateOAuth2ClientRequest, ag as CreatePermissionRequest, ah as CreatePgpKeyRequest, ai as CreateReactorRequest, aj as CreateRegistrationTokenRequest, ak as CreateRegistrationTokenResponse, al as CreateRegistrationTokenResponseWire, am as CreateResourceRequest, an as CreateRoleRequest, ao as CreateScimTokenRequest, ap as CreateScimTokenResponse, aq as CreateScimTokenResponseWire, ar as CreateScopeRequest, as as CreateServiceAccountRequest, at as CreateTenantRequest, au as CreateUserRequest, av as CreateUserRequestWire, aw as CreateWebhookRequest, ax as CreateWebhookRequestWire, ay as DeprovisionPolicy, az as DeviceToken, aA as DirectoryApi, aB as DirectoryKind, aC as DirectoryLinkResult, aD as DirectorySyncStatus, aE as EmailConfig, aF as EmailConfigApi, aG as EmailConfigOverride, aH as EmailTestResult, aI as EmailVerificationPolicy, aJ as EncryptRequest, aK as EncryptedExport, aL as FailurePolicy, aM as FederationApi, aN as FederationConfigResponse, aO as FederationLinkResponse, aP as GeneratedCaCertificate, aQ as GeneratedCaCertificateWire, aR as GeneratedCertificate, aS as GeneratedCertificateWire, aT as GeneratedPgpKey, aU as GeneratedPgpKeyWire, aV as GrantPermissionRequest, aW as GrantScopeConsent, aX as GrantedScope, aY as Group, aZ as GroupMapping, a_ as GroupsApi, a$ as HealthResponse, b0 as ImportCaCertificateRequest, b1 as ImportCaCertificateRequestWire, b2 as IssueSamlIdpCredential, b3 as KNOWN_SCIM_TARGET_AUTH_TYPES, b4 as KNOWN_SCIM_TARGET_SCOPE_TYPES, b5 as KeyAlgorithm, b6 as LinkDirectoryAccount, b7 as LockoutPolicy, b8 as MAX_ATTEMPTS, b9 as MAX_DELAY_MS, ba as ManagedBy, bb as ManagementNamespaces, bc as ManagementPlan, bd as ManifestApi, be as ManifestFailure, bf as MdsRefreshOutcome, bg as MdsStatusResponse, bh as MfaEnrollment, bi as MfaMethodResponse, bj as MfaMethodType, bk as MfaPolicy, bl as MigrateCustodyResponse, bm as MtlsTrustAnchorResponse, bn as NameIdFormat, bo as NamespaceScope, bp as 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-
|
|
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
4
|
export { C as ConfigClampedEvent, O as Outcome, R as RefreshEvent, b as RefreshRole, c as RequestEndEvent, d as RequestStartEvent, e as RetryEvent, S as SsfUnjudgedCategory, f as SsfUnjudgedEvent, a as TelemetryDispatcher, g as TelemetryEvent, T as TelemetryHook } from '../telemetry-Du0-zS5f.cjs';
|
|
5
5
|
export { A as AccessCheck, a as AccessDecision, b as AxiamUserInfo, L as LoginResult } from '../types-zXSpiQM-.cjs';
|
|
6
6
|
export { W as WebauthnFailure, c as classifyWebauthnError, w as webauthnErrorMessage } from '../webauthnErrors-m1LZiaRy.cjs';
|
package/dist/rest/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as ParseSamlSpMetadata, S as SamlServiceProvider, c as SamlServiceProviderInput, d as ScimTargetResponse, e as ScimTargetInput, D as DirectoryConfig, f as SetDirectoryConfig, g as SsfStream, h as SsfStreamInput, G as GrantSpec, i as GroupSpec, j as PermissionSpec, R as ResourceSpec, k as RoleSpec, l as ScopeSpec, m as ServiceAccountSpec, U as UserSpec, M as ManagementManifest } from '../client-
|
|
2
|
-
export { n as AcsEndpoint, o as ActorType, p as AddMemberRequest, q as AddServiceAccountMemberRequest, r as ApiProviderConfig, s as AppliedStep, t as ApplyReport, u as AssignRoleToGroupRequest, v as AssignRoleToServiceAccountRequest, w as AssignRoleToUserRequest, x as AttestationMode, y as AttributeMapping, z as AttributeSource, B as AuditApi, C as AuditListFilter, E as AuditListSystemFilter, F as AuditLogEntry, H as AuditOutcome, I as AuthnRequestParamsMode, A as AxiamClient, J as BASE_DELAY_MS, K as BindCertificate, L as CaCertificate, N as CaCertificatesApi, O as Certificate, Q as CertificatePolicy, T as CertificateStatus, V as CertificateType, X as CertificatesApi, Y as CertificationLevel, Z as Change, _ as CibaDeliveryMode, $ as CibaRequestSigningAlg, a0 as CimdPolicy, a1 as ClientAuthMethod, a2 as ClientProfile, a3 as ClientRegistration, a4 as ComplianceReportEntry, a5 as ConsentView, a6 as CreateCaCertificateRequest, a7 as CreateCertificateRequest, a8 as CreateFederationConfigRequest, a9 as CreateFederationConfigRequestWire, aa as CreateGroupRequest, ab as CreateIntermediateCaRequest, ac as CreateNetworkReplyProfileRequest, ad as CreateNetworkSegmentRequest, ae as CreateNotificationRuleRequest, af as CreateOAuth2ClientRequest, ag as CreatePermissionRequest, ah as CreatePgpKeyRequest, ai as CreateReactorRequest, aj as CreateRegistrationTokenRequest, ak as CreateRegistrationTokenResponse, al as CreateRegistrationTokenResponseWire, am as CreateResourceRequest, an as CreateRoleRequest, ao as CreateScimTokenRequest, ap as CreateScimTokenResponse, aq as CreateScimTokenResponseWire, ar as CreateScopeRequest, as as CreateServiceAccountRequest, at as CreateTenantRequest, au as CreateUserRequest, av as CreateUserRequestWire, aw as CreateWebhookRequest, ax as CreateWebhookRequestWire, ay as DeprovisionPolicy, az as DeviceToken, aA as DirectoryApi, aB as DirectoryKind, aC as DirectoryLinkResult, aD as DirectorySyncStatus, aE as EmailConfig, aF as EmailConfigApi, aG as EmailConfigOverride, aH as EmailTestResult, aI as EmailVerificationPolicy, aJ as EncryptRequest, aK as EncryptedExport, aL as FailurePolicy, aM as FederationApi, aN as FederationConfigResponse, aO as FederationLinkResponse, aP as GeneratedCaCertificate, aQ as GeneratedCaCertificateWire, aR as GeneratedCertificate, aS as GeneratedCertificateWire, aT as GeneratedPgpKey, aU as GeneratedPgpKeyWire, aV as GrantPermissionRequest, aW as GrantScopeConsent, aX as GrantedScope, aY as Group, aZ as GroupMapping, a_ as GroupsApi, a$ as HealthResponse, b0 as ImportCaCertificateRequest, b1 as ImportCaCertificateRequestWire, b2 as IssueSamlIdpCredential, b3 as KNOWN_SCIM_TARGET_AUTH_TYPES, b4 as KNOWN_SCIM_TARGET_SCOPE_TYPES, b5 as KeyAlgorithm, b6 as LinkDirectoryAccount, b7 as LockoutPolicy, b8 as MAX_ATTEMPTS, b9 as MAX_DELAY_MS, ba as ManagedBy, bb as ManagementNamespaces, bc as ManagementPlan, bd as ManifestApi, be as ManifestFailure, bf as MdsRefreshOutcome, bg as MdsStatusResponse, bh as MfaEnrollment, bi as MfaMethodResponse, bj as MfaMethodType, bk as MfaPolicy, bl as MigrateCustodyResponse, bm as MtlsTrustAnchorResponse, bn as NameIdFormat, bo as NamespaceScope, bp as 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-
|
|
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
4
|
export { C as ConfigClampedEvent, O as Outcome, R as RefreshEvent, b as RefreshRole, c as RequestEndEvent, d as RequestStartEvent, e as RetryEvent, S as SsfUnjudgedCategory, f as SsfUnjudgedEvent, a as TelemetryDispatcher, g as TelemetryEvent, T as TelemetryHook } from '../telemetry-Du0-zS5f.js';
|
|
5
5
|
export { A as AccessCheck, a as AccessDecision, b as AxiamUserInfo, L as LoginResult } from '../types-BOX-6Srv.js';
|
|
6
6
|
export { W as WebauthnFailure, c as classifyWebauthnError, w as webauthnErrorMessage } from '../webauthnErrors-m1LZiaRy.js';
|
package/dist/rest/index.js
CHANGED
|
@@ -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) {
|
|
@@ -864,7 +882,7 @@ function installDeviceTokenInterceptor(axiosInstance, session) {
|
|
|
864
882
|
if (session.isForeignHost(config.url) || deviceToken === void 0 && !oauth2) {
|
|
865
883
|
return config;
|
|
866
884
|
}
|
|
867
|
-
const noCred = session.noCredentialsConfig();
|
|
885
|
+
const noCred = oauth2 ? session.oauth2RequestConfig() : session.noCredentialsConfig();
|
|
868
886
|
Object.assign(config, noCred);
|
|
869
887
|
config.headers = config.headers ?? {};
|
|
870
888
|
if (oauth2) {
|
|
@@ -1358,6 +1376,7 @@ async function withRetry(fn, options) {
|
|
|
1358
1376
|
}
|
|
1359
1377
|
const retryAfterMs2 = isRetryAfterCarrier(err) ? err.retryAfterMs : void 0;
|
|
1360
1378
|
const delay = delayMs(attempt, retryAfterMs2, random());
|
|
1379
|
+
options.admit?.(delay);
|
|
1361
1380
|
options.telemetry?.emit({
|
|
1362
1381
|
type: "retry",
|
|
1363
1382
|
operation: options.operation ?? "unknown",
|
|
@@ -1890,7 +1909,10 @@ async function bareRequest(session, operation, config) {
|
|
|
1890
1909
|
// jar). Under the Node persona this is the jar-wrapped cookie agent, which
|
|
1891
1910
|
// `noCredentialsConfig()` below replaces with a plain one.
|
|
1892
1911
|
...defaults.httpsAgent !== void 0 ? { httpsAgent: defaults.httpsAgent } : {},
|
|
1893
|
-
|
|
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(),
|
|
1894
1916
|
withCredentials: false,
|
|
1895
1917
|
maxRedirects: 0,
|
|
1896
1918
|
validateStatus: () => true
|