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.
- package/README.md +100 -12
- package/dist/amqp/index.d.cts +3 -2
- package/dist/amqp/index.d.ts +3 -2
- package/dist/{authzCore-BQfX9qxN.d.cts → authzCore-CqXzLNmT.d.cts} +4 -3
- package/dist/{authzCore-BlSHwGnW.d.ts → authzCore-D-hquWSI.d.ts} +4 -3
- package/dist/browser/index.d.cts +8 -7
- package/dist/browser/index.d.ts +8 -7
- package/dist/{client-0WJkblDE.d.ts → client-BMNQi36J.d.ts} +646 -16
- package/dist/{client-yD0eMwHQ.d.cts → client-D34sXV8p.d.cts} +646 -16
- package/dist/{cookieJar-CTD5jOmd.d.cts → cookieJar-C_xPuniu.d.cts} +3 -3
- package/dist/{cookieJar-hWRmZkhe.d.ts → cookieJar-DcrMe93Q.d.ts} +3 -3
- package/dist/{errors-DMIlw2lN.d.ts → errors-DZ3k8a8i.d.cts} +2 -1
- package/dist/{errors-DMIlw2lN.d.cts → errors-DZ3k8a8i.d.ts} +2 -1
- package/dist/{errors-m0Tue_pE.d.cts → errors-RvGlTyUj.d.cts} +18 -3
- package/dist/{errors-CmBvsxV0.d.ts → errors-dlGXAsbh.d.ts} +18 -3
- package/dist/grpc/index.d.cts +10 -9
- package/dist/grpc/index.d.ts +10 -9
- package/dist/grpc/index.js +604 -15
- package/dist/grpc/index.js.map +1 -1
- package/dist/grpc/index.mjs +604 -15
- package/dist/grpc/index.mjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +626 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +624 -17
- package/dist/index.mjs.map +1 -1
- package/dist/{jwks-BR55d7-Z.d.cts → jwks-CTVpOWzI.d.cts} +2 -1
- package/dist/{jwks-BR55d7-Z.d.ts → jwks-CTVpOWzI.d.ts} +2 -1
- package/dist/middleware/index.d.cts +13 -12
- package/dist/middleware/index.d.ts +13 -12
- package/dist/middleware/index.js +53 -12
- package/dist/middleware/index.js.map +1 -1
- package/dist/middleware/index.mjs +53 -12
- package/dist/middleware/index.mjs.map +1 -1
- package/dist/nestjs/index.d.cts +5 -4
- package/dist/nestjs/index.d.ts +5 -4
- package/dist/node/index.d.cts +10 -9
- package/dist/node/index.d.ts +10 -9
- package/dist/node/index.js +631 -19
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +631 -19
- package/dist/node/index.mjs.map +1 -1
- package/dist/{oidcState-mQLVn3-A.d.cts → oidcState-BFIHt7_Y.d.cts} +29 -7
- package/dist/{oidcState-DOSCgnMG.d.ts → oidcState-qoy2vsYG.d.ts} +29 -7
- package/dist/rest/index.d.cts +64 -12
- package/dist/rest/index.d.ts +64 -12
- package/dist/rest/index.js +626 -16
- package/dist/rest/index.js.map +1 -1
- package/dist/rest/index.mjs +624 -17
- package/dist/rest/index.mjs.map +1 -1
- package/dist/{revocationFeed-CDoD7Twr.d.cts → revocationFeed-KQhvMMl8.d.cts} +2 -1
- package/dist/{revocationFeed-CDoD7Twr.d.ts → revocationFeed-KQhvMMl8.d.ts} +2 -1
- package/dist/{session-CeG6P9GO.d.ts → session-BbPFTpMZ.d.ts} +3 -2
- package/dist/{session-BmjEMowX.d.cts → session-C9WlP6DV.d.cts} +3 -2
- package/dist/{telemetry--0DwnNjV.d.cts → telemetry-Du0-zS5f.d.cts} +2 -1
- package/dist/{telemetry--0DwnNjV.d.ts → telemetry-Du0-zS5f.d.ts} +2 -1
- package/dist/{webauthnErrors-fLgfOflO.d.cts → webauthnErrors-m1LZiaRy.d.cts} +2 -1
- package/dist/{webauthnErrors-fLgfOflO.d.ts → webauthnErrors-m1LZiaRy.d.ts} +2 -1
- 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-
|
|
4
|
-
import { A as AxiamClient } from './client-
|
|
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-
|
|
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-
|
|
4
|
-
import { A as AxiamClient } from './client-
|
|
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-
|
|
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,
|
|
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,
|
|
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-
|
|
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
|
-
|
|
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,
|
|
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-
|
|
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
|
-
|
|
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,
|
|
93
|
+
export { ConflictError as C, NotFoundError as N, ValidationError as V, parseFieldErrors as p };
|
|
94
|
+
export type { FieldError as F };
|
package/dist/grpc/index.d.cts
CHANGED
|
@@ -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-
|
|
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-
|
|
5
|
-
import {
|
|
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 {
|
|
8
|
-
export { A as AxiamClaims, J as JWKS_PATH, V as Verifier, c as createVerifier } from '../jwks-
|
|
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-
|
|
12
|
-
import '../telemetry
|
|
13
|
-
import '../client-
|
|
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,
|
|
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 };
|
package/dist/grpc/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
5
|
-
import {
|
|
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 {
|
|
8
|
-
export { A as AxiamClaims, J as JWKS_PATH, V as Verifier, c as createVerifier } from '../jwks-
|
|
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-
|
|
12
|
-
import '../telemetry
|
|
13
|
-
import '../client-
|
|
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,
|
|
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 };
|