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.
- package/README.md +20 -4
- package/dist/browser/index.d.cts +1 -1
- package/dist/browser/index.d.ts +1 -1
- package/dist/{client-D34sXV8p.d.cts → client-BGFn1VQh.d.cts} +7 -1
- package/dist/{client-BMNQi36J.d.ts → client-DrQZZ1js.d.ts} +7 -1
- package/dist/{cookieJar-DcrMe93Q.d.ts → cookieJar-BTmpjXZe.d.ts} +8 -2
- package/dist/{cookieJar-C_xPuniu.d.cts → cookieJar-BqYOnNN-.d.cts} +8 -2
- package/dist/grpc/index.d.cts +4 -4
- package/dist/grpc/index.d.ts +4 -4
- package/dist/grpc/index.js +32 -2
- package/dist/grpc/index.js.map +1 -1
- package/dist/grpc/index.mjs +32 -2
- package/dist/grpc/index.mjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +24 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -2
- package/dist/index.mjs.map +1 -1
- package/dist/middleware/index.d.cts +3 -3
- package/dist/middleware/index.d.ts +3 -3
- package/dist/middleware/index.js +149 -22
- package/dist/middleware/index.js.map +1 -1
- package/dist/middleware/index.mjs +149 -22
- package/dist/middleware/index.mjs.map +1 -1
- package/dist/node/index.d.cts +3 -3
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.js +178 -23
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +178 -23
- package/dist/node/index.mjs.map +1 -1
- package/dist/{oidcState-BFIHt7_Y.d.cts → oidcState-BaJ-SM_R.d.cts} +37 -6
- package/dist/{oidcState-qoy2vsYG.d.ts → oidcState-C3VLn3eD.d.ts} +37 -6
- package/dist/rest/index.d.cts +3 -3
- package/dist/rest/index.d.ts +3 -3
- package/dist/rest/index.js +24 -2
- package/dist/rest/index.js.map +1 -1
- package/dist/rest/index.mjs +24 -2
- package/dist/rest/index.mjs.map +1 -1
- package/dist/{session-BbPFTpMZ.d.ts → session-B03NsqVs.d.ts} +16 -0
- package/dist/{session-C9WlP6DV.d.cts → session-plDr4lFu.d.cts} +16 -0
- 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. */
|