@anchrd/colab-sdk 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -2
- package/dist/actions/actions.d.ts +810 -0
- package/dist/actions/actions.js +177 -0
- package/dist/admin-mode.d.ts +2 -0
- package/dist/admin-mode.js +5 -0
- package/dist/apps/apps.d.ts +108 -0
- package/dist/apps/apps.js +73 -0
- package/dist/archive/archive.d.ts +25 -0
- package/dist/archive/archive.js +27 -0
- package/dist/auth/auth.d.ts +27 -0
- package/dist/auth/auth.js +22 -0
- package/dist/authorization/authorization.d.ts +36 -0
- package/dist/authorization/authorization.js +23 -0
- package/dist/boards/boards.d.ts +612 -0
- package/dist/boards/boards.js +289 -0
- package/dist/columns/columns.d.ts +28 -0
- package/dist/columns/columns.js +28 -0
- package/dist/connections/connections.d.ts +149 -0
- package/dist/connections/connections.js +74 -0
- package/dist/connectors/connectors.d.ts +148 -0
- package/dist/connectors/connectors.js +83 -0
- package/dist/dashboards/dashboards.d.ts +221 -0
- package/dist/dashboards/dashboards.js +520 -0
- package/dist/directory/directory.d.ts +20 -0
- package/dist/directory/directory.js +18 -0
- package/dist/documents/documents.d.ts +61 -0
- package/dist/documents/documents.js +58 -0
- package/dist/error/error.d.ts +34 -0
- package/dist/error/error.js +30 -0
- package/dist/events/events.d.ts +104 -0
- package/dist/events/events.js +69 -0
- package/dist/files/files.d.ts +60 -0
- package/dist/files/files.js +139 -0
- package/dist/functions/functions.d.ts +26 -0
- package/dist/functions/functions.js +28 -0
- package/dist/grammar/grammar.d.ts +62 -0
- package/dist/grammar/grammar.js +197 -0
- package/dist/grants/grants.d.ts +93 -0
- package/dist/grants/grants.js +66 -0
- package/dist/ids/ids.d.ts +5 -0
- package/dist/ids/ids.js +12 -0
- package/dist/instructions/instructions.d.ts +19 -0
- package/dist/instructions/instructions.js +35 -0
- package/dist/interfaces/interfaces.d.ts +41 -0
- package/dist/interfaces/interfaces.js +52 -0
- package/dist/invitations/invitations.d.ts +98 -0
- package/dist/invitations/invitations.js +58 -0
- package/dist/links/links.d.ts +76 -0
- package/dist/links/links.js +73 -0
- package/dist/list-input.d.ts +3 -0
- package/dist/list-input.js +11 -0
- package/dist/machines/machines.d.ts +69 -0
- package/dist/machines/machines.js +39 -0
- package/dist/messages/messages.d.ts +117 -0
- package/dist/messages/messages.js +77 -0
- package/dist/nodes/nodes.d.ts +673 -0
- package/dist/nodes/nodes.js +354 -0
- package/dist/operators/operators.d.ts +898 -0
- package/dist/operators/operators.js +398 -0
- package/dist/pages/pages.d.ts +89 -0
- package/dist/pages/pages.js +62 -0
- package/dist/primitives/primitives.d.ts +5 -0
- package/dist/primitives/primitives.js +19 -0
- package/dist/profile/profile.d.ts +37 -0
- package/dist/profile/profile.js +43 -0
- package/dist/roles/roles.d.ts +135 -0
- package/dist/roles/roles.js +87 -0
- package/dist/runs/runs.d.ts +244 -0
- package/dist/runs/runs.js +137 -0
- package/dist/runtime-config.d.ts +12 -0
- package/dist/runtime-config.js +18 -0
- package/dist/sdk.d.ts +45 -0
- package/dist/sdk.js +48 -0
- package/dist/secrets/secrets.d.ts +65 -0
- package/dist/secrets/secrets.js +57 -0
- package/dist/service-client/service-client.d.ts +35 -0
- package/dist/service-client/service-client.js +90 -0
- package/dist/services/services.d.ts +122 -0
- package/dist/services/services.js +89 -0
- package/dist/sso/sso.d.ts +70 -0
- package/dist/sso/sso.js +54 -0
- package/dist/tables/tables.d.ts +133 -0
- package/dist/tables/tables.js +131 -0
- package/dist/tool.d.ts +31 -0
- package/dist/tool.js +4 -0
- package/dist/user-settings/user-settings.d.ts +44 -0
- package/dist/user-settings/user-settings.js +44 -0
- package/dist/users/users.d.ts +254 -0
- package/dist/users/users.js +125 -0
- package/dist/validation/validation.d.ts +106 -0
- package/dist/validation/validation.js +41 -0
- package/dist/versions/versions.d.ts +100 -0
- package/dist/versions/versions.js +70 -0
- package/package.json +27 -4
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ConnectorId: z.ZodString;
|
|
3
|
+
export type ConnectorId = z.infer<typeof ConnectorId>;
|
|
4
|
+
export declare const CallId: z.ZodTemplateLiteral<`call_${string}`>;
|
|
5
|
+
export declare const ConnectorListInput: z.ZodObject<{
|
|
6
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
7
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
export type ConnectorListInput = z.infer<typeof ConnectorListInput>;
|
|
10
|
+
export declare const ConnectorGetInput: z.ZodObject<{
|
|
11
|
+
connectorId: z.ZodString;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export type ConnectorGetInput = z.infer<typeof ConnectorGetInput>;
|
|
14
|
+
export declare const ConnectorField: z.ZodObject<{
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
label: z.ZodString;
|
|
17
|
+
help: z.ZodOptional<z.ZodString>;
|
|
18
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
19
|
+
optional: z.ZodBoolean;
|
|
20
|
+
kind: z.ZodEnum<{
|
|
21
|
+
secret: "secret";
|
|
22
|
+
setting: "setting";
|
|
23
|
+
}>;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
export type ConnectorField = z.infer<typeof ConnectorField>;
|
|
26
|
+
export declare const ConnectorTool: z.ZodObject<{
|
|
27
|
+
function: z.ZodString;
|
|
28
|
+
description: z.ZodString;
|
|
29
|
+
writes: z.ZodBoolean;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
export type ConnectorTool = z.infer<typeof ConnectorTool>;
|
|
32
|
+
export declare const Connector: z.ZodObject<{
|
|
33
|
+
connectorId: z.ZodString;
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
category: z.ZodString;
|
|
36
|
+
description: z.ZodString;
|
|
37
|
+
icon: z.ZodString;
|
|
38
|
+
catalog: z.ZodBoolean;
|
|
39
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
40
|
+
function: z.ZodString;
|
|
41
|
+
description: z.ZodString;
|
|
42
|
+
writes: z.ZodBoolean;
|
|
43
|
+
}, z.core.$strict>>;
|
|
44
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
label: z.ZodString;
|
|
47
|
+
help: z.ZodOptional<z.ZodString>;
|
|
48
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
49
|
+
optional: z.ZodBoolean;
|
|
50
|
+
kind: z.ZodEnum<{
|
|
51
|
+
secret: "secret";
|
|
52
|
+
setting: "setting";
|
|
53
|
+
}>;
|
|
54
|
+
}, z.core.$strict>>;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
export type Connector = z.infer<typeof Connector>;
|
|
57
|
+
export declare const ConnectorList: z.ZodObject<{
|
|
58
|
+
items: z.ZodArray<z.ZodObject<{
|
|
59
|
+
connectorId: z.ZodString;
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
category: z.ZodString;
|
|
62
|
+
description: z.ZodString;
|
|
63
|
+
icon: z.ZodString;
|
|
64
|
+
catalog: z.ZodBoolean;
|
|
65
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
66
|
+
function: z.ZodString;
|
|
67
|
+
description: z.ZodString;
|
|
68
|
+
writes: z.ZodBoolean;
|
|
69
|
+
}, z.core.$strict>>;
|
|
70
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
71
|
+
name: z.ZodString;
|
|
72
|
+
label: z.ZodString;
|
|
73
|
+
help: z.ZodOptional<z.ZodString>;
|
|
74
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
75
|
+
optional: z.ZodBoolean;
|
|
76
|
+
kind: z.ZodEnum<{
|
|
77
|
+
secret: "secret";
|
|
78
|
+
setting: "setting";
|
|
79
|
+
}>;
|
|
80
|
+
}, z.core.$strict>>;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
83
|
+
}, z.core.$strict>;
|
|
84
|
+
export type ConnectorList = z.infer<typeof ConnectorList>;
|
|
85
|
+
export declare const CallSource: z.ZodEnum<{
|
|
86
|
+
schedule: "schedule";
|
|
87
|
+
mcp: "mcp";
|
|
88
|
+
api: "api";
|
|
89
|
+
}>;
|
|
90
|
+
export type CallSource = z.infer<typeof CallSource>;
|
|
91
|
+
export declare const CallListInput: z.ZodObject<{
|
|
92
|
+
connectorId: z.ZodString;
|
|
93
|
+
failed: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
|
|
94
|
+
cursor: z.ZodOptional<z.ZodTemplateLiteral<`call_${string}`>>;
|
|
95
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
96
|
+
}, z.core.$strict>;
|
|
97
|
+
export type CallListInput = z.infer<typeof CallListInput>;
|
|
98
|
+
export declare const Call: z.ZodObject<{
|
|
99
|
+
callId: z.ZodTemplateLiteral<`call_${string}`>;
|
|
100
|
+
connectorId: z.ZodString;
|
|
101
|
+
function: z.ZodString;
|
|
102
|
+
source: z.ZodEnum<{
|
|
103
|
+
schedule: "schedule";
|
|
104
|
+
mcp: "mcp";
|
|
105
|
+
api: "api";
|
|
106
|
+
}>;
|
|
107
|
+
status: z.ZodNullable<z.ZodNumber>;
|
|
108
|
+
failed: z.ZodBoolean;
|
|
109
|
+
durationMs: z.ZodNumber;
|
|
110
|
+
createdAt: z.ZodISODateTime;
|
|
111
|
+
actor: z.ZodNullable<z.ZodObject<{
|
|
112
|
+
userId: z.ZodString;
|
|
113
|
+
name: z.ZodNullable<z.ZodString>;
|
|
114
|
+
kind: z.ZodNullable<z.ZodEnum<{
|
|
115
|
+
machine: "machine";
|
|
116
|
+
human: "human";
|
|
117
|
+
}>>;
|
|
118
|
+
image: z.ZodNullable<z.ZodString>;
|
|
119
|
+
}, z.core.$strict>>;
|
|
120
|
+
}, z.core.$strict>;
|
|
121
|
+
export type Call = z.infer<typeof Call>;
|
|
122
|
+
export declare const CallList: z.ZodObject<{
|
|
123
|
+
items: z.ZodArray<z.ZodObject<{
|
|
124
|
+
callId: z.ZodTemplateLiteral<`call_${string}`>;
|
|
125
|
+
connectorId: z.ZodString;
|
|
126
|
+
function: z.ZodString;
|
|
127
|
+
source: z.ZodEnum<{
|
|
128
|
+
schedule: "schedule";
|
|
129
|
+
mcp: "mcp";
|
|
130
|
+
api: "api";
|
|
131
|
+
}>;
|
|
132
|
+
status: z.ZodNullable<z.ZodNumber>;
|
|
133
|
+
failed: z.ZodBoolean;
|
|
134
|
+
durationMs: z.ZodNumber;
|
|
135
|
+
createdAt: z.ZodISODateTime;
|
|
136
|
+
actor: z.ZodNullable<z.ZodObject<{
|
|
137
|
+
userId: z.ZodString;
|
|
138
|
+
name: z.ZodNullable<z.ZodString>;
|
|
139
|
+
kind: z.ZodNullable<z.ZodEnum<{
|
|
140
|
+
machine: "machine";
|
|
141
|
+
human: "human";
|
|
142
|
+
}>>;
|
|
143
|
+
image: z.ZodNullable<z.ZodString>;
|
|
144
|
+
}, z.core.$strict>>;
|
|
145
|
+
}, z.core.$strict>>;
|
|
146
|
+
nextCursor: z.ZodNullable<z.ZodTemplateLiteral<`call_${string}`>>;
|
|
147
|
+
}, z.core.$strict>;
|
|
148
|
+
export type CallList = z.infer<typeof CallList>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { idSchema } from "../ids/ids.js";
|
|
3
|
+
import { Flag, Limit } from "../list-input.js";
|
|
4
|
+
// The connectors' catalog and call log (#5): the inputs of `connectors_connector_list`,
|
|
5
|
+
// `connectors_connector_get` and `connectors_call_list` and the answers the UI (#7) reads.
|
|
6
|
+
// The id from a connector's code (`shopify`), never a ULID: one single word (E64).
|
|
7
|
+
export const ConnectorId = z.string().regex(/^[a-z][a-z0-9]*$/, "A connector id is one word");
|
|
8
|
+
export const CallId = idSchema("call");
|
|
9
|
+
export const ConnectorListInput = z.strictObject({
|
|
10
|
+
cursor: ConnectorId.optional(),
|
|
11
|
+
limit: Limit.optional(),
|
|
12
|
+
});
|
|
13
|
+
export const ConnectorGetInput = z.strictObject({ connectorId: ConnectorId });
|
|
14
|
+
// One field of the form a connection is entered in (#7), from the connector's `settings` and
|
|
15
|
+
// `secrets` and their `.meta()`. A `secret` field is a password field and is never read back.
|
|
16
|
+
//
|
|
17
|
+
// ⚠️ Not `key` and not `secret: true`: `/mcp` strikes every value under a key that looks like a
|
|
18
|
+
// secret (`redactSecrets` in `shared`), and both names match. `name` and `kind` survive it.
|
|
19
|
+
export const ConnectorField = z.strictObject({
|
|
20
|
+
// The key in `settings` or `secrets`, `SHOPIFY_SHOP`.
|
|
21
|
+
name: z.string(),
|
|
22
|
+
label: z.string(),
|
|
23
|
+
help: z.string().optional(),
|
|
24
|
+
placeholder: z.string().optional(),
|
|
25
|
+
optional: z.boolean(),
|
|
26
|
+
kind: z.enum(["setting", "secret"]),
|
|
27
|
+
});
|
|
28
|
+
export const ConnectorTool = z.strictObject({
|
|
29
|
+
// The key in the connector's `tools`, `order-list`; the right is `connectors / <id> / <function>`.
|
|
30
|
+
function: z.string(),
|
|
31
|
+
description: z.string(),
|
|
32
|
+
writes: z.boolean(),
|
|
33
|
+
});
|
|
34
|
+
export const Connector = z.strictObject({
|
|
35
|
+
connectorId: ConnectorId,
|
|
36
|
+
name: z.string(),
|
|
37
|
+
category: z.string(),
|
|
38
|
+
description: z.string(),
|
|
39
|
+
// The SVG as text, for the catalog tile.
|
|
40
|
+
icon: z.string(),
|
|
41
|
+
// From the catalog `anchrd/connectors`, rather than the installation's own.
|
|
42
|
+
catalog: z.boolean(),
|
|
43
|
+
tools: z.array(ConnectorTool),
|
|
44
|
+
fields: z.array(ConnectorField),
|
|
45
|
+
});
|
|
46
|
+
export const ConnectorList = z.strictObject({
|
|
47
|
+
items: z.array(Connector),
|
|
48
|
+
nextCursor: ConnectorId.nullable(),
|
|
49
|
+
});
|
|
50
|
+
// How a call came in: an AI or machine over `/mcp`, the UI (the test button, #7), or the daily test.
|
|
51
|
+
export const CallSource = z.enum(["mcp", "api", "schedule"]);
|
|
52
|
+
export const CallListInput = z.strictObject({
|
|
53
|
+
connectorId: ConnectorId,
|
|
54
|
+
// Only the failed calls, or only the others.
|
|
55
|
+
failed: Flag.optional(),
|
|
56
|
+
cursor: CallId.optional(),
|
|
57
|
+
limit: Limit.optional(),
|
|
58
|
+
});
|
|
59
|
+
// One line of a connector's log: who, which function, the answer and how long it took, never the
|
|
60
|
+
// arguments or the result (E69).
|
|
61
|
+
export const Call = z.strictObject({
|
|
62
|
+
callId: CallId,
|
|
63
|
+
connectorId: ConnectorId,
|
|
64
|
+
// `order-list`, or `test` for the connection test.
|
|
65
|
+
function: z.string(),
|
|
66
|
+
source: CallSource,
|
|
67
|
+
// The provider's HTTP status, 200 on success, null without an answer.
|
|
68
|
+
status: z.number().int().nullable(),
|
|
69
|
+
failed: z.boolean(),
|
|
70
|
+
durationMs: z.number().int(),
|
|
71
|
+
createdAt: z.iso.datetime(),
|
|
72
|
+
// Null for the daily test, which nobody started. Name, kind and picture come from `access`, null
|
|
73
|
+
// when it no longer knows the id; the picture is null for a machine and a person without one (#140).
|
|
74
|
+
actor: z
|
|
75
|
+
.strictObject({
|
|
76
|
+
userId: z.string(),
|
|
77
|
+
name: z.string().nullable(),
|
|
78
|
+
kind: z.enum(["human", "machine"]).nullable(),
|
|
79
|
+
image: z.string().nullable(),
|
|
80
|
+
})
|
|
81
|
+
.nullable(),
|
|
82
|
+
});
|
|
83
|
+
export const CallList = z.strictObject({ items: z.array(Call), nextCursor: CallId.nullable() });
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DashboardId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
3
|
+
export type DashboardId = z.infer<typeof DashboardId>;
|
|
4
|
+
export declare const rhythms: readonly ["manual", "daily", "weekly", "monthly", "dates"];
|
|
5
|
+
export declare const weekdays: readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
|
|
6
|
+
export declare const whileOpenModes: readonly ["wait", "continue"];
|
|
7
|
+
export declare const WhileOpen: z.ZodEnum<{
|
|
8
|
+
wait: "wait";
|
|
9
|
+
continue: "continue";
|
|
10
|
+
}>;
|
|
11
|
+
export type WhileOpen = z.infer<typeof WhileOpen>;
|
|
12
|
+
export declare const Schedule: z.ZodObject<{
|
|
13
|
+
rhythm: z.ZodEnum<{
|
|
14
|
+
manual: "manual";
|
|
15
|
+
daily: "daily";
|
|
16
|
+
weekly: "weekly";
|
|
17
|
+
monthly: "monthly";
|
|
18
|
+
dates: "dates";
|
|
19
|
+
}>;
|
|
20
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
21
|
+
monday: "monday";
|
|
22
|
+
tuesday: "tuesday";
|
|
23
|
+
wednesday: "wednesday";
|
|
24
|
+
thursday: "thursday";
|
|
25
|
+
friday: "friday";
|
|
26
|
+
saturday: "saturday";
|
|
27
|
+
sunday: "sunday";
|
|
28
|
+
}>>>;
|
|
29
|
+
dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
|
|
30
|
+
times: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
|
+
dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
33
|
+
whileOpen: z.ZodOptional<z.ZodEnum<{
|
|
34
|
+
wait: "wait";
|
|
35
|
+
continue: "continue";
|
|
36
|
+
}>>;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
export type Schedule = z.infer<typeof Schedule>;
|
|
39
|
+
export declare const boxTypes: readonly ["metric", "line", "bar", "area", "summary", "note"];
|
|
40
|
+
export type BoxType = (typeof boxTypes)[number];
|
|
41
|
+
export declare const chartTypes: readonly ["line", "bar", "area"];
|
|
42
|
+
export declare const DashboardKey: z.ZodString;
|
|
43
|
+
export type DashboardKey = z.infer<typeof DashboardKey>;
|
|
44
|
+
declare const DashboardBox: z.ZodObject<{
|
|
45
|
+
metric: z.ZodOptional<z.ZodString>;
|
|
46
|
+
line: z.ZodOptional<z.ZodString>;
|
|
47
|
+
bar: z.ZodOptional<z.ZodString>;
|
|
48
|
+
area: z.ZodOptional<z.ZodString>;
|
|
49
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
50
|
+
note: z.ZodOptional<z.ZodString>;
|
|
51
|
+
title: z.ZodOptional<z.ZodString>;
|
|
52
|
+
description: z.ZodOptional<z.ZodString>;
|
|
53
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
54
|
+
width: z.ZodOptional<z.ZodInt>;
|
|
55
|
+
shows: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
56
|
+
uses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
|
+
assignee: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
export type DashboardBox = z.infer<typeof DashboardBox>;
|
|
60
|
+
export declare const DashboardConfig: z.ZodObject<{
|
|
61
|
+
instruction: z.ZodOptional<z.ZodString>;
|
|
62
|
+
schedule: z.ZodDefault<z.ZodObject<{
|
|
63
|
+
rhythm: z.ZodEnum<{
|
|
64
|
+
manual: "manual";
|
|
65
|
+
daily: "daily";
|
|
66
|
+
weekly: "weekly";
|
|
67
|
+
monthly: "monthly";
|
|
68
|
+
dates: "dates";
|
|
69
|
+
}>;
|
|
70
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
71
|
+
monday: "monday";
|
|
72
|
+
tuesday: "tuesday";
|
|
73
|
+
wednesday: "wednesday";
|
|
74
|
+
thursday: "thursday";
|
|
75
|
+
friday: "friday";
|
|
76
|
+
saturday: "saturday";
|
|
77
|
+
sunday: "sunday";
|
|
78
|
+
}>>>;
|
|
79
|
+
dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
|
|
80
|
+
times: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
81
|
+
dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
82
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
83
|
+
whileOpen: z.ZodOptional<z.ZodEnum<{
|
|
84
|
+
wait: "wait";
|
|
85
|
+
continue: "continue";
|
|
86
|
+
}>>;
|
|
87
|
+
}, z.core.$strict>>;
|
|
88
|
+
metrics: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
89
|
+
title: z.ZodString;
|
|
90
|
+
description: z.ZodOptional<z.ZodString>;
|
|
91
|
+
instructions: z.ZodString;
|
|
92
|
+
source: z.ZodOptional<z.ZodString>;
|
|
93
|
+
assignee: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
94
|
+
}, z.core.$strict>>>;
|
|
95
|
+
sections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
96
|
+
title: z.ZodString;
|
|
97
|
+
description: z.ZodOptional<z.ZodString>;
|
|
98
|
+
boxes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
99
|
+
metric: z.ZodOptional<z.ZodString>;
|
|
100
|
+
line: z.ZodOptional<z.ZodString>;
|
|
101
|
+
bar: z.ZodOptional<z.ZodString>;
|
|
102
|
+
area: z.ZodOptional<z.ZodString>;
|
|
103
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
104
|
+
note: z.ZodOptional<z.ZodString>;
|
|
105
|
+
title: z.ZodOptional<z.ZodString>;
|
|
106
|
+
description: z.ZodOptional<z.ZodString>;
|
|
107
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
108
|
+
width: z.ZodOptional<z.ZodInt>;
|
|
109
|
+
shows: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
110
|
+
uses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
111
|
+
assignee: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
112
|
+
}, z.core.$strict>>>;
|
|
113
|
+
}, z.core.$strict>>>;
|
|
114
|
+
}, z.core.$strict>;
|
|
115
|
+
export type DashboardConfig = z.infer<typeof DashboardConfig>;
|
|
116
|
+
export declare const DashboardRun: z.ZodObject<{
|
|
117
|
+
metrics: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
118
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodNull]>;
|
|
119
|
+
source: z.ZodNullable<z.ZodString>;
|
|
120
|
+
parameter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
121
|
+
report: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
recommendation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
|
+
}, z.core.$strict>>>;
|
|
124
|
+
summaries: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
125
|
+
text: z.ZodNullable<z.ZodString>;
|
|
126
|
+
report: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
|
+
recommendation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
}, z.core.$strict>>>;
|
|
129
|
+
}, z.core.$strict>;
|
|
130
|
+
export type DashboardRun = z.infer<typeof DashboardRun>;
|
|
131
|
+
export declare const DashboardCreateInput: z.ZodObject<{
|
|
132
|
+
parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
133
|
+
name: z.ZodString;
|
|
134
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
135
|
+
yaml: z.ZodOptional<z.ZodString>;
|
|
136
|
+
idempotencyKey: z.ZodString;
|
|
137
|
+
}, z.core.$strict>;
|
|
138
|
+
export type DashboardCreateInput = z.infer<typeof DashboardCreateInput>;
|
|
139
|
+
export declare const DashboardGetInput: z.ZodObject<{
|
|
140
|
+
dashboardId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
export type DashboardGetInput = z.infer<typeof DashboardGetInput>;
|
|
143
|
+
export declare const DashboardUpdateInput: z.ZodObject<{
|
|
144
|
+
dashboardId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
145
|
+
rev: z.ZodNumber;
|
|
146
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
147
|
+
yaml: z.ZodOptional<z.ZodString>;
|
|
148
|
+
}, z.core.$strict>;
|
|
149
|
+
export type DashboardUpdateInput = z.infer<typeof DashboardUpdateInput>;
|
|
150
|
+
export declare const DashboardDetail: z.ZodObject<{
|
|
151
|
+
dashboardId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
152
|
+
name: z.ZodString;
|
|
153
|
+
config: z.ZodObject<{
|
|
154
|
+
instruction: z.ZodOptional<z.ZodString>;
|
|
155
|
+
schedule: z.ZodDefault<z.ZodObject<{
|
|
156
|
+
rhythm: z.ZodEnum<{
|
|
157
|
+
manual: "manual";
|
|
158
|
+
daily: "daily";
|
|
159
|
+
weekly: "weekly";
|
|
160
|
+
monthly: "monthly";
|
|
161
|
+
dates: "dates";
|
|
162
|
+
}>;
|
|
163
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
164
|
+
monday: "monday";
|
|
165
|
+
tuesday: "tuesday";
|
|
166
|
+
wednesday: "wednesday";
|
|
167
|
+
thursday: "thursday";
|
|
168
|
+
friday: "friday";
|
|
169
|
+
saturday: "saturday";
|
|
170
|
+
sunday: "sunday";
|
|
171
|
+
}>>>;
|
|
172
|
+
dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
|
|
173
|
+
times: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
174
|
+
dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
175
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
176
|
+
whileOpen: z.ZodOptional<z.ZodEnum<{
|
|
177
|
+
wait: "wait";
|
|
178
|
+
continue: "continue";
|
|
179
|
+
}>>;
|
|
180
|
+
}, z.core.$strict>>;
|
|
181
|
+
metrics: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
182
|
+
title: z.ZodString;
|
|
183
|
+
description: z.ZodOptional<z.ZodString>;
|
|
184
|
+
instructions: z.ZodString;
|
|
185
|
+
source: z.ZodOptional<z.ZodString>;
|
|
186
|
+
assignee: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
187
|
+
}, z.core.$strict>>>;
|
|
188
|
+
sections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
189
|
+
title: z.ZodString;
|
|
190
|
+
description: z.ZodOptional<z.ZodString>;
|
|
191
|
+
boxes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
192
|
+
metric: z.ZodOptional<z.ZodString>;
|
|
193
|
+
line: z.ZodOptional<z.ZodString>;
|
|
194
|
+
bar: z.ZodOptional<z.ZodString>;
|
|
195
|
+
area: z.ZodOptional<z.ZodString>;
|
|
196
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
197
|
+
note: z.ZodOptional<z.ZodString>;
|
|
198
|
+
title: z.ZodOptional<z.ZodString>;
|
|
199
|
+
description: z.ZodOptional<z.ZodString>;
|
|
200
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
201
|
+
width: z.ZodOptional<z.ZodInt>;
|
|
202
|
+
shows: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
203
|
+
uses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
204
|
+
assignee: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
205
|
+
}, z.core.$strict>>>;
|
|
206
|
+
}, z.core.$strict>>>;
|
|
207
|
+
}, z.core.$strict>;
|
|
208
|
+
yaml: z.ZodString;
|
|
209
|
+
nextRunAt: z.ZodNullable<z.ZodISODateTime>;
|
|
210
|
+
dueAt: z.ZodNullable<z.ZodISODateTime>;
|
|
211
|
+
processCheck: z.ZodObject<{
|
|
212
|
+
operator: z.ZodBoolean;
|
|
213
|
+
}, z.core.$strict>;
|
|
214
|
+
rights: z.ZodObject<{
|
|
215
|
+
write: z.ZodBoolean;
|
|
216
|
+
}, z.core.$strict>;
|
|
217
|
+
rev: z.ZodNumber;
|
|
218
|
+
updatedAt: z.ZodISODateTime;
|
|
219
|
+
}, z.core.$strict>;
|
|
220
|
+
export type DashboardDetail = z.infer<typeof DashboardDetail>;
|
|
221
|
+
export {};
|