axiam-sdk 1.0.0-beta13 → 1.0.0-beta14

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 (44) hide show
  1. package/README.md +55 -0
  2. package/dist/{authzCore-CrrzL1vM.d.cts → authzCore-BZahGkBf.d.cts} +13 -0
  3. package/dist/{authzCore-IhJd8o4F.d.ts → authzCore-Biyca_Rm.d.ts} +13 -0
  4. package/dist/browser/index.d.cts +1 -1
  5. package/dist/browser/index.d.ts +1 -1
  6. package/dist/{client-Bf4p7wD5.d.ts → client-BXXwSvBI.d.ts} +46 -1
  7. package/dist/{client-CPZ5WCob.d.cts → client-JWANinYZ.d.cts} +46 -1
  8. package/dist/{cookieJar-rwTCSTkI.d.cts → cookieJar-DXyJgm8n.d.cts} +1 -1
  9. package/dist/{cookieJar--3J1ZLYS.d.ts → cookieJar-DZSc_d8H.d.ts} +1 -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 +10 -0
  13. package/dist/grpc/index.js.map +1 -1
  14. package/dist/grpc/index.mjs +10 -0
  15. package/dist/grpc/index.mjs.map +1 -1
  16. package/dist/index.d.cts +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +10 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.mjs +10 -0
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/middleware/index.d.cts +3 -2
  23. package/dist/middleware/index.d.ts +3 -2
  24. package/dist/middleware/index.js +150 -6
  25. package/dist/middleware/index.js.map +1 -1
  26. package/dist/middleware/index.mjs +148 -8
  27. package/dist/middleware/index.mjs.map +1 -1
  28. package/dist/nestjs/index.d.cts +2 -1
  29. package/dist/nestjs/index.d.ts +2 -1
  30. package/dist/node/index.d.cts +3 -2
  31. package/dist/node/index.d.ts +3 -2
  32. package/dist/node/index.js +152 -6
  33. package/dist/node/index.js.map +1 -1
  34. package/dist/node/index.mjs +149 -7
  35. package/dist/node/index.mjs.map +1 -1
  36. package/dist/rest/index.d.cts +2 -2
  37. package/dist/rest/index.d.ts +2 -2
  38. package/dist/rest/index.js +10 -0
  39. package/dist/rest/index.js.map +1 -1
  40. package/dist/rest/index.mjs +10 -0
  41. package/dist/rest/index.mjs.map +1 -1
  42. package/dist/revocationFeed-CDoD7Twr.d.cts +59 -0
  43. package/dist/revocationFeed-CDoD7Twr.d.ts +59 -0
  44. package/package.json +1 -1
package/README.md CHANGED
@@ -218,6 +218,61 @@ Three things this deliberately does **not** do:
218
218
  A client without a `clientCert` keeps using the top-level endpoints even when the document
219
219
  publishes aliases: the alias exists for the handshake, and there is no handshake to make.
220
220
 
221
+ #### A malformed alias is refused, never fallen back from (contract 1.43)
222
+
223
+ An alias that is *present* and cannot carry a certificate throws rather than reverting to
224
+ the top-level endpoint. Falling back looks like the safe answer and is the dangerous one:
225
+ the caller asked to authenticate with a certificate, the operator published something
226
+ unusable, and sending the certificate to the front-channel host authenticates nothing
227
+ while appearing to work.
228
+
229
+ Two defects, each a refusal on its own — **not an absolute URL**, and **a scheme weaker
230
+ than the top-level endpoint the alias replaces**. The second compares like with like: an
231
+ alias substitutes for exactly one endpoint, so `https` → `http` is a downgrade while
232
+ `http` → `http` is a development deployment and is accepted.
233
+
234
+ A client with no `clientCert` never reads the member at all, not even to validate it, so a
235
+ deployment whose aliases are malformed cannot break the clients that never use them.
236
+
237
+ ### §10.4 the session-revocation feed (contract 1.44, opt-in)
238
+
239
+ §10.2 records the gap this narrows: local verification proves a token was issued and has
240
+ not expired, never that the session behind it still exists. A logout or a role removal
241
+ does not reach a token already in a caller's hands until it expires — up to fifteen
242
+ minutes. The documented answer has been "route the decision through gRPC introspection
243
+ instead", which is correct and costs a round trip **per request**.
244
+
245
+ A deployment can publish `GET /oauth2/revocations`: the hashed ids of sessions revoked
246
+ within the last access-token lifetime. Attach a poller and the guard rejects a revoked
247
+ session within **one poll interval** instead, for one cacheable fetch per interval:
248
+
249
+ ```typescript
250
+ import { RevocationFeed } from 'axiam-sdk/node';
251
+
252
+ const session = {
253
+ jwksVerifier,
254
+ tenantHeaderValue: tenantId,
255
+ revocationFeed: new RevocationFeed('https://iam.example.com'),
256
+ };
257
+ ```
258
+
259
+ **It is not a control, and every property follows from that.** It is off unless you set
260
+ one. It is never consulted over the network on the request path once warm —
261
+ `authenticateRequest` reads a cached set. And it **never fails closed**: an unreachable
262
+ feed, a non-`200`, a body that does not parse, or an `alg` this build does not know all
263
+ behave exactly as no feed at all — not as an empty list, which would assert that nothing
264
+ has been revoked and is a guard silently honouring no revocations while appearing to
265
+ honour them. Every §10.1 rule runs first and still decides; the feed can only ever turn an
266
+ accept into a reject.
267
+
268
+ A token with no `sid` — a client-credentials token, an RPT, a token exchange — is never
269
+ matched against it. There is no session behind one, and hashing `jti` instead would match
270
+ nothing while looking like it worked.
271
+
272
+ The poll interval defaults to 30 seconds and is clamped to a 15-second floor; the cached
273
+ set is bounded, and a document larger than the bound is treated as unusable rather than
274
+ truncated — a truncated set is a guard that admits some revoked sessions and reports none.
275
+
221
276
  ## Usage per persona
222
277
 
223
278
  ### Browser — login + authz (`axiam-sdk` / `axiam-sdk/rest`)
@@ -1,6 +1,7 @@
1
1
  import { S as Sensitive } from './sensitive-BC_s7Rrd.cjs';
2
2
  import { A as AccessCheck, a as AccessDecision } from './types-zXSpiQM-.cjs';
3
3
  import { V as Verifier } from './jwks-CSXHo3DS.cjs';
4
+ import { R as RevocationFeed } from './revocationFeed-CDoD7Twr.cjs';
4
5
 
5
6
  /**
6
7
  * Minimal session shape the middleware needs: a JWKS verifier (D-11) and the
@@ -38,6 +39,18 @@ interface VerifiableSession {
38
39
  * `"axiam:user"`. Populated from `AxiamClientOptions.expectedAudience`.
39
40
  */
40
41
  expectedAudience?: string;
42
+ /**
43
+ * CONTRACT.md §10.4 (contract 1.44) — the optional session-revocation feed.
44
+ *
45
+ * Unset by default, and with it unset this guard behaves exactly as it did
46
+ * before 1.44: a revoked session's access token verifies locally until it
47
+ * expires, which is the §10.2 posture this narrows rather than replaces.
48
+ *
49
+ * It is never a control. A feed that cannot be read denies nothing, every
50
+ * §10.1 rule runs first and still decides, and a token with no `sid` is
51
+ * never matched against it.
52
+ */
53
+ revocationFeed?: RevocationFeed;
41
54
  }
42
55
  /** Authenticated identity injected as req.axiamUser / request.axiamUser (§10). */
43
56
  interface AxiamIdentity {
@@ -1,6 +1,7 @@
1
1
  import { S as Sensitive } from './sensitive-BC_s7Rrd.js';
2
2
  import { A as AccessCheck, a as AccessDecision } from './types-BOX-6Srv.js';
3
3
  import { V as Verifier } from './jwks-CSXHo3DS.js';
4
+ import { R as RevocationFeed } from './revocationFeed-CDoD7Twr.js';
4
5
 
5
6
  /**
6
7
  * Minimal session shape the middleware needs: a JWKS verifier (D-11) and the
@@ -38,6 +39,18 @@ interface VerifiableSession {
38
39
  * `"axiam:user"`. Populated from `AxiamClientOptions.expectedAudience`.
39
40
  */
40
41
  expectedAudience?: string;
42
+ /**
43
+ * CONTRACT.md §10.4 (contract 1.44) — the optional session-revocation feed.
44
+ *
45
+ * Unset by default, and with it unset this guard behaves exactly as it did
46
+ * before 1.44: a revoked session's access token verifies locally until it
47
+ * expires, which is the §10.2 posture this narrows rather than replaces.
48
+ *
49
+ * It is never a control. A feed that cannot be read denies nothing, every
50
+ * §10.1 rule runs first and still decides, and a token with no `sid` is
51
+ * never matched against it.
52
+ */
53
+ revocationFeed?: RevocationFeed;
41
54
  }
42
55
  /** Authenticated identity injected as req.axiamUser / request.axiamUser (§10). */
43
56
  interface AxiamIdentity {
@@ -1,4 +1,4 @@
1
- import { A as AxiamClient, W as WebauthnWorkspace, a as WebauthnLoginResult, b as WebauthnCredential } from '../client-CPZ5WCob.cjs';
1
+ import { A as AxiamClient, W as WebauthnWorkspace, a as WebauthnLoginResult, b as WebauthnCredential } from '../client-JWANinYZ.cjs';
2
2
  export { W as WebauthnFailure, c as classifyWebauthnError, w as webauthnErrorMessage } from '../webauthnErrors-fLgfOflO.cjs';
3
3
  import '../sensitive-BC_s7Rrd.cjs';
4
4
  import '../session-B0Lkz0X9.cjs';
@@ -1,4 +1,4 @@
1
- import { A as AxiamClient, W as WebauthnWorkspace, a as WebauthnLoginResult, b as WebauthnCredential } from '../client-Bf4p7wD5.js';
1
+ import { A as AxiamClient, W as WebauthnWorkspace, a as WebauthnLoginResult, b as WebauthnCredential } from '../client-BXXwSvBI.js';
2
2
  export { W as WebauthnFailure, c as classifyWebauthnError, w as webauthnErrorMessage } from '../webauthnErrors-fLgfOflO.js';
3
3
  import '../sensitive-BC_s7Rrd.js';
4
4
  import '../session-fJCGq5jw.js';
@@ -3249,6 +3249,49 @@ interface ServiceAccountResponse {
3249
3249
  /** `updated_at`. */
3250
3250
  updated_at: string;
3251
3251
  }
3252
+ /** One of a user's sessions, as an administrator sees it. */
3253
+ interface SessionResponse {
3254
+ /** RFC 8176 method references for that authentication. */
3255
+ amr: string[];
3256
+ /**
3257
+ * X7.2 — when the end user actually authenticated, which is not `created_at`
3258
+ * on a session produced by refresh rotation.
3259
+ */
3260
+ authenticated_at: string;
3261
+ /** `created_at`. */
3262
+ created_at: string;
3263
+ /** `expires_at`. */
3264
+ expires_at: string;
3265
+ /** `id`. */
3266
+ id: string;
3267
+ /** `ip_address`. */
3268
+ ip_address?: string | null;
3269
+ /**
3270
+ * T-254 — when a refresh token of this session was last presented after it
3271
+ * had already been rotated. `None` if that has never happened.
3272
+ */
3273
+ refresh_replay_at?: string | null;
3274
+ /**
3275
+ * T-254 — replays accepted under the FAPI 2.0 §5.3.2.1-9 grace window. Only
3276
+ * ever non-zero for a client registered `profile: fapi2`.
3277
+ */
3278
+ refresh_replay_grace_accepted: number;
3279
+ /**
3280
+ * T-254 — replays refused because there was no window to accept them in.
3281
+ * Nothing a conformant client does.
3282
+ */
3283
+ refresh_replay_refused: number;
3284
+ /**
3285
+ * T-254 — the badge: `none`, `fapi_grace_retry` or `refused`.
3286
+ *
3287
+ * Derived from the two counters below rather than stored, so it cannot
3288
+ * disagree with them. A refusal outranks an accepted grace retry however the
3289
+ * counts compare.
3290
+ */
3291
+ refresh_replay_verdict: string;
3292
+ /** `user_agent`. */
3293
+ user_agent?: string | null;
3294
+ }
3252
3295
  /** Body for `PUT .../ca-certificates/{id}/mtls-trust-anchor`. */
3253
3296
  interface SetMtlsTrustAnchor {
3254
3297
  /** Whether this CA should be trusted for client-certificate authentication. */
@@ -4685,6 +4728,8 @@ declare class UsersApi {
4685
4728
  unlock(userId: string): Promise<UserResponse>;
4686
4729
  /** `GET /api/v1/users/{user_id}/roles` */
4687
4730
  listRoles(userId: string): Promise<RoleAssignment[]>;
4731
+ /** `GET /api/v1/users/{user_id}/sessions` */
4732
+ listSessions(userId: string): Promise<SessionResponse[]>;
4688
4733
  }
4689
4734
 
4690
4735
  /**
@@ -6389,4 +6434,4 @@ declare class AxiamClient {
6389
6434
  confirmPasswordReset(confirmation: PasswordResetConfirmation): Promise<void>;
6390
6435
  }
6391
6436
 
6392
- export { type CreateReactorRequest as $, AxiamClient as A, BASE_DELAY_MS as B, type CaCertificate as C, CertificatesApi as D, type CertificationLevel as E, type Change as F, type GrantSpec as G, type ClientAuthMethod as H, type ClientProfile as I, type ComplianceReportEntry as J, type ConsentView as K, type CreateCaCertificateRequest as L, type ManagementManifest as M, type CreateCertificateRequest as N, type CreateFederationConfigRequest as O, type PermissionSpec as P, type CreateFederationConfigRequestWire as Q, type ResourceSpec as R, type ScopeSpec as S, type CreateGroupRequest as T, type UserSpec as U, type CreateIntermediateCaRequest as V, type WebauthnWorkspace as W, type CreateNotificationRuleRequest as X, type CreateOAuth2ClientRequest as Y, type CreatePermissionRequest as Z, type CreatePgpKeyRequest as _, type WebauthnLoginResult as a, type OAuth2ClientResponse as a$, type CreateResourceRequest as a0, type CreateRoleRequest as a1, type CreateScimTokenRequest as a2, type CreateScimTokenResponse as a3, type CreateScimTokenResponseWire as a4, type CreateScopeRequest as a5, type CreateServiceAccountRequest as a6, type CreateTenantRequest as a7, type CreateUserRequest as a8, type CreateUserRequestWire as a9, type HealthResponse as aA, type ImportCaCertificateRequest as aB, type ImportCaCertificateRequestWire as aC, type KeyAlgorithm as aD, type LockoutPolicy as aE, MAX_ATTEMPTS as aF, MAX_DELAY_MS as aG, MAX_TTL_MS as aH, type ManagementNamespaces as aI, type ManagementPlan as aJ, ManifestApi as aK, type ManifestFailure as aL, type MdsRefreshOutcome as aM, type MdsStatusResponse as aN, type MfaEnrollment as aO, type MfaMethodResponse as aP, type MfaMethodType as aQ, type MfaPolicy as aR, type MigrateCustodyResponse as aS, type MtlsTrustAnchorResponse as aT, type NamespaceScope as aU, type NotificationEventType as aV, type NotificationPolicy as aW, type NotificationRuleResponse as aX, NotificationRulesApi as aY, type OAuth2ClientCreatedResponse as aZ, type OAuth2ClientCreatedResponseWire as a_, type CreateWebhookRequest as aa, type CreateWebhookRequestWire as ab, DecisionMemo as ac, type EmailConfig as ad, EmailConfigApi as ae, type EmailConfigOverride as af, type EmailTestResult as ag, type EmailVerificationPolicy as ah, type EncryptRequest as ai, type EncryptedExport as aj, type FailurePolicy as ak, FederationApi as al, type FederationConfigResponse as am, type FederationLinkResponse as an, type FinishRequest as ao, type GeneratedCaCertificate as ap, type GeneratedCaCertificateWire as aq, type GeneratedCertificate as ar, type GeneratedCertificateWire as as, type GeneratedPgpKey as at, type GeneratedPgpKeyWire as au, type GrantPermissionRequest as av, type GrantScopeConsent as aw, type GrantedScope as ax, type Group as ay, GroupsApi as az, type WebauthnCredential as b, type SettingsScope as b$, Oauth2ClientsApi as b0, type OidcAuthorizeRequest as b1, type OidcAuthorizeResponse as b2, type OidcCallbackRequest as b3, type OidcCallbackResponse as b4, type OidcPolicy as b5, type OpaqueEnrollment as b6, type OpaqueEnrollmentPayload as b7, type OpaquePolicy as b8, type Organization as b9, type ResolvedPermissionGrant as bA, type Resource as bB, ResourcesApi as bC, type RetryOptions as bD, type RetryPolicy as bE, type Role as bF, type RoleAssignment as bG, type RoleGroupAssignment as bH, type RoleServiceAccountAssignment as bI, type RoleUserAssignment as bJ, RolesApi as bK, type RotateSecretResponse as bL, type RotateSecretResponseWire as bM, type ScimTokenResponse as bN, type ScimTokenStatus as bO, ScimTokensApi as bP, type Scope as bQ, ScopesApi as bR, type SecuritySettings as bS, type ServiceAccountCreatedResponse as bT, type ServiceAccountCreatedResponseWire as bU, type ServiceAccountResponse as bV, ServiceAccountsApi as bW, type SetMtlsTrustAnchor as bX, type SetOrgEmailConfig as bY, type SetOrgSettings as bZ, SettingsApi as b_, OrganizationsApi as ba, type Page as bb, type PageRequest as bc, type PasswordPolicy as bd, type PasswordResetConfirmation as be, type PasswordResetContext as bf, type PasswordResetRequest as bg, type Permission as bh, type PermissionEffect as bi, PermissionsApi as bj, type PgpKey as bk, type PgpKeyAlgorithm as bl, type PgpKeyPurpose as bm, type PgpKeyStatus as bn, PgpKeysApi as bo, type PlannedAction as bp, PlatformApi as bq, type PolicyResponse as br, PrivacyApi as bs, type PrivacyPolicy as bt, type ProviderConfig as bu, type ReactorEventDescriptor as bv, type ReactorMode as bw, type ReactorResponse as bx, ReactorsApi as by, type ReadyResponse as bz, type GroupSpec as c, importCaCertificateRequestToWire as c$, type SignAuditBatchRequest as c0, type SignIntermediateCsrRequest as c1, type SignedAuditBatch as c2, type SmtpConfig as c3, type StepOutcome as c4, type Target as c5, TelemetryReporter as c6, type Tenant as c7, type TenantKind as c8, type TenantSettingsOverride as c9, type WebauthnAuthenticationChallenge as cA, type WebauthnAuthenticationResponse as cB, type WebauthnCreationChallenge as cC, type WebauthnCreationOptionsJson as cD, type WebauthnCredentialDescriptorJson as cE, type WebauthnPolicy as cF, WebauthnPolicyApi as cG, type WebauthnRegistrationChallenge as cH, type WebauthnRegistrationResponse as cI, type WebauthnRequestChallenge as cJ, type WebauthnRequestOptionsJson as cK, type WebhookResponse as cL, WebhooksApi as cM, backoffMs as cN, changedCount as cO, changes as cP, collectPages as cQ, createFederationConfigRequestToWire as cR, createScimTokenResponseFromWire as cS, createUserRequestToWire as cT, createWebhookRequestToWire as cU, delayMs as cV, failure as cW, generatedCaCertificateFromWire as cX, generatedCertificateFromWire as cY, generatedPgpKeyFromWire as cZ, hasMore as c_, type TenantStatus as ca, TenantsApi as cb, type TokenExchangeTrustRequest as cc, type TokenExchangeTrustResponse as cd, type TokenPolicy as ce, type UnknownAaguidAction as cf, type UpdateFederationConfigRequest as cg, type UpdateFederationConfigRequestWire as ch, type UpdateGroup as ci, type UpdateNotificationRuleRequest as cj, type UpdateOAuth2ClientRequest as ck, type UpdateOrganizationRequest as cl, type UpdatePermissionRequest as cm, type UpdateReactorRequest as cn, type UpdateResourceRequest as co, type UpdateRole as cp, type UpdateScopeRequest as cq, type UpdateServiceAccount as cr, type UpdateTenant as cs, type UpdateUserRequest as ct, type UpdateWebhookRequest as cu, type UpdateWebhookRequestWire as cv, type UserResponse as cw, type UserStatus as cx, UsersApi as cy, type WebauthnAttestationPolicy as cz, type RoleSpec as d, isComplete as d0, isConverged as d1, managementNamespaces as d2, memoKey as d3, normalizeSearch as d4, oAuth2ClientCreatedResponseFromWire as d5, omitEmptyTenantScope as d6, opaqueEnrollment as d7, opaqueEnrollmentForSelf as d8, pageQuery as d9, rotateSecretResponseFromWire as da, serviceAccountCreatedResponseFromWire as db, topologicalOrder as dc, updateFederationConfigRequestToWire as dd, updateWebhookRequestToWire as de, validate as df, webauthnRequestJson as dg, withRetry as dh, type ActorType as e, type AddMemberRequest as f, type AddServiceAccountMemberRequest as g, type ApiProviderConfig as h, type AppliedStep as i, type ApplyReport as j, type AssignRoleToGroupRequest as k, type AssignRoleToServiceAccountRequest as l, type AssignRoleToUserRequest as m, type AttestationMode as n, AuditApi as o, type AuditListFilter as p, type AuditListSystemFilter as q, type AuditLogEntry as r, type AuditOutcome as s, type AuthnRequestParamsMode as t, type BindCertificate as u, CaCertificatesApi as v, type Certificate as w, type CertificatePolicy as x, type CertificateStatus as y, type CertificateType as z };
6437
+ export { type CreateReactorRequest as $, AxiamClient as A, BASE_DELAY_MS as B, type CaCertificate as C, CertificatesApi as D, type CertificationLevel as E, type Change as F, type GrantSpec as G, type ClientAuthMethod as H, type ClientProfile as I, type ComplianceReportEntry as J, type ConsentView as K, type CreateCaCertificateRequest as L, type ManagementManifest as M, type CreateCertificateRequest as N, type CreateFederationConfigRequest as O, type PermissionSpec as P, type CreateFederationConfigRequestWire as Q, type ResourceSpec as R, type ScopeSpec as S, type CreateGroupRequest as T, type UserSpec as U, type CreateIntermediateCaRequest as V, type WebauthnWorkspace as W, type CreateNotificationRuleRequest as X, type CreateOAuth2ClientRequest as Y, type CreatePermissionRequest as Z, type CreatePgpKeyRequest as _, type WebauthnLoginResult as a, type OAuth2ClientResponse as a$, type CreateResourceRequest as a0, type CreateRoleRequest as a1, type CreateScimTokenRequest as a2, type CreateScimTokenResponse as a3, type CreateScimTokenResponseWire as a4, type CreateScopeRequest as a5, type CreateServiceAccountRequest as a6, type CreateTenantRequest as a7, type CreateUserRequest as a8, type CreateUserRequestWire as a9, type HealthResponse as aA, type ImportCaCertificateRequest as aB, type ImportCaCertificateRequestWire as aC, type KeyAlgorithm as aD, type LockoutPolicy as aE, MAX_ATTEMPTS as aF, MAX_DELAY_MS as aG, MAX_TTL_MS as aH, type ManagementNamespaces as aI, type ManagementPlan as aJ, ManifestApi as aK, type ManifestFailure as aL, type MdsRefreshOutcome as aM, type MdsStatusResponse as aN, type MfaEnrollment as aO, type MfaMethodResponse as aP, type MfaMethodType as aQ, type MfaPolicy as aR, type MigrateCustodyResponse as aS, type MtlsTrustAnchorResponse as aT, type NamespaceScope as aU, type NotificationEventType as aV, type NotificationPolicy as aW, type NotificationRuleResponse as aX, NotificationRulesApi as aY, type OAuth2ClientCreatedResponse as aZ, type OAuth2ClientCreatedResponseWire as a_, type CreateWebhookRequest as aa, type CreateWebhookRequestWire as ab, DecisionMemo as ac, type EmailConfig as ad, EmailConfigApi as ae, type EmailConfigOverride as af, type EmailTestResult as ag, type EmailVerificationPolicy as ah, type EncryptRequest as ai, type EncryptedExport as aj, type FailurePolicy as ak, FederationApi as al, type FederationConfigResponse as am, type FederationLinkResponse as an, type FinishRequest as ao, type GeneratedCaCertificate as ap, type GeneratedCaCertificateWire as aq, type GeneratedCertificate as ar, type GeneratedCertificateWire as as, type GeneratedPgpKey as at, type GeneratedPgpKeyWire as au, type GrantPermissionRequest as av, type GrantScopeConsent as aw, type GrantedScope as ax, type Group as ay, GroupsApi as az, type WebauthnCredential as b, SettingsApi as b$, Oauth2ClientsApi as b0, type OidcAuthorizeRequest as b1, type OidcAuthorizeResponse as b2, type OidcCallbackRequest as b3, type OidcCallbackResponse as b4, type OidcPolicy as b5, type OpaqueEnrollment as b6, type OpaqueEnrollmentPayload as b7, type OpaquePolicy as b8, type Organization as b9, type ResolvedPermissionGrant as bA, type Resource as bB, ResourcesApi as bC, type RetryOptions as bD, type RetryPolicy as bE, type Role as bF, type RoleAssignment as bG, type RoleGroupAssignment as bH, type RoleServiceAccountAssignment as bI, type RoleUserAssignment as bJ, RolesApi as bK, type RotateSecretResponse as bL, type RotateSecretResponseWire as bM, type ScimTokenResponse as bN, type ScimTokenStatus as bO, ScimTokensApi as bP, type Scope as bQ, ScopesApi as bR, type SecuritySettings as bS, type ServiceAccountCreatedResponse as bT, type ServiceAccountCreatedResponseWire as bU, type ServiceAccountResponse as bV, ServiceAccountsApi as bW, type SessionResponse as bX, type SetMtlsTrustAnchor as bY, type SetOrgEmailConfig as bZ, type SetOrgSettings as b_, OrganizationsApi as ba, type Page as bb, type PageRequest as bc, type PasswordPolicy as bd, type PasswordResetConfirmation as be, type PasswordResetContext as bf, type PasswordResetRequest as bg, type Permission as bh, type PermissionEffect as bi, PermissionsApi as bj, type PgpKey as bk, type PgpKeyAlgorithm as bl, type PgpKeyPurpose as bm, type PgpKeyStatus as bn, PgpKeysApi as bo, type PlannedAction as bp, PlatformApi as bq, type PolicyResponse as br, PrivacyApi as bs, type PrivacyPolicy as bt, type ProviderConfig as bu, type ReactorEventDescriptor as bv, type ReactorMode as bw, type ReactorResponse as bx, ReactorsApi as by, type ReadyResponse as bz, type GroupSpec as c, hasMore as c$, type SettingsScope as c0, type SignAuditBatchRequest as c1, type SignIntermediateCsrRequest as c2, type SignedAuditBatch as c3, type SmtpConfig as c4, type StepOutcome as c5, type Target as c6, TelemetryReporter as c7, type Tenant as c8, type TenantKind as c9, type WebauthnAttestationPolicy as cA, type WebauthnAuthenticationChallenge as cB, type WebauthnAuthenticationResponse as cC, type WebauthnCreationChallenge as cD, type WebauthnCreationOptionsJson as cE, type WebauthnCredentialDescriptorJson as cF, type WebauthnPolicy as cG, WebauthnPolicyApi as cH, type WebauthnRegistrationChallenge as cI, type WebauthnRegistrationResponse as cJ, type WebauthnRequestChallenge as cK, type WebauthnRequestOptionsJson as cL, type WebhookResponse as cM, WebhooksApi as cN, backoffMs as cO, changedCount as cP, changes as cQ, collectPages as cR, createFederationConfigRequestToWire as cS, createScimTokenResponseFromWire as cT, createUserRequestToWire as cU, createWebhookRequestToWire as cV, delayMs as cW, failure as cX, generatedCaCertificateFromWire as cY, generatedCertificateFromWire as cZ, generatedPgpKeyFromWire as c_, type TenantSettingsOverride as ca, type TenantStatus as cb, TenantsApi as cc, type TokenExchangeTrustRequest as cd, type TokenExchangeTrustResponse as ce, type TokenPolicy as cf, type UnknownAaguidAction as cg, type UpdateFederationConfigRequest as ch, type UpdateFederationConfigRequestWire as ci, type UpdateGroup as cj, type UpdateNotificationRuleRequest as ck, type UpdateOAuth2ClientRequest as cl, type UpdateOrganizationRequest as cm, type UpdatePermissionRequest as cn, type UpdateReactorRequest as co, type UpdateResourceRequest as cp, type UpdateRole as cq, type UpdateScopeRequest as cr, type UpdateServiceAccount as cs, type UpdateTenant as ct, type UpdateUserRequest as cu, type UpdateWebhookRequest as cv, type UpdateWebhookRequestWire as cw, type UserResponse as cx, type UserStatus as cy, UsersApi as cz, type RoleSpec as d, importCaCertificateRequestToWire as d0, isComplete as d1, isConverged as d2, managementNamespaces as d3, memoKey as d4, normalizeSearch as d5, oAuth2ClientCreatedResponseFromWire as d6, omitEmptyTenantScope as d7, opaqueEnrollment as d8, opaqueEnrollmentForSelf as d9, pageQuery as da, rotateSecretResponseFromWire as db, serviceAccountCreatedResponseFromWire as dc, topologicalOrder as dd, updateFederationConfigRequestToWire as de, updateWebhookRequestToWire as df, validate as dg, webauthnRequestJson as dh, withRetry as di, type ActorType as e, type AddMemberRequest as f, type AddServiceAccountMemberRequest as g, type ApiProviderConfig as h, type AppliedStep as i, type ApplyReport as j, type AssignRoleToGroupRequest as k, type AssignRoleToServiceAccountRequest as l, type AssignRoleToUserRequest as m, type AttestationMode as n, AuditApi as o, type AuditListFilter as p, type AuditListSystemFilter as q, type AuditLogEntry as r, type AuditOutcome as s, type AuthnRequestParamsMode as t, type BindCertificate as u, CaCertificatesApi as v, type Certificate as w, type CertificatePolicy as x, type CertificateStatus as y, type CertificateType as z };
@@ -3249,6 +3249,49 @@ interface ServiceAccountResponse {
3249
3249
  /** `updated_at`. */
3250
3250
  updated_at: string;
3251
3251
  }
3252
+ /** One of a user's sessions, as an administrator sees it. */
3253
+ interface SessionResponse {
3254
+ /** RFC 8176 method references for that authentication. */
3255
+ amr: string[];
3256
+ /**
3257
+ * X7.2 — when the end user actually authenticated, which is not `created_at`
3258
+ * on a session produced by refresh rotation.
3259
+ */
3260
+ authenticated_at: string;
3261
+ /** `created_at`. */
3262
+ created_at: string;
3263
+ /** `expires_at`. */
3264
+ expires_at: string;
3265
+ /** `id`. */
3266
+ id: string;
3267
+ /** `ip_address`. */
3268
+ ip_address?: string | null;
3269
+ /**
3270
+ * T-254 — when a refresh token of this session was last presented after it
3271
+ * had already been rotated. `None` if that has never happened.
3272
+ */
3273
+ refresh_replay_at?: string | null;
3274
+ /**
3275
+ * T-254 — replays accepted under the FAPI 2.0 §5.3.2.1-9 grace window. Only
3276
+ * ever non-zero for a client registered `profile: fapi2`.
3277
+ */
3278
+ refresh_replay_grace_accepted: number;
3279
+ /**
3280
+ * T-254 — replays refused because there was no window to accept them in.
3281
+ * Nothing a conformant client does.
3282
+ */
3283
+ refresh_replay_refused: number;
3284
+ /**
3285
+ * T-254 — the badge: `none`, `fapi_grace_retry` or `refused`.
3286
+ *
3287
+ * Derived from the two counters below rather than stored, so it cannot
3288
+ * disagree with them. A refusal outranks an accepted grace retry however the
3289
+ * counts compare.
3290
+ */
3291
+ refresh_replay_verdict: string;
3292
+ /** `user_agent`. */
3293
+ user_agent?: string | null;
3294
+ }
3252
3295
  /** Body for `PUT .../ca-certificates/{id}/mtls-trust-anchor`. */
3253
3296
  interface SetMtlsTrustAnchor {
3254
3297
  /** Whether this CA should be trusted for client-certificate authentication. */
@@ -4685,6 +4728,8 @@ declare class UsersApi {
4685
4728
  unlock(userId: string): Promise<UserResponse>;
4686
4729
  /** `GET /api/v1/users/{user_id}/roles` */
4687
4730
  listRoles(userId: string): Promise<RoleAssignment[]>;
4731
+ /** `GET /api/v1/users/{user_id}/sessions` */
4732
+ listSessions(userId: string): Promise<SessionResponse[]>;
4688
4733
  }
4689
4734
 
4690
4735
  /**
@@ -6389,4 +6434,4 @@ declare class AxiamClient {
6389
6434
  confirmPasswordReset(confirmation: PasswordResetConfirmation): Promise<void>;
6390
6435
  }
6391
6436
 
6392
- export { type CreateReactorRequest as $, AxiamClient as A, BASE_DELAY_MS as B, type CaCertificate as C, CertificatesApi as D, type CertificationLevel as E, type Change as F, type GrantSpec as G, type ClientAuthMethod as H, type ClientProfile as I, type ComplianceReportEntry as J, type ConsentView as K, type CreateCaCertificateRequest as L, type ManagementManifest as M, type CreateCertificateRequest as N, type CreateFederationConfigRequest as O, type PermissionSpec as P, type CreateFederationConfigRequestWire as Q, type ResourceSpec as R, type ScopeSpec as S, type CreateGroupRequest as T, type UserSpec as U, type CreateIntermediateCaRequest as V, type WebauthnWorkspace as W, type CreateNotificationRuleRequest as X, type CreateOAuth2ClientRequest as Y, type CreatePermissionRequest as Z, type CreatePgpKeyRequest as _, type WebauthnLoginResult as a, type OAuth2ClientResponse as a$, type CreateResourceRequest as a0, type CreateRoleRequest as a1, type CreateScimTokenRequest as a2, type CreateScimTokenResponse as a3, type CreateScimTokenResponseWire as a4, type CreateScopeRequest as a5, type CreateServiceAccountRequest as a6, type CreateTenantRequest as a7, type CreateUserRequest as a8, type CreateUserRequestWire as a9, type HealthResponse as aA, type ImportCaCertificateRequest as aB, type ImportCaCertificateRequestWire as aC, type KeyAlgorithm as aD, type LockoutPolicy as aE, MAX_ATTEMPTS as aF, MAX_DELAY_MS as aG, MAX_TTL_MS as aH, type ManagementNamespaces as aI, type ManagementPlan as aJ, ManifestApi as aK, type ManifestFailure as aL, type MdsRefreshOutcome as aM, type MdsStatusResponse as aN, type MfaEnrollment as aO, type MfaMethodResponse as aP, type MfaMethodType as aQ, type MfaPolicy as aR, type MigrateCustodyResponse as aS, type MtlsTrustAnchorResponse as aT, type NamespaceScope as aU, type NotificationEventType as aV, type NotificationPolicy as aW, type NotificationRuleResponse as aX, NotificationRulesApi as aY, type OAuth2ClientCreatedResponse as aZ, type OAuth2ClientCreatedResponseWire as a_, type CreateWebhookRequest as aa, type CreateWebhookRequestWire as ab, DecisionMemo as ac, type EmailConfig as ad, EmailConfigApi as ae, type EmailConfigOverride as af, type EmailTestResult as ag, type EmailVerificationPolicy as ah, type EncryptRequest as ai, type EncryptedExport as aj, type FailurePolicy as ak, FederationApi as al, type FederationConfigResponse as am, type FederationLinkResponse as an, type FinishRequest as ao, type GeneratedCaCertificate as ap, type GeneratedCaCertificateWire as aq, type GeneratedCertificate as ar, type GeneratedCertificateWire as as, type GeneratedPgpKey as at, type GeneratedPgpKeyWire as au, type GrantPermissionRequest as av, type GrantScopeConsent as aw, type GrantedScope as ax, type Group as ay, GroupsApi as az, type WebauthnCredential as b, type SettingsScope as b$, Oauth2ClientsApi as b0, type OidcAuthorizeRequest as b1, type OidcAuthorizeResponse as b2, type OidcCallbackRequest as b3, type OidcCallbackResponse as b4, type OidcPolicy as b5, type OpaqueEnrollment as b6, type OpaqueEnrollmentPayload as b7, type OpaquePolicy as b8, type Organization as b9, type ResolvedPermissionGrant as bA, type Resource as bB, ResourcesApi as bC, type RetryOptions as bD, type RetryPolicy as bE, type Role as bF, type RoleAssignment as bG, type RoleGroupAssignment as bH, type RoleServiceAccountAssignment as bI, type RoleUserAssignment as bJ, RolesApi as bK, type RotateSecretResponse as bL, type RotateSecretResponseWire as bM, type ScimTokenResponse as bN, type ScimTokenStatus as bO, ScimTokensApi as bP, type Scope as bQ, ScopesApi as bR, type SecuritySettings as bS, type ServiceAccountCreatedResponse as bT, type ServiceAccountCreatedResponseWire as bU, type ServiceAccountResponse as bV, ServiceAccountsApi as bW, type SetMtlsTrustAnchor as bX, type SetOrgEmailConfig as bY, type SetOrgSettings as bZ, SettingsApi as b_, OrganizationsApi as ba, type Page as bb, type PageRequest as bc, type PasswordPolicy as bd, type PasswordResetConfirmation as be, type PasswordResetContext as bf, type PasswordResetRequest as bg, type Permission as bh, type PermissionEffect as bi, PermissionsApi as bj, type PgpKey as bk, type PgpKeyAlgorithm as bl, type PgpKeyPurpose as bm, type PgpKeyStatus as bn, PgpKeysApi as bo, type PlannedAction as bp, PlatformApi as bq, type PolicyResponse as br, PrivacyApi as bs, type PrivacyPolicy as bt, type ProviderConfig as bu, type ReactorEventDescriptor as bv, type ReactorMode as bw, type ReactorResponse as bx, ReactorsApi as by, type ReadyResponse as bz, type GroupSpec as c, importCaCertificateRequestToWire as c$, type SignAuditBatchRequest as c0, type SignIntermediateCsrRequest as c1, type SignedAuditBatch as c2, type SmtpConfig as c3, type StepOutcome as c4, type Target as c5, TelemetryReporter as c6, type Tenant as c7, type TenantKind as c8, type TenantSettingsOverride as c9, type WebauthnAuthenticationChallenge as cA, type WebauthnAuthenticationResponse as cB, type WebauthnCreationChallenge as cC, type WebauthnCreationOptionsJson as cD, type WebauthnCredentialDescriptorJson as cE, type WebauthnPolicy as cF, WebauthnPolicyApi as cG, type WebauthnRegistrationChallenge as cH, type WebauthnRegistrationResponse as cI, type WebauthnRequestChallenge as cJ, type WebauthnRequestOptionsJson as cK, type WebhookResponse as cL, WebhooksApi as cM, backoffMs as cN, changedCount as cO, changes as cP, collectPages as cQ, createFederationConfigRequestToWire as cR, createScimTokenResponseFromWire as cS, createUserRequestToWire as cT, createWebhookRequestToWire as cU, delayMs as cV, failure as cW, generatedCaCertificateFromWire as cX, generatedCertificateFromWire as cY, generatedPgpKeyFromWire as cZ, hasMore as c_, type TenantStatus as ca, TenantsApi as cb, type TokenExchangeTrustRequest as cc, type TokenExchangeTrustResponse as cd, type TokenPolicy as ce, type UnknownAaguidAction as cf, type UpdateFederationConfigRequest as cg, type UpdateFederationConfigRequestWire as ch, type UpdateGroup as ci, type UpdateNotificationRuleRequest as cj, type UpdateOAuth2ClientRequest as ck, type UpdateOrganizationRequest as cl, type UpdatePermissionRequest as cm, type UpdateReactorRequest as cn, type UpdateResourceRequest as co, type UpdateRole as cp, type UpdateScopeRequest as cq, type UpdateServiceAccount as cr, type UpdateTenant as cs, type UpdateUserRequest as ct, type UpdateWebhookRequest as cu, type UpdateWebhookRequestWire as cv, type UserResponse as cw, type UserStatus as cx, UsersApi as cy, type WebauthnAttestationPolicy as cz, type RoleSpec as d, isComplete as d0, isConverged as d1, managementNamespaces as d2, memoKey as d3, normalizeSearch as d4, oAuth2ClientCreatedResponseFromWire as d5, omitEmptyTenantScope as d6, opaqueEnrollment as d7, opaqueEnrollmentForSelf as d8, pageQuery as d9, rotateSecretResponseFromWire as da, serviceAccountCreatedResponseFromWire as db, topologicalOrder as dc, updateFederationConfigRequestToWire as dd, updateWebhookRequestToWire as de, validate as df, webauthnRequestJson as dg, withRetry as dh, type ActorType as e, type AddMemberRequest as f, type AddServiceAccountMemberRequest as g, type ApiProviderConfig as h, type AppliedStep as i, type ApplyReport as j, type AssignRoleToGroupRequest as k, type AssignRoleToServiceAccountRequest as l, type AssignRoleToUserRequest as m, type AttestationMode as n, AuditApi as o, type AuditListFilter as p, type AuditListSystemFilter as q, type AuditLogEntry as r, type AuditOutcome as s, type AuthnRequestParamsMode as t, type BindCertificate as u, CaCertificatesApi as v, type Certificate as w, type CertificatePolicy as x, type CertificateStatus as y, type CertificateType as z };
6437
+ export { type CreateReactorRequest as $, AxiamClient as A, BASE_DELAY_MS as B, type CaCertificate as C, CertificatesApi as D, type CertificationLevel as E, type Change as F, type GrantSpec as G, type ClientAuthMethod as H, type ClientProfile as I, type ComplianceReportEntry as J, type ConsentView as K, type CreateCaCertificateRequest as L, type ManagementManifest as M, type CreateCertificateRequest as N, type CreateFederationConfigRequest as O, type PermissionSpec as P, type CreateFederationConfigRequestWire as Q, type ResourceSpec as R, type ScopeSpec as S, type CreateGroupRequest as T, type UserSpec as U, type CreateIntermediateCaRequest as V, type WebauthnWorkspace as W, type CreateNotificationRuleRequest as X, type CreateOAuth2ClientRequest as Y, type CreatePermissionRequest as Z, type CreatePgpKeyRequest as _, type WebauthnLoginResult as a, type OAuth2ClientResponse as a$, type CreateResourceRequest as a0, type CreateRoleRequest as a1, type CreateScimTokenRequest as a2, type CreateScimTokenResponse as a3, type CreateScimTokenResponseWire as a4, type CreateScopeRequest as a5, type CreateServiceAccountRequest as a6, type CreateTenantRequest as a7, type CreateUserRequest as a8, type CreateUserRequestWire as a9, type HealthResponse as aA, type ImportCaCertificateRequest as aB, type ImportCaCertificateRequestWire as aC, type KeyAlgorithm as aD, type LockoutPolicy as aE, MAX_ATTEMPTS as aF, MAX_DELAY_MS as aG, MAX_TTL_MS as aH, type ManagementNamespaces as aI, type ManagementPlan as aJ, ManifestApi as aK, type ManifestFailure as aL, type MdsRefreshOutcome as aM, type MdsStatusResponse as aN, type MfaEnrollment as aO, type MfaMethodResponse as aP, type MfaMethodType as aQ, type MfaPolicy as aR, type MigrateCustodyResponse as aS, type MtlsTrustAnchorResponse as aT, type NamespaceScope as aU, type NotificationEventType as aV, type NotificationPolicy as aW, type NotificationRuleResponse as aX, NotificationRulesApi as aY, type OAuth2ClientCreatedResponse as aZ, type OAuth2ClientCreatedResponseWire as a_, type CreateWebhookRequest as aa, type CreateWebhookRequestWire as ab, DecisionMemo as ac, type EmailConfig as ad, EmailConfigApi as ae, type EmailConfigOverride as af, type EmailTestResult as ag, type EmailVerificationPolicy as ah, type EncryptRequest as ai, type EncryptedExport as aj, type FailurePolicy as ak, FederationApi as al, type FederationConfigResponse as am, type FederationLinkResponse as an, type FinishRequest as ao, type GeneratedCaCertificate as ap, type GeneratedCaCertificateWire as aq, type GeneratedCertificate as ar, type GeneratedCertificateWire as as, type GeneratedPgpKey as at, type GeneratedPgpKeyWire as au, type GrantPermissionRequest as av, type GrantScopeConsent as aw, type GrantedScope as ax, type Group as ay, GroupsApi as az, type WebauthnCredential as b, SettingsApi as b$, Oauth2ClientsApi as b0, type OidcAuthorizeRequest as b1, type OidcAuthorizeResponse as b2, type OidcCallbackRequest as b3, type OidcCallbackResponse as b4, type OidcPolicy as b5, type OpaqueEnrollment as b6, type OpaqueEnrollmentPayload as b7, type OpaquePolicy as b8, type Organization as b9, type ResolvedPermissionGrant as bA, type Resource as bB, ResourcesApi as bC, type RetryOptions as bD, type RetryPolicy as bE, type Role as bF, type RoleAssignment as bG, type RoleGroupAssignment as bH, type RoleServiceAccountAssignment as bI, type RoleUserAssignment as bJ, RolesApi as bK, type RotateSecretResponse as bL, type RotateSecretResponseWire as bM, type ScimTokenResponse as bN, type ScimTokenStatus as bO, ScimTokensApi as bP, type Scope as bQ, ScopesApi as bR, type SecuritySettings as bS, type ServiceAccountCreatedResponse as bT, type ServiceAccountCreatedResponseWire as bU, type ServiceAccountResponse as bV, ServiceAccountsApi as bW, type SessionResponse as bX, type SetMtlsTrustAnchor as bY, type SetOrgEmailConfig as bZ, type SetOrgSettings as b_, OrganizationsApi as ba, type Page as bb, type PageRequest as bc, type PasswordPolicy as bd, type PasswordResetConfirmation as be, type PasswordResetContext as bf, type PasswordResetRequest as bg, type Permission as bh, type PermissionEffect as bi, PermissionsApi as bj, type PgpKey as bk, type PgpKeyAlgorithm as bl, type PgpKeyPurpose as bm, type PgpKeyStatus as bn, PgpKeysApi as bo, type PlannedAction as bp, PlatformApi as bq, type PolicyResponse as br, PrivacyApi as bs, type PrivacyPolicy as bt, type ProviderConfig as bu, type ReactorEventDescriptor as bv, type ReactorMode as bw, type ReactorResponse as bx, ReactorsApi as by, type ReadyResponse as bz, type GroupSpec as c, hasMore as c$, type SettingsScope as c0, type SignAuditBatchRequest as c1, type SignIntermediateCsrRequest as c2, type SignedAuditBatch as c3, type SmtpConfig as c4, type StepOutcome as c5, type Target as c6, TelemetryReporter as c7, type Tenant as c8, type TenantKind as c9, type WebauthnAttestationPolicy as cA, type WebauthnAuthenticationChallenge as cB, type WebauthnAuthenticationResponse as cC, type WebauthnCreationChallenge as cD, type WebauthnCreationOptionsJson as cE, type WebauthnCredentialDescriptorJson as cF, type WebauthnPolicy as cG, WebauthnPolicyApi as cH, type WebauthnRegistrationChallenge as cI, type WebauthnRegistrationResponse as cJ, type WebauthnRequestChallenge as cK, type WebauthnRequestOptionsJson as cL, type WebhookResponse as cM, WebhooksApi as cN, backoffMs as cO, changedCount as cP, changes as cQ, collectPages as cR, createFederationConfigRequestToWire as cS, createScimTokenResponseFromWire as cT, createUserRequestToWire as cU, createWebhookRequestToWire as cV, delayMs as cW, failure as cX, generatedCaCertificateFromWire as cY, generatedCertificateFromWire as cZ, generatedPgpKeyFromWire as c_, type TenantSettingsOverride as ca, type TenantStatus as cb, TenantsApi as cc, type TokenExchangeTrustRequest as cd, type TokenExchangeTrustResponse as ce, type TokenPolicy as cf, type UnknownAaguidAction as cg, type UpdateFederationConfigRequest as ch, type UpdateFederationConfigRequestWire as ci, type UpdateGroup as cj, type UpdateNotificationRuleRequest as ck, type UpdateOAuth2ClientRequest as cl, type UpdateOrganizationRequest as cm, type UpdatePermissionRequest as cn, type UpdateReactorRequest as co, type UpdateResourceRequest as cp, type UpdateRole as cq, type UpdateScopeRequest as cr, type UpdateServiceAccount as cs, type UpdateTenant as ct, type UpdateUserRequest as cu, type UpdateWebhookRequest as cv, type UpdateWebhookRequestWire as cw, type UserResponse as cx, type UserStatus as cy, UsersApi as cz, type RoleSpec as d, importCaCertificateRequestToWire as d0, isComplete as d1, isConverged as d2, managementNamespaces as d3, memoKey as d4, normalizeSearch as d5, oAuth2ClientCreatedResponseFromWire as d6, omitEmptyTenantScope as d7, opaqueEnrollment as d8, opaqueEnrollmentForSelf as d9, pageQuery as da, rotateSecretResponseFromWire as db, serviceAccountCreatedResponseFromWire as dc, topologicalOrder as dd, updateFederationConfigRequestToWire as de, updateWebhookRequestToWire as df, validate as dg, webauthnRequestJson as dh, withRetry as di, type ActorType as e, type AddMemberRequest as f, type AddServiceAccountMemberRequest as g, type ApiProviderConfig as h, type AppliedStep as i, type ApplyReport as j, type AssignRoleToGroupRequest as k, type AssignRoleToServiceAccountRequest as l, type AssignRoleToUserRequest as m, type AttestationMode as n, AuditApi as o, type AuditListFilter as p, type AuditListSystemFilter as q, type AuditLogEntry as r, type AuditOutcome as s, type AuthnRequestParamsMode as t, type BindCertificate as u, CaCertificatesApi as v, type Certificate as w, type CertificatePolicy as x, type CertificateStatus as y, type CertificateType as z };
@@ -1,6 +1,6 @@
1
1
  import { CookieJar } from 'tough-cookie';
2
2
  import { S as SharedSession, A as AxiamClientOptions, N as NodeTlsOptions } from './session-B0Lkz0X9.cjs';
3
- import { A as AxiamClient } from './client-CPZ5WCob.cjs';
3
+ import { A as AxiamClient } from './client-JWANinYZ.cjs';
4
4
  import { S as Sensitive } from './sensitive-BC_s7Rrd.cjs';
5
5
  import { V as Verifier } from './jwks-CSXHo3DS.cjs';
6
6
  import { AxiosInstance } from 'axios';
@@ -1,6 +1,6 @@
1
1
  import { CookieJar } from 'tough-cookie';
2
2
  import { S as SharedSession, A as AxiamClientOptions, N as NodeTlsOptions } from './session-fJCGq5jw.js';
3
- import { A as AxiamClient } from './client-Bf4p7wD5.js';
3
+ import { A as AxiamClient } from './client-BXXwSvBI.js';
4
4
  import { S as Sensitive } from './sensitive-BC_s7Rrd.js';
5
5
  import { V as Verifier } from './jwks-CSXHo3DS.js';
6
6
  import { AxiosInstance } from 'axios';
@@ -1,14 +1,14 @@
1
1
  import * as grpc from '@grpc/grpc-js';
2
2
  import { Interceptor } from '@grpc/grpc-js';
3
- import { N as NodeSession } from '../cookieJar-rwTCSTkI.cjs';
4
- export { A as ACCESS_COOKIE, C as CSRF_COOKIE, R as REFRESH_COOKIE, T as TokenManager, c as createJar, a as createNodeClient, b as createNodeSession, e as extractCookieValue, w as wrapAxios } from '../cookieJar-rwTCSTkI.cjs';
3
+ import { N as NodeSession } from '../cookieJar-DXyJgm8n.cjs';
4
+ export { A as ACCESS_COOKIE, C as CSRF_COOKIE, R as REFRESH_COOKIE, T as TokenManager, c as createJar, a as createNodeClient, b as createNodeSession, e as extractCookieValue, w as wrapAxios } from '../cookieJar-DXyJgm8n.cjs';
5
5
  import { a as AccessDecision } from '../types-zXSpiQM-.cjs';
6
6
  export { A as AxiamClaims, J as JWKS_PATH, V as Verifier, c as createVerifier } from '../jwks-CSXHo3DS.cjs';
7
7
  import 'tough-cookie';
8
8
  import '../session-B0Lkz0X9.cjs';
9
9
  import 'axios';
10
10
  import '../telemetry-DrGqL4kb.cjs';
11
- import '../client-CPZ5WCob.cjs';
11
+ import '../client-JWANinYZ.cjs';
12
12
  import '../sensitive-BC_s7Rrd.cjs';
13
13
 
14
14
  /**
@@ -1,14 +1,14 @@
1
1
  import * as grpc from '@grpc/grpc-js';
2
2
  import { Interceptor } from '@grpc/grpc-js';
3
- import { N as NodeSession } from '../cookieJar--3J1ZLYS.js';
4
- export { A as ACCESS_COOKIE, C as CSRF_COOKIE, R as REFRESH_COOKIE, T as TokenManager, c as createJar, a as createNodeClient, b as createNodeSession, e as extractCookieValue, w as wrapAxios } from '../cookieJar--3J1ZLYS.js';
3
+ import { N as NodeSession } from '../cookieJar-DZSc_d8H.js';
4
+ export { A as ACCESS_COOKIE, C as CSRF_COOKIE, R as REFRESH_COOKIE, T as TokenManager, c as createJar, a as createNodeClient, b as createNodeSession, e as extractCookieValue, w as wrapAxios } from '../cookieJar-DZSc_d8H.js';
5
5
  import { a as AccessDecision } from '../types-BOX-6Srv.js';
6
6
  export { A as AxiamClaims, J as JWKS_PATH, V as Verifier, c as createVerifier } from '../jwks-CSXHo3DS.js';
7
7
  import 'tough-cookie';
8
8
  import '../session-fJCGq5jw.js';
9
9
  import 'axios';
10
10
  import '../telemetry-DrGqL4kb.js';
11
- import '../client-Bf4p7wD5.js';
11
+ import '../client-BXXwSvBI.js';
12
12
  import '../sensitive-BC_s7Rrd.js';
13
13
 
14
14
  /**
@@ -2954,6 +2954,16 @@ var UsersApi = class {
2954
2954
  });
2955
2955
  return wire;
2956
2956
  }
2957
+ /** `GET /api/v1/users/{user_id}/sessions` */
2958
+ async listSessions(userId) {
2959
+ const wire = await sendManagement(this.#client, {
2960
+ operation: "users.list_sessions",
2961
+ method: "GET",
2962
+ pathTemplate: "/api/v1/users/{user_id}/sessions",
2963
+ path: `/api/v1/users/${encodeURIComponent(userId)}/sessions`
2964
+ });
2965
+ return wire;
2966
+ }
2957
2967
  };
2958
2968
 
2959
2969
  // src/management/ops/groups.ts