@nangohq/types 0.49.0 → 0.51.0

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.
@@ -51,7 +51,7 @@ export interface OperationAdmin {
51
51
  }
52
52
  export interface OperationWebhook {
53
53
  type: 'webhook';
54
- action: 'incoming' | 'forward';
54
+ action: 'incoming' | 'forward' | 'sync';
55
55
  }
56
56
  export interface OperationDeploy {
57
57
  type: 'deploy';
@@ -108,6 +108,7 @@ export interface MessageRow {
108
108
  response: {
109
109
  code: number;
110
110
  headers: Record<string, string>;
111
+ body?: unknown;
111
112
  } | null;
112
113
  meta: MessageMeta | null;
113
114
  createdAt: string;
@@ -1,12 +1,13 @@
1
1
  export interface RunnerOutputError {
2
2
  type: string;
3
- payload: Record<string, unknown>;
3
+ payload: Record<string, unknown> | unknown[];
4
4
  status: number;
5
+ additional_properties?: Record<string, unknown> | undefined;
5
6
  }
6
7
  export interface RunnerOutput {
7
8
  success: boolean;
8
9
  error: RunnerOutputError | null;
9
- response?: any;
10
+ response?: unknown;
10
11
  }
11
12
  export interface RunnerFlags {
12
13
  validateActionInput: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nangohq/types",
3
- "version": "0.49.0",
3
+ "version": "0.51.0",
4
4
  "description": "Types used in Nango applications",
5
5
  "type": "module",
6
6
  "typings": "dist/index.d.ts",