axiam-sdk 1.1.1 → 1.1.3

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 +18 -18
@@ -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.3",
4
4
  "description": "Official TypeScript/JavaScript client SDK for AXIAM IAM",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -127,12 +127,12 @@
127
127
  "gen-management:check": "node scripts/gen-management.mjs --check"
128
128
  },
129
129
  "dependencies": {
130
- "@grpc/grpc-js": "^1.14.4",
131
- "amqplib": "^2.0.1",
132
- "axios": "^1.18.1",
130
+ "@grpc/grpc-js": "^1.14.6",
131
+ "amqplib": "^2.2.0",
132
+ "axios": "^1.21.0",
133
133
  "hash-wasm": "^4.12.0",
134
134
  "http-cookie-agent": "^8.0.0",
135
- "jose": "^6.2.3",
135
+ "jose": "^6.2.13",
136
136
  "tough-cookie": "^6.0.2"
137
137
  },
138
138
  "peerDependencies": {
@@ -160,29 +160,29 @@
160
160
  }
161
161
  },
162
162
  "overrides": {
163
- "esbuild": "^0.28.1",
163
+ "esbuild": "^0.28.2",
164
164
  "@vitest/mocker": {
165
165
  "msw": "$msw"
166
166
  }
167
167
  },
168
168
  "devDependencies": {
169
- "@nestjs/common": "^12.0.1",
170
- "@nestjs/core": "^12.0.1",
169
+ "@nestjs/common": "^12.3.2",
170
+ "@nestjs/core": "^12.3.2",
171
171
  "@types/amqplib": "^0.10.8",
172
172
  "@types/express": "^5.0.6",
173
- "@types/node": "^26.1.1",
174
- "@vitest/coverage-v8": "^5.0.0",
175
- "esbuild": "^0.28.1",
176
- "express": "^5.2.1",
177
- "fastify": "^5.10.0",
178
- "jsdom": "^30.0.0",
179
- "msw": "^3.0.2",
173
+ "@types/node": "^26.6.5",
174
+ "@vitest/coverage-v8": "^5.0.5",
175
+ "esbuild": "^0.28.2",
176
+ "express": "^5.3.0",
177
+ "fastify": "^5.12.7",
178
+ "jsdom": "^30.1.3",
179
+ "msw": "^3.0.3",
180
180
  "reflect-metadata": "^0.2.2",
181
181
  "rxjs": "^7.8.2",
182
- "ts-proto": "^2.12.0",
182
+ "ts-proto": "^2.18.3",
183
183
  "tsup": "^9.0.0",
184
184
  "typedoc": "^0.28.20",
185
- "typescript": "~5.9.0",
186
- "vitest": "^5.0.0"
185
+ "typescript": "~6.0.3",
186
+ "vitest": "^5.0.5"
187
187
  }
188
188
  }