@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.
@@ -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';
@@ -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';
@@ -79,6 +79,10 @@ export type PostPublicConnection = Endpoint<{
79
79
  type: 'APP';
80
80
  app_id: string;
81
81
  installation_id: string;
82
+ } | {
83
+ type: 'CUSTOM';
84
+ app_id: string;
85
+ installation_id: string;
82
86
  } | {
83
87
  type: 'NONE';
84
88
  };
@@ -173,6 +173,9 @@ export type PatchIntegration = Endpoint<{
173
173
  appId: string;
174
174
  appLink: string;
175
175
  privateKey: string;
176
+ } | {
177
+ authType: Extract<AuthModeType, 'MCP_OAUTH2'>;
178
+ scopes?: string | undefined;
176
179
  };
177
180
  Success: {
178
181
  data: {
@@ -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?: TelemetryBag | undefined;
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;
@@ -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
  }
@@ -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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nangohq/types",
3
- "version": "0.67.8",
3
+ "version": "0.68.1",
4
4
  "description": "Types used in Nango applications",
5
5
  "type": "module",
6
6
  "typings": "dist/index.d.ts",