@skillcdn/console 0.4.0 → 0.4.2
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 +20 -2
- package/SKILLCDN.md +7 -5
- package/dist/api.d.ts +5 -4
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +5 -4
- package/dist/api.js.map +1 -1
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +579 -45
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/format.d.ts +34 -3
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +277 -6
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +60 -7
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/plugin-check.d.ts +21 -0
- package/dist/cli/plugin-check.d.ts.map +1 -0
- package/dist/cli/plugin-check.js +374 -0
- package/dist/cli/plugin-check.js.map +1 -0
- package/dist/cli/plugin-cli.d.ts +20 -0
- package/dist/cli/plugin-cli.d.ts.map +1 -0
- package/dist/cli/plugin-cli.js +123 -0
- package/dist/cli/plugin-cli.js.map +1 -0
- package/dist/cli/plugin-init.d.ts +20 -0
- package/dist/cli/plugin-init.d.ts.map +1 -0
- package/dist/cli/plugin-init.js +74 -0
- package/dist/cli/plugin-init.js.map +1 -0
- package/dist/cli/plugin-main.d.ts +3 -0
- package/dist/cli/plugin-main.d.ts.map +1 -0
- package/dist/cli/plugin-main.js +28 -0
- package/dist/cli/plugin-main.js.map +1 -0
- package/dist/client.d.ts +109 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +67 -2
- package/dist/client.js.map +1 -1
- package/dist/compat.d.ts +1 -1
- package/dist/compat.js +2 -2
- package/dist/components/board.d.ts +8 -0
- package/dist/components/board.d.ts.map +1 -1
- package/dist/components/board.js +59 -15
- package/dist/components/board.js.map +1 -1
- package/dist/components/event-feed.d.ts +1 -1
- package/dist/components/event-feed.d.ts.map +1 -1
- package/dist/components/event-feed.js +33 -1
- package/dist/components/event-feed.js.map +1 -1
- package/dist/components/markdown.d.ts.map +1 -1
- package/dist/components/markdown.js +6 -3
- package/dist/components/markdown.js.map +1 -1
- package/dist/components/pack-connect.d.ts +3 -1
- package/dist/components/pack-connect.d.ts.map +1 -1
- package/dist/components/pack-connect.js +4 -4
- package/dist/components/pack-connect.js.map +1 -1
- package/dist/components/pack-token.d.ts +3 -1
- package/dist/components/pack-token.d.ts.map +1 -1
- package/dist/components/pack-token.js +1 -1
- package/dist/components/pack-token.js.map +1 -1
- package/dist/components/people.d.ts.map +1 -1
- package/dist/components/people.js +14 -3
- package/dist/components/people.js.map +1 -1
- package/dist/components/plugin-frame.d.ts +52 -0
- package/dist/components/plugin-frame.d.ts.map +1 -0
- package/dist/components/plugin-frame.js +314 -0
- package/dist/components/plugin-frame.js.map +1 -0
- package/dist/components/plugin-settings.d.ts +38 -0
- package/dist/components/plugin-settings.d.ts.map +1 -0
- package/dist/components/plugin-settings.js +348 -0
- package/dist/components/plugin-settings.js.map +1 -0
- package/dist/components/remote-pictures.d.ts +6 -0
- package/dist/components/remote-pictures.d.ts.map +1 -0
- package/dist/components/remote-pictures.js +8 -0
- package/dist/components/remote-pictures.js.map +1 -0
- package/dist/components/shell.d.ts +2 -0
- package/dist/components/shell.d.ts.map +1 -1
- package/dist/components/shell.js +26 -1
- package/dist/components/shell.js.map +1 -1
- package/dist/components/sign-in.d.ts.map +1 -1
- package/dist/components/sign-in.js +49 -2
- package/dist/components/sign-in.js.map +1 -1
- package/dist/components/ui.d.ts +3 -2
- package/dist/components/ui.d.ts.map +1 -1
- package/dist/components/ui.js +6 -3
- package/dist/components/ui.js.map +1 -1
- package/dist/components/workspace.d.ts +7 -1
- package/dist/components/workspace.d.ts.map +1 -1
- package/dist/components/workspace.js +1 -1
- package/dist/components/workspace.js.map +1 -1
- package/dist/console.css +384 -5
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +146 -29
- package/dist/console.js.map +1 -1
- package/dist/data.d.ts +11 -2
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +35 -21
- package/dist/data.js.map +1 -1
- package/dist/i18n/en.d.ts +163 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +174 -1
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +154 -1
- package/dist/i18n/ko.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +14 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +14 -0
- package/dist/limits.js.map +1 -1
- package/dist/plugin/args.d.ts +148 -0
- package/dist/plugin/args.d.ts.map +1 -0
- package/dist/plugin/args.js +369 -0
- package/dist/plugin/args.js.map +1 -0
- package/dist/plugin/bridge.d.ts +146 -0
- package/dist/plugin/bridge.d.ts.map +1 -0
- package/dist/plugin/bridge.js +125 -0
- package/dist/plugin/bridge.js.map +1 -0
- package/dist/plugin/capabilities.d.ts +20 -0
- package/dist/plugin/capabilities.d.ts.map +1 -0
- package/dist/plugin/capabilities.js +133 -0
- package/dist/plugin/capabilities.js.map +1 -0
- package/dist/plugin/context.d.ts +374 -0
- package/dist/plugin/context.d.ts.map +1 -0
- package/dist/plugin/context.js +2 -0
- package/dist/plugin/context.js.map +1 -0
- package/dist/plugin/define.d.ts +208 -0
- package/dist/plugin/define.d.ts.map +1 -0
- package/dist/plugin/define.js +482 -0
- package/dist/plugin/define.js.map +1 -0
- package/dist/plugin/definition-error.d.ts +11 -0
- package/dist/plugin/definition-error.d.ts.map +1 -0
- package/dist/plugin/definition-error.js +17 -0
- package/dist/plugin/definition-error.js.map +1 -0
- package/dist/plugin/limits.d.ts +67 -0
- package/dist/plugin/limits.d.ts.map +1 -0
- package/dist/plugin/limits.js +70 -0
- package/dist/plugin/limits.js.map +1 -0
- package/dist/plugin/load-worker.d.ts +7 -0
- package/dist/plugin/load-worker.d.ts.map +1 -0
- package/dist/plugin/load-worker.js +41 -0
- package/dist/plugin/load-worker.js.map +1 -0
- package/dist/plugin/load.d.ts +18 -0
- package/dist/plugin/load.d.ts.map +1 -0
- package/dist/plugin/load.js +62 -0
- package/dist/plugin/load.js.map +1 -0
- package/dist/plugin/manifest.d.ts +237 -0
- package/dist/plugin/manifest.d.ts.map +1 -0
- package/dist/plugin/manifest.js +411 -0
- package/dist/plugin/manifest.js.map +1 -0
- package/dist/plugin/refusals.d.ts +49 -0
- package/dist/plugin/refusals.d.ts.map +1 -0
- package/dist/plugin/refusals.js +79 -0
- package/dist/plugin/refusals.js.map +1 -0
- package/dist/plugin/rest-schemas.d.ts +556 -0
- package/dist/plugin/rest-schemas.d.ts.map +1 -0
- package/dist/plugin/rest-schemas.js +262 -0
- package/dist/plugin/rest-schemas.js.map +1 -0
- package/dist/plugin/sandbox.d.ts +23 -0
- package/dist/plugin/sandbox.d.ts.map +1 -0
- package/dist/plugin/sandbox.js +99 -0
- package/dist/plugin/sandbox.js.map +1 -0
- package/dist/plugin/testing.d.ts +45 -0
- package/dist/plugin/testing.d.ts.map +1 -0
- package/dist/plugin/testing.js +420 -0
- package/dist/plugin/testing.js.map +1 -0
- package/dist/plugin/web-react.d.ts +11 -0
- package/dist/plugin/web-react.d.ts.map +1 -0
- package/dist/plugin/web-react.js +34 -0
- package/dist/plugin/web-react.js.map +1 -0
- package/dist/plugin/web.d.ts +95 -0
- package/dist/plugin/web.d.ts.map +1 -0
- package/dist/plugin/web.js +245 -0
- package/dist/plugin/web.js.map +1 -0
- package/dist/plugin-nav.d.ts +29 -0
- package/dist/plugin-nav.d.ts.map +1 -0
- package/dist/plugin-nav.js +92 -0
- package/dist/plugin-nav.js.map +1 -0
- package/dist/plugin-testing.d.ts +2 -0
- package/dist/plugin-testing.d.ts.map +1 -0
- package/dist/plugin-testing.js +4 -0
- package/dist/plugin-testing.js.map +1 -0
- package/dist/plugin-web-react.d.ts +3 -0
- package/dist/plugin-web-react.d.ts.map +1 -0
- package/dist/plugin-web-react.js +3 -0
- package/dist/plugin-web-react.js.map +1 -0
- package/dist/plugin-web.d.ts +4 -0
- package/dist/plugin-web.d.ts.map +1 -0
- package/dist/plugin-web.js +5 -0
- package/dist/plugin-web.js.map +1 -0
- package/dist/plugin.d.ts +11 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +15 -0
- package/dist/plugin.js.map +1 -0
- package/dist/router.d.ts +28 -0
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +47 -0
- package/dist/router.js.map +1 -1
- package/dist/routes.d.ts +6 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +8 -0
- package/dist/routes.js.map +1 -1
- package/dist/schemas.d.ts +147 -1
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +55 -5
- package/dist/schemas.js.map +1 -1
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +101 -0
- package/dist/tokens.js.map +1 -0
- package/dist/vocabulary.d.ts +11 -1
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +24 -0
- package/dist/vocabulary.js.map +1 -1
- package/dist/web.d.ts.map +1 -1
- package/dist/web.js +5 -2
- package/dist/web.js.map +1 -1
- package/docs/specs/cli.md +16 -9
- package/docs/specs/plugins.md +487 -0
- package/docs/specs/rest.md +25 -13
- package/package.json +21 -3
- package/skills/building-a-console/SKILL.md +25 -26
- package/skills/building-a-console/references/configuring.md +40 -0
- package/skills/building-a-console/references/the-default-console.md +1 -1
- package/skills/building-a-console/references/the-look-from-a-website.md +5 -5
- package/skills/building-a-plugin/SKILL.md +137 -0
- package/skills/deploying-a-console/SKILL.md +24 -26
- package/skills/deploying-a-console/references/access.md +13 -9
- package/skills/deploying-a-console/references/resources.md +25 -10
- package/skills/deploying-a-console/references/running-it-again.md +15 -0
- package/skills/deploying-a-console/references/sizing.md +2 -0
- package/skills/planning-the-board/SKILL.md +96 -0
- package/skills/planning-the-board/references/a-task.md +36 -0
- package/skills/planning-the-board/references/setting-up.md +44 -0
- package/skills/working-the-board/SKILL.md +43 -34
- package/skills/working-the-board/references/the-pack.md +19 -0
- package/src/api.ts +16 -0
- package/src/cli/cli.ts +736 -45
- package/src/cli/format.ts +356 -9
- package/src/cli/help.ts +71 -6
- package/src/cli/plugin-check.ts +470 -0
- package/src/cli/plugin-cli.ts +148 -0
- package/src/cli/plugin-init.ts +90 -0
- package/src/cli/plugin-main.ts +30 -0
- package/src/client.ts +324 -1
- package/src/compat.ts +2 -2
- package/src/components/board.tsx +62 -14
- package/src/components/event-feed.tsx +42 -1
- package/src/components/markdown.tsx +6 -3
- package/src/components/pack-connect.tsx +10 -7
- package/src/components/pack-token.tsx +4 -1
- package/src/components/people.tsx +17 -7
- package/src/components/plugin-frame.tsx +437 -0
- package/src/components/plugin-settings.tsx +1111 -0
- package/src/components/remote-pictures.ts +19 -0
- package/src/components/shell.tsx +82 -14
- package/src/components/sign-in.tsx +114 -13
- package/src/components/ui.tsx +6 -3
- package/src/components/workspace.tsx +18 -0
- package/src/console.tsx +309 -23
- package/src/data.ts +47 -22
- package/src/i18n/en.ts +183 -1
- package/src/i18n/ko.ts +159 -1
- package/src/index.ts +12 -0
- package/src/limits.ts +14 -0
- package/src/plugin/args.ts +526 -0
- package/src/plugin/bridge.ts +314 -0
- package/src/plugin/capabilities.ts +150 -0
- package/src/plugin/context.ts +416 -0
- package/src/plugin/define.ts +792 -0
- package/src/plugin/definition-error.ts +19 -0
- package/src/plugin/limits.ts +70 -0
- package/src/plugin/load-worker.ts +50 -0
- package/src/plugin/load.ts +82 -0
- package/src/plugin/manifest.ts +561 -0
- package/src/plugin/refusals.ts +94 -0
- package/src/plugin/rest-schemas.ts +354 -0
- package/src/plugin/sandbox.ts +123 -0
- package/src/plugin/testing.ts +612 -0
- package/src/plugin/web-react.ts +45 -0
- package/src/plugin/web.ts +403 -0
- package/src/plugin-nav.ts +132 -0
- package/src/plugin-testing.ts +10 -0
- package/src/plugin-web-react.ts +4 -0
- package/src/plugin-web.ts +35 -0
- package/src/plugin.ts +126 -0
- package/src/router.ts +73 -0
- package/src/routes.ts +9 -0
- package/src/schemas.ts +60 -4
- package/src/styles/console.css +384 -5
- package/src/tokens.ts +101 -0
- package/src/vocabulary.ts +30 -0
- package/src/web.ts +5 -2
- package/template/plugin/.gitignore +2 -0
- package/template/plugin/README.md +26 -0
- package/template/plugin/SKILLCDN.md +13 -0
- package/template/plugin/build.mjs +40 -0
- package/template/plugin/console-plugin.json +50 -0
- package/template/plugin/package.json +27 -0
- package/template/plugin/skills/__key__/SKILL.md +23 -0
- package/template/plugin/src/check.test.ts +34 -0
- package/template/plugin/src/server/index.test.ts +41 -0
- package/template/plugin/src/server/index.ts +72 -0
- package/template/plugin/src/web/index.css +51 -0
- package/template/plugin/src/web/index.ts +115 -0
- package/template/plugin/tsconfig.json +17 -0
- package/skills/working-the-board/references/setting-up.md +0 -3
- /package/skills/{working-the-board → planning-the-board}/references/project-rules.md +0 -0
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
|
+
import { ARG_TYPES } from "./args.js";
|
|
3
|
+
/** How long a secret an administrator sets for a plugin may be. */
|
|
4
|
+
export declare const MAX_PLUGIN_SECRET_LENGTH = 4096;
|
|
5
|
+
/** How many grants one plugin holds. */
|
|
6
|
+
export declare const MAX_PLUGIN_GRANTS = 1000;
|
|
7
|
+
/** An argument of a command or a query, as the console describes it for help and forms. */
|
|
8
|
+
export declare const restPluginArgSchema: z.ZodMiniType<RestPluginArg>;
|
|
9
|
+
export interface RestPluginArg {
|
|
10
|
+
readonly type: (typeof ARG_TYPES)[number];
|
|
11
|
+
readonly about?: string | undefined;
|
|
12
|
+
readonly optional: boolean;
|
|
13
|
+
readonly positional: boolean;
|
|
14
|
+
readonly secret?: boolean | undefined;
|
|
15
|
+
readonly max?: number | undefined;
|
|
16
|
+
readonly min?: number | undefined;
|
|
17
|
+
readonly integer?: boolean | undefined;
|
|
18
|
+
readonly options?: readonly string[] | undefined;
|
|
19
|
+
readonly collection?: string | undefined;
|
|
20
|
+
readonly of?: RestPluginArg | undefined;
|
|
21
|
+
}
|
|
22
|
+
/** A command or a query of a plugin, as `GET /api/v1/plugins/<key>` lists them. */
|
|
23
|
+
export declare const restPluginOperationSchema: z.ZodMiniObject<{
|
|
24
|
+
name: z.ZodMiniString<string>;
|
|
25
|
+
kind: z.ZodMiniEnum<{
|
|
26
|
+
command: "command";
|
|
27
|
+
query: "query";
|
|
28
|
+
}>;
|
|
29
|
+
about: z.ZodMiniString<string>;
|
|
30
|
+
args: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniType<RestPluginArg, unknown, z.core.$ZodTypeInternals<RestPluginArg, unknown>>>;
|
|
31
|
+
roles: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type RestPluginOperation = z.infer<typeof restPluginOperationSchema>;
|
|
34
|
+
export declare const restPluginPageSchema: z.ZodMiniObject<{
|
|
35
|
+
key: z.ZodMiniString<string>;
|
|
36
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
37
|
+
level: z.ZodMiniEnum<{
|
|
38
|
+
project: "project";
|
|
39
|
+
workspace: "workspace";
|
|
40
|
+
}>;
|
|
41
|
+
wide: z.ZodMiniBoolean<boolean>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type RestPluginPage = z.infer<typeof restPluginPageSchema>;
|
|
44
|
+
export declare const restPluginWidgetSchema: z.ZodMiniObject<{
|
|
45
|
+
key: z.ZodMiniString<string>;
|
|
46
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
47
|
+
place: z.ZodMiniEnum<{
|
|
48
|
+
"home:bottom": "home:bottom";
|
|
49
|
+
"home:top": "home:top";
|
|
50
|
+
}>;
|
|
51
|
+
size: z.ZodMiniEnum<{
|
|
52
|
+
full: "full";
|
|
53
|
+
half: "half";
|
|
54
|
+
third: "third";
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export type RestPluginWidget = z.infer<typeof restPluginWidgetSchema>;
|
|
58
|
+
/** A plugin as a member may know of it: what it is, how it stands, and what the member may do with it. */
|
|
59
|
+
export declare const restPluginSchema: z.ZodMiniObject<{
|
|
60
|
+
key: z.ZodMiniString<string>;
|
|
61
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
62
|
+
description: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
63
|
+
agentNote: z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
64
|
+
version: z.ZodMiniString<string>;
|
|
65
|
+
state: z.ZodMiniEnum<{
|
|
66
|
+
disabled: "disabled";
|
|
67
|
+
enabled: "enabled";
|
|
68
|
+
failed: "failed";
|
|
69
|
+
installed: "installed";
|
|
70
|
+
needs_consent: "needs_consent";
|
|
71
|
+
orphaned: "orphaned";
|
|
72
|
+
}>;
|
|
73
|
+
problems: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
74
|
+
roles: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
75
|
+
declaredRoles: z.ZodMiniArray<z.ZodMiniObject<{
|
|
76
|
+
key: z.ZodMiniString<string>;
|
|
77
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
78
|
+
description: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
defaultRole: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
81
|
+
menu: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
82
|
+
group: z.ZodMiniString<string>;
|
|
83
|
+
order: z.ZodMiniInt;
|
|
84
|
+
name: z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
pages: z.ZodMiniArray<z.ZodMiniObject<{
|
|
87
|
+
key: z.ZodMiniString<string>;
|
|
88
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
89
|
+
level: z.ZodMiniEnum<{
|
|
90
|
+
project: "project";
|
|
91
|
+
workspace: "workspace";
|
|
92
|
+
}>;
|
|
93
|
+
wide: z.ZodMiniBoolean<boolean>;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
widgets: z.ZodMiniArray<z.ZodMiniObject<{
|
|
96
|
+
key: z.ZodMiniString<string>;
|
|
97
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
98
|
+
place: z.ZodMiniEnum<{
|
|
99
|
+
"home:bottom": "home:bottom";
|
|
100
|
+
"home:top": "home:top";
|
|
101
|
+
}>;
|
|
102
|
+
size: z.ZodMiniEnum<{
|
|
103
|
+
full: "full";
|
|
104
|
+
half: "half";
|
|
105
|
+
third: "third";
|
|
106
|
+
}>;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
board: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
109
|
+
key: z.ZodMiniString<string>;
|
|
110
|
+
name: z.ZodMiniString<string>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
boardNeeds: z.ZodMiniEnum<{
|
|
113
|
+
none: "none";
|
|
114
|
+
optional: "optional";
|
|
115
|
+
required: "required";
|
|
116
|
+
}>;
|
|
117
|
+
capabilities: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
118
|
+
consent: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
119
|
+
projects: z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"all">, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
120
|
+
requires: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
121
|
+
dataVersion: z.ZodMiniInt;
|
|
122
|
+
enabledAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
export type RestPlugin = z.infer<typeof restPluginSchema>;
|
|
125
|
+
export declare const restPluginsSchema: z.ZodMiniObject<{
|
|
126
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
127
|
+
key: z.ZodMiniString<string>;
|
|
128
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
129
|
+
description: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
130
|
+
agentNote: z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
131
|
+
version: z.ZodMiniString<string>;
|
|
132
|
+
state: z.ZodMiniEnum<{
|
|
133
|
+
disabled: "disabled";
|
|
134
|
+
enabled: "enabled";
|
|
135
|
+
failed: "failed";
|
|
136
|
+
installed: "installed";
|
|
137
|
+
needs_consent: "needs_consent";
|
|
138
|
+
orphaned: "orphaned";
|
|
139
|
+
}>;
|
|
140
|
+
problems: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
141
|
+
roles: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
142
|
+
declaredRoles: z.ZodMiniArray<z.ZodMiniObject<{
|
|
143
|
+
key: z.ZodMiniString<string>;
|
|
144
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
145
|
+
description: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
defaultRole: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
148
|
+
menu: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
149
|
+
group: z.ZodMiniString<string>;
|
|
150
|
+
order: z.ZodMiniInt;
|
|
151
|
+
name: z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
152
|
+
}, z.core.$strip>>;
|
|
153
|
+
pages: z.ZodMiniArray<z.ZodMiniObject<{
|
|
154
|
+
key: z.ZodMiniString<string>;
|
|
155
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
156
|
+
level: z.ZodMiniEnum<{
|
|
157
|
+
project: "project";
|
|
158
|
+
workspace: "workspace";
|
|
159
|
+
}>;
|
|
160
|
+
wide: z.ZodMiniBoolean<boolean>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
widgets: z.ZodMiniArray<z.ZodMiniObject<{
|
|
163
|
+
key: z.ZodMiniString<string>;
|
|
164
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
165
|
+
place: z.ZodMiniEnum<{
|
|
166
|
+
"home:bottom": "home:bottom";
|
|
167
|
+
"home:top": "home:top";
|
|
168
|
+
}>;
|
|
169
|
+
size: z.ZodMiniEnum<{
|
|
170
|
+
full: "full";
|
|
171
|
+
half: "half";
|
|
172
|
+
third: "third";
|
|
173
|
+
}>;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
board: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
176
|
+
key: z.ZodMiniString<string>;
|
|
177
|
+
name: z.ZodMiniString<string>;
|
|
178
|
+
}, z.core.$strip>>;
|
|
179
|
+
boardNeeds: z.ZodMiniEnum<{
|
|
180
|
+
none: "none";
|
|
181
|
+
optional: "optional";
|
|
182
|
+
required: "required";
|
|
183
|
+
}>;
|
|
184
|
+
capabilities: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
185
|
+
consent: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
186
|
+
projects: z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"all">, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
187
|
+
requires: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
188
|
+
dataVersion: z.ZodMiniInt;
|
|
189
|
+
enabledAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
sql: z.ZodMiniBoolean<boolean>;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
export type RestPlugins = z.infer<typeof restPluginsSchema>;
|
|
194
|
+
/** A setting as the pages draw its form: the manifest's declaration, and whether and what it holds. */
|
|
195
|
+
export declare const restPluginSettingSchema: z.ZodMiniObject<{
|
|
196
|
+
key: z.ZodMiniString<string>;
|
|
197
|
+
type: z.ZodMiniEnum<{
|
|
198
|
+
boolean: "boolean";
|
|
199
|
+
day: "day";
|
|
200
|
+
enum: "enum";
|
|
201
|
+
list: "list";
|
|
202
|
+
markdown: "markdown";
|
|
203
|
+
number: "number";
|
|
204
|
+
person: "person";
|
|
205
|
+
project: "project";
|
|
206
|
+
secret: "secret";
|
|
207
|
+
text: "text";
|
|
208
|
+
}>;
|
|
209
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
210
|
+
description: z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
211
|
+
required: z.ZodMiniBoolean<boolean>;
|
|
212
|
+
default: z.ZodMiniNullable<z.ZodMiniUnknown>;
|
|
213
|
+
min: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
214
|
+
max: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
215
|
+
options: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniObject<{
|
|
216
|
+
value: z.ZodMiniString<string>;
|
|
217
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
218
|
+
}, z.core.$strip>>>;
|
|
219
|
+
of: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
220
|
+
set: z.ZodMiniBoolean<boolean>;
|
|
221
|
+
value: z.ZodMiniNullable<z.ZodMiniUnknown>;
|
|
222
|
+
setAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
export type RestPluginSetting = z.infer<typeof restPluginSettingSchema>;
|
|
225
|
+
/** A grant of a role: to a person, to the members of a project, or to everyone. */
|
|
226
|
+
export declare const restPluginGrantSchema: z.ZodMiniObject<{
|
|
227
|
+
id: z.ZodMiniUUID;
|
|
228
|
+
role: z.ZodMiniString<string>;
|
|
229
|
+
person: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
230
|
+
id: z.ZodMiniUUID;
|
|
231
|
+
login: z.ZodMiniString<string>;
|
|
232
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
233
|
+
}, z.core.$strip>>;
|
|
234
|
+
project: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
235
|
+
key: z.ZodMiniString<string>;
|
|
236
|
+
name: z.ZodMiniString<string>;
|
|
237
|
+
}, z.core.$strip>>;
|
|
238
|
+
everyone: z.ZodMiniBoolean<boolean>;
|
|
239
|
+
createdAt: z.ZodMiniISODateTime;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
export type RestPluginGrant = z.infer<typeof restPluginGrantSchema>;
|
|
242
|
+
export declare const restPluginGrantsSchema: z.ZodMiniObject<{
|
|
243
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
244
|
+
id: z.ZodMiniUUID;
|
|
245
|
+
role: z.ZodMiniString<string>;
|
|
246
|
+
person: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
247
|
+
id: z.ZodMiniUUID;
|
|
248
|
+
login: z.ZodMiniString<string>;
|
|
249
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
250
|
+
}, z.core.$strip>>;
|
|
251
|
+
project: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
252
|
+
key: z.ZodMiniString<string>;
|
|
253
|
+
name: z.ZodMiniString<string>;
|
|
254
|
+
}, z.core.$strip>>;
|
|
255
|
+
everyone: z.ZodMiniBoolean<boolean>;
|
|
256
|
+
createdAt: z.ZodMiniISODateTime;
|
|
257
|
+
}, z.core.$strip>>;
|
|
258
|
+
}, z.core.$strip>;
|
|
259
|
+
export type RestPluginGrants = z.infer<typeof restPluginGrantsSchema>;
|
|
260
|
+
/** One plugin whole, for `GET /api/v1/plugins/<key>`: the listing's fields, and what agents and administrators need. */
|
|
261
|
+
export declare const restPluginDetailSchema: z.ZodMiniObject<{
|
|
262
|
+
key: z.ZodMiniString<string>;
|
|
263
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
264
|
+
description: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
265
|
+
agentNote: z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
266
|
+
version: z.ZodMiniString<string>;
|
|
267
|
+
state: z.ZodMiniEnum<{
|
|
268
|
+
disabled: "disabled";
|
|
269
|
+
enabled: "enabled";
|
|
270
|
+
failed: "failed";
|
|
271
|
+
installed: "installed";
|
|
272
|
+
needs_consent: "needs_consent";
|
|
273
|
+
orphaned: "orphaned";
|
|
274
|
+
}>;
|
|
275
|
+
problems: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
276
|
+
roles: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
277
|
+
declaredRoles: z.ZodMiniArray<z.ZodMiniObject<{
|
|
278
|
+
key: z.ZodMiniString<string>;
|
|
279
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
280
|
+
description: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
281
|
+
}, z.core.$strip>>;
|
|
282
|
+
defaultRole: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
283
|
+
menu: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
284
|
+
group: z.ZodMiniString<string>;
|
|
285
|
+
order: z.ZodMiniInt;
|
|
286
|
+
name: z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
287
|
+
}, z.core.$strip>>;
|
|
288
|
+
pages: z.ZodMiniArray<z.ZodMiniObject<{
|
|
289
|
+
key: z.ZodMiniString<string>;
|
|
290
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
291
|
+
level: z.ZodMiniEnum<{
|
|
292
|
+
project: "project";
|
|
293
|
+
workspace: "workspace";
|
|
294
|
+
}>;
|
|
295
|
+
wide: z.ZodMiniBoolean<boolean>;
|
|
296
|
+
}, z.core.$strip>>;
|
|
297
|
+
widgets: z.ZodMiniArray<z.ZodMiniObject<{
|
|
298
|
+
key: z.ZodMiniString<string>;
|
|
299
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
300
|
+
place: z.ZodMiniEnum<{
|
|
301
|
+
"home:bottom": "home:bottom";
|
|
302
|
+
"home:top": "home:top";
|
|
303
|
+
}>;
|
|
304
|
+
size: z.ZodMiniEnum<{
|
|
305
|
+
full: "full";
|
|
306
|
+
half: "half";
|
|
307
|
+
third: "third";
|
|
308
|
+
}>;
|
|
309
|
+
}, z.core.$strip>>;
|
|
310
|
+
board: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
311
|
+
key: z.ZodMiniString<string>;
|
|
312
|
+
name: z.ZodMiniString<string>;
|
|
313
|
+
}, z.core.$strip>>;
|
|
314
|
+
boardNeeds: z.ZodMiniEnum<{
|
|
315
|
+
none: "none";
|
|
316
|
+
optional: "optional";
|
|
317
|
+
required: "required";
|
|
318
|
+
}>;
|
|
319
|
+
capabilities: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
320
|
+
consent: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
321
|
+
projects: z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"all">, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
322
|
+
requires: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
323
|
+
dataVersion: z.ZodMiniInt;
|
|
324
|
+
enabledAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
325
|
+
operations: z.ZodMiniArray<z.ZodMiniObject<{
|
|
326
|
+
name: z.ZodMiniString<string>;
|
|
327
|
+
kind: z.ZodMiniEnum<{
|
|
328
|
+
command: "command";
|
|
329
|
+
query: "query";
|
|
330
|
+
}>;
|
|
331
|
+
about: z.ZodMiniString<string>;
|
|
332
|
+
args: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniType<RestPluginArg, unknown, z.core.$ZodTypeInternals<RestPluginArg, unknown>>>;
|
|
333
|
+
roles: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
334
|
+
}, z.core.$strip>>;
|
|
335
|
+
skills: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
336
|
+
boardDefaults: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
337
|
+
key: z.ZodMiniString<string>;
|
|
338
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
339
|
+
description: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
340
|
+
}, z.core.$strip>>;
|
|
341
|
+
settings: z.ZodMiniArray<z.ZodMiniObject<{
|
|
342
|
+
key: z.ZodMiniString<string>;
|
|
343
|
+
type: z.ZodMiniEnum<{
|
|
344
|
+
boolean: "boolean";
|
|
345
|
+
day: "day";
|
|
346
|
+
enum: "enum";
|
|
347
|
+
list: "list";
|
|
348
|
+
markdown: "markdown";
|
|
349
|
+
number: "number";
|
|
350
|
+
person: "person";
|
|
351
|
+
project: "project";
|
|
352
|
+
secret: "secret";
|
|
353
|
+
text: "text";
|
|
354
|
+
}>;
|
|
355
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
356
|
+
description: z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
357
|
+
required: z.ZodMiniBoolean<boolean>;
|
|
358
|
+
default: z.ZodMiniNullable<z.ZodMiniUnknown>;
|
|
359
|
+
min: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
360
|
+
max: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
361
|
+
options: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniObject<{
|
|
362
|
+
value: z.ZodMiniString<string>;
|
|
363
|
+
name: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
364
|
+
}, z.core.$strip>>>;
|
|
365
|
+
of: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
366
|
+
set: z.ZodMiniBoolean<boolean>;
|
|
367
|
+
value: z.ZodMiniNullable<z.ZodMiniUnknown>;
|
|
368
|
+
setAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
369
|
+
}, z.core.$strip>>;
|
|
370
|
+
grants: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniObject<{
|
|
371
|
+
id: z.ZodMiniUUID;
|
|
372
|
+
role: z.ZodMiniString<string>;
|
|
373
|
+
person: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
374
|
+
id: z.ZodMiniUUID;
|
|
375
|
+
login: z.ZodMiniString<string>;
|
|
376
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
377
|
+
}, z.core.$strip>>;
|
|
378
|
+
project: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
379
|
+
key: z.ZodMiniString<string>;
|
|
380
|
+
name: z.ZodMiniString<string>;
|
|
381
|
+
}, z.core.$strip>>;
|
|
382
|
+
everyone: z.ZodMiniBoolean<boolean>;
|
|
383
|
+
createdAt: z.ZodMiniISODateTime;
|
|
384
|
+
}, z.core.$strip>>>;
|
|
385
|
+
events: z.ZodMiniString<string>;
|
|
386
|
+
}, z.core.$strip>;
|
|
387
|
+
export type RestPluginDetail = z.infer<typeof restPluginDetailSchema>;
|
|
388
|
+
/** What `POST /api/v1/plugins/<key>/enable` is sent. */
|
|
389
|
+
export declare const restPluginEnableInputSchema: z.ZodMiniObject<{
|
|
390
|
+
consent: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
391
|
+
board: z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
392
|
+
create: z.ZodMiniObject<{
|
|
393
|
+
key: z.ZodMiniString<string>;
|
|
394
|
+
name: z.ZodMiniString<string>;
|
|
395
|
+
description: z.ZodMiniString<string>;
|
|
396
|
+
}, z.core.$strip>;
|
|
397
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
398
|
+
project: z.ZodMiniString<string>;
|
|
399
|
+
}, z.core.$strip>]>>;
|
|
400
|
+
projects: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"all">, z.ZodMiniArray<z.ZodMiniString<string>>]>;
|
|
401
|
+
settings: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
402
|
+
}, z.core.$strip>;
|
|
403
|
+
export type RestPluginEnableInput = z.infer<typeof restPluginEnableInputSchema>;
|
|
404
|
+
/** What `PATCH /api/v1/plugins/<key>/settings` is sent: the values that change; `null` clears one. */
|
|
405
|
+
export declare const restPluginSettingsPatchSchema: z.ZodMiniObject<{
|
|
406
|
+
values: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
|
|
407
|
+
}, z.core.$strip>;
|
|
408
|
+
export type RestPluginSettingsPatch = z.infer<typeof restPluginSettingsPatchSchema>;
|
|
409
|
+
/** What `PUT /api/v1/plugins/<key>/secrets/<name>` is sent. */
|
|
410
|
+
export declare const restPluginSecretInputSchema: z.ZodMiniObject<{
|
|
411
|
+
value: z.ZodMiniString<string>;
|
|
412
|
+
}, z.core.$strip>;
|
|
413
|
+
export type RestPluginSecretInput = z.infer<typeof restPluginSecretInputSchema>;
|
|
414
|
+
/** What `POST /api/v1/plugins/<key>/grants` is sent: a role, and exactly one of whom. */
|
|
415
|
+
export declare const restPluginGrantInputSchema: z.ZodMiniObject<{
|
|
416
|
+
role: z.ZodMiniString<string>;
|
|
417
|
+
person: z.ZodMiniOptional<z.ZodMiniUUID>;
|
|
418
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
419
|
+
everyone: z.ZodMiniOptional<z.ZodMiniLiteral<true>>;
|
|
420
|
+
}, z.core.$strip>;
|
|
421
|
+
export type RestPluginGrantInput = z.infer<typeof restPluginGrantInputSchema>;
|
|
422
|
+
/** A file a person uploaded for a command (`POST .../files`): the handle a `file` argument takes, good for an hour. */
|
|
423
|
+
export declare const restPluginFileHandleSchema: z.ZodMiniObject<{
|
|
424
|
+
handle: z.ZodMiniString<string>;
|
|
425
|
+
name: z.ZodMiniString<string>;
|
|
426
|
+
type: z.ZodMiniString<string>;
|
|
427
|
+
bytes: z.ZodMiniInt;
|
|
428
|
+
}, z.core.$strip>;
|
|
429
|
+
export type RestPluginFileHandle = z.infer<typeof restPluginFileHandleSchema>;
|
|
430
|
+
/**
|
|
431
|
+
* What `POST /api/v1/plugins/<key>/invoke` is sent: the words as typed, the command's or the
|
|
432
|
+
* query's name first, the handles of the files uploaded for it, the project the call is on, and
|
|
433
|
+
* the run it is for where the caller has several open.
|
|
434
|
+
*/
|
|
435
|
+
export declare const restPluginInvokeInputSchema: z.ZodMiniObject<{
|
|
436
|
+
argv: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
437
|
+
files: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
438
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
439
|
+
run: z.ZodMiniOptional<z.ZodMiniUUID>;
|
|
440
|
+
}, z.core.$strip>;
|
|
441
|
+
export type RestPluginInvokeInput = z.infer<typeof restPluginInvokeInputSchema>;
|
|
442
|
+
/** What `POST /api/v1/plugins/<key>/commands/<name>` is sent: the arguments as JSON, by name. */
|
|
443
|
+
export declare const restPluginCommandInputSchema: z.ZodMiniObject<{
|
|
444
|
+
args: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
|
|
445
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
446
|
+
run: z.ZodMiniOptional<z.ZodMiniUUID>;
|
|
447
|
+
}, z.core.$strip>;
|
|
448
|
+
export type RestPluginCommandInput = z.infer<typeof restPluginCommandInputSchema>;
|
|
449
|
+
/**
|
|
450
|
+
* What a command or a query answered: `text` is what the command prints, `data` what `--json`
|
|
451
|
+
* prints (a query's whole answer), `waiting` the id of a decision the caller now waits for.
|
|
452
|
+
*/
|
|
453
|
+
export declare const restPluginInvocationSchema: z.ZodMiniObject<{
|
|
454
|
+
kind: z.ZodMiniEnum<{
|
|
455
|
+
command: "command";
|
|
456
|
+
query: "query";
|
|
457
|
+
}>;
|
|
458
|
+
text: z.ZodMiniString<string>;
|
|
459
|
+
data: z.ZodMiniUnknown;
|
|
460
|
+
waiting: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
461
|
+
}, z.core.$strip>;
|
|
462
|
+
export type RestPluginInvocation = z.infer<typeof restPluginInvocationSchema>;
|
|
463
|
+
/** A record of a plugin's collection, as `GET .../records/<collection>` lists them. */
|
|
464
|
+
export declare const restPluginRecordSchema: z.ZodMiniObject<{
|
|
465
|
+
id: z.ZodMiniUUID;
|
|
466
|
+
collection: z.ZodMiniString<string>;
|
|
467
|
+
project: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
468
|
+
owner: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
469
|
+
data: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
|
|
470
|
+
version: z.ZodMiniInt;
|
|
471
|
+
createdAt: z.ZodMiniISODateTime;
|
|
472
|
+
updatedAt: z.ZodMiniISODateTime;
|
|
473
|
+
createdBy: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
474
|
+
updatedBy: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
475
|
+
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
476
|
+
}, z.core.$strip>;
|
|
477
|
+
export type RestPluginRecord = z.infer<typeof restPluginRecordSchema>;
|
|
478
|
+
/** A page of records, and the cursor `after` continues with, or `null` on the last. */
|
|
479
|
+
export declare const restPluginRecordPageSchema: z.ZodMiniObject<{
|
|
480
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
481
|
+
id: z.ZodMiniUUID;
|
|
482
|
+
collection: z.ZodMiniString<string>;
|
|
483
|
+
project: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
484
|
+
owner: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
485
|
+
data: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
|
|
486
|
+
version: z.ZodMiniInt;
|
|
487
|
+
createdAt: z.ZodMiniISODateTime;
|
|
488
|
+
updatedAt: z.ZodMiniISODateTime;
|
|
489
|
+
createdBy: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
490
|
+
updatedBy: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
491
|
+
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
492
|
+
}, z.core.$strip>>;
|
|
493
|
+
after: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
494
|
+
}, z.core.$strip>;
|
|
495
|
+
export type RestPluginRecordPage = z.infer<typeof restPluginRecordPageSchema>;
|
|
496
|
+
/** One version of a record, as it was. */
|
|
497
|
+
export declare const restPluginRecordVersionSchema: z.ZodMiniObject<{
|
|
498
|
+
version: z.ZodMiniInt;
|
|
499
|
+
data: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
|
|
500
|
+
at: z.ZodMiniISODateTime;
|
|
501
|
+
by: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
502
|
+
}, z.core.$strip>;
|
|
503
|
+
export type RestPluginRecordVersion = z.infer<typeof restPluginRecordVersionSchema>;
|
|
504
|
+
/** What `GET .../records/<collection>/<id>[?version=]` answers: the record, or one version of it. */
|
|
505
|
+
export declare const restPluginRecordReadSchema: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
506
|
+
id: z.ZodMiniUUID;
|
|
507
|
+
collection: z.ZodMiniString<string>;
|
|
508
|
+
project: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
509
|
+
owner: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
510
|
+
data: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
|
|
511
|
+
version: z.ZodMiniInt;
|
|
512
|
+
createdAt: z.ZodMiniISODateTime;
|
|
513
|
+
updatedAt: z.ZodMiniISODateTime;
|
|
514
|
+
createdBy: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
515
|
+
updatedBy: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
516
|
+
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
517
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
518
|
+
version: z.ZodMiniInt;
|
|
519
|
+
data: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
|
|
520
|
+
at: z.ZodMiniISODateTime;
|
|
521
|
+
by: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
522
|
+
}, z.core.$strip>]>;
|
|
523
|
+
export type RestPluginRecordRead = z.infer<typeof restPluginRecordReadSchema>;
|
|
524
|
+
export declare const restPluginRecordVersionsSchema: z.ZodMiniObject<{
|
|
525
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
526
|
+
version: z.ZodMiniInt;
|
|
527
|
+
data: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
|
|
528
|
+
at: z.ZodMiniISODateTime;
|
|
529
|
+
by: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
530
|
+
}, z.core.$strip>>;
|
|
531
|
+
}, z.core.$strip>;
|
|
532
|
+
export type RestPluginRecordVersions = z.infer<typeof restPluginRecordVersionsSchema>;
|
|
533
|
+
/** An event a plugin emitted (`ctx.events.emit`), as `GET .../plugin-events?after=` lists them for its frames: its number in the stream, its kind, its data, when. */
|
|
534
|
+
export declare const restPluginEventSchema: z.ZodMiniObject<{
|
|
535
|
+
id: z.ZodMiniInt;
|
|
536
|
+
kind: z.ZodMiniString<string>;
|
|
537
|
+
data: z.ZodMiniUnknown;
|
|
538
|
+
at: z.ZodMiniISODateTime;
|
|
539
|
+
}, z.core.$strip>;
|
|
540
|
+
export type RestPluginEvent = z.infer<typeof restPluginEventSchema>;
|
|
541
|
+
export declare const restPluginEventsSchema: z.ZodMiniObject<{
|
|
542
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
543
|
+
id: z.ZodMiniInt;
|
|
544
|
+
kind: z.ZodMiniString<string>;
|
|
545
|
+
data: z.ZodMiniUnknown;
|
|
546
|
+
at: z.ZodMiniISODateTime;
|
|
547
|
+
}, z.core.$strip>>;
|
|
548
|
+
more: z.ZodMiniBoolean<boolean>;
|
|
549
|
+
}, z.core.$strip>;
|
|
550
|
+
export type RestPluginEvents = z.infer<typeof restPluginEventsSchema>;
|
|
551
|
+
/** What `POST /api/v1/plugins/<key>/purge` is sent: the key again. */
|
|
552
|
+
export declare const restPluginPurgeInputSchema: z.ZodMiniObject<{
|
|
553
|
+
confirm: z.ZodMiniString<string>;
|
|
554
|
+
}, z.core.$strip>;
|
|
555
|
+
export type RestPluginPurgeInput = z.infer<typeof restPluginPurgeInputSchema>;
|
|
556
|
+
//# sourceMappingURL=rest-schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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