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