@agent-deck/shared 1.1.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/constants/card-colors.d.ts +9 -0
- package/dist/constants/card-colors.d.ts.map +1 -0
- package/dist/constants/card-colors.js +15 -0
- package/dist/constants/card-colors.js.map +1 -0
- package/dist/constants/client-scope.d.ts +11 -0
- package/dist/constants/client-scope.d.ts.map +1 -0
- package/dist/constants/client-scope.js +14 -0
- package/dist/constants/client-scope.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +47 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/credential.d.ts +214 -0
- package/dist/schemas/credential.d.ts.map +1 -0
- package/dist/schemas/credential.js +93 -0
- package/dist/schemas/credential.js.map +1 -0
- package/dist/schemas/deck.d.ts +490 -0
- package/dist/schemas/deck.d.ts.map +1 -0
- package/dist/schemas/deck.js +43 -0
- package/dist/schemas/deck.js.map +1 -0
- package/dist/schemas/oauth.d.ts +81 -0
- package/dist/schemas/oauth.d.ts.map +1 -0
- package/dist/schemas/oauth.js +33 -0
- package/dist/schemas/oauth.js.map +1 -0
- package/dist/schemas/playbook.d.ts +284 -0
- package/dist/schemas/playbook.d.ts.map +1 -0
- package/dist/schemas/playbook.js +58 -0
- package/dist/schemas/playbook.js.map +1 -0
- package/dist/schemas/repo-deck.d.ts +15 -0
- package/dist/schemas/repo-deck.d.ts.map +1 -0
- package/dist/schemas/repo-deck.js +11 -0
- package/dist/schemas/repo-deck.js.map +1 -0
- package/dist/schemas/service.d.ts +413 -0
- package/dist/schemas/service.d.ts.map +1 -0
- package/dist/schemas/service.js +96 -0
- package/dist/schemas/service.js.map +1 -0
- package/dist/types/api.d.ts +31 -0
- package/dist/types/api.d.ts.map +1 -0
- package/dist/types/api.js +3 -0
- package/dist/types/api.js.map +1 -0
- package/dist/types/deck.d.ts +39 -0
- package/dist/types/deck.d.ts.map +1 -0
- package/dist/types/deck.js +3 -0
- package/dist/types/deck.js.map +1 -0
- package/dist/types/oauth.d.ts +34 -0
- package/dist/types/oauth.d.ts.map +1 -0
- package/dist/types/oauth.js +3 -0
- package/dist/types/oauth.js.map +1 -0
- package/dist/types/service.d.ts +80 -0
- package/dist/types/service.d.ts.map +1 -0
- package/dist/types/service.js +4 -0
- package/dist/types/service.js.map +1 -0
- package/dist/utils/collection-warnings.d.ts +32 -0
- package/dist/utils/collection-warnings.d.ts.map +1 -0
- package/dist/utils/collection-warnings.js +151 -0
- package/dist/utils/collection-warnings.js.map +1 -0
- package/dist/utils/credential.d.ts +12 -0
- package/dist/utils/credential.d.ts.map +1 -0
- package/dist/utils/credential.js +39 -0
- package/dist/utils/credential.js.map +1 -0
- package/dist/utils/database.d.ts +7 -0
- package/dist/utils/database.d.ts.map +1 -0
- package/dist/utils/database.js +64 -0
- package/dist/utils/database.js.map +1 -0
- package/dist/utils/id.d.ts +4 -0
- package/dist/utils/id.d.ts.map +1 -0
- package/dist/utils/id.js +17 -0
- package/dist/utils/id.js.map +1 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +24 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/playbook-dependencies.d.ts +27 -0
- package/dist/utils/playbook-dependencies.d.ts.map +1 -0
- package/dist/utils/playbook-dependencies.js +70 -0
- package/dist/utils/playbook-dependencies.js.map +1 -0
- package/dist/utils/playbook.d.ts +8 -0
- package/dist/utils/playbook.d.ts.map +1 -0
- package/dist/utils/playbook.js +26 -0
- package/dist/utils/playbook.js.map +1 -0
- package/dist/utils/validation.d.ts +6 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +31 -0
- package/dist/utils/validation.js.map +1 -0
- package/package.json +33 -0
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ServiceSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
type: z.ZodEnum<["mcp", "a2a", "local-mcp"]>;
|
|
6
|
+
url: z.ZodString;
|
|
7
|
+
health: z.ZodDefault<z.ZodEnum<["unknown", "healthy", "unhealthy"]>>;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
cardColor: z.ZodDefault<z.ZodString>;
|
|
10
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
11
|
+
disabledToolNames: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
12
|
+
isConnected: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
+
lastPing: z.ZodOptional<z.ZodString>;
|
|
14
|
+
registeredAt: z.ZodString;
|
|
15
|
+
updatedAt: z.ZodString;
|
|
16
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
17
|
+
credentialId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
oauthClientId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
oauthClientSecret: z.ZodOptional<z.ZodString>;
|
|
20
|
+
oauthAuthorizationUrl: z.ZodOptional<z.ZodString>;
|
|
21
|
+
oauthTokenUrl: z.ZodOptional<z.ZodString>;
|
|
22
|
+
oauthRedirectUri: z.ZodOptional<z.ZodString>;
|
|
23
|
+
oauthScope: z.ZodOptional<z.ZodString>;
|
|
24
|
+
oauthAccessToken: z.ZodOptional<z.ZodString>;
|
|
25
|
+
oauthRefreshToken: z.ZodOptional<z.ZodString>;
|
|
26
|
+
oauthTokenExpiresAt: z.ZodOptional<z.ZodString>;
|
|
27
|
+
oauthState: z.ZodOptional<z.ZodString>;
|
|
28
|
+
localCommand: z.ZodOptional<z.ZodString>;
|
|
29
|
+
localArgs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
30
|
+
localWorkingDir: z.ZodOptional<z.ZodString>;
|
|
31
|
+
localEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
name: string;
|
|
34
|
+
type: "mcp" | "a2a" | "local-mcp";
|
|
35
|
+
id: string;
|
|
36
|
+
updatedAt: string;
|
|
37
|
+
url: string;
|
|
38
|
+
health: "unknown" | "healthy" | "unhealthy";
|
|
39
|
+
cardColor: string;
|
|
40
|
+
disabledToolNames: string[];
|
|
41
|
+
isConnected: boolean;
|
|
42
|
+
registeredAt: string;
|
|
43
|
+
description?: string | undefined;
|
|
44
|
+
iconUrl?: string | undefined;
|
|
45
|
+
credentialId?: string | undefined;
|
|
46
|
+
lastPing?: string | undefined;
|
|
47
|
+
headers?: Record<string, string> | undefined;
|
|
48
|
+
oauthClientId?: string | undefined;
|
|
49
|
+
oauthClientSecret?: string | undefined;
|
|
50
|
+
oauthAuthorizationUrl?: string | undefined;
|
|
51
|
+
oauthTokenUrl?: string | undefined;
|
|
52
|
+
oauthRedirectUri?: string | undefined;
|
|
53
|
+
oauthScope?: string | undefined;
|
|
54
|
+
oauthAccessToken?: string | undefined;
|
|
55
|
+
oauthRefreshToken?: string | undefined;
|
|
56
|
+
oauthTokenExpiresAt?: string | undefined;
|
|
57
|
+
oauthState?: string | undefined;
|
|
58
|
+
localCommand?: string | undefined;
|
|
59
|
+
localArgs?: string[] | undefined;
|
|
60
|
+
localWorkingDir?: string | undefined;
|
|
61
|
+
localEnv?: Record<string, string> | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
name: string;
|
|
64
|
+
type: "mcp" | "a2a" | "local-mcp";
|
|
65
|
+
id: string;
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
url: string;
|
|
68
|
+
registeredAt: string;
|
|
69
|
+
description?: string | undefined;
|
|
70
|
+
iconUrl?: string | undefined;
|
|
71
|
+
credentialId?: string | undefined;
|
|
72
|
+
health?: "unknown" | "healthy" | "unhealthy" | undefined;
|
|
73
|
+
cardColor?: string | undefined;
|
|
74
|
+
disabledToolNames?: string[] | undefined;
|
|
75
|
+
isConnected?: boolean | undefined;
|
|
76
|
+
lastPing?: string | undefined;
|
|
77
|
+
headers?: Record<string, string> | undefined;
|
|
78
|
+
oauthClientId?: string | undefined;
|
|
79
|
+
oauthClientSecret?: string | undefined;
|
|
80
|
+
oauthAuthorizationUrl?: string | undefined;
|
|
81
|
+
oauthTokenUrl?: string | undefined;
|
|
82
|
+
oauthRedirectUri?: string | undefined;
|
|
83
|
+
oauthScope?: string | undefined;
|
|
84
|
+
oauthAccessToken?: string | undefined;
|
|
85
|
+
oauthRefreshToken?: string | undefined;
|
|
86
|
+
oauthTokenExpiresAt?: string | undefined;
|
|
87
|
+
oauthState?: string | undefined;
|
|
88
|
+
localCommand?: string | undefined;
|
|
89
|
+
localArgs?: string[] | undefined;
|
|
90
|
+
localWorkingDir?: string | undefined;
|
|
91
|
+
localEnv?: Record<string, string> | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
export declare const CreateServiceSchema: z.ZodObject<Omit<{
|
|
94
|
+
id: z.ZodString;
|
|
95
|
+
name: z.ZodString;
|
|
96
|
+
type: z.ZodEnum<["mcp", "a2a", "local-mcp"]>;
|
|
97
|
+
url: z.ZodString;
|
|
98
|
+
health: z.ZodDefault<z.ZodEnum<["unknown", "healthy", "unhealthy"]>>;
|
|
99
|
+
description: z.ZodOptional<z.ZodString>;
|
|
100
|
+
cardColor: z.ZodDefault<z.ZodString>;
|
|
101
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
102
|
+
disabledToolNames: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
103
|
+
isConnected: z.ZodDefault<z.ZodBoolean>;
|
|
104
|
+
lastPing: z.ZodOptional<z.ZodString>;
|
|
105
|
+
registeredAt: z.ZodString;
|
|
106
|
+
updatedAt: z.ZodString;
|
|
107
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
108
|
+
credentialId: z.ZodOptional<z.ZodString>;
|
|
109
|
+
oauthClientId: z.ZodOptional<z.ZodString>;
|
|
110
|
+
oauthClientSecret: z.ZodOptional<z.ZodString>;
|
|
111
|
+
oauthAuthorizationUrl: z.ZodOptional<z.ZodString>;
|
|
112
|
+
oauthTokenUrl: z.ZodOptional<z.ZodString>;
|
|
113
|
+
oauthRedirectUri: z.ZodOptional<z.ZodString>;
|
|
114
|
+
oauthScope: z.ZodOptional<z.ZodString>;
|
|
115
|
+
oauthAccessToken: z.ZodOptional<z.ZodString>;
|
|
116
|
+
oauthRefreshToken: z.ZodOptional<z.ZodString>;
|
|
117
|
+
oauthTokenExpiresAt: z.ZodOptional<z.ZodString>;
|
|
118
|
+
oauthState: z.ZodOptional<z.ZodString>;
|
|
119
|
+
localCommand: z.ZodOptional<z.ZodString>;
|
|
120
|
+
localArgs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
121
|
+
localWorkingDir: z.ZodOptional<z.ZodString>;
|
|
122
|
+
localEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
123
|
+
}, "id" | "updatedAt" | "health" | "disabledToolNames" | "isConnected" | "lastPing" | "registeredAt" | "oauthAccessToken" | "oauthRefreshToken" | "oauthTokenExpiresAt" | "oauthState">, "strip", z.ZodTypeAny, {
|
|
124
|
+
name: string;
|
|
125
|
+
type: "mcp" | "a2a" | "local-mcp";
|
|
126
|
+
url: string;
|
|
127
|
+
cardColor: string;
|
|
128
|
+
description?: string | undefined;
|
|
129
|
+
iconUrl?: string | undefined;
|
|
130
|
+
credentialId?: string | undefined;
|
|
131
|
+
headers?: Record<string, string> | undefined;
|
|
132
|
+
oauthClientId?: string | undefined;
|
|
133
|
+
oauthClientSecret?: string | undefined;
|
|
134
|
+
oauthAuthorizationUrl?: string | undefined;
|
|
135
|
+
oauthTokenUrl?: string | undefined;
|
|
136
|
+
oauthRedirectUri?: string | undefined;
|
|
137
|
+
oauthScope?: string | undefined;
|
|
138
|
+
localCommand?: string | undefined;
|
|
139
|
+
localArgs?: string[] | undefined;
|
|
140
|
+
localWorkingDir?: string | undefined;
|
|
141
|
+
localEnv?: Record<string, string> | undefined;
|
|
142
|
+
}, {
|
|
143
|
+
name: string;
|
|
144
|
+
type: "mcp" | "a2a" | "local-mcp";
|
|
145
|
+
url: string;
|
|
146
|
+
description?: string | undefined;
|
|
147
|
+
iconUrl?: string | undefined;
|
|
148
|
+
credentialId?: string | undefined;
|
|
149
|
+
cardColor?: string | undefined;
|
|
150
|
+
headers?: Record<string, string> | undefined;
|
|
151
|
+
oauthClientId?: string | undefined;
|
|
152
|
+
oauthClientSecret?: string | undefined;
|
|
153
|
+
oauthAuthorizationUrl?: string | undefined;
|
|
154
|
+
oauthTokenUrl?: string | undefined;
|
|
155
|
+
oauthRedirectUri?: string | undefined;
|
|
156
|
+
oauthScope?: string | undefined;
|
|
157
|
+
localCommand?: string | undefined;
|
|
158
|
+
localArgs?: string[] | undefined;
|
|
159
|
+
localWorkingDir?: string | undefined;
|
|
160
|
+
localEnv?: Record<string, string> | undefined;
|
|
161
|
+
}>;
|
|
162
|
+
export declare const UpdateServiceSchema: z.ZodObject<{
|
|
163
|
+
name: z.ZodOptional<z.ZodString>;
|
|
164
|
+
type: z.ZodOptional<z.ZodEnum<["mcp", "a2a", "local-mcp"]>>;
|
|
165
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
166
|
+
iconUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
167
|
+
credentialId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
168
|
+
url: z.ZodOptional<z.ZodString>;
|
|
169
|
+
cardColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
170
|
+
headers: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
171
|
+
oauthClientId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
172
|
+
oauthClientSecret: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
173
|
+
oauthAuthorizationUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
174
|
+
oauthTokenUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
175
|
+
oauthRedirectUri: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
176
|
+
oauthScope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
177
|
+
localCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
178
|
+
localArgs: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
179
|
+
localWorkingDir: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
180
|
+
localEnv: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
name?: string | undefined;
|
|
183
|
+
type?: "mcp" | "a2a" | "local-mcp" | undefined;
|
|
184
|
+
description?: string | undefined;
|
|
185
|
+
iconUrl?: string | undefined;
|
|
186
|
+
credentialId?: string | undefined;
|
|
187
|
+
url?: string | undefined;
|
|
188
|
+
cardColor?: string | undefined;
|
|
189
|
+
headers?: Record<string, string> | undefined;
|
|
190
|
+
oauthClientId?: string | undefined;
|
|
191
|
+
oauthClientSecret?: string | undefined;
|
|
192
|
+
oauthAuthorizationUrl?: string | undefined;
|
|
193
|
+
oauthTokenUrl?: string | undefined;
|
|
194
|
+
oauthRedirectUri?: string | undefined;
|
|
195
|
+
oauthScope?: string | undefined;
|
|
196
|
+
localCommand?: string | undefined;
|
|
197
|
+
localArgs?: string[] | undefined;
|
|
198
|
+
localWorkingDir?: string | undefined;
|
|
199
|
+
localEnv?: Record<string, string> | undefined;
|
|
200
|
+
}, {
|
|
201
|
+
name?: string | undefined;
|
|
202
|
+
type?: "mcp" | "a2a" | "local-mcp" | undefined;
|
|
203
|
+
description?: string | undefined;
|
|
204
|
+
iconUrl?: string | undefined;
|
|
205
|
+
credentialId?: string | undefined;
|
|
206
|
+
url?: string | undefined;
|
|
207
|
+
cardColor?: string | undefined;
|
|
208
|
+
headers?: Record<string, string> | undefined;
|
|
209
|
+
oauthClientId?: string | undefined;
|
|
210
|
+
oauthClientSecret?: string | undefined;
|
|
211
|
+
oauthAuthorizationUrl?: string | undefined;
|
|
212
|
+
oauthTokenUrl?: string | undefined;
|
|
213
|
+
oauthRedirectUri?: string | undefined;
|
|
214
|
+
oauthScope?: string | undefined;
|
|
215
|
+
localCommand?: string | undefined;
|
|
216
|
+
localArgs?: string[] | undefined;
|
|
217
|
+
localWorkingDir?: string | undefined;
|
|
218
|
+
localEnv?: Record<string, string> | undefined;
|
|
219
|
+
}>;
|
|
220
|
+
export declare const ServiceCallSchema: z.ZodObject<{
|
|
221
|
+
serviceId: z.ZodString;
|
|
222
|
+
toolName: z.ZodString;
|
|
223
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
serviceId: string;
|
|
226
|
+
toolName: string;
|
|
227
|
+
arguments?: Record<string, any> | undefined;
|
|
228
|
+
}, {
|
|
229
|
+
serviceId: string;
|
|
230
|
+
toolName: string;
|
|
231
|
+
arguments?: Record<string, any> | undefined;
|
|
232
|
+
}>;
|
|
233
|
+
export declare const ServiceToolSchema: z.ZodObject<{
|
|
234
|
+
name: z.ZodString;
|
|
235
|
+
description: z.ZodString;
|
|
236
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
237
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
239
|
+
name: string;
|
|
240
|
+
description: string;
|
|
241
|
+
inputSchema: Record<string, any>;
|
|
242
|
+
enabled?: boolean | undefined;
|
|
243
|
+
}, {
|
|
244
|
+
name: string;
|
|
245
|
+
description: string;
|
|
246
|
+
inputSchema: Record<string, any>;
|
|
247
|
+
enabled?: boolean | undefined;
|
|
248
|
+
}>;
|
|
249
|
+
export declare const UpdateServiceToolSettingsSchema: z.ZodObject<{
|
|
250
|
+
disabledTools: z.ZodArray<z.ZodString, "many">;
|
|
251
|
+
}, "strip", z.ZodTypeAny, {
|
|
252
|
+
disabledTools: string[];
|
|
253
|
+
}, {
|
|
254
|
+
disabledTools: string[];
|
|
255
|
+
}>;
|
|
256
|
+
export declare const ServiceCallResultSchema: z.ZodObject<{
|
|
257
|
+
success: z.ZodBoolean;
|
|
258
|
+
result: z.ZodOptional<z.ZodAny>;
|
|
259
|
+
error: z.ZodOptional<z.ZodString>;
|
|
260
|
+
serviceName: z.ZodOptional<z.ZodString>;
|
|
261
|
+
toolName: z.ZodOptional<z.ZodString>;
|
|
262
|
+
}, "strip", z.ZodTypeAny, {
|
|
263
|
+
success: boolean;
|
|
264
|
+
toolName?: string | undefined;
|
|
265
|
+
result?: any;
|
|
266
|
+
error?: string | undefined;
|
|
267
|
+
serviceName?: string | undefined;
|
|
268
|
+
}, {
|
|
269
|
+
success: boolean;
|
|
270
|
+
toolName?: string | undefined;
|
|
271
|
+
result?: any;
|
|
272
|
+
error?: string | undefined;
|
|
273
|
+
serviceName?: string | undefined;
|
|
274
|
+
}>;
|
|
275
|
+
export type Service = z.infer<typeof ServiceSchema>;
|
|
276
|
+
export type CreateServiceInput = z.infer<typeof CreateServiceSchema>;
|
|
277
|
+
export type UpdateServiceInput = z.infer<typeof UpdateServiceSchema>;
|
|
278
|
+
export type ServiceCallInput = z.infer<typeof ServiceCallSchema>;
|
|
279
|
+
export type ServiceTool = z.infer<typeof ServiceToolSchema>;
|
|
280
|
+
export type UpdateServiceToolSettingsInput = z.infer<typeof UpdateServiceToolSettingsSchema>;
|
|
281
|
+
export type ServiceCallResult = z.infer<typeof ServiceCallResultSchema>;
|
|
282
|
+
export declare const LocalMCPServerConfigSchema: z.ZodObject<{
|
|
283
|
+
command: z.ZodString;
|
|
284
|
+
args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
285
|
+
workingDir: z.ZodOptional<z.ZodString>;
|
|
286
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
command: string;
|
|
289
|
+
args: string[];
|
|
290
|
+
workingDir?: string | undefined;
|
|
291
|
+
env?: Record<string, string> | undefined;
|
|
292
|
+
}, {
|
|
293
|
+
command: string;
|
|
294
|
+
args?: string[] | undefined;
|
|
295
|
+
workingDir?: string | undefined;
|
|
296
|
+
env?: Record<string, string> | undefined;
|
|
297
|
+
}>;
|
|
298
|
+
export declare const MCPServersManifestSchema: z.ZodObject<{
|
|
299
|
+
mcpServers: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
300
|
+
command: z.ZodString;
|
|
301
|
+
args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
302
|
+
workingDir: z.ZodOptional<z.ZodString>;
|
|
303
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
304
|
+
}, "strip", z.ZodTypeAny, {
|
|
305
|
+
command: string;
|
|
306
|
+
args: string[];
|
|
307
|
+
workingDir?: string | undefined;
|
|
308
|
+
env?: Record<string, string> | undefined;
|
|
309
|
+
}, {
|
|
310
|
+
command: string;
|
|
311
|
+
args?: string[] | undefined;
|
|
312
|
+
workingDir?: string | undefined;
|
|
313
|
+
env?: Record<string, string> | undefined;
|
|
314
|
+
}>>;
|
|
315
|
+
}, "strip", z.ZodTypeAny, {
|
|
316
|
+
mcpServers: Record<string, {
|
|
317
|
+
command: string;
|
|
318
|
+
args: string[];
|
|
319
|
+
workingDir?: string | undefined;
|
|
320
|
+
env?: Record<string, string> | undefined;
|
|
321
|
+
}>;
|
|
322
|
+
}, {
|
|
323
|
+
mcpServers: Record<string, {
|
|
324
|
+
command: string;
|
|
325
|
+
args?: string[] | undefined;
|
|
326
|
+
workingDir?: string | undefined;
|
|
327
|
+
env?: Record<string, string> | undefined;
|
|
328
|
+
}>;
|
|
329
|
+
}>;
|
|
330
|
+
export declare const LocalMCPServerProcessSchema: z.ZodObject<{
|
|
331
|
+
id: z.ZodString;
|
|
332
|
+
serviceId: z.ZodString;
|
|
333
|
+
process: z.ZodAny;
|
|
334
|
+
isRunning: z.ZodBoolean;
|
|
335
|
+
startTime: z.ZodDate;
|
|
336
|
+
lastActivity: z.ZodDate;
|
|
337
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
338
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
339
|
+
name: z.ZodString;
|
|
340
|
+
description: z.ZodString;
|
|
341
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
342
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
343
|
+
}, "strip", z.ZodTypeAny, {
|
|
344
|
+
name: string;
|
|
345
|
+
description: string;
|
|
346
|
+
inputSchema: Record<string, any>;
|
|
347
|
+
enabled?: boolean | undefined;
|
|
348
|
+
}, {
|
|
349
|
+
name: string;
|
|
350
|
+
description: string;
|
|
351
|
+
inputSchema: Record<string, any>;
|
|
352
|
+
enabled?: boolean | undefined;
|
|
353
|
+
}>, "many">;
|
|
354
|
+
resources: z.ZodArray<z.ZodAny, "many">;
|
|
355
|
+
prompts: z.ZodArray<z.ZodString, "many">;
|
|
356
|
+
}, "strip", z.ZodTypeAny, {
|
|
357
|
+
tools: {
|
|
358
|
+
name: string;
|
|
359
|
+
description: string;
|
|
360
|
+
inputSchema: Record<string, any>;
|
|
361
|
+
enabled?: boolean | undefined;
|
|
362
|
+
}[];
|
|
363
|
+
resources: any[];
|
|
364
|
+
prompts: string[];
|
|
365
|
+
}, {
|
|
366
|
+
tools: {
|
|
367
|
+
name: string;
|
|
368
|
+
description: string;
|
|
369
|
+
inputSchema: Record<string, any>;
|
|
370
|
+
enabled?: boolean | undefined;
|
|
371
|
+
}[];
|
|
372
|
+
resources: any[];
|
|
373
|
+
prompts: string[];
|
|
374
|
+
}>>;
|
|
375
|
+
}, "strip", z.ZodTypeAny, {
|
|
376
|
+
serviceId: string;
|
|
377
|
+
id: string;
|
|
378
|
+
isRunning: boolean;
|
|
379
|
+
startTime: Date;
|
|
380
|
+
lastActivity: Date;
|
|
381
|
+
process?: any;
|
|
382
|
+
capabilities?: {
|
|
383
|
+
tools: {
|
|
384
|
+
name: string;
|
|
385
|
+
description: string;
|
|
386
|
+
inputSchema: Record<string, any>;
|
|
387
|
+
enabled?: boolean | undefined;
|
|
388
|
+
}[];
|
|
389
|
+
resources: any[];
|
|
390
|
+
prompts: string[];
|
|
391
|
+
} | undefined;
|
|
392
|
+
}, {
|
|
393
|
+
serviceId: string;
|
|
394
|
+
id: string;
|
|
395
|
+
isRunning: boolean;
|
|
396
|
+
startTime: Date;
|
|
397
|
+
lastActivity: Date;
|
|
398
|
+
process?: any;
|
|
399
|
+
capabilities?: {
|
|
400
|
+
tools: {
|
|
401
|
+
name: string;
|
|
402
|
+
description: string;
|
|
403
|
+
inputSchema: Record<string, any>;
|
|
404
|
+
enabled?: boolean | undefined;
|
|
405
|
+
}[];
|
|
406
|
+
resources: any[];
|
|
407
|
+
prompts: string[];
|
|
408
|
+
} | undefined;
|
|
409
|
+
}>;
|
|
410
|
+
export type LocalMCPServerConfig = z.infer<typeof LocalMCPServerConfigSchema>;
|
|
411
|
+
export type MCPServersManifest = z.infer<typeof MCPServersManifestSchema>;
|
|
412
|
+
export type LocalMCPServerProcess = z.infer<typeof LocalMCPServerProcessSchema>;
|
|
413
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/schemas/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCxB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;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AC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LocalMCPServerProcessSchema = exports.MCPServersManifestSchema = exports.LocalMCPServerConfigSchema = exports.ServiceCallResultSchema = exports.UpdateServiceToolSettingsSchema = exports.ServiceToolSchema = exports.ServiceCallSchema = exports.UpdateServiceSchema = exports.CreateServiceSchema = exports.ServiceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ServiceSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string().uuid(),
|
|
7
|
+
name: zod_1.z.string().min(1, 'Name is required'),
|
|
8
|
+
type: zod_1.z.enum(['mcp', 'a2a', 'local-mcp']),
|
|
9
|
+
url: zod_1.z.string().url('Valid URL is required'),
|
|
10
|
+
health: zod_1.z.enum(['unknown', 'healthy', 'unhealthy']).default('unknown'),
|
|
11
|
+
description: zod_1.z.string().optional(),
|
|
12
|
+
cardColor: zod_1.z.string().regex(/^#[0-9A-F]{6}$/i, 'Valid hex color required').default('#92E4DD'),
|
|
13
|
+
iconUrl: zod_1.z.string().optional(),
|
|
14
|
+
disabledToolNames: zod_1.z.array(zod_1.z.string()).default([]),
|
|
15
|
+
isConnected: zod_1.z.boolean().default(false),
|
|
16
|
+
lastPing: zod_1.z.string().datetime().optional(),
|
|
17
|
+
registeredAt: zod_1.z.string().datetime(),
|
|
18
|
+
updatedAt: zod_1.z.string().datetime(),
|
|
19
|
+
headers: zod_1.z.record(zod_1.z.string()).optional(),
|
|
20
|
+
credentialId: zod_1.z.string().optional(),
|
|
21
|
+
// OAuth fields
|
|
22
|
+
oauthClientId: zod_1.z.string().optional(),
|
|
23
|
+
oauthClientSecret: zod_1.z.string().optional(),
|
|
24
|
+
oauthAuthorizationUrl: zod_1.z.string().url().optional(),
|
|
25
|
+
oauthTokenUrl: zod_1.z.string().url().optional(),
|
|
26
|
+
oauthRedirectUri: zod_1.z.string().url().optional(),
|
|
27
|
+
oauthScope: zod_1.z.string().optional(),
|
|
28
|
+
oauthAccessToken: zod_1.z.string().optional(),
|
|
29
|
+
oauthRefreshToken: zod_1.z.string().optional(),
|
|
30
|
+
oauthTokenExpiresAt: zod_1.z.string().datetime().optional(),
|
|
31
|
+
oauthState: zod_1.z.string().optional(),
|
|
32
|
+
// Local MCP server fields
|
|
33
|
+
localCommand: zod_1.z.string().optional(),
|
|
34
|
+
localArgs: zod_1.z.array(zod_1.z.string()).optional(),
|
|
35
|
+
localWorkingDir: zod_1.z.string().optional(),
|
|
36
|
+
localEnv: zod_1.z.record(zod_1.z.string()).optional(),
|
|
37
|
+
});
|
|
38
|
+
exports.CreateServiceSchema = exports.ServiceSchema.omit({
|
|
39
|
+
id: true,
|
|
40
|
+
health: true,
|
|
41
|
+
isConnected: true,
|
|
42
|
+
lastPing: true,
|
|
43
|
+
registeredAt: true,
|
|
44
|
+
updatedAt: true,
|
|
45
|
+
oauthAccessToken: true,
|
|
46
|
+
oauthRefreshToken: true,
|
|
47
|
+
oauthTokenExpiresAt: true,
|
|
48
|
+
oauthState: true,
|
|
49
|
+
disabledToolNames: true,
|
|
50
|
+
});
|
|
51
|
+
exports.UpdateServiceSchema = exports.CreateServiceSchema.partial();
|
|
52
|
+
exports.ServiceCallSchema = zod_1.z.object({
|
|
53
|
+
serviceId: zod_1.z.string().uuid('Valid service ID required'),
|
|
54
|
+
toolName: zod_1.z.string().min(1, 'Tool name is required'),
|
|
55
|
+
arguments: zod_1.z.record(zod_1.z.any()).optional(),
|
|
56
|
+
});
|
|
57
|
+
exports.ServiceToolSchema = zod_1.z.object({
|
|
58
|
+
name: zod_1.z.string().min(1, 'Tool name is required'),
|
|
59
|
+
description: zod_1.z.string().min(1, 'Tool description is required'),
|
|
60
|
+
inputSchema: zod_1.z.record(zod_1.z.any()),
|
|
61
|
+
enabled: zod_1.z.boolean().optional(),
|
|
62
|
+
});
|
|
63
|
+
exports.UpdateServiceToolSettingsSchema = zod_1.z.object({
|
|
64
|
+
disabledTools: zod_1.z.array(zod_1.z.string()),
|
|
65
|
+
});
|
|
66
|
+
exports.ServiceCallResultSchema = zod_1.z.object({
|
|
67
|
+
success: zod_1.z.boolean(),
|
|
68
|
+
result: zod_1.z.any().optional(),
|
|
69
|
+
error: zod_1.z.string().optional(),
|
|
70
|
+
serviceName: zod_1.z.string().optional(),
|
|
71
|
+
toolName: zod_1.z.string().optional(),
|
|
72
|
+
});
|
|
73
|
+
// Local MCP server schemas
|
|
74
|
+
exports.LocalMCPServerConfigSchema = zod_1.z.object({
|
|
75
|
+
command: zod_1.z.string().min(1, 'Command is required'),
|
|
76
|
+
args: zod_1.z.array(zod_1.z.string()).optional().default([]),
|
|
77
|
+
workingDir: zod_1.z.string().optional(),
|
|
78
|
+
env: zod_1.z.record(zod_1.z.string()).optional(),
|
|
79
|
+
});
|
|
80
|
+
exports.MCPServersManifestSchema = zod_1.z.object({
|
|
81
|
+
mcpServers: zod_1.z.record(zod_1.z.string(), exports.LocalMCPServerConfigSchema),
|
|
82
|
+
});
|
|
83
|
+
exports.LocalMCPServerProcessSchema = zod_1.z.object({
|
|
84
|
+
id: zod_1.z.string(),
|
|
85
|
+
serviceId: zod_1.z.string(),
|
|
86
|
+
process: zod_1.z.any(), // Node.js ChildProcess
|
|
87
|
+
isRunning: zod_1.z.boolean(),
|
|
88
|
+
startTime: zod_1.z.date(),
|
|
89
|
+
lastActivity: zod_1.z.date(),
|
|
90
|
+
capabilities: zod_1.z.object({
|
|
91
|
+
tools: zod_1.z.array(exports.ServiceToolSchema),
|
|
92
|
+
resources: zod_1.z.array(zod_1.z.any()),
|
|
93
|
+
prompts: zod_1.z.array(zod_1.z.string()),
|
|
94
|
+
}).optional(),
|
|
95
|
+
});
|
|
96
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/schemas/service.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC;IACzC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,uBAAuB,CAAC;IAC5C,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IACtE,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,iBAAiB,EAAE,0BAA0B,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC7F,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,iBAAiB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAClD,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACvC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QA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EAAE,OAAC,CAAC,GAAG,EAAE,EAAE,uBAAuB;IACzC,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE;IACtB,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE;IACnB,YAAY,EAAE,OAAC,CAAC,IAAI,EAAE;IACtB,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC;QACrB,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,yBAAiB,CAAC;QACjC,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,GAAG,EAAE,CAAC;QAC3B,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;KAC7B,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface ApiResponse<T = any> {
|
|
2
|
+
success: boolean;
|
|
3
|
+
data?: T;
|
|
4
|
+
error?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PaginatedResponse<T> extends ApiResponse<T[]> {
|
|
8
|
+
pagination: {
|
|
9
|
+
page: number;
|
|
10
|
+
limit: number;
|
|
11
|
+
total: number;
|
|
12
|
+
totalPages: number;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface WebSocketMessage<T = any> {
|
|
16
|
+
type: string;
|
|
17
|
+
data: T;
|
|
18
|
+
timestamp: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ServiceStatusUpdate {
|
|
21
|
+
serviceId: string;
|
|
22
|
+
isConnected: boolean;
|
|
23
|
+
lastPing?: string;
|
|
24
|
+
health: 'unknown' | 'healthy' | 'unhealthy';
|
|
25
|
+
}
|
|
26
|
+
export interface DeckUpdate {
|
|
27
|
+
deckId: string;
|
|
28
|
+
action: 'created' | 'updated' | 'deleted' | 'service_added' | 'service_removed';
|
|
29
|
+
data: any;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/types/api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,GAAG;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,CAAE,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC;IAC5D,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,CAAC;IACR,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;CAC7C;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,eAAe,GAAG,iBAAiB,CAAC;IAChF,IAAI,EAAE,GAAG,CAAC;CACX"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/types/api.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Service } from './service';
|
|
2
|
+
export interface Deck {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
services: Service[];
|
|
8
|
+
createdAt: string;
|
|
9
|
+
updatedAt: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CreateDeckInput {
|
|
12
|
+
name: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
isActive?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface UpdateDeckInput {
|
|
17
|
+
name?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
isActive?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface DeckService {
|
|
22
|
+
deckId: string;
|
|
23
|
+
serviceId: string;
|
|
24
|
+
position: number;
|
|
25
|
+
}
|
|
26
|
+
export interface AddServiceToDeckInput {
|
|
27
|
+
deckId: string;
|
|
28
|
+
serviceId: string;
|
|
29
|
+
position?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface RemoveServiceFromDeckInput {
|
|
32
|
+
deckId: string;
|
|
33
|
+
serviceId: string;
|
|
34
|
+
}
|
|
35
|
+
export interface ReorderDeckServicesInput {
|
|
36
|
+
deckId: string;
|
|
37
|
+
serviceIds: string[];
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=deck.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deck.d.ts","sourceRoot":"","sources":["../../src/types/deck.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deck.js","sourceRoot":"","sources":["../../src/types/deck.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface OAuthConfig {
|
|
2
|
+
clientId: string;
|
|
3
|
+
clientSecret: string;
|
|
4
|
+
authorizationUrl: string;
|
|
5
|
+
tokenUrl: string;
|
|
6
|
+
redirectUri: string;
|
|
7
|
+
scope: string;
|
|
8
|
+
}
|
|
9
|
+
export interface OAuthToken {
|
|
10
|
+
accessToken: string;
|
|
11
|
+
refreshToken?: string;
|
|
12
|
+
expiresAt?: string;
|
|
13
|
+
tokenType: string;
|
|
14
|
+
scope?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface OAuthDiscoveryResult {
|
|
17
|
+
hasOAuth: boolean;
|
|
18
|
+
config?: OAuthConfig;
|
|
19
|
+
error?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface OAuthFlowInput {
|
|
22
|
+
serviceId: string;
|
|
23
|
+
redirectUri: string;
|
|
24
|
+
}
|
|
25
|
+
export interface OAuthCallbackInput {
|
|
26
|
+
serviceId: string;
|
|
27
|
+
code: string;
|
|
28
|
+
state: string;
|
|
29
|
+
}
|
|
30
|
+
export interface OAuthRefreshInput {
|
|
31
|
+
serviceId: string;
|
|
32
|
+
refreshToken: string;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=oauth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/types/oauth.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth.js","sourceRoot":"","sources":["../../src/types/oauth.ts"],"names":[],"mappings":""}
|