@nangohq/types 0.67.8 → 0.68.1
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/api.d.ts +1 -0
- package/dist/billing/types.d.ts +1 -1
- package/dist/connectUISettings/db.d.ts +2 -1
- package/dist/connectUISettings/dto.d.ts +2 -5
- package/dist/connection/api/get.d.ts +4 -0
- package/dist/integration/api.d.ts +3 -0
- package/dist/jobs/api.d.ts +1 -1
- package/dist/providers/provider.d.ts +5 -1
- package/dist/runner/index.d.ts +3 -0
- package/dist/webhooks/api.d.ts +1 -0
- package/package.json +1 -1
package/dist/auth/api.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export interface AuthModes {
|
|
|
14
14
|
Bill: 'BILL';
|
|
15
15
|
TwoStep: 'TWO_STEP';
|
|
16
16
|
Signature: 'SIGNATURE';
|
|
17
|
+
MCP_OAUTH2: 'MCP_OAUTH2';
|
|
17
18
|
}
|
|
18
19
|
export type AuthModeType = AuthModes[keyof AuthModes];
|
|
19
20
|
export type AuthOperationType = 'creation' | 'override' | 'refresh' | 'unknown';
|
package/dist/billing/types.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export interface BillingPlan {
|
|
|
53
53
|
external_plan_id: string;
|
|
54
54
|
}
|
|
55
55
|
export interface BillingIngestEvent {
|
|
56
|
-
type: 'monthly_active_records' | 'billable_connections' | 'billable_actions' | 'billable_active_connections';
|
|
56
|
+
type: 'monthly_active_records' | 'billable_connections' | 'billable_actions' | 'billable_active_connections' | 'function_executions';
|
|
57
57
|
idempotencyKey: string;
|
|
58
58
|
accountId: number;
|
|
59
59
|
timestamp: Date;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { ConnectUIThemeSettings } from './dto.js';
|
|
1
|
+
import type { ConnectUIThemeSettings, Theme } from './dto.js';
|
|
2
2
|
export interface DBConnectUISettings {
|
|
3
3
|
id: number;
|
|
4
4
|
environment_id: number;
|
|
5
5
|
theme: ConnectUIThemeSettings;
|
|
6
|
+
default_theme: Theme;
|
|
6
7
|
show_watermark: boolean;
|
|
7
8
|
created_at: Date;
|
|
8
9
|
updated_at: Date;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface ConnectUISettings {
|
|
2
2
|
theme: ConnectUIThemeSettings;
|
|
3
|
+
defaultTheme: Theme;
|
|
3
4
|
showWatermark: boolean;
|
|
4
5
|
}
|
|
5
6
|
export interface ConnectUIThemeSettings {
|
|
@@ -7,10 +8,6 @@ export interface ConnectUIThemeSettings {
|
|
|
7
8
|
dark: ConnectUIColorPalette;
|
|
8
9
|
}
|
|
9
10
|
export interface ConnectUIColorPalette {
|
|
10
|
-
backgroundSurface: string;
|
|
11
|
-
backgroundElevated: string;
|
|
12
11
|
primary: string;
|
|
13
|
-
onPrimary: string;
|
|
14
|
-
textPrimary: string;
|
|
15
|
-
textSecondary: string;
|
|
16
12
|
}
|
|
13
|
+
export type Theme = 'light' | 'dark' | 'system';
|
package/dist/jobs/api.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export type PutTask = Endpoint<{
|
|
|
22
22
|
nangoProps?: NangoProps | undefined;
|
|
23
23
|
error?: RunnerOutputError | undefined;
|
|
24
24
|
output?: JsonValue | undefined;
|
|
25
|
-
telemetryBag
|
|
25
|
+
telemetryBag: TelemetryBag;
|
|
26
26
|
};
|
|
27
27
|
Error: ApiError<'put_task_failed'>;
|
|
28
28
|
Success: never;
|
|
@@ -119,6 +119,10 @@ export interface ProviderCustom extends Omit<ProviderOAuth2, 'auth_mode'> {
|
|
|
119
119
|
APP: string;
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
+
export interface ProviderMcpOAUTH2 extends Omit<BaseProvider, 'body_format'> {
|
|
123
|
+
auth_mode: 'MCP_OAUTH2';
|
|
124
|
+
registration_url?: string;
|
|
125
|
+
}
|
|
122
126
|
export interface ProviderJwt extends BaseProvider {
|
|
123
127
|
auth_mode: 'JWT';
|
|
124
128
|
signature: {
|
|
@@ -181,6 +185,6 @@ export interface ProviderSignature extends BaseProvider {
|
|
|
181
185
|
export interface ProviderApiKey extends BaseProvider {
|
|
182
186
|
auth_mode: 'API_KEY';
|
|
183
187
|
}
|
|
184
|
-
export type Provider = BaseProvider | ProviderOAuth1 | ProviderOAuth2 | ProviderJwt | ProviderTwoStep | ProviderSignature | ProviderApiKey | ProviderBill | ProviderGithubApp | ProviderAppleAppStore | ProviderCustom;
|
|
188
|
+
export type Provider = BaseProvider | ProviderOAuth1 | ProviderOAuth2 | ProviderJwt | ProviderTwoStep | ProviderSignature | ProviderApiKey | ProviderBill | ProviderGithubApp | ProviderAppleAppStore | ProviderCustom | ProviderMcpOAUTH2;
|
|
185
189
|
export type RefreshableProvider = ProviderTwoStep | ProviderJwt | ProviderSignature | ProviderOAuth2;
|
|
186
190
|
export type TestableProvider = ProviderApiKey;
|
package/dist/runner/index.d.ts
CHANGED
|
@@ -2,6 +2,9 @@ import type { TelemetryBag } from './sdk.js';
|
|
|
2
2
|
export interface RunnerOutputError {
|
|
3
3
|
type: string;
|
|
4
4
|
payload: Record<string, unknown> | unknown[];
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated useless now
|
|
7
|
+
*/
|
|
5
8
|
status: number;
|
|
6
9
|
additional_properties?: Record<string, unknown> | undefined;
|
|
7
10
|
}
|
package/dist/webhooks/api.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export interface NangoAuthWebhookBodyBase extends NangoWebhookBase {
|
|
|
47
47
|
endUser?: {
|
|
48
48
|
endUserId: string;
|
|
49
49
|
organizationId?: string | undefined;
|
|
50
|
+
tags: Record<string, string>;
|
|
50
51
|
} | undefined;
|
|
51
52
|
}
|
|
52
53
|
export interface NangoAuthWebhookBodySuccess extends NangoAuthWebhookBodyBase {
|