axiam-sdk 1.1.3 → 1.2.2

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 (50) hide show
  1. package/README.md +73 -3
  2. package/dist/amqp/index.js.map +1 -1
  3. package/dist/amqp/index.mjs.map +1 -1
  4. package/dist/browser/index.d.cts +1 -1
  5. package/dist/browser/index.d.ts +1 -1
  6. package/dist/{client-BGFn1VQh.d.cts → client-Bp7riC4k.d.cts} +147 -3
  7. package/dist/{client-DrQZZ1js.d.ts → client-CaurIxje.d.ts} +147 -3
  8. package/dist/{cookieJar-BTmpjXZe.d.ts → cookieJar-DC4GLKrJ.d.ts} +2 -2
  9. package/dist/{cookieJar-BqYOnNN-.d.cts → cookieJar-oKazfbN1.d.cts} +2 -2
  10. package/dist/{errors-DZ3k8a8i.d.cts → errors-CWlh-wcm.d.cts} +7 -1
  11. package/dist/{errors-DZ3k8a8i.d.ts → errors-CWlh-wcm.d.ts} +7 -1
  12. package/dist/{errors-dlGXAsbh.d.ts → errors-DDo3oxcH.d.ts} +1 -1
  13. package/dist/{errors-RvGlTyUj.d.cts → errors-DHauOsqx.d.cts} +1 -1
  14. package/dist/grpc/index.d.cts +4 -4
  15. package/dist/grpc/index.d.ts +4 -4
  16. package/dist/grpc/index.js +26 -5
  17. package/dist/grpc/index.js.map +1 -1
  18. package/dist/grpc/index.mjs +26 -5
  19. package/dist/grpc/index.mjs.map +1 -1
  20. package/dist/index.d.cts +4 -4
  21. package/dist/index.d.ts +4 -4
  22. package/dist/index.js +26 -5
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.mjs +26 -5
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/middleware/index.d.cts +5 -5
  27. package/dist/middleware/index.d.ts +5 -5
  28. package/dist/middleware/index.js +164 -12
  29. package/dist/middleware/index.js.map +1 -1
  30. package/dist/middleware/index.mjs +164 -12
  31. package/dist/middleware/index.mjs.map +1 -1
  32. package/dist/nestjs/index.js.map +1 -1
  33. package/dist/nestjs/index.mjs.map +1 -1
  34. package/dist/node/index.d.cts +15 -4
  35. package/dist/node/index.d.ts +15 -4
  36. package/dist/node/index.js +186 -14
  37. package/dist/node/index.js.map +1 -1
  38. package/dist/node/index.mjs +185 -15
  39. package/dist/node/index.mjs.map +1 -1
  40. package/dist/{oidcState-C3VLn3eD.d.ts → oidcState-CZhj0MBP.d.ts} +123 -5
  41. package/dist/{oidcState-BaJ-SM_R.d.cts → oidcState-EnEJmoF5.d.cts} +123 -5
  42. package/dist/rest/index.d.cts +6 -6
  43. package/dist/rest/index.d.ts +6 -6
  44. package/dist/rest/index.js +26 -5
  45. package/dist/rest/index.js.map +1 -1
  46. package/dist/rest/index.mjs +26 -5
  47. package/dist/rest/index.mjs.map +1 -1
  48. package/dist/{session-B03NsqVs.d.ts → session-Beo11VT_.d.ts} +9 -0
  49. package/dist/{session-plDr4lFu.d.cts → session-CeIUXgpE.d.cts} +9 -0
  50. package/package.json +1 -1
@@ -479,6 +479,15 @@ declare class SharedSession {
479
479
  * The fetch adapter derives its `credentials` from `withCredentials: false`
480
480
  * (`'omit'`); `fetchOptions.credentials` is set as well for adapters that
481
481
  * read it.
482
+ *
483
+ * `fetchOptions.redirect: 'error'` is the browser persona's half of CONTRACT.md §12.1
484
+ * rule 3 ("No redirect is followed", C165-26). On the main client's `/oauth2/*` requests
485
+ * it makes `fetch` reject, which every caller maps to a `NetworkError` that carries
486
+ * neither the `Location` nor the request. Where `maxRedirects: 0` is set (the bare
487
+ * transport, `bareRequest`), axios's fetch adapter substitutes `redirect: 'manual'`
488
+ * (`lib/adapters/fetch.js`), so `'error'` is overridden there: the browser hands back an
489
+ * opaque-redirect (status 0), and `bareRequest` maps status 0 or any `3xx` to a
490
+ * `NetworkError` without the `Location` (`bareTransport.ts`).
482
491
  * `NodeSession` overrides this to {@link noCredentialsConfig}: its jar-free
483
492
  * agent pair is what keeps the cookies off there, and the fetch adapter
484
493
  * would bypass that pair.
@@ -479,6 +479,15 @@ declare class SharedSession {
479
479
  * The fetch adapter derives its `credentials` from `withCredentials: false`
480
480
  * (`'omit'`); `fetchOptions.credentials` is set as well for adapters that
481
481
  * read it.
482
+ *
483
+ * `fetchOptions.redirect: 'error'` is the browser persona's half of CONTRACT.md §12.1
484
+ * rule 3 ("No redirect is followed", C165-26). On the main client's `/oauth2/*` requests
485
+ * it makes `fetch` reject, which every caller maps to a `NetworkError` that carries
486
+ * neither the `Location` nor the request. Where `maxRedirects: 0` is set (the bare
487
+ * transport, `bareRequest`), axios's fetch adapter substitutes `redirect: 'manual'`
488
+ * (`lib/adapters/fetch.js`), so `'error'` is overridden there: the browser hands back an
489
+ * opaque-redirect (status 0), and `bareRequest` maps status 0 or any `3xx` to a
490
+ * `NetworkError` without the `Location` (`bareTransport.ts`).
482
491
  * `NodeSession` overrides this to {@link noCredentialsConfig}: its jar-free
483
492
  * agent pair is what keeps the cookies off there, and the fetch adapter
484
493
  * would bypass that pair.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axiam-sdk",
3
- "version": "1.1.3",
3
+ "version": "1.2.2",
4
4
  "description": "Official TypeScript/JavaScript client SDK for AXIAM IAM",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",