@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 {
|
package/dist/jobs/api.d.ts
CHANGED
|
@@ -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;
|
package/dist/providers/api.d.ts
CHANGED
|
@@ -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;
|
package/dist/runner/sdk.d.ts
CHANGED