axiam-sdk 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +91 -12
  2. package/dist/browser/index.d.cts +1 -1
  3. package/dist/browser/index.d.ts +1 -1
  4. package/dist/{client-yD0eMwHQ.d.cts → client-7ZKtfXW-.d.cts} +640 -14
  5. package/dist/{client-0WJkblDE.d.ts → client-Putxo-yi.d.ts} +640 -14
  6. package/dist/{cookieJar-hWRmZkhe.d.ts → cookieJar-Cw6Zdeec.d.ts} +1 -1
  7. package/dist/{cookieJar-CTD5jOmd.d.cts → cookieJar-DkGcIr-i.d.cts} +1 -1
  8. package/dist/{errors-m0Tue_pE.d.cts → errors-CtP_lviy.d.cts} +15 -1
  9. package/dist/{errors-CmBvsxV0.d.ts → errors-VpViVRSx.d.ts} +15 -1
  10. package/dist/grpc/index.d.cts +3 -3
  11. package/dist/grpc/index.d.ts +3 -3
  12. package/dist/grpc/index.js +572 -14
  13. package/dist/grpc/index.js.map +1 -1
  14. package/dist/grpc/index.mjs +572 -14
  15. package/dist/grpc/index.mjs.map +1 -1
  16. package/dist/index.d.cts +3 -3
  17. package/dist/index.d.ts +3 -3
  18. package/dist/index.js +594 -15
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.mjs +592 -16
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/middleware/index.d.cts +3 -3
  23. package/dist/middleware/index.d.ts +3 -3
  24. package/dist/middleware/index.js +26 -3
  25. package/dist/middleware/index.js.map +1 -1
  26. package/dist/middleware/index.mjs +26 -3
  27. package/dist/middleware/index.mjs.map +1 -1
  28. package/dist/node/index.d.cts +3 -3
  29. package/dist/node/index.d.ts +3 -3
  30. package/dist/node/index.js +598 -17
  31. package/dist/node/index.js.map +1 -1
  32. package/dist/node/index.mjs +598 -17
  33. package/dist/node/index.mjs.map +1 -1
  34. package/dist/{oidcState-mQLVn3-A.d.cts → oidcState-Cz6erz0g.d.cts} +24 -3
  35. package/dist/{oidcState-DOSCgnMG.d.ts → oidcState-zGt6VU6v.d.ts} +24 -3
  36. package/dist/rest/index.d.cts +58 -7
  37. package/dist/rest/index.d.ts +58 -7
  38. package/dist/rest/index.js +594 -15
  39. package/dist/rest/index.js.map +1 -1
  40. package/dist/rest/index.mjs +592 -16
  41. package/dist/rest/index.mjs.map +1 -1
  42. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { AxiosRequestConfig, AxiosInstance } from 'axios';
2
2
  import { CookieJar } from 'tough-cookie';
3
3
  import { S as SharedSession, A as AxiamClientOptions, N as NodeTlsOptions } from './session-CeG6P9GO.js';
4
- import { A as AxiamClient } from './client-0WJkblDE.js';
4
+ import { A as AxiamClient } from './client-Putxo-yi.js';
5
5
  import { S as Sensitive } from './sensitive-BC_s7Rrd.js';
6
6
  import { V as Verifier } from './jwks-BR55d7-Z.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { AxiosRequestConfig, AxiosInstance } from 'axios';
2
2
  import { CookieJar } from 'tough-cookie';
3
3
  import { S as SharedSession, A as AxiamClientOptions, N as NodeTlsOptions } from './session-BmjEMowX.cjs';
4
- import { A as AxiamClient } from './client-yD0eMwHQ.cjs';
4
+ import { A as AxiamClient } from './client-7ZKtfXW-.cjs';
5
5
  import { S as Sensitive } from './sensitive-BC_s7Rrd.cjs';
6
6
  import { V as Verifier } from './jwks-BR55d7-Z.cjs';
7
7
 
@@ -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.
@@ -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.
@@ -1,7 +1,7 @@
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';
3
+ import { N as NodeSession } from '../cookieJar-DkGcIr-i.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-DkGcIr-i.cjs';
5
5
  import { S as Sensitive } from '../sensitive-BC_s7Rrd.cjs';
6
6
  import { a as AccessDecision } from '../types-zXSpiQM-.cjs';
7
7
  import { C as CnfClaim } from '../jwks-BR55d7-Z.cjs';
@@ -10,7 +10,7 @@ import 'axios';
10
10
  import 'tough-cookie';
11
11
  import '../session-BmjEMowX.cjs';
12
12
  import '../telemetry--0DwnNjV.cjs';
13
- import '../client-yD0eMwHQ.cjs';
13
+ import '../client-7ZKtfXW-.cjs';
14
14
 
15
15
  /**
16
16
  * Injects `authorization: Bearer <token>` (when a token is available) and
@@ -1,7 +1,7 @@
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';
3
+ import { N as NodeSession } from '../cookieJar-Cw6Zdeec.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-Cw6Zdeec.js';
5
5
  import { S as Sensitive } from '../sensitive-BC_s7Rrd.js';
6
6
  import { a as AccessDecision } from '../types-BOX-6Srv.js';
7
7
  import { C as CnfClaim } from '../jwks-BR55d7-Z.js';
@@ -10,7 +10,7 @@ import 'axios';
10
10
  import 'tough-cookie';
11
11
  import '../session-CeG6P9GO.js';
12
12
  import '../telemetry--0DwnNjV.js';
13
- import '../client-0WJkblDE.js';
13
+ import '../client-Putxo-yi.js';
14
14
 
15
15
  /**
16
16
  * Injects `authorization: Bearer <token>` (when a token is available) and