@corti/sdk 0.1.2-rc.4 → 0.1.2-rc.5

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.
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * RefreshBearerProvider used as a replacement of OAuthTokenProvider, in case when accessToken from outside of library was used instead of Client credentials.
3
3
  */
4
- import * as core from "../core/index.js";
5
4
  import * as api from "../api/index.js";
6
5
  type ExpectedTokenResponse = Omit<api.GetTokenResponse, 'tokenType'> & {
7
6
  tokenType?: string;
@@ -9,10 +8,10 @@ type ExpectedTokenResponse = Omit<api.GetTokenResponse, 'tokenType'> & {
9
8
  type RefreshAccessTokenFunction = (refreshToken?: string) => Promise<ExpectedTokenResponse> | ExpectedTokenResponse;
10
9
  export type BearerOptions = Partial<Omit<api.GetTokenResponse, 'accessToken'>> & ({
11
10
  refreshAccessToken?: RefreshAccessTokenFunction;
12
- accessToken: core.Supplier<string>;
11
+ accessToken: string;
13
12
  } | {
14
13
  refreshAccessToken: RefreshAccessTokenFunction;
15
- accessToken?: core.Supplier<string>;
14
+ accessToken?: string;
16
15
  });
17
16
  export declare class RefreshBearerProvider {
18
17
  private readonly BUFFER_IN_MINUTES;
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * RefreshBearerProvider used as a replacement of OAuthTokenProvider, in case when accessToken from outside of library was used instead of Client credentials.
3
3
  */
4
- import * as core from "../core/index.mjs";
5
4
  import * as api from "../api/index.mjs";
6
5
  type ExpectedTokenResponse = Omit<api.GetTokenResponse, 'tokenType'> & {
7
6
  tokenType?: string;
@@ -9,10 +8,10 @@ type ExpectedTokenResponse = Omit<api.GetTokenResponse, 'tokenType'> & {
9
8
  type RefreshAccessTokenFunction = (refreshToken?: string) => Promise<ExpectedTokenResponse> | ExpectedTokenResponse;
10
9
  export type BearerOptions = Partial<Omit<api.GetTokenResponse, 'accessToken'>> & ({
11
10
  refreshAccessToken?: RefreshAccessTokenFunction;
12
- accessToken: core.Supplier<string>;
11
+ accessToken: string;
13
12
  } | {
14
13
  refreshAccessToken: RefreshAccessTokenFunction;
15
- accessToken?: core.Supplier<string>;
14
+ accessToken?: string;
16
15
  });
17
16
  export declare class RefreshBearerProvider {
18
17
  private readonly BUFFER_IN_MINUTES;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corti/sdk",
3
- "version": "0.1.2-rc.4",
3
+ "version": "0.1.2-rc.5",
4
4
  "private": false,
5
5
  "repository": "github:corticph/corti-sdk-javascript",
6
6
  "license": "MIT",