@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.
@@ -131,12 +131,7 @@ export interface TableauCredentials extends CredentialsCommon {
131
131
  }
132
132
  export interface JwtCredentials {
133
133
  type: AuthModes['Jwt'];
134
- privateKeyId?: string;
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
  }
@@ -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;
@@ -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 Timestamps {
10
+ export interface DBEnvironment extends TimestampsAndDeletedCorrect {
11
11
  id: number;
12
12
  uuid: string;
13
13
  name: string;
@@ -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;
@@ -35,4 +35,9 @@ export interface DBPlan extends Timestamps {
35
35
  * @default false
36
36
  */
37
37
  has_otel: boolean;
38
+ /**
39
+ * Change the applied rate limit for the public API
40
+ * @default "m"
41
+ */
42
+ api_rate_limit_size: 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl';
38
43
  }
@@ -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
- headers: {
116
+ header: {
112
117
  alg: string;
118
+ typ?: string;
113
119
  };
114
120
  payload: {
115
- aud: string;
121
+ aud?: string;
122
+ iss?: string;
123
+ sub?: string;
116
124
  };
117
125
  };
118
126
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nangohq/types",
3
- "version": "0.58.4",
3
+ "version": "0.58.5",
4
4
  "description": "Types used in Nango applications",
5
5
  "type": "module",
6
6
  "typings": "dist/index.d.ts",