@nangohq/types 0.64.1 → 0.64.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.
package/dist/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export interface ApiError<TCode extends string, TErrors = any, TPayload = unknown> {
1
+ export interface ApiError<TCode extends string, TErrors = Error[] | ValidationError[] | undefined, TPayload = unknown> {
2
2
  error: {
3
3
  code: TCode;
4
4
  message?: string | undefined;
@@ -141,6 +141,11 @@ export interface SignatureCredentials {
141
141
  token?: string;
142
142
  expires_at?: Date | undefined;
143
143
  }
144
+ export interface CombinedOauth2AppCredentials extends CredentialsCommon {
145
+ type: AuthModes['Custom'];
146
+ app: AppCredentials;
147
+ user: OAuth2Credentials | null;
148
+ }
144
149
  export type UnauthCredentials = Record<string, never>;
145
150
  export type RefreshTokenResponse = AuthorizationTokenResponse;
146
151
  export interface AuthorizationTokenResponse extends Omit<OAuth2Credentials, 'type' | 'raw'> {
@@ -148,4 +153,4 @@ export interface AuthorizationTokenResponse extends Omit<OAuth2Credentials, 'typ
148
153
  }
149
154
  export type TestableCredentials = ApiKeyCredentials | BasicApiCredentials | TbaCredentials | JwtCredentials | SignatureCredentials;
150
155
  export type RefreshableCredentials = OAuth2Credentials | AppCredentials | AppStoreCredentials | OAuth2ClientCredentials | JwtCredentials | TwoStepCredentials | BillCredentials | SignatureCredentials;
151
- export type AllAuthCredentials = OAuth1Credentials | OAuth2Credentials | OAuth2ClientCredentials | BasicApiCredentials | ApiKeyCredentials | AppCredentials | AppStoreCredentials | UnauthCredentials | CustomCredentials | TbaCredentials | JwtCredentials | BillCredentials | TwoStepCredentials | SignatureCredentials;
156
+ export type AllAuthCredentials = OAuth1Credentials | OAuth2Credentials | OAuth2ClientCredentials | BasicApiCredentials | ApiKeyCredentials | AppCredentials | AppStoreCredentials | UnauthCredentials | CustomCredentials | TbaCredentials | JwtCredentials | BillCredentials | TwoStepCredentials | CombinedOauth2AppCredentials | SignatureCredentials;
@@ -1,5 +1,5 @@
1
- import type { NangoConfigMetadata } from '../deploy/incomingFlow.js';
2
- import type { NangoSyncEndpointV2, ScriptTypeLiteral, SyncTypeLiteral } from '../nangoYaml/index.js';
1
+ import type { LegacySyncModelSchema, NangoConfigMetadata } from '../deploy/incomingFlow.js';
2
+ import type { NangoModel, NangoSyncEndpointV2, ScriptTypeLiteral, SyncTypeLiteral } from '../nangoYaml/index.js';
3
3
  import type { JSONSchema7 } from 'json-schema';
4
4
  export interface NangoSyncConfig {
5
5
  name: string;
@@ -26,6 +26,7 @@ export interface NangoSyncConfig {
26
26
  upgrade_version?: string;
27
27
  is_zero_yaml: boolean;
28
28
  sdk_version: string | null;
29
+ models?: NangoModel[] | LegacySyncModelSchema[] | undefined;
29
30
  }
30
31
  export interface StandardNangoConfig {
31
32
  providerConfigKey: string;
@@ -61,4 +61,14 @@ export interface DBPlan extends Timestamps {
61
61
  * @default true
62
62
  */
63
63
  auto_idle: boolean;
64
+ /**
65
+ * Enable or disable webhooks script
66
+ * @default false
67
+ */
68
+ has_webhooks_script: boolean;
69
+ /**
70
+ * Enable or disable webhooks forward
71
+ * @default false
72
+ */
73
+ has_webhooks_forward: boolean;
64
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nangohq/types",
3
- "version": "0.64.1",
3
+ "version": "0.64.3",
4
4
  "description": "Types used in Nango applications",
5
5
  "type": "module",
6
6
  "typings": "dist/index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "directory": "packages/utils"
13
13
  },
14
14
  "dependencies": {
15
- "axios": "1.9.0",
15
+ "axios": "1.10.0",
16
16
  "json-schema": "0.4.0",
17
17
  "type-fest": "4.41.0"
18
18
  },