@anchrd/colab-sdk 0.1.36 → 0.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/actions.d.ts +34 -23
- package/dist/actions/actions.js +5 -2
- package/dist/archive/archive.d.ts +1 -0
- package/dist/archive/archive.js +3 -0
- package/dist/boards/boards.d.ts +21 -21
- package/dist/columns/columns.d.ts +2 -2
- package/dist/connectors/connectors.d.ts +6 -6
- package/dist/crawls/crawls.d.ts +3 -3
- package/dist/error/error.d.ts +9 -3
- package/dist/error/error.js +12 -3
- package/dist/gadgets/gadgets.d.ts +147 -9
- package/dist/gadgets/gadgets.js +156 -0
- package/dist/goals/goals.d.ts +56 -10
- package/dist/goals/goals.js +36 -7
- package/dist/grammar/grammar.d.ts +2 -0
- package/dist/grammar/grammar.js +10 -0
- package/dist/home/home.d.ts +312 -0
- package/dist/home/home.js +53 -0
- package/dist/links/links.d.ts +166 -0
- package/dist/links/links.js +149 -0
- package/dist/mcps/mcps.d.ts +3 -3
- package/dist/messages/messages.d.ts +26 -0
- package/dist/messages/messages.js +33 -0
- package/dist/nodes/nodes.d.ts +46 -20
- package/dist/nodes/nodes.js +11 -3
- package/dist/operators/operators.d.ts +737 -47
- package/dist/operators/operators.js +388 -71
- package/dist/organisation/organisation.d.ts +2 -0
- package/dist/organisation/organisation.js +9 -0
- package/dist/primitives/primitives.d.ts +9 -0
- package/dist/primitives/primitives.js +16 -0
- package/dist/roles/roles.d.ts +1 -0
- package/dist/roles/roles.js +3 -0
- package/dist/runs/runs.d.ts +2 -2
- package/dist/sdk.d.ts +12 -11
- package/dist/sdk.js +12 -11
- package/dist/skills/skills.d.ts +37 -7
- package/dist/skills/skills.js +50 -0
- package/dist/sources/sources.d.ts +82 -20
- package/dist/sources/sources.js +71 -12
- package/dist/tables/tables.d.ts +42 -0
- package/dist/tables/tables.js +55 -2
- package/dist/tool.d.ts +1 -0
- package/dist/tree-order/tree-order.d.ts +2 -2
- package/dist/tree-order/tree-order.js +1 -1
- package/dist/users/users.d.ts +2 -0
- package/dist/users/users.js +3 -2
- package/dist/versions/versions.d.ts +13 -13
- package/package.json +1 -1
|
@@ -3,26 +3,26 @@ export declare const ColumnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
|
3
3
|
export type ColumnId = z.infer<typeof ColumnId>;
|
|
4
4
|
export declare const columnTypes: readonly ["backlog", "open", "progress", "done", "discarded", "blocked", "archive"];
|
|
5
5
|
export declare const ColumnType: z.ZodEnum<{
|
|
6
|
-
archive: "archive";
|
|
7
6
|
backlog: "backlog";
|
|
8
7
|
open: "open";
|
|
9
8
|
progress: "progress";
|
|
10
9
|
done: "done";
|
|
11
10
|
discarded: "discarded";
|
|
12
11
|
blocked: "blocked";
|
|
12
|
+
archive: "archive";
|
|
13
13
|
}>;
|
|
14
14
|
export type ColumnType = z.infer<typeof ColumnType>;
|
|
15
15
|
export declare const TaskColumn: z.ZodObject<{
|
|
16
16
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
17
17
|
name: z.ZodString;
|
|
18
18
|
type: z.ZodEnum<{
|
|
19
|
-
archive: "archive";
|
|
20
19
|
backlog: "backlog";
|
|
21
20
|
open: "open";
|
|
22
21
|
progress: "progress";
|
|
23
22
|
done: "done";
|
|
24
23
|
discarded: "discarded";
|
|
25
24
|
blocked: "blocked";
|
|
25
|
+
archive: "archive";
|
|
26
26
|
}>;
|
|
27
27
|
}, z.core.$strip>;
|
|
28
28
|
export type TaskColumn = z.infer<typeof TaskColumn>;
|
|
@@ -223,11 +223,11 @@ export declare const ConnectorTestRun: z.ZodObject<{
|
|
|
223
223
|
name: z.ZodString;
|
|
224
224
|
durationMs: z.ZodNumber;
|
|
225
225
|
code: z.ZodNullable<z.ZodEnum<{
|
|
226
|
+
unavailable: "unavailable";
|
|
226
227
|
not_found: "not_found";
|
|
227
228
|
invalid: "invalid";
|
|
228
229
|
conflict: "conflict";
|
|
229
230
|
unauthenticated: "unauthenticated";
|
|
230
|
-
unavailable: "unavailable";
|
|
231
231
|
}>>;
|
|
232
232
|
}, z.core.$strip>>>;
|
|
233
233
|
}, z.core.$strip>>;
|
|
@@ -238,11 +238,11 @@ export declare const ConnectorTestRun: z.ZodObject<{
|
|
|
238
238
|
name: z.ZodString;
|
|
239
239
|
durationMs: z.ZodNumber;
|
|
240
240
|
code: z.ZodNullable<z.ZodEnum<{
|
|
241
|
+
unavailable: "unavailable";
|
|
241
242
|
not_found: "not_found";
|
|
242
243
|
invalid: "invalid";
|
|
243
244
|
conflict: "conflict";
|
|
244
245
|
unauthenticated: "unauthenticated";
|
|
245
|
-
unavailable: "unavailable";
|
|
246
246
|
}>>;
|
|
247
247
|
}, z.core.$strip>>;
|
|
248
248
|
}, z.core.$strip>>>;
|
|
@@ -516,11 +516,11 @@ export declare const ConnectorDetail: z.ZodObject<{
|
|
|
516
516
|
name: z.ZodString;
|
|
517
517
|
durationMs: z.ZodNumber;
|
|
518
518
|
code: z.ZodNullable<z.ZodEnum<{
|
|
519
|
+
unavailable: "unavailable";
|
|
519
520
|
not_found: "not_found";
|
|
520
521
|
invalid: "invalid";
|
|
521
522
|
conflict: "conflict";
|
|
522
523
|
unauthenticated: "unauthenticated";
|
|
523
|
-
unavailable: "unavailable";
|
|
524
524
|
}>>;
|
|
525
525
|
}, z.core.$strip>>>;
|
|
526
526
|
}, z.core.$strip>>;
|
|
@@ -531,11 +531,11 @@ export declare const ConnectorDetail: z.ZodObject<{
|
|
|
531
531
|
name: z.ZodString;
|
|
532
532
|
durationMs: z.ZodNumber;
|
|
533
533
|
code: z.ZodNullable<z.ZodEnum<{
|
|
534
|
+
unavailable: "unavailable";
|
|
534
535
|
not_found: "not_found";
|
|
535
536
|
invalid: "invalid";
|
|
536
537
|
conflict: "conflict";
|
|
537
538
|
unauthenticated: "unauthenticated";
|
|
538
|
-
unavailable: "unavailable";
|
|
539
539
|
}>>;
|
|
540
540
|
}, z.core.$strip>>;
|
|
541
541
|
}, z.core.$strip>>>;
|
|
@@ -616,11 +616,11 @@ export declare const ConnectorTestAnswer: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
616
616
|
name: z.ZodString;
|
|
617
617
|
durationMs: z.ZodNumber;
|
|
618
618
|
code: z.ZodNullable<z.ZodEnum<{
|
|
619
|
+
unavailable: "unavailable";
|
|
619
620
|
not_found: "not_found";
|
|
620
621
|
invalid: "invalid";
|
|
621
622
|
conflict: "conflict";
|
|
622
623
|
unauthenticated: "unauthenticated";
|
|
623
|
-
unavailable: "unavailable";
|
|
624
624
|
}>>;
|
|
625
625
|
}, z.core.$strip>>>;
|
|
626
626
|
}, z.core.$strip>>;
|
|
@@ -631,11 +631,11 @@ export declare const ConnectorTestAnswer: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
631
631
|
name: z.ZodString;
|
|
632
632
|
durationMs: z.ZodNumber;
|
|
633
633
|
code: z.ZodNullable<z.ZodEnum<{
|
|
634
|
+
unavailable: "unavailable";
|
|
634
635
|
not_found: "not_found";
|
|
635
636
|
invalid: "invalid";
|
|
636
637
|
conflict: "conflict";
|
|
637
638
|
unauthenticated: "unauthenticated";
|
|
638
|
-
unavailable: "unavailable";
|
|
639
639
|
}>>;
|
|
640
640
|
}, z.core.$strip>>;
|
|
641
641
|
}, z.core.$strip>>>;
|
package/dist/crawls/crawls.d.ts
CHANGED
|
@@ -34,8 +34,8 @@ export declare const CrawlGetInput: z.ZodObject<{
|
|
|
34
34
|
}, z.core.$strict>;
|
|
35
35
|
export type CrawlGetInput = z.infer<typeof CrawlGetInput>;
|
|
36
36
|
export declare const CrawlStatus: z.ZodEnum<{
|
|
37
|
-
expired: "expired";
|
|
38
37
|
done: "done";
|
|
38
|
+
expired: "expired";
|
|
39
39
|
running: "running";
|
|
40
40
|
failed: "failed";
|
|
41
41
|
starting: "starting";
|
|
@@ -46,8 +46,8 @@ export declare const Crawl: z.ZodObject<{
|
|
|
46
46
|
crawlId: z.ZodTemplateLiteral<`crawl_${string}`>;
|
|
47
47
|
url: z.ZodString;
|
|
48
48
|
status: z.ZodEnum<{
|
|
49
|
-
expired: "expired";
|
|
50
49
|
done: "done";
|
|
50
|
+
expired: "expired";
|
|
51
51
|
running: "running";
|
|
52
52
|
failed: "failed";
|
|
53
53
|
starting: "starting";
|
|
@@ -91,8 +91,8 @@ export declare const CrawlDetail: z.ZodObject<{
|
|
|
91
91
|
crawlId: z.ZodTemplateLiteral<`crawl_${string}`>;
|
|
92
92
|
url: z.ZodString;
|
|
93
93
|
status: z.ZodEnum<{
|
|
94
|
-
expired: "expired";
|
|
95
94
|
done: "done";
|
|
95
|
+
expired: "expired";
|
|
96
96
|
running: "running";
|
|
97
97
|
failed: "failed";
|
|
98
98
|
starting: "starting";
|
package/dist/error/error.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const errorCodes: readonly ["not_found", "invalid", "conflict", "unauthenticated", "unavailable"];
|
|
3
3
|
export declare const ErrorCode: z.ZodEnum<{
|
|
4
|
+
unavailable: "unavailable";
|
|
4
5
|
not_found: "not_found";
|
|
5
6
|
invalid: "invalid";
|
|
6
7
|
conflict: "conflict";
|
|
7
8
|
unauthenticated: "unauthenticated";
|
|
8
|
-
unavailable: "unavailable";
|
|
9
9
|
}>;
|
|
10
10
|
export type ErrorCode = z.infer<typeof ErrorCode>;
|
|
11
11
|
export declare const ErrorIssue: z.ZodObject<{
|
|
@@ -33,6 +33,7 @@ export declare const ErrorCurrent: z.ZodObject<{
|
|
|
33
33
|
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
34
34
|
}, z.core.$strict>;
|
|
35
35
|
export type ErrorCurrent = z.infer<typeof ErrorCurrent>;
|
|
36
|
+
export declare const notFoundReasons: readonly ["no_access"];
|
|
36
37
|
export declare const ErrorResponse: z.ZodObject<{
|
|
37
38
|
error: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38
39
|
code: z.ZodLiteral<"invalid">;
|
|
@@ -68,11 +69,16 @@ export declare const ErrorResponse: z.ZodObject<{
|
|
|
68
69
|
savedAt: z.ZodISODateTime;
|
|
69
70
|
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
70
71
|
}, z.core.$strict>>>;
|
|
72
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
73
|
+
code: z.ZodLiteral<"not_found">;
|
|
74
|
+
message: z.ZodString;
|
|
75
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
76
|
+
no_access: "no_access";
|
|
77
|
+
}>>;
|
|
71
78
|
}, z.core.$strict>, z.ZodObject<{
|
|
72
79
|
code: z.ZodEnum<{
|
|
73
|
-
not_found: "not_found";
|
|
74
|
-
unauthenticated: "unauthenticated";
|
|
75
80
|
unavailable: "unavailable";
|
|
81
|
+
unauthenticated: "unauthenticated";
|
|
76
82
|
}>;
|
|
77
83
|
message: z.ZodString;
|
|
78
84
|
}, z.core.$strict>], "code">;
|
package/dist/error/error.js
CHANGED
|
@@ -41,9 +41,13 @@ export const ErrorCurrent = z.strictObject({
|
|
|
41
41
|
savedAt: z.iso.datetime(),
|
|
42
42
|
values: z.record(z.string(), z.unknown()).optional(),
|
|
43
43
|
});
|
|
44
|
+
// Why a `not_found` is one (E166, #985): `no_access`, the node exists and the caller may not read it.
|
|
45
|
+
// Only `/api` says so, only to a person in their browser session, and only for reading a node, so
|
|
46
|
+
// the UI shows "No access" instead of the 404; the code stays `not_found` for every client.
|
|
47
|
+
export const notFoundReasons = ["no_access"];
|
|
44
48
|
// `issues` exists only next to `invalid` and `conflict` (a change of many entries names each stale
|
|
45
|
-
// one, #630, #625), `current` only next to `conflict` (E128)
|
|
46
|
-
// rejects them.
|
|
49
|
+
// one, #630, #625), `current` only next to `conflict` (E128), `reason` only next to `not_found`; on
|
|
50
|
+
// every other code a strict object rejects them.
|
|
47
51
|
export const ErrorResponse = z.strictObject({
|
|
48
52
|
error: z.discriminatedUnion("code", [
|
|
49
53
|
z.strictObject({
|
|
@@ -58,7 +62,12 @@ export const ErrorResponse = z.strictObject({
|
|
|
58
62
|
current: z.array(ErrorCurrent).optional(),
|
|
59
63
|
}),
|
|
60
64
|
z.strictObject({
|
|
61
|
-
code:
|
|
65
|
+
code: z.literal("not_found"),
|
|
66
|
+
message: z.string(),
|
|
67
|
+
reason: z.enum(notFoundReasons).optional(),
|
|
68
|
+
}),
|
|
69
|
+
z.strictObject({
|
|
70
|
+
code: ErrorCode.exclude(["invalid", "conflict", "not_found"]),
|
|
62
71
|
message: z.string(),
|
|
63
72
|
}),
|
|
64
73
|
]),
|
|
@@ -6,17 +6,41 @@ export declare const gadgetLimits: {
|
|
|
6
6
|
readonly bytes: number;
|
|
7
7
|
};
|
|
8
8
|
export declare const GadgetFunctionName: z.ZodString;
|
|
9
|
+
export declare const GadgetRequires: z.ZodString;
|
|
9
10
|
export declare const GadgetFunction: z.ZodObject<{
|
|
10
11
|
description: z.ZodString;
|
|
11
12
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
requires: z.ZodOptional<z.ZodString>;
|
|
12
14
|
}, z.core.$strict>;
|
|
13
15
|
export type GadgetFunction = z.infer<typeof GadgetFunction>;
|
|
16
|
+
export declare const GadgetAccess: z.ZodObject<{
|
|
17
|
+
service: z.ZodTemplateLiteral<`service_${string}`>;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
export type GadgetAccess = z.infer<typeof GadgetAccess>;
|
|
20
|
+
export declare const GadgetUseRight: z.ZodEnum<{
|
|
21
|
+
write: "write";
|
|
22
|
+
read: "read";
|
|
23
|
+
}>;
|
|
24
|
+
export type GadgetUseRight = z.infer<typeof GadgetUseRight>;
|
|
25
|
+
export declare const GadgetUses: z.ZodRecord<z.ZodTemplateLiteral<`node_${string}`>, z.ZodEnum<{
|
|
26
|
+
write: "write";
|
|
27
|
+
read: "read";
|
|
28
|
+
}>>;
|
|
29
|
+
export type GadgetUses = z.infer<typeof GadgetUses>;
|
|
14
30
|
export declare const GadgetManifest: z.ZodObject<{
|
|
15
31
|
name: z.ZodString;
|
|
16
32
|
description: z.ZodOptional<z.ZodString>;
|
|
33
|
+
access: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
service: z.ZodTemplateLiteral<`service_${string}`>;
|
|
35
|
+
}, z.core.$strict>>;
|
|
36
|
+
uses: z.ZodOptional<z.ZodRecord<z.ZodTemplateLiteral<`node_${string}`>, z.ZodEnum<{
|
|
37
|
+
write: "write";
|
|
38
|
+
read: "read";
|
|
39
|
+
}>>>;
|
|
17
40
|
functions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
18
41
|
description: z.ZodString;
|
|
19
42
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
43
|
+
requires: z.ZodOptional<z.ZodString>;
|
|
20
44
|
}, z.core.$strict>>;
|
|
21
45
|
}, z.core.$strict>;
|
|
22
46
|
export type GadgetManifest = z.infer<typeof GadgetManifest>;
|
|
@@ -40,6 +64,14 @@ export declare const GadgetCreateInput: z.ZodObject<{
|
|
|
40
64
|
}>>;
|
|
41
65
|
name: z.ZodString;
|
|
42
66
|
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
67
|
+
from: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
69
|
+
as: z.ZodEnum<{
|
|
70
|
+
link: "link";
|
|
71
|
+
copy: "copy";
|
|
72
|
+
}>;
|
|
73
|
+
uses: z.ZodOptional<z.ZodRecord<z.ZodTemplateLiteral<`node_${string}`>, z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
74
|
+
}, z.core.$strict>>;
|
|
43
75
|
idempotencyKey: z.ZodString;
|
|
44
76
|
}, z.core.$strict>;
|
|
45
77
|
export type GadgetCreateInput = z.infer<typeof GadgetCreateInput>;
|
|
@@ -52,6 +84,16 @@ export declare const GadgetGetInput: z.ZodObject<{
|
|
|
52
84
|
include: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodEnum<{
|
|
53
85
|
files: "files";
|
|
54
86
|
}>>, unknown>>;
|
|
87
|
+
compare: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
88
|
+
from: z.ZodPreprocess<z.ZodUnion<readonly [z.ZodEnum<{
|
|
89
|
+
live: "live";
|
|
90
|
+
draft: "draft";
|
|
91
|
+
}>, z.ZodNumber]>, unknown>;
|
|
92
|
+
to: z.ZodPreprocess<z.ZodUnion<readonly [z.ZodEnum<{
|
|
93
|
+
live: "live";
|
|
94
|
+
draft: "draft";
|
|
95
|
+
}>, z.ZodNumber]>, unknown>;
|
|
96
|
+
}, z.core.$strict>, unknown>>;
|
|
55
97
|
}, z.core.$strict>;
|
|
56
98
|
export type GadgetGetInput = z.infer<typeof GadgetGetInput>;
|
|
57
99
|
export declare const GadgetUpdateInput: z.ZodObject<{
|
|
@@ -65,6 +107,8 @@ export declare const GadgetUpdateInput: z.ZodObject<{
|
|
|
65
107
|
report: "report";
|
|
66
108
|
}>>;
|
|
67
109
|
logDays: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<14>, z.ZodLiteral<30>]>>;
|
|
110
|
+
uses: z.ZodOptional<z.ZodRecord<z.ZodTemplateLiteral<`node_${string}`>, z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
111
|
+
original: z.ZodOptional<z.ZodNull>;
|
|
68
112
|
}, z.core.$strict>>;
|
|
69
113
|
fromVersion: z.ZodOptional<z.ZodNumber>;
|
|
70
114
|
discard: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -132,8 +176,18 @@ export declare const GadgetClientLog: z.ZodObject<{
|
|
|
132
176
|
message: z.ZodString;
|
|
133
177
|
stack: z.ZodOptional<z.ZodString>;
|
|
134
178
|
}, z.core.$strict>>>;
|
|
179
|
+
startMs: z.ZodOptional<z.ZodNumber>;
|
|
135
180
|
}, z.core.$strict>;
|
|
136
181
|
export type GadgetClientLog = z.infer<typeof GadgetClientLog>;
|
|
182
|
+
export declare const GadgetDistAnswer: z.ZodUnion<readonly [z.ZodObject<{
|
|
183
|
+
js: z.ZodString;
|
|
184
|
+
css: z.ZodString;
|
|
185
|
+
bytes: z.ZodNumber;
|
|
186
|
+
gzipBytes: z.ZodNumber;
|
|
187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
188
|
+
buildError: z.ZodString;
|
|
189
|
+
}, z.core.$strip>]>;
|
|
190
|
+
export type GadgetDistAnswer = z.infer<typeof GadgetDistAnswer>;
|
|
137
191
|
export declare const GadgetCallCreateInput: z.ZodObject<{
|
|
138
192
|
gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
139
193
|
function: z.ZodString;
|
|
@@ -159,6 +213,17 @@ export declare const GadgetChange: z.ZodObject<{
|
|
|
159
213
|
}>;
|
|
160
214
|
}, z.core.$strip>;
|
|
161
215
|
export type GadgetChange = z.infer<typeof GadgetChange>;
|
|
216
|
+
export declare const GadgetDiffFile: z.ZodObject<{
|
|
217
|
+
path: z.ZodString;
|
|
218
|
+
change: z.ZodEnum<{
|
|
219
|
+
added: "added";
|
|
220
|
+
changed: "changed";
|
|
221
|
+
removed: "removed";
|
|
222
|
+
}>;
|
|
223
|
+
before: z.ZodNullable<z.ZodString>;
|
|
224
|
+
after: z.ZodNullable<z.ZodString>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
export type GadgetDiffFile = z.infer<typeof GadgetDiffFile>;
|
|
162
227
|
export declare const GadgetSettings: z.ZodObject<{
|
|
163
228
|
responsible: z.ZodNullable<z.ZodObject<{
|
|
164
229
|
userId: z.ZodString;
|
|
@@ -180,11 +245,11 @@ export declare const GadgetToolUse: z.ZodObject<{
|
|
|
180
245
|
name: z.ZodString;
|
|
181
246
|
durationMs: z.ZodNumber;
|
|
182
247
|
code: z.ZodNullable<z.ZodEnum<{
|
|
248
|
+
unavailable: "unavailable";
|
|
183
249
|
not_found: "not_found";
|
|
184
250
|
invalid: "invalid";
|
|
185
251
|
conflict: "conflict";
|
|
186
252
|
unauthenticated: "unauthenticated";
|
|
187
|
-
unavailable: "unavailable";
|
|
188
253
|
}>>;
|
|
189
254
|
}, z.core.$strip>;
|
|
190
255
|
export type GadgetToolUse = z.infer<typeof GadgetToolUse>;
|
|
@@ -207,11 +272,11 @@ export declare const GadgetTestResult: z.ZodObject<{
|
|
|
207
272
|
name: z.ZodString;
|
|
208
273
|
durationMs: z.ZodNumber;
|
|
209
274
|
code: z.ZodNullable<z.ZodEnum<{
|
|
275
|
+
unavailable: "unavailable";
|
|
210
276
|
not_found: "not_found";
|
|
211
277
|
invalid: "invalid";
|
|
212
278
|
conflict: "conflict";
|
|
213
279
|
unauthenticated: "unauthenticated";
|
|
214
|
-
unavailable: "unavailable";
|
|
215
280
|
}>>;
|
|
216
281
|
}, z.core.$strip>>>;
|
|
217
282
|
}, z.core.$strip>;
|
|
@@ -223,11 +288,11 @@ export declare const GadgetTestHooks: z.ZodObject<{
|
|
|
223
288
|
name: z.ZodString;
|
|
224
289
|
durationMs: z.ZodNumber;
|
|
225
290
|
code: z.ZodNullable<z.ZodEnum<{
|
|
291
|
+
unavailable: "unavailable";
|
|
226
292
|
not_found: "not_found";
|
|
227
293
|
invalid: "invalid";
|
|
228
294
|
conflict: "conflict";
|
|
229
295
|
unauthenticated: "unauthenticated";
|
|
230
|
-
unavailable: "unavailable";
|
|
231
296
|
}>>;
|
|
232
297
|
}, z.core.$strip>>;
|
|
233
298
|
}, z.core.$strip>;
|
|
@@ -299,11 +364,11 @@ export declare const GadgetTestRun: z.ZodObject<{
|
|
|
299
364
|
name: z.ZodString;
|
|
300
365
|
durationMs: z.ZodNumber;
|
|
301
366
|
code: z.ZodNullable<z.ZodEnum<{
|
|
367
|
+
unavailable: "unavailable";
|
|
302
368
|
not_found: "not_found";
|
|
303
369
|
invalid: "invalid";
|
|
304
370
|
conflict: "conflict";
|
|
305
371
|
unauthenticated: "unauthenticated";
|
|
306
|
-
unavailable: "unavailable";
|
|
307
372
|
}>>;
|
|
308
373
|
}, z.core.$strip>>>;
|
|
309
374
|
}, z.core.$strip>>;
|
|
@@ -314,11 +379,11 @@ export declare const GadgetTestRun: z.ZodObject<{
|
|
|
314
379
|
name: z.ZodString;
|
|
315
380
|
durationMs: z.ZodNumber;
|
|
316
381
|
code: z.ZodNullable<z.ZodEnum<{
|
|
382
|
+
unavailable: "unavailable";
|
|
317
383
|
not_found: "not_found";
|
|
318
384
|
invalid: "invalid";
|
|
319
385
|
conflict: "conflict";
|
|
320
386
|
unauthenticated: "unauthenticated";
|
|
321
|
-
unavailable: "unavailable";
|
|
322
387
|
}>>;
|
|
323
388
|
}, z.core.$strip>>;
|
|
324
389
|
}, z.core.$strip>>>;
|
|
@@ -353,12 +418,21 @@ export declare const GadgetDetail: z.ZodObject<{
|
|
|
353
418
|
}, z.core.$strip>>;
|
|
354
419
|
}, z.core.$strip>;
|
|
355
420
|
version: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>>;
|
|
421
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
356
422
|
manifest: z.ZodNullable<z.ZodObject<{
|
|
357
423
|
name: z.ZodString;
|
|
358
424
|
description: z.ZodOptional<z.ZodString>;
|
|
425
|
+
access: z.ZodOptional<z.ZodObject<{
|
|
426
|
+
service: z.ZodTemplateLiteral<`service_${string}`>;
|
|
427
|
+
}, z.core.$strict>>;
|
|
428
|
+
uses: z.ZodOptional<z.ZodRecord<z.ZodTemplateLiteral<`node_${string}`>, z.ZodEnum<{
|
|
429
|
+
write: "write";
|
|
430
|
+
read: "read";
|
|
431
|
+
}>>>;
|
|
359
432
|
functions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
360
433
|
description: z.ZodString;
|
|
361
434
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
435
|
+
requires: z.ZodOptional<z.ZodString>;
|
|
362
436
|
}, z.core.$strict>>;
|
|
363
437
|
}, z.core.$strict>>;
|
|
364
438
|
files: z.ZodArray<z.ZodObject<{
|
|
@@ -397,6 +471,14 @@ export declare const GadgetDetail: z.ZodObject<{
|
|
|
397
471
|
}>;
|
|
398
472
|
}, z.core.$strip>>;
|
|
399
473
|
newTools: z.ZodArray<z.ZodString>;
|
|
474
|
+
newUses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
475
|
+
nodeId: z.ZodString;
|
|
476
|
+
name: z.ZodNullable<z.ZodString>;
|
|
477
|
+
right: z.ZodEnum<{
|
|
478
|
+
write: "write";
|
|
479
|
+
read: "read";
|
|
480
|
+
}>;
|
|
481
|
+
}, z.core.$strip>>>;
|
|
400
482
|
}, z.core.$strip>>;
|
|
401
483
|
test: z.ZodNullable<z.ZodObject<{
|
|
402
484
|
version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
|
|
@@ -441,11 +523,11 @@ export declare const GadgetDetail: z.ZodObject<{
|
|
|
441
523
|
name: z.ZodString;
|
|
442
524
|
durationMs: z.ZodNumber;
|
|
443
525
|
code: z.ZodNullable<z.ZodEnum<{
|
|
526
|
+
unavailable: "unavailable";
|
|
444
527
|
not_found: "not_found";
|
|
445
528
|
invalid: "invalid";
|
|
446
529
|
conflict: "conflict";
|
|
447
530
|
unauthenticated: "unauthenticated";
|
|
448
|
-
unavailable: "unavailable";
|
|
449
531
|
}>>;
|
|
450
532
|
}, z.core.$strip>>>;
|
|
451
533
|
}, z.core.$strip>>;
|
|
@@ -456,11 +538,11 @@ export declare const GadgetDetail: z.ZodObject<{
|
|
|
456
538
|
name: z.ZodString;
|
|
457
539
|
durationMs: z.ZodNumber;
|
|
458
540
|
code: z.ZodNullable<z.ZodEnum<{
|
|
541
|
+
unavailable: "unavailable";
|
|
459
542
|
not_found: "not_found";
|
|
460
543
|
invalid: "invalid";
|
|
461
544
|
conflict: "conflict";
|
|
462
545
|
unauthenticated: "unauthenticated";
|
|
463
|
-
unavailable: "unavailable";
|
|
464
546
|
}>>;
|
|
465
547
|
}, z.core.$strip>>;
|
|
466
548
|
}, z.core.$strip>>>;
|
|
@@ -482,6 +564,17 @@ export declare const GadgetDetail: z.ZodObject<{
|
|
|
482
564
|
errors: z.ZodNumber;
|
|
483
565
|
lastCallAt: z.ZodNullable<z.ZodISODateTime>;
|
|
484
566
|
}, z.core.$strip>>;
|
|
567
|
+
dist: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
568
|
+
bytes: z.ZodNumber;
|
|
569
|
+
gzipBytes: z.ZodNumber;
|
|
570
|
+
startMs: z.ZodNullable<z.ZodNumber>;
|
|
571
|
+
limits: z.ZodObject<{
|
|
572
|
+
bytes: z.ZodNumber;
|
|
573
|
+
startMs: z.ZodNumber;
|
|
574
|
+
}, z.core.$strip>;
|
|
575
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
576
|
+
error: z.ZodNullable<z.ZodString>;
|
|
577
|
+
}, z.core.$strip>>>;
|
|
485
578
|
settings: z.ZodNullable<z.ZodObject<{
|
|
486
579
|
responsible: z.ZodNullable<z.ZodObject<{
|
|
487
580
|
userId: z.ZodString;
|
|
@@ -501,6 +594,47 @@ export declare const GadgetDetail: z.ZodObject<{
|
|
|
501
594
|
rights: z.ZodObject<{
|
|
502
595
|
write: z.ZodBoolean;
|
|
503
596
|
}, z.core.$strip>;
|
|
597
|
+
access: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
598
|
+
serviceId: z.ZodString;
|
|
599
|
+
name: z.ZodNullable<z.ZodString>;
|
|
600
|
+
archived: z.ZodBoolean;
|
|
601
|
+
functions: z.ZodArray<z.ZodString>;
|
|
602
|
+
held: z.ZodArray<z.ZodString>;
|
|
603
|
+
}, z.core.$strip>>>;
|
|
604
|
+
uses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
605
|
+
nodeId: z.ZodString;
|
|
606
|
+
name: z.ZodNullable<z.ZodString>;
|
|
607
|
+
path: z.ZodArray<z.ZodString>;
|
|
608
|
+
right: z.ZodEnum<{
|
|
609
|
+
write: "write";
|
|
610
|
+
read: "read";
|
|
611
|
+
}>;
|
|
612
|
+
missing: z.ZodBoolean;
|
|
613
|
+
own: z.ZodOptional<z.ZodBoolean>;
|
|
614
|
+
}, z.core.$strip>>>>;
|
|
615
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
616
|
+
originalId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
617
|
+
name: z.ZodNullable<z.ZodString>;
|
|
618
|
+
uses: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
619
|
+
}, z.core.$strip>>>;
|
|
620
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
621
|
+
gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
622
|
+
name: z.ZodNullable<z.ZodString>;
|
|
623
|
+
}, z.core.$strip>>>>;
|
|
624
|
+
diff: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
625
|
+
from: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>>;
|
|
626
|
+
to: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>>;
|
|
627
|
+
files: z.ZodArray<z.ZodObject<{
|
|
628
|
+
path: z.ZodString;
|
|
629
|
+
change: z.ZodEnum<{
|
|
630
|
+
added: "added";
|
|
631
|
+
changed: "changed";
|
|
632
|
+
removed: "removed";
|
|
633
|
+
}>;
|
|
634
|
+
before: z.ZodNullable<z.ZodString>;
|
|
635
|
+
after: z.ZodNullable<z.ZodString>;
|
|
636
|
+
}, z.core.$strip>>;
|
|
637
|
+
}, z.core.$strip>>>;
|
|
504
638
|
rev: z.ZodNumber;
|
|
505
639
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
506
640
|
}, z.core.$strip>;
|
|
@@ -545,13 +679,17 @@ export declare const GadgetCall: z.ZodObject<{
|
|
|
545
679
|
name: z.ZodString;
|
|
546
680
|
durationMs: z.ZodNumber;
|
|
547
681
|
code: z.ZodNullable<z.ZodEnum<{
|
|
682
|
+
unavailable: "unavailable";
|
|
548
683
|
not_found: "not_found";
|
|
549
684
|
invalid: "invalid";
|
|
550
685
|
conflict: "conflict";
|
|
551
686
|
unauthenticated: "unauthenticated";
|
|
552
|
-
unavailable: "unavailable";
|
|
553
687
|
}>>;
|
|
554
688
|
}, z.core.$strip>>;
|
|
689
|
+
missing: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
690
|
+
nodeId: z.ZodNullable<z.ZodString>;
|
|
691
|
+
name: z.ZodNullable<z.ZodString>;
|
|
692
|
+
}, z.core.$strip>>>;
|
|
555
693
|
}, z.core.$strip>;
|
|
556
694
|
export type GadgetCall = z.infer<typeof GadgetCall>;
|
|
557
695
|
export declare const GadgetCallItem: z.ZodObject<{
|
|
@@ -654,11 +792,11 @@ export declare const GadgetCallEntry: z.ZodObject<{
|
|
|
654
792
|
name: z.ZodString;
|
|
655
793
|
durationMs: z.ZodNumber;
|
|
656
794
|
code: z.ZodNullable<z.ZodEnum<{
|
|
795
|
+
unavailable: "unavailable";
|
|
657
796
|
not_found: "not_found";
|
|
658
797
|
invalid: "invalid";
|
|
659
798
|
conflict: "conflict";
|
|
660
799
|
unauthenticated: "unauthenticated";
|
|
661
|
-
unavailable: "unavailable";
|
|
662
800
|
}>>;
|
|
663
801
|
}, z.core.$strip>>;
|
|
664
802
|
}, z.core.$strip>;
|