@nangohq/types 0.64.2 → 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 +1 -1
- package/dist/auth/api.d.ts +6 -1
- package/dist/flow/index.d.ts +3 -2
- package/dist/plans/db.d.ts +10 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
package/dist/auth/api.d.ts
CHANGED
|
@@ -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;
|
package/dist/flow/index.d.ts
CHANGED
|
@@ -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;
|
package/dist/plans/db.d.ts
CHANGED
|
@@ -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
|
}
|