@nangohq/types 0.69.36 → 0.69.38
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.
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Allowed types for checkpoint values.
|
|
3
3
|
* Only flat key-value structures are supported (no nested objects or arrays).
|
|
4
|
-
* Date values are automatically converted to ISO strings when stored.
|
|
5
4
|
*/
|
|
6
|
-
export type CheckpointValue = string | number | boolean
|
|
5
|
+
export type CheckpointValue = string | number | boolean;
|
|
7
6
|
/**
|
|
8
7
|
* A checkpoint is a flat key-value object that can be used to store
|
|
9
8
|
* progress or state during function execution.
|
|
10
|
-
* Date values are automatically converted to ISO strings when stored.
|
|
11
9
|
*
|
|
12
10
|
* @example
|
|
13
11
|
* ```typescript
|
|
14
12
|
* const checkpoint: Checkpoint = {
|
|
15
13
|
* lastProcessedPage: 5,
|
|
16
14
|
* lastCursor: "abc123",
|
|
17
|
-
* lastRunAt:
|
|
15
|
+
* lastRunAt: "2024-01-15T00:00:00Z",
|
|
18
16
|
* };
|
|
19
17
|
* ```
|
|
20
18
|
*/
|
|
@@ -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