@stackone/transport 1.13.0 → 1.14.1

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/dist/index.d.mts CHANGED
@@ -14,11 +14,16 @@ type BasicAuthorizationParams = {
14
14
  type BearerAuthorizationParams = {
15
15
  type: 'bearer';
16
16
  token: string;
17
- includeBearer?: boolean;
17
+ includeBearer: boolean;
18
+ };
19
+ type OAuth2AuthorizationParams = {
20
+ type: 'oauth2';
21
+ token: string;
22
+ includeBearer: boolean;
18
23
  };
19
24
  //#endregion
20
25
  //#region src/authorization/authorizationHeaders.d.ts
21
- declare const createAuthorizationHeaders: (authenticationParams: BasicAuthorizationParams | BearerAuthorizationParams) => {
26
+ declare const createAuthorizationHeaders: (authenticationParams: BasicAuthorizationParams | BearerAuthorizationParams | OAuth2AuthorizationParams) => {
22
27
  authorization: string;
23
28
  };
24
29
  //#endregion
package/dist/index.d.ts CHANGED
@@ -14,11 +14,16 @@ type BasicAuthorizationParams = {
14
14
  type BearerAuthorizationParams = {
15
15
  type: 'bearer';
16
16
  token: string;
17
- includeBearer?: boolean;
17
+ includeBearer: boolean;
18
+ };
19
+ type OAuth2AuthorizationParams = {
20
+ type: 'oauth2';
21
+ token: string;
22
+ includeBearer: boolean;
18
23
  };
19
24
  //#endregion
20
25
  //#region src/authorization/authorizationHeaders.d.ts
21
- declare const createAuthorizationHeaders: (authenticationParams: BasicAuthorizationParams | BearerAuthorizationParams) => {
26
+ declare const createAuthorizationHeaders: (authenticationParams: BasicAuthorizationParams | BearerAuthorizationParams | OAuth2AuthorizationParams) => {
22
27
  authorization: string;
23
28
  };
24
29
  //#endregion