@anchrd/colab-sdk 0.1.28 → 0.1.30
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/connectors/connectors.d.ts +538 -0
- package/dist/connectors/connectors.js +230 -3
- package/dist/crawls/crawls.d.ts +3 -3
- package/dist/error/error.d.ts +2 -0
- package/dist/error/error.js +2 -0
- package/dist/gadgets/gadgets.d.ts +8 -6
- package/dist/gadgets/gadgets.js +9 -6
- package/dist/mcps/mcps.d.ts +4 -4
- package/dist/nodes/nodes.d.ts +2 -2
- package/dist/operators/operators.d.ts +4 -4
- package/dist/sdk.d.ts +1 -1
- package/dist/sdk.js +1 -1
- package/dist/skills/skills.d.ts +3 -3
- package/dist/versions/versions.d.ts +5 -5
- package/package.json +1 -1
|
@@ -7,10 +7,221 @@ export declare const ConnectorListInput: z.ZodObject<{
|
|
|
7
7
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
8
8
|
}, z.core.$strict>;
|
|
9
9
|
export type ConnectorListInput = z.infer<typeof ConnectorListInput>;
|
|
10
|
+
export declare const ConnectorVersionRef: z.ZodPreprocess<z.ZodUnion<readonly [z.ZodEnum<{
|
|
11
|
+
live: "live";
|
|
12
|
+
draft: "draft";
|
|
13
|
+
}>, z.ZodNumber]>, unknown>;
|
|
14
|
+
export type ConnectorVersionRef = z.infer<typeof ConnectorVersionRef>;
|
|
10
15
|
export declare const ConnectorGetInput: z.ZodObject<{
|
|
11
16
|
connectorId: z.ZodString;
|
|
17
|
+
version: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodEnum<{
|
|
18
|
+
live: "live";
|
|
19
|
+
draft: "draft";
|
|
20
|
+
}>, z.ZodNumber]>, unknown>>;
|
|
21
|
+
include: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodEnum<{
|
|
22
|
+
files: "files";
|
|
23
|
+
}>>, unknown>>;
|
|
12
24
|
}, z.core.$strict>;
|
|
13
25
|
export type ConnectorGetInput = z.infer<typeof ConnectorGetInput>;
|
|
26
|
+
export declare const ConnectorFieldName: z.ZodString;
|
|
27
|
+
export declare const ConnectorManifestField: z.ZodObject<{
|
|
28
|
+
label: z.ZodString;
|
|
29
|
+
help: z.ZodOptional<z.ZodString>;
|
|
30
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
31
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
default: z.ZodOptional<z.ZodString>;
|
|
33
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
34
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
export type ConnectorManifestField = z.infer<typeof ConnectorManifestField>;
|
|
37
|
+
export declare const ConnectorAccess: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38
|
+
kind: z.ZodLiteral<"bearer">;
|
|
39
|
+
secret: z.ZodString;
|
|
40
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
41
|
+
kind: z.ZodLiteral<"header">;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
44
|
+
secret: z.ZodString;
|
|
45
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
46
|
+
kind: z.ZodLiteral<"basic">;
|
|
47
|
+
username: z.ZodString;
|
|
48
|
+
password: z.ZodString;
|
|
49
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
50
|
+
kind: z.ZodLiteral<"query">;
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
secret: z.ZodString;
|
|
53
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
54
|
+
kind: z.ZodLiteral<"githubApp">;
|
|
55
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
56
|
+
kind: z.ZodLiteral<"none">;
|
|
57
|
+
}, z.core.$strict>], "kind">;
|
|
58
|
+
export type ConnectorAccess = z.infer<typeof ConnectorAccess>;
|
|
59
|
+
export type ConnectorAccessKind = ConnectorAccess["kind"];
|
|
60
|
+
export declare const connectorAccessKinds: readonly ["bearer", "header", "basic", "query", "githubApp", "none"];
|
|
61
|
+
export declare const ConnectorManifestTool: z.ZodObject<{
|
|
62
|
+
description: z.ZodString;
|
|
63
|
+
writes: z.ZodBoolean;
|
|
64
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
65
|
+
}, z.core.$strict>;
|
|
66
|
+
export type ConnectorManifestTool = z.infer<typeof ConnectorManifestTool>;
|
|
67
|
+
export declare const ConnectorManifest: z.ZodObject<{
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
category: z.ZodString;
|
|
71
|
+
description: z.ZodString;
|
|
72
|
+
base: z.ZodString;
|
|
73
|
+
hosts: z.ZodArray<z.ZodString>;
|
|
74
|
+
access: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
75
|
+
kind: z.ZodLiteral<"bearer">;
|
|
76
|
+
secret: z.ZodString;
|
|
77
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
78
|
+
kind: z.ZodLiteral<"header">;
|
|
79
|
+
name: z.ZodString;
|
|
80
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
81
|
+
secret: z.ZodString;
|
|
82
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
83
|
+
kind: z.ZodLiteral<"basic">;
|
|
84
|
+
username: z.ZodString;
|
|
85
|
+
password: z.ZodString;
|
|
86
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
87
|
+
kind: z.ZodLiteral<"query">;
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
secret: z.ZodString;
|
|
90
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
91
|
+
kind: z.ZodLiteral<"githubApp">;
|
|
92
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
93
|
+
kind: z.ZodLiteral<"none">;
|
|
94
|
+
}, z.core.$strict>], "kind">;
|
|
95
|
+
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
96
|
+
label: z.ZodString;
|
|
97
|
+
help: z.ZodOptional<z.ZodString>;
|
|
98
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
99
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
default: z.ZodOptional<z.ZodString>;
|
|
101
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
102
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
}, z.core.$strict>>>;
|
|
104
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
105
|
+
label: z.ZodString;
|
|
106
|
+
help: z.ZodOptional<z.ZodString>;
|
|
107
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
108
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
109
|
+
default: z.ZodOptional<z.ZodString>;
|
|
110
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
111
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
}, z.core.$strict>>>;
|
|
113
|
+
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
114
|
+
description: z.ZodString;
|
|
115
|
+
writes: z.ZodBoolean;
|
|
116
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
117
|
+
}, z.core.$strict>>>;
|
|
118
|
+
}, z.core.$strict>;
|
|
119
|
+
export type ConnectorManifest = z.infer<typeof ConnectorManifest>;
|
|
120
|
+
export declare const connectorManifestPath = "connector.json";
|
|
121
|
+
export declare const connectorCodePath = "connector.js";
|
|
122
|
+
export declare const ConnectorCreateInput: z.ZodObject<{
|
|
123
|
+
connectorId: z.ZodString;
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
description: z.ZodString;
|
|
126
|
+
category: z.ZodString;
|
|
127
|
+
base: z.ZodString;
|
|
128
|
+
access: z.ZodEnum<{
|
|
129
|
+
query: "query";
|
|
130
|
+
bearer: "bearer";
|
|
131
|
+
header: "header";
|
|
132
|
+
basic: "basic";
|
|
133
|
+
githubApp: "githubApp";
|
|
134
|
+
none: "none";
|
|
135
|
+
}>;
|
|
136
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
137
|
+
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
138
|
+
}, z.core.$strict>;
|
|
139
|
+
export type ConnectorCreateInput = z.infer<typeof ConnectorCreateInput>;
|
|
140
|
+
export declare const ConnectorUpdateInput: z.ZodObject<{
|
|
141
|
+
connectorId: z.ZodString;
|
|
142
|
+
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
|
|
143
|
+
fromVersion: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
discard: z.ZodOptional<z.ZodLiteral<true>>;
|
|
145
|
+
rev: z.ZodNumber;
|
|
146
|
+
}, z.core.$strict>;
|
|
147
|
+
export type ConnectorUpdateInput = z.infer<typeof ConnectorUpdateInput>;
|
|
148
|
+
export declare const ConnectorTestInput: z.ZodObject<{
|
|
149
|
+
connectorId: z.ZodString;
|
|
150
|
+
version: z.ZodOptional<z.ZodEnum<{
|
|
151
|
+
live: "live";
|
|
152
|
+
draft: "draft";
|
|
153
|
+
}>>;
|
|
154
|
+
connection: z.ZodOptional<z.ZodLiteral<true>>;
|
|
155
|
+
function: z.ZodOptional<z.ZodString>;
|
|
156
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
157
|
+
}, z.core.$strict>;
|
|
158
|
+
export type ConnectorTestInput = z.infer<typeof ConnectorTestInput>;
|
|
159
|
+
export declare const ConnectorPublishInput: z.ZodObject<{
|
|
160
|
+
connectorId: z.ZodString;
|
|
161
|
+
force: z.ZodOptional<z.ZodLiteral<true>>;
|
|
162
|
+
rev: z.ZodNumber;
|
|
163
|
+
}, z.core.$strict>;
|
|
164
|
+
export type ConnectorPublishInput = z.infer<typeof ConnectorPublishInput>;
|
|
165
|
+
export declare const ConnectorArchiveInput: z.ZodObject<{
|
|
166
|
+
connectorId: z.ZodString;
|
|
167
|
+
rev: z.ZodNumber;
|
|
168
|
+
}, z.core.$strict>;
|
|
169
|
+
export type ConnectorArchiveInput = z.infer<typeof ConnectorArchiveInput>;
|
|
170
|
+
export declare const ConnectorRestoreInput: z.ZodObject<{
|
|
171
|
+
connectorId: z.ZodString;
|
|
172
|
+
rev: z.ZodNumber;
|
|
173
|
+
}, z.core.$strict>;
|
|
174
|
+
export type ConnectorRestoreInput = z.infer<typeof ConnectorRestoreInput>;
|
|
175
|
+
export declare const ConnectorChange: z.ZodObject<{
|
|
176
|
+
path: z.ZodString;
|
|
177
|
+
change: z.ZodEnum<{
|
|
178
|
+
added: "added";
|
|
179
|
+
changed: "changed";
|
|
180
|
+
removed: "removed";
|
|
181
|
+
}>;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
export declare const ConnectorTestRun: z.ZodObject<{
|
|
184
|
+
version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
|
|
185
|
+
current: z.ZodBoolean;
|
|
186
|
+
status: z.ZodEnum<{
|
|
187
|
+
running: "running";
|
|
188
|
+
failed: "failed";
|
|
189
|
+
passed: "passed";
|
|
190
|
+
}>;
|
|
191
|
+
passed: z.ZodNumber;
|
|
192
|
+
failed: z.ZodNumber;
|
|
193
|
+
at: z.ZodISODateTime;
|
|
194
|
+
by: z.ZodObject<{
|
|
195
|
+
userId: z.ZodString;
|
|
196
|
+
name: z.ZodNullable<z.ZodString>;
|
|
197
|
+
kind: z.ZodNullable<z.ZodEnum<{
|
|
198
|
+
machine: "machine";
|
|
199
|
+
human: "human";
|
|
200
|
+
}>>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
durationMs: z.ZodNumber;
|
|
203
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
204
|
+
message: z.ZodString;
|
|
205
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
206
|
+
}, z.core.$strip>>;
|
|
207
|
+
tests: z.ZodArray<z.ZodObject<{
|
|
208
|
+
file: z.ZodString;
|
|
209
|
+
path: z.ZodArray<z.ZodString>;
|
|
210
|
+
name: z.ZodString;
|
|
211
|
+
status: z.ZodEnum<{
|
|
212
|
+
failed: "failed";
|
|
213
|
+
passed: "passed";
|
|
214
|
+
}>;
|
|
215
|
+
durationMs: z.ZodNumber;
|
|
216
|
+
message: z.ZodNullable<z.ZodString>;
|
|
217
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
218
|
+
file: z.ZodString;
|
|
219
|
+
line: z.ZodNumber;
|
|
220
|
+
column: z.ZodNumber;
|
|
221
|
+
}, z.core.$strip>>;
|
|
222
|
+
}, z.core.$strip>>;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
export type ConnectorTestRun = z.infer<typeof ConnectorTestRun>;
|
|
14
225
|
export declare const ConnectorField: z.ZodObject<{
|
|
15
226
|
name: z.ZodString;
|
|
16
227
|
label: z.ZodString;
|
|
@@ -52,8 +263,288 @@ export declare const Connector: z.ZodObject<{
|
|
|
52
263
|
setting: "setting";
|
|
53
264
|
}>;
|
|
54
265
|
}, z.core.$strip>>;
|
|
266
|
+
hosts: z.ZodArray<z.ZodString>;
|
|
267
|
+
access: z.ZodString;
|
|
268
|
+
live: z.ZodNullable<z.ZodObject<{
|
|
269
|
+
version: z.ZodNumber;
|
|
270
|
+
publishedAt: z.ZodISODateTime;
|
|
271
|
+
publishedBy: z.ZodNullable<z.ZodObject<{
|
|
272
|
+
userId: z.ZodString;
|
|
273
|
+
name: z.ZodNullable<z.ZodString>;
|
|
274
|
+
kind: z.ZodNullable<z.ZodEnum<{
|
|
275
|
+
machine: "machine";
|
|
276
|
+
human: "human";
|
|
277
|
+
}>>;
|
|
278
|
+
}, z.core.$strip>>;
|
|
279
|
+
}, z.core.$strip>>;
|
|
280
|
+
draft: z.ZodNullable<z.ZodObject<{
|
|
281
|
+
version: z.ZodNumber;
|
|
282
|
+
updatedAt: z.ZodISODateTime;
|
|
283
|
+
updatedBy: z.ZodNullable<z.ZodObject<{
|
|
284
|
+
userId: z.ZodString;
|
|
285
|
+
name: z.ZodNullable<z.ZodString>;
|
|
286
|
+
kind: z.ZodNullable<z.ZodEnum<{
|
|
287
|
+
machine: "machine";
|
|
288
|
+
human: "human";
|
|
289
|
+
}>>;
|
|
290
|
+
}, z.core.$strip>>;
|
|
291
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
292
|
+
path: z.ZodString;
|
|
293
|
+
change: z.ZodEnum<{
|
|
294
|
+
added: "added";
|
|
295
|
+
changed: "changed";
|
|
296
|
+
removed: "removed";
|
|
297
|
+
}>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
newTools: z.ZodArray<z.ZodObject<{
|
|
300
|
+
function: z.ZodString;
|
|
301
|
+
description: z.ZodString;
|
|
302
|
+
writes: z.ZodBoolean;
|
|
303
|
+
}, z.core.$strip>>;
|
|
304
|
+
newHosts: z.ZodArray<z.ZodString>;
|
|
305
|
+
tools: z.ZodNumber;
|
|
306
|
+
}, z.core.$strip>>;
|
|
307
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
308
|
+
rev: z.ZodNumber;
|
|
55
309
|
}, z.core.$strip>;
|
|
56
310
|
export type Connector = z.infer<typeof Connector>;
|
|
311
|
+
export declare const ConnectorDetail: z.ZodObject<{
|
|
312
|
+
connectorId: z.ZodString;
|
|
313
|
+
name: z.ZodString;
|
|
314
|
+
category: z.ZodString;
|
|
315
|
+
description: z.ZodString;
|
|
316
|
+
icon: z.ZodString;
|
|
317
|
+
catalog: z.ZodBoolean;
|
|
318
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
319
|
+
function: z.ZodString;
|
|
320
|
+
description: z.ZodString;
|
|
321
|
+
writes: z.ZodBoolean;
|
|
322
|
+
}, z.core.$strip>>;
|
|
323
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
324
|
+
name: z.ZodString;
|
|
325
|
+
label: z.ZodString;
|
|
326
|
+
help: z.ZodOptional<z.ZodString>;
|
|
327
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
328
|
+
optional: z.ZodBoolean;
|
|
329
|
+
kind: z.ZodEnum<{
|
|
330
|
+
secret: "secret";
|
|
331
|
+
setting: "setting";
|
|
332
|
+
}>;
|
|
333
|
+
}, z.core.$strip>>;
|
|
334
|
+
hosts: z.ZodArray<z.ZodString>;
|
|
335
|
+
access: z.ZodString;
|
|
336
|
+
live: z.ZodNullable<z.ZodObject<{
|
|
337
|
+
version: z.ZodNumber;
|
|
338
|
+
publishedAt: z.ZodISODateTime;
|
|
339
|
+
publishedBy: z.ZodNullable<z.ZodObject<{
|
|
340
|
+
userId: z.ZodString;
|
|
341
|
+
name: z.ZodNullable<z.ZodString>;
|
|
342
|
+
kind: z.ZodNullable<z.ZodEnum<{
|
|
343
|
+
machine: "machine";
|
|
344
|
+
human: "human";
|
|
345
|
+
}>>;
|
|
346
|
+
}, z.core.$strip>>;
|
|
347
|
+
}, z.core.$strip>>;
|
|
348
|
+
draft: z.ZodNullable<z.ZodObject<{
|
|
349
|
+
version: z.ZodNumber;
|
|
350
|
+
updatedAt: z.ZodISODateTime;
|
|
351
|
+
updatedBy: z.ZodNullable<z.ZodObject<{
|
|
352
|
+
userId: z.ZodString;
|
|
353
|
+
name: z.ZodNullable<z.ZodString>;
|
|
354
|
+
kind: z.ZodNullable<z.ZodEnum<{
|
|
355
|
+
machine: "machine";
|
|
356
|
+
human: "human";
|
|
357
|
+
}>>;
|
|
358
|
+
}, z.core.$strip>>;
|
|
359
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
360
|
+
path: z.ZodString;
|
|
361
|
+
change: z.ZodEnum<{
|
|
362
|
+
added: "added";
|
|
363
|
+
changed: "changed";
|
|
364
|
+
removed: "removed";
|
|
365
|
+
}>;
|
|
366
|
+
}, z.core.$strip>>;
|
|
367
|
+
newTools: z.ZodArray<z.ZodObject<{
|
|
368
|
+
function: z.ZodString;
|
|
369
|
+
description: z.ZodString;
|
|
370
|
+
writes: z.ZodBoolean;
|
|
371
|
+
}, z.core.$strip>>;
|
|
372
|
+
newHosts: z.ZodArray<z.ZodString>;
|
|
373
|
+
tools: z.ZodNumber;
|
|
374
|
+
}, z.core.$strip>>;
|
|
375
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
376
|
+
rev: z.ZodNumber;
|
|
377
|
+
version: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>>;
|
|
378
|
+
manifest: z.ZodNullable<z.ZodObject<{
|
|
379
|
+
id: z.ZodString;
|
|
380
|
+
name: z.ZodString;
|
|
381
|
+
category: z.ZodString;
|
|
382
|
+
description: z.ZodString;
|
|
383
|
+
base: z.ZodString;
|
|
384
|
+
hosts: z.ZodArray<z.ZodString>;
|
|
385
|
+
access: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
386
|
+
kind: z.ZodLiteral<"bearer">;
|
|
387
|
+
secret: z.ZodString;
|
|
388
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
389
|
+
kind: z.ZodLiteral<"header">;
|
|
390
|
+
name: z.ZodString;
|
|
391
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
392
|
+
secret: z.ZodString;
|
|
393
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
394
|
+
kind: z.ZodLiteral<"basic">;
|
|
395
|
+
username: z.ZodString;
|
|
396
|
+
password: z.ZodString;
|
|
397
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
398
|
+
kind: z.ZodLiteral<"query">;
|
|
399
|
+
name: z.ZodString;
|
|
400
|
+
secret: z.ZodString;
|
|
401
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
402
|
+
kind: z.ZodLiteral<"githubApp">;
|
|
403
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
404
|
+
kind: z.ZodLiteral<"none">;
|
|
405
|
+
}, z.core.$strict>], "kind">;
|
|
406
|
+
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
407
|
+
label: z.ZodString;
|
|
408
|
+
help: z.ZodOptional<z.ZodString>;
|
|
409
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
410
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
411
|
+
default: z.ZodOptional<z.ZodString>;
|
|
412
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
413
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
414
|
+
}, z.core.$strict>>>;
|
|
415
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
416
|
+
label: z.ZodString;
|
|
417
|
+
help: z.ZodOptional<z.ZodString>;
|
|
418
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
419
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
420
|
+
default: z.ZodOptional<z.ZodString>;
|
|
421
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
422
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
423
|
+
}, z.core.$strict>>>;
|
|
424
|
+
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
425
|
+
description: z.ZodString;
|
|
426
|
+
writes: z.ZodBoolean;
|
|
427
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
428
|
+
}, z.core.$strict>>>;
|
|
429
|
+
}, z.core.$strict>>;
|
|
430
|
+
files: z.ZodArray<z.ZodObject<{
|
|
431
|
+
path: z.ZodString;
|
|
432
|
+
size: z.ZodNumber;
|
|
433
|
+
content: z.ZodOptional<z.ZodString>;
|
|
434
|
+
}, z.core.$strip>>;
|
|
435
|
+
test: z.ZodNullable<z.ZodObject<{
|
|
436
|
+
version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
|
|
437
|
+
current: z.ZodBoolean;
|
|
438
|
+
status: z.ZodEnum<{
|
|
439
|
+
running: "running";
|
|
440
|
+
failed: "failed";
|
|
441
|
+
passed: "passed";
|
|
442
|
+
}>;
|
|
443
|
+
passed: z.ZodNumber;
|
|
444
|
+
failed: z.ZodNumber;
|
|
445
|
+
at: z.ZodISODateTime;
|
|
446
|
+
by: z.ZodObject<{
|
|
447
|
+
userId: z.ZodString;
|
|
448
|
+
name: z.ZodNullable<z.ZodString>;
|
|
449
|
+
kind: z.ZodNullable<z.ZodEnum<{
|
|
450
|
+
machine: "machine";
|
|
451
|
+
human: "human";
|
|
452
|
+
}>>;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
durationMs: z.ZodNumber;
|
|
455
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
456
|
+
message: z.ZodString;
|
|
457
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
458
|
+
}, z.core.$strip>>;
|
|
459
|
+
tests: z.ZodArray<z.ZodObject<{
|
|
460
|
+
file: z.ZodString;
|
|
461
|
+
path: z.ZodArray<z.ZodString>;
|
|
462
|
+
name: z.ZodString;
|
|
463
|
+
status: z.ZodEnum<{
|
|
464
|
+
failed: "failed";
|
|
465
|
+
passed: "passed";
|
|
466
|
+
}>;
|
|
467
|
+
durationMs: z.ZodNumber;
|
|
468
|
+
message: z.ZodNullable<z.ZodString>;
|
|
469
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
470
|
+
file: z.ZodString;
|
|
471
|
+
line: z.ZodNumber;
|
|
472
|
+
column: z.ZodNumber;
|
|
473
|
+
}, z.core.$strip>>;
|
|
474
|
+
}, z.core.$strip>>;
|
|
475
|
+
}, z.core.$strip>>;
|
|
476
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
477
|
+
version: z.ZodNumber;
|
|
478
|
+
createdAt: z.ZodISODateTime;
|
|
479
|
+
createdBy: z.ZodNullable<z.ZodObject<{
|
|
480
|
+
userId: z.ZodString;
|
|
481
|
+
name: z.ZodNullable<z.ZodString>;
|
|
482
|
+
kind: z.ZodNullable<z.ZodEnum<{
|
|
483
|
+
machine: "machine";
|
|
484
|
+
human: "human";
|
|
485
|
+
}>>;
|
|
486
|
+
}, z.core.$strip>>;
|
|
487
|
+
calls: z.ZodNumber;
|
|
488
|
+
errors: z.ZodNumber;
|
|
489
|
+
}, z.core.$strip>>;
|
|
490
|
+
rights: z.ZodObject<{
|
|
491
|
+
update: z.ZodBoolean;
|
|
492
|
+
publish: z.ZodBoolean;
|
|
493
|
+
}, z.core.$strip>;
|
|
494
|
+
}, z.core.$strip>;
|
|
495
|
+
export type ConnectorDetail = z.infer<typeof ConnectorDetail>;
|
|
496
|
+
export declare const ConnectorTestAnswer: z.ZodUnion<readonly [z.ZodObject<{
|
|
497
|
+
tests: z.ZodObject<{
|
|
498
|
+
version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
|
|
499
|
+
current: z.ZodBoolean;
|
|
500
|
+
status: z.ZodEnum<{
|
|
501
|
+
running: "running";
|
|
502
|
+
failed: "failed";
|
|
503
|
+
passed: "passed";
|
|
504
|
+
}>;
|
|
505
|
+
passed: z.ZodNumber;
|
|
506
|
+
failed: z.ZodNumber;
|
|
507
|
+
at: z.ZodISODateTime;
|
|
508
|
+
by: z.ZodObject<{
|
|
509
|
+
userId: z.ZodString;
|
|
510
|
+
name: z.ZodNullable<z.ZodString>;
|
|
511
|
+
kind: z.ZodNullable<z.ZodEnum<{
|
|
512
|
+
machine: "machine";
|
|
513
|
+
human: "human";
|
|
514
|
+
}>>;
|
|
515
|
+
}, z.core.$strip>;
|
|
516
|
+
durationMs: z.ZodNumber;
|
|
517
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
518
|
+
message: z.ZodString;
|
|
519
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
520
|
+
}, z.core.$strip>>;
|
|
521
|
+
tests: z.ZodArray<z.ZodObject<{
|
|
522
|
+
file: z.ZodString;
|
|
523
|
+
path: z.ZodArray<z.ZodString>;
|
|
524
|
+
name: z.ZodString;
|
|
525
|
+
status: z.ZodEnum<{
|
|
526
|
+
failed: "failed";
|
|
527
|
+
passed: "passed";
|
|
528
|
+
}>;
|
|
529
|
+
durationMs: z.ZodNumber;
|
|
530
|
+
message: z.ZodNullable<z.ZodString>;
|
|
531
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
532
|
+
file: z.ZodString;
|
|
533
|
+
line: z.ZodNumber;
|
|
534
|
+
column: z.ZodNumber;
|
|
535
|
+
}, z.core.$strip>>;
|
|
536
|
+
}, z.core.$strip>>;
|
|
537
|
+
}, z.core.$strip>;
|
|
538
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
539
|
+
connection: z.ZodObject<{
|
|
540
|
+
ok: z.ZodBoolean;
|
|
541
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
542
|
+
message: z.ZodNullable<z.ZodString>;
|
|
543
|
+
}, z.core.$strip>;
|
|
544
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
545
|
+
output: z.ZodUnknown;
|
|
546
|
+
}, z.core.$strip>]>;
|
|
547
|
+
export type ConnectorTestAnswer = z.infer<typeof ConnectorTestAnswer>;
|
|
57
548
|
export declare const ConnectorList: z.ZodObject<{
|
|
58
549
|
items: z.ZodArray<z.ZodObject<{
|
|
59
550
|
connectorId: z.ZodString;
|
|
@@ -78,6 +569,49 @@ export declare const ConnectorList: z.ZodObject<{
|
|
|
78
569
|
setting: "setting";
|
|
79
570
|
}>;
|
|
80
571
|
}, z.core.$strip>>;
|
|
572
|
+
hosts: z.ZodArray<z.ZodString>;
|
|
573
|
+
access: z.ZodString;
|
|
574
|
+
live: z.ZodNullable<z.ZodObject<{
|
|
575
|
+
version: z.ZodNumber;
|
|
576
|
+
publishedAt: z.ZodISODateTime;
|
|
577
|
+
publishedBy: z.ZodNullable<z.ZodObject<{
|
|
578
|
+
userId: z.ZodString;
|
|
579
|
+
name: z.ZodNullable<z.ZodString>;
|
|
580
|
+
kind: z.ZodNullable<z.ZodEnum<{
|
|
581
|
+
machine: "machine";
|
|
582
|
+
human: "human";
|
|
583
|
+
}>>;
|
|
584
|
+
}, z.core.$strip>>;
|
|
585
|
+
}, z.core.$strip>>;
|
|
586
|
+
draft: z.ZodNullable<z.ZodObject<{
|
|
587
|
+
version: z.ZodNumber;
|
|
588
|
+
updatedAt: z.ZodISODateTime;
|
|
589
|
+
updatedBy: z.ZodNullable<z.ZodObject<{
|
|
590
|
+
userId: z.ZodString;
|
|
591
|
+
name: z.ZodNullable<z.ZodString>;
|
|
592
|
+
kind: z.ZodNullable<z.ZodEnum<{
|
|
593
|
+
machine: "machine";
|
|
594
|
+
human: "human";
|
|
595
|
+
}>>;
|
|
596
|
+
}, z.core.$strip>>;
|
|
597
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
598
|
+
path: z.ZodString;
|
|
599
|
+
change: z.ZodEnum<{
|
|
600
|
+
added: "added";
|
|
601
|
+
changed: "changed";
|
|
602
|
+
removed: "removed";
|
|
603
|
+
}>;
|
|
604
|
+
}, z.core.$strip>>;
|
|
605
|
+
newTools: z.ZodArray<z.ZodObject<{
|
|
606
|
+
function: z.ZodString;
|
|
607
|
+
description: z.ZodString;
|
|
608
|
+
writes: z.ZodBoolean;
|
|
609
|
+
}, z.core.$strip>>;
|
|
610
|
+
newHosts: z.ZodArray<z.ZodString>;
|
|
611
|
+
tools: z.ZodNumber;
|
|
612
|
+
}, z.core.$strip>>;
|
|
613
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
614
|
+
rev: z.ZodNumber;
|
|
81
615
|
}, z.core.$strip>>;
|
|
82
616
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
83
617
|
}, z.core.$strip>;
|
|
@@ -106,6 +640,8 @@ export declare const Call: z.ZodObject<{
|
|
|
106
640
|
}>;
|
|
107
641
|
status: z.ZodNullable<z.ZodNumber>;
|
|
108
642
|
failed: z.ZodBoolean;
|
|
643
|
+
failure: z.ZodNullable<z.ZodString>;
|
|
644
|
+
version: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>>;
|
|
109
645
|
durationMs: z.ZodNumber;
|
|
110
646
|
createdAt: z.ZodISODateTime;
|
|
111
647
|
actor: z.ZodNullable<z.ZodObject<{
|
|
@@ -131,6 +667,8 @@ export declare const CallList: z.ZodObject<{
|
|
|
131
667
|
}>;
|
|
132
668
|
status: z.ZodNullable<z.ZodNumber>;
|
|
133
669
|
failed: z.ZodBoolean;
|
|
670
|
+
failure: z.ZodNullable<z.ZodString>;
|
|
671
|
+
version: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>>;
|
|
134
672
|
durationMs: z.ZodNumber;
|
|
135
673
|
createdAt: z.ZodISODateTime;
|
|
136
674
|
actor: z.ZodNullable<z.ZodObject<{
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { GadgetFile, GadgetFilePath, GadgetTestRun } from "../gadgets/gadgets.js";
|
|
2
3
|
import { idSchema } from "../ids/ids.js";
|
|
3
4
|
import { Flag, Limit } from "../list-input.js";
|
|
5
|
+
import { NodePerson } from "../nodes/nodes.js";
|
|
6
|
+
import { Rev } from "../primitives/primitives.js";
|
|
4
7
|
// The connectors' catalog and call log (#5): the inputs of `connectors_connector_list`,
|
|
5
8
|
// `connectors_connector_get` and `connectors_call_list` and the answers the UI (#7) reads.
|
|
6
9
|
// The id from a connector's code (`shopify`), never a ULID: one single word (E64).
|
|
@@ -10,7 +13,166 @@ export const ConnectorListInput = z.strictObject({
|
|
|
10
13
|
cursor: ConnectorId.optional(),
|
|
11
14
|
limit: Limit.optional(),
|
|
12
15
|
});
|
|
13
|
-
|
|
16
|
+
// Which state of a built connector (#894): live, the draft, or a published version by its number.
|
|
17
|
+
// Over REST the query string carries text, so digits become the number here.
|
|
18
|
+
export const ConnectorVersionRef = z.preprocess((value) => (typeof value === "string" && /^[1-9][0-9]{0,8}$/.test(value) ? Number(value) : value), z.union([z.enum(["live", "draft"]), z.number().int().min(1)]));
|
|
19
|
+
const ConnectorInclude = z.enum(["files"]);
|
|
20
|
+
export const ConnectorGetInput = z.strictObject({
|
|
21
|
+
connectorId: ConnectorId,
|
|
22
|
+
version: ConnectorVersionRef.optional().describe("Which state to read: live (the default; the draft for a connector never published), draft (only with the right to change it) or the number of a published version."),
|
|
23
|
+
include: z
|
|
24
|
+
.preprocess((value) => (typeof value === "string" ? value.split(",") : value), z.array(ConnectorInclude).min(1).max(1))
|
|
25
|
+
.optional()
|
|
26
|
+
.describe("files: answer the text of every file of that state, not only their paths."),
|
|
27
|
+
});
|
|
28
|
+
// ---- A connector built in Colab (#894, E149, Codebase › Connector-Format) ----
|
|
29
|
+
// The name of a setting or a secret, `GITHUB_APP_ID`: what the connection form and the vault key by.
|
|
30
|
+
export const ConnectorFieldName = z
|
|
31
|
+
.string()
|
|
32
|
+
.regex(/^[A-Z][A-Z0-9_]{0,63}$/)
|
|
33
|
+
.describe("A field's name in capitals, such as SHOP_URL or API_TOKEN.");
|
|
34
|
+
// One field of the connection form in `connector.json`.
|
|
35
|
+
export const ConnectorManifestField = z.strictObject({
|
|
36
|
+
label: z.string().min(1).max(100),
|
|
37
|
+
help: z.string().max(1000).optional(),
|
|
38
|
+
placeholder: z.string().max(200).optional(),
|
|
39
|
+
// Without it the field is required; with a `default` it is optional anyway.
|
|
40
|
+
optional: z.boolean().optional(),
|
|
41
|
+
default: z.string().max(2000).optional(),
|
|
42
|
+
// Checked when a connection is saved, in Colab: a regular expression the value matches in full.
|
|
43
|
+
pattern: z.string().max(500).optional(),
|
|
44
|
+
minLength: z.number().int().min(1).max(10_000).optional(),
|
|
45
|
+
});
|
|
46
|
+
const HeaderName = z.string().regex(/^[A-Za-z0-9-]{1,64}$/);
|
|
47
|
+
const QueryName = z.string().regex(/^[A-Za-z0-9_.-]{1,64}$/);
|
|
48
|
+
// How the bridge sets the credential on every request (#894). The code never sees it.
|
|
49
|
+
export const ConnectorAccess = z.discriminatedUnion("kind", [
|
|
50
|
+
// `Authorization: Bearer <secret>`.
|
|
51
|
+
z.strictObject({ kind: z.literal("bearer"), secret: ConnectorFieldName }),
|
|
52
|
+
// The secret in a header of the provider's choosing, with an optional prefix (`Key `).
|
|
53
|
+
z.strictObject({
|
|
54
|
+
kind: z.literal("header"),
|
|
55
|
+
name: HeaderName,
|
|
56
|
+
prefix: z.string().max(40).optional(),
|
|
57
|
+
secret: ConnectorFieldName,
|
|
58
|
+
}),
|
|
59
|
+
// HTTP basic: the user name from a setting or a secret, the password a secret.
|
|
60
|
+
z.strictObject({
|
|
61
|
+
kind: z.literal("basic"),
|
|
62
|
+
username: ConnectorFieldName,
|
|
63
|
+
password: ConnectorFieldName,
|
|
64
|
+
}),
|
|
65
|
+
// The secret as a query parameter of every request.
|
|
66
|
+
z.strictObject({ kind: z.literal("query"), name: QueryName, secret: ConnectorFieldName }),
|
|
67
|
+
// A GitHub App: the bridge signs the JWT with GITHUB_PRIVATE_KEY and buys an installation token
|
|
68
|
+
// with GITHUB_APP_ID and GITHUB_INSTALLATION_ID; the base is api.github.com.
|
|
69
|
+
z.strictObject({ kind: z.literal("githubApp") }),
|
|
70
|
+
z.strictObject({ kind: z.literal("none") }),
|
|
71
|
+
]);
|
|
72
|
+
export const connectorAccessKinds = [
|
|
73
|
+
"bearer",
|
|
74
|
+
"header",
|
|
75
|
+
"basic",
|
|
76
|
+
"query",
|
|
77
|
+
"githubApp",
|
|
78
|
+
"none",
|
|
79
|
+
];
|
|
80
|
+
export const ConnectorManifestTool = z.strictObject({
|
|
81
|
+
description: z.string().min(1).max(4000),
|
|
82
|
+
writes: z.boolean(),
|
|
83
|
+
// A JSON Schema of an object without further keys (`additionalProperties: false`).
|
|
84
|
+
input: z.record(z.string(), z.unknown()),
|
|
85
|
+
});
|
|
86
|
+
// `connector.json`. Strict although it is a file: a misspelt key must be refused, not dropped.
|
|
87
|
+
export const ConnectorManifest = z.strictObject({
|
|
88
|
+
id: ConnectorId,
|
|
89
|
+
name: z.string().min(1).max(100),
|
|
90
|
+
category: z.string().min(1).max(50),
|
|
91
|
+
description: z.string().max(500),
|
|
92
|
+
// Every request's address starts here; `{{settings.NAME}}` puts in a setting.
|
|
93
|
+
base: z.string().min(1).max(500),
|
|
94
|
+
// The only hosts the bridge lets a request reach: a host name, or `{{settings.NAME}}` for the host
|
|
95
|
+
// of a setting's address.
|
|
96
|
+
hosts: z.array(z.string().min(1).max(300)).min(1).max(20),
|
|
97
|
+
access: ConnectorAccess,
|
|
98
|
+
settings: z.record(ConnectorFieldName, ConnectorManifestField).optional(),
|
|
99
|
+
secrets: z.record(ConnectorFieldName, ConnectorManifestField).optional(),
|
|
100
|
+
// Keyed by `<resource>-<action>` (`invoice-list`); the code exports `invoiceList`.
|
|
101
|
+
tools: z.record(z.string(), ConnectorManifestTool).optional(),
|
|
102
|
+
});
|
|
103
|
+
export const connectorManifestPath = "connector.json";
|
|
104
|
+
export const connectorCodePath = "connector.js";
|
|
105
|
+
// The person behind a draft or a version, as `access` names them.
|
|
106
|
+
const ConnectorPerson = NodePerson;
|
|
107
|
+
const ConnectorFiles = z
|
|
108
|
+
.record(GadgetFilePath, z.string().describe("The file's whole text."))
|
|
109
|
+
.describe("Files by path: connector.json, connector.js, tests/*.test.js, tests/fixtures/*, icon.svg.");
|
|
110
|
+
export const ConnectorCreateInput = z.strictObject({
|
|
111
|
+
connectorId: ConnectorId.describe("One lowercase word, the first word of every tool, such as lexoffice. It cannot change later."),
|
|
112
|
+
name: z.string().trim().min(1).max(100),
|
|
113
|
+
description: z.string().trim().max(500),
|
|
114
|
+
category: z.string().trim().min(1).max(50),
|
|
115
|
+
base: z
|
|
116
|
+
.string()
|
|
117
|
+
.trim()
|
|
118
|
+
.min(1)
|
|
119
|
+
.max(500)
|
|
120
|
+
.describe("The API's address, such as https://api.lexoffice.io/v1; only its host is reachable."),
|
|
121
|
+
access: z
|
|
122
|
+
.enum(connectorAccessKinds)
|
|
123
|
+
.describe("How the credential is sent: bearer, header, basic, query, githubApp or none."),
|
|
124
|
+
icon: z
|
|
125
|
+
.string()
|
|
126
|
+
.max(200_000)
|
|
127
|
+
.optional()
|
|
128
|
+
.describe("The logo as SVG text or as a data: URL of a PNG."),
|
|
129
|
+
files: ConnectorFiles.optional().describe("Further first files of the draft. A connector.json among them replaces the one made from the fields above."),
|
|
130
|
+
});
|
|
131
|
+
export const ConnectorUpdateInput = z.strictObject({
|
|
132
|
+
connectorId: ConnectorId,
|
|
133
|
+
files: z
|
|
134
|
+
.record(GadgetFilePath, z.string().nullable())
|
|
135
|
+
.optional()
|
|
136
|
+
.describe("Files to write into the draft by path, each with its whole new text; null removes a file. Files you leave out stay. Without a draft, the draft starts from the live version."),
|
|
137
|
+
fromVersion: z
|
|
138
|
+
.number()
|
|
139
|
+
.int()
|
|
140
|
+
.min(1)
|
|
141
|
+
.optional()
|
|
142
|
+
.describe("Restore: the draft becomes the files of this published version."),
|
|
143
|
+
discard: z.literal(true).optional().describe("Throw the draft away; live stays as it is."),
|
|
144
|
+
rev: Rev,
|
|
145
|
+
});
|
|
146
|
+
export const ConnectorTestInput = z.strictObject({
|
|
147
|
+
connectorId: ConnectorId,
|
|
148
|
+
version: z
|
|
149
|
+
.enum(["live", "draft"])
|
|
150
|
+
.optional()
|
|
151
|
+
.describe("Which state: draft (the default when there is one) or live."),
|
|
152
|
+
connection: z
|
|
153
|
+
.literal(true)
|
|
154
|
+
.optional()
|
|
155
|
+
.describe("Run the connection test test() against the provider, with the company's connection."),
|
|
156
|
+
function: z
|
|
157
|
+
.string()
|
|
158
|
+
.max(100)
|
|
159
|
+
.optional()
|
|
160
|
+
.describe("Run one tool, by its function such as invoice-list, against the provider with the company's connection; its input in input."),
|
|
161
|
+
input: z.record(z.string(), z.unknown()).optional(),
|
|
162
|
+
});
|
|
163
|
+
export const ConnectorPublishInput = z.strictObject({
|
|
164
|
+
connectorId: ConnectorId,
|
|
165
|
+
force: z.literal(true).optional().describe("Publish although the draft's tests fail."),
|
|
166
|
+
rev: Rev,
|
|
167
|
+
});
|
|
168
|
+
export const ConnectorArchiveInput = z.strictObject({ connectorId: ConnectorId, rev: Rev });
|
|
169
|
+
export const ConnectorRestoreInput = z.strictObject({ connectorId: ConnectorId, rev: Rev });
|
|
170
|
+
export const ConnectorChange = z.object({
|
|
171
|
+
path: z.string(),
|
|
172
|
+
change: z.enum(["added", "changed", "removed"]),
|
|
173
|
+
});
|
|
174
|
+
// One run of a connector's tests (#894): the same shape as a gadget's.
|
|
175
|
+
export const ConnectorTestRun = GadgetTestRun;
|
|
14
176
|
// One field of the form a connection is entered in (#7), from the connector's `settings` and
|
|
15
177
|
// `secrets` and their `.meta()`. A `secret` field is a password field and is never read back.
|
|
16
178
|
//
|
|
@@ -36,13 +198,73 @@ export const Connector = z.object({
|
|
|
36
198
|
name: z.string(),
|
|
37
199
|
category: z.string(),
|
|
38
200
|
description: z.string(),
|
|
39
|
-
// The SVG as text, for the catalog tile.
|
|
201
|
+
// The SVG as text, or a data: URL of a PNG (#894), for the catalog tile.
|
|
40
202
|
icon: z.string(),
|
|
41
|
-
// From the catalog `anchrd/connectors`, rather than the installation's own.
|
|
203
|
+
// From the catalog `anchrd/connectors`, rather than the installation's own. Always false since
|
|
204
|
+
// #894: every connector is built in the installation.
|
|
42
205
|
catalog: z.boolean(),
|
|
206
|
+
// Of the live version; of the draft for a connector never published.
|
|
43
207
|
tools: z.array(ConnectorTool),
|
|
44
208
|
fields: z.array(ConnectorField),
|
|
209
|
+
// The hosts the bridge lets it reach, and how the credential is sent (#894).
|
|
210
|
+
hosts: z.array(z.string()),
|
|
211
|
+
access: z.string(),
|
|
212
|
+
live: z
|
|
213
|
+
.object({
|
|
214
|
+
version: z.number().int(),
|
|
215
|
+
publishedAt: z.iso.datetime(),
|
|
216
|
+
publishedBy: ConnectorPerson.nullable(),
|
|
217
|
+
})
|
|
218
|
+
.nullable(),
|
|
219
|
+
// Only for whoever may change the connector; null without a draft and for everybody else.
|
|
220
|
+
draft: z
|
|
221
|
+
.object({
|
|
222
|
+
// The number the draft gets when it is published.
|
|
223
|
+
version: z.number().int(),
|
|
224
|
+
updatedAt: z.iso.datetime(),
|
|
225
|
+
updatedBy: ConnectorPerson.nullable(),
|
|
226
|
+
changes: z.array(ConnectorChange),
|
|
227
|
+
// Tools and hosts the draft has and live has not: what a publish adds.
|
|
228
|
+
newTools: z.array(ConnectorTool),
|
|
229
|
+
newHosts: z.array(z.string()),
|
|
230
|
+
tools: z.number().int(),
|
|
231
|
+
})
|
|
232
|
+
.nullable(),
|
|
233
|
+
archivedAt: z.iso.datetime().nullable(),
|
|
234
|
+
// The state the next save sends (E70).
|
|
235
|
+
rev: z.number().int(),
|
|
236
|
+
});
|
|
237
|
+
// `connectors_connector_get` (#894): the catalog entry, and the files of one state with its tests and
|
|
238
|
+
// versions.
|
|
239
|
+
export const ConnectorDetail = Connector.extend({
|
|
240
|
+
// The state the files belong to: a version's number, `draft`, or null without either.
|
|
241
|
+
version: z.union([z.number().int(), z.literal("draft")]).nullable(),
|
|
242
|
+
manifest: ConnectorManifest.nullable(),
|
|
243
|
+
files: z.array(GadgetFile),
|
|
244
|
+
// The last run of the tests; null before the first and for whoever may not change the connector.
|
|
245
|
+
test: ConnectorTestRun.nullable(),
|
|
246
|
+
// Every published version, newest first, with the calls and errors of the last 7 days.
|
|
247
|
+
versions: z.array(z.object({
|
|
248
|
+
version: z.number().int(),
|
|
249
|
+
createdAt: z.iso.datetime(),
|
|
250
|
+
createdBy: ConnectorPerson.nullable(),
|
|
251
|
+
calls: z.number().int(),
|
|
252
|
+
errors: z.number().int(),
|
|
253
|
+
})),
|
|
254
|
+
rights: z.object({ update: z.boolean(), publish: z.boolean() }),
|
|
45
255
|
});
|
|
256
|
+
// What `connectors_connector_test` answers (#894): the tests, the connection test, or one tool's call.
|
|
257
|
+
export const ConnectorTestAnswer = z.union([
|
|
258
|
+
z.object({ tests: ConnectorTestRun }),
|
|
259
|
+
z.object({
|
|
260
|
+
connection: z.object({
|
|
261
|
+
ok: z.boolean(),
|
|
262
|
+
detail: z.string().nullable(),
|
|
263
|
+
message: z.string().nullable(),
|
|
264
|
+
}),
|
|
265
|
+
}),
|
|
266
|
+
z.object({ output: z.unknown() }),
|
|
267
|
+
]);
|
|
46
268
|
export const ConnectorList = z.object({
|
|
47
269
|
items: z.array(Connector),
|
|
48
270
|
nextCursor: ConnectorId.nullable(),
|
|
@@ -67,6 +289,11 @@ export const Call = z.object({
|
|
|
67
289
|
// The provider's HTTP status, 200 on success, null without an answer.
|
|
68
290
|
status: z.number().int().nullable(),
|
|
69
291
|
failed: z.boolean(),
|
|
292
|
+
// How it failed (#894): `rejected`, `unauthorized`, `unavailable`, or `host` when the bridge refused
|
|
293
|
+
// a request to a host the connector does not name. Null when it did not fail, and before #894.
|
|
294
|
+
failure: z.string().nullable(),
|
|
295
|
+
// The state that ran (#894): `draft` or a published version; null before #894.
|
|
296
|
+
version: z.union([z.number().int(), z.literal("draft")]).nullable(),
|
|
70
297
|
durationMs: z.number().int(),
|
|
71
298
|
createdAt: z.iso.datetime(),
|
|
72
299
|
// Null for the daily test, which nobody started. Name, kind and picture come from `access`, null
|
package/dist/crawls/crawls.d.ts
CHANGED
|
@@ -35,9 +35,9 @@ export declare const CrawlGetInput: z.ZodObject<{
|
|
|
35
35
|
export type CrawlGetInput = z.infer<typeof CrawlGetInput>;
|
|
36
36
|
export declare const CrawlStatus: z.ZodEnum<{
|
|
37
37
|
done: "done";
|
|
38
|
-
failed: "failed";
|
|
39
38
|
expired: "expired";
|
|
40
39
|
running: "running";
|
|
40
|
+
failed: "failed";
|
|
41
41
|
starting: "starting";
|
|
42
42
|
reading: "reading";
|
|
43
43
|
}>;
|
|
@@ -47,9 +47,9 @@ export declare const Crawl: z.ZodObject<{
|
|
|
47
47
|
url: z.ZodString;
|
|
48
48
|
status: z.ZodEnum<{
|
|
49
49
|
done: "done";
|
|
50
|
-
failed: "failed";
|
|
51
50
|
expired: "expired";
|
|
52
51
|
running: "running";
|
|
52
|
+
failed: "failed";
|
|
53
53
|
starting: "starting";
|
|
54
54
|
reading: "reading";
|
|
55
55
|
}>;
|
|
@@ -92,9 +92,9 @@ export declare const CrawlDetail: z.ZodObject<{
|
|
|
92
92
|
url: z.ZodString;
|
|
93
93
|
status: z.ZodEnum<{
|
|
94
94
|
done: "done";
|
|
95
|
-
failed: "failed";
|
|
96
95
|
expired: "expired";
|
|
97
96
|
running: "running";
|
|
97
|
+
failed: "failed";
|
|
98
98
|
starting: "starting";
|
|
99
99
|
reading: "reading";
|
|
100
100
|
}>;
|
package/dist/error/error.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const ErrorCurrent: z.ZodObject<{
|
|
|
23
23
|
gadgetId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
24
24
|
nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
25
25
|
machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
26
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
26
27
|
rev: z.ZodNumber;
|
|
27
28
|
savedBy: z.ZodOptional<z.ZodObject<{
|
|
28
29
|
userId: z.ZodString;
|
|
@@ -58,6 +59,7 @@ export declare const ErrorResponse: z.ZodObject<{
|
|
|
58
59
|
gadgetId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
59
60
|
nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
60
61
|
machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
62
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
61
63
|
rev: z.ZodNumber;
|
|
62
64
|
savedBy: z.ZodOptional<z.ZodObject<{
|
|
63
65
|
userId: z.ZodString;
|
package/dist/error/error.js
CHANGED
|
@@ -34,6 +34,8 @@ export const ErrorCurrent = z.strictObject({
|
|
|
34
34
|
gadgetId: NodeRef.optional(),
|
|
35
35
|
nodeId: NodeRef.optional(),
|
|
36
36
|
machineId: idSchema("user").optional(),
|
|
37
|
+
// A built connector's id (#894), `github`.
|
|
38
|
+
connectorId: z.string().optional(),
|
|
37
39
|
rev: z.number().int(),
|
|
38
40
|
savedBy: z.strictObject({ userId: z.string(), name: z.string() }).optional(),
|
|
39
41
|
savedAt: z.iso.datetime(),
|
|
@@ -82,15 +82,15 @@ export declare const GadgetTestInput: z.ZodObject<{
|
|
|
82
82
|
}, z.core.$strict>;
|
|
83
83
|
export type GadgetTestInput = z.infer<typeof GadgetTestInput>;
|
|
84
84
|
export declare const GadgetCallStatus: z.ZodEnum<{
|
|
85
|
-
failed: "failed";
|
|
86
85
|
succeeded: "succeeded";
|
|
86
|
+
failed: "failed";
|
|
87
87
|
}>;
|
|
88
88
|
export type GadgetCallStatus = z.infer<typeof GadgetCallStatus>;
|
|
89
89
|
export declare const GadgetCallListInput: z.ZodObject<{
|
|
90
90
|
gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
91
91
|
status: z.ZodOptional<z.ZodEnum<{
|
|
92
|
-
failed: "failed";
|
|
93
92
|
succeeded: "succeeded";
|
|
93
|
+
failed: "failed";
|
|
94
94
|
}>>;
|
|
95
95
|
version: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodEnum<{
|
|
96
96
|
live: "live";
|
|
@@ -193,6 +193,7 @@ export declare const GadgetTestRun: z.ZodObject<{
|
|
|
193
193
|
version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
|
|
194
194
|
current: z.ZodBoolean;
|
|
195
195
|
status: z.ZodEnum<{
|
|
196
|
+
running: "running";
|
|
196
197
|
failed: "failed";
|
|
197
198
|
passed: "passed";
|
|
198
199
|
}>;
|
|
@@ -296,6 +297,7 @@ export declare const GadgetDetail: z.ZodObject<{
|
|
|
296
297
|
version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
|
|
297
298
|
current: z.ZodBoolean;
|
|
298
299
|
status: z.ZodEnum<{
|
|
300
|
+
running: "running";
|
|
299
301
|
failed: "failed";
|
|
300
302
|
passed: "passed";
|
|
301
303
|
}>;
|
|
@@ -389,8 +391,8 @@ export declare const GadgetCall: z.ZodObject<{
|
|
|
389
391
|
function: z.ZodString;
|
|
390
392
|
version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
|
|
391
393
|
status: z.ZodEnum<{
|
|
392
|
-
failed: "failed";
|
|
393
394
|
succeeded: "succeeded";
|
|
395
|
+
failed: "failed";
|
|
394
396
|
}>;
|
|
395
397
|
output: z.ZodUnknown;
|
|
396
398
|
error: z.ZodNullable<z.ZodObject<{
|
|
@@ -440,8 +442,8 @@ export declare const GadgetCallItem: z.ZodObject<{
|
|
|
440
442
|
function: z.ZodNullable<z.ZodString>;
|
|
441
443
|
version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
|
|
442
444
|
status: z.ZodEnum<{
|
|
443
|
-
failed: "failed";
|
|
444
445
|
succeeded: "succeeded";
|
|
446
|
+
failed: "failed";
|
|
445
447
|
}>;
|
|
446
448
|
unavailable: z.ZodBoolean;
|
|
447
449
|
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
@@ -468,8 +470,8 @@ export declare const GadgetCallList: z.ZodObject<{
|
|
|
468
470
|
function: z.ZodNullable<z.ZodString>;
|
|
469
471
|
version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
|
|
470
472
|
status: z.ZodEnum<{
|
|
471
|
-
failed: "failed";
|
|
472
473
|
succeeded: "succeeded";
|
|
474
|
+
failed: "failed";
|
|
473
475
|
}>;
|
|
474
476
|
unavailable: z.ZodBoolean;
|
|
475
477
|
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
@@ -497,8 +499,8 @@ export declare const GadgetCallEntry: z.ZodObject<{
|
|
|
497
499
|
function: z.ZodNullable<z.ZodString>;
|
|
498
500
|
version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
|
|
499
501
|
status: z.ZodEnum<{
|
|
500
|
-
failed: "failed";
|
|
501
502
|
succeeded: "succeeded";
|
|
503
|
+
failed: "failed";
|
|
502
504
|
}>;
|
|
503
505
|
unavailable: z.ZodBoolean;
|
|
504
506
|
durationMs: z.ZodNullable<z.ZodNumber>;
|
package/dist/gadgets/gadgets.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { CallId } from "../connectors/connectors.js";
|
|
3
2
|
import { ErrorCode } from "../error/error.js";
|
|
3
|
+
import { idSchema } from "../ids/ids.js";
|
|
4
4
|
import { Limit } from "../list-input.js";
|
|
5
5
|
import { NodeId, NodePath, NodePerson } from "../nodes/nodes.js";
|
|
6
6
|
import { IdempotencyKey, Rev } from "../primitives/primitives.js";
|
|
@@ -11,7 +11,8 @@ import { UserId } from "../users/users.js";
|
|
|
11
11
|
// `intelligence_gadget_call_create`, and their answers.
|
|
12
12
|
const GadgetId = NodeId.describe("The gadget's id, a `node_…` of kind gadget.");
|
|
13
13
|
// One entry of a gadget's log (#643), `call_…` like a connector's call (the resource `call`).
|
|
14
|
-
|
|
14
|
+
// ⚠️ Not `CallId` of `connectors.ts`: that module imports this one (#894).
|
|
15
|
+
const GadgetCallId = idSchema("call").describe("An entry of the gadget's log, `call_…`.");
|
|
15
16
|
// A file's path inside the gadget: `server.js`, `lib/format.js`, `tests/status.test.js`. Segments of
|
|
16
17
|
// letters, digits, `_`, `-` and `.`, none starting with a dot, so `..` and hidden files cannot exist
|
|
17
18
|
// and `.colab/` stays Colab's own (the runtime's harness lives there).
|
|
@@ -111,7 +112,7 @@ export const GadgetPublishInput = z.strictObject({
|
|
|
111
112
|
force: z
|
|
112
113
|
.literal(true)
|
|
113
114
|
.optional()
|
|
114
|
-
.describe("Publish although tests fail. Never for a machine: an Operator publishes only with every test green."),
|
|
115
|
+
.describe("Publish although tests fail. Never for a machine: an Operator publishes only with every test green. A draft with tests needs a run of exactly its state first (intelligence_gadget_test); without one the publish starts the tests and refuses until they ended."),
|
|
115
116
|
rev: Rev,
|
|
116
117
|
});
|
|
117
118
|
export const GadgetTestInput = z.strictObject({
|
|
@@ -119,7 +120,7 @@ export const GadgetTestInput = z.strictObject({
|
|
|
119
120
|
version: z
|
|
120
121
|
.enum(["live", "draft"])
|
|
121
122
|
.optional()
|
|
122
|
-
.describe("Which state to test: draft (the default when there is one) or live. Tests run with your own rights against a storage of their own, never live's."),
|
|
123
|
+
.describe("Which state to test: draft (the default when there is one) or live. Tests run with your own rights against a storage of their own, never live's. The answer is the run once it ended within 20 seconds, else the run as running: it goes on in the background, and intelligence_gadget_get shows it under test once it ended."),
|
|
123
124
|
});
|
|
124
125
|
// The log's filters (#643, Nodes › Gadget › Konsole › Log).
|
|
125
126
|
export const GadgetCallStatus = z.enum(["succeeded", "failed"]);
|
|
@@ -204,13 +205,15 @@ export const GadgetTestResult = z.object({
|
|
|
204
205
|
.object({ file: z.string(), line: z.number().int(), column: z.number().int() })
|
|
205
206
|
.nullable(),
|
|
206
207
|
});
|
|
207
|
-
// A run of a gadget's tests (#643, Nodes › Gadget › Konsole › Tests).
|
|
208
|
+
// A run of a gadget's tests (#643, Nodes › Gadget › Konsole › Tests). `running` (#888, E150): the run
|
|
209
|
+
// goes on in the queue after `intelligence_gadget_test` answered; `at` is when it started, the
|
|
210
|
+
// counts are 0 and `tests` empty until `intelligence_gadget_get` shows it ended.
|
|
208
211
|
export const GadgetTestRun = z.object({
|
|
209
212
|
// The state that was tested: a version's number or `draft`.
|
|
210
213
|
version: z.union([z.number().int(), z.literal("draft")]),
|
|
211
214
|
// True while that state stands as it was tested: the draft unchanged, the version still there.
|
|
212
215
|
current: z.boolean(),
|
|
213
|
-
status: z.enum(["passed", "failed"]),
|
|
216
|
+
status: z.enum(["running", "passed", "failed"]),
|
|
214
217
|
passed: z.number().int(),
|
|
215
218
|
failed: z.number().int(),
|
|
216
219
|
at: z.iso.datetime(),
|
package/dist/mcps/mcps.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const McpId: z.ZodTemplateLiteral<`mcp_${string}`>;
|
|
3
3
|
export type McpId = z.infer<typeof McpId>;
|
|
4
4
|
export declare const McpAuth: z.ZodEnum<{
|
|
5
|
-
oauth: "oauth";
|
|
6
5
|
bearer: "bearer";
|
|
7
6
|
header: "header";
|
|
8
7
|
none: "none";
|
|
8
|
+
oauth: "oauth";
|
|
9
9
|
}>;
|
|
10
10
|
export type McpAuth = z.infer<typeof McpAuth>;
|
|
11
11
|
export declare const McpState: z.ZodEnum<{
|
|
@@ -190,10 +190,10 @@ export declare const McpCreateInput: z.ZodObject<{
|
|
|
190
190
|
name: z.ZodOptional<z.ZodString>;
|
|
191
191
|
url: z.ZodOptional<z.ZodURL>;
|
|
192
192
|
auth: z.ZodOptional<z.ZodEnum<{
|
|
193
|
-
oauth: "oauth";
|
|
194
193
|
bearer: "bearer";
|
|
195
194
|
header: "header";
|
|
196
195
|
none: "none";
|
|
196
|
+
oauth: "oauth";
|
|
197
197
|
}>>;
|
|
198
198
|
headerName: z.ZodOptional<z.ZodString>;
|
|
199
199
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -236,10 +236,10 @@ export declare const Mcp: z.ZodObject<{
|
|
|
236
236
|
name: z.ZodString;
|
|
237
237
|
url: z.ZodString;
|
|
238
238
|
auth: z.ZodEnum<{
|
|
239
|
-
oauth: "oauth";
|
|
240
239
|
bearer: "bearer";
|
|
241
240
|
header: "header";
|
|
242
241
|
none: "none";
|
|
242
|
+
oauth: "oauth";
|
|
243
243
|
}>;
|
|
244
244
|
headerName: z.ZodNullable<z.ZodString>;
|
|
245
245
|
state: z.ZodEnum<{
|
|
@@ -272,10 +272,10 @@ export declare const McpList: z.ZodObject<{
|
|
|
272
272
|
name: z.ZodString;
|
|
273
273
|
url: z.ZodString;
|
|
274
274
|
auth: z.ZodEnum<{
|
|
275
|
-
oauth: "oauth";
|
|
276
275
|
bearer: "bearer";
|
|
277
276
|
header: "header";
|
|
278
277
|
none: "none";
|
|
278
|
+
oauth: "oauth";
|
|
279
279
|
}>;
|
|
280
280
|
headerName: z.ZodNullable<z.ZodString>;
|
|
281
281
|
state: z.ZodEnum<{
|
package/dist/nodes/nodes.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ export declare const NodeSection: z.ZodEnum<{
|
|
|
39
39
|
export type NodeSection = z.infer<typeof NodeSection>;
|
|
40
40
|
export declare const NodeSort: z.ZodEnum<{
|
|
41
41
|
name: "name";
|
|
42
|
-
kind: "kind";
|
|
43
42
|
status: "status";
|
|
43
|
+
kind: "kind";
|
|
44
44
|
updated: "updated";
|
|
45
45
|
}>;
|
|
46
46
|
export type NodeSort = z.infer<typeof NodeSort>;
|
|
@@ -56,8 +56,8 @@ export declare const NodeListInput: z.ZodObject<{
|
|
|
56
56
|
includeHidden: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
|
|
57
57
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
58
58
|
name: "name";
|
|
59
|
-
kind: "kind";
|
|
60
59
|
status: "status";
|
|
60
|
+
kind: "kind";
|
|
61
61
|
updated: "updated";
|
|
62
62
|
}>>;
|
|
63
63
|
foldersFirst: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
|
|
@@ -937,8 +937,8 @@ export type OperatorUserList = z.infer<typeof OperatorUserList>;
|
|
|
937
937
|
export declare const OperatorRunId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
938
938
|
export type OperatorRunId = z.infer<typeof OperatorRunId>;
|
|
939
939
|
export declare const OperatorRunStatus: z.ZodEnum<{
|
|
940
|
-
failed: "failed";
|
|
941
940
|
running: "running";
|
|
941
|
+
failed: "failed";
|
|
942
942
|
completed: "completed";
|
|
943
943
|
stopped: "stopped";
|
|
944
944
|
}>;
|
|
@@ -1006,8 +1006,8 @@ export declare const OperatorRun: z.ZodObject<{
|
|
|
1006
1006
|
retry: "retry";
|
|
1007
1007
|
}>;
|
|
1008
1008
|
status: z.ZodEnum<{
|
|
1009
|
-
failed: "failed";
|
|
1010
1009
|
running: "running";
|
|
1010
|
+
failed: "failed";
|
|
1011
1011
|
completed: "completed";
|
|
1012
1012
|
stopped: "stopped";
|
|
1013
1013
|
}>;
|
|
@@ -1088,8 +1088,8 @@ export declare const OperatorRunListInput: z.ZodObject<{
|
|
|
1088
1088
|
gemini: "gemini";
|
|
1089
1089
|
}>>;
|
|
1090
1090
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1091
|
-
failed: "failed";
|
|
1092
1091
|
running: "running";
|
|
1092
|
+
failed: "failed";
|
|
1093
1093
|
completed: "completed";
|
|
1094
1094
|
stopped: "stopped";
|
|
1095
1095
|
}>>;
|
|
@@ -1275,8 +1275,8 @@ export declare const OperatorRunList: z.ZodObject<{
|
|
|
1275
1275
|
retry: "retry";
|
|
1276
1276
|
}>;
|
|
1277
1277
|
status: z.ZodEnum<{
|
|
1278
|
-
failed: "failed";
|
|
1279
1278
|
running: "running";
|
|
1279
|
+
failed: "failed";
|
|
1280
1280
|
completed: "completed";
|
|
1281
1281
|
stopped: "stopped";
|
|
1282
1282
|
}>;
|
package/dist/sdk.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { BoardColumn, BoardCreateInput, BoardDetail, BoardGetInput, BoardId, Boa
|
|
|
8
8
|
export { CardField, CardFieldId, CardFieldInput, CardFieldOption, CardFieldType, CardFieldValue, CardKind, CardKindIcon, CardKindId, CardKindInput, CardOptionId, ChecklistItem, cardFieldTypes, cardKindIcons, emptyValue, TaskFields, TaskKind, } from "./card-kinds/card-kinds.js";
|
|
9
9
|
export { ColumnId, ColumnType, columnTypes, TaskColumn } from "./columns/columns.js";
|
|
10
10
|
export { Connection, ConnectionCreateInput, ConnectionCredential, ConnectionDetail, ConnectionGetInput, ConnectionId, ConnectionList, ConnectionListInput, ConnectionRevokeInput, ConnectionState, ConnectionTested, ConnectionTestInput, ConnectionTestResult, ConnectionUpdateInput, } from "./connections/connections.js";
|
|
11
|
-
export { Call, CallId, CallList, CallListInput, CallSource, Connector, ConnectorField, ConnectorGetInput, ConnectorId, ConnectorList, ConnectorListInput, ConnectorTool, } from "./connectors/connectors.js";
|
|
11
|
+
export { Call, CallId, CallList, CallListInput, CallSource, Connector, ConnectorAccess, type ConnectorAccessKind, ConnectorArchiveInput, ConnectorCreateInput, ConnectorDetail, ConnectorField, ConnectorFieldName, ConnectorGetInput, ConnectorId, ConnectorList, ConnectorListInput, ConnectorManifest, ConnectorManifestField, ConnectorManifestTool, ConnectorPublishInput, ConnectorRestoreInput, ConnectorTestAnswer, ConnectorTestInput, ConnectorTestRun, ConnectorTool, ConnectorUpdateInput, ConnectorVersionRef, connectorAccessKinds, connectorCodePath, connectorManifestPath, } from "./connectors/connectors.js";
|
|
12
12
|
export { Crawl, CrawlCreateInput, CrawlDetail, CrawlFailure, CrawlGetInput, CrawlHit, CrawlId, CrawlPage, CrawlRead, CrawlStatus, crawlDays, crawlPassageChars, defaultCrawlPages, maxCrawlHits, maxCrawlPages, maxCrawlPagesPerDay, maxCrawlReads, } from "./crawls/crawls.js";
|
|
13
13
|
export { DirectoryPrincipal, DirectorySearchInput } from "./directory/directory.js";
|
|
14
14
|
export { DocumentCreateInput, DocumentDetail, DocumentExcerpt, DocumentGetInput, DocumentUpdateInput, } from "./documents/documents.js";
|
package/dist/sdk.js
CHANGED
|
@@ -11,7 +11,7 @@ export { BoardColumn, BoardCreateInput, BoardDetail, BoardGetInput, BoardId, Boa
|
|
|
11
11
|
export { CardField, CardFieldId, CardFieldInput, CardFieldOption, CardFieldType, CardFieldValue, CardKind, CardKindIcon, CardKindId, CardKindInput, CardOptionId, ChecklistItem, cardFieldTypes, cardKindIcons, emptyValue, TaskFields, TaskKind, } from "./card-kinds/card-kinds.js";
|
|
12
12
|
export { ColumnId, ColumnType, columnTypes, TaskColumn } from "./columns/columns.js";
|
|
13
13
|
export { Connection, ConnectionCreateInput, ConnectionCredential, ConnectionDetail, ConnectionGetInput, ConnectionId, ConnectionList, ConnectionListInput, ConnectionRevokeInput, ConnectionState, ConnectionTested, ConnectionTestInput, ConnectionTestResult, ConnectionUpdateInput, } from "./connections/connections.js";
|
|
14
|
-
export { Call, CallId, CallList, CallListInput, CallSource, Connector, ConnectorField, ConnectorGetInput, ConnectorId, ConnectorList, ConnectorListInput, ConnectorTool, } from "./connectors/connectors.js";
|
|
14
|
+
export { Call, CallId, CallList, CallListInput, CallSource, Connector, ConnectorAccess, ConnectorArchiveInput, ConnectorCreateInput, ConnectorDetail, ConnectorField, ConnectorFieldName, ConnectorGetInput, ConnectorId, ConnectorList, ConnectorListInput, ConnectorManifest, ConnectorManifestField, ConnectorManifestTool, ConnectorPublishInput, ConnectorRestoreInput, ConnectorTestAnswer, ConnectorTestInput, ConnectorTestRun, ConnectorTool, ConnectorUpdateInput, ConnectorVersionRef, connectorAccessKinds, connectorCodePath, connectorManifestPath, } from "./connectors/connectors.js";
|
|
15
15
|
export { Crawl, CrawlCreateInput, CrawlDetail, CrawlFailure, CrawlGetInput, CrawlHit, CrawlId, CrawlPage, CrawlRead, CrawlStatus, crawlDays, crawlPassageChars, defaultCrawlPages, maxCrawlHits, maxCrawlPages, maxCrawlPagesPerDay, maxCrawlReads, } from "./crawls/crawls.js";
|
|
16
16
|
export { DirectoryPrincipal, DirectorySearchInput } from "./directory/directory.js";
|
|
17
17
|
export { DocumentCreateInput, DocumentDetail, DocumentExcerpt, DocumentGetInput, DocumentUpdateInput, } from "./documents/documents.js";
|
package/dist/skills/skills.d.ts
CHANGED
|
@@ -70,8 +70,8 @@ export type SkillTokens = z.infer<typeof SkillTokens>;
|
|
|
70
70
|
export declare const SkillCaseResult: z.ZodObject<{
|
|
71
71
|
name: z.ZodString;
|
|
72
72
|
status: z.ZodEnum<{
|
|
73
|
-
failed: "failed";
|
|
74
73
|
running: "running";
|
|
74
|
+
failed: "failed";
|
|
75
75
|
passed: "passed";
|
|
76
76
|
missing: "missing";
|
|
77
77
|
}>;
|
|
@@ -162,8 +162,8 @@ export declare const SkillTestReport: z.ZodObject<{
|
|
|
162
162
|
cases: z.ZodArray<z.ZodObject<{
|
|
163
163
|
name: z.ZodString;
|
|
164
164
|
status: z.ZodEnum<{
|
|
165
|
-
failed: "failed";
|
|
166
165
|
running: "running";
|
|
166
|
+
failed: "failed";
|
|
167
167
|
passed: "passed";
|
|
168
168
|
missing: "missing";
|
|
169
169
|
}>;
|
|
@@ -273,8 +273,8 @@ export declare const SkillDetail: z.ZodObject<{
|
|
|
273
273
|
cases: z.ZodArray<z.ZodObject<{
|
|
274
274
|
name: z.ZodString;
|
|
275
275
|
status: z.ZodEnum<{
|
|
276
|
-
failed: "failed";
|
|
277
276
|
running: "running";
|
|
277
|
+
failed: "failed";
|
|
278
278
|
passed: "passed";
|
|
279
279
|
missing: "missing";
|
|
280
280
|
}>;
|
|
@@ -48,9 +48,9 @@ export declare const VersionMove: z.ZodObject<{
|
|
|
48
48
|
export type VersionMove = z.infer<typeof VersionMove>;
|
|
49
49
|
export declare const taskVersionChanges: readonly ["title", "text", "assignee", "dates", "labels", "parent", "dependencies", "waiting", "fields"];
|
|
50
50
|
export declare const TaskVersionChange: z.ZodEnum<{
|
|
51
|
-
fields: "fields";
|
|
52
51
|
title: "title";
|
|
53
52
|
text: "text";
|
|
53
|
+
fields: "fields";
|
|
54
54
|
dates: "dates";
|
|
55
55
|
waiting: "waiting";
|
|
56
56
|
assignee: "assignee";
|
|
@@ -164,9 +164,9 @@ export declare const NodeVersion: z.ZodObject<{
|
|
|
164
164
|
comment: z.ZodNullable<z.ZodString>;
|
|
165
165
|
}, z.core.$strip>>;
|
|
166
166
|
changes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
167
|
-
fields: "fields";
|
|
168
167
|
title: "title";
|
|
169
168
|
text: "text";
|
|
169
|
+
fields: "fields";
|
|
170
170
|
dates: "dates";
|
|
171
171
|
waiting: "waiting";
|
|
172
172
|
assignee: "assignee";
|
|
@@ -225,9 +225,9 @@ export declare const NodeVersionList: z.ZodObject<{
|
|
|
225
225
|
comment: z.ZodNullable<z.ZodString>;
|
|
226
226
|
}, z.core.$strip>>;
|
|
227
227
|
changes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
228
|
-
fields: "fields";
|
|
229
228
|
title: "title";
|
|
230
229
|
text: "text";
|
|
230
|
+
fields: "fields";
|
|
231
231
|
dates: "dates";
|
|
232
232
|
waiting: "waiting";
|
|
233
233
|
assignee: "assignee";
|
|
@@ -288,9 +288,9 @@ export declare const NodeVersionDetail: z.ZodObject<{
|
|
|
288
288
|
comment: z.ZodNullable<z.ZodString>;
|
|
289
289
|
}, z.core.$strip>>;
|
|
290
290
|
changes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
291
|
-
fields: "fields";
|
|
292
291
|
title: "title";
|
|
293
292
|
text: "text";
|
|
293
|
+
fields: "fields";
|
|
294
294
|
dates: "dates";
|
|
295
295
|
waiting: "waiting";
|
|
296
296
|
assignee: "assignee";
|
|
@@ -439,9 +439,9 @@ export declare const NodeVersionExcerpt: z.ZodObject<{
|
|
|
439
439
|
comment: z.ZodNullable<z.ZodString>;
|
|
440
440
|
}, z.core.$strip>>;
|
|
441
441
|
changes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
442
|
-
fields: "fields";
|
|
443
442
|
title: "title";
|
|
444
443
|
text: "text";
|
|
444
|
+
fields: "fields";
|
|
445
445
|
dates: "dates";
|
|
446
446
|
waiting: "waiting";
|
|
447
447
|
assignee: "assignee";
|
package/package.json
CHANGED