@inspectr/mcplab 1.26.0 → 1.27.0
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/app/assets/index-BMHfGuzL.js +258 -0
- package/dist/app/assets/index-CVe_v-Bh.css +1 -0
- package/dist/app/index.html +2 -2
- package/dist/app-server/assistant-common.js +1 -1
- package/dist/app-server/assistant-common.js.map +1 -1
- package/dist/app-server/copilotkit-telemetry.d.ts +1 -1
- package/dist/app-server/dev-mcp.d.ts +5 -2
- package/dist/app-server/global-copilot-domain.d.ts +33 -13
- package/dist/app-server/global-copilot-mastra-route.d.ts +1 -1
- package/dist/app-server/global-copilot-mastra-runtime.d.ts +9 -3
- package/dist/app-server/global-copilot-mastra-storage.d.ts +3 -3
- package/dist/app-server/global-copilot-mastra-threads.d.ts +9 -3
- package/dist/app-server/global-copilot-mastra-tools.d.ts +54 -34
- package/dist/app-server/global-copilot-mastra.d.ts +38 -25
- package/dist/app-server/global-copilot-memory.d.ts +59 -48
- package/dist/app-server/global-copilot-threads.d.ts +8 -8
- package/dist/app-server/oauth-debugger-domain.d.ts +207 -183
- package/dist/app-server/result-assistant-domain.d.ts +81 -65
- package/dist/app-server/router.d.ts.map +1 -1
- package/dist/app-server/router.js +4 -1
- package/dist/app-server/router.js.map +1 -1
- package/dist/app-server/runs-store.d.ts +7 -0
- package/dist/app-server/runs-store.d.ts.map +1 -1
- package/dist/app-server/runs-store.js +5 -1
- package/dist/app-server/runs-store.js.map +1 -1
- package/dist/app-server/scenario-assistant-domain.d.ts +156 -127
- package/dist/app-server/scenario-assistant-domain.d.ts.map +1 -1
- package/dist/app-server/scenario-assistant-domain.js +32 -12
- package/dist/app-server/scenario-assistant-domain.js.map +1 -1
- package/dist/app-server/settings-store.d.ts +4 -4
- package/dist/app-server/store-utils.d.ts +1 -1
- package/dist/app-server/types.d.ts +25 -25
- package/dist/cli-branding.d.ts +2 -0
- package/dist/cli-branding.d.ts.map +1 -1
- package/dist/cli-branding.js +13 -0
- package/dist/cli-branding.js.map +1 -1
- package/dist/cli.js +3 -0
- package/dist/cli.js.map +1 -1
- package/package.json +4 -4
- package/dist/app/assets/index-WORUf0Lp.js +0 -258
- package/dist/app/assets/index-jX47Pkmh.css +0 -1
|
@@ -2,69 +2,80 @@ import type { StorageThreadType } from '@mastra/core/memory';
|
|
|
2
2
|
import { LibSQLStore } from '@mastra/libsql';
|
|
3
3
|
import { Memory } from '@mastra/memory';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
export declare const globalCopilotWorkingMemorySchema: z.ZodObject<
|
|
5
|
+
export declare const globalCopilotWorkingMemorySchema: z.ZodObject<
|
|
6
|
+
{
|
|
6
7
|
goal: z.ZodString;
|
|
7
|
-
constraints: z.ZodArray<z.ZodString,
|
|
8
|
-
decisions: z.ZodArray<z.ZodString,
|
|
9
|
-
followUps: z.ZodArray<z.ZodString,
|
|
10
|
-
},
|
|
8
|
+
constraints: z.ZodArray<z.ZodString, 'many'>;
|
|
9
|
+
decisions: z.ZodArray<z.ZodString, 'many'>;
|
|
10
|
+
followUps: z.ZodArray<z.ZodString, 'many'>;
|
|
11
|
+
},
|
|
12
|
+
'strict',
|
|
13
|
+
z.ZodTypeAny,
|
|
14
|
+
{
|
|
11
15
|
goal: string;
|
|
12
16
|
constraints: string[];
|
|
13
17
|
decisions: string[];
|
|
14
18
|
followUps: string[];
|
|
15
|
-
},
|
|
19
|
+
},
|
|
20
|
+
{
|
|
16
21
|
goal: string;
|
|
17
22
|
constraints: string[];
|
|
18
23
|
decisions: string[];
|
|
19
24
|
followUps: string[];
|
|
20
|
-
}
|
|
25
|
+
}
|
|
26
|
+
>;
|
|
21
27
|
export declare const GLOBAL_COPILOT_MEMORY_OPTIONS: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
28
|
+
lastMessages: number;
|
|
29
|
+
semanticRecall: false;
|
|
30
|
+
workingMemory: {
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
scope: 'thread';
|
|
33
|
+
schema: z.ZodObject<
|
|
34
|
+
{
|
|
35
|
+
goal: z.ZodString;
|
|
36
|
+
constraints: z.ZodArray<z.ZodString, 'many'>;
|
|
37
|
+
decisions: z.ZodArray<z.ZodString, 'many'>;
|
|
38
|
+
followUps: z.ZodArray<z.ZodString, 'many'>;
|
|
39
|
+
},
|
|
40
|
+
'strict',
|
|
41
|
+
z.ZodTypeAny,
|
|
42
|
+
{
|
|
43
|
+
goal: string;
|
|
44
|
+
constraints: string[];
|
|
45
|
+
decisions: string[];
|
|
46
|
+
followUps: string[];
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
goal: string;
|
|
50
|
+
constraints: string[];
|
|
51
|
+
decisions: string[];
|
|
52
|
+
followUps: string[];
|
|
53
|
+
}
|
|
54
|
+
>;
|
|
55
|
+
};
|
|
44
56
|
};
|
|
45
57
|
export declare function globalCopilotMemoryDatabasePath(workspaceRoot: string): string;
|
|
46
58
|
export type GlobalCopilotMemoryRuntime = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
59
|
+
storage: LibSQLStore;
|
|
60
|
+
memory: Memory;
|
|
61
|
+
close: () => Promise<void>;
|
|
50
62
|
};
|
|
51
63
|
export declare function createGlobalCopilotMemoryRuntime(params: {
|
|
52
|
-
|
|
64
|
+
databasePath: string;
|
|
53
65
|
}): Promise<GlobalCopilotMemoryRuntime>;
|
|
54
66
|
export declare class GlobalCopilotThreadService {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
rename(id: string, title: string): Promise<StorageThreadType>;
|
|
66
|
-
delete(id: string): Promise<void>;
|
|
67
|
-
private prune;
|
|
67
|
+
private readonly memory;
|
|
68
|
+
private readonly resourceId;
|
|
69
|
+
private readonly maxThreads;
|
|
70
|
+
constructor(memory: Memory, resourceId: string, maxThreads?: number);
|
|
71
|
+
list(): Promise<StorageThreadType[]>;
|
|
72
|
+
get(id: string): Promise<StorageThreadType>;
|
|
73
|
+
create(params: { id: string; title?: string }): Promise<StorageThreadType>;
|
|
74
|
+
rename(id: string, title: string): Promise<StorageThreadType>;
|
|
75
|
+
delete(id: string): Promise<void>;
|
|
76
|
+
private prune;
|
|
68
77
|
}
|
|
69
|
-
export declare function getGlobalCopilotMemoryRuntime(
|
|
70
|
-
|
|
78
|
+
export declare function getGlobalCopilotMemoryRuntime(
|
|
79
|
+
workspaceRoot: string
|
|
80
|
+
): Promise<GlobalCopilotMemoryRuntime>;
|
|
81
|
+
//# sourceMappingURL=global-copilot-memory.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
2
2
|
import type { AppSettings } from './types.js';
|
|
3
3
|
type RouteParams = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
req: IncomingMessage;
|
|
5
|
+
res: ServerResponse;
|
|
6
|
+
pathname: string;
|
|
7
|
+
method: string;
|
|
8
|
+
settings: AppSettings;
|
|
9
|
+
parseBody: (req: IncomingMessage) => Promise<Record<string, any>>;
|
|
10
|
+
asJson: (res: ServerResponse, status: number, body: unknown) => void;
|
|
11
11
|
};
|
|
12
12
|
export declare function handleGlobalCopilotThreadRoutes(params: RouteParams): Promise<boolean>;
|
|
13
13
|
export {};
|
|
14
|
-
//# sourceMappingURL=global-copilot-threads.d.ts.map
|
|
14
|
+
//# sourceMappingURL=global-copilot-threads.d.ts.map
|
|
@@ -1,219 +1,243 @@
|
|
|
1
1
|
import type { ServerResponse } from 'node:http';
|
|
2
2
|
import type { EvalConfig } from '@inspectr/mcplab-core';
|
|
3
|
-
type SessionStatus =
|
|
3
|
+
type SessionStatus =
|
|
4
|
+
| 'configuring'
|
|
5
|
+
| 'running'
|
|
6
|
+
| 'waiting_for_user'
|
|
7
|
+
| 'waiting_for_browser_callback'
|
|
8
|
+
| 'completed'
|
|
9
|
+
| 'error'
|
|
10
|
+
| 'stopped';
|
|
4
11
|
type RegistrationMethod = 'pre_registered' | 'dcr' | 'cimd';
|
|
5
12
|
export interface OAuthDebuggerSessionConfigInput {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
13
|
+
profile: 'latest';
|
|
14
|
+
target: {
|
|
15
|
+
serverName: string;
|
|
16
|
+
overrides?: {
|
|
17
|
+
authorizationServerMetadataUrl?: string;
|
|
18
|
+
authorizationEndpoint?: string;
|
|
19
|
+
tokenEndpoint?: string;
|
|
20
|
+
registrationEndpoint?: string;
|
|
21
|
+
cimdUrl?: string;
|
|
22
|
+
resourceBaseUrl?: string;
|
|
17
23
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
dcr?: {
|
|
26
|
-
metadata?: Record<string, unknown>;
|
|
27
|
-
tokenEndpointAuthMethod?: string;
|
|
28
|
-
};
|
|
29
|
-
cimd?: {
|
|
30
|
-
cimdUrl?: string;
|
|
31
|
-
expectedClientId?: string;
|
|
32
|
-
};
|
|
24
|
+
};
|
|
25
|
+
registrationMethod: RegistrationMethod;
|
|
26
|
+
clientConfig: {
|
|
27
|
+
preRegistered?: {
|
|
28
|
+
clientId: string;
|
|
29
|
+
clientSecret?: string;
|
|
30
|
+
tokenEndpointAuthMethod?: string;
|
|
33
31
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
resource?: string;
|
|
38
|
-
usePkce?: boolean;
|
|
39
|
-
codeChallengeMethod?: 'S256';
|
|
40
|
-
state?: string;
|
|
41
|
-
nonce?: string;
|
|
42
|
-
extraAuthParams?: Record<string, string>;
|
|
32
|
+
dcr?: {
|
|
33
|
+
metadata?: Record<string, unknown>;
|
|
34
|
+
tokenEndpointAuthMethod?: string;
|
|
43
35
|
};
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
cimd?: {
|
|
37
|
+
cimdUrl?: string;
|
|
38
|
+
expectedClientId?: string;
|
|
46
39
|
};
|
|
40
|
+
};
|
|
41
|
+
runtime: {
|
|
42
|
+
redirectMode: 'local_callback' | 'manual';
|
|
43
|
+
scopes?: string[];
|
|
44
|
+
resource?: string;
|
|
45
|
+
usePkce?: boolean;
|
|
46
|
+
codeChallengeMethod?: 'S256';
|
|
47
|
+
state?: string;
|
|
48
|
+
nonce?: string;
|
|
49
|
+
extraAuthParams?: Record<string, string>;
|
|
50
|
+
};
|
|
51
|
+
display?: {
|
|
52
|
+
showSensitiveValues?: boolean;
|
|
53
|
+
};
|
|
47
54
|
}
|
|
48
55
|
export interface OAuthNetworkExchange {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
56
|
+
id: string;
|
|
57
|
+
stepId: string;
|
|
58
|
+
kind: 'http';
|
|
59
|
+
phase: 'request' | 'response';
|
|
60
|
+
label: string;
|
|
61
|
+
method?: string;
|
|
62
|
+
url: string;
|
|
63
|
+
headers: Record<string, string>;
|
|
64
|
+
bodyText?: string;
|
|
65
|
+
status?: number;
|
|
66
|
+
durationMs?: number;
|
|
67
|
+
timestamp: string;
|
|
68
|
+
sensitiveFields?: Array<{
|
|
69
|
+
path: string;
|
|
70
|
+
type: 'token' | 'secret' | 'authorization_header';
|
|
71
|
+
}>;
|
|
65
72
|
}
|
|
66
73
|
export interface OAuthValidationFinding {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
id: string;
|
|
75
|
+
stepId: string;
|
|
76
|
+
severity: 'error' | 'warning' | 'info';
|
|
77
|
+
code: string;
|
|
78
|
+
title: string;
|
|
79
|
+
detail: string;
|
|
80
|
+
specReference?: string;
|
|
81
|
+
recommendation?: string;
|
|
75
82
|
}
|
|
76
83
|
export interface OAuthDebuggerStepState {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
id: string;
|
|
85
|
+
title: string;
|
|
86
|
+
description: string;
|
|
87
|
+
status: 'pending' | 'active' | 'completed' | 'failed' | 'skipped';
|
|
88
|
+
startedAt?: string;
|
|
89
|
+
finishedAt?: string;
|
|
90
|
+
outcomeSummary?: string;
|
|
91
|
+
teachableMoment?: string;
|
|
92
|
+
networkExchangeIds: string[];
|
|
93
|
+
validationIds: string[];
|
|
87
94
|
}
|
|
88
95
|
export interface OAuthSequenceEvent {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
id: string;
|
|
97
|
+
ts: string;
|
|
98
|
+
from: 'User' | 'Debugger' | 'Auth Server' | 'Token Endpoint' | 'MCP/Resource';
|
|
99
|
+
to: 'User' | 'Debugger' | 'Auth Server' | 'Token Endpoint' | 'MCP/Resource';
|
|
100
|
+
label: string;
|
|
101
|
+
stepId?: string;
|
|
102
|
+
networkExchangeId?: string;
|
|
96
103
|
}
|
|
97
104
|
export interface OAuthDebuggerSession {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
profile: 'latest';
|
|
104
|
-
target: OAuthDebuggerSessionConfigInput['target'];
|
|
105
|
-
registrationMethod: RegistrationMethod;
|
|
106
|
-
clientConfig: OAuthDebuggerSessionConfigInput['clientConfig'];
|
|
107
|
-
runtime: Required<Pick<OAuthDebuggerSessionConfigInput['runtime'], 'redirectMode' | 'usePkce' | 'codeChallengeMethod'>> & Omit<OAuthDebuggerSessionConfigInput['runtime'], 'redirectMode' | 'usePkce' | 'codeChallengeMethod'>;
|
|
108
|
-
display: {
|
|
109
|
-
showSensitiveValues: boolean;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
steps: OAuthDebuggerStepState[];
|
|
113
|
-
validations: OAuthValidationFinding[];
|
|
114
|
-
network: OAuthNetworkExchange[];
|
|
115
|
-
sequence: OAuthSequenceEvent[];
|
|
116
|
-
events: Array<{
|
|
117
|
-
type: string;
|
|
118
|
-
ts: string;
|
|
119
|
-
payload: Record<string, unknown>;
|
|
120
|
-
}>;
|
|
121
|
-
clients: Set<ServerResponse>;
|
|
122
|
-
abortController: AbortController;
|
|
123
|
-
serverConfig?: EvalConfig['servers'][string];
|
|
124
|
-
context: {
|
|
125
|
-
resourceMetadata?: any;
|
|
126
|
-
authServerMetadata?: any;
|
|
127
|
-
registration?: any;
|
|
128
|
-
resolvedClient?: {
|
|
129
|
-
clientId: string;
|
|
130
|
-
clientSecret?: string;
|
|
131
|
-
tokenEndpointAuthMethod?: string;
|
|
132
|
-
};
|
|
133
|
-
pkce?: {
|
|
134
|
-
verifier: string;
|
|
135
|
-
challenge: string;
|
|
136
|
-
method: 'S256';
|
|
137
|
-
};
|
|
138
|
-
authorizationRequestUrl?: string;
|
|
139
|
-
callbackResult?: {
|
|
140
|
-
rawUrl?: string;
|
|
141
|
-
code?: string;
|
|
142
|
-
state?: string;
|
|
143
|
-
error?: string;
|
|
144
|
-
errorDescription?: string;
|
|
145
|
-
issuer?: string;
|
|
146
|
-
};
|
|
147
|
-
tokenResponse?: any;
|
|
148
|
-
tokenReceivedAt?: number;
|
|
149
|
-
probeResponse?: {
|
|
150
|
-
status: number;
|
|
151
|
-
bodyText: string;
|
|
152
|
-
url: string;
|
|
153
|
-
};
|
|
154
|
-
callbackUrl?: string;
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
export interface OAuthDebuggerSessionView {
|
|
158
|
-
id: string;
|
|
159
|
-
status: SessionStatus;
|
|
160
|
-
createdAt: string;
|
|
161
|
-
updatedAt: string;
|
|
105
|
+
id: string;
|
|
106
|
+
createdAt: number;
|
|
107
|
+
updatedAt: number;
|
|
108
|
+
status: SessionStatus;
|
|
109
|
+
config: {
|
|
162
110
|
profile: 'latest';
|
|
111
|
+
target: OAuthDebuggerSessionConfigInput['target'];
|
|
163
112
|
registrationMethod: RegistrationMethod;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
113
|
+
clientConfig: OAuthDebuggerSessionConfigInput['clientConfig'];
|
|
114
|
+
runtime: Required<
|
|
115
|
+
Pick<
|
|
116
|
+
OAuthDebuggerSessionConfigInput['runtime'],
|
|
117
|
+
'redirectMode' | 'usePkce' | 'codeChallengeMethod'
|
|
118
|
+
>
|
|
119
|
+
> &
|
|
120
|
+
Omit<
|
|
121
|
+
OAuthDebuggerSessionConfigInput['runtime'],
|
|
122
|
+
'redirectMode' | 'usePkce' | 'codeChallengeMethod'
|
|
123
|
+
>;
|
|
124
|
+
display: {
|
|
125
|
+
showSensitiveValues: boolean;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
steps: OAuthDebuggerStepState[];
|
|
129
|
+
validations: OAuthValidationFinding[];
|
|
130
|
+
network: OAuthNetworkExchange[];
|
|
131
|
+
sequence: OAuthSequenceEvent[];
|
|
132
|
+
events: Array<{
|
|
133
|
+
type: string;
|
|
134
|
+
ts: string;
|
|
135
|
+
payload: Record<string, unknown>;
|
|
136
|
+
}>;
|
|
137
|
+
clients: Set<ServerResponse>;
|
|
138
|
+
abortController: AbortController;
|
|
139
|
+
serverConfig?: EvalConfig['servers'][string];
|
|
140
|
+
context: {
|
|
141
|
+
resourceMetadata?: any;
|
|
142
|
+
authServerMetadata?: any;
|
|
143
|
+
registration?: any;
|
|
144
|
+
resolvedClient?: {
|
|
145
|
+
clientId: string;
|
|
146
|
+
clientSecret?: string;
|
|
147
|
+
tokenEndpointAuthMethod?: string;
|
|
148
|
+
};
|
|
149
|
+
pkce?: {
|
|
150
|
+
verifier: string;
|
|
151
|
+
challenge: string;
|
|
152
|
+
method: 'S256';
|
|
170
153
|
};
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
154
|
+
authorizationRequestUrl?: string;
|
|
155
|
+
callbackResult?: {
|
|
156
|
+
rawUrl?: string;
|
|
157
|
+
code?: string;
|
|
158
|
+
state?: string;
|
|
159
|
+
error?: string;
|
|
160
|
+
errorDescription?: string;
|
|
161
|
+
issuer?: string;
|
|
177
162
|
};
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
tokenType?: string;
|
|
185
|
-
grantedScopes?: string[];
|
|
186
|
-
accessToken?: string;
|
|
187
|
-
accessTokenExpiresInSeconds?: number;
|
|
188
|
-
accessTokenExpiresAt?: string;
|
|
189
|
-
accessTokenValidForSeconds?: number;
|
|
190
|
-
accessTokenExpirySource?: 'expires_in' | 'jwt_exp' | 'none';
|
|
191
|
-
refreshTokenAvailable?: boolean;
|
|
163
|
+
tokenResponse?: any;
|
|
164
|
+
tokenReceivedAt?: number;
|
|
165
|
+
probeResponse?: {
|
|
166
|
+
status: number;
|
|
167
|
+
bodyText: string;
|
|
168
|
+
url: string;
|
|
192
169
|
};
|
|
170
|
+
callbackUrl?: string;
|
|
171
|
+
};
|
|
193
172
|
}
|
|
194
|
-
export
|
|
195
|
-
|
|
173
|
+
export interface OAuthDebuggerSessionView {
|
|
174
|
+
id: string;
|
|
175
|
+
status: SessionStatus;
|
|
176
|
+
createdAt: string;
|
|
177
|
+
updatedAt: string;
|
|
178
|
+
profile: 'latest';
|
|
179
|
+
registrationMethod: RegistrationMethod;
|
|
180
|
+
stepStates: OAuthDebuggerStepState[];
|
|
181
|
+
validations: OAuthValidationFinding[];
|
|
182
|
+
network: OAuthNetworkExchange[];
|
|
183
|
+
networkSummary: {
|
|
184
|
+
requestCount: number;
|
|
185
|
+
errorCount: number;
|
|
186
|
+
};
|
|
187
|
+
sequence: OAuthSequenceEvent[];
|
|
188
|
+
uiHints: {
|
|
189
|
+
nextAction?: 'start' | 'open_authorize_url' | 'paste_callback_url' | 'none';
|
|
190
|
+
authorizationUrl?: string;
|
|
191
|
+
callbackMode?: 'local_callback' | 'manual';
|
|
192
|
+
callbackUrl?: string;
|
|
193
|
+
};
|
|
194
|
+
summary?: {
|
|
195
|
+
showSensitiveValues?: boolean;
|
|
196
|
+
issuer?: string;
|
|
197
|
+
clientId?: string;
|
|
198
|
+
redirectUri?: string;
|
|
199
|
+
tokenEndpointStatus?: number;
|
|
200
|
+
tokenType?: string;
|
|
201
|
+
grantedScopes?: string[];
|
|
202
|
+
accessToken?: string;
|
|
203
|
+
accessTokenExpiresInSeconds?: number;
|
|
204
|
+
accessTokenExpiresAt?: string;
|
|
205
|
+
accessTokenValidForSeconds?: number;
|
|
206
|
+
accessTokenExpirySource?: 'expires_in' | 'jwt_exp' | 'none';
|
|
207
|
+
refreshTokenAvailable?: boolean;
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
export declare function resourceMetadataCandidates(
|
|
211
|
+
baseUrl: string,
|
|
212
|
+
preferredUrl?: string
|
|
213
|
+
): string[];
|
|
214
|
+
export declare function cleanupOAuthDebuggerSessions(
|
|
215
|
+
sessions: Map<string, OAuthDebuggerSession>,
|
|
216
|
+
now?: number
|
|
217
|
+
): void;
|
|
196
218
|
export declare function createOAuthDebuggerSession(params: {
|
|
197
|
-
|
|
198
|
-
|
|
219
|
+
config: OAuthDebuggerSessionConfigInput;
|
|
220
|
+
serverConfig?: EvalConfig['servers'][string];
|
|
199
221
|
}): OAuthDebuggerSession;
|
|
200
|
-
export declare function oauthDebuggerSessionView(
|
|
222
|
+
export declare function oauthDebuggerSessionView(
|
|
223
|
+
session: OAuthDebuggerSession
|
|
224
|
+
): OAuthDebuggerSessionView;
|
|
201
225
|
export declare function startOrResumeOAuthDebuggerSession(params: {
|
|
202
|
-
|
|
203
|
-
|
|
226
|
+
session: OAuthDebuggerSession;
|
|
227
|
+
appBaseUrl: string;
|
|
204
228
|
}): Promise<void>;
|
|
205
229
|
export declare function submitManualCallbackToSession(params: {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
230
|
+
session: OAuthDebuggerSession;
|
|
231
|
+
redirectUrl?: string;
|
|
232
|
+
code?: string;
|
|
233
|
+
state?: string;
|
|
210
234
|
}): void;
|
|
211
235
|
export declare function submitBrowserCallbackToSession(params: {
|
|
212
|
-
|
|
213
|
-
|
|
236
|
+
session: OAuthDebuggerSession;
|
|
237
|
+
rawUrl: string;
|
|
214
238
|
}): void;
|
|
215
239
|
export declare function stopOAuthDebuggerSession(session: OAuthDebuggerSession): void;
|
|
216
240
|
export declare function oauthDebuggerExportMarkdown(session: OAuthDebuggerSession): string;
|
|
217
241
|
export declare function oauthDebuggerExportRawTrace(session: OAuthDebuggerSession): string;
|
|
218
242
|
export {};
|
|
219
|
-
//# sourceMappingURL=oauth-debugger-domain.d.ts.map
|
|
243
|
+
//# sourceMappingURL=oauth-debugger-domain.d.ts.map
|