@nangohq/types 0.67.5 → 0.67.6
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/http.api.d.ts +1 -1
- package/dist/jobs/api.d.ts +2 -1
- package/dist/logs/messages.d.ts +1 -1
- package/dist/persist/api.d.ts +3 -0
- package/dist/runner/index.d.ts +3 -3
- package/dist/runner/sdk.d.ts +4 -0
- package/dist/scripts/on-events/api.d.ts +1 -1
- package/dist/scripts/on-events/db.d.ts +1 -1
- package/package.json +1 -1
package/dist/auth/http.api.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface WebSocketConnectionResponseSuccess {
|
|
|
33
33
|
is_pending: boolean;
|
|
34
34
|
private_key?: string | undefined;
|
|
35
35
|
}
|
|
36
|
-
type AuthErrors = ApiError<'invalid_body'> | ApiError<'invalid_query_params'> | ApiError<'unknown_provider_config'> | ApiError<'unknown_provider_template'> | ApiError<'invalid_auth_mode'> | ApiError<'invalid_credentials'> | ApiError<'integration_not_allowed'> | ApiError<'invalid_connection'> | ApiError<'connection_test_failed'>;
|
|
36
|
+
type AuthErrors = ApiError<'invalid_body'> | ApiError<'invalid_query_params'> | ApiError<'unknown_provider_config'> | ApiError<'unknown_provider_template'> | ApiError<'invalid_auth_mode'> | ApiError<'invalid_credentials'> | ApiError<'integration_not_allowed'> | ApiError<'invalid_connection'> | ApiError<'connection_test_failed'> | ApiError<'connection_validation_failed'>;
|
|
37
37
|
export type PostPublicApiKeyAuthorization = Endpoint<{
|
|
38
38
|
Method: 'POST';
|
|
39
39
|
Body: {
|
package/dist/jobs/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ApiError, Endpoint } from '../api.js';
|
|
2
2
|
import type { RunnerOutputError } from '../runner/index.js';
|
|
3
|
-
import type { NangoProps } from '../runner/sdk.js';
|
|
3
|
+
import type { NangoProps, TelemetryBag } from '../runner/sdk.js';
|
|
4
4
|
import type { JsonValue } from 'type-fest';
|
|
5
5
|
export type PostHeartbeat = Endpoint<{
|
|
6
6
|
Method: 'POST';
|
|
@@ -22,6 +22,7 @@ export type PutTask = Endpoint<{
|
|
|
22
22
|
nangoProps?: NangoProps | undefined;
|
|
23
23
|
error?: RunnerOutputError | undefined;
|
|
24
24
|
output?: JsonValue | undefined;
|
|
25
|
+
telemetryBag?: TelemetryBag | undefined;
|
|
25
26
|
};
|
|
26
27
|
Error: ApiError<'put_task_failed'>;
|
|
27
28
|
Success: never;
|
package/dist/logs/messages.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export interface OperationAction {
|
|
|
34
34
|
}
|
|
35
35
|
export interface OperationOnEvents {
|
|
36
36
|
type: 'events';
|
|
37
|
-
action: 'post_connection_creation' | 'pre_connection_deletion';
|
|
37
|
+
action: 'post_connection_creation' | 'pre_connection_deletion' | 'validate_connection';
|
|
38
38
|
}
|
|
39
39
|
export interface OperationAuth {
|
|
40
40
|
type: 'auth';
|
package/dist/persist/api.d.ts
CHANGED
|
@@ -24,6 +24,9 @@ export interface PutRecordsSuccess {
|
|
|
24
24
|
export interface DeleteRecordsSuccess {
|
|
25
25
|
nextMerging: MergingStrategy;
|
|
26
26
|
}
|
|
27
|
+
export interface DeleteOutdatedRecordsSuccess {
|
|
28
|
+
deletedKeys: string[];
|
|
29
|
+
}
|
|
27
30
|
export interface GetCursorSuccess {
|
|
28
31
|
cursor?: string;
|
|
29
32
|
}
|
package/dist/runner/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TelemetryBag } from './sdk.js';
|
|
1
2
|
export interface RunnerOutputError {
|
|
2
3
|
type: string;
|
|
3
4
|
payload: Record<string, unknown> | unknown[];
|
|
@@ -5,9 +6,8 @@ export interface RunnerOutputError {
|
|
|
5
6
|
additional_properties?: Record<string, unknown> | undefined;
|
|
6
7
|
}
|
|
7
8
|
export interface RunnerOutput {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
response?: unknown;
|
|
9
|
+
output: unknown;
|
|
10
|
+
telemetryBag: TelemetryBag;
|
|
11
11
|
}
|
|
12
12
|
export interface RunnerFlags {
|
|
13
13
|
validateActionInput: boolean;
|
package/dist/runner/sdk.d.ts
CHANGED
|
@@ -46,3 +46,7 @@ export interface NangoProps {
|
|
|
46
46
|
export interface UserLogParameters {
|
|
47
47
|
level?: 'info' | 'debug' | 'error' | 'warn' | 'http' | 'verbose' | 'silly';
|
|
48
48
|
}
|
|
49
|
+
export interface TelemetryBag extends Record<string, number> {
|
|
50
|
+
customLogs: number;
|
|
51
|
+
proxyCalls: number;
|
|
52
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DBOnEventScript } from './db.js';
|
|
2
|
-
export type OnEventType = 'post-connection-creation' | 'pre-connection-deletion';
|
|
2
|
+
export type OnEventType = 'post-connection-creation' | 'pre-connection-deletion' | 'validate-connection';
|
|
3
3
|
export interface OnEventScript {
|
|
4
4
|
id: DBOnEventScript['id'];
|
|
5
5
|
configId: DBOnEventScript['config_id'];
|
|
@@ -6,6 +6,6 @@ export interface DBOnEventScript extends Timestamps {
|
|
|
6
6
|
file_location: string;
|
|
7
7
|
version: string;
|
|
8
8
|
active: boolean;
|
|
9
|
-
event: 'POST_CONNECTION_CREATION' | 'PRE_CONNECTION_DELETION';
|
|
9
|
+
event: 'POST_CONNECTION_CREATION' | 'PRE_CONNECTION_DELETION' | 'VALIDATE_CONNECTION';
|
|
10
10
|
sdk_version: string | null;
|
|
11
11
|
}
|