@databasin/mcp-client 0.1.0 → 0.2.0-beta.1
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/README.md +128 -61
- package/dist/abort.d.ts +5 -0
- package/dist/abort.d.ts.map +1 -0
- package/dist/abort.js +25 -0
- package/dist/abort.js.map +1 -0
- package/dist/api-client.d.ts +49 -34
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +142 -145
- package/dist/api-client.js.map +1 -1
- package/dist/api-contract.d.ts +59 -0
- package/dist/api-contract.d.ts.map +1 -0
- package/dist/api-contract.js +47 -0
- package/dist/api-contract.js.map +1 -0
- package/dist/api-profile.d.ts +5 -0
- package/dist/api-profile.d.ts.map +1 -0
- package/dist/api-profile.js +38 -0
- package/dist/api-profile.js.map +1 -0
- package/dist/api-request.d.ts +27 -0
- package/dist/api-request.d.ts.map +1 -0
- package/dist/api-request.js +147 -0
- package/dist/api-request.js.map +1 -0
- package/dist/api-response.d.ts +9 -0
- package/dist/api-response.d.ts.map +1 -0
- package/dist/api-response.js +206 -0
- package/dist/api-response.js.map +1 -0
- package/dist/auth.d.ts +22 -11
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +71 -71
- package/dist/auth.js.map +1 -1
- package/dist/browser.d.ts +20 -1
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +19 -17
- package/dist/browser.js.map +1 -1
- package/dist/cli.d.ts +31 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +147 -67
- package/dist/cli.js.map +1 -1
- package/dist/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/dist/correlation.d.ts +6 -0
- package/dist/correlation.d.ts.map +1 -0
- package/dist/correlation.js +15 -0
- package/dist/correlation.js.map +1 -0
- package/dist/credential-store.d.ts +21 -0
- package/dist/credential-store.d.ts.map +1 -0
- package/dist/credential-store.js +46 -0
- package/dist/credential-store.js.map +1 -0
- package/dist/errors.d.ts +17 -3
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +24 -6
- package/dist/errors.js.map +1 -1
- package/dist/login-url.d.ts +18 -0
- package/dist/login-url.d.ts.map +1 -0
- package/dist/login-url.js +82 -0
- package/dist/login-url.js.map +1 -0
- package/dist/safety.d.ts +4 -0
- package/dist/safety.d.ts.map +1 -1
- package/dist/safety.js +94 -10
- package/dist/safety.js.map +1 -1
- package/dist/schemas.d.ts +326 -49
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +242 -55
- package/dist/schemas.js.map +1 -1
- package/dist/server.d.ts +2 -4
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +17 -10
- package/dist/server.js.map +1 -1
- package/dist/token-validation.d.ts +5 -0
- package/dist/token-validation.d.ts.map +1 -0
- package/dist/token-validation.js +183 -0
- package/dist/token-validation.js.map +1 -0
- package/dist/tools.d.ts +12 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +286 -75
- package/dist/tools.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +10 -6
- package/dist/mappers.d.ts +0 -56
- package/dist/mappers.d.ts.map +0 -1
- package/dist/mappers.js +0 -171
- package/dist/mappers.js.map +0 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
export { CorrelationIdSchema } from './correlation.js';
|
|
3
|
+
export declare const MAX_PROMPT_BYTES: number;
|
|
4
|
+
export declare const MAX_CONTEXT_BYTES: number;
|
|
5
|
+
export declare const MAX_AGENT_RESULT_BYTES: number;
|
|
6
|
+
export declare const ALLOWED_AGENT_MODELS: readonly ["haiku", "sonnet"];
|
|
7
|
+
export declare const AssistantAuthOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8
|
+
status: z.ZodLiteral<"pending">;
|
|
9
9
|
environment: z.ZodEnum<{
|
|
10
10
|
prod: "prod";
|
|
11
11
|
np: "np";
|
|
@@ -14,6 +14,20 @@ export declare const AssistantAuthOutputSchema: z.ZodObject<{
|
|
|
14
14
|
userCode: z.ZodOptional<z.ZodString>;
|
|
15
15
|
expiresAt: z.ZodOptional<z.ZodISODateTime>;
|
|
16
16
|
message: z.ZodString;
|
|
17
|
+
}, z.core.$strict>, ...z.ZodObject<{
|
|
18
|
+
status: z.ZodLiteral<"authenticated" | "not_authenticated" | "failed">;
|
|
19
|
+
environment: z.ZodEnum<{
|
|
20
|
+
prod: "prod";
|
|
21
|
+
np: "np";
|
|
22
|
+
}>;
|
|
23
|
+
loginUrl: z.ZodNull;
|
|
24
|
+
userCode: z.ZodOptional<z.ZodNever>;
|
|
25
|
+
expiresAt: z.ZodOptional<z.ZodNever>;
|
|
26
|
+
message: z.ZodString;
|
|
27
|
+
}, z.core.$strict>[]], "status">;
|
|
28
|
+
export declare const CapabilitiesDataSchema: z.ZodObject<{
|
|
29
|
+
capabilities: z.ZodArray<z.ZodString>;
|
|
30
|
+
tools: z.ZodArray<z.ZodString>;
|
|
17
31
|
}, z.core.$strict>;
|
|
18
32
|
export declare const ProjectSchema: z.ZodObject<{
|
|
19
33
|
id: z.ZodString;
|
|
@@ -22,12 +36,13 @@ export declare const ProjectSchema: z.ZodObject<{
|
|
|
22
36
|
}, z.core.$strict>;
|
|
23
37
|
export declare const ConnectionSchema: z.ZodObject<{
|
|
24
38
|
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
39
|
+
institutionId: z.ZodNullable<z.ZodString>;
|
|
40
|
+
name: z.ZodNullable<z.ZodString>;
|
|
41
|
+
connectorType: z.ZodNullable<z.ZodString>;
|
|
42
|
+
connectorSubType: z.ZodNullable<z.ZodString>;
|
|
43
|
+
active: z.ZodBoolean;
|
|
25
44
|
}, z.core.$strict>;
|
|
26
|
-
export declare const
|
|
27
|
-
environment: z.ZodEnum<{
|
|
28
|
-
prod: "prod";
|
|
29
|
-
np: "np";
|
|
30
|
-
}>;
|
|
45
|
+
export declare const ContextDataSchema: z.ZodObject<{
|
|
31
46
|
projects: z.ZodArray<z.ZodObject<{
|
|
32
47
|
id: z.ZodString;
|
|
33
48
|
name: z.ZodNullable<z.ZodString>;
|
|
@@ -35,13 +50,18 @@ export declare const ContextOutputSchema: z.ZodObject<{
|
|
|
35
50
|
}, z.core.$strict>>;
|
|
36
51
|
connections: z.ZodArray<z.ZodObject<{
|
|
37
52
|
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
53
|
+
institutionId: z.ZodNullable<z.ZodString>;
|
|
54
|
+
name: z.ZodNullable<z.ZodString>;
|
|
55
|
+
connectorType: z.ZodNullable<z.ZodString>;
|
|
56
|
+
connectorSubType: z.ZodNullable<z.ZodString>;
|
|
57
|
+
active: z.ZodBoolean;
|
|
38
58
|
}, z.core.$strict>>;
|
|
39
59
|
capabilities: z.ZodArray<z.ZodString>;
|
|
40
60
|
}, z.core.$strict>;
|
|
41
61
|
export declare const SearchInputSchema: z.ZodObject<{
|
|
42
62
|
q: z.ZodString;
|
|
43
|
-
|
|
44
|
-
|
|
63
|
+
projectInternalId: z.ZodOptional<z.ZodString>;
|
|
64
|
+
institutionId: z.ZodOptional<z.ZodString>;
|
|
45
65
|
types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
46
66
|
pipeline: "pipeline";
|
|
47
67
|
connector: "connector";
|
|
@@ -49,7 +69,7 @@ export declare const SearchInputSchema: z.ZodObject<{
|
|
|
49
69
|
}>>>;
|
|
50
70
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
51
71
|
}, z.core.$strict>;
|
|
52
|
-
export declare const
|
|
72
|
+
export declare const SearchDataSchema: z.ZodObject<{
|
|
53
73
|
items: z.ZodArray<z.ZodObject<{
|
|
54
74
|
id: z.ZodString;
|
|
55
75
|
type: z.ZodEnum<{
|
|
@@ -60,20 +80,20 @@ export declare const SearchOutputSchema: z.ZodObject<{
|
|
|
60
80
|
}>;
|
|
61
81
|
name: z.ZodString;
|
|
62
82
|
description: z.ZodNullable<z.ZodString>;
|
|
63
|
-
|
|
64
|
-
|
|
83
|
+
projectInternalId: z.ZodNullable<z.ZodString>;
|
|
84
|
+
institutionId: z.ZodNullable<z.ZodString>;
|
|
65
85
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
66
86
|
}, z.core.$strict>>;
|
|
67
87
|
truncated: z.ZodBoolean;
|
|
68
88
|
}, z.core.$strict>;
|
|
69
|
-
export declare const
|
|
89
|
+
export declare const SchemaLevelSchema: z.ZodEnum<{
|
|
70
90
|
catalogs: "catalogs";
|
|
71
91
|
schemas: "schemas";
|
|
72
92
|
tables: "tables";
|
|
73
93
|
columns: "columns";
|
|
74
94
|
}>;
|
|
75
|
-
export declare const
|
|
76
|
-
connectorId: z.
|
|
95
|
+
export declare const GetSchemaInputSchema: z.ZodObject<{
|
|
96
|
+
connectorId: z.ZodString;
|
|
77
97
|
level: z.ZodEnum<{
|
|
78
98
|
catalogs: "catalogs";
|
|
79
99
|
schemas: "schemas";
|
|
@@ -84,8 +104,8 @@ export declare const BrowseSchemaInputSchema: z.ZodObject<{
|
|
|
84
104
|
schema: z.ZodOptional<z.ZodString>;
|
|
85
105
|
table: z.ZodOptional<z.ZodString>;
|
|
86
106
|
}, z.core.$strict>;
|
|
87
|
-
export declare const
|
|
88
|
-
connectorId: z.
|
|
107
|
+
export declare const GetSchemaDataSchema: z.ZodObject<{
|
|
108
|
+
connectorId: z.ZodString;
|
|
89
109
|
level: z.ZodEnum<{
|
|
90
110
|
catalogs: "catalogs";
|
|
91
111
|
schemas: "schemas";
|
|
@@ -99,56 +119,313 @@ export declare const BrowseSchemaOutputSchema: z.ZodObject<{
|
|
|
99
119
|
}, z.core.$strict>>;
|
|
100
120
|
truncated: z.ZodBoolean;
|
|
101
121
|
}, z.core.$strict>;
|
|
102
|
-
export declare const
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
122
|
+
export declare const AgentRunRequestSchema: z.ZodObject<{
|
|
123
|
+
institutionId: z.ZodString;
|
|
124
|
+
projectInternalId: z.ZodOptional<z.ZodString>;
|
|
125
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
126
|
+
profile: z.ZodDefault<z.ZodLiteral<"metadata_readonly">>;
|
|
127
|
+
prompt: z.ZodString;
|
|
128
|
+
context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
129
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
130
|
+
haiku: "haiku";
|
|
131
|
+
sonnet: "sonnet";
|
|
132
|
+
}>>;
|
|
133
|
+
maxTurns: z.ZodDefault<z.ZodNumber>;
|
|
134
|
+
}, z.core.$strict>;
|
|
135
|
+
export declare const AgentRunToolInputSchema: z.ZodObject<{
|
|
136
|
+
idempotencyKey: z.ZodOptional<z.ZodUUID>;
|
|
137
|
+
institutionId: z.ZodString;
|
|
138
|
+
projectInternalId: z.ZodOptional<z.ZodString>;
|
|
139
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
140
|
+
profile: z.ZodDefault<z.ZodLiteral<"metadata_readonly">>;
|
|
141
|
+
prompt: z.ZodString;
|
|
142
|
+
context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
143
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
144
|
+
haiku: "haiku";
|
|
145
|
+
sonnet: "sonnet";
|
|
146
|
+
}>>;
|
|
147
|
+
maxTurns: z.ZodDefault<z.ZodNumber>;
|
|
148
|
+
}, z.core.$strict>;
|
|
149
|
+
export declare const AgentRunStatusSchema: z.ZodEnum<{
|
|
150
|
+
failed: "failed";
|
|
151
|
+
queued: "queued";
|
|
152
|
+
running: "running";
|
|
153
|
+
completed: "completed";
|
|
154
|
+
cancelled: "cancelled";
|
|
155
|
+
}>;
|
|
156
|
+
export declare const RunIdSchema: z.ZodUUID;
|
|
157
|
+
export declare const AgentRunResultSchema: z.ZodObject<{
|
|
158
|
+
content: z.ZodString;
|
|
159
|
+
turns: z.ZodNullable<z.ZodNumber>;
|
|
160
|
+
}, z.core.$strict>;
|
|
161
|
+
export declare const AgentRunErrorSchema: z.ZodObject<{
|
|
162
|
+
code: z.ZodString;
|
|
163
|
+
message: z.ZodString;
|
|
106
164
|
}, z.core.$strict>;
|
|
107
|
-
export declare const
|
|
108
|
-
|
|
165
|
+
export declare const AgentRunDataSchema: z.ZodObject<{
|
|
166
|
+
runId: z.ZodUUID;
|
|
167
|
+
institutionId: z.ZodString;
|
|
168
|
+
projectInternalId: z.ZodNullable<z.ZodString>;
|
|
169
|
+
connectorId: z.ZodNullable<z.ZodString>;
|
|
170
|
+
profile: z.ZodLiteral<"metadata_readonly">;
|
|
109
171
|
status: z.ZodEnum<{
|
|
110
172
|
failed: "failed";
|
|
111
|
-
unknown: "unknown";
|
|
112
173
|
queued: "queued";
|
|
113
174
|
running: "running";
|
|
114
175
|
completed: "completed";
|
|
115
176
|
cancelled: "cancelled";
|
|
116
177
|
}>;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
name: z.ZodString;
|
|
121
|
-
type: z.ZodNullable<z.ZodString>;
|
|
178
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
179
|
+
content: z.ZodString;
|
|
180
|
+
turns: z.ZodNullable<z.ZodNumber>;
|
|
122
181
|
}, z.core.$strict>>;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
182
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
183
|
+
code: z.ZodString;
|
|
184
|
+
message: z.ZodString;
|
|
185
|
+
}, z.core.$strict>>;
|
|
186
|
+
createdAt: z.ZodISODateTime;
|
|
187
|
+
updatedAt: z.ZodISODateTime;
|
|
188
|
+
}, z.core.$strict>;
|
|
189
|
+
export declare const AgentRunLookupInputSchema: z.ZodObject<{
|
|
190
|
+
runId: z.ZodUUID;
|
|
130
191
|
}, z.core.$strict>;
|
|
131
|
-
export declare const
|
|
132
|
-
|
|
133
|
-
reason: z.
|
|
192
|
+
export declare const CancelAgentRunInputSchema: z.ZodObject<{
|
|
193
|
+
runId: z.ZodUUID;
|
|
194
|
+
reason: z.ZodDefault<z.ZodEnum<{
|
|
134
195
|
user_requested: "user_requested";
|
|
135
196
|
no_longer_needed: "no_longer_needed";
|
|
136
197
|
budget_exceeded: "budget_exceeded";
|
|
137
198
|
policy: "policy";
|
|
138
199
|
}>>;
|
|
200
|
+
idempotencyKey: z.ZodOptional<z.ZodUUID>;
|
|
201
|
+
}, z.core.$strict>;
|
|
202
|
+
export declare const RunQueryInputSchema: z.ZodObject<{
|
|
203
|
+
connectorId: z.ZodString;
|
|
204
|
+
code: z.ZodString;
|
|
205
|
+
maxRows: z.ZodDefault<z.ZodNumber>;
|
|
139
206
|
}, z.core.$strict>;
|
|
140
|
-
export declare const
|
|
141
|
-
|
|
207
|
+
export declare const QueryLookupInputSchema: z.ZodObject<{
|
|
208
|
+
queryId: z.ZodString;
|
|
209
|
+
}, z.core.$strict>;
|
|
210
|
+
export declare const QueryStatusSchema: z.ZodEnum<{
|
|
211
|
+
failed: "failed";
|
|
212
|
+
queued: "queued";
|
|
213
|
+
running: "running";
|
|
214
|
+
completed: "completed";
|
|
215
|
+
cancelled: "cancelled";
|
|
216
|
+
}>;
|
|
217
|
+
export declare const QueryColumnSchema: z.ZodObject<{
|
|
218
|
+
name: z.ZodString;
|
|
219
|
+
type: z.ZodString;
|
|
220
|
+
}, z.core.$strict>;
|
|
221
|
+
export declare const QueryErrorSchema: z.ZodObject<{
|
|
222
|
+
code: z.ZodString;
|
|
223
|
+
message: z.ZodString;
|
|
224
|
+
}, z.core.$strict>;
|
|
225
|
+
type QueryCell = string | number | boolean | null | QueryCell[] | {
|
|
226
|
+
[key: string]: QueryCell;
|
|
227
|
+
};
|
|
228
|
+
export declare const QueryDataSchema: z.ZodObject<{
|
|
229
|
+
queryId: z.ZodString;
|
|
230
|
+
connectorId: z.ZodNullable<z.ZodString>;
|
|
142
231
|
status: z.ZodEnum<{
|
|
143
232
|
failed: "failed";
|
|
144
|
-
unknown: "unknown";
|
|
145
233
|
queued: "queued";
|
|
146
234
|
running: "running";
|
|
147
235
|
completed: "completed";
|
|
148
236
|
cancelled: "cancelled";
|
|
149
237
|
}>;
|
|
238
|
+
columns: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
239
|
+
name: z.ZodString;
|
|
240
|
+
type: z.ZodString;
|
|
241
|
+
}, z.core.$strict>>>;
|
|
242
|
+
data: z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodType<QueryCell, unknown, z.core.$ZodTypeInternals<QueryCell, unknown>>>>>;
|
|
243
|
+
rowCount: z.ZodNullable<z.ZodNumber>;
|
|
244
|
+
truncated: z.ZodBoolean;
|
|
245
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
246
|
+
code: z.ZodString;
|
|
247
|
+
message: z.ZodString;
|
|
248
|
+
}, z.core.$strict>>;
|
|
249
|
+
}, z.core.$strict>;
|
|
250
|
+
export declare const RunAssistantInputSchema: z.ZodObject<{
|
|
251
|
+
connectorId: z.ZodString;
|
|
252
|
+
prompt: z.ZodString;
|
|
253
|
+
context: z.ZodOptional<z.ZodString>;
|
|
254
|
+
maxTurns: z.ZodDefault<z.ZodNumber>;
|
|
255
|
+
}, z.core.$strict>;
|
|
256
|
+
export declare const AssistantStatusSchema: z.ZodEnum<{
|
|
257
|
+
failed: "failed";
|
|
258
|
+
completed: "completed";
|
|
259
|
+
incomplete: "incomplete";
|
|
260
|
+
}>;
|
|
261
|
+
export declare const AssistantErrorSchema: z.ZodObject<{
|
|
262
|
+
code: z.ZodNullable<z.ZodString>;
|
|
263
|
+
message: z.ZodString;
|
|
264
|
+
}, z.core.$strict>;
|
|
265
|
+
export declare const AssistantDataSchema: z.ZodObject<{
|
|
266
|
+
status: z.ZodEnum<{
|
|
267
|
+
failed: "failed";
|
|
268
|
+
completed: "completed";
|
|
269
|
+
incomplete: "incomplete";
|
|
270
|
+
}>;
|
|
271
|
+
text: z.ZodString;
|
|
272
|
+
turns: z.ZodNullable<z.ZodNumber>;
|
|
273
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
274
|
+
code: z.ZodNullable<z.ZodString>;
|
|
275
|
+
message: z.ZodString;
|
|
276
|
+
}, z.core.$strict>>;
|
|
277
|
+
}, z.core.$strict>;
|
|
278
|
+
export declare function successEnvelopeSchema<T extends z.ZodType>(data: T): z.ZodObject<{
|
|
279
|
+
data: T;
|
|
280
|
+
correlationId: z.ZodString;
|
|
281
|
+
}, z.core.$strict>;
|
|
282
|
+
export declare const CapabilitiesEnvelopeSchema: z.ZodObject<{
|
|
283
|
+
data: z.ZodObject<{
|
|
284
|
+
capabilities: z.ZodArray<z.ZodString>;
|
|
285
|
+
tools: z.ZodArray<z.ZodString>;
|
|
286
|
+
}, z.core.$strict>;
|
|
287
|
+
correlationId: z.ZodString;
|
|
288
|
+
}, z.core.$strict>;
|
|
289
|
+
export declare const ContextEnvelopeSchema: z.ZodObject<{
|
|
290
|
+
data: z.ZodObject<{
|
|
291
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
292
|
+
id: z.ZodString;
|
|
293
|
+
name: z.ZodNullable<z.ZodString>;
|
|
294
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
295
|
+
}, z.core.$strict>>;
|
|
296
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
297
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
298
|
+
institutionId: z.ZodNullable<z.ZodString>;
|
|
299
|
+
name: z.ZodNullable<z.ZodString>;
|
|
300
|
+
connectorType: z.ZodNullable<z.ZodString>;
|
|
301
|
+
connectorSubType: z.ZodNullable<z.ZodString>;
|
|
302
|
+
active: z.ZodBoolean;
|
|
303
|
+
}, z.core.$strict>>;
|
|
304
|
+
capabilities: z.ZodArray<z.ZodString>;
|
|
305
|
+
}, z.core.$strict>;
|
|
306
|
+
correlationId: z.ZodString;
|
|
307
|
+
}, z.core.$strict>;
|
|
308
|
+
export declare const SearchEnvelopeSchema: z.ZodObject<{
|
|
309
|
+
data: z.ZodObject<{
|
|
310
|
+
items: z.ZodArray<z.ZodObject<{
|
|
311
|
+
id: z.ZodString;
|
|
312
|
+
type: z.ZodEnum<{
|
|
313
|
+
unknown: "unknown";
|
|
314
|
+
pipeline: "pipeline";
|
|
315
|
+
connector: "connector";
|
|
316
|
+
automation: "automation";
|
|
317
|
+
}>;
|
|
318
|
+
name: z.ZodString;
|
|
319
|
+
description: z.ZodNullable<z.ZodString>;
|
|
320
|
+
projectInternalId: z.ZodNullable<z.ZodString>;
|
|
321
|
+
institutionId: z.ZodNullable<z.ZodString>;
|
|
322
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
323
|
+
}, z.core.$strict>>;
|
|
324
|
+
truncated: z.ZodBoolean;
|
|
325
|
+
}, z.core.$strict>;
|
|
326
|
+
correlationId: z.ZodString;
|
|
327
|
+
}, z.core.$strict>;
|
|
328
|
+
export declare const GetSchemaEnvelopeSchema: z.ZodObject<{
|
|
329
|
+
data: z.ZodObject<{
|
|
330
|
+
connectorId: z.ZodString;
|
|
331
|
+
level: z.ZodEnum<{
|
|
332
|
+
catalogs: "catalogs";
|
|
333
|
+
schemas: "schemas";
|
|
334
|
+
tables: "tables";
|
|
335
|
+
columns: "columns";
|
|
336
|
+
}>;
|
|
337
|
+
items: z.ZodArray<z.ZodObject<{
|
|
338
|
+
name: z.ZodString;
|
|
339
|
+
type: z.ZodNullable<z.ZodString>;
|
|
340
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
341
|
+
}, z.core.$strict>>;
|
|
342
|
+
truncated: z.ZodBoolean;
|
|
343
|
+
}, z.core.$strict>;
|
|
344
|
+
correlationId: z.ZodString;
|
|
345
|
+
}, z.core.$strict>;
|
|
346
|
+
export declare const AgentRunEnvelopeSchema: z.ZodObject<{
|
|
347
|
+
data: z.ZodObject<{
|
|
348
|
+
runId: z.ZodUUID;
|
|
349
|
+
institutionId: z.ZodString;
|
|
350
|
+
projectInternalId: z.ZodNullable<z.ZodString>;
|
|
351
|
+
connectorId: z.ZodNullable<z.ZodString>;
|
|
352
|
+
profile: z.ZodLiteral<"metadata_readonly">;
|
|
353
|
+
status: z.ZodEnum<{
|
|
354
|
+
failed: "failed";
|
|
355
|
+
queued: "queued";
|
|
356
|
+
running: "running";
|
|
357
|
+
completed: "completed";
|
|
358
|
+
cancelled: "cancelled";
|
|
359
|
+
}>;
|
|
360
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
361
|
+
content: z.ZodString;
|
|
362
|
+
turns: z.ZodNullable<z.ZodNumber>;
|
|
363
|
+
}, z.core.$strict>>;
|
|
364
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
365
|
+
code: z.ZodString;
|
|
366
|
+
message: z.ZodString;
|
|
367
|
+
}, z.core.$strict>>;
|
|
368
|
+
createdAt: z.ZodISODateTime;
|
|
369
|
+
updatedAt: z.ZodISODateTime;
|
|
370
|
+
}, z.core.$strict>;
|
|
371
|
+
correlationId: z.ZodString;
|
|
372
|
+
}, z.core.$strict>;
|
|
373
|
+
export declare const QueryEnvelopeSchema: z.ZodObject<{
|
|
374
|
+
data: z.ZodObject<{
|
|
375
|
+
queryId: z.ZodString;
|
|
376
|
+
connectorId: z.ZodNullable<z.ZodString>;
|
|
377
|
+
status: z.ZodEnum<{
|
|
378
|
+
failed: "failed";
|
|
379
|
+
queued: "queued";
|
|
380
|
+
running: "running";
|
|
381
|
+
completed: "completed";
|
|
382
|
+
cancelled: "cancelled";
|
|
383
|
+
}>;
|
|
384
|
+
columns: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
385
|
+
name: z.ZodString;
|
|
386
|
+
type: z.ZodString;
|
|
387
|
+
}, z.core.$strict>>>;
|
|
388
|
+
data: z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodType<QueryCell, unknown, z.core.$ZodTypeInternals<QueryCell, unknown>>>>>;
|
|
389
|
+
rowCount: z.ZodNullable<z.ZodNumber>;
|
|
390
|
+
truncated: z.ZodBoolean;
|
|
391
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
392
|
+
code: z.ZodString;
|
|
393
|
+
message: z.ZodString;
|
|
394
|
+
}, z.core.$strict>>;
|
|
395
|
+
}, z.core.$strict>;
|
|
396
|
+
correlationId: z.ZodString;
|
|
397
|
+
}, z.core.$strict>;
|
|
398
|
+
export declare const AssistantEnvelopeSchema: z.ZodObject<{
|
|
399
|
+
data: z.ZodObject<{
|
|
400
|
+
status: z.ZodEnum<{
|
|
401
|
+
failed: "failed";
|
|
402
|
+
completed: "completed";
|
|
403
|
+
incomplete: "incomplete";
|
|
404
|
+
}>;
|
|
405
|
+
text: z.ZodString;
|
|
406
|
+
turns: z.ZodNullable<z.ZodNumber>;
|
|
407
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
408
|
+
code: z.ZodNullable<z.ZodString>;
|
|
409
|
+
message: z.ZodString;
|
|
410
|
+
}, z.core.$strict>>;
|
|
411
|
+
}, z.core.$strict>;
|
|
412
|
+
correlationId: z.ZodString;
|
|
150
413
|
}, z.core.$strict>;
|
|
414
|
+
export type SuccessEnvelope<T> = {
|
|
415
|
+
data: T;
|
|
416
|
+
correlationId: string;
|
|
417
|
+
};
|
|
151
418
|
export type SearchInput = z.infer<typeof SearchInputSchema>;
|
|
152
|
-
export type
|
|
153
|
-
export type
|
|
419
|
+
export type GetSchemaInput = z.infer<typeof GetSchemaInputSchema>;
|
|
420
|
+
export type AgentRunRequest = z.infer<typeof AgentRunRequestSchema>;
|
|
421
|
+
export type AgentRunToolInput = z.infer<typeof AgentRunToolInputSchema>;
|
|
422
|
+
export type AgentRunData = z.infer<typeof AgentRunDataSchema>;
|
|
423
|
+
export type AgentRunEnvelope = z.infer<typeof AgentRunEnvelopeSchema>;
|
|
424
|
+
export type RunQueryInput = z.infer<typeof RunQueryInputSchema>;
|
|
425
|
+
export type QueryLookupInput = z.infer<typeof QueryLookupInputSchema>;
|
|
426
|
+
export type QueryData = z.infer<typeof QueryDataSchema>;
|
|
427
|
+
export type QueryEnvelope = z.infer<typeof QueryEnvelopeSchema>;
|
|
428
|
+
export type RunAssistantInput = z.infer<typeof RunAssistantInputSchema>;
|
|
429
|
+
export type AssistantData = z.infer<typeof AssistantDataSchema>;
|
|
430
|
+
export type AssistantEnvelope = z.infer<typeof AssistantEnvelopeSchema>;
|
|
154
431
|
//# sourceMappingURL=schemas.d.ts.map
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,eAAO,MAAM,gBAAgB,QAAY,CAAC;AAC1C,eAAO,MAAM,iBAAiB,QAAa,CAAC;AAC5C,eAAO,MAAM,sBAAsB,QAAa,CAAC;AAKjD,eAAO,MAAM,oBAAoB,8BAA+B,CAAC;AAiBjE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;gCAuBpC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;kBAGxB,CAAC;AAEZ,eAAO,MAAM,aAAa;;;;kBAIf,CAAC;AAEZ,eAAO,MAAM,gBAAgB;;;;;;;kBAOlB,CAAC;AAEZ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;kBAInB,CAAC;AAEZ,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAc5B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;kBAW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