@nangohq/node 0.36.13 → 0.36.14

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 (2) hide show
  1. package/dist/types.d.ts +7 -7
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -21,8 +21,8 @@ export interface OAuth2Credentials extends CredentialsCommon {
21
21
  refresh_token?: string;
22
22
  expires_at?: Date | undefined;
23
23
  }
24
- export interface AppCredentials {
25
- type?: AuthModes.App;
24
+ export interface AppCredentials extends CredentialsCommon {
25
+ type: AuthModes.App;
26
26
  access_token: string;
27
27
  expires_at?: Date | undefined;
28
28
  raw: Record<string, any>;
@@ -54,16 +54,16 @@ export interface GetRecordsRequestConfig {
54
54
  includeNangoMetadata?: boolean;
55
55
  filter?: FilterAction | CombinedFilterAction;
56
56
  }
57
- export interface BasicApiCredentials {
58
- type?: AuthModes.Basic;
57
+ export interface BasicApiCredentials extends CredentialsCommon {
58
+ type: AuthModes.Basic;
59
59
  username: string;
60
60
  password: string;
61
61
  }
62
- export interface ApiKeyCredentials {
63
- type?: AuthModes.ApiKey;
62
+ export interface ApiKeyCredentials extends CredentialsCommon {
63
+ type: AuthModes.ApiKey;
64
64
  apiKey: string;
65
65
  }
66
- type AuthCredentials = OAuth2Credentials | OAuth1Credentials | BasicApiCredentials | ApiKeyCredentials;
66
+ type AuthCredentials = OAuth2Credentials | OAuth1Credentials | BasicApiCredentials | ApiKeyCredentials | AppCredentials;
67
67
  export interface Metadata {
68
68
  [key: string]: string | Record<string, any>;
69
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nangohq/node",
3
- "version": "0.36.13",
3
+ "version": "0.36.14",
4
4
  "description": "Nango's Node client.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",