@nangohq/types 0.58.4 → 0.58.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.
package/dist/auth/api.d.ts
CHANGED
|
@@ -131,12 +131,7 @@ export interface TableauCredentials extends CredentialsCommon {
|
|
|
131
131
|
}
|
|
132
132
|
export interface JwtCredentials {
|
|
133
133
|
type: AuthModes['Jwt'];
|
|
134
|
-
|
|
135
|
-
issuerId?: string;
|
|
136
|
-
privateKey: {
|
|
137
|
-
id: string;
|
|
138
|
-
secret: string;
|
|
139
|
-
} | string;
|
|
134
|
+
[key: string]: any;
|
|
140
135
|
token?: string;
|
|
141
136
|
expires_at?: Date | undefined;
|
|
142
137
|
}
|
package/dist/auth/http.api.d.ts
CHANGED
|
@@ -90,14 +90,7 @@ export type PostPublicTableauAuthorization = Endpoint<{
|
|
|
90
90
|
}>;
|
|
91
91
|
export type PostPublicJwtAuthorization = Endpoint<{
|
|
92
92
|
Method: 'POST';
|
|
93
|
-
Body:
|
|
94
|
-
privateKeyId?: string;
|
|
95
|
-
issuerId?: string;
|
|
96
|
-
privateKey: {
|
|
97
|
-
id: string;
|
|
98
|
-
secret: string;
|
|
99
|
-
} | string;
|
|
100
|
-
};
|
|
93
|
+
Body: Record<string, any>;
|
|
101
94
|
Querystring: ConnectionQueryString;
|
|
102
95
|
Params: {
|
|
103
96
|
providerConfigKey: string;
|
|
@@ -44,6 +44,7 @@ export interface PreBuiltFlowConfig {
|
|
|
44
44
|
fileBody?: IncomingScriptFiles;
|
|
45
45
|
endpoints: NangoSyncEndpointV2[];
|
|
46
46
|
input?: NangoModel | LegacySyncModelSchema | undefined;
|
|
47
|
+
version?: string | null;
|
|
47
48
|
}
|
|
48
49
|
export interface CLIDeployFlowConfig {
|
|
49
50
|
type: ScriptTypeLiteral;
|
package/dist/environment/db.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Timestamps } from '../db';
|
|
1
|
+
import type { Timestamps, TimestampsAndDeletedCorrect } from '../db';
|
|
2
2
|
export interface DBEnvironmentVariable extends Timestamps {
|
|
3
3
|
id: number;
|
|
4
4
|
name: string;
|
|
@@ -7,7 +7,7 @@ export interface DBEnvironmentVariable extends Timestamps {
|
|
|
7
7
|
value_iv: string | null;
|
|
8
8
|
value_tag: string | null;
|
|
9
9
|
}
|
|
10
|
-
export interface DBEnvironment extends
|
|
10
|
+
export interface DBEnvironment extends TimestampsAndDeletedCorrect {
|
|
11
11
|
id: number;
|
|
12
12
|
uuid: string;
|
|
13
13
|
name: string;
|
package/dist/logs/messages.d.ts
CHANGED
|
@@ -93,6 +93,15 @@ export interface MessageRow {
|
|
|
93
93
|
request?: MessageHTTPRequest | undefined;
|
|
94
94
|
response?: MessageHTTPResponse | undefined;
|
|
95
95
|
meta?: MessageMeta | null | undefined;
|
|
96
|
+
persistResults?: {
|
|
97
|
+
model: string;
|
|
98
|
+
added: number;
|
|
99
|
+
addedKeys: string[];
|
|
100
|
+
updated: number;
|
|
101
|
+
updatedKeys: string[];
|
|
102
|
+
deleted: number;
|
|
103
|
+
deleteKeys: string[];
|
|
104
|
+
} | undefined;
|
|
96
105
|
retry?: MessageHTTPRetry | undefined;
|
|
97
106
|
createdAt: string;
|
|
98
107
|
endedAt?: string | undefined;
|
package/dist/plans/db.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export interface BaseProvider {
|
|
|
53
53
|
endpoints: string[];
|
|
54
54
|
base_url_override?: string;
|
|
55
55
|
headers?: Record<string, string>;
|
|
56
|
+
data?: unknown;
|
|
56
57
|
};
|
|
57
58
|
};
|
|
58
59
|
authorization_url?: string;
|
|
@@ -106,13 +107,20 @@ export interface ProviderOAuth1 extends BaseProvider {
|
|
|
106
107
|
}
|
|
107
108
|
export interface ProviderJwt extends BaseProvider {
|
|
108
109
|
auth_mode: 'JWT';
|
|
110
|
+
signature: {
|
|
111
|
+
protocol: 'RSA' | 'HMAC';
|
|
112
|
+
};
|
|
109
113
|
token: {
|
|
114
|
+
signing_key: string;
|
|
110
115
|
expires_in_ms: number;
|
|
111
|
-
|
|
116
|
+
header: {
|
|
112
117
|
alg: string;
|
|
118
|
+
typ?: string;
|
|
113
119
|
};
|
|
114
120
|
payload: {
|
|
115
|
-
aud
|
|
121
|
+
aud?: string;
|
|
122
|
+
iss?: string;
|
|
123
|
+
sub?: string;
|
|
116
124
|
};
|
|
117
125
|
};
|
|
118
126
|
}
|