@nangohq/types 0.59.7 → 0.59.9

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.
@@ -1,8 +1,8 @@
1
- import type { JSONSchema7 } from 'json-schema';
2
- import type { Endpoint, ApiError } from '../api.js';
1
+ import type { ApiError, Endpoint } from '../api.js';
3
2
  import type { CLIDeployFlowConfig, OnEventScriptsByProvider } from './incomingFlow.js';
4
3
  import type { SyncDeploymentResult } from './index.js';
5
4
  import type { OnEventType } from '../scripts/on-events/api.js';
5
+ import type { JSONSchema7 } from 'json-schema';
6
6
  export type PostDeployConfirmation = Endpoint<{
7
7
  Method: 'POST';
8
8
  Path: '/sync/deploy/confirmation';
@@ -13,6 +13,7 @@ export type PostDeployConfirmation = Endpoint<{
13
13
  debug: boolean;
14
14
  singleDeployMode?: boolean;
15
15
  jsonSchema?: JSONSchema7 | undefined;
16
+ sdkVersion?: string | undefined;
16
17
  };
17
18
  Success: ScriptDifferences;
18
19
  }>;
@@ -27,6 +28,7 @@ export type PostDeploy = Endpoint<{
27
28
  debug: boolean;
28
29
  singleDeployMode?: boolean;
29
30
  jsonSchema?: JSONSchema7 | undefined;
31
+ sdkVersion?: string | undefined;
30
32
  };
31
33
  Success: SyncDeploymentResult[];
32
34
  }>;
@@ -44,6 +46,7 @@ export type PostDeployInternal = Endpoint<{
44
46
  debug: boolean;
45
47
  singleDeployMode?: boolean;
46
48
  jsonSchema?: JSONSchema7 | undefined;
49
+ sdkVersion?: string | undefined;
47
50
  };
48
51
  Error: ApiError<'forbidden'> | ApiError<'environment_creation_error'>;
49
52
  Success: SyncDeploymentResult[];
@@ -9,6 +9,7 @@ export interface OnEventScript {
9
9
  version: DBOnEventScript['version'];
10
10
  active: DBOnEventScript['active'];
11
11
  event: OnEventType;
12
+ sdkVersion: DBOnEventScript['sdk_version'];
12
13
  createdAt: DBOnEventScript['created_at'];
13
14
  updatedAt: DBOnEventScript['updated_at'];
14
15
  }
@@ -7,4 +7,5 @@ export interface DBOnEventScript extends Timestamps {
7
7
  version: string;
8
8
  active: boolean;
9
9
  event: 'POST_CONNECTION_CREATION' | 'PRE_CONNECTION_DELETION';
10
+ sdk_version: string | null;
10
11
  }
@@ -25,5 +25,6 @@ export interface DBSyncConfig extends TimestampsAndDeleted {
25
25
  webhook_subscriptions: string[] | null;
26
26
  enabled: boolean;
27
27
  models_json_schema: JSONSchema7 | null;
28
+ sdk_version: string | null;
28
29
  }
29
30
  export type DBSyncConfigInsert = Omit<DBSyncConfig, 'id'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nangohq/types",
3
- "version": "0.59.7",
3
+ "version": "0.59.9",
4
4
  "description": "Types used in Nango applications",
5
5
  "type": "module",
6
6
  "typings": "dist/index.d.ts",