axiam-sdk 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/README.md +100 -12
  2. package/dist/amqp/index.d.cts +3 -2
  3. package/dist/amqp/index.d.ts +3 -2
  4. package/dist/{authzCore-BQfX9qxN.d.cts → authzCore-CqXzLNmT.d.cts} +4 -3
  5. package/dist/{authzCore-BlSHwGnW.d.ts → authzCore-D-hquWSI.d.ts} +4 -3
  6. package/dist/browser/index.d.cts +8 -7
  7. package/dist/browser/index.d.ts +8 -7
  8. package/dist/{client-0WJkblDE.d.ts → client-BMNQi36J.d.ts} +646 -16
  9. package/dist/{client-yD0eMwHQ.d.cts → client-D34sXV8p.d.cts} +646 -16
  10. package/dist/{cookieJar-CTD5jOmd.d.cts → cookieJar-C_xPuniu.d.cts} +3 -3
  11. package/dist/{cookieJar-hWRmZkhe.d.ts → cookieJar-DcrMe93Q.d.ts} +3 -3
  12. package/dist/{errors-DMIlw2lN.d.ts → errors-DZ3k8a8i.d.cts} +2 -1
  13. package/dist/{errors-DMIlw2lN.d.cts → errors-DZ3k8a8i.d.ts} +2 -1
  14. package/dist/{errors-m0Tue_pE.d.cts → errors-RvGlTyUj.d.cts} +18 -3
  15. package/dist/{errors-CmBvsxV0.d.ts → errors-dlGXAsbh.d.ts} +18 -3
  16. package/dist/grpc/index.d.cts +10 -9
  17. package/dist/grpc/index.d.ts +10 -9
  18. package/dist/grpc/index.js +604 -15
  19. package/dist/grpc/index.js.map +1 -1
  20. package/dist/grpc/index.mjs +604 -15
  21. package/dist/grpc/index.mjs.map +1 -1
  22. package/dist/index.d.cts +7 -7
  23. package/dist/index.d.ts +7 -7
  24. package/dist/index.js +626 -16
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.mjs +624 -17
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/{jwks-BR55d7-Z.d.cts → jwks-CTVpOWzI.d.cts} +2 -1
  29. package/dist/{jwks-BR55d7-Z.d.ts → jwks-CTVpOWzI.d.ts} +2 -1
  30. package/dist/middleware/index.d.cts +13 -12
  31. package/dist/middleware/index.d.ts +13 -12
  32. package/dist/middleware/index.js +53 -12
  33. package/dist/middleware/index.js.map +1 -1
  34. package/dist/middleware/index.mjs +53 -12
  35. package/dist/middleware/index.mjs.map +1 -1
  36. package/dist/nestjs/index.d.cts +5 -4
  37. package/dist/nestjs/index.d.ts +5 -4
  38. package/dist/node/index.d.cts +10 -9
  39. package/dist/node/index.d.ts +10 -9
  40. package/dist/node/index.js +631 -19
  41. package/dist/node/index.js.map +1 -1
  42. package/dist/node/index.mjs +631 -19
  43. package/dist/node/index.mjs.map +1 -1
  44. package/dist/{oidcState-mQLVn3-A.d.cts → oidcState-BFIHt7_Y.d.cts} +29 -7
  45. package/dist/{oidcState-DOSCgnMG.d.ts → oidcState-qoy2vsYG.d.ts} +29 -7
  46. package/dist/rest/index.d.cts +64 -12
  47. package/dist/rest/index.d.ts +64 -12
  48. package/dist/rest/index.js +626 -16
  49. package/dist/rest/index.js.map +1 -1
  50. package/dist/rest/index.mjs +624 -17
  51. package/dist/rest/index.mjs.map +1 -1
  52. package/dist/{revocationFeed-CDoD7Twr.d.cts → revocationFeed-KQhvMMl8.d.cts} +2 -1
  53. package/dist/{revocationFeed-CDoD7Twr.d.ts → revocationFeed-KQhvMMl8.d.ts} +2 -1
  54. package/dist/{session-CeG6P9GO.d.ts → session-BbPFTpMZ.d.ts} +3 -2
  55. package/dist/{session-BmjEMowX.d.cts → session-C9WlP6DV.d.cts} +3 -2
  56. package/dist/{telemetry--0DwnNjV.d.cts → telemetry-Du0-zS5f.d.cts} +2 -1
  57. package/dist/{telemetry--0DwnNjV.d.ts → telemetry-Du0-zS5f.d.ts} +2 -1
  58. package/dist/{webauthnErrors-fLgfOflO.d.cts → webauthnErrors-m1LZiaRy.d.cts} +2 -1
  59. package/dist/{webauthnErrors-fLgfOflO.d.ts → webauthnErrors-m1LZiaRy.d.ts} +2 -1
  60. package/package.json +2 -2
@@ -1,9 +1,9 @@
1
1
  import { AxiosRequestConfig, AxiosInstance } from 'axios';
2
2
  import { CookieJar } from 'tough-cookie';
3
- import { S as SharedSession, A as AxiamClientOptions, N as NodeTlsOptions } from './session-BmjEMowX.cjs';
4
- import { A as AxiamClient } from './client-yD0eMwHQ.cjs';
3
+ import { S as SharedSession, A as AxiamClientOptions, N as NodeTlsOptions } from './session-C9WlP6DV.cjs';
4
+ import { A as AxiamClient } from './client-D34sXV8p.cjs';
5
5
  import { S as Sensitive } from './sensitive-BC_s7Rrd.cjs';
6
- import { V as Verifier } from './jwks-BR55d7-Z.cjs';
6
+ import { V as Verifier } from './jwks-CTVpOWzI.cjs';
7
7
 
8
8
  /** Tracks the access/refresh token pair for a Node session, kept in sync with the cookie jar after each REST call/refresh. */
9
9
  declare class TokenManager {
@@ -1,9 +1,9 @@
1
1
  import { AxiosRequestConfig, AxiosInstance } from 'axios';
2
2
  import { CookieJar } from 'tough-cookie';
3
- import { S as SharedSession, A as AxiamClientOptions, N as NodeTlsOptions } from './session-CeG6P9GO.js';
4
- import { A as AxiamClient } from './client-0WJkblDE.js';
3
+ import { S as SharedSession, A as AxiamClientOptions, N as NodeTlsOptions } from './session-BbPFTpMZ.js';
4
+ import { A as AxiamClient } from './client-BMNQi36J.js';
5
5
  import { S as Sensitive } from './sensitive-BC_s7Rrd.js';
6
- import { V as Verifier } from './jwks-BR55d7-Z.js';
6
+ import { V as Verifier } from './jwks-CTVpOWzI.js';
7
7
 
8
8
  /** Tracks the access/refresh token pair for a Node session, kept in sync with the cookie jar after each REST call/refresh. */
9
9
  declare class TokenManager {
@@ -98,4 +98,5 @@ declare class NetworkError extends AxiamError {
98
98
  constructor(message: string, cause?: unknown);
99
99
  }
100
100
 
101
- export { AuthzError as A, type IdTokenFailureReason as I, NetworkError as N, OAuthProtocolError as O, AuthError as a, AxiamError as b };
101
+ export { AuthzError as A, NetworkError as N, OAuthProtocolError as O, AuthError as a, AxiamError as b };
102
+ export type { IdTokenFailureReason as I };
@@ -98,4 +98,5 @@ declare class NetworkError extends AxiamError {
98
98
  constructor(message: string, cause?: unknown);
99
99
  }
100
100
 
101
- export { AuthzError as A, type IdTokenFailureReason as I, NetworkError as N, OAuthProtocolError as O, AuthError as a, AxiamError as b };
101
+ export { AuthzError as A, NetworkError as N, OAuthProtocolError as O, AuthError as a, AxiamError as b };
102
+ export type { IdTokenFailureReason as I };
@@ -1,4 +1,4 @@
1
- import { A as AuthzError, N as NetworkError } from './errors-DMIlw2lN.cjs';
1
+ import { A as AuthzError, N as NetworkError } from './errors-DZ3k8a8i.cjs';
2
2
 
3
3
  /**
4
4
  * The §27.4 rule 7 error sub-types.
@@ -43,7 +43,21 @@ declare class NotFoundError extends AuthzError {
43
43
  declare class ConflictError extends AuthzError {
44
44
  /** The registry operation that conflicted. */
45
45
  readonly operation: string;
46
- constructor(operation: string, message: string);
46
+ /**
47
+ * The body's `reason_code`, as the server spelled it (contract 1.62, §36.4),
48
+ * or `undefined` when the body carries none (a server that predates it, or a
49
+ * `409` of an operation that does not name one).
50
+ *
51
+ * The `409` of every `network` operation says which conflict it is:
52
+ * `stale_version`, `strands_profile`, `has_children`, `site_gone`,
53
+ * `duplicate_name`, `duplicate_vlan`, `duplicate_rank`, `profile_exists` or
54
+ * `other` (§36.3 rule 2). The vocabulary is **open**: a value this SDK does
55
+ * not know is surfaced verbatim, and a caller branches on this member —
56
+ * never on `message`, which an SDK must not parse. It is not the `reason` of
57
+ * an authorization decision (§3), which is a human string.
58
+ */
59
+ readonly reasonCode?: string;
60
+ constructor(operation: string, message: string, reasonCode?: string);
47
61
  }
48
62
  /**
49
63
  * HTTP 400/422 — the request was rejected.
@@ -76,4 +90,5 @@ declare class ValidationError extends NetworkError {
76
90
  */
77
91
  declare function parseFieldErrors(body: unknown): FieldError[];
78
92
 
79
- export { ConflictError as C, type FieldError as F, NotFoundError as N, ValidationError as V, parseFieldErrors as p };
93
+ export { ConflictError as C, NotFoundError as N, ValidationError as V, parseFieldErrors as p };
94
+ export type { FieldError as F };
@@ -1,4 +1,4 @@
1
- import { A as AuthzError, N as NetworkError } from './errors-DMIlw2lN.js';
1
+ import { A as AuthzError, N as NetworkError } from './errors-DZ3k8a8i.js';
2
2
 
3
3
  /**
4
4
  * The §27.4 rule 7 error sub-types.
@@ -43,7 +43,21 @@ declare class NotFoundError extends AuthzError {
43
43
  declare class ConflictError extends AuthzError {
44
44
  /** The registry operation that conflicted. */
45
45
  readonly operation: string;
46
- constructor(operation: string, message: string);
46
+ /**
47
+ * The body's `reason_code`, as the server spelled it (contract 1.62, §36.4),
48
+ * or `undefined` when the body carries none (a server that predates it, or a
49
+ * `409` of an operation that does not name one).
50
+ *
51
+ * The `409` of every `network` operation says which conflict it is:
52
+ * `stale_version`, `strands_profile`, `has_children`, `site_gone`,
53
+ * `duplicate_name`, `duplicate_vlan`, `duplicate_rank`, `profile_exists` or
54
+ * `other` (§36.3 rule 2). The vocabulary is **open**: a value this SDK does
55
+ * not know is surfaced verbatim, and a caller branches on this member —
56
+ * never on `message`, which an SDK must not parse. It is not the `reason` of
57
+ * an authorization decision (§3), which is a human string.
58
+ */
59
+ readonly reasonCode?: string;
60
+ constructor(operation: string, message: string, reasonCode?: string);
47
61
  }
48
62
  /**
49
63
  * HTTP 400/422 — the request was rejected.
@@ -76,4 +90,5 @@ declare class ValidationError extends NetworkError {
76
90
  */
77
91
  declare function parseFieldErrors(body: unknown): FieldError[];
78
92
 
79
- export { ConflictError as C, type FieldError as F, NotFoundError as N, ValidationError as V, parseFieldErrors as p };
93
+ export { ConflictError as C, NotFoundError as N, ValidationError as V, parseFieldErrors as p };
94
+ export type { FieldError as F };
@@ -1,16 +1,16 @@
1
1
  import * as grpc from '@grpc/grpc-js';
2
2
  import { Interceptor } from '@grpc/grpc-js';
3
- import { N as NodeSession } from '../cookieJar-CTD5jOmd.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-CTD5jOmd.cjs';
5
- import { S as Sensitive } from '../sensitive-BC_s7Rrd.cjs';
3
+ import { N as NodeSession } from '../cookieJar-C_xPuniu.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-C_xPuniu.cjs';
5
+ import { Sensitive } from '../amqp/index.cjs';
6
6
  import { a as AccessDecision } from '../types-zXSpiQM-.cjs';
7
- import { C as CnfClaim } from '../jwks-BR55d7-Z.cjs';
8
- export { A as AxiamClaims, J as JWKS_PATH, V as Verifier, c as createVerifier } from '../jwks-BR55d7-Z.cjs';
7
+ import { CnfClaim } from '../middleware/index.cjs';
8
+ export { A as AxiamClaims, J as JWKS_PATH, V as Verifier, c as createVerifier } from '../jwks-CTVpOWzI.cjs';
9
9
  import 'axios';
10
10
  import 'tough-cookie';
11
- import '../session-BmjEMowX.cjs';
12
- import '../telemetry--0DwnNjV.cjs';
13
- import '../client-yD0eMwHQ.cjs';
11
+ import '../session-C9WlP6DV.cjs';
12
+ import '../telemetry-Du0-zS5f.cjs';
13
+ import '../client-D34sXV8p.cjs';
14
14
 
15
15
  /**
16
16
  * Injects `authorization: Bearer <token>` (when a token is available) and
@@ -438,4 +438,5 @@ declare class TokenGrpcClient {
438
438
  close(): void;
439
439
  }
440
440
 
441
- export { AccessDecision, type AuthorizationServiceClientFactory, AuthzGrpcClient, type CheckAccessRequest, NodeSession, TokenGrpcClient, type TokenIntrospection, type TokenServiceClientFactory, type TokenValidation, type UserInfo, UserInfoGrpcClient, type UserInfoServiceClientFactory, type WireAuthorizationServiceClient, type WireBatchCheckAccessRequest, type WireBatchCheckAccessResponse, type WireCheckAccessRequest, type WireCheckAccessResponse, type WireCnfClaim, type WireGetUserInfoRequest, type WireGetUserInfoResponse, type WireIntrospectTokenRequest, type WireIntrospectTokenResponse, type WireRptPermission, type WireTokenServiceClient, type WireUserInfoServiceClient, type WireValidateTokenRequest, type WireValidateTokenResponse, authInterceptor, buildAuthorizationServiceClient, buildTokenServiceClient, buildUserInfoServiceClient, callWithRefresh };
441
+ export { AccessDecision, AuthzGrpcClient, NodeSession, TokenGrpcClient, UserInfoGrpcClient, authInterceptor, buildAuthorizationServiceClient, buildTokenServiceClient, buildUserInfoServiceClient, callWithRefresh };
442
+ export type { AuthorizationServiceClientFactory, CheckAccessRequest, TokenIntrospection, TokenServiceClientFactory, TokenValidation, UserInfo, UserInfoServiceClientFactory, WireAuthorizationServiceClient, WireBatchCheckAccessRequest, WireBatchCheckAccessResponse, WireCheckAccessRequest, WireCheckAccessResponse, WireCnfClaim, WireGetUserInfoRequest, WireGetUserInfoResponse, WireIntrospectTokenRequest, WireIntrospectTokenResponse, WireRptPermission, WireTokenServiceClient, WireUserInfoServiceClient, WireValidateTokenRequest, WireValidateTokenResponse };
@@ -1,16 +1,16 @@
1
1
  import * as grpc from '@grpc/grpc-js';
2
2
  import { Interceptor } from '@grpc/grpc-js';
3
- import { N as NodeSession } from '../cookieJar-hWRmZkhe.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-hWRmZkhe.js';
5
- import { S as Sensitive } from '../sensitive-BC_s7Rrd.js';
3
+ import { N as NodeSession } from '../cookieJar-DcrMe93Q.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-DcrMe93Q.js';
5
+ import { Sensitive } from '../amqp/index.js';
6
6
  import { a as AccessDecision } from '../types-BOX-6Srv.js';
7
- import { C as CnfClaim } from '../jwks-BR55d7-Z.js';
8
- export { A as AxiamClaims, J as JWKS_PATH, V as Verifier, c as createVerifier } from '../jwks-BR55d7-Z.js';
7
+ import { CnfClaim } from '../middleware/index.js';
8
+ export { A as AxiamClaims, J as JWKS_PATH, V as Verifier, c as createVerifier } from '../jwks-CTVpOWzI.js';
9
9
  import 'axios';
10
10
  import 'tough-cookie';
11
- import '../session-CeG6P9GO.js';
12
- import '../telemetry--0DwnNjV.js';
13
- import '../client-0WJkblDE.js';
11
+ import '../session-BbPFTpMZ.js';
12
+ import '../telemetry-Du0-zS5f.js';
13
+ import '../client-BMNQi36J.js';
14
14
 
15
15
  /**
16
16
  * Injects `authorization: Bearer <token>` (when a token is available) and
@@ -438,4 +438,5 @@ declare class TokenGrpcClient {
438
438
  close(): void;
439
439
  }
440
440
 
441
- export { AccessDecision, type AuthorizationServiceClientFactory, AuthzGrpcClient, type CheckAccessRequest, NodeSession, TokenGrpcClient, type TokenIntrospection, type TokenServiceClientFactory, type TokenValidation, type UserInfo, UserInfoGrpcClient, type UserInfoServiceClientFactory, type WireAuthorizationServiceClient, type WireBatchCheckAccessRequest, type WireBatchCheckAccessResponse, type WireCheckAccessRequest, type WireCheckAccessResponse, type WireCnfClaim, type WireGetUserInfoRequest, type WireGetUserInfoResponse, type WireIntrospectTokenRequest, type WireIntrospectTokenResponse, type WireRptPermission, type WireTokenServiceClient, type WireUserInfoServiceClient, type WireValidateTokenRequest, type WireValidateTokenResponse, authInterceptor, buildAuthorizationServiceClient, buildTokenServiceClient, buildUserInfoServiceClient, callWithRefresh };
441
+ export { AccessDecision, AuthzGrpcClient, NodeSession, TokenGrpcClient, UserInfoGrpcClient, authInterceptor, buildAuthorizationServiceClient, buildTokenServiceClient, buildUserInfoServiceClient, callWithRefresh };
442
+ export type { AuthorizationServiceClientFactory, CheckAccessRequest, TokenIntrospection, TokenServiceClientFactory, TokenValidation, UserInfo, UserInfoServiceClientFactory, WireAuthorizationServiceClient, WireBatchCheckAccessRequest, WireBatchCheckAccessResponse, WireCheckAccessRequest, WireCheckAccessResponse, WireCnfClaim, WireGetUserInfoRequest, WireGetUserInfoResponse, WireIntrospectTokenRequest, WireIntrospectTokenResponse, WireRptPermission, WireTokenServiceClient, WireUserInfoServiceClient, WireValidateTokenRequest, WireValidateTokenResponse };