@nangohq/types 0.69.30 → 0.69.32

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.
@@ -28,14 +28,21 @@ export interface EndUserInput {
28
28
  tags?: Record<string, string> | undefined;
29
29
  }
30
30
  export type ConnectSessionOutput = Omit<ConnectSessionInput, 'end_user' | 'organization'> & {
31
- endUser: ApiEndUser;
31
+ endUser: ApiEndUser | null;
32
32
  isReconnecting?: boolean;
33
33
  connectUISettings: ConnectUISettings;
34
34
  };
35
+ export type PostConnectSessionsBody = ConnectSessionInput | (Omit<ConnectSessionInput, 'end_user' | 'tags'> & {
36
+ /**
37
+ * When top-level tags is provided, end_user becomes optional.
38
+ */
39
+ tags: NonNullable<ConnectSessionInput['tags']>;
40
+ end_user?: ConnectSessionInput['end_user'] | undefined;
41
+ });
35
42
  export type PostConnectSessions = Endpoint<{
36
43
  Method: 'POST';
37
44
  Path: '/connect/sessions';
38
- Body: ConnectSessionInput;
45
+ Body: PostConnectSessionsBody;
39
46
  Success: {
40
47
  data: {
41
48
  token: string;
@@ -140,5 +140,10 @@ export interface DBPlan extends Timestamps {
140
140
  * @default "runner"
141
141
  */
142
142
  on_event_function_runtime: FunctionRuntime;
143
+ /**
144
+ * Enable or disable records autopruning
145
+ * @default true
146
+ */
147
+ has_records_autopruning: boolean;
143
148
  }
144
149
  export {};
@@ -8,10 +8,14 @@ export type PostPublicTrigger = Endpoint<{
8
8
  name: string;
9
9
  variant: string;
10
10
  })[];
11
- sync_mode?: 'incremental' | 'full_refresh' | 'full_refresh_and_clear_cache' | undefined;
12
11
  provider_config_key?: string | undefined;
13
12
  connection_id?: string | undefined;
13
+ opts?: {
14
+ reset?: boolean | undefined;
15
+ emptyCache?: boolean | undefined;
16
+ } | undefined;
14
17
  full_resync?: boolean | undefined;
18
+ sync_mode?: 'incremental' | 'full_refresh' | 'full_refresh_and_clear_cache' | undefined;
15
19
  };
16
20
  Headers: {
17
21
  'provider-config-key'?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nangohq/types",
3
- "version": "0.69.30",
3
+ "version": "0.69.32",
4
4
  "description": "Types used in Nango applications",
5
5
  "type": "module",
6
6
  "typings": "dist/index.d.ts",