@skillcdn/console 0.6.0 → 0.6.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 +7 -7
- package/dist/agent-page.d.ts.map +1 -1
- package/dist/agent-page.js +58 -35
- package/dist/agent-page.js.map +1 -1
- package/dist/agent-usage.d.ts +51 -0
- package/dist/agent-usage.d.ts.map +1 -0
- package/dist/agent-usage.js +77 -0
- package/dist/agent-usage.js.map +1 -0
- package/dist/api.d.ts +4 -2
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +4 -2
- package/dist/api.js.map +1 -1
- package/dist/cli/cli.d.ts +9 -2
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +491 -125
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/format.d.ts +46 -4
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +163 -45
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +62 -13
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/machine-check.d.ts +24 -5
- package/dist/cli/machine-check.d.ts.map +1 -1
- package/dist/cli/machine-check.js +128 -16
- package/dist/cli/machine-check.js.map +1 -1
- package/dist/cli/pack.d.ts +11 -8
- package/dist/cli/pack.d.ts.map +1 -1
- package/dist/cli/pack.js +63 -28
- package/dist/cli/pack.js.map +1 -1
- package/dist/cli/runner-host.d.ts +2 -0
- package/dist/cli/runner-host.d.ts.map +1 -1
- package/dist/cli/runner-host.js +1 -0
- package/dist/cli/runner-host.js.map +1 -1
- package/dist/cli/secret-notes.d.ts.map +1 -1
- package/dist/cli/secret-notes.js +9 -1
- package/dist/cli/secret-notes.js.map +1 -1
- package/dist/cli/terminal.d.ts +10 -2
- package/dist/cli/terminal.d.ts.map +1 -1
- package/dist/cli/terminal.js +16 -4
- package/dist/cli/terminal.js.map +1 -1
- package/dist/client.d.ts +30 -7
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +13 -1
- package/dist/client.js.map +1 -1
- package/dist/components/agent-page.d.ts +76 -18
- package/dist/components/agent-page.d.ts.map +1 -1
- package/dist/components/agent-page.js +183 -53
- package/dist/components/agent-page.js.map +1 -1
- package/dist/components/agents.d.ts +2 -0
- package/dist/components/agents.d.ts.map +1 -1
- package/dist/components/agents.js +6 -5
- package/dist/components/agents.js.map +1 -1
- package/dist/components/calendar.d.ts +24 -4
- package/dist/components/calendar.d.ts.map +1 -1
- package/dist/components/calendar.js +79 -36
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/categories.js +2 -2
- package/dist/components/categories.js.map +1 -1
- package/dist/components/comments.js +2 -2
- package/dist/components/comments.js.map +1 -1
- package/dist/components/decision-list.d.ts.map +1 -1
- package/dist/components/decision-list.js +5 -5
- package/dist/components/decision-list.js.map +1 -1
- package/dist/components/documents.d.ts.map +1 -1
- package/dist/components/documents.js +4 -4
- package/dist/components/documents.js.map +1 -1
- package/dist/components/event-feed.d.ts +2 -3
- package/dist/components/event-feed.d.ts.map +1 -1
- package/dist/components/event-feed.js +4 -184
- package/dist/components/event-feed.js.map +1 -1
- package/dist/components/goals.d.ts.map +1 -1
- package/dist/components/goals.js +3 -3
- package/dist/components/goals.js.map +1 -1
- package/dist/components/home.js +9 -9
- package/dist/components/home.js.map +1 -1
- package/dist/components/icon.d.ts.map +1 -1
- package/dist/components/icon.js +11 -2
- package/dist/components/icon.js.map +1 -1
- package/dist/components/notifications.d.ts +65 -0
- package/dist/components/notifications.d.ts.map +1 -0
- package/dist/components/notifications.js +162 -0
- package/dist/components/notifications.js.map +1 -0
- package/dist/components/pack-connect.js +1 -1
- package/dist/components/pack-connect.js.map +1 -1
- package/dist/components/pack-token.js +1 -1
- package/dist/components/pack-token.js.map +1 -1
- package/dist/components/people.js +2 -2
- package/dist/components/people.js.map +1 -1
- package/dist/components/pictures.js +1 -1
- package/dist/components/pictures.js.map +1 -1
- package/dist/components/plugin-settings.d.ts +22 -1
- package/dist/components/plugin-settings.d.ts.map +1 -1
- package/dist/components/plugin-settings.js +63 -11
- package/dist/components/plugin-settings.js.map +1 -1
- package/dist/components/projects.js +1 -1
- package/dist/components/projects.js.map +1 -1
- package/dist/components/roadmap.js +2 -2
- package/dist/components/roadmap.js.map +1 -1
- package/dist/components/rules.js +2 -2
- package/dist/components/rules.js.map +1 -1
- package/dist/components/runs.d.ts.map +1 -1
- package/dist/components/runs.js +1 -1
- package/dist/components/runs.js.map +1 -1
- package/dist/components/sessions.js +1 -1
- package/dist/components/sessions.js.map +1 -1
- package/dist/components/shell.d.ts +2 -0
- package/dist/components/shell.d.ts.map +1 -1
- package/dist/components/shell.js +1 -1
- package/dist/components/shell.js.map +1 -1
- package/dist/components/sign-in.js +2 -2
- package/dist/components/sign-in.js.map +1 -1
- package/dist/components/skills.d.ts.map +1 -1
- package/dist/components/skills.js +1 -1
- package/dist/components/skills.js.map +1 -1
- package/dist/components/task-view.d.ts +6 -0
- package/dist/components/task-view.d.ts.map +1 -1
- package/dist/components/task-view.js +3 -2
- package/dist/components/task-view.js.map +1 -1
- package/dist/components/tokens.js +1 -1
- package/dist/components/tokens.js.map +1 -1
- package/dist/components/ui.d.ts +21 -2
- package/dist/components/ui.d.ts.map +1 -1
- package/dist/components/ui.js +24 -3
- package/dist/components/ui.js.map +1 -1
- package/dist/components/work.js +1 -1
- package/dist/components/work.js.map +1 -1
- package/dist/console.css +506 -289
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +193 -16
- package/dist/console.js.map +1 -1
- package/dist/data.d.ts +17 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +31 -0
- package/dist/data.js.map +1 -1
- package/dist/desk-page.js +5 -5
- package/dist/desk-page.js.map +1 -1
- package/dist/feed-words.d.ts +5 -0
- package/dist/feed-words.d.ts.map +1 -0
- package/dist/feed-words.js +193 -0
- package/dist/feed-words.js.map +1 -0
- package/dist/i18n/en.d.ts +93 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +103 -15
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +105 -22
- package/dist/i18n/ko.js.map +1 -1
- package/dist/icons/glyphs.d.ts +370 -104
- package/dist/icons/glyphs.d.ts.map +1 -1
- package/dist/icons/glyphs.js +72 -66
- package/dist/icons/glyphs.js.map +1 -1
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/index.js +9 -1
- package/dist/icons/index.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +7 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +7 -0
- package/dist/limits.js.map +1 -1
- package/dist/notifications.d.ts +124 -0
- package/dist/notifications.d.ts.map +1 -0
- package/dist/notifications.js +147 -0
- package/dist/notifications.js.map +1 -0
- package/dist/onboarding.d.ts.map +1 -1
- package/dist/onboarding.js +7 -12
- package/dist/onboarding.js.map +1 -1
- package/dist/plugin/capabilities.d.ts +1 -1
- package/dist/plugin/capabilities.d.ts.map +1 -1
- package/dist/plugin/capabilities.js +10 -0
- package/dist/plugin/capabilities.js.map +1 -1
- package/dist/plugin/context.d.ts +85 -1
- package/dist/plugin/context.d.ts.map +1 -1
- package/dist/plugin/limits.d.ts +7 -0
- package/dist/plugin/limits.d.ts.map +1 -1
- package/dist/plugin/limits.js +7 -0
- package/dist/plugin/limits.js.map +1 -1
- package/dist/plugin/manifest.d.ts +8 -0
- package/dist/plugin/manifest.d.ts.map +1 -1
- package/dist/plugin/manifest.js +13 -0
- package/dist/plugin/manifest.js.map +1 -1
- package/dist/plugin/rest-schemas.d.ts +22 -0
- package/dist/plugin/rest-schemas.d.ts.map +1 -1
- package/dist/plugin/rest-schemas.js +19 -3
- package/dist/plugin/rest-schemas.js.map +1 -1
- package/dist/plugin/testing.d.ts +2 -0
- package/dist/plugin/testing.d.ts.map +1 -1
- package/dist/plugin/testing.js +2 -0
- package/dist/plugin/testing.js.map +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +1 -1
- package/dist/plugin.js.map +1 -1
- package/dist/router.d.ts +6 -0
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +5 -0
- package/dist/router.js.map +1 -1
- package/dist/routes.d.ts +2 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +2 -0
- package/dist/routes.js.map +1 -1
- package/dist/rules.js +1 -1
- package/dist/rules.js.map +1 -1
- package/dist/runner/acp.d.ts.map +1 -1
- package/dist/runner/acp.js +12 -97
- package/dist/runner/acp.js.map +1 -1
- package/dist/runner/browser.d.ts +50 -0
- package/dist/runner/browser.d.ts.map +1 -0
- package/dist/runner/browser.js +104 -0
- package/dist/runner/browser.js.map +1 -0
- package/dist/runner/claude.d.ts +1 -2
- package/dist/runner/claude.d.ts.map +1 -1
- package/dist/runner/claude.js +352 -13
- package/dist/runner/claude.js.map +1 -1
- package/dist/runner/codex.d.ts +9 -10
- package/dist/runner/codex.d.ts.map +1 -1
- package/dist/runner/codex.js +809 -346
- package/dist/runner/codex.js.map +1 -1
- package/dist/runner/config.d.ts +14 -3
- package/dist/runner/config.d.ts.map +1 -1
- package/dist/runner/config.js +27 -7
- package/dist/runner/config.js.map +1 -1
- package/dist/runner/desk.d.ts +3 -1
- package/dist/runner/desk.d.ts.map +1 -1
- package/dist/runner/desk.js +17 -5
- package/dist/runner/desk.js.map +1 -1
- package/dist/runner/message.d.ts +53 -3
- package/dist/runner/message.d.ts.map +1 -1
- package/dist/runner/message.js +201 -20
- package/dist/runner/message.js.map +1 -1
- package/dist/runner/registry.d.ts +6 -0
- package/dist/runner/registry.d.ts.map +1 -1
- package/dist/runner/registry.js.map +1 -1
- package/dist/runner/rpc.d.ts +31 -0
- package/dist/runner/rpc.d.ts.map +1 -0
- package/dist/runner/rpc.js +102 -0
- package/dist/runner/rpc.js.map +1 -0
- package/dist/runner/runner.d.ts +41 -1
- package/dist/runner/runner.d.ts.map +1 -1
- package/dist/runner/runner.js +695 -52
- package/dist/runner/runner.js.map +1 -1
- package/dist/runner/slack.d.ts +17 -8
- package/dist/runner/slack.d.ts.map +1 -1
- package/dist/runner/slack.js +1250 -78
- package/dist/runner/slack.js.map +1 -1
- package/dist/runner/types.d.ts +160 -8
- package/dist/runner/types.d.ts.map +1 -1
- package/dist/runner/types.js.map +1 -1
- package/dist/runner/usage.d.ts +105 -0
- package/dist/runner/usage.d.ts.map +1 -0
- package/dist/runner/usage.js +218 -0
- package/dist/runner/usage.js.map +1 -0
- package/dist/runner.d.ts +4 -4
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js +3 -3
- package/dist/runner.js.map +1 -1
- package/dist/schemas.d.ts +673 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +205 -1
- package/dist/schemas.js.map +1 -1
- package/dist/services.js +3 -3
- package/dist/services.js.map +1 -1
- package/dist/setup-guide.d.ts +4 -3
- package/dist/setup-guide.d.ts.map +1 -1
- package/dist/setup-guide.js +11 -13
- package/dist/setup-guide.js.map +1 -1
- package/dist/text.d.ts +7 -0
- package/dist/text.d.ts.map +1 -1
- package/dist/text.js +18 -0
- package/dist/text.js.map +1 -1
- package/dist/vocabulary.d.ts +4 -2
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +4 -1
- package/dist/vocabulary.js.map +1 -1
- package/docs/specs/cli.md +26 -19
- package/docs/specs/plugins.md +16 -10
- package/docs/specs/rest.md +28 -10
- package/docs/specs/runner.md +132 -44
- package/package.json +4 -4
- package/skills/building-a-console/SKILL.md +2 -2
- package/skills/building-a-console/references/configuring.md +1 -1
- package/skills/building-a-plugin/SKILL.md +4 -4
- package/skills/planning-the-board/SKILL.md +1 -1
- package/skills/planning-the-board/references/setting-up.md +2 -2
- package/skills/running-an-agent/SKILL.md +15 -64
- package/skills/running-an-agent/references/preparing-the-machine.md +17 -0
- package/skills/running-an-agent/references/several-tasks.md +37 -0
- package/skills/running-an-agent/references/slack-app.md +70 -13
- package/skills/running-an-agent/references/the-account-and-the-invitation.md +5 -0
- package/skills/running-an-agent/references/what-was-not-seen-run-yet.md +3 -0
- package/skills/running-an-agent/references/when-the-agent-could-not-go-on.md +16 -0
- package/skills/running-an-agent/references/your-first-task.md +14 -0
- package/skills/working-the-board/SKILL.md +9 -12
- package/skills/working-the-board/references/a-pack-skills-questions.md +3 -0
- package/skills/working-the-board/references/a-plugins-commands.md +3 -0
- package/skills/working-the-board/references/a-review.md +3 -0
- package/skills/working-the-board/references/an-open-run.md +3 -0
- package/skills/working-the-board/references/requirements.md +7 -0
- package/skills/working-the-board/references/the-pack.md +2 -2
- package/skills/working-the-board/references/what-they-were-told.md +3 -0
- package/skills/working-the-board/references/work-given-in-chat.md +5 -0
- package/src/agent-page.tsx +76 -47
- package/src/agent-usage.ts +113 -0
- package/src/api.ts +62 -0
- package/src/cli/cli.ts +634 -162
- package/src/cli/format.ts +190 -47
- package/src/cli/help.ts +77 -12
- package/src/cli/machine-check.ts +182 -29
- package/src/cli/pack.ts +81 -40
- package/src/cli/runner-host.ts +3 -0
- package/src/cli/secret-notes.ts +9 -1
- package/src/cli/terminal.ts +20 -4
- package/src/client.ts +94 -6
- package/src/components/agent-page.tsx +280 -63
- package/src/components/agents.tsx +23 -3
- package/src/components/calendar.tsx +93 -37
- package/src/components/categories.tsx +2 -2
- package/src/components/comments.tsx +5 -5
- package/src/components/decision-list.tsx +13 -10
- package/src/components/documents.tsx +13 -8
- package/src/components/event-feed.tsx +4 -203
- package/src/components/goals.tsx +6 -4
- package/src/components/home.tsx +12 -12
- package/src/components/icon.tsx +16 -3
- package/src/components/notifications.tsx +419 -0
- package/src/components/pack-connect.tsx +1 -1
- package/src/components/pack-token.tsx +5 -5
- package/src/components/people.tsx +3 -3
- package/src/components/pictures.tsx +1 -1
- package/src/components/plugin-settings.tsx +128 -23
- package/src/components/projects.tsx +1 -1
- package/src/components/roadmap.tsx +2 -2
- package/src/components/rules.tsx +2 -2
- package/src/components/runs.tsx +6 -3
- package/src/components/sessions.tsx +2 -2
- package/src/components/shell.tsx +3 -0
- package/src/components/sign-in.tsx +3 -3
- package/src/components/skills.tsx +5 -3
- package/src/components/task-view.tsx +18 -7
- package/src/components/tokens.tsx +2 -2
- package/src/components/ui.tsx +70 -5
- package/src/components/work.tsx +2 -2
- package/src/console.tsx +269 -12
- package/src/data.ts +54 -0
- package/src/desk-page.tsx +5 -5
- package/src/feed-words.ts +214 -0
- package/src/i18n/en.ts +114 -15
- package/src/i18n/ko.ts +115 -22
- package/src/icons/glyphs.ts +74 -68
- package/src/icons/index.ts +9 -1
- package/src/index.ts +11 -0
- package/src/limits.ts +7 -0
- package/src/notifications.ts +205 -0
- package/src/onboarding.ts +10 -14
- package/src/plugin/capabilities.ts +13 -0
- package/src/plugin/context.ts +87 -0
- package/src/plugin/limits.ts +7 -0
- package/src/plugin/manifest.ts +14 -0
- package/src/plugin/rest-schemas.ts +27 -3
- package/src/plugin/testing.ts +4 -0
- package/src/plugin.ts +2 -0
- package/src/router.ts +7 -0
- package/src/routes.ts +2 -0
- package/src/rules.ts +1 -1
- package/src/runner/acp.ts +12 -118
- package/src/runner/browser.ts +128 -0
- package/src/runner/claude.ts +399 -12
- package/src/runner/codex.ts +904 -400
- package/src/runner/config.ts +30 -7
- package/src/runner/desk.ts +22 -6
- package/src/runner/message.ts +251 -21
- package/src/runner/registry.ts +6 -0
- package/src/runner/rpc.ts +140 -0
- package/src/runner/runner.ts +863 -53
- package/src/runner/slack.ts +1535 -85
- package/src/runner/types.ts +150 -5
- package/src/runner/usage.ts +299 -0
- package/src/runner.ts +16 -1
- package/src/schemas.ts +249 -0
- package/src/services.ts +3 -3
- package/src/setup-guide.ts +12 -14
- package/src/styles/README.md +11 -7
- package/src/styles/console.css +2 -0
- package/src/styles/drawn-by-pages.json +7 -82
- package/src/styles/pages/agents.css +46 -35
- package/src/styles/pages/calendar.css +0 -1
- package/src/styles/pages/connect.css +0 -14
- package/src/styles/pages/decisions.css +2 -43
- package/src/styles/pages/documents.css +0 -29
- package/src/styles/pages/home.css +4 -16
- package/src/styles/pages/people.css +2 -17
- package/src/styles/pages/plugins.css +9 -12
- package/src/styles/pages/roadmap.css +0 -16
- package/src/styles/pages/settings.css +0 -28
- package/src/styles/pages/sign-in.css +2 -17
- package/src/styles/pages/thread.css +4 -50
- package/src/styles/pages/work.css +0 -5
- package/src/styles/parts/button.css +31 -0
- package/src/styles/parts/count.css +10 -0
- package/src/styles/parts/divider.css +17 -0
- package/src/styles/parts/frame.css +12 -0
- package/src/styles/parts/icon.css +39 -0
- package/src/styles/parts/menu.css +184 -0
- package/src/styles/parts/panel.css +7 -0
- package/src/styles/parts/progress.css +63 -0
- package/src/styles/parts/settings.css +2 -0
- package/src/styles/parts/sheet.css +28 -0
- package/src/styles/parts/text.css +34 -0
- package/src/text.ts +19 -0
- package/src/vocabulary.ts +4 -1
- package/template/plugin/package.json +1 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -542,6 +542,9 @@ export declare const restMeSchema: z.ZodMiniObject<{
|
|
|
542
542
|
decisions: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
543
543
|
waiting: z.ZodMiniInt;
|
|
544
544
|
}, z.core.$strip>>>;
|
|
545
|
+
notifications: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
546
|
+
unread: z.ZodMiniInt;
|
|
547
|
+
}, z.core.$strip>>>;
|
|
545
548
|
}, z.core.$strip>;
|
|
546
549
|
export type RestMe = z.infer<typeof restMeSchema>;
|
|
547
550
|
/**
|
|
@@ -669,6 +672,7 @@ export declare const restRunnerHeartbeatInputSchema: z.ZodMiniObject<{
|
|
|
669
672
|
start: "start";
|
|
670
673
|
started: "started";
|
|
671
674
|
stop: "stop";
|
|
675
|
+
usage_limit: "usage_limit";
|
|
672
676
|
}>;
|
|
673
677
|
delivered: z.ZodMiniInt;
|
|
674
678
|
session: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
@@ -705,6 +709,14 @@ export declare const restRunnerHeartbeatInputSchema: z.ZodMiniObject<{
|
|
|
705
709
|
since: z.ZodMiniISODateTime;
|
|
706
710
|
why: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
707
711
|
}, z.core.$strip>>>;
|
|
712
|
+
until: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
713
|
+
usage: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
714
|
+
name: z.ZodMiniString<string>;
|
|
715
|
+
used: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
716
|
+
resetsAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
717
|
+
near: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
718
|
+
at: z.ZodMiniISODateTime;
|
|
719
|
+
}, z.core.$strip>>>;
|
|
708
720
|
}, z.core.$strip>;
|
|
709
721
|
export type RestRunnerHeartbeatInput = z.infer<typeof restRunnerHeartbeatInputSchema>;
|
|
710
722
|
/**
|
|
@@ -738,6 +750,82 @@ export declare const restOwnWakeRaisedSchema: z.ZodMiniObject<{
|
|
|
738
750
|
}, z.core.$strip>>;
|
|
739
751
|
}, z.core.$strip>;
|
|
740
752
|
export type RestOwnWakeRaised = z.infer<typeof restOwnWakeRaisedSchema>;
|
|
753
|
+
/** How many accounts at a messenger one asking names. */
|
|
754
|
+
export declare const MAX_WRITERS_ASKED = 100;
|
|
755
|
+
/**
|
|
756
|
+
* What `POST /api/v1/agents/me/writers` is sent, by an agent account for itself (ADR-0164):
|
|
757
|
+
* accounts at a messenger, each by the messenger's ids for its workspace and for itself, as a
|
|
758
|
+
* message there names whoever wrote it.
|
|
759
|
+
*/
|
|
760
|
+
export declare const restWritersInputSchema: z.ZodMiniObject<{
|
|
761
|
+
messenger: z.ZodMiniString<string>;
|
|
762
|
+
accounts: z.ZodMiniArray<z.ZodMiniObject<{
|
|
763
|
+
workspace: z.ZodMiniString<string>;
|
|
764
|
+
account: z.ZodMiniString<string>;
|
|
765
|
+
}, z.core.$strip>>;
|
|
766
|
+
}, z.core.$strip>;
|
|
767
|
+
export type RestWritersInput = z.infer<typeof restWritersInputSchema>;
|
|
768
|
+
/**
|
|
769
|
+
* Who an account at a messenger is to the agent account that asks (ADR-0164). `told` is whether
|
|
770
|
+
* the console is told the accounts of that workspace at all, by a plugin that is enabled and
|
|
771
|
+
* holds `people:accounts`: where it is not, nothing is known there, and `member` is `null` for
|
|
772
|
+
* every account. `member` is the active member whose account it is, by their login, `null` for
|
|
773
|
+
* one the account that asks may not see (ADR-0035), with what kind of member they are and
|
|
774
|
+
* whether they supervise the account; `null` itself for an account that is no member's as far as
|
|
775
|
+
* the console is told.
|
|
776
|
+
*
|
|
777
|
+
* `supervisor` is the whole of ADR-0084, point 5: an administrator, or anyone above the asker
|
|
778
|
+
* in the reporting line, its manager and every level above. `administrator` and `line` say
|
|
779
|
+
* which, and the other way too: `line` is where the member stands in the asker's line,
|
|
780
|
+
* `manager` whom it reports to, `above` anyone further up, `report` whoever reports to it,
|
|
781
|
+
* `below` anyone further down, `null` nowhere in it. An administrator may stand anywhere in
|
|
782
|
+
* the line, below the asker too, and supervises it all the same.
|
|
783
|
+
*/
|
|
784
|
+
export declare const restWriterSchema: z.ZodMiniObject<{
|
|
785
|
+
workspace: z.ZodMiniString<string>;
|
|
786
|
+
account: z.ZodMiniString<string>;
|
|
787
|
+
told: z.ZodMiniBoolean<boolean>;
|
|
788
|
+
member: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
789
|
+
login: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
790
|
+
kind: z.ZodMiniEnum<{
|
|
791
|
+
agent: "agent";
|
|
792
|
+
person: "person";
|
|
793
|
+
}>;
|
|
794
|
+
supervisor: z.ZodMiniBoolean<boolean>;
|
|
795
|
+
administrator: z.ZodMiniBoolean<boolean>;
|
|
796
|
+
line: z.ZodMiniNullable<z.ZodMiniEnum<{
|
|
797
|
+
above: "above";
|
|
798
|
+
below: "below";
|
|
799
|
+
manager: "manager";
|
|
800
|
+
report: "report";
|
|
801
|
+
}>>;
|
|
802
|
+
}, z.core.$strip>>;
|
|
803
|
+
}, z.core.$strip>;
|
|
804
|
+
export type RestWriter = z.infer<typeof restWriterSchema>;
|
|
805
|
+
/** What `POST /api/v1/agents/me/writers` answers: the accounts asked of, in the order asked. */
|
|
806
|
+
export declare const restWritersSchema: z.ZodMiniObject<{
|
|
807
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
808
|
+
workspace: z.ZodMiniString<string>;
|
|
809
|
+
account: z.ZodMiniString<string>;
|
|
810
|
+
told: z.ZodMiniBoolean<boolean>;
|
|
811
|
+
member: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
812
|
+
login: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
813
|
+
kind: z.ZodMiniEnum<{
|
|
814
|
+
agent: "agent";
|
|
815
|
+
person: "person";
|
|
816
|
+
}>;
|
|
817
|
+
supervisor: z.ZodMiniBoolean<boolean>;
|
|
818
|
+
administrator: z.ZodMiniBoolean<boolean>;
|
|
819
|
+
line: z.ZodMiniNullable<z.ZodMiniEnum<{
|
|
820
|
+
above: "above";
|
|
821
|
+
below: "below";
|
|
822
|
+
manager: "manager";
|
|
823
|
+
report: "report";
|
|
824
|
+
}>>;
|
|
825
|
+
}, z.core.$strip>>;
|
|
826
|
+
}, z.core.$strip>>;
|
|
827
|
+
}, z.core.$strip>;
|
|
828
|
+
export type RestWriters = z.infer<typeof restWritersSchema>;
|
|
741
829
|
/** `GET /api/v1/agents/<handle>/wakes`: the wakes the account keeps for later, the soonest first. */
|
|
742
830
|
export declare const restOwnWakesSchema: z.ZodMiniObject<{
|
|
743
831
|
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -748,6 +836,15 @@ export declare const restOwnWakesSchema: z.ZodMiniObject<{
|
|
|
748
836
|
}, z.core.$strip>>;
|
|
749
837
|
}, z.core.$strip>;
|
|
750
838
|
export type RestOwnWakes = z.infer<typeof restOwnWakesSchema>;
|
|
839
|
+
/**
|
|
840
|
+
* What `POST /api/v1/agents/me/reset` is sent (ADR-0154): an agent account begins a new
|
|
841
|
+
* conversation for itself, when the turn it asks in is over. Its words say why, which its
|
|
842
|
+
* record keeps, and are what the new conversation reads first: they are needed.
|
|
843
|
+
*/
|
|
844
|
+
export declare const restOwnResetInputSchema: z.ZodMiniObject<{
|
|
845
|
+
text: z.ZodMiniString<string>;
|
|
846
|
+
}, z.core.$strip>;
|
|
847
|
+
export type RestOwnResetInput = z.infer<typeof restOwnResetInputSchema>;
|
|
751
848
|
/** What the heartbeat is answered: where the account's record of signals stands, what its supervisors chose, and how the console has the agent. */
|
|
752
849
|
export declare const restRunnerHeartbeatSchema: z.ZodMiniObject<{
|
|
753
850
|
latest: z.ZodMiniInt;
|
|
@@ -777,6 +874,7 @@ export declare const restAgentStateSchema: z.ZodMiniObject<{
|
|
|
777
874
|
reason: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
778
875
|
since: z.ZodMiniISODateTime;
|
|
779
876
|
heardAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
877
|
+
until: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
780
878
|
}, z.core.$strip>;
|
|
781
879
|
export type RestAgentState = z.infer<typeof restAgentStateSchema>;
|
|
782
880
|
/** What a runner last said of itself, for the account's supervisors and for the account: where it runs, with what, what it offers and runs with, and what was chosen for it. */
|
|
@@ -1851,6 +1949,15 @@ export declare const restAgentPatchSchema: z.ZodMiniObject<{
|
|
|
1851
1949
|
avatarSeed: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1852
1950
|
}, z.core.$strip>;
|
|
1853
1951
|
export type RestAgentPatch = z.infer<typeof restAgentPatchSchema>;
|
|
1952
|
+
/** A window of an agent account's allowance as it is answered (ADR-0156); the name is read as it came. */
|
|
1953
|
+
export declare const restAgentUsageWindowSchema: z.ZodMiniObject<{
|
|
1954
|
+
name: z.ZodMiniString<string>;
|
|
1955
|
+
used: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
1956
|
+
resetsAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
1957
|
+
near: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1958
|
+
at: z.ZodMiniISODateTime;
|
|
1959
|
+
}, z.core.$strip>;
|
|
1960
|
+
export type RestAgentUsageWindow = z.infer<typeof restAgentUsageWindowSchema>;
|
|
1854
1961
|
/**
|
|
1855
1962
|
* An agent account as its own listing answers it (ADR-0084): the member it is, and whom it
|
|
1856
1963
|
* reports to.
|
|
@@ -1948,6 +2055,7 @@ export declare const restAgentSchema: z.ZodMiniObject<{
|
|
|
1948
2055
|
reason: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1949
2056
|
since: z.ZodMiniISODateTime;
|
|
1950
2057
|
heardAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
2058
|
+
until: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
1951
2059
|
}, z.core.$strip>>>;
|
|
1952
2060
|
runner: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
1953
2061
|
delivered: z.ZodMiniInt;
|
|
@@ -1987,6 +2095,13 @@ export declare const restAgentSchema: z.ZodMiniObject<{
|
|
|
1987
2095
|
why: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1988
2096
|
}, z.core.$strip>>>;
|
|
1989
2097
|
}, z.core.$strip>>>;
|
|
2098
|
+
usage: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
2099
|
+
name: z.ZodMiniString<string>;
|
|
2100
|
+
used: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
2101
|
+
resetsAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
2102
|
+
near: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
2103
|
+
at: z.ZodMiniISODateTime;
|
|
2104
|
+
}, z.core.$strip>>>;
|
|
1990
2105
|
accounts: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
1991
2106
|
hours: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1992
2107
|
dayStart: z.ZodMiniString<string>;
|
|
@@ -2098,6 +2213,7 @@ export declare const restAgentsSchema: z.ZodMiniObject<{
|
|
|
2098
2213
|
reason: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
2099
2214
|
since: z.ZodMiniISODateTime;
|
|
2100
2215
|
heardAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
2216
|
+
until: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
2101
2217
|
}, z.core.$strip>>>;
|
|
2102
2218
|
runner: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
2103
2219
|
delivered: z.ZodMiniInt;
|
|
@@ -2137,6 +2253,13 @@ export declare const restAgentsSchema: z.ZodMiniObject<{
|
|
|
2137
2253
|
why: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2138
2254
|
}, z.core.$strip>>>;
|
|
2139
2255
|
}, z.core.$strip>>>;
|
|
2256
|
+
usage: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
2257
|
+
name: z.ZodMiniString<string>;
|
|
2258
|
+
used: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
2259
|
+
resetsAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
2260
|
+
near: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
2261
|
+
at: z.ZodMiniISODateTime;
|
|
2262
|
+
}, z.core.$strip>>>;
|
|
2140
2263
|
accounts: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
2141
2264
|
hours: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2142
2265
|
dayStart: z.ZodMiniString<string>;
|
|
@@ -2663,6 +2786,7 @@ export declare const restTaskSchema: z.ZodMiniObject<{
|
|
|
2663
2786
|
dueOn: z.ZodMiniNullable<z.ZodMiniISODate>;
|
|
2664
2787
|
startedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
2665
2788
|
doneAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
2789
|
+
lastRunEndedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
2666
2790
|
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
2667
2791
|
links: z.ZodMiniArray<z.ZodMiniObject<{
|
|
2668
2792
|
url: z.ZodMiniString<string>;
|
|
@@ -2807,6 +2931,7 @@ export declare const restTasksSchema: z.ZodMiniObject<{
|
|
|
2807
2931
|
dueOn: z.ZodMiniNullable<z.ZodMiniISODate>;
|
|
2808
2932
|
startedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
2809
2933
|
doneAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
2934
|
+
lastRunEndedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
2810
2935
|
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
2811
2936
|
links: z.ZodMiniArray<z.ZodMiniObject<{
|
|
2812
2937
|
url: z.ZodMiniString<string>;
|
|
@@ -3973,6 +4098,7 @@ export declare const restWorkSchema: z.ZodMiniObject<{
|
|
|
3973
4098
|
dueOn: z.ZodMiniNullable<z.ZodMiniISODate>;
|
|
3974
4099
|
startedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
3975
4100
|
doneAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
4101
|
+
lastRunEndedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
3976
4102
|
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
3977
4103
|
links: z.ZodMiniArray<z.ZodMiniObject<{
|
|
3978
4104
|
url: z.ZodMiniString<string>;
|
|
@@ -4131,6 +4257,7 @@ export declare const restWorkSchema: z.ZodMiniObject<{
|
|
|
4131
4257
|
dueOn: z.ZodMiniNullable<z.ZodMiniISODate>;
|
|
4132
4258
|
startedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
4133
4259
|
doneAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
4260
|
+
lastRunEndedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
4134
4261
|
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
4135
4262
|
links: z.ZodMiniArray<z.ZodMiniObject<{
|
|
4136
4263
|
url: z.ZodMiniString<string>;
|
|
@@ -5108,6 +5235,7 @@ export declare const restPersonWorkSchema: z.ZodMiniObject<{
|
|
|
5108
5235
|
dueOn: z.ZodMiniNullable<z.ZodMiniISODate>;
|
|
5109
5236
|
startedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
5110
5237
|
doneAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
5238
|
+
lastRunEndedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
5111
5239
|
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
5112
5240
|
links: z.ZodMiniArray<z.ZodMiniObject<{
|
|
5113
5241
|
url: z.ZodMiniString<string>;
|
|
@@ -5266,6 +5394,7 @@ export declare const restPersonWorkSchema: z.ZodMiniObject<{
|
|
|
5266
5394
|
dueOn: z.ZodMiniNullable<z.ZodMiniISODate>;
|
|
5267
5395
|
startedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
5268
5396
|
doneAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
5397
|
+
lastRunEndedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
5269
5398
|
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
5270
5399
|
links: z.ZodMiniArray<z.ZodMiniObject<{
|
|
5271
5400
|
url: z.ZodMiniString<string>;
|
|
@@ -5400,6 +5529,7 @@ export declare const restTaskBriefSchema: z.ZodMiniObject<{
|
|
|
5400
5529
|
dueOn: z.ZodMiniNullable<z.ZodMiniISODate>;
|
|
5401
5530
|
startedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
5402
5531
|
doneAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
5532
|
+
lastRunEndedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
5403
5533
|
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
5404
5534
|
links: z.ZodMiniArray<z.ZodMiniObject<{
|
|
5405
5535
|
url: z.ZodMiniString<string>;
|
|
@@ -5538,6 +5668,7 @@ export declare const restTaskBriefsSchema: z.ZodMiniObject<{
|
|
|
5538
5668
|
dueOn: z.ZodMiniNullable<z.ZodMiniISODate>;
|
|
5539
5669
|
startedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
5540
5670
|
doneAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
5671
|
+
lastRunEndedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
5541
5672
|
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
5542
5673
|
links: z.ZodMiniArray<z.ZodMiniObject<{
|
|
5543
5674
|
url: z.ZodMiniString<string>;
|
|
@@ -5942,6 +6073,7 @@ export declare const restWorkBriefSchema: z.ZodMiniObject<{
|
|
|
5942
6073
|
dueOn: z.ZodMiniNullable<z.ZodMiniISODate>;
|
|
5943
6074
|
startedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
5944
6075
|
doneAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
6076
|
+
lastRunEndedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
5945
6077
|
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
5946
6078
|
links: z.ZodMiniArray<z.ZodMiniObject<{
|
|
5947
6079
|
url: z.ZodMiniString<string>;
|
|
@@ -6099,6 +6231,7 @@ export declare const restWorkBriefSchema: z.ZodMiniObject<{
|
|
|
6099
6231
|
dueOn: z.ZodMiniNullable<z.ZodMiniISODate>;
|
|
6100
6232
|
startedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
6101
6233
|
doneAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
6234
|
+
lastRunEndedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
6102
6235
|
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
6103
6236
|
links: z.ZodMiniArray<z.ZodMiniObject<{
|
|
6104
6237
|
url: z.ZodMiniString<string>;
|
|
@@ -6524,6 +6657,7 @@ export declare const restPersonWorkBriefSchema: z.ZodMiniObject<{
|
|
|
6524
6657
|
dueOn: z.ZodMiniNullable<z.ZodMiniISODate>;
|
|
6525
6658
|
startedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
6526
6659
|
doneAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
6660
|
+
lastRunEndedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
6527
6661
|
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
6528
6662
|
links: z.ZodMiniArray<z.ZodMiniObject<{
|
|
6529
6663
|
url: z.ZodMiniString<string>;
|
|
@@ -6681,6 +6815,7 @@ export declare const restPersonWorkBriefSchema: z.ZodMiniObject<{
|
|
|
6681
6815
|
dueOn: z.ZodMiniNullable<z.ZodMiniISODate>;
|
|
6682
6816
|
startedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
6683
6817
|
doneAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
6818
|
+
lastRunEndedAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
|
|
6684
6819
|
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
6685
6820
|
links: z.ZodMiniArray<z.ZodMiniObject<{
|
|
6686
6821
|
url: z.ZodMiniString<string>;
|
|
@@ -6773,6 +6908,9 @@ export declare const restEventDataSchema: z.ZodMiniObject<{
|
|
|
6773
6908
|
manager: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
6774
6909
|
team: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
6775
6910
|
set: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
6911
|
+
messenger: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
6912
|
+
workspace: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
6913
|
+
account: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
6776
6914
|
handle: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
6777
6915
|
state: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
6778
6916
|
failed: "failed";
|
|
@@ -6789,6 +6927,7 @@ export declare const restEventDataSchema: z.ZodMiniObject<{
|
|
|
6789
6927
|
unheard: "unheard";
|
|
6790
6928
|
}>>>;
|
|
6791
6929
|
detail: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
6930
|
+
until: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
6792
6931
|
key: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
6793
6932
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
6794
6933
|
agent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -6961,6 +7100,9 @@ export declare const restEventSchema: z.ZodMiniObject<{
|
|
|
6961
7100
|
manager: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
6962
7101
|
team: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
6963
7102
|
set: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
7103
|
+
messenger: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7104
|
+
workspace: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7105
|
+
account: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
6964
7106
|
handle: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
6965
7107
|
state: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
6966
7108
|
failed: "failed";
|
|
@@ -6977,6 +7119,7 @@ export declare const restEventSchema: z.ZodMiniObject<{
|
|
|
6977
7119
|
unheard: "unheard";
|
|
6978
7120
|
}>>>;
|
|
6979
7121
|
detail: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7122
|
+
until: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
6980
7123
|
key: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
6981
7124
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
6982
7125
|
agent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -7011,6 +7154,532 @@ export declare const restEventSchema: z.ZodMiniObject<{
|
|
|
7011
7154
|
createdAt: z.ZodMiniISODateTime;
|
|
7012
7155
|
}, z.core.$strip>;
|
|
7013
7156
|
export type RestEvent = z.infer<typeof restEventSchema>;
|
|
7157
|
+
/**
|
|
7158
|
+
* A notification (ADR-0157): one thing that happened on the board that the member asking is
|
|
7159
|
+
* told of, with why and whether they read it. What happened is the feed's own event, said as
|
|
7160
|
+
* the feed says it; the project is named for the page to link the thing.
|
|
7161
|
+
*/
|
|
7162
|
+
export declare const restNotificationSchema: z.ZodMiniObject<{
|
|
7163
|
+
id: z.ZodMiniUUID;
|
|
7164
|
+
kind: z.ZodMiniString<string>;
|
|
7165
|
+
followed: z.ZodMiniBoolean<boolean>;
|
|
7166
|
+
readAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
7167
|
+
createdAt: z.ZodMiniISODateTime;
|
|
7168
|
+
event: z.ZodMiniObject<{
|
|
7169
|
+
id: z.ZodMiniInt;
|
|
7170
|
+
kind: z.ZodMiniEnum<{
|
|
7171
|
+
"agent.state_changed": "agent.state_changed";
|
|
7172
|
+
"category.created": "category.created";
|
|
7173
|
+
"category.removed": "category.removed";
|
|
7174
|
+
"category.updated": "category.updated";
|
|
7175
|
+
"decision.addressed": "decision.addressed";
|
|
7176
|
+
"decision.answered": "decision.answered";
|
|
7177
|
+
"decision.raised": "decision.raised";
|
|
7178
|
+
"decision.updated": "decision.updated";
|
|
7179
|
+
"document.archived": "document.archived";
|
|
7180
|
+
"document.file_attached": "document.file_attached";
|
|
7181
|
+
"document.restored": "document.restored";
|
|
7182
|
+
"document.written": "document.written";
|
|
7183
|
+
"goal.created": "goal.created";
|
|
7184
|
+
"goal.updated": "goal.updated";
|
|
7185
|
+
"person.deactivated": "person.deactivated";
|
|
7186
|
+
"person.email_changed": "person.email_changed";
|
|
7187
|
+
"person.joined": "person.joined";
|
|
7188
|
+
"person.listed": "person.listed";
|
|
7189
|
+
"person.manager_changed": "person.manager_changed";
|
|
7190
|
+
"person.reactivated": "person.reactivated";
|
|
7191
|
+
"person.role_changed": "person.role_changed";
|
|
7192
|
+
"person.unlisted": "person.unlisted";
|
|
7193
|
+
"person.updated": "person.updated";
|
|
7194
|
+
"plugin.command": "plugin.command";
|
|
7195
|
+
"plugin.configured": "plugin.configured";
|
|
7196
|
+
"plugin.disabled": "plugin.disabled";
|
|
7197
|
+
"plugin.enabled": "plugin.enabled";
|
|
7198
|
+
"plugin.failed": "plugin.failed";
|
|
7199
|
+
"plugin.granted": "plugin.granted";
|
|
7200
|
+
"plugin.purged": "plugin.purged";
|
|
7201
|
+
"plugin.revoked": "plugin.revoked";
|
|
7202
|
+
"plugin.upgraded": "plugin.upgraded";
|
|
7203
|
+
"project.created": "project.created";
|
|
7204
|
+
"project.member_added": "project.member_added";
|
|
7205
|
+
"project.member_changed": "project.member_changed";
|
|
7206
|
+
"project.member_removed": "project.member_removed";
|
|
7207
|
+
"project.updated": "project.updated";
|
|
7208
|
+
"run.ended": "run.ended";
|
|
7209
|
+
"run.handed_in": "run.handed_in";
|
|
7210
|
+
"run.reported": "run.reported";
|
|
7211
|
+
"run.started": "run.started";
|
|
7212
|
+
"run.taken_over": "run.taken_over";
|
|
7213
|
+
"task.archived": "task.archived";
|
|
7214
|
+
"task.commented": "task.commented";
|
|
7215
|
+
"task.created": "task.created";
|
|
7216
|
+
"task.moved": "task.moved";
|
|
7217
|
+
"task.restored": "task.restored";
|
|
7218
|
+
"task.updated": "task.updated";
|
|
7219
|
+
"team.created": "team.created";
|
|
7220
|
+
"team.member_added": "team.member_added";
|
|
7221
|
+
"team.member_removed": "team.member_removed";
|
|
7222
|
+
"team.removed": "team.removed";
|
|
7223
|
+
"team.renamed": "team.renamed";
|
|
7224
|
+
"workspace.updated": "workspace.updated";
|
|
7225
|
+
}>;
|
|
7226
|
+
actor: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
7227
|
+
id: z.ZodMiniUUID;
|
|
7228
|
+
login: z.ZodMiniString<string>;
|
|
7229
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
7230
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
7231
|
+
role: z.ZodMiniEnum<{
|
|
7232
|
+
admin: "admin";
|
|
7233
|
+
member: "member";
|
|
7234
|
+
}>;
|
|
7235
|
+
status: z.ZodMiniEnum<{
|
|
7236
|
+
active: "active";
|
|
7237
|
+
deactivated: "deactivated";
|
|
7238
|
+
}>;
|
|
7239
|
+
source: z.ZodMiniEnum<{
|
|
7240
|
+
domain: "domain";
|
|
7241
|
+
listed: "listed";
|
|
7242
|
+
organization: "organization";
|
|
7243
|
+
}>;
|
|
7244
|
+
deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
7245
|
+
managerId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUUID>>;
|
|
7246
|
+
teams: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
7247
|
+
language: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7248
|
+
email: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7249
|
+
kind: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
7250
|
+
agent: "agent";
|
|
7251
|
+
person: "person";
|
|
7252
|
+
}>>;
|
|
7253
|
+
handle: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7254
|
+
title: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7255
|
+
avatarParts: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
7256
|
+
set: z.ZodMiniInt;
|
|
7257
|
+
palette: z.ZodMiniInt;
|
|
7258
|
+
ground: z.ZodMiniInt;
|
|
7259
|
+
form: z.ZodMiniInt;
|
|
7260
|
+
material: z.ZodMiniInt;
|
|
7261
|
+
accent: z.ZodMiniInt;
|
|
7262
|
+
vein: z.ZodMiniInt;
|
|
7263
|
+
}, z.core.$strip>>>;
|
|
7264
|
+
invited: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
7265
|
+
}, z.core.$strip>>;
|
|
7266
|
+
agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
7267
|
+
projectId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
7268
|
+
taskId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
7269
|
+
decisionId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
7270
|
+
runId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
7271
|
+
documentId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
7272
|
+
goalId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
7273
|
+
plugin: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
7274
|
+
via: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7275
|
+
data: z.ZodMiniObject<{
|
|
7276
|
+
number: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
7277
|
+
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7278
|
+
fields: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
7279
|
+
workersAdded: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUUID>>;
|
|
7280
|
+
deciders: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
7281
|
+
decidersAdded: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUUID>>;
|
|
7282
|
+
path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7283
|
+
version: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
7284
|
+
from: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
7285
|
+
done: "done";
|
|
7286
|
+
dropped: "dropped";
|
|
7287
|
+
idea: "idea";
|
|
7288
|
+
in_progress: "in_progress";
|
|
7289
|
+
in_review: "in_review";
|
|
7290
|
+
ready: "ready";
|
|
7291
|
+
}>>;
|
|
7292
|
+
to: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
7293
|
+
done: "done";
|
|
7294
|
+
dropped: "dropped";
|
|
7295
|
+
idea: "idea";
|
|
7296
|
+
in_progress: "in_progress";
|
|
7297
|
+
in_review: "in_review";
|
|
7298
|
+
ready: "ready";
|
|
7299
|
+
}>>;
|
|
7300
|
+
question: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7301
|
+
option: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7302
|
+
optionKey: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7303
|
+
login: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7304
|
+
role: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7305
|
+
manager: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7306
|
+
team: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7307
|
+
set: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
7308
|
+
messenger: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7309
|
+
workspace: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7310
|
+
account: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7311
|
+
handle: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7312
|
+
state: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
7313
|
+
failed: "failed";
|
|
7314
|
+
refused: "refused";
|
|
7315
|
+
running: "running";
|
|
7316
|
+
stopped: "stopped";
|
|
7317
|
+
unheard: "unheard";
|
|
7318
|
+
}>>;
|
|
7319
|
+
was: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniEnum<{
|
|
7320
|
+
failed: "failed";
|
|
7321
|
+
refused: "refused";
|
|
7322
|
+
running: "running";
|
|
7323
|
+
stopped: "stopped";
|
|
7324
|
+
unheard: "unheard";
|
|
7325
|
+
}>>>;
|
|
7326
|
+
detail: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7327
|
+
until: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
7328
|
+
key: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7329
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7330
|
+
agent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7331
|
+
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
7332
|
+
abandoned: "abandoned";
|
|
7333
|
+
failed: "failed";
|
|
7334
|
+
finished: "finished";
|
|
7335
|
+
running: "running";
|
|
7336
|
+
waiting: "waiting";
|
|
7337
|
+
}>>;
|
|
7338
|
+
reason: z.ZodMiniOptional<z.ZodMiniLiteral<"unheard">>;
|
|
7339
|
+
label: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7340
|
+
excerpt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7341
|
+
files: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
7342
|
+
command: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7343
|
+
outcome: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
7344
|
+
failed: "failed";
|
|
7345
|
+
ok: "ok";
|
|
7346
|
+
refused: "refused";
|
|
7347
|
+
waiting: "waiting";
|
|
7348
|
+
}>>;
|
|
7349
|
+
code: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7350
|
+
durationMs: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
7351
|
+
args: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
7352
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
7353
|
+
source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7354
|
+
under: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7355
|
+
grantee: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7356
|
+
everyone: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
7357
|
+
problem: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7358
|
+
}, z.core.$strip>;
|
|
7359
|
+
createdAt: z.ZodMiniISODateTime;
|
|
7360
|
+
}, z.core.$strip>;
|
|
7361
|
+
project: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
7362
|
+
key: z.ZodMiniString<string>;
|
|
7363
|
+
name: z.ZodMiniString<string>;
|
|
7364
|
+
color: z.ZodMiniNullable<z.ZodMiniEnum<{
|
|
7365
|
+
blue: "blue";
|
|
7366
|
+
gray: "gray";
|
|
7367
|
+
green: "green";
|
|
7368
|
+
orange: "orange";
|
|
7369
|
+
pink: "pink";
|
|
7370
|
+
purple: "purple";
|
|
7371
|
+
teal: "teal";
|
|
7372
|
+
yellow: "yellow";
|
|
7373
|
+
}>>;
|
|
7374
|
+
symbol: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
7375
|
+
glyph: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7376
|
+
icon: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
7377
|
+
sha256: z.ZodMiniString<string>;
|
|
7378
|
+
contentType: z.ZodMiniEnum<{
|
|
7379
|
+
"image/gif": "image/gif";
|
|
7380
|
+
"image/jpeg": "image/jpeg";
|
|
7381
|
+
"image/png": "image/png";
|
|
7382
|
+
"image/webp": "image/webp";
|
|
7383
|
+
}>;
|
|
7384
|
+
}, z.core.$strip>>;
|
|
7385
|
+
}, z.core.$strip>>;
|
|
7386
|
+
}, z.core.$strip>;
|
|
7387
|
+
export type RestNotification = z.infer<typeof restNotificationSchema>;
|
|
7388
|
+
/** `GET /api/v1/notifications`: a page of the asker's notifications, the newest first, whether there is more, and how many they have not read. */
|
|
7389
|
+
export declare const restNotificationsSchema: z.ZodMiniObject<{
|
|
7390
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
7391
|
+
id: z.ZodMiniUUID;
|
|
7392
|
+
kind: z.ZodMiniString<string>;
|
|
7393
|
+
followed: z.ZodMiniBoolean<boolean>;
|
|
7394
|
+
readAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
7395
|
+
createdAt: z.ZodMiniISODateTime;
|
|
7396
|
+
event: z.ZodMiniObject<{
|
|
7397
|
+
id: z.ZodMiniInt;
|
|
7398
|
+
kind: z.ZodMiniEnum<{
|
|
7399
|
+
"agent.state_changed": "agent.state_changed";
|
|
7400
|
+
"category.created": "category.created";
|
|
7401
|
+
"category.removed": "category.removed";
|
|
7402
|
+
"category.updated": "category.updated";
|
|
7403
|
+
"decision.addressed": "decision.addressed";
|
|
7404
|
+
"decision.answered": "decision.answered";
|
|
7405
|
+
"decision.raised": "decision.raised";
|
|
7406
|
+
"decision.updated": "decision.updated";
|
|
7407
|
+
"document.archived": "document.archived";
|
|
7408
|
+
"document.file_attached": "document.file_attached";
|
|
7409
|
+
"document.restored": "document.restored";
|
|
7410
|
+
"document.written": "document.written";
|
|
7411
|
+
"goal.created": "goal.created";
|
|
7412
|
+
"goal.updated": "goal.updated";
|
|
7413
|
+
"person.deactivated": "person.deactivated";
|
|
7414
|
+
"person.email_changed": "person.email_changed";
|
|
7415
|
+
"person.joined": "person.joined";
|
|
7416
|
+
"person.listed": "person.listed";
|
|
7417
|
+
"person.manager_changed": "person.manager_changed";
|
|
7418
|
+
"person.reactivated": "person.reactivated";
|
|
7419
|
+
"person.role_changed": "person.role_changed";
|
|
7420
|
+
"person.unlisted": "person.unlisted";
|
|
7421
|
+
"person.updated": "person.updated";
|
|
7422
|
+
"plugin.command": "plugin.command";
|
|
7423
|
+
"plugin.configured": "plugin.configured";
|
|
7424
|
+
"plugin.disabled": "plugin.disabled";
|
|
7425
|
+
"plugin.enabled": "plugin.enabled";
|
|
7426
|
+
"plugin.failed": "plugin.failed";
|
|
7427
|
+
"plugin.granted": "plugin.granted";
|
|
7428
|
+
"plugin.purged": "plugin.purged";
|
|
7429
|
+
"plugin.revoked": "plugin.revoked";
|
|
7430
|
+
"plugin.upgraded": "plugin.upgraded";
|
|
7431
|
+
"project.created": "project.created";
|
|
7432
|
+
"project.member_added": "project.member_added";
|
|
7433
|
+
"project.member_changed": "project.member_changed";
|
|
7434
|
+
"project.member_removed": "project.member_removed";
|
|
7435
|
+
"project.updated": "project.updated";
|
|
7436
|
+
"run.ended": "run.ended";
|
|
7437
|
+
"run.handed_in": "run.handed_in";
|
|
7438
|
+
"run.reported": "run.reported";
|
|
7439
|
+
"run.started": "run.started";
|
|
7440
|
+
"run.taken_over": "run.taken_over";
|
|
7441
|
+
"task.archived": "task.archived";
|
|
7442
|
+
"task.commented": "task.commented";
|
|
7443
|
+
"task.created": "task.created";
|
|
7444
|
+
"task.moved": "task.moved";
|
|
7445
|
+
"task.restored": "task.restored";
|
|
7446
|
+
"task.updated": "task.updated";
|
|
7447
|
+
"team.created": "team.created";
|
|
7448
|
+
"team.member_added": "team.member_added";
|
|
7449
|
+
"team.member_removed": "team.member_removed";
|
|
7450
|
+
"team.removed": "team.removed";
|
|
7451
|
+
"team.renamed": "team.renamed";
|
|
7452
|
+
"workspace.updated": "workspace.updated";
|
|
7453
|
+
}>;
|
|
7454
|
+
actor: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
7455
|
+
id: z.ZodMiniUUID;
|
|
7456
|
+
login: z.ZodMiniString<string>;
|
|
7457
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
7458
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
7459
|
+
role: z.ZodMiniEnum<{
|
|
7460
|
+
admin: "admin";
|
|
7461
|
+
member: "member";
|
|
7462
|
+
}>;
|
|
7463
|
+
status: z.ZodMiniEnum<{
|
|
7464
|
+
active: "active";
|
|
7465
|
+
deactivated: "deactivated";
|
|
7466
|
+
}>;
|
|
7467
|
+
source: z.ZodMiniEnum<{
|
|
7468
|
+
domain: "domain";
|
|
7469
|
+
listed: "listed";
|
|
7470
|
+
organization: "organization";
|
|
7471
|
+
}>;
|
|
7472
|
+
deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
7473
|
+
managerId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUUID>>;
|
|
7474
|
+
teams: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
7475
|
+
language: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7476
|
+
email: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7477
|
+
kind: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
7478
|
+
agent: "agent";
|
|
7479
|
+
person: "person";
|
|
7480
|
+
}>>;
|
|
7481
|
+
handle: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7482
|
+
title: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7483
|
+
avatarParts: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
7484
|
+
set: z.ZodMiniInt;
|
|
7485
|
+
palette: z.ZodMiniInt;
|
|
7486
|
+
ground: z.ZodMiniInt;
|
|
7487
|
+
form: z.ZodMiniInt;
|
|
7488
|
+
material: z.ZodMiniInt;
|
|
7489
|
+
accent: z.ZodMiniInt;
|
|
7490
|
+
vein: z.ZodMiniInt;
|
|
7491
|
+
}, z.core.$strip>>>;
|
|
7492
|
+
invited: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
7493
|
+
}, z.core.$strip>>;
|
|
7494
|
+
agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
7495
|
+
projectId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
7496
|
+
taskId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
7497
|
+
decisionId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
7498
|
+
runId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
7499
|
+
documentId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
7500
|
+
goalId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
7501
|
+
plugin: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
7502
|
+
via: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7503
|
+
data: z.ZodMiniObject<{
|
|
7504
|
+
number: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
7505
|
+
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7506
|
+
fields: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
7507
|
+
workersAdded: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUUID>>;
|
|
7508
|
+
deciders: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
7509
|
+
decidersAdded: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUUID>>;
|
|
7510
|
+
path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7511
|
+
version: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
7512
|
+
from: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
7513
|
+
done: "done";
|
|
7514
|
+
dropped: "dropped";
|
|
7515
|
+
idea: "idea";
|
|
7516
|
+
in_progress: "in_progress";
|
|
7517
|
+
in_review: "in_review";
|
|
7518
|
+
ready: "ready";
|
|
7519
|
+
}>>;
|
|
7520
|
+
to: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
7521
|
+
done: "done";
|
|
7522
|
+
dropped: "dropped";
|
|
7523
|
+
idea: "idea";
|
|
7524
|
+
in_progress: "in_progress";
|
|
7525
|
+
in_review: "in_review";
|
|
7526
|
+
ready: "ready";
|
|
7527
|
+
}>>;
|
|
7528
|
+
question: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7529
|
+
option: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7530
|
+
optionKey: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7531
|
+
login: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7532
|
+
role: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7533
|
+
manager: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7534
|
+
team: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7535
|
+
set: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
7536
|
+
messenger: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7537
|
+
workspace: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7538
|
+
account: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7539
|
+
handle: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7540
|
+
state: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
7541
|
+
failed: "failed";
|
|
7542
|
+
refused: "refused";
|
|
7543
|
+
running: "running";
|
|
7544
|
+
stopped: "stopped";
|
|
7545
|
+
unheard: "unheard";
|
|
7546
|
+
}>>;
|
|
7547
|
+
was: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniEnum<{
|
|
7548
|
+
failed: "failed";
|
|
7549
|
+
refused: "refused";
|
|
7550
|
+
running: "running";
|
|
7551
|
+
stopped: "stopped";
|
|
7552
|
+
unheard: "unheard";
|
|
7553
|
+
}>>>;
|
|
7554
|
+
detail: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7555
|
+
until: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
7556
|
+
key: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7557
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7558
|
+
agent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7559
|
+
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
7560
|
+
abandoned: "abandoned";
|
|
7561
|
+
failed: "failed";
|
|
7562
|
+
finished: "finished";
|
|
7563
|
+
running: "running";
|
|
7564
|
+
waiting: "waiting";
|
|
7565
|
+
}>>;
|
|
7566
|
+
reason: z.ZodMiniOptional<z.ZodMiniLiteral<"unheard">>;
|
|
7567
|
+
label: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7568
|
+
excerpt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7569
|
+
files: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
7570
|
+
command: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7571
|
+
outcome: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
7572
|
+
failed: "failed";
|
|
7573
|
+
ok: "ok";
|
|
7574
|
+
refused: "refused";
|
|
7575
|
+
waiting: "waiting";
|
|
7576
|
+
}>>;
|
|
7577
|
+
code: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7578
|
+
durationMs: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
7579
|
+
args: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
7580
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
7581
|
+
source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7582
|
+
under: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7583
|
+
grantee: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7584
|
+
everyone: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
7585
|
+
problem: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7586
|
+
}, z.core.$strip>;
|
|
7587
|
+
createdAt: z.ZodMiniISODateTime;
|
|
7588
|
+
}, z.core.$strip>;
|
|
7589
|
+
project: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
7590
|
+
key: z.ZodMiniString<string>;
|
|
7591
|
+
name: z.ZodMiniString<string>;
|
|
7592
|
+
color: z.ZodMiniNullable<z.ZodMiniEnum<{
|
|
7593
|
+
blue: "blue";
|
|
7594
|
+
gray: "gray";
|
|
7595
|
+
green: "green";
|
|
7596
|
+
orange: "orange";
|
|
7597
|
+
pink: "pink";
|
|
7598
|
+
purple: "purple";
|
|
7599
|
+
teal: "teal";
|
|
7600
|
+
yellow: "yellow";
|
|
7601
|
+
}>>;
|
|
7602
|
+
symbol: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
7603
|
+
glyph: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7604
|
+
icon: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
7605
|
+
sha256: z.ZodMiniString<string>;
|
|
7606
|
+
contentType: z.ZodMiniEnum<{
|
|
7607
|
+
"image/gif": "image/gif";
|
|
7608
|
+
"image/jpeg": "image/jpeg";
|
|
7609
|
+
"image/png": "image/png";
|
|
7610
|
+
"image/webp": "image/webp";
|
|
7611
|
+
}>;
|
|
7612
|
+
}, z.core.$strip>>;
|
|
7613
|
+
}, z.core.$strip>>;
|
|
7614
|
+
}, z.core.$strip>>;
|
|
7615
|
+
more: z.ZodMiniBoolean<boolean>;
|
|
7616
|
+
unread: z.ZodMiniInt;
|
|
7617
|
+
}, z.core.$strip>;
|
|
7618
|
+
export type RestNotifications = z.infer<typeof restNotificationsSchema>;
|
|
7619
|
+
/** What `POST /api/v1/notifications/read` is sent: the notifications read, by their ids, or `all` for every one. */
|
|
7620
|
+
export declare const restNotificationsReadInputSchema: z.ZodMiniObject<{
|
|
7621
|
+
ids: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUUID>>;
|
|
7622
|
+
all: z.ZodMiniOptional<z.ZodMiniLiteral<true>>;
|
|
7623
|
+
}, z.core.$strip>;
|
|
7624
|
+
export type RestNotificationsReadInput = z.infer<typeof restNotificationsReadInputSchema>;
|
|
7625
|
+
/**
|
|
7626
|
+
* What marking as read answers: how many were marked, how many are still not read, and the
|
|
7627
|
+
* moment those marked were read at, which is their `readAt` from now on.
|
|
7628
|
+
*/
|
|
7629
|
+
export declare const restNotificationsReadSchema: z.ZodMiniObject<{
|
|
7630
|
+
read: z.ZodMiniInt;
|
|
7631
|
+
unread: z.ZodMiniInt;
|
|
7632
|
+
at: z.ZodMiniISODateTime;
|
|
7633
|
+
}, z.core.$strip>;
|
|
7634
|
+
export type RestNotificationsRead = z.infer<typeof restNotificationsReadSchema>;
|
|
7635
|
+
/**
|
|
7636
|
+
* What a member is told of (ADR-0157): each kind on or off, by its name, with what it would
|
|
7637
|
+
* be had they chosen nothing; the projects they are told nothing of; and whether they are told
|
|
7638
|
+
* of what an agent of their own did as them. A map by name, so that a kind a newer console
|
|
7639
|
+
* adds is read. It is of everything a member is told: what a plugin that carries notifications
|
|
7640
|
+
* elsewhere sends of it is that plugin's own setting, and none of the console's.
|
|
7641
|
+
*/
|
|
7642
|
+
export declare const restNotificationSettingsSchema: z.ZodMiniObject<{
|
|
7643
|
+
kinds: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniBoolean<boolean>>;
|
|
7644
|
+
defaults: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniBoolean<boolean>>;
|
|
7645
|
+
projectsOff: z.ZodMiniArray<z.ZodMiniObject<{
|
|
7646
|
+
key: z.ZodMiniString<string>;
|
|
7647
|
+
name: z.ZodMiniString<string>;
|
|
7648
|
+
}, z.core.$strip>>;
|
|
7649
|
+
ownAgents: z.ZodMiniBoolean<boolean>;
|
|
7650
|
+
}, z.core.$strip>;
|
|
7651
|
+
export type RestNotificationSettings = z.infer<typeof restNotificationSettingsSchema>;
|
|
7652
|
+
/**
|
|
7653
|
+
* What `PUT /api/v1/notifications/settings` is sent: the kinds turned on or off, by name, the
|
|
7654
|
+
* others staying as they are; the projects told nothing of, by their keys, the whole list;
|
|
7655
|
+
* whether one's own agents count; or `reset`, alone, for what a member who chose nothing has.
|
|
7656
|
+
*/
|
|
7657
|
+
export declare const restNotificationSettingsInputSchema: z.ZodMiniObject<{
|
|
7658
|
+
kinds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniBoolean<boolean>>>;
|
|
7659
|
+
projectsOff: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
7660
|
+
ownAgents: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
7661
|
+
reset: z.ZodMiniOptional<z.ZodMiniLiteral<true>>;
|
|
7662
|
+
}, z.core.$strip>;
|
|
7663
|
+
export type RestNotificationSettingsInput = z.infer<typeof restNotificationSettingsInputSchema>;
|
|
7664
|
+
/**
|
|
7665
|
+
* Whether one task tells the asker anything (ADR-0157): `on`, as it stands, and `usual`, as
|
|
7666
|
+
* their settings have it where they chose nothing of the task, on for a task that is theirs
|
|
7667
|
+
* and that a kind they have on would tell them of. A task turned on where `usual` is off
|
|
7668
|
+
* tells them of everything on it, which `all` says, and goes on doing so whatever their
|
|
7669
|
+
* settings come to say; one turned off tells them nothing; one left as usual tells them by
|
|
7670
|
+
* their kinds. The answer of `GET` and `PUT .../tasks/<id>/follow`.
|
|
7671
|
+
*/
|
|
7672
|
+
export declare const restTaskFollowSchema: z.ZodMiniObject<{
|
|
7673
|
+
on: z.ZodMiniBoolean<boolean>;
|
|
7674
|
+
usual: z.ZodMiniBoolean<boolean>;
|
|
7675
|
+
all: z.ZodMiniBoolean<boolean>;
|
|
7676
|
+
}, z.core.$strip>;
|
|
7677
|
+
export type RestTaskFollow = z.infer<typeof restTaskFollowSchema>;
|
|
7678
|
+
/** What `PUT .../tasks/<id>/follow` is sent: the task's notifications on, or off. */
|
|
7679
|
+
export declare const restTaskFollowInputSchema: z.ZodMiniObject<{
|
|
7680
|
+
on: z.ZodMiniBoolean<boolean>;
|
|
7681
|
+
}, z.core.$strip>;
|
|
7682
|
+
export type RestTaskFollowInput = z.infer<typeof restTaskFollowInputSchema>;
|
|
7014
7683
|
/** What an agent reported while at work: Markdown, shown as text or rendered to elements. */
|
|
7015
7684
|
export declare const restReportSchema: z.ZodMiniObject<{
|
|
7016
7685
|
id: z.ZodMiniUUID;
|
|
@@ -7653,6 +8322,9 @@ export declare const restEventsSchema: z.ZodMiniObject<{
|
|
|
7653
8322
|
manager: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7654
8323
|
team: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7655
8324
|
set: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
8325
|
+
messenger: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
8326
|
+
workspace: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
8327
|
+
account: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7656
8328
|
handle: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7657
8329
|
state: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
7658
8330
|
failed: "failed";
|
|
@@ -7669,6 +8341,7 @@ export declare const restEventsSchema: z.ZodMiniObject<{
|
|
|
7669
8341
|
unheard: "unheard";
|
|
7670
8342
|
}>>>;
|
|
7671
8343
|
detail: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
8344
|
+
until: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
7672
8345
|
key: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7673
8346
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7674
8347
|
agent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|