axiam-sdk 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +91 -12
  2. package/dist/browser/index.d.cts +1 -1
  3. package/dist/browser/index.d.ts +1 -1
  4. package/dist/{client-yD0eMwHQ.d.cts → client-7ZKtfXW-.d.cts} +640 -14
  5. package/dist/{client-0WJkblDE.d.ts → client-Putxo-yi.d.ts} +640 -14
  6. package/dist/{cookieJar-hWRmZkhe.d.ts → cookieJar-Cw6Zdeec.d.ts} +1 -1
  7. package/dist/{cookieJar-CTD5jOmd.d.cts → cookieJar-DkGcIr-i.d.cts} +1 -1
  8. package/dist/{errors-m0Tue_pE.d.cts → errors-CtP_lviy.d.cts} +15 -1
  9. package/dist/{errors-CmBvsxV0.d.ts → errors-VpViVRSx.d.ts} +15 -1
  10. package/dist/grpc/index.d.cts +3 -3
  11. package/dist/grpc/index.d.ts +3 -3
  12. package/dist/grpc/index.js +572 -14
  13. package/dist/grpc/index.js.map +1 -1
  14. package/dist/grpc/index.mjs +572 -14
  15. package/dist/grpc/index.mjs.map +1 -1
  16. package/dist/index.d.cts +3 -3
  17. package/dist/index.d.ts +3 -3
  18. package/dist/index.js +594 -15
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.mjs +592 -16
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/middleware/index.d.cts +3 -3
  23. package/dist/middleware/index.d.ts +3 -3
  24. package/dist/middleware/index.js +26 -3
  25. package/dist/middleware/index.js.map +1 -1
  26. package/dist/middleware/index.mjs +26 -3
  27. package/dist/middleware/index.mjs.map +1 -1
  28. package/dist/node/index.d.cts +3 -3
  29. package/dist/node/index.d.ts +3 -3
  30. package/dist/node/index.js +598 -17
  31. package/dist/node/index.js.map +1 -1
  32. package/dist/node/index.mjs +598 -17
  33. package/dist/node/index.mjs.map +1 -1
  34. package/dist/{oidcState-mQLVn3-A.d.cts → oidcState-Cz6erz0g.d.cts} +24 -3
  35. package/dist/{oidcState-DOSCgnMG.d.ts → oidcState-zGt6VU6v.d.ts} +24 -3
  36. package/dist/rest/index.d.cts +58 -7
  37. package/dist/rest/index.d.ts +58 -7
  38. package/dist/rest/index.js +594 -15
  39. package/dist/rest/index.js.map +1 -1
  40. package/dist/rest/index.mjs +592 -16
  41. package/dist/rest/index.mjs.map +1 -1
  42. package/package.json +1 -1
@@ -1566,9 +1566,21 @@ declare class OidcClient {
1566
1566
  * and obtain the code pair.
1567
1567
  *
1568
1568
  * @remarks
1569
- * **Unauthenticated by design.** A device that cannot show a browser also
1570
- * cannot hold a client secret, so this never sends `client_secret` and never
1571
- * refuses a client built without one (§14.1).
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
  /**
@@ -1566,9 +1566,21 @@ declare class OidcClient {
1566
1566
  * and obtain the code pair.
1567
1567
  *
1568
1568
  * @remarks
1569
- * **Unauthenticated by design.** A device that cannot show a browser also
1570
- * cannot hold a client secret, so this never sends `client_secret` and never
1571
- * refuses a client built without one (§14.1).
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
  /**
@@ -1,5 +1,5 @@
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-yD0eMwHQ.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 CreateNotificationRuleRequest, ad as CreateOAuth2ClientRequest, ae as CreatePermissionRequest, af as CreatePgpKeyRequest, ag as CreateReactorRequest, ah as CreateRegistrationTokenRequest, ai as CreateRegistrationTokenResponse, aj as CreateRegistrationTokenResponseWire, ak as CreateResourceRequest, al as CreateRoleRequest, am as CreateScimTokenRequest, an as CreateScimTokenResponse, ao as CreateScimTokenResponseWire, ap as CreateScopeRequest, aq as CreateServiceAccountRequest, ar as CreateTenantRequest, as as CreateUserRequest, at as CreateUserRequestWire, au as CreateWebhookRequest, av as CreateWebhookRequestWire, aw as DeprovisionPolicy, ax as DeviceToken, ay as DirectoryApi, az as DirectoryKind, aA as DirectoryLinkResult, aB as DirectorySyncStatus, aC as EmailConfig, aD as EmailConfigApi, aE as EmailConfigOverride, aF as EmailTestResult, aG as EmailVerificationPolicy, aH as EncryptRequest, aI as EncryptedExport, aJ as FailurePolicy, aK as FederationApi, aL as FederationConfigResponse, aM as FederationLinkResponse, aN as GeneratedCaCertificate, aO as GeneratedCaCertificateWire, aP as GeneratedCertificate, aQ as GeneratedCertificateWire, aR as GeneratedPgpKey, aS as GeneratedPgpKeyWire, aT as GrantPermissionRequest, aU as GrantScopeConsent, aV as GrantedScope, aW as Group, aX as GroupMapping, aY as GroupsApi, aZ as HealthResponse, a_ as ImportCaCertificateRequest, a$ as ImportCaCertificateRequestWire, b0 as IssueSamlIdpCredential, b1 as KNOWN_SCIM_TARGET_AUTH_TYPES, b2 as KNOWN_SCIM_TARGET_SCOPE_TYPES, b3 as KeyAlgorithm, b4 as LinkDirectoryAccount, b5 as LockoutPolicy, b6 as MAX_ATTEMPTS, b7 as MAX_DELAY_MS, b8 as ManagedBy, b9 as ManagementNamespaces, ba as ManagementPlan, bb as ManifestApi, bc as ManifestFailure, bd as MdsRefreshOutcome, be as MdsStatusResponse, bf as MfaEnrollment, bg as MfaMethodResponse, bh as MfaMethodType, bi as MfaPolicy, bj as MigrateCustodyResponse, bk as MtlsTrustAnchorResponse, bl as NameIdFormat, bm as NamespaceScope, bn as NotificationEventType, bo as NotificationPolicy, bp as NotificationRuleResponse, bq as NotificationRulesApi, br as OAuth2ClientCreatedResponse, bs as OAuth2ClientCreatedResponseWire, bt as OAuth2ClientResponse, bu as Oauth2ClientsApi, bv as OidcAuthorizeRequest, bw as OidcAuthorizeResponse, bx as OidcCallbackRequest, by as OidcCallbackResponse, bz as OidcPolicy, bA as OpaqueEnrollment, bB as OpaqueEnrollmentPayload, bC as OpaquePolicy, bD as Organization, bE as OrganizationsApi, bF as Page, bG as PageRequest, bH as PasswordPolicy, bI as PasswordResetConfirmation, bJ as PasswordResetContext, bK as PasswordResetRequest, bL as Permission, bM as PermissionEffect, bN as PermissionsApi, bO as PgpKey, bP as PgpKeyAlgorithm, bQ as PgpKeyPurpose, bR as PgpKeyStatus, bS as PgpKeysApi, bT as PlannedAction, bU as PlatformApi, bV as PolicyResponse, bW as PrivacyApi, bX as PrivacyPolicy, bY as ProviderConfig, bZ as ReactorEventDescriptor, b_ as ReactorMode, b$ as ReactorResponse, c0 as ReactorsApi, c1 as ReadyResponse, c2 as RegistrationTokenResponse, c3 as ResolvedPermissionGrant, c4 as Resource, c5 as ResourcesApi, c6 as RetryOptions, c7 as RetryPolicy, c8 as Role, c9 as RoleAssignment, ca as RoleBinding, cb as RoleGroupAssignment, cc as RoleServiceAccountAssignment, cd as RoleUserAssignment, ce as RolesApi, cf as RotateSecretResponse, cg as RotateSecretResponseWire, ch as SamlApi, ci as SamlBinding, cj as SamlIdpCredential, ck as SamlIdpCredentialPromotion, cl as SamlIdpCredentialStatus, cm as SamlIdpInfo, cn as SamlIdpSlot, co as SamlSpMetadataDraft, cp as ScimReconcileAccepted, cq as ScimTargetAuth, cr as ScimTargetDeliveryState, cs as ScimTargetInputWire, ct as ScimTargetScope, cu as ScimTargetsApi, cv as ScimTokenResponse, cw as ScimTokenStatus, cx as ScimTokensApi, cy as Scope, cz as ScopesApi, cA as SecuritySettings, cB as ServiceAccountCreatedResponse, cC as ServiceAccountCreatedResponseWire, cD as ServiceAccountResponse, cE as ServiceAccountsApi, cF as SessionResponse, cG as SetDirectoryConfigWire, cH as SetMtlsTrustAnchor, cI as SetOrgEmailConfig, cJ as SetOrgSettings, cK as SettingsApi, cL as SettingsScope, cM as SignAuditBatchRequest, cN as SignCertificateCsrRequest, cO as SignIntermediateCsrRequest, cP as SignedAuditBatch, cQ as SmtpConfig, cR as SsfApi, cS as SsfDeliveryMethod, cT as SsfEventType, cU as SsfStatusActor, cV as SsfStreamInputWire, cW as SsfStreamStatus, cX as SsfSubjectFormat, cY as StepOutcome, cZ as SubjectAltName, c_ as Target, c$ as Tenant, d0 as TenantKind, d1 as TenantSettingsOverride, d2 as TenantStatus, d3 as TenantsApi, d4 as TokenExchangeTrustRequest, d5 as TokenExchangeTrustResponse, d6 as TokenPolicy, d7 as UnknownAaguidAction, d8 as UpdateDirectoryConfig, d9 as UpdateDirectoryConfigWire, da as UpdateFederationConfigRequest, db as UpdateFederationConfigRequestWire, dc as UpdateGroup, dd as UpdateNotificationRuleRequest, de as UpdateOAuth2ClientRequest, df as UpdateOrganizationRequest, dg as UpdatePermissionRequest, dh as UpdateReactorRequest, di as UpdateResourceRequest, dj as UpdateRole, dk as UpdateScopeRequest, dl as UpdateServiceAccount, dm as UpdateTenant, dn as UpdateUserRequest, dp as UpdateWebhookRequest, dq as UpdateWebhookRequestWire, dr as UserAttributeMap, ds as UserNameSource, dt as UserResponse, du as UserStatus, dv as UsersApi, dw as WebauthnAttestationPolicy, dx as WebauthnAuthenticationChallenge, dy as WebauthnAuthenticationResponse, dz as WebauthnCreationChallenge, dA as WebauthnCreationOptionsJson, b as WebauthnCredential, dB as WebauthnCredentialDescriptorJson, a as WebauthnLoginResult, dC as WebauthnPolicy, dD as WebauthnPolicyApi, dE as WebauthnRegistrationChallenge, dF as WebauthnRegistrationResponse, dG as WebauthnRequestChallenge, dH as WebauthnRequestOptionsJson, W as WebauthnWorkspace, dI as WebhookResponse, dJ as WebhooksApi, dK as assertKnownScimTargetAuth, dL as assertKnownScimTargetScope, dM as assertValidSubjectAltName, dN as assertValidSubjectAltNameList, dO as backoffMs, dP as changedCount, dQ as changes, dR as clientRegistrationFromJson, dS as collectPages, dT as createFederationConfigRequestToWire, dU as createRegistrationTokenResponseFromWire, dV as createScimTokenResponseFromWire, dW as createUserRequestToWire, dX as createWebhookRequestToWire, dY as delayMs, dZ as failure, d_ as generatedCaCertificateFromWire, d$ as generatedCertificateFromWire, e0 as generatedPgpKeyFromWire, e1 as hasMore, e2 as importCaCertificateRequestToWire, e3 as inheritOf, e4 as isComplete, e5 as isConverged, e6 as managementNamespaces, e7 as normalizeSearch, e8 as oAuth2ClientCreatedResponseFromWire, e9 as omitEmptyTenantScope, ea as opaqueEnrollment, eb as opaqueEnrollmentForSelf, ec as pageQuery, ed as resourceKeyOf, ee as roleAssignmentInherits, ef as roleKeyOf, eg as rotateSecretResponseFromWire, eh as scimTargetInputToWire, ei as scrubDirectoryConfig, ej as scrubDirectoryLinkResult, ek as scrubDirectorySyncStatus, el as scrubSamlIdpCredential, em as scrubSamlIdpCredentialPromotion, en as scrubSamlIdpInfo, eo as scrubSamlServiceProvider, ep as scrubSamlSpMetadataDraft, eq as scrubScimReconcileAccepted, er as scrubScimTargetResponse, es as scrubSsfStream, et as serviceAccountCreatedResponseFromWire, eu as setDirectoryConfigToWire, ev as ssfStreamInputToWire, ew as topologicalOrder, ex as updateDirectoryConfigToWire, ey as updateFederationConfigRequestToWire, ez as updateWebhookRequestToWire, eA as validate, eB as webauthnRequestJson, eC as withFederationConfigResponseDefaults, eD as withRetry } from '../client-yD0eMwHQ.cjs';
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-7ZKtfXW-.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-7ZKtfXW-.cjs';
3
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-BmjEMowX.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--0DwnNjV.cjs';
5
5
  export { A as AccessCheck, a as AccessDecision, b as AxiamUserInfo, L as LoginResult } from '../types-zXSpiQM-.cjs';
@@ -7,7 +7,7 @@ export { W as WebauthnFailure, c as classifyWebauthnError, w as webauthnErrorMes
7
7
  import { N as NetworkError } from '../errors-DMIlw2lN.cjs';
8
8
  export { a as AuthError, A as AuthzError, b as AxiamError, I as IdTokenFailureReason, O as OAuthProtocolError } from '../errors-DMIlw2lN.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-m0Tue_pE.cjs';
10
+ export { C as ConflictError, F as FieldError, N as NotFoundError, V as ValidationError, p as parseFieldErrors } from '../errors-CtP_lviy.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). `authorization_header` is
110
- * left absent — absent keeps the stored header (unless the update moves
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,4 @@ interface ManagementCall {
279
330
  body?: unknown;
280
331
  }
281
332
 
282
- export { AxiamGrant, AxiamGroup, AxiamPermission, AxiamResource, AxiamRole, AxiamScope, AxiamServiceAccount, AxiamUser, type ClassDeco, DirectoryConfig, GrantSpec, GroupSpec, type ManagementCall, ManagementManifest, type ManagementMethod, 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 };
333
+ export { AxiamGrant, AxiamGroup, AxiamPermission, AxiamResource, AxiamRole, AxiamScope, AxiamServiceAccount, AxiamUser, type ClassDeco, DirectoryConfig, GrantSpec, GroupSpec, type ManagementCall, ManagementManifest, type ManagementMethod, 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 };
@@ -1,5 +1,5 @@
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-0WJkblDE.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 CreateNotificationRuleRequest, ad as CreateOAuth2ClientRequest, ae as CreatePermissionRequest, af as CreatePgpKeyRequest, ag as CreateReactorRequest, ah as CreateRegistrationTokenRequest, ai as CreateRegistrationTokenResponse, aj as CreateRegistrationTokenResponseWire, ak as CreateResourceRequest, al as CreateRoleRequest, am as CreateScimTokenRequest, an as CreateScimTokenResponse, ao as CreateScimTokenResponseWire, ap as CreateScopeRequest, aq as CreateServiceAccountRequest, ar as CreateTenantRequest, as as CreateUserRequest, at as CreateUserRequestWire, au as CreateWebhookRequest, av as CreateWebhookRequestWire, aw as DeprovisionPolicy, ax as DeviceToken, ay as DirectoryApi, az as DirectoryKind, aA as DirectoryLinkResult, aB as DirectorySyncStatus, aC as EmailConfig, aD as EmailConfigApi, aE as EmailConfigOverride, aF as EmailTestResult, aG as EmailVerificationPolicy, aH as EncryptRequest, aI as EncryptedExport, aJ as FailurePolicy, aK as FederationApi, aL as FederationConfigResponse, aM as FederationLinkResponse, aN as GeneratedCaCertificate, aO as GeneratedCaCertificateWire, aP as GeneratedCertificate, aQ as GeneratedCertificateWire, aR as GeneratedPgpKey, aS as GeneratedPgpKeyWire, aT as GrantPermissionRequest, aU as GrantScopeConsent, aV as GrantedScope, aW as Group, aX as GroupMapping, aY as GroupsApi, aZ as HealthResponse, a_ as ImportCaCertificateRequest, a$ as ImportCaCertificateRequestWire, b0 as IssueSamlIdpCredential, b1 as KNOWN_SCIM_TARGET_AUTH_TYPES, b2 as KNOWN_SCIM_TARGET_SCOPE_TYPES, b3 as KeyAlgorithm, b4 as LinkDirectoryAccount, b5 as LockoutPolicy, b6 as MAX_ATTEMPTS, b7 as MAX_DELAY_MS, b8 as ManagedBy, b9 as ManagementNamespaces, ba as ManagementPlan, bb as ManifestApi, bc as ManifestFailure, bd as MdsRefreshOutcome, be as MdsStatusResponse, bf as MfaEnrollment, bg as MfaMethodResponse, bh as MfaMethodType, bi as MfaPolicy, bj as MigrateCustodyResponse, bk as MtlsTrustAnchorResponse, bl as NameIdFormat, bm as NamespaceScope, bn as NotificationEventType, bo as NotificationPolicy, bp as NotificationRuleResponse, bq as NotificationRulesApi, br as OAuth2ClientCreatedResponse, bs as OAuth2ClientCreatedResponseWire, bt as OAuth2ClientResponse, bu as Oauth2ClientsApi, bv as OidcAuthorizeRequest, bw as OidcAuthorizeResponse, bx as OidcCallbackRequest, by as OidcCallbackResponse, bz as OidcPolicy, bA as OpaqueEnrollment, bB as OpaqueEnrollmentPayload, bC as OpaquePolicy, bD as Organization, bE as OrganizationsApi, bF as Page, bG as PageRequest, bH as PasswordPolicy, bI as PasswordResetConfirmation, bJ as PasswordResetContext, bK as PasswordResetRequest, bL as Permission, bM as PermissionEffect, bN as PermissionsApi, bO as PgpKey, bP as PgpKeyAlgorithm, bQ as PgpKeyPurpose, bR as PgpKeyStatus, bS as PgpKeysApi, bT as PlannedAction, bU as PlatformApi, bV as PolicyResponse, bW as PrivacyApi, bX as PrivacyPolicy, bY as ProviderConfig, bZ as ReactorEventDescriptor, b_ as ReactorMode, b$ as ReactorResponse, c0 as ReactorsApi, c1 as ReadyResponse, c2 as RegistrationTokenResponse, c3 as ResolvedPermissionGrant, c4 as Resource, c5 as ResourcesApi, c6 as RetryOptions, c7 as RetryPolicy, c8 as Role, c9 as RoleAssignment, ca as RoleBinding, cb as RoleGroupAssignment, cc as RoleServiceAccountAssignment, cd as RoleUserAssignment, ce as RolesApi, cf as RotateSecretResponse, cg as RotateSecretResponseWire, ch as SamlApi, ci as SamlBinding, cj as SamlIdpCredential, ck as SamlIdpCredentialPromotion, cl as SamlIdpCredentialStatus, cm as SamlIdpInfo, cn as SamlIdpSlot, co as SamlSpMetadataDraft, cp as ScimReconcileAccepted, cq as ScimTargetAuth, cr as ScimTargetDeliveryState, cs as ScimTargetInputWire, ct as ScimTargetScope, cu as ScimTargetsApi, cv as ScimTokenResponse, cw as ScimTokenStatus, cx as ScimTokensApi, cy as Scope, cz as ScopesApi, cA as SecuritySettings, cB as ServiceAccountCreatedResponse, cC as ServiceAccountCreatedResponseWire, cD as ServiceAccountResponse, cE as ServiceAccountsApi, cF as SessionResponse, cG as SetDirectoryConfigWire, cH as SetMtlsTrustAnchor, cI as SetOrgEmailConfig, cJ as SetOrgSettings, cK as SettingsApi, cL as SettingsScope, cM as SignAuditBatchRequest, cN as SignCertificateCsrRequest, cO as SignIntermediateCsrRequest, cP as SignedAuditBatch, cQ as SmtpConfig, cR as SsfApi, cS as SsfDeliveryMethod, cT as SsfEventType, cU as SsfStatusActor, cV as SsfStreamInputWire, cW as SsfStreamStatus, cX as SsfSubjectFormat, cY as StepOutcome, cZ as SubjectAltName, c_ as Target, c$ as Tenant, d0 as TenantKind, d1 as TenantSettingsOverride, d2 as TenantStatus, d3 as TenantsApi, d4 as TokenExchangeTrustRequest, d5 as TokenExchangeTrustResponse, d6 as TokenPolicy, d7 as UnknownAaguidAction, d8 as UpdateDirectoryConfig, d9 as UpdateDirectoryConfigWire, da as UpdateFederationConfigRequest, db as UpdateFederationConfigRequestWire, dc as UpdateGroup, dd as UpdateNotificationRuleRequest, de as UpdateOAuth2ClientRequest, df as UpdateOrganizationRequest, dg as UpdatePermissionRequest, dh as UpdateReactorRequest, di as UpdateResourceRequest, dj as UpdateRole, dk as UpdateScopeRequest, dl as UpdateServiceAccount, dm as UpdateTenant, dn as UpdateUserRequest, dp as UpdateWebhookRequest, dq as UpdateWebhookRequestWire, dr as UserAttributeMap, ds as UserNameSource, dt as UserResponse, du as UserStatus, dv as UsersApi, dw as WebauthnAttestationPolicy, dx as WebauthnAuthenticationChallenge, dy as WebauthnAuthenticationResponse, dz as WebauthnCreationChallenge, dA as WebauthnCreationOptionsJson, b as WebauthnCredential, dB as WebauthnCredentialDescriptorJson, a as WebauthnLoginResult, dC as WebauthnPolicy, dD as WebauthnPolicyApi, dE as WebauthnRegistrationChallenge, dF as WebauthnRegistrationResponse, dG as WebauthnRequestChallenge, dH as WebauthnRequestOptionsJson, W as WebauthnWorkspace, dI as WebhookResponse, dJ as WebhooksApi, dK as assertKnownScimTargetAuth, dL as assertKnownScimTargetScope, dM as assertValidSubjectAltName, dN as assertValidSubjectAltNameList, dO as backoffMs, dP as changedCount, dQ as changes, dR as clientRegistrationFromJson, dS as collectPages, dT as createFederationConfigRequestToWire, dU as createRegistrationTokenResponseFromWire, dV as createScimTokenResponseFromWire, dW as createUserRequestToWire, dX as createWebhookRequestToWire, dY as delayMs, dZ as failure, d_ as generatedCaCertificateFromWire, d$ as generatedCertificateFromWire, e0 as generatedPgpKeyFromWire, e1 as hasMore, e2 as importCaCertificateRequestToWire, e3 as inheritOf, e4 as isComplete, e5 as isConverged, e6 as managementNamespaces, e7 as normalizeSearch, e8 as oAuth2ClientCreatedResponseFromWire, e9 as omitEmptyTenantScope, ea as opaqueEnrollment, eb as opaqueEnrollmentForSelf, ec as pageQuery, ed as resourceKeyOf, ee as roleAssignmentInherits, ef as roleKeyOf, eg as rotateSecretResponseFromWire, eh as scimTargetInputToWire, ei as scrubDirectoryConfig, ej as scrubDirectoryLinkResult, ek as scrubDirectorySyncStatus, el as scrubSamlIdpCredential, em as scrubSamlIdpCredentialPromotion, en as scrubSamlIdpInfo, eo as scrubSamlServiceProvider, ep as scrubSamlSpMetadataDraft, eq as scrubScimReconcileAccepted, er as scrubScimTargetResponse, es as scrubSsfStream, et as serviceAccountCreatedResponseFromWire, eu as setDirectoryConfigToWire, ev as ssfStreamInputToWire, ew as topologicalOrder, ex as updateDirectoryConfigToWire, ey as updateFederationConfigRequestToWire, ez as updateWebhookRequestToWire, eA as validate, eB as webauthnRequestJson, eC as withFederationConfigResponseDefaults, eD as withRetry } from '../client-0WJkblDE.js';
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-Putxo-yi.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-Putxo-yi.js';
3
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-CeG6P9GO.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--0DwnNjV.js';
5
5
  export { A as AccessCheck, a as AccessDecision, b as AxiamUserInfo, L as LoginResult } from '../types-BOX-6Srv.js';
@@ -7,7 +7,7 @@ export { W as WebauthnFailure, c as classifyWebauthnError, w as webauthnErrorMes
7
7
  import { N as NetworkError } from '../errors-DMIlw2lN.js';
8
8
  export { a as AuthError, A as AuthzError, b as AxiamError, I as IdTokenFailureReason, O as OAuthProtocolError } from '../errors-DMIlw2lN.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-CmBvsxV0.js';
10
+ export { C as ConflictError, F as FieldError, N as NotFoundError, V as ValidationError, p as parseFieldErrors } from '../errors-VpViVRSx.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). `authorization_header` is
110
- * left absent — absent keeps the stored header (unless the update moves
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,4 @@ interface ManagementCall {
279
330
  body?: unknown;
280
331
  }
281
332
 
282
- export { AxiamGrant, AxiamGroup, AxiamPermission, AxiamResource, AxiamRole, AxiamScope, AxiamServiceAccount, AxiamUser, type ClassDeco, DirectoryConfig, GrantSpec, GroupSpec, type ManagementCall, ManagementManifest, type ManagementMethod, 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 };
333
+ export { AxiamGrant, AxiamGroup, AxiamPermission, AxiamResource, AxiamRole, AxiamScope, AxiamServiceAccount, AxiamUser, type ClassDeco, DirectoryConfig, GrantSpec, GroupSpec, type ManagementCall, ManagementManifest, type ManagementMethod, 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 };