axiam-sdk 1.1.1 → 1.1.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 (42) hide show
  1. package/README.md +20 -4
  2. package/dist/browser/index.d.cts +1 -1
  3. package/dist/browser/index.d.ts +1 -1
  4. package/dist/{client-D34sXV8p.d.cts → client-BGFn1VQh.d.cts} +7 -1
  5. package/dist/{client-BMNQi36J.d.ts → client-DrQZZ1js.d.ts} +7 -1
  6. package/dist/{cookieJar-DcrMe93Q.d.ts → cookieJar-BTmpjXZe.d.ts} +8 -2
  7. package/dist/{cookieJar-C_xPuniu.d.cts → cookieJar-BqYOnNN-.d.cts} +8 -2
  8. package/dist/grpc/index.d.cts +4 -4
  9. package/dist/grpc/index.d.ts +4 -4
  10. package/dist/grpc/index.js +32 -2
  11. package/dist/grpc/index.js.map +1 -1
  12. package/dist/grpc/index.mjs +32 -2
  13. package/dist/grpc/index.mjs.map +1 -1
  14. package/dist/index.d.cts +2 -2
  15. package/dist/index.d.ts +2 -2
  16. package/dist/index.js +24 -2
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs +24 -2
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/middleware/index.d.cts +3 -3
  21. package/dist/middleware/index.d.ts +3 -3
  22. package/dist/middleware/index.js +149 -22
  23. package/dist/middleware/index.js.map +1 -1
  24. package/dist/middleware/index.mjs +149 -22
  25. package/dist/middleware/index.mjs.map +1 -1
  26. package/dist/node/index.d.cts +3 -3
  27. package/dist/node/index.d.ts +3 -3
  28. package/dist/node/index.js +178 -23
  29. package/dist/node/index.js.map +1 -1
  30. package/dist/node/index.mjs +178 -23
  31. package/dist/node/index.mjs.map +1 -1
  32. package/dist/{oidcState-BFIHt7_Y.d.cts → oidcState-BaJ-SM_R.d.cts} +37 -6
  33. package/dist/{oidcState-qoy2vsYG.d.ts → oidcState-C3VLn3eD.d.ts} +37 -6
  34. package/dist/rest/index.d.cts +3 -3
  35. package/dist/rest/index.d.ts +3 -3
  36. package/dist/rest/index.js +24 -2
  37. package/dist/rest/index.js.map +1 -1
  38. package/dist/rest/index.mjs +24 -2
  39. package/dist/rest/index.mjs.map +1 -1
  40. package/dist/{session-BbPFTpMZ.d.ts → session-B03NsqVs.d.ts} +16 -0
  41. package/dist/{session-C9WlP6DV.d.cts → session-plDr4lFu.d.cts} +16 -0
  42. package/package.json +1 -1
@@ -468,6 +468,22 @@ declare class SharedSession {
468
468
  * attached to the instance, not from per-request config.
469
469
  */
470
470
  noCredentialsConfig(): AxiosRequestConfig;
471
+ /**
472
+ * Axios config for a request to an `/oauth2/*` endpoint (CONTRACT.md §12.1
473
+ * rule 3, §14.6; C163-12): {@link noCredentialsConfig} and, in the browser
474
+ * persona, the fetch adapter with `credentials: 'omit'`.
475
+ *
476
+ * `withCredentials: false` on axios's default XHR adapter is not enough: that
477
+ * adapter sends a same-origin cookie regardless, so an app served from the
478
+ * AXIAM origin would still present `axiam_*` on a token or device request.
479
+ * The fetch adapter derives its `credentials` from `withCredentials: false`
480
+ * (`'omit'`); `fetchOptions.credentials` is set as well for adapters that
481
+ * read it.
482
+ * `NodeSession` overrides this to {@link noCredentialsConfig}: its jar-free
483
+ * agent pair is what keeps the cookies off there, and the fetch adapter
484
+ * would bypass that pair.
485
+ */
486
+ oauth2RequestConfig(): AxiosRequestConfig;
471
487
  }
472
488
  interface NodeTlsOptions {
473
489
  /** §6 server-trust PEM bundle. */
@@ -468,6 +468,22 @@ declare class SharedSession {
468
468
  * attached to the instance, not from per-request config.
469
469
  */
470
470
  noCredentialsConfig(): AxiosRequestConfig;
471
+ /**
472
+ * Axios config for a request to an `/oauth2/*` endpoint (CONTRACT.md §12.1
473
+ * rule 3, §14.6; C163-12): {@link noCredentialsConfig} and, in the browser
474
+ * persona, the fetch adapter with `credentials: 'omit'`.
475
+ *
476
+ * `withCredentials: false` on axios's default XHR adapter is not enough: that
477
+ * adapter sends a same-origin cookie regardless, so an app served from the
478
+ * AXIAM origin would still present `axiam_*` on a token or device request.
479
+ * The fetch adapter derives its `credentials` from `withCredentials: false`
480
+ * (`'omit'`); `fetchOptions.credentials` is set as well for adapters that
481
+ * read it.
482
+ * `NodeSession` overrides this to {@link noCredentialsConfig}: its jar-free
483
+ * agent pair is what keeps the cookies off there, and the fetch adapter
484
+ * would bypass that pair.
485
+ */
486
+ oauth2RequestConfig(): AxiosRequestConfig;
471
487
  }
472
488
  interface NodeTlsOptions {
473
489
  /** §6 server-trust PEM bundle. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axiam-sdk",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Official TypeScript/JavaScript client SDK for AXIAM IAM",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",