@nangohq/types 0.69.35 → 0.69.37

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,6 +131,8 @@ export interface CustomAuthBody {
131
131
  }
132
132
  export interface MCPOAuth2AuthBody {
133
133
  authType: Extract<AuthModeType, 'MCP_OAUTH2'>;
134
+ clientId?: string | undefined;
135
+ clientSecret?: string | undefined;
134
136
  scopes?: string | undefined;
135
137
  }
136
138
  export interface MCPOAuth2GenericAuthBody {
@@ -1,6 +1,6 @@
1
1
  import type { ApiError, Endpoint } from '../api.js';
2
2
  import type { RunnerOutputError } from '../runner/index.js';
3
- import type { NangoProps, TelemetryBag } from '../runner/sdk.js';
3
+ import type { FunctionRuntime, NangoProps, TelemetryBag } from '../runner/sdk.js';
4
4
  import type { JsonValue } from 'type-fest';
5
5
  export type PostHeartbeat = Endpoint<{
6
6
  Method: 'POST';
@@ -23,6 +23,7 @@ export type PutTask = Endpoint<{
23
23
  error?: RunnerOutputError | undefined;
24
24
  output?: JsonValue | undefined;
25
25
  telemetryBag: TelemetryBag;
26
+ functionRuntime: FunctionRuntime;
26
27
  };
27
28
  Error: ApiError<'put_task_failed'>;
28
29
  Success: never;
@@ -39,6 +39,7 @@ export interface ApiProviderListItem {
39
39
  docs_connect?: string | undefined;
40
40
  preConfigured: boolean;
41
41
  preConfiguredScopes: string[];
42
+ clientRegistration?: 'dynamic' | 'static' | 'metadata';
42
43
  }
43
44
  export type GetProviders = Endpoint<{
44
45
  Method: 'GET';
@@ -87,6 +87,7 @@ export interface BaseProvider {
87
87
  authorization_url_fragment?: string;
88
88
  body_format?: OAuthBodyFormatType;
89
89
  require_client_certificate?: boolean;
90
+ token_request_auth_method?: 'basic' | 'custom' | 'private_key_jwt';
90
91
  }
91
92
  export interface ProviderOAuth2 extends BaseProvider {
92
93
  auth_mode: 'OAUTH2';
@@ -101,7 +102,6 @@ export interface ProviderOAuth2 extends BaseProvider {
101
102
  alternate_access_token_response_path?: string;
102
103
  refresh_url?: string;
103
104
  expires_in_unit?: 'milliseconds';
104
- token_request_auth_method?: 'basic' | 'custom';
105
105
  }
106
106
  export interface ProviderOAuth1 extends BaseProvider {
107
107
  auth_mode: 'OAUTH1';
@@ -118,9 +118,11 @@ export interface ProviderCustom extends Omit<ProviderOAuth2, 'auth_mode'> {
118
118
  APP: string;
119
119
  };
120
120
  }
121
+ export type McpOAuth2ClientRegistration = 'dynamic' | 'static' | 'metadata';
121
122
  export interface ProviderMcpOAUTH2 extends Omit<BaseProvider, 'body_format'> {
122
123
  auth_mode: 'MCP_OAUTH2';
123
124
  registration_url?: string;
125
+ client_registration: McpOAuth2ClientRegistration;
124
126
  }
125
127
  export interface ProviderMcpOAuth2Generic extends Omit<BaseProvider, 'body_format'> {
126
128
  auth_mode: 'MCP_OAUTH2_GENERIC';
@@ -178,6 +180,7 @@ export interface ProviderTwoStep extends Omit<BaseProvider, 'body_format'> {
178
180
  token_headers?: Record<string, string>;
179
181
  refresh_url?: string;
180
182
  refresh_token_params?: Record<string, string>;
183
+ refresh_token_headers?: Record<string, string>;
181
184
  token_response: {
182
185
  token: string;
183
186
  token_expiration?: string;
@@ -60,3 +60,4 @@ export interface TelemetryBag extends Record<string, number> {
60
60
  durationMs: number;
61
61
  memoryGb: number;
62
62
  }
63
+ export type FunctionRuntime = 'runner' | 'lambda';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nangohq/types",
3
- "version": "0.69.35",
3
+ "version": "0.69.37",
4
4
  "description": "Types used in Nango applications",
5
5
  "type": "module",
6
6
  "typings": "dist/index.d.ts",