slatebox-mcp 0.4.1 → 0.5.1
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 +13 -7
- package/generated/client.json +3228 -369
- package/generated/exec-tool.json +1691 -206
- package/generated/guest-client.js +1 -1
- package/generated/slate-viewer.html +589 -0
- package/generated/slatebox.d.ts +1209 -68
- package/package.json +1 -1
- package/src/apps.js +59 -0
- package/src/describe.js +29 -10
- package/src/mcp.js +2 -2
- package/src/server.js +14 -5
- package/src/typed-tools.js +5 -0
package/generated/slatebox.d.ts
CHANGED
|
@@ -182,13 +182,15 @@ declare namespace slatebox.ai.bindings {
|
|
|
182
182
|
declare namespace slatebox.ai.bindings {
|
|
183
183
|
/** Set AI bindings. Sets which model each named part of Slatebox uses: use model (a model id from the Models list, <provider>:<model>), default (the default model), or off (that part answers "turned off by your administrator"). A model that cannot do what the part needs is refused. Only the rows that change are written, each with its own line in the change history; note is optional. Every server picks it up within seconds. Administrators only. @scope ai:admin @confirm @idempotent */
|
|
184
184
|
function set(input: {
|
|
185
|
-
/** (1–
|
|
185
|
+
/** (1–26 items) */
|
|
186
186
|
changes: Array<{
|
|
187
187
|
/** The part of Slatebox, for example shape or agent.slatebox; default is everything not set. */
|
|
188
|
-
surface: "default" | "chat" | "chat.route" | "generation" | "presentation" | "vision" | "images" | "shape" | "workshop" | "workshop.draft" | "canvas" | "agent.slatebox" | "library" | "connectors";
|
|
188
|
+
surface: "default" | "chat" | "chat.route" | "generation" | "presentation" | "vision" | "images" | "shape" | "workshop" | "workshop.draft" | "canvas" | "agent.slatebox" | "library" | "connectors" | "recipes" | "interview" | "personal.suggest" | "profile.sources" | "profile.import" | "start.interview" | "voice" | "voice.chat" | "voice.interview" | "call.listen" | "call.build" | "eval";
|
|
189
189
|
use: "default" | "model" | "off";
|
|
190
190
|
/** With use model: <provider>:<model>. (at most 260 characters) */
|
|
191
191
|
model?: string;
|
|
192
|
+
/** A voice part with use model: one of the model's voices. Left out: the provider's own default voice. */
|
|
193
|
+
voice?: string;
|
|
192
194
|
}>;
|
|
193
195
|
/** Optional, kept in the change history. (at most 500 characters) */
|
|
194
196
|
note?: string;
|
|
@@ -200,7 +202,7 @@ declare namespace slatebox.ai.bindings {
|
|
|
200
202
|
}
|
|
201
203
|
|
|
202
204
|
declare namespace slatebox.ai {
|
|
203
|
-
/** Test AI. Tests your own or your team's saved connection (name) or one not yet saved (connection)
|
|
205
|
+
/** Test AI. Tests your own or your team's saved connection (name) or one not yet saved (connection): whether Slatebox can reach it, whether it accepts the key, which models it lists, whether the model answers and whether it calls tools (which conversation, drafts and presentations need). Saves nothing. A saved key is only sent to the address it was saved for. A token needs ai:admin as well for level team. The server's keys are tested with ai.keys.test. On Slatebox Cloud an address must be public https; on a self-hosted Slatebox a model on the host is at host.docker.internal, not localhost. @scope ai:settings @openWorld @idempotent */
|
|
204
206
|
function check(input: {
|
|
205
207
|
/** me (yours) or team (team admins). */
|
|
206
208
|
level?: "me" | "team";
|
|
@@ -208,7 +210,7 @@ declare namespace slatebox.ai {
|
|
|
208
210
|
connection?: {
|
|
209
211
|
/** Your name for it, for example desk-model. */
|
|
210
212
|
name: string;
|
|
211
|
-
/** The provider: openai-compatible (any host or local server: Ollama, llama.cpp, vLLM, LM Studio and others), a named one (meta, openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini), or one an administrator added. */
|
|
213
|
+
/** The provider: openai-compatible (any host or local server: Ollama, llama.cpp, vLLM, LM Studio and others), a named one (meta, openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini, and the voice providers openai-realtime and gemini-live), or one an administrator added. */
|
|
212
214
|
type: string;
|
|
213
215
|
/** For openai-compatible: the address up to /v1, for example http://host.docker.internal:11434/v1. (at most 500 characters) */
|
|
214
216
|
baseUrl?: string;
|
|
@@ -240,7 +242,7 @@ declare namespace slatebox.ai {
|
|
|
240
242
|
}
|
|
241
243
|
|
|
242
244
|
declare namespace slatebox.ai.control {
|
|
243
|
-
/** Effective AI binding. Shows which model each part of Slatebox (or one) answers with for a person (userId; none = someone not signed in): the provider and model, and where that comes from (its own choice, the part it follows, the default, the built-in default, or the person's own AI
|
|
245
|
+
/** Effective AI binding. Shows which model each part of Slatebox (or one) answers with for a person (userId; none = someone not signed in): the provider and model, and where that comes from (its own choice, the part it follows, the default, the built-in default, or the person's or team's own AI). usage true adds each part's calls, failed calls and spend over the last 24 hours. Administrators only. @scope ai:admin:read */
|
|
244
246
|
function effective(input: {
|
|
245
247
|
surface?: string;
|
|
246
248
|
userId?: string;
|
|
@@ -280,9 +282,9 @@ declare namespace slatebox.ai.control {
|
|
|
280
282
|
function reset(input: {
|
|
281
283
|
target: "binding" | "bindings" | "prompt" | "prompts" | "all";
|
|
282
284
|
/** For target binding: the part of Slatebox. */
|
|
283
|
-
surface?: "default" | "chat" | "chat.route" | "generation" | "presentation" | "vision" | "images" | "shape" | "workshop" | "workshop.draft" | "canvas" | "agent.slatebox" | "library" | "connectors";
|
|
285
|
+
surface?: "default" | "chat" | "chat.route" | "generation" | "presentation" | "vision" | "images" | "shape" | "workshop" | "workshop.draft" | "canvas" | "agent.slatebox" | "library" | "connectors" | "recipes" | "interview" | "personal.suggest" | "profile.sources" | "profile.import" | "start.interview" | "voice" | "voice.chat" | "voice.interview" | "call.listen" | "call.build" | "eval";
|
|
284
286
|
/** For target prompt: the prompt. */
|
|
285
|
-
promptId?: "shape.system" | "shape.user" | "shape.retry" | "tool.propose_shapes" | "workshop.map.system" | "workshop.lane.system" | "workshop.chat.retry" | "tool.propose_map_edits" | "tool.propose_workshop_edits" | "workshop.draft.system" | "workshop.draft.map" | "workshop.draft.release" | "workshop.draft.rules" | "workshop.draft.retry" | "workshop.draft.repair" | "tool.draft_workshop" | "tool.draft_concept_map" | "tool.draft_release_plan" | "tool.revise_workshop_rules" | "exec.chat.system" | "exec.chat.fix" | "exec.chat.retry" | "agent.request.notes" | "presentation.segments" | "presentation.art" | "presentation.system" | "presentation.system.dynamic" | "presentation.system.slides" | "presentation.system.template" | "presentation.slate" | "presentation.user" | "presentation.brief" | "presentation.refine" | "tool.create-presentation" | "tool.create-presentation.image-query" | "tool.create-presentation.image-prompt" | "tool.create-presentation.image-why" | "library.refine.system" | "library.refine.request" | "library.refine.retry" | "tool.propose_library_refinement" | "connectors.plan.system" | "connectors.plan.writes" | "connectors.plan.next" | "connectors.plan.tool" | "connectors.layout.system" | "connectors.layout.budget" | "connectors.layout.tool" | "connectors.recipe.github" | "connectors.recipe.linear" | "connectors.recipe.huggingface" | "connectors.recipe.deepwiki" | "connectors.recipe.context7" | "connectors.recipe.wolfram" | "connectors.recipe.firecrawl" | "connectors.recipe.exa";
|
|
287
|
+
promptId?: "shape.system" | "shape.user" | "shape.retry" | "tool.propose_shapes" | "workshop.map.system" | "workshop.lane.system" | "workshop.chat.retry" | "tool.propose_map_edits" | "tool.propose_workshop_edits" | "workshop.draft.system" | "workshop.draft.component" | "workshop.draft.grid" | "workshop.draft.map" | "workshop.draft.release" | "workshop.draft.rules" | "workshop.draft.retry" | "workshop.draft.repair" | "tool.draft_workshop" | "tool.draft_component" | "tool.draft_grid" | "tool.draft_concept_map" | "tool.draft_release_plan" | "tool.revise_workshop_rules" | "exec.chat.system" | "exec.chat.fix" | "exec.chat.retry" | "agent.request.notes" | "presentation.segments" | "presentation.art" | "presentation.system" | "presentation.system.dynamic" | "presentation.system.slides" | "presentation.system.template" | "presentation.slate" | "presentation.user" | "presentation.brief" | "presentation.refine" | "tool.create-presentation" | "tool.create-presentation.image-query" | "tool.create-presentation.image-prompt" | "tool.create-presentation.image-why" | "library.refine.system" | "library.refine.request" | "library.refine.retry" | "tool.propose_library_refinement" | "connectors.plan.system" | "connectors.plan.writes" | "connectors.plan.next" | "connectors.plan.tool" | "connectors.layout.system" | "connectors.layout.budget" | "connectors.layout.tool" | "connectors.recipe.github" | "connectors.recipe.linear" | "connectors.recipe.huggingface" | "connectors.recipe.deepwiki" | "connectors.recipe.context7" | "connectors.recipe.wolfram" | "connectors.recipe.firecrawl" | "connectors.recipe.exa" | "connectors.recipe.notion" | "connectors.recipe.atlassian" | "connectors.recipe.slack" | "connectors.recipe.granola" | "connectors.recipe.asana" | "connectors.recipe.monday" | "connectors.recipe.clickup" | "connectors.recipe.trello" | "connectors.recipe.airtable" | "connectors.recipe.zapier" | "connectors.recipe.hubspot" | "connectors.recipe.stripe" | "connectors.recipe.posthog" | "connectors.recipe.sentry" | "connectors.recipe.gitlab" | "connectors.recipe.vercel" | "connectors.recipe.netlify" | "connectors.recipe.supabase" | "connectors.recipe.neon" | "connectors.recipe.cloudflare" | "connectors.recipe.datadog" | "connectors.recipe.pagerduty" | "connectors.recipe.postman" | "connectors.recipe.replit" | "connectors.recipe.lovable" | "connectors.recipe.v0" | "connectors.recipe.figma" | "connectors.recipe.miroboard" | "connectors.recipe.canva" | "connectors.recipe.lucid" | "connectors.recipe.whimsical" | "connectors.recipe.webflow" | "connectors.recipe.framer" | "connectors.recipe.gamma" | "connectors.recipe.pitch" | "connectors.recipe.wix" | "connectors.recipe.adobeaem" | "connectors.recipe.adobefirefly" | "connectors.recipe.microsoft365" | "connectors.recipe.gmail" | "connectors.recipe.googlecalendar" | "connectors.recipe.googledocs" | "connectors.recipe.googlesheets" | "connectors.recipe.googlechat" | "connectors.recipe.dropbox" | "connectors.recipe.dropboxdash" | "connectors.recipe.box" | "connectors.recipe.zoom" | "connectors.recipe.calendly" | "connectors.recipe.todoist" | "connectors.recipe.coda" | "connectors.recipe.make" | "connectors.recipe.salesforce" | "connectors.recipe.intercom" | "connectors.recipe.typeform" | "connectors.recipe.attio" | "connectors.recipe.pipedrive" | "connectors.recipe.apollo" | "connectors.recipe.square" | "connectors.recipe.paypal" | "connectors.recipe.microsoftlearn" | "connectors.recipe.cloudflaredocs" | "connectors.recipe.jina" | "connectors.recipe.parallel" | "interview.system" | "interview.opening" | "interview.retry" | "tool.remember" | "personal.suggest.system" | "personal.suggest.ask" | "personal.suggest.retry" | "tool.suggest_ideas" | "workshop.draft.personal" | "voice.chat.system" | "voice.chat.opening" | "voice.interview.system" | "voice.interview.opening" | "tool.send_to_slatebox" | "voice.tool-failed" | "voice.answer" | "voice.answer.none" | "voice.answer.discarded" | "voice.answer.unconfirmed" | "voice.answer.empty" | "voice.answer.busy" | "voice.late-answer" | "voice.resume" | "profile.sources.facts" | "profile.sources.sample" | "profile.sources.retry" | "profile.sources.tool" | "profile.import.facts" | "profile.import.sample" | "profile.import.retry" | "profile.import.tool" | "start.interview.system" | "start.interview.plan" | "start.interview.retry" | "tool.ask" | "tool.propose_plan" | "workshop.draft.tile" | "recipes.system" | "recipes.ledger" | "recipes.slack-digest.summary" | "recipes.slack-concepts.clusters" | "recipes.github-architecture.module_label" | "recipes.github-pr-impact.pr_summary" | "recipes.linear-roadmap.roadmap_week" | "recipes.google-sheet-board.columns" | "recipes.google-design-doc.draft" | "recipes.webhook-render.text" | "call.system" | "call.build" | "call.recap" | "call.steer";
|
|
286
288
|
/** (1–500 characters) */
|
|
287
289
|
reason: string;
|
|
288
290
|
}): Promise<({
|
|
@@ -317,6 +319,7 @@ declare namespace slatebox.ai.keys {
|
|
|
317
319
|
/** A model provider's id (for example meta or deepinfra), or a service beside the models (stability, google-cse, nounproject, deepgram). */
|
|
318
320
|
provider?: string;
|
|
319
321
|
}): Promise<{
|
|
322
|
+
/** Each item: A key as anyone may read it: id, provider, status (active, standby, revoked), keyFingerprint, label, source, createdAt/By, activatedAt, revokedAt/By, lastTest, lastUsedAt. Never the key. */
|
|
320
323
|
keys?: Array<Record<string, unknown>>;
|
|
321
324
|
keysAvailable?: boolean;
|
|
322
325
|
fromSettings?: string[];
|
|
@@ -378,6 +381,8 @@ declare namespace slatebox.ai.models {
|
|
|
378
381
|
json?: boolean;
|
|
379
382
|
images?: boolean;
|
|
380
383
|
reasoning?: boolean;
|
|
384
|
+
voice?: boolean;
|
|
385
|
+
listen?: boolean;
|
|
381
386
|
};
|
|
382
387
|
/** (at least 1) */
|
|
383
388
|
maxOutput?: number | null;
|
|
@@ -388,8 +393,20 @@ declare namespace slatebox.ai.models {
|
|
|
388
393
|
outputPerM?: number | null;
|
|
389
394
|
/** Dollars per generated image. (at least 0) */
|
|
390
395
|
imageEach?: number | null;
|
|
396
|
+
/** Voice models: dollars per million tokens of what the person says. (at least 0) */
|
|
397
|
+
audioInputPerM?: number | null;
|
|
398
|
+
/** Voice models: dollars per million tokens of what the agent says. (at least 0) */
|
|
399
|
+
audioOutputPerM?: number | null;
|
|
400
|
+
/** Voice models: dollars per million cached audio input tokens, where the provider prices them apart. (at least 0) */
|
|
401
|
+
cachedAudioInputPerM?: number | null;
|
|
402
|
+
/** Listening models: dollars per minute of audio heard. (at least 0) */
|
|
403
|
+
perMinute?: number | null;
|
|
391
404
|
currency?: "USD";
|
|
392
405
|
} | null;
|
|
406
|
+
/** Voice models: the voices it offers, for a voice part's binding to choose from. (at most 64 items) */
|
|
407
|
+
voices?: string[];
|
|
408
|
+
/** Voice models that need one (OpenAI Realtime): the model that writes what the person said. (at most 200 characters) */
|
|
409
|
+
transcriptionModel?: string | null;
|
|
393
410
|
status?: "enabled" | "disabled";
|
|
394
411
|
}>;
|
|
395
412
|
/** Why, for the change history. (1–500 characters) */
|
|
@@ -419,7 +436,7 @@ declare namespace slatebox.ai.prompts {
|
|
|
419
436
|
/** AI prompt. Returns one prompt: the built-in text (version 0), the text served now and where it comes from, every saved version newest first with its author, note and eval results, the values it may use, and the samples a test run can send. Administrators only. @scope ai:admin:read */
|
|
420
437
|
function get(input: {
|
|
421
438
|
/** The prompt, for example shape.system. */
|
|
422
|
-
id: "shape.system" | "shape.user" | "shape.retry" | "tool.propose_shapes" | "workshop.map.system" | "workshop.lane.system" | "workshop.chat.retry" | "tool.propose_map_edits" | "tool.propose_workshop_edits" | "workshop.draft.system" | "workshop.draft.map" | "workshop.draft.release" | "workshop.draft.rules" | "workshop.draft.retry" | "workshop.draft.repair" | "tool.draft_workshop" | "tool.draft_concept_map" | "tool.draft_release_plan" | "tool.revise_workshop_rules" | "exec.chat.system" | "exec.chat.fix" | "exec.chat.retry" | "agent.request.notes" | "presentation.segments" | "presentation.art" | "presentation.system" | "presentation.system.dynamic" | "presentation.system.slides" | "presentation.system.template" | "presentation.slate" | "presentation.user" | "presentation.brief" | "presentation.refine" | "tool.create-presentation" | "tool.create-presentation.image-query" | "tool.create-presentation.image-prompt" | "tool.create-presentation.image-why" | "library.refine.system" | "library.refine.request" | "library.refine.retry" | "tool.propose_library_refinement" | "connectors.plan.system" | "connectors.plan.writes" | "connectors.plan.next" | "connectors.plan.tool" | "connectors.layout.system" | "connectors.layout.budget" | "connectors.layout.tool" | "connectors.recipe.github" | "connectors.recipe.linear" | "connectors.recipe.huggingface" | "connectors.recipe.deepwiki" | "connectors.recipe.context7" | "connectors.recipe.wolfram" | "connectors.recipe.firecrawl" | "connectors.recipe.exa";
|
|
439
|
+
id: "shape.system" | "shape.user" | "shape.retry" | "tool.propose_shapes" | "workshop.map.system" | "workshop.lane.system" | "workshop.chat.retry" | "tool.propose_map_edits" | "tool.propose_workshop_edits" | "workshop.draft.system" | "workshop.draft.component" | "workshop.draft.grid" | "workshop.draft.map" | "workshop.draft.release" | "workshop.draft.rules" | "workshop.draft.retry" | "workshop.draft.repair" | "tool.draft_workshop" | "tool.draft_component" | "tool.draft_grid" | "tool.draft_concept_map" | "tool.draft_release_plan" | "tool.revise_workshop_rules" | "exec.chat.system" | "exec.chat.fix" | "exec.chat.retry" | "agent.request.notes" | "presentation.segments" | "presentation.art" | "presentation.system" | "presentation.system.dynamic" | "presentation.system.slides" | "presentation.system.template" | "presentation.slate" | "presentation.user" | "presentation.brief" | "presentation.refine" | "tool.create-presentation" | "tool.create-presentation.image-query" | "tool.create-presentation.image-prompt" | "tool.create-presentation.image-why" | "library.refine.system" | "library.refine.request" | "library.refine.retry" | "tool.propose_library_refinement" | "connectors.plan.system" | "connectors.plan.writes" | "connectors.plan.next" | "connectors.plan.tool" | "connectors.layout.system" | "connectors.layout.budget" | "connectors.layout.tool" | "connectors.recipe.github" | "connectors.recipe.linear" | "connectors.recipe.huggingface" | "connectors.recipe.deepwiki" | "connectors.recipe.context7" | "connectors.recipe.wolfram" | "connectors.recipe.firecrawl" | "connectors.recipe.exa" | "connectors.recipe.notion" | "connectors.recipe.atlassian" | "connectors.recipe.slack" | "connectors.recipe.granola" | "connectors.recipe.asana" | "connectors.recipe.monday" | "connectors.recipe.clickup" | "connectors.recipe.trello" | "connectors.recipe.airtable" | "connectors.recipe.zapier" | "connectors.recipe.hubspot" | "connectors.recipe.stripe" | "connectors.recipe.posthog" | "connectors.recipe.sentry" | "connectors.recipe.gitlab" | "connectors.recipe.vercel" | "connectors.recipe.netlify" | "connectors.recipe.supabase" | "connectors.recipe.neon" | "connectors.recipe.cloudflare" | "connectors.recipe.datadog" | "connectors.recipe.pagerduty" | "connectors.recipe.postman" | "connectors.recipe.replit" | "connectors.recipe.lovable" | "connectors.recipe.v0" | "connectors.recipe.figma" | "connectors.recipe.miroboard" | "connectors.recipe.canva" | "connectors.recipe.lucid" | "connectors.recipe.whimsical" | "connectors.recipe.webflow" | "connectors.recipe.framer" | "connectors.recipe.gamma" | "connectors.recipe.pitch" | "connectors.recipe.wix" | "connectors.recipe.adobeaem" | "connectors.recipe.adobefirefly" | "connectors.recipe.microsoft365" | "connectors.recipe.gmail" | "connectors.recipe.googlecalendar" | "connectors.recipe.googledocs" | "connectors.recipe.googlesheets" | "connectors.recipe.googlechat" | "connectors.recipe.dropbox" | "connectors.recipe.dropboxdash" | "connectors.recipe.box" | "connectors.recipe.zoom" | "connectors.recipe.calendly" | "connectors.recipe.todoist" | "connectors.recipe.coda" | "connectors.recipe.make" | "connectors.recipe.salesforce" | "connectors.recipe.intercom" | "connectors.recipe.typeform" | "connectors.recipe.attio" | "connectors.recipe.pipedrive" | "connectors.recipe.apollo" | "connectors.recipe.square" | "connectors.recipe.paypal" | "connectors.recipe.microsoftlearn" | "connectors.recipe.cloudflaredocs" | "connectors.recipe.jina" | "connectors.recipe.parallel" | "interview.system" | "interview.opening" | "interview.retry" | "tool.remember" | "personal.suggest.system" | "personal.suggest.ask" | "personal.suggest.retry" | "tool.suggest_ideas" | "workshop.draft.personal" | "voice.chat.system" | "voice.chat.opening" | "voice.interview.system" | "voice.interview.opening" | "tool.send_to_slatebox" | "voice.tool-failed" | "voice.answer" | "voice.answer.none" | "voice.answer.discarded" | "voice.answer.unconfirmed" | "voice.answer.empty" | "voice.answer.busy" | "voice.late-answer" | "voice.resume" | "profile.sources.facts" | "profile.sources.sample" | "profile.sources.retry" | "profile.sources.tool" | "profile.import.facts" | "profile.import.sample" | "profile.import.retry" | "profile.import.tool" | "start.interview.system" | "start.interview.plan" | "start.interview.retry" | "tool.ask" | "tool.propose_plan" | "workshop.draft.tile" | "recipes.system" | "recipes.ledger" | "recipes.slack-digest.summary" | "recipes.slack-concepts.clusters" | "recipes.github-architecture.module_label" | "recipes.github-pr-impact.pr_summary" | "recipes.linear-roadmap.roadmap_week" | "recipes.google-sheet-board.columns" | "recipes.google-design-doc.draft" | "recipes.webhook-render.text" | "call.system" | "call.build" | "call.recap" | "call.steer";
|
|
423
440
|
}): Promise<{
|
|
424
441
|
id?: string;
|
|
425
442
|
code?: Record<string, unknown>;
|
|
@@ -441,7 +458,7 @@ declare namespace slatebox.ai.prompts {
|
|
|
441
458
|
/** Render AI prompt. Renders a prompt version (or text sent with the call) into the request a built-in sample sends, and reports its lint findings. No model is called and nothing is saved. Administrators only. @scope ai:admin:read @idempotent */
|
|
442
459
|
function render(input: {
|
|
443
460
|
/** The prompt, for example shape.system. */
|
|
444
|
-
id: "shape.system" | "shape.user" | "shape.retry" | "tool.propose_shapes" | "workshop.map.system" | "workshop.lane.system" | "workshop.chat.retry" | "tool.propose_map_edits" | "tool.propose_workshop_edits" | "workshop.draft.system" | "workshop.draft.map" | "workshop.draft.release" | "workshop.draft.rules" | "workshop.draft.retry" | "workshop.draft.repair" | "tool.draft_workshop" | "tool.draft_concept_map" | "tool.draft_release_plan" | "tool.revise_workshop_rules" | "exec.chat.system" | "exec.chat.fix" | "exec.chat.retry" | "agent.request.notes" | "presentation.segments" | "presentation.art" | "presentation.system" | "presentation.system.dynamic" | "presentation.system.slides" | "presentation.system.template" | "presentation.slate" | "presentation.user" | "presentation.brief" | "presentation.refine" | "tool.create-presentation" | "tool.create-presentation.image-query" | "tool.create-presentation.image-prompt" | "tool.create-presentation.image-why" | "library.refine.system" | "library.refine.request" | "library.refine.retry" | "tool.propose_library_refinement" | "connectors.plan.system" | "connectors.plan.writes" | "connectors.plan.next" | "connectors.plan.tool" | "connectors.layout.system" | "connectors.layout.budget" | "connectors.layout.tool" | "connectors.recipe.github" | "connectors.recipe.linear" | "connectors.recipe.huggingface" | "connectors.recipe.deepwiki" | "connectors.recipe.context7" | "connectors.recipe.wolfram" | "connectors.recipe.firecrawl" | "connectors.recipe.exa";
|
|
461
|
+
id: "shape.system" | "shape.user" | "shape.retry" | "tool.propose_shapes" | "workshop.map.system" | "workshop.lane.system" | "workshop.chat.retry" | "tool.propose_map_edits" | "tool.propose_workshop_edits" | "workshop.draft.system" | "workshop.draft.component" | "workshop.draft.grid" | "workshop.draft.map" | "workshop.draft.release" | "workshop.draft.rules" | "workshop.draft.retry" | "workshop.draft.repair" | "tool.draft_workshop" | "tool.draft_component" | "tool.draft_grid" | "tool.draft_concept_map" | "tool.draft_release_plan" | "tool.revise_workshop_rules" | "exec.chat.system" | "exec.chat.fix" | "exec.chat.retry" | "agent.request.notes" | "presentation.segments" | "presentation.art" | "presentation.system" | "presentation.system.dynamic" | "presentation.system.slides" | "presentation.system.template" | "presentation.slate" | "presentation.user" | "presentation.brief" | "presentation.refine" | "tool.create-presentation" | "tool.create-presentation.image-query" | "tool.create-presentation.image-prompt" | "tool.create-presentation.image-why" | "library.refine.system" | "library.refine.request" | "library.refine.retry" | "tool.propose_library_refinement" | "connectors.plan.system" | "connectors.plan.writes" | "connectors.plan.next" | "connectors.plan.tool" | "connectors.layout.system" | "connectors.layout.budget" | "connectors.layout.tool" | "connectors.recipe.github" | "connectors.recipe.linear" | "connectors.recipe.huggingface" | "connectors.recipe.deepwiki" | "connectors.recipe.context7" | "connectors.recipe.wolfram" | "connectors.recipe.firecrawl" | "connectors.recipe.exa" | "connectors.recipe.notion" | "connectors.recipe.atlassian" | "connectors.recipe.slack" | "connectors.recipe.granola" | "connectors.recipe.asana" | "connectors.recipe.monday" | "connectors.recipe.clickup" | "connectors.recipe.trello" | "connectors.recipe.airtable" | "connectors.recipe.zapier" | "connectors.recipe.hubspot" | "connectors.recipe.stripe" | "connectors.recipe.posthog" | "connectors.recipe.sentry" | "connectors.recipe.gitlab" | "connectors.recipe.vercel" | "connectors.recipe.netlify" | "connectors.recipe.supabase" | "connectors.recipe.neon" | "connectors.recipe.cloudflare" | "connectors.recipe.datadog" | "connectors.recipe.pagerduty" | "connectors.recipe.postman" | "connectors.recipe.replit" | "connectors.recipe.lovable" | "connectors.recipe.v0" | "connectors.recipe.figma" | "connectors.recipe.miroboard" | "connectors.recipe.canva" | "connectors.recipe.lucid" | "connectors.recipe.whimsical" | "connectors.recipe.webflow" | "connectors.recipe.framer" | "connectors.recipe.gamma" | "connectors.recipe.pitch" | "connectors.recipe.wix" | "connectors.recipe.adobeaem" | "connectors.recipe.adobefirefly" | "connectors.recipe.microsoft365" | "connectors.recipe.gmail" | "connectors.recipe.googlecalendar" | "connectors.recipe.googledocs" | "connectors.recipe.googlesheets" | "connectors.recipe.googlechat" | "connectors.recipe.dropbox" | "connectors.recipe.dropboxdash" | "connectors.recipe.box" | "connectors.recipe.zoom" | "connectors.recipe.calendly" | "connectors.recipe.todoist" | "connectors.recipe.coda" | "connectors.recipe.make" | "connectors.recipe.salesforce" | "connectors.recipe.intercom" | "connectors.recipe.typeform" | "connectors.recipe.attio" | "connectors.recipe.pipedrive" | "connectors.recipe.apollo" | "connectors.recipe.square" | "connectors.recipe.paypal" | "connectors.recipe.microsoftlearn" | "connectors.recipe.cloudflaredocs" | "connectors.recipe.jina" | "connectors.recipe.parallel" | "interview.system" | "interview.opening" | "interview.retry" | "tool.remember" | "personal.suggest.system" | "personal.suggest.ask" | "personal.suggest.retry" | "tool.suggest_ideas" | "workshop.draft.personal" | "voice.chat.system" | "voice.chat.opening" | "voice.interview.system" | "voice.interview.opening" | "tool.send_to_slatebox" | "voice.tool-failed" | "voice.answer" | "voice.answer.none" | "voice.answer.discarded" | "voice.answer.unconfirmed" | "voice.answer.empty" | "voice.answer.busy" | "voice.late-answer" | "voice.resume" | "profile.sources.facts" | "profile.sources.sample" | "profile.sources.retry" | "profile.sources.tool" | "profile.import.facts" | "profile.import.sample" | "profile.import.retry" | "profile.import.tool" | "start.interview.system" | "start.interview.plan" | "start.interview.retry" | "tool.ask" | "tool.propose_plan" | "workshop.draft.tile" | "recipes.system" | "recipes.ledger" | "recipes.slack-digest.summary" | "recipes.slack-concepts.clusters" | "recipes.github-architecture.module_label" | "recipes.github-pr-impact.pr_summary" | "recipes.linear-roadmap.roadmap_week" | "recipes.google-sheet-board.columns" | "recipes.google-design-doc.draft" | "recipes.webhook-render.text" | "call.system" | "call.build" | "call.recap" | "call.steer";
|
|
445
462
|
/** A saved version; 0 is the built-in text. (at least 0) */
|
|
446
463
|
version?: number;
|
|
447
464
|
/** The text. Values go in as {{name}}; {{#flag}}…{{/flag}} keeps text only when the flag is set, {{^flag}}…{{/flag}} only when it is not. (1–32768 characters) */
|
|
@@ -462,7 +479,7 @@ declare namespace slatebox.ai.prompts {
|
|
|
462
479
|
/** Save AI prompt draft. Saves a new draft version of a prompt. Changes nothing live: a person publishes it after its checks pass. An agent's draft is marked as a suggestion. Returns the version and its lint findings. Administrators only. @scope ai:admin */
|
|
463
480
|
function saveDraft(input: {
|
|
464
481
|
/** The prompt, for example shape.system. */
|
|
465
|
-
id: "shape.system" | "shape.user" | "shape.retry" | "tool.propose_shapes" | "workshop.map.system" | "workshop.lane.system" | "workshop.chat.retry" | "tool.propose_map_edits" | "tool.propose_workshop_edits" | "workshop.draft.system" | "workshop.draft.map" | "workshop.draft.release" | "workshop.draft.rules" | "workshop.draft.retry" | "workshop.draft.repair" | "tool.draft_workshop" | "tool.draft_concept_map" | "tool.draft_release_plan" | "tool.revise_workshop_rules" | "exec.chat.system" | "exec.chat.fix" | "exec.chat.retry" | "agent.request.notes" | "presentation.segments" | "presentation.art" | "presentation.system" | "presentation.system.dynamic" | "presentation.system.slides" | "presentation.system.template" | "presentation.slate" | "presentation.user" | "presentation.brief" | "presentation.refine" | "tool.create-presentation" | "tool.create-presentation.image-query" | "tool.create-presentation.image-prompt" | "tool.create-presentation.image-why" | "library.refine.system" | "library.refine.request" | "library.refine.retry" | "tool.propose_library_refinement" | "connectors.plan.system" | "connectors.plan.writes" | "connectors.plan.next" | "connectors.plan.tool" | "connectors.layout.system" | "connectors.layout.budget" | "connectors.layout.tool" | "connectors.recipe.github" | "connectors.recipe.linear" | "connectors.recipe.huggingface" | "connectors.recipe.deepwiki" | "connectors.recipe.context7" | "connectors.recipe.wolfram" | "connectors.recipe.firecrawl" | "connectors.recipe.exa";
|
|
482
|
+
id: "shape.system" | "shape.user" | "shape.retry" | "tool.propose_shapes" | "workshop.map.system" | "workshop.lane.system" | "workshop.chat.retry" | "tool.propose_map_edits" | "tool.propose_workshop_edits" | "workshop.draft.system" | "workshop.draft.component" | "workshop.draft.grid" | "workshop.draft.map" | "workshop.draft.release" | "workshop.draft.rules" | "workshop.draft.retry" | "workshop.draft.repair" | "tool.draft_workshop" | "tool.draft_component" | "tool.draft_grid" | "tool.draft_concept_map" | "tool.draft_release_plan" | "tool.revise_workshop_rules" | "exec.chat.system" | "exec.chat.fix" | "exec.chat.retry" | "agent.request.notes" | "presentation.segments" | "presentation.art" | "presentation.system" | "presentation.system.dynamic" | "presentation.system.slides" | "presentation.system.template" | "presentation.slate" | "presentation.user" | "presentation.brief" | "presentation.refine" | "tool.create-presentation" | "tool.create-presentation.image-query" | "tool.create-presentation.image-prompt" | "tool.create-presentation.image-why" | "library.refine.system" | "library.refine.request" | "library.refine.retry" | "tool.propose_library_refinement" | "connectors.plan.system" | "connectors.plan.writes" | "connectors.plan.next" | "connectors.plan.tool" | "connectors.layout.system" | "connectors.layout.budget" | "connectors.layout.tool" | "connectors.recipe.github" | "connectors.recipe.linear" | "connectors.recipe.huggingface" | "connectors.recipe.deepwiki" | "connectors.recipe.context7" | "connectors.recipe.wolfram" | "connectors.recipe.firecrawl" | "connectors.recipe.exa" | "connectors.recipe.notion" | "connectors.recipe.atlassian" | "connectors.recipe.slack" | "connectors.recipe.granola" | "connectors.recipe.asana" | "connectors.recipe.monday" | "connectors.recipe.clickup" | "connectors.recipe.trello" | "connectors.recipe.airtable" | "connectors.recipe.zapier" | "connectors.recipe.hubspot" | "connectors.recipe.stripe" | "connectors.recipe.posthog" | "connectors.recipe.sentry" | "connectors.recipe.gitlab" | "connectors.recipe.vercel" | "connectors.recipe.netlify" | "connectors.recipe.supabase" | "connectors.recipe.neon" | "connectors.recipe.cloudflare" | "connectors.recipe.datadog" | "connectors.recipe.pagerduty" | "connectors.recipe.postman" | "connectors.recipe.replit" | "connectors.recipe.lovable" | "connectors.recipe.v0" | "connectors.recipe.figma" | "connectors.recipe.miroboard" | "connectors.recipe.canva" | "connectors.recipe.lucid" | "connectors.recipe.whimsical" | "connectors.recipe.webflow" | "connectors.recipe.framer" | "connectors.recipe.gamma" | "connectors.recipe.pitch" | "connectors.recipe.wix" | "connectors.recipe.adobeaem" | "connectors.recipe.adobefirefly" | "connectors.recipe.microsoft365" | "connectors.recipe.gmail" | "connectors.recipe.googlecalendar" | "connectors.recipe.googledocs" | "connectors.recipe.googlesheets" | "connectors.recipe.googlechat" | "connectors.recipe.dropbox" | "connectors.recipe.dropboxdash" | "connectors.recipe.box" | "connectors.recipe.zoom" | "connectors.recipe.calendly" | "connectors.recipe.todoist" | "connectors.recipe.coda" | "connectors.recipe.make" | "connectors.recipe.salesforce" | "connectors.recipe.intercom" | "connectors.recipe.typeform" | "connectors.recipe.attio" | "connectors.recipe.pipedrive" | "connectors.recipe.apollo" | "connectors.recipe.square" | "connectors.recipe.paypal" | "connectors.recipe.microsoftlearn" | "connectors.recipe.cloudflaredocs" | "connectors.recipe.jina" | "connectors.recipe.parallel" | "interview.system" | "interview.opening" | "interview.retry" | "tool.remember" | "personal.suggest.system" | "personal.suggest.ask" | "personal.suggest.retry" | "tool.suggest_ideas" | "workshop.draft.personal" | "voice.chat.system" | "voice.chat.opening" | "voice.interview.system" | "voice.interview.opening" | "tool.send_to_slatebox" | "voice.tool-failed" | "voice.answer" | "voice.answer.none" | "voice.answer.discarded" | "voice.answer.unconfirmed" | "voice.answer.empty" | "voice.answer.busy" | "voice.late-answer" | "voice.resume" | "profile.sources.facts" | "profile.sources.sample" | "profile.sources.retry" | "profile.sources.tool" | "profile.import.facts" | "profile.import.sample" | "profile.import.retry" | "profile.import.tool" | "start.interview.system" | "start.interview.plan" | "start.interview.retry" | "tool.ask" | "tool.propose_plan" | "workshop.draft.tile" | "recipes.system" | "recipes.ledger" | "recipes.slack-digest.summary" | "recipes.slack-concepts.clusters" | "recipes.github-architecture.module_label" | "recipes.github-pr-impact.pr_summary" | "recipes.linear-roadmap.roadmap_week" | "recipes.google-sheet-board.columns" | "recipes.google-design-doc.draft" | "recipes.webhook-render.text" | "call.system" | "call.build" | "call.recap" | "call.steer";
|
|
466
483
|
/** The text. Values go in as {{name}}; {{#flag}}…{{/flag}} keeps text only when the flag is set, {{^flag}}…{{/flag}} only when it is not. (1–32768 characters) */
|
|
467
484
|
body: string;
|
|
468
485
|
/** Per value: data encloses it in a <data> block so it reads as data, not instructions. */
|
|
@@ -485,7 +502,7 @@ declare namespace slatebox.ai.prompts {
|
|
|
485
502
|
/** Test AI prompt. Sends a prompt version (or text sent with the call) with a built-in sample through a part of Slatebox's binding (default: the prompt's own). Returns the request sent, the raw answer, whether that part could use it, the model, latency and cost. The answer is shown, never applied. Metered to the caller; 30 an hour per administrator. Administrators only. @scope ai:admin */
|
|
486
503
|
function test(input: {
|
|
487
504
|
/** The prompt, for example shape.system. */
|
|
488
|
-
id: "shape.system" | "shape.user" | "shape.retry" | "tool.propose_shapes" | "workshop.map.system" | "workshop.lane.system" | "workshop.chat.retry" | "tool.propose_map_edits" | "tool.propose_workshop_edits" | "workshop.draft.system" | "workshop.draft.map" | "workshop.draft.release" | "workshop.draft.rules" | "workshop.draft.retry" | "workshop.draft.repair" | "tool.draft_workshop" | "tool.draft_concept_map" | "tool.draft_release_plan" | "tool.revise_workshop_rules" | "exec.chat.system" | "exec.chat.fix" | "exec.chat.retry" | "agent.request.notes" | "presentation.segments" | "presentation.art" | "presentation.system" | "presentation.system.dynamic" | "presentation.system.slides" | "presentation.system.template" | "presentation.slate" | "presentation.user" | "presentation.brief" | "presentation.refine" | "tool.create-presentation" | "tool.create-presentation.image-query" | "tool.create-presentation.image-prompt" | "tool.create-presentation.image-why" | "library.refine.system" | "library.refine.request" | "library.refine.retry" | "tool.propose_library_refinement" | "connectors.plan.system" | "connectors.plan.writes" | "connectors.plan.next" | "connectors.plan.tool" | "connectors.layout.system" | "connectors.layout.budget" | "connectors.layout.tool" | "connectors.recipe.github" | "connectors.recipe.linear" | "connectors.recipe.huggingface" | "connectors.recipe.deepwiki" | "connectors.recipe.context7" | "connectors.recipe.wolfram" | "connectors.recipe.firecrawl" | "connectors.recipe.exa";
|
|
505
|
+
id: "shape.system" | "shape.user" | "shape.retry" | "tool.propose_shapes" | "workshop.map.system" | "workshop.lane.system" | "workshop.chat.retry" | "tool.propose_map_edits" | "tool.propose_workshop_edits" | "workshop.draft.system" | "workshop.draft.component" | "workshop.draft.grid" | "workshop.draft.map" | "workshop.draft.release" | "workshop.draft.rules" | "workshop.draft.retry" | "workshop.draft.repair" | "tool.draft_workshop" | "tool.draft_component" | "tool.draft_grid" | "tool.draft_concept_map" | "tool.draft_release_plan" | "tool.revise_workshop_rules" | "exec.chat.system" | "exec.chat.fix" | "exec.chat.retry" | "agent.request.notes" | "presentation.segments" | "presentation.art" | "presentation.system" | "presentation.system.dynamic" | "presentation.system.slides" | "presentation.system.template" | "presentation.slate" | "presentation.user" | "presentation.brief" | "presentation.refine" | "tool.create-presentation" | "tool.create-presentation.image-query" | "tool.create-presentation.image-prompt" | "tool.create-presentation.image-why" | "library.refine.system" | "library.refine.request" | "library.refine.retry" | "tool.propose_library_refinement" | "connectors.plan.system" | "connectors.plan.writes" | "connectors.plan.next" | "connectors.plan.tool" | "connectors.layout.system" | "connectors.layout.budget" | "connectors.layout.tool" | "connectors.recipe.github" | "connectors.recipe.linear" | "connectors.recipe.huggingface" | "connectors.recipe.deepwiki" | "connectors.recipe.context7" | "connectors.recipe.wolfram" | "connectors.recipe.firecrawl" | "connectors.recipe.exa" | "connectors.recipe.notion" | "connectors.recipe.atlassian" | "connectors.recipe.slack" | "connectors.recipe.granola" | "connectors.recipe.asana" | "connectors.recipe.monday" | "connectors.recipe.clickup" | "connectors.recipe.trello" | "connectors.recipe.airtable" | "connectors.recipe.zapier" | "connectors.recipe.hubspot" | "connectors.recipe.stripe" | "connectors.recipe.posthog" | "connectors.recipe.sentry" | "connectors.recipe.gitlab" | "connectors.recipe.vercel" | "connectors.recipe.netlify" | "connectors.recipe.supabase" | "connectors.recipe.neon" | "connectors.recipe.cloudflare" | "connectors.recipe.datadog" | "connectors.recipe.pagerduty" | "connectors.recipe.postman" | "connectors.recipe.replit" | "connectors.recipe.lovable" | "connectors.recipe.v0" | "connectors.recipe.figma" | "connectors.recipe.miroboard" | "connectors.recipe.canva" | "connectors.recipe.lucid" | "connectors.recipe.whimsical" | "connectors.recipe.webflow" | "connectors.recipe.framer" | "connectors.recipe.gamma" | "connectors.recipe.pitch" | "connectors.recipe.wix" | "connectors.recipe.adobeaem" | "connectors.recipe.adobefirefly" | "connectors.recipe.microsoft365" | "connectors.recipe.gmail" | "connectors.recipe.googlecalendar" | "connectors.recipe.googledocs" | "connectors.recipe.googlesheets" | "connectors.recipe.googlechat" | "connectors.recipe.dropbox" | "connectors.recipe.dropboxdash" | "connectors.recipe.box" | "connectors.recipe.zoom" | "connectors.recipe.calendly" | "connectors.recipe.todoist" | "connectors.recipe.coda" | "connectors.recipe.make" | "connectors.recipe.salesforce" | "connectors.recipe.intercom" | "connectors.recipe.typeform" | "connectors.recipe.attio" | "connectors.recipe.pipedrive" | "connectors.recipe.apollo" | "connectors.recipe.square" | "connectors.recipe.paypal" | "connectors.recipe.microsoftlearn" | "connectors.recipe.cloudflaredocs" | "connectors.recipe.jina" | "connectors.recipe.parallel" | "interview.system" | "interview.opening" | "interview.retry" | "tool.remember" | "personal.suggest.system" | "personal.suggest.ask" | "personal.suggest.retry" | "tool.suggest_ideas" | "workshop.draft.personal" | "voice.chat.system" | "voice.chat.opening" | "voice.interview.system" | "voice.interview.opening" | "tool.send_to_slatebox" | "voice.tool-failed" | "voice.answer" | "voice.answer.none" | "voice.answer.discarded" | "voice.answer.unconfirmed" | "voice.answer.empty" | "voice.answer.busy" | "voice.late-answer" | "voice.resume" | "profile.sources.facts" | "profile.sources.sample" | "profile.sources.retry" | "profile.sources.tool" | "profile.import.facts" | "profile.import.sample" | "profile.import.retry" | "profile.import.tool" | "start.interview.system" | "start.interview.plan" | "start.interview.retry" | "tool.ask" | "tool.propose_plan" | "workshop.draft.tile" | "recipes.system" | "recipes.ledger" | "recipes.slack-digest.summary" | "recipes.slack-concepts.clusters" | "recipes.github-architecture.module_label" | "recipes.github-pr-impact.pr_summary" | "recipes.linear-roadmap.roadmap_week" | "recipes.google-sheet-board.columns" | "recipes.google-design-doc.draft" | "recipes.webhook-render.text" | "call.system" | "call.build" | "call.recap" | "call.steer";
|
|
489
506
|
/** A saved version; 0 is the built-in text. (at least 0) */
|
|
490
507
|
version?: number;
|
|
491
508
|
/** The text. Values go in as {{name}}; {{#flag}}…{{/flag}} keeps text only when the flag is set, {{^flag}}…{{/flag}} only when it is not. (1–32768 characters) */
|
|
@@ -495,7 +512,7 @@ declare namespace slatebox.ai.prompts {
|
|
|
495
512
|
/** A built-in sample (ai.prompts.get lists them). Default: the first. (at most 40 characters) */
|
|
496
513
|
sample?: string;
|
|
497
514
|
/** Whose binding (model chain) to test against. */
|
|
498
|
-
surface?: "default" | "chat" | "chat.route" | "generation" | "presentation" | "vision" | "images" | "shape" | "workshop" | "workshop.draft" | "canvas" | "agent.slatebox" | "library" | "connectors";
|
|
515
|
+
surface?: "default" | "chat" | "chat.route" | "generation" | "presentation" | "vision" | "images" | "shape" | "workshop" | "workshop.draft" | "canvas" | "agent.slatebox" | "library" | "connectors" | "recipes" | "interview" | "personal.suggest" | "profile.sources" | "profile.import" | "start.interview" | "voice" | "voice.chat" | "voice.interview" | "call.listen" | "call.build" | "eval";
|
|
499
516
|
}): Promise<({
|
|
500
517
|
rendered?: Record<string, unknown>;
|
|
501
518
|
answer?: Record<string, unknown>;
|
|
@@ -511,8 +528,8 @@ declare namespace slatebox.ai.providers {
|
|
|
511
528
|
/** Add AI provider. Adds a model provider from a preset: meta (Meta Muse, https://api.meta.ai/v1), openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini, or other with its own OpenAI-compatible address. A named preset keeps its own address and key style. models: the preset's suggested model ids to add with their prices. Add its key with ai.keys.add. Only a person adds an Other provider (it chooses where keys go). Administrators only. @scope ai:admin @confirm */
|
|
512
529
|
function add(input: {
|
|
513
530
|
provider: {
|
|
514
|
-
/** What the provider is: meta (Muse), openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini, or other (any OpenAI-compatible address). */
|
|
515
|
-
preset: "meta" | "openai" | "anthropic" | "deepinfra" | "together" | "groq" | "fireworks" | "openrouter" | "mistral" | "xai" | "gemini" | "other";
|
|
531
|
+
/** What the provider is: meta (Muse), openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini, the voice providers openai-realtime and gemini-live (talking with the agent), the listening providers deepgram-live, openai-transcribe and whisper-local (an address of its own; listening to calls), or other (any OpenAI-compatible address). */
|
|
532
|
+
preset: "meta" | "openai" | "anthropic" | "deepinfra" | "together" | "groq" | "fireworks" | "openrouter" | "mistral" | "xai" | "gemini" | "openai-realtime" | "gemini-live" | "deepgram-live" | "openai-transcribe" | "whisper-local" | "other";
|
|
516
533
|
/** Its id here; the preset's by default (meta, deepinfra, ...). */
|
|
517
534
|
id?: string;
|
|
518
535
|
/** The name shown; the preset's by default. (1–80 characters) */
|
|
@@ -575,7 +592,7 @@ declare namespace slatebox.ai.providers {
|
|
|
575
592
|
}
|
|
576
593
|
|
|
577
594
|
declare namespace slatebox.ai {
|
|
578
|
-
/** Set AI. Your own or your team's AI
|
|
595
|
+
/** Set AI. Your own or your team's AI: adds or changes connections (a cloud provider with its key, or any OpenAI-compatible endpoint with its address, optional key and model), removes some, and chooses which connection each feature uses. level me changes yours, team your team's (team admins); level server only turns own AI on or off for everyone (ownProviders, administrators). A choice names me:<name>, team:<name>, or builtin for this server's model (set in Admin → AI control). Keys are stored encrypted and never returned. Returns the settings as ai.get does. A token needs ai:admin as well for level team or server. Own AI is optional, on Slatebox Cloud and self-hosted alike. On Slatebox Cloud requests it serves spend no Slatebox credits, and an address must be public https. @scope ai:settings @destructive @confirm @idempotent */
|
|
579
596
|
function update(input: {
|
|
580
597
|
/** me (yours), team (team admins) or server (administrators). */
|
|
581
598
|
level: "me" | "team" | "server";
|
|
@@ -583,7 +600,7 @@ declare namespace slatebox.ai {
|
|
|
583
600
|
connections?: Array<{
|
|
584
601
|
/** Your name for it, for example desk-model. */
|
|
585
602
|
name: string;
|
|
586
|
-
/** The provider: openai-compatible (any host or local server: Ollama, llama.cpp, vLLM, LM Studio and others), a named one (meta, openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini), or one an administrator added. */
|
|
603
|
+
/** The provider: openai-compatible (any host or local server: Ollama, llama.cpp, vLLM, LM Studio and others), a named one (meta, openai, anthropic, deepinfra, together, groq, fireworks, openrouter, mistral, xai, gemini, and the voice providers openai-realtime and gemini-live), or one an administrator added. */
|
|
587
604
|
type: string;
|
|
588
605
|
/** For openai-compatible: the address up to /v1, for example http://host.docker.internal:11434/v1. (at most 500 characters) */
|
|
589
606
|
baseUrl?: string;
|
|
@@ -636,6 +653,24 @@ declare namespace slatebox.ai {
|
|
|
636
653
|
library?: string | null;
|
|
637
654
|
/** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */
|
|
638
655
|
connectors?: string | null;
|
|
656
|
+
/** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */
|
|
657
|
+
recipes?: string | null;
|
|
658
|
+
/** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */
|
|
659
|
+
interview?: string | null;
|
|
660
|
+
/** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */
|
|
661
|
+
"personal.suggest"?: string | null;
|
|
662
|
+
/** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */
|
|
663
|
+
"profile.sources"?: string | null;
|
|
664
|
+
/** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */
|
|
665
|
+
"profile.import"?: string | null;
|
|
666
|
+
/** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */
|
|
667
|
+
"start.interview"?: string | null;
|
|
668
|
+
/** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */
|
|
669
|
+
voice?: string | null;
|
|
670
|
+
/** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */
|
|
671
|
+
"voice.chat"?: string | null;
|
|
672
|
+
/** me:<name> or team:<name> for a connection, builtin for this server's model (Admin → AI control), null to clear. (at most 48 characters) */
|
|
673
|
+
"voice.interview"?: string | null;
|
|
639
674
|
};
|
|
640
675
|
ownProviders?: "on" | "off";
|
|
641
676
|
}): Promise<({
|
|
@@ -839,6 +874,8 @@ declare namespace slatebox.library {
|
|
|
839
874
|
function export(input: {
|
|
840
875
|
/** The next value the previous page gave. (at most 12 characters) */
|
|
841
876
|
cursor?: string;
|
|
877
|
+
/** One kind only. Integrations are exported only when asked for by name. */
|
|
878
|
+
kind?: "component" | "slate" | "presentation" | "integration";
|
|
842
879
|
}): Promise<{
|
|
843
880
|
items: Array<Record<string, unknown>>;
|
|
844
881
|
next?: string;
|
|
@@ -889,12 +926,12 @@ declare namespace slatebox.library {
|
|
|
889
926
|
item: {
|
|
890
927
|
id: string;
|
|
891
928
|
slug: string;
|
|
892
|
-
kind: "component" | "slate" | "presentation";
|
|
929
|
+
kind: "component" | "slate" | "presentation" | "integration";
|
|
893
930
|
origin: "builtin" | "user";
|
|
894
931
|
title: string;
|
|
895
932
|
summary: string;
|
|
896
|
-
/** One of the
|
|
897
|
-
category?: "plan" | "decide" | "meetings" | "track" | "map";
|
|
933
|
+
/** One of the categories plan, decide, meetings, track, map, make. An integration takes work, workspace, dev, design, business, research or web. */
|
|
934
|
+
category?: "plan" | "decide" | "meetings" | "track" | "map" | "make" | "work" | "workspace" | "dev" | "design" | "business" | "research" | "web";
|
|
898
935
|
authorName: string;
|
|
899
936
|
publishedAt?: string;
|
|
900
937
|
counts: {
|
|
@@ -903,11 +940,11 @@ declare namespace slatebox.library {
|
|
|
903
940
|
branches?: number;
|
|
904
941
|
[key: string]: unknown;
|
|
905
942
|
};
|
|
906
|
-
/** branchedFrom or forkedFrom: { itemId, version, title }. */
|
|
943
|
+
/** branchedFrom or forkedFrom: { itemId, version, title }; madeFor: { kind: "for-you", ideaId } for a component Slatebox built for its author from an idea in For you, or { kind: "tile", tileId } for one built from their tile on the start page. */
|
|
907
944
|
provenance?: Record<string, unknown>;
|
|
908
945
|
url: string;
|
|
909
946
|
preview?: {
|
|
910
|
-
kind?: "component" | "slate" | "presentation";
|
|
947
|
+
kind?: "component" | "slate" | "presentation" | "integration";
|
|
911
948
|
boardKind?: string;
|
|
912
949
|
notes?: number;
|
|
913
950
|
[key: string]: unknown;
|
|
@@ -949,11 +986,11 @@ declare namespace slatebox.library {
|
|
|
949
986
|
}
|
|
950
987
|
|
|
951
988
|
declare namespace slatebox.library {
|
|
952
|
-
/** Library. Published items of the shared library: smart components (boards that keep their rules: the ones built into Slatebox and the ones people built), slates and presentations anyone can copy. Filter by kind, category (plan, decide, meetings, track, map), origin (builtin or user) or words (q); sort new or popular. 24 per page by default (at most 48); pass next as cursor for more. Open to anyone. @scope slates:read */
|
|
989
|
+
/** Library. Published items of the shared library: smart components (boards that keep their rules: the ones built into Slatebox and the ones people built), slates and presentations anyone can copy. Filter by kind, category (plan, decide, meetings, track, map, make), origin (builtin or user) or words (q); sort new or popular. 24 per page by default (at most 48); pass next as cursor for more. Open to anyone. @scope slates:read */
|
|
953
990
|
function list(input: {
|
|
954
|
-
kind?: "component" | "slate" | "presentation";
|
|
955
|
-
/** One of the
|
|
956
|
-
category?: "plan" | "decide" | "meetings" | "track" | "map";
|
|
991
|
+
kind?: "component" | "slate" | "presentation" | "integration";
|
|
992
|
+
/** One of the categories plan, decide, meetings, track, map, make. An integration takes work, workspace, dev, design, business, research or web. */
|
|
993
|
+
category?: "plan" | "decide" | "meetings" | "track" | "map" | "make" | "work" | "workspace" | "dev" | "design" | "business" | "research" | "web";
|
|
957
994
|
/** (1–100 characters) */
|
|
958
995
|
q?: string;
|
|
959
996
|
/** (default "new") */
|
|
@@ -967,12 +1004,12 @@ declare namespace slatebox.library {
|
|
|
967
1004
|
items: Array<{
|
|
968
1005
|
id: string;
|
|
969
1006
|
slug: string;
|
|
970
|
-
kind: "component" | "slate" | "presentation";
|
|
1007
|
+
kind: "component" | "slate" | "presentation" | "integration";
|
|
971
1008
|
origin: "builtin" | "user";
|
|
972
1009
|
title: string;
|
|
973
1010
|
summary: string;
|
|
974
|
-
/** One of the
|
|
975
|
-
category?: "plan" | "decide" | "meetings" | "track" | "map";
|
|
1011
|
+
/** One of the categories plan, decide, meetings, track, map, make. An integration takes work, workspace, dev, design, business, research or web. */
|
|
1012
|
+
category?: "plan" | "decide" | "meetings" | "track" | "map" | "make" | "work" | "workspace" | "dev" | "design" | "business" | "research" | "web";
|
|
976
1013
|
authorName: string;
|
|
977
1014
|
publishedAt?: string;
|
|
978
1015
|
counts: {
|
|
@@ -981,11 +1018,11 @@ declare namespace slatebox.library {
|
|
|
981
1018
|
branches?: number;
|
|
982
1019
|
[key: string]: unknown;
|
|
983
1020
|
};
|
|
984
|
-
/** branchedFrom or forkedFrom: { itemId, version, title }. */
|
|
1021
|
+
/** branchedFrom or forkedFrom: { itemId, version, title }; madeFor: { kind: "for-you", ideaId } for a component Slatebox built for its author from an idea in For you, or { kind: "tile", tileId } for one built from their tile on the start page. */
|
|
985
1022
|
provenance?: Record<string, unknown>;
|
|
986
1023
|
url: string;
|
|
987
1024
|
preview?: {
|
|
988
|
-
kind?: "component" | "slate" | "presentation";
|
|
1025
|
+
kind?: "component" | "slate" | "presentation" | "integration";
|
|
989
1026
|
boardKind?: string;
|
|
990
1027
|
notes?: number;
|
|
991
1028
|
[key: string]: unknown;
|
|
@@ -1029,7 +1066,7 @@ declare namespace slatebox.library.review {
|
|
|
1029
1066
|
}
|
|
1030
1067
|
|
|
1031
1068
|
declare namespace slatebox.library.review {
|
|
1032
|
-
/** Open for review. For administrators: make (or refresh) your private review copy of a submission's waiting version, a slate you can change on the canvas, and mark it in review. Approving publishes that copy as it stands. Opening again for the same version answers the same copy. @scope library:review */
|
|
1069
|
+
/** Open for review. For administrators: make (or refresh) your private review copy of a submission's waiting version, a slate you can change on the canvas, and mark it in review. Approving publishes that copy as it stands. Opening again for the same version answers the same copy. A suggested integration has no copy: opening it reaches its server again (anonymously, with every address check) and answers what it found. @scope library:review */
|
|
1033
1070
|
function open(input: {
|
|
1034
1071
|
/** The item: its id or its slug (library.list items[].id or .slug). (1–120 characters) */
|
|
1035
1072
|
itemId: string;
|
|
@@ -1037,10 +1074,13 @@ declare namespace slatebox.library.review {
|
|
|
1037
1074
|
selfReview?: boolean;
|
|
1038
1075
|
}): Promise<({
|
|
1039
1076
|
itemId: string;
|
|
1040
|
-
|
|
1077
|
+
/** The review copy (not for kind integration, which has no canvas). */
|
|
1078
|
+
reviewShareId?: string;
|
|
1041
1079
|
status?: string;
|
|
1042
1080
|
reviewStatus?: string | null;
|
|
1043
1081
|
version?: number;
|
|
1082
|
+
/** kind integration: what Slatebox found reaching the server now, anonymously: reachable, sign-in, tools, and what changed since it was suggested. */
|
|
1083
|
+
reviewProbe?: Record<string, unknown>;
|
|
1044
1084
|
[key: string]: unknown;
|
|
1045
1085
|
}) & { mode: "save" }>;
|
|
1046
1086
|
}
|
|
@@ -1050,7 +1090,7 @@ declare namespace slatebox.library.review {
|
|
|
1050
1090
|
function queue(input: {
|
|
1051
1091
|
/** (default "waiting") */
|
|
1052
1092
|
status?: "waiting" | "submitted" | "in_review" | "changes_requested" | "rejected" | "published" | "all";
|
|
1053
|
-
kind?: "component" | "slate" | "presentation";
|
|
1093
|
+
kind?: "component" | "slate" | "presentation" | "integration";
|
|
1054
1094
|
source?: "migration";
|
|
1055
1095
|
/** The next value the previous page gave. (at most 12 characters) */
|
|
1056
1096
|
cursor?: string;
|
|
@@ -1058,6 +1098,8 @@ declare namespace slatebox.library.review {
|
|
|
1058
1098
|
items: Array<Record<string, unknown>>;
|
|
1059
1099
|
next?: string;
|
|
1060
1100
|
total: number;
|
|
1101
|
+
/** Whether this server takes suggested integrations (kind integration). */
|
|
1102
|
+
integrations?: boolean;
|
|
1061
1103
|
[key: string]: unknown;
|
|
1062
1104
|
}>;
|
|
1063
1105
|
}
|
|
@@ -1155,8 +1197,8 @@ declare namespace slatebox.library.review {
|
|
|
1155
1197
|
summary?: string;
|
|
1156
1198
|
/** Plain text, up to 2,000 characters. (at most 2000 characters) */
|
|
1157
1199
|
description?: string;
|
|
1158
|
-
/** One of the
|
|
1159
|
-
category?: "plan" | "decide" | "meetings" | "track" | "map";
|
|
1200
|
+
/** One of the categories plan, decide, meetings, track, map, make. An integration takes work, workspace, dev, design, business, research or web. */
|
|
1201
|
+
category?: "plan" | "decide" | "meetings" | "track" | "map" | "make" | "work" | "workspace" | "dev" | "design" | "business" | "research" | "web";
|
|
1160
1202
|
/** Smart components only: words people might search for. (at most 12 items) */
|
|
1161
1203
|
synonyms?: string[];
|
|
1162
1204
|
/** Review your own submission. Allowed only on a server with one administrator; the thread records it. */
|
|
@@ -1165,12 +1207,12 @@ declare namespace slatebox.library.review {
|
|
|
1165
1207
|
item: {
|
|
1166
1208
|
id: string;
|
|
1167
1209
|
slug: string;
|
|
1168
|
-
kind: "component" | "slate" | "presentation";
|
|
1210
|
+
kind: "component" | "slate" | "presentation" | "integration";
|
|
1169
1211
|
origin: "builtin" | "user";
|
|
1170
1212
|
title: string;
|
|
1171
1213
|
summary: string;
|
|
1172
|
-
/** One of the
|
|
1173
|
-
category?: "plan" | "decide" | "meetings" | "track" | "map";
|
|
1214
|
+
/** One of the categories plan, decide, meetings, track, map, make. An integration takes work, workspace, dev, design, business, research or web. */
|
|
1215
|
+
category?: "plan" | "decide" | "meetings" | "track" | "map" | "make" | "work" | "workspace" | "dev" | "design" | "business" | "research" | "web";
|
|
1174
1216
|
authorName: string;
|
|
1175
1217
|
publishedAt?: string;
|
|
1176
1218
|
counts: {
|
|
@@ -1179,11 +1221,11 @@ declare namespace slatebox.library.review {
|
|
|
1179
1221
|
branches?: number;
|
|
1180
1222
|
[key: string]: unknown;
|
|
1181
1223
|
};
|
|
1182
|
-
/** branchedFrom or forkedFrom: { itemId, version, title }. */
|
|
1224
|
+
/** branchedFrom or forkedFrom: { itemId, version, title }; madeFor: { kind: "for-you", ideaId } for a component Slatebox built for its author from an idea in For you, or { kind: "tile", tileId } for one built from their tile on the start page. */
|
|
1183
1225
|
provenance?: Record<string, unknown>;
|
|
1184
1226
|
url: string;
|
|
1185
1227
|
preview?: {
|
|
1186
|
-
kind?: "component" | "slate" | "presentation";
|
|
1228
|
+
kind?: "component" | "slate" | "presentation" | "integration";
|
|
1187
1229
|
boardKind?: string;
|
|
1188
1230
|
notes?: number;
|
|
1189
1231
|
[key: string]: unknown;
|
|
@@ -1229,8 +1271,8 @@ declare namespace slatebox.library {
|
|
|
1229
1271
|
summary: string;
|
|
1230
1272
|
/** Plain text, up to 2,000 characters. (at most 2000 characters) */
|
|
1231
1273
|
description?: string;
|
|
1232
|
-
/** One of the
|
|
1233
|
-
category?: "plan" | "decide" | "meetings" | "track" | "map";
|
|
1274
|
+
/** One of the categories plan, decide, meetings, track, map, make. An integration takes work, workspace, dev, design, business, research or web. */
|
|
1275
|
+
category?: "plan" | "decide" | "meetings" | "track" | "map" | "make" | "work" | "workspace" | "dev" | "design" | "business" | "research" | "web";
|
|
1234
1276
|
/** Smart components only: words people might search for. (at most 12 items) */
|
|
1235
1277
|
synonyms?: string[];
|
|
1236
1278
|
}): Promise<({
|
|
@@ -1261,9 +1303,9 @@ declare namespace slatebox.library {
|
|
|
1261
1303
|
}
|
|
1262
1304
|
|
|
1263
1305
|
declare namespace slatebox.library {
|
|
1264
|
-
/** Submit to the library. Send something of yours for review, to be published in the shared library: a smart component you saved (itemId),
|
|
1306
|
+
/** Submit to the library. Send something of yours for review, to be published in the shared library: a smart component you saved (itemId), a slate you own or administer (shareId; kind presentation sends its deck too), or a custom MCP server you connected (kind integration, integrationId: approved, it is offered to everyone in Connect an integration; its address and words become public, never your sign-in). Once approved anyone can find, use and change it, shared under CC BY 4.0. Sending a published item again proposes an update; the published version stays until the update is approved. Up to 10 a day. A guest must sign up first (403 sign_in_to_publish). The person agrees first. @scope slates:share @confirm */
|
|
1265
1307
|
function submit(input: {
|
|
1266
|
-
kind: "component" | "slate" | "presentation";
|
|
1308
|
+
kind: "component" | "slate" | "presentation" | "integration";
|
|
1267
1309
|
/** The item: its id or its slug (library.list items[].id or .slug). (1–120 characters) */
|
|
1268
1310
|
itemId?: string;
|
|
1269
1311
|
/** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */
|
|
@@ -1274,10 +1316,18 @@ declare namespace slatebox.library {
|
|
|
1274
1316
|
summary?: string;
|
|
1275
1317
|
/** Plain text, up to 2,000 characters. (at most 2000 characters) */
|
|
1276
1318
|
description?: string;
|
|
1277
|
-
/** One of the
|
|
1278
|
-
category?: "plan" | "decide" | "meetings" | "track" | "map";
|
|
1319
|
+
/** One of the categories plan, decide, meetings, track, map, make. An integration takes work, workspace, dev, design, business, research or web. */
|
|
1320
|
+
category?: "plan" | "decide" | "meetings" | "track" | "map" | "make" | "work" | "workspace" | "dev" | "design" | "business" | "research" | "web";
|
|
1279
1321
|
/** Smart components only: words people might search for. (at most 12 items) */
|
|
1280
1322
|
synonyms?: string[];
|
|
1323
|
+
/** kind integration: the connected integration to submit (integrations.list). (1–64 characters) */
|
|
1324
|
+
integrationId?: string;
|
|
1325
|
+
/** kind integration: its homepage or docs (https). (at most 300 characters) */
|
|
1326
|
+
homepage?: string;
|
|
1327
|
+
/** kind integration: how it signs people in: none, oauth or key. */
|
|
1328
|
+
auth?: "none" | "oauth" | "key";
|
|
1329
|
+
/** kind integration: the person agrees its address, name and description become public if approved. */
|
|
1330
|
+
consent?: boolean;
|
|
1281
1331
|
/** A note for the reviewer: the first message of the item's thread. (1–2000 characters) */
|
|
1282
1332
|
note?: string;
|
|
1283
1333
|
}): Promise<({
|
|
@@ -1335,6 +1385,113 @@ declare namespace slatebox.media {
|
|
|
1335
1385
|
}) & { mode: "save" }>;
|
|
1336
1386
|
}
|
|
1337
1387
|
|
|
1388
|
+
declare namespace slatebox.personal.ideas {
|
|
1389
|
+
/** Build an idea made for you. Builds one idea: the agent drafts it from your words (metered as a board draft), it is saved as your own private smart component in the library, and it opens on a new private slate. An idea built already answers the slate it opened on. A stale idea (About you changed since) is refused with 409 ideas_stale: refresh first. A token also needs slates:write. @scope profile:write */
|
|
1390
|
+
function build(input: {
|
|
1391
|
+
/** The idea, as personal.ideas.list gives it (ideas[].id). */
|
|
1392
|
+
ideaId: string;
|
|
1393
|
+
}): Promise<({
|
|
1394
|
+
ideaId: string;
|
|
1395
|
+
kind: "component" | "grid";
|
|
1396
|
+
title: string;
|
|
1397
|
+
/** Your library draft. */
|
|
1398
|
+
itemId: string;
|
|
1399
|
+
/** The new private slate it opened on. */
|
|
1400
|
+
shareId: string;
|
|
1401
|
+
/** false: it was built already, and this is that slate. */
|
|
1402
|
+
built: boolean;
|
|
1403
|
+
[key: string]: unknown;
|
|
1404
|
+
}) & { mode: "save" }>;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
declare namespace slatebox.personal.ideas {
|
|
1408
|
+
/** Not for me. Turns down one idea: it goes, and the agent is not asked for it again. @scope profile:write */
|
|
1409
|
+
function dismiss(input: {
|
|
1410
|
+
/** The idea, as personal.ideas.list gives it (ideas[].id). */
|
|
1411
|
+
ideaId: string;
|
|
1412
|
+
}): Promise<({
|
|
1413
|
+
ideaId: string;
|
|
1414
|
+
dismissed: true;
|
|
1415
|
+
[key: string]: unknown;
|
|
1416
|
+
}) & { mode: "save" }>;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
declare namespace slatebox.personal.ideas {
|
|
1420
|
+
/** Ideas made for you. The smart components and printable pages Slatebox suggested for your work (For you), each with why it fits and what Build it makes, from what you keep in About you and the tools you connected. Asks nothing of the agent. Only you see them. @scope profile:read */
|
|
1421
|
+
function list(input: Record<string, unknown>): Promise<{
|
|
1422
|
+
/** Personalization is on. */
|
|
1423
|
+
on: boolean;
|
|
1424
|
+
ideas: Array<{
|
|
1425
|
+
id: string;
|
|
1426
|
+
title: string;
|
|
1427
|
+
/** component: a smart component (a board of lanes); grid: a printable page. */
|
|
1428
|
+
kind: "component" | "grid";
|
|
1429
|
+
/** One line: what the person said or connected that it fits. */
|
|
1430
|
+
why: string;
|
|
1431
|
+
/** What Build it drafts. */
|
|
1432
|
+
brief: string;
|
|
1433
|
+
/** Connected tools it uses, by name. */
|
|
1434
|
+
tools: string[];
|
|
1435
|
+
/** Once built: the slate it opened on and its library draft. */
|
|
1436
|
+
built?: {
|
|
1437
|
+
shareId?: string;
|
|
1438
|
+
itemId?: string;
|
|
1439
|
+
[key: string]: unknown;
|
|
1440
|
+
};
|
|
1441
|
+
[key: string]: unknown;
|
|
1442
|
+
}>;
|
|
1443
|
+
/** Why there is nothing to suggest from (no request was made). */
|
|
1444
|
+
empty: {
|
|
1445
|
+
code?: "personalization-off" | "nothing-known";
|
|
1446
|
+
message?: string;
|
|
1447
|
+
[key: string]: unknown;
|
|
1448
|
+
} | null;
|
|
1449
|
+
/** About you changed since these ideas were made: refresh for ones that fit it now (a stale idea is not built). */
|
|
1450
|
+
stale: boolean;
|
|
1451
|
+
createdAt: string | null;
|
|
1452
|
+
canRefresh: boolean;
|
|
1453
|
+
[key: string]: unknown;
|
|
1454
|
+
}>;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
declare namespace slatebox.personal.ideas {
|
|
1458
|
+
/** Get new ideas made for you. Asks the agent for 3 to 6 new ideas made for your work, from what you keep in About you and the names of the tools you connected; they replace the ones shown. One metered request, up to 10 an hour. With personalization off, or nothing known about you yet, nothing is asked and the empty state says what to do. @scope profile:write */
|
|
1459
|
+
function refresh(input: Record<string, unknown>): Promise<({
|
|
1460
|
+
/** Personalization is on. */
|
|
1461
|
+
on: boolean;
|
|
1462
|
+
ideas: Array<{
|
|
1463
|
+
id: string;
|
|
1464
|
+
title: string;
|
|
1465
|
+
/** component: a smart component (a board of lanes); grid: a printable page. */
|
|
1466
|
+
kind: "component" | "grid";
|
|
1467
|
+
/** One line: what the person said or connected that it fits. */
|
|
1468
|
+
why: string;
|
|
1469
|
+
/** What Build it drafts. */
|
|
1470
|
+
brief: string;
|
|
1471
|
+
/** Connected tools it uses, by name. */
|
|
1472
|
+
tools: string[];
|
|
1473
|
+
/** Once built: the slate it opened on and its library draft. */
|
|
1474
|
+
built?: {
|
|
1475
|
+
shareId?: string;
|
|
1476
|
+
itemId?: string;
|
|
1477
|
+
[key: string]: unknown;
|
|
1478
|
+
};
|
|
1479
|
+
[key: string]: unknown;
|
|
1480
|
+
}>;
|
|
1481
|
+
/** Why there is nothing to suggest from (no request was made). */
|
|
1482
|
+
empty: {
|
|
1483
|
+
code?: "personalization-off" | "nothing-known";
|
|
1484
|
+
message?: string;
|
|
1485
|
+
[key: string]: unknown;
|
|
1486
|
+
} | null;
|
|
1487
|
+
/** About you changed since these ideas were made: refresh for ones that fit it now (a stale idea is not built). */
|
|
1488
|
+
stale: boolean;
|
|
1489
|
+
createdAt: string | null;
|
|
1490
|
+
canRefresh: boolean;
|
|
1491
|
+
[key: string]: unknown;
|
|
1492
|
+
}) & { mode: "save" }>;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1338
1495
|
declare namespace slatebox.presence {
|
|
1339
1496
|
/** Show a plan. Show the people on a slate what this run will do: 1 to 8 short steps, as a checklist beside your named pointer. The first step is under way; presence.step ticks the steps. Saves move the pointer to what they change. At most 3 plans per run. A preview run shows nothing. @scope slates:write @modes save|preview */
|
|
1340
1497
|
function plan(input: {
|
|
@@ -1420,6 +1577,22 @@ declare namespace slatebox.presentations {
|
|
|
1420
1577
|
caption: string;
|
|
1421
1578
|
/** How many of the slate's notes the step shows. */
|
|
1422
1579
|
notes?: number;
|
|
1580
|
+
/** The notes the step shows (their ids on the slate). */
|
|
1581
|
+
nodeIds?: string[];
|
|
1582
|
+
/** What the camera frames, in canvas units (null when the step frames nothing on the slate as it is now). */
|
|
1583
|
+
box?: {
|
|
1584
|
+
x?: number;
|
|
1585
|
+
y?: number;
|
|
1586
|
+
width?: number;
|
|
1587
|
+
height?: number;
|
|
1588
|
+
[key: string]: unknown;
|
|
1589
|
+
} | null;
|
|
1590
|
+
/** How much of the screen the box fills (0 to 1). */
|
|
1591
|
+
fill?: number;
|
|
1592
|
+
/** Notes of the style hidden on this step (a caption or card of another step). */
|
|
1593
|
+
hide?: string[];
|
|
1594
|
+
/** How long the step usually shows, in milliseconds. */
|
|
1595
|
+
duration?: number;
|
|
1423
1596
|
[key: string]: unknown;
|
|
1424
1597
|
}>;
|
|
1425
1598
|
/** Opens the slate and plays this presentation (null in a preview). */
|
|
@@ -1432,7 +1605,7 @@ declare namespace slatebox.presentations {
|
|
|
1432
1605
|
}
|
|
1433
1606
|
|
|
1434
1607
|
declare namespace slatebox.presentations {
|
|
1435
|
-
/** Deck. Read your latest presentation of a slate: its style, and each step's layout (title, overview, dive, hero, treeBuild, trace, sweep, group, bigNumber, quote, split, compare, cover, finale), kicker and
|
|
1608
|
+
/** Deck. Read your latest presentation of a slate (or, when you have none, the slate's published one): its style, and each step's layout (title, overview, dive, hero, treeBuild, trace, sweep, group, bigNumber, quote, split, compare, cover, finale), kicker, caption, the notes it shows and what the camera frames (box, fill). The deck plays on the live canvas with Prezi-style camera moves. @scope slates:read */
|
|
1436
1609
|
function get(input: {
|
|
1437
1610
|
/** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */
|
|
1438
1611
|
shareId: string;
|
|
@@ -1452,6 +1625,22 @@ declare namespace slatebox.presentations {
|
|
|
1452
1625
|
caption: string;
|
|
1453
1626
|
/** How many of the slate's notes the step shows. */
|
|
1454
1627
|
notes?: number;
|
|
1628
|
+
/** The notes the step shows (their ids on the slate). */
|
|
1629
|
+
nodeIds?: string[];
|
|
1630
|
+
/** What the camera frames, in canvas units (null when the step frames nothing on the slate as it is now). */
|
|
1631
|
+
box?: {
|
|
1632
|
+
x?: number;
|
|
1633
|
+
y?: number;
|
|
1634
|
+
width?: number;
|
|
1635
|
+
height?: number;
|
|
1636
|
+
[key: string]: unknown;
|
|
1637
|
+
} | null;
|
|
1638
|
+
/** How much of the screen the box fills (0 to 1). */
|
|
1639
|
+
fill?: number;
|
|
1640
|
+
/** Notes of the style hidden on this step (a caption or card of another step). */
|
|
1641
|
+
hide?: string[];
|
|
1642
|
+
/** How long the step usually shows, in milliseconds. */
|
|
1643
|
+
duration?: number;
|
|
1455
1644
|
[key: string]: unknown;
|
|
1456
1645
|
}>;
|
|
1457
1646
|
[key: string]: unknown;
|
|
@@ -1459,7 +1648,7 @@ declare namespace slatebox.presentations {
|
|
|
1459
1648
|
}
|
|
1460
1649
|
|
|
1461
1650
|
declare namespace slatebox.presentations {
|
|
1462
|
-
/** Restyle.
|
|
1651
|
+
/** Restyle. Put another style (voyage, stage, editorial, neon, sketch, blueprint, journey, calm) on a slate and your latest presentation of it, optionally with your own palette (3 to 6 colors). The slate itself wears the style (its background, its notes' look, and the style's title cards, captions and art as real notes), and the presentation is the camera over it: the same steps in the same order. No AI is asked and nothing is counted. Saved as your own edit of the slate (slates.undo takes it back). An agent wears a style by the rules slate settings meet: 423 agents_paused while people paused agents, 409 needs_direct_edit unless a person lets it edit directly. @scope slates:write @idempotent */
|
|
1463
1652
|
function setStyle(input: {
|
|
1464
1653
|
/** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */
|
|
1465
1654
|
shareId: string;
|
|
@@ -1482,12 +1671,676 @@ declare namespace slatebox.presentations {
|
|
|
1482
1671
|
caption: string;
|
|
1483
1672
|
/** How many of the slate's notes the step shows. */
|
|
1484
1673
|
notes?: number;
|
|
1674
|
+
/** The notes the step shows (their ids on the slate). */
|
|
1675
|
+
nodeIds?: string[];
|
|
1676
|
+
/** What the camera frames, in canvas units (null when the step frames nothing on the slate as it is now). */
|
|
1677
|
+
box?: {
|
|
1678
|
+
x?: number;
|
|
1679
|
+
y?: number;
|
|
1680
|
+
width?: number;
|
|
1681
|
+
height?: number;
|
|
1682
|
+
[key: string]: unknown;
|
|
1683
|
+
} | null;
|
|
1684
|
+
/** How much of the screen the box fills (0 to 1). */
|
|
1685
|
+
fill?: number;
|
|
1686
|
+
/** Notes of the style hidden on this step (a caption or card of another step). */
|
|
1687
|
+
hide?: string[];
|
|
1688
|
+
/** How long the step usually shows, in milliseconds. */
|
|
1689
|
+
duration?: number;
|
|
1690
|
+
[key: string]: unknown;
|
|
1691
|
+
}>;
|
|
1692
|
+
[key: string]: unknown;
|
|
1693
|
+
}) & { mode: "save" }>;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
declare namespace slatebox.profile.facts {
|
|
1697
|
+
/** Add something about you. Adds a fact to About you in your words: a kind (role, team, work, goal, project, tool, topic, style, routine, other) and a few words. The same fact again answers the one you have (added false). About you keeps up to 200 facts. An agent cannot add while personalization is off. @scope profile:write */
|
|
1698
|
+
function add(input: {
|
|
1699
|
+
/** What the fact is about: role, team, work, goal, project, tool, topic, style, routine, other. */
|
|
1700
|
+
kind: "role" | "team" | "work" | "goal" | "project" | "tool" | "topic" | "style" | "routine" | "other";
|
|
1701
|
+
/** The fact in a few plain words, up to 280 characters ("Product manager", "Uses Linear"). (1–280 characters) */
|
|
1702
|
+
text: string;
|
|
1703
|
+
}): Promise<({
|
|
1704
|
+
fact: {
|
|
1705
|
+
id: string;
|
|
1706
|
+
kind: "role" | "team" | "work" | "goal" | "project" | "tool" | "topic" | "style" | "routine" | "other";
|
|
1707
|
+
text: string;
|
|
1708
|
+
source: {
|
|
1709
|
+
type: "typed" | "interview" | "integration" | "upload" | "first-slate";
|
|
1710
|
+
/** Which tool, upload or answer. */
|
|
1711
|
+
ref?: string;
|
|
1712
|
+
/** Its name, as shown. */
|
|
1713
|
+
label?: string;
|
|
1714
|
+
[key: string]: unknown;
|
|
1715
|
+
};
|
|
1716
|
+
/** (0 to 1) */
|
|
1717
|
+
confidence: number;
|
|
1718
|
+
/** Kept and shown to the person, never used. */
|
|
1719
|
+
hidden: boolean;
|
|
1720
|
+
/** Read from their first slate when listed, not stored. */
|
|
1721
|
+
derived?: boolean;
|
|
1722
|
+
createdAt?: string | null;
|
|
1723
|
+
updatedAt?: string | null;
|
|
1724
|
+
[key: string]: unknown;
|
|
1725
|
+
};
|
|
1726
|
+
/** false: you already had this fact. */
|
|
1727
|
+
added: boolean;
|
|
1728
|
+
[key: string]: unknown;
|
|
1729
|
+
}) & { mode: "save" }>;
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
declare namespace slatebox.profile.facts {
|
|
1733
|
+
/** Delete all facts about you. Removes every fact in About you, or only those from one kind of source (source). Your switches stay as they are. @scope profile:write @destructive */
|
|
1734
|
+
function clear(input: {
|
|
1735
|
+
/** Only facts from this kind of source. */
|
|
1736
|
+
source?: "typed" | "interview" | "integration" | "upload" | "first-slate";
|
|
1737
|
+
}): Promise<({
|
|
1738
|
+
removed: number;
|
|
1739
|
+
[key: string]: unknown;
|
|
1740
|
+
}) & { mode: "save" }>;
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
declare namespace slatebox.profile.facts {
|
|
1744
|
+
/** Hide a fact about you. Hides one fact: it stays in About you, where you see it, and is never used. hidden false shows it again. @scope profile:write @idempotent */
|
|
1745
|
+
function hide(input: {
|
|
1746
|
+
/** The fact, as profile.facts.list gives it (facts[].id). The fact read from the first slate is "first-slate". */
|
|
1747
|
+
factId: string;
|
|
1748
|
+
/** false shows the fact again. (default true) */
|
|
1749
|
+
hidden?: boolean;
|
|
1750
|
+
}): Promise<({
|
|
1751
|
+
fact: {
|
|
1752
|
+
id: string;
|
|
1753
|
+
kind: "role" | "team" | "work" | "goal" | "project" | "tool" | "topic" | "style" | "routine" | "other";
|
|
1754
|
+
text: string;
|
|
1755
|
+
source: {
|
|
1756
|
+
type: "typed" | "interview" | "integration" | "upload" | "first-slate";
|
|
1757
|
+
/** Which tool, upload or answer. */
|
|
1758
|
+
ref?: string;
|
|
1759
|
+
/** Its name, as shown. */
|
|
1760
|
+
label?: string;
|
|
1761
|
+
[key: string]: unknown;
|
|
1762
|
+
};
|
|
1763
|
+
/** (0 to 1) */
|
|
1764
|
+
confidence: number;
|
|
1765
|
+
/** Kept and shown to the person, never used. */
|
|
1766
|
+
hidden: boolean;
|
|
1767
|
+
/** Read from their first slate when listed, not stored. */
|
|
1768
|
+
derived?: boolean;
|
|
1769
|
+
createdAt?: string | null;
|
|
1770
|
+
updatedAt?: string | null;
|
|
1771
|
+
[key: string]: unknown;
|
|
1772
|
+
};
|
|
1773
|
+
[key: string]: unknown;
|
|
1774
|
+
}) & { mode: "save" }>;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
declare namespace slatebox.profile.facts {
|
|
1778
|
+
/** About you. What Slatebox knows about you, so it can make boards and slates for your work: every fact, each with its kind and where it came from (you, your first slate, and later an interview with the agent), hidden ones included, and whether personalization is on. Only you see this. @scope profile:read */
|
|
1779
|
+
function list(input: {
|
|
1780
|
+
/** Only facts of this kind. */
|
|
1781
|
+
kind?: "role" | "team" | "work" | "goal" | "project" | "tool" | "topic" | "style" | "routine" | "other";
|
|
1782
|
+
}): Promise<{
|
|
1783
|
+
on: boolean;
|
|
1784
|
+
facts: Array<{
|
|
1785
|
+
id: string;
|
|
1786
|
+
kind: "role" | "team" | "work" | "goal" | "project" | "tool" | "topic" | "style" | "routine" | "other";
|
|
1787
|
+
text: string;
|
|
1788
|
+
source: {
|
|
1789
|
+
type: "typed" | "interview" | "integration" | "upload" | "first-slate";
|
|
1790
|
+
/** Which tool, upload or answer. */
|
|
1791
|
+
ref?: string;
|
|
1792
|
+
/** Its name, as shown. */
|
|
1793
|
+
label?: string;
|
|
1794
|
+
[key: string]: unknown;
|
|
1795
|
+
};
|
|
1796
|
+
/** (0 to 1) */
|
|
1797
|
+
confidence: number;
|
|
1798
|
+
/** Kept and shown to the person, never used. */
|
|
1799
|
+
hidden: boolean;
|
|
1800
|
+
/** Read from their first slate when listed, not stored. */
|
|
1801
|
+
derived?: boolean;
|
|
1802
|
+
createdAt?: string | null;
|
|
1803
|
+
updatedAt?: string | null;
|
|
1804
|
+
[key: string]: unknown;
|
|
1805
|
+
}>;
|
|
1806
|
+
/** How many facts About you keeps at most. */
|
|
1807
|
+
limit: number;
|
|
1808
|
+
[key: string]: unknown;
|
|
1809
|
+
}>;
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
declare namespace slatebox.profile.facts {
|
|
1813
|
+
/** Remove a fact about you. Removes one fact from About you. @scope profile:write @destructive */
|
|
1814
|
+
function remove(input: {
|
|
1815
|
+
/** The fact, as profile.facts.list gives it (facts[].id). The fact read from the first slate is "first-slate". */
|
|
1816
|
+
factId: string;
|
|
1817
|
+
}): Promise<({
|
|
1818
|
+
factId: string;
|
|
1819
|
+
removed: true;
|
|
1820
|
+
[key: string]: unknown;
|
|
1821
|
+
}) & { mode: "save" }>;
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
declare namespace slatebox.profile.facts {
|
|
1825
|
+
/** Change a fact about you. New words or a new kind for one fact. Changing the fact from your first slate makes it one of your own. @scope profile:write */
|
|
1826
|
+
function update(input: {
|
|
1827
|
+
/** The fact, as profile.facts.list gives it (facts[].id). The fact read from the first slate is "first-slate". */
|
|
1828
|
+
factId: string;
|
|
1829
|
+
/** What the fact is about: role, team, work, goal, project, tool, topic, style, routine, other. */
|
|
1830
|
+
kind?: "role" | "team" | "work" | "goal" | "project" | "tool" | "topic" | "style" | "routine" | "other";
|
|
1831
|
+
/** The fact in a few plain words, up to 280 characters ("Product manager", "Uses Linear"). (1–280 characters) */
|
|
1832
|
+
text?: string;
|
|
1833
|
+
}): Promise<({
|
|
1834
|
+
fact: {
|
|
1835
|
+
id: string;
|
|
1836
|
+
kind: "role" | "team" | "work" | "goal" | "project" | "tool" | "topic" | "style" | "routine" | "other";
|
|
1837
|
+
text: string;
|
|
1838
|
+
source: {
|
|
1839
|
+
type: "typed" | "interview" | "integration" | "upload" | "first-slate";
|
|
1840
|
+
/** Which tool, upload or answer. */
|
|
1841
|
+
ref?: string;
|
|
1842
|
+
/** Its name, as shown. */
|
|
1843
|
+
label?: string;
|
|
1844
|
+
[key: string]: unknown;
|
|
1845
|
+
};
|
|
1846
|
+
/** (0 to 1) */
|
|
1847
|
+
confidence: number;
|
|
1848
|
+
/** Kept and shown to the person, never used. */
|
|
1849
|
+
hidden: boolean;
|
|
1850
|
+
/** Read from their first slate when listed, not stored. */
|
|
1851
|
+
derived?: boolean;
|
|
1852
|
+
createdAt?: string | null;
|
|
1853
|
+
updatedAt?: string | null;
|
|
1854
|
+
[key: string]: unknown;
|
|
1855
|
+
};
|
|
1856
|
+
[key: string]: unknown;
|
|
1857
|
+
}) & { mode: "save" }>;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
declare namespace slatebox.profile.settings {
|
|
1861
|
+
/** Personalization settings. Whether personalization is on, and each source's switch. A connected tool or an upload is off until you switch it on. @scope profile:read */
|
|
1862
|
+
function get(input: Record<string, unknown>): Promise<{
|
|
1863
|
+
/** Personalization: when off, nothing About you holds is used, and no source adds to it. */
|
|
1864
|
+
on: boolean;
|
|
1865
|
+
/** Each source's switch by its key (interview, integration:<id>, upload:<id>). A connected tool or an upload is off until switched on. */
|
|
1866
|
+
sources: Record<string, unknown>;
|
|
1867
|
+
updatedAt?: string | null;
|
|
1868
|
+
[key: string]: unknown;
|
|
1869
|
+
}>;
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
declare namespace slatebox.projects {
|
|
1873
|
+
/** Get project sharing. Who can open a project: its owner, each person and team it is shared with and their role, invitations to addresses with no account yet, and the link's role and address. The project's owner and managers may read it. @scope projects:share */
|
|
1874
|
+
function access(input: {
|
|
1875
|
+
/** A project (a drive) or one of its folders. (1–64 characters) */
|
|
1876
|
+
projectId: string;
|
|
1877
|
+
}): Promise<{
|
|
1878
|
+
projectId: string;
|
|
1879
|
+
owner: {
|
|
1880
|
+
userId: string;
|
|
1881
|
+
name?: string;
|
|
1882
|
+
[key: string]: unknown;
|
|
1883
|
+
};
|
|
1884
|
+
link: {
|
|
1885
|
+
role: "none" | "viewer" | "commenter" | "editor";
|
|
1886
|
+
url: string | null;
|
|
1887
|
+
[key: string]: unknown;
|
|
1888
|
+
};
|
|
1889
|
+
grants: Array<{
|
|
1890
|
+
kind: "user" | "team";
|
|
1891
|
+
role: "none" | "viewer" | "commenter" | "editor" | "manager";
|
|
1892
|
+
userId?: string | null;
|
|
1893
|
+
orgId?: string | null;
|
|
1894
|
+
/** For an invitation to an address with no account yet. */
|
|
1895
|
+
email?: string | null;
|
|
1896
|
+
pending?: boolean;
|
|
1897
|
+
name?: string;
|
|
1898
|
+
granted?: string | null;
|
|
1899
|
+
[key: string]: unknown;
|
|
1900
|
+
}>;
|
|
1901
|
+
sharingRevision?: number;
|
|
1902
|
+
[key: string]: unknown;
|
|
1903
|
+
}>;
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
declare namespace slatebox.projects {
|
|
1907
|
+
/** Create project. Make a project: a drive of slates you own and can share like a shared drive (your team's when you are in one). With parentId, make a folder in that project or folder instead (an editor of it may; folders go at most 3 levels deep). @scope projects:write */
|
|
1908
|
+
function create(input: {
|
|
1909
|
+
/** (1–120 characters) */
|
|
1910
|
+
name: string;
|
|
1911
|
+
/** (at most 2000 characters) */
|
|
1912
|
+
description?: string;
|
|
1913
|
+
/** A palette index for the project's dot. (0 to 11) */
|
|
1914
|
+
color?: number | null;
|
|
1915
|
+
/** Make a folder in this project or folder. (1–64 characters) */
|
|
1916
|
+
parentId?: string;
|
|
1917
|
+
}): Promise<({
|
|
1918
|
+
projectId: string;
|
|
1919
|
+
/** A drive is a project; a folder sits in one. */
|
|
1920
|
+
kind: "drive" | "folder";
|
|
1921
|
+
/** The project this folder is in (the project itself for a drive). */
|
|
1922
|
+
driveId: string;
|
|
1923
|
+
parentId?: string | null;
|
|
1924
|
+
/** (0 to 3) */
|
|
1925
|
+
depth?: number;
|
|
1926
|
+
name: string;
|
|
1927
|
+
description?: string;
|
|
1928
|
+
color?: number | null;
|
|
1929
|
+
ownerId?: string;
|
|
1930
|
+
orgId?: string | null;
|
|
1931
|
+
/** Your role in the project. */
|
|
1932
|
+
role: "owner" | "manager" | "editor" | "commenter" | "viewer";
|
|
1933
|
+
recipesPaused?: boolean;
|
|
1934
|
+
created?: string | null;
|
|
1935
|
+
updated?: string | null;
|
|
1936
|
+
url?: string;
|
|
1937
|
+
mode?: string;
|
|
1938
|
+
[key: string]: unknown;
|
|
1939
|
+
}) & { mode: "save" }>;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
declare namespace slatebox.projects {
|
|
1943
|
+
/** Delete project. Delete a folder, or a whole project. A folder that holds slates or folders moves them to moveContentsTo (its parent by default) first; a manager deletes only empty folders, the owner any. Deleting a project (its owner only) deletes the slates its owner owns in it, with their sharing and comments, and gives every other slate back to its owner. This cannot be undone. mode "preview" says how many slates would be deleted and given back without changing anything. @scope projects:write @modes save|preview @destructive */
|
|
1944
|
+
function delete(input: {
|
|
1945
|
+
/** A project (a drive) or one of its folders. (1–64 characters) */
|
|
1946
|
+
projectId: string;
|
|
1947
|
+
/** For a folder: where its slates and folders go (its parent by default). (1–64 characters) */
|
|
1948
|
+
moveContentsTo?: string;
|
|
1949
|
+
/** preview returns what would change and saves nothing. (default "save") */
|
|
1950
|
+
mode?: "save" | "preview";
|
|
1951
|
+
}): Promise<({
|
|
1952
|
+
projectId: string;
|
|
1953
|
+
deleted: boolean;
|
|
1954
|
+
folders?: number;
|
|
1955
|
+
/** Slates of the project's owner that are (or would be) deleted. */
|
|
1956
|
+
deletedSlates: number;
|
|
1957
|
+
/** Slates of other people that go (or would go) back to them. */
|
|
1958
|
+
returnedSlates: number;
|
|
1959
|
+
/** For a folder: slates moved to where its contents went. */
|
|
1960
|
+
movedSlates?: number;
|
|
1961
|
+
mode?: string;
|
|
1962
|
+
[key: string]: unknown;
|
|
1963
|
+
}) & { mode: "save" | "preview" }>;
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
declare namespace slatebox.projects {
|
|
1967
|
+
/** Get project. Read a project or one of its folders: its name, your role, the folders directly in it, the folders above it and how many slates it holds. A drive link's key (linkKey, the part after /p/) opens a project shared by link. @scope projects:read */
|
|
1968
|
+
function get(input: {
|
|
1969
|
+
/** A project (a drive) or one of its folders. (1–64 characters) */
|
|
1970
|
+
projectId: string;
|
|
1971
|
+
/** The key of a link to the project (/p/<key>). Not used by tokens. (16–64 characters) */
|
|
1972
|
+
linkKey?: string;
|
|
1973
|
+
}): Promise<{
|
|
1974
|
+
projectId: string;
|
|
1975
|
+
/** A drive is a project; a folder sits in one. */
|
|
1976
|
+
kind: "drive" | "folder";
|
|
1977
|
+
/** The project this folder is in (the project itself for a drive). */
|
|
1978
|
+
driveId: string;
|
|
1979
|
+
parentId?: string | null;
|
|
1980
|
+
/** (0 to 3) */
|
|
1981
|
+
depth?: number;
|
|
1982
|
+
name: string;
|
|
1983
|
+
description?: string;
|
|
1984
|
+
color?: number | null;
|
|
1985
|
+
ownerId?: string;
|
|
1986
|
+
orgId?: string | null;
|
|
1987
|
+
/** Your role in the project. */
|
|
1988
|
+
role: "owner" | "manager" | "editor" | "commenter" | "viewer";
|
|
1989
|
+
recipesPaused?: boolean;
|
|
1990
|
+
created?: string | null;
|
|
1991
|
+
updated?: string | null;
|
|
1992
|
+
url?: string;
|
|
1993
|
+
path: Array<{
|
|
1994
|
+
projectId: string;
|
|
1995
|
+
name: string;
|
|
1996
|
+
[key: string]: unknown;
|
|
1997
|
+
}>;
|
|
1998
|
+
folders: Array<{
|
|
1999
|
+
projectId: string;
|
|
2000
|
+
name: string;
|
|
2001
|
+
depth?: number;
|
|
2002
|
+
[key: string]: unknown;
|
|
2003
|
+
}>;
|
|
2004
|
+
/** Every folder in the project (the drive), at any depth. */
|
|
2005
|
+
driveFolders?: Array<{
|
|
2006
|
+
projectId: string;
|
|
2007
|
+
parentId: string;
|
|
2008
|
+
name: string;
|
|
2009
|
+
depth?: number;
|
|
2010
|
+
[key: string]: unknown;
|
|
2011
|
+
}>;
|
|
2012
|
+
/** (at least 0) */
|
|
2013
|
+
slateCount: number;
|
|
2014
|
+
ownerName?: string;
|
|
2015
|
+
[key: string]: unknown;
|
|
2016
|
+
}>;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
declare namespace slatebox.projects {
|
|
2020
|
+
/** List projects. List your projects (shareable drives of slates): the ones you own first, then the ones shared with you, each with your role. With parentId, list the folders in that project or folder instead. @scope projects:read */
|
|
2021
|
+
function list(input: {
|
|
2022
|
+
/** List the folders in this project or folder. (1–64 characters) */
|
|
2023
|
+
parentId?: string;
|
|
2024
|
+
}): Promise<{
|
|
2025
|
+
projects: Array<{
|
|
2026
|
+
projectId: string;
|
|
2027
|
+
/** A drive is a project; a folder sits in one. */
|
|
2028
|
+
kind: "drive" | "folder";
|
|
2029
|
+
/** The project this folder is in (the project itself for a drive). */
|
|
2030
|
+
driveId: string;
|
|
2031
|
+
parentId?: string | null;
|
|
2032
|
+
/** (0 to 3) */
|
|
2033
|
+
depth?: number;
|
|
2034
|
+
name: string;
|
|
2035
|
+
description?: string;
|
|
2036
|
+
color?: number | null;
|
|
2037
|
+
ownerId?: string;
|
|
2038
|
+
orgId?: string | null;
|
|
2039
|
+
/** Your role in the project. */
|
|
2040
|
+
role: "owner" | "manager" | "editor" | "commenter" | "viewer";
|
|
2041
|
+
recipesPaused?: boolean;
|
|
2042
|
+
created?: string | null;
|
|
2043
|
+
updated?: string | null;
|
|
2044
|
+
url?: string;
|
|
1485
2045
|
[key: string]: unknown;
|
|
1486
2046
|
}>;
|
|
1487
2047
|
[key: string]: unknown;
|
|
2048
|
+
}>;
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
declare namespace slatebox.projects {
|
|
2052
|
+
/** Move slate to project. Put a slate in a project or folder, move it to another one, or take it out of its project (projectId null), back to its owner's slates. The slate's owner may move it into any project they can edit; a manager of its project may move any slate within that project or give it back to its owner. Everyone in a project can open its slates at their role there. @scope projects:write @confirm */
|
|
2053
|
+
function moveSlate(input: {
|
|
2054
|
+
/** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */
|
|
2055
|
+
shareId: string;
|
|
2056
|
+
/** The project or folder it goes in; null takes it out of its project. (1–64 characters) */
|
|
2057
|
+
projectId: string | null;
|
|
2058
|
+
}): Promise<({
|
|
2059
|
+
shareId: string;
|
|
2060
|
+
projectId: string | null;
|
|
2061
|
+
moved: boolean;
|
|
2062
|
+
mode?: string;
|
|
2063
|
+
[key: string]: unknown;
|
|
2064
|
+
}) & { mode: "save" }>;
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2067
|
+
declare namespace slatebox.projects {
|
|
2068
|
+
/** Share project. Share a project, as a shared drive is shared: with one person (userId, or email, which invites an address that has no account yet), with your whole team (orgId, your own team, if you may make team slates), or with anyone who has the link (link). Roles: viewer opens every slate, commenter comments too, editor edits and adds slates and folders, manager also organizes and shares. role "none" (or link "none") takes access away; rotate makes a new link and turns the old one off. The project's owner and managers may share it. @scope projects:share @confirm */
|
|
2069
|
+
function share(input: {
|
|
2070
|
+
/** A project (a drive) or one of its folders. (1–64 characters) */
|
|
2071
|
+
projectId: string;
|
|
2072
|
+
/** (1–128 characters) */
|
|
2073
|
+
userId?: string;
|
|
2074
|
+
/** (3–320 characters) */
|
|
2075
|
+
email?: string;
|
|
2076
|
+
/** Your team, to share with everyone in it. (1–128 characters) */
|
|
2077
|
+
orgId?: string;
|
|
2078
|
+
/** For a person or a team. */
|
|
2079
|
+
role?: "none" | "viewer" | "commenter" | "editor" | "manager";
|
|
2080
|
+
/** What anyone with the link can do. */
|
|
2081
|
+
link?: "none" | "viewer" | "commenter" | "editor";
|
|
2082
|
+
/** With link: make a new link address; the old one stops working. */
|
|
2083
|
+
rotate?: boolean;
|
|
2084
|
+
}): Promise<({
|
|
2085
|
+
projectId: string;
|
|
2086
|
+
owner: {
|
|
2087
|
+
userId: string;
|
|
2088
|
+
name?: string;
|
|
2089
|
+
[key: string]: unknown;
|
|
2090
|
+
};
|
|
2091
|
+
link: {
|
|
2092
|
+
role: "none" | "viewer" | "commenter" | "editor";
|
|
2093
|
+
url: string | null;
|
|
2094
|
+
[key: string]: unknown;
|
|
2095
|
+
};
|
|
2096
|
+
grants: Array<{
|
|
2097
|
+
kind: "user" | "team";
|
|
2098
|
+
role: "none" | "viewer" | "commenter" | "editor" | "manager";
|
|
2099
|
+
userId?: string | null;
|
|
2100
|
+
orgId?: string | null;
|
|
2101
|
+
/** For an invitation to an address with no account yet. */
|
|
2102
|
+
email?: string | null;
|
|
2103
|
+
pending?: boolean;
|
|
2104
|
+
name?: string;
|
|
2105
|
+
granted?: string | null;
|
|
2106
|
+
[key: string]: unknown;
|
|
2107
|
+
}>;
|
|
2108
|
+
sharingRevision?: number;
|
|
2109
|
+
mode?: string;
|
|
2110
|
+
[key: string]: unknown;
|
|
2111
|
+
}) & { mode: "save" }>;
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
declare namespace slatebox.projects {
|
|
2115
|
+
/** List project slates. List the slates in a project or folder, newest first, with each one's link: the folder's own and, unless nested is false, those in its folders too. Anyone with a role in the project may, a drive link's holder too (linkKey, the part after /p/). Filter by name with q. @scope projects:read */
|
|
2116
|
+
function slates(input: {
|
|
2117
|
+
/** A project (a drive) or one of its folders. (1–64 characters) */
|
|
2118
|
+
projectId: string;
|
|
2119
|
+
/** Include the slates in its folders. (default true) */
|
|
2120
|
+
nested?: boolean;
|
|
2121
|
+
/** Part of the slate name. (1–200 characters) */
|
|
2122
|
+
q?: string;
|
|
2123
|
+
/** (1 to 100, default 50) */
|
|
2124
|
+
limit?: number;
|
|
2125
|
+
/** The key of a link to the project (/p/<key>). Not used by tokens. (16–64 characters) */
|
|
2126
|
+
linkKey?: string;
|
|
2127
|
+
}): Promise<{
|
|
2128
|
+
slates: Array<{
|
|
2129
|
+
shareId: string;
|
|
2130
|
+
name: string;
|
|
2131
|
+
description?: string;
|
|
2132
|
+
visibility?: "private" | "unlisted" | "public";
|
|
2133
|
+
owner: "you" | "someone";
|
|
2134
|
+
projectId: string;
|
|
2135
|
+
updated?: string | null;
|
|
2136
|
+
url: string;
|
|
2137
|
+
[key: string]: unknown;
|
|
2138
|
+
}>;
|
|
2139
|
+
[key: string]: unknown;
|
|
2140
|
+
}>;
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
declare namespace slatebox.projects {
|
|
2144
|
+
/** Update project. Rename a project or folder, change its description or color, move a folder to another folder of the same project (parentId), or pause and resume the recipes that keep the project's slates up to date (recipesPaused, a whole project only). A project is renamed by its owner and managers; a folder by its editors; folders are moved by managers. @scope projects:write */
|
|
2145
|
+
function update(input: {
|
|
2146
|
+
/** A project (a drive) or one of its folders. (1–64 characters) */
|
|
2147
|
+
projectId: string;
|
|
2148
|
+
/** (1–120 characters) */
|
|
2149
|
+
name?: string;
|
|
2150
|
+
/** (at most 2000 characters) */
|
|
2151
|
+
description?: string;
|
|
2152
|
+
/** A palette index for the project's dot. (0 to 11) */
|
|
2153
|
+
color?: number | null;
|
|
2154
|
+
/** Move this folder into that folder (or the project itself). (1–64 characters) */
|
|
2155
|
+
parentId?: string;
|
|
2156
|
+
/** Pause (true) or resume (false) every recipe in the project. */
|
|
2157
|
+
recipesPaused?: boolean;
|
|
2158
|
+
}): Promise<({
|
|
2159
|
+
projectId: string;
|
|
2160
|
+
/** A drive is a project; a folder sits in one. */
|
|
2161
|
+
kind: "drive" | "folder";
|
|
2162
|
+
/** The project this folder is in (the project itself for a drive). */
|
|
2163
|
+
driveId: string;
|
|
2164
|
+
parentId?: string | null;
|
|
2165
|
+
/** (0 to 3) */
|
|
2166
|
+
depth?: number;
|
|
2167
|
+
name: string;
|
|
2168
|
+
description?: string;
|
|
2169
|
+
color?: number | null;
|
|
2170
|
+
ownerId?: string;
|
|
2171
|
+
orgId?: string | null;
|
|
2172
|
+
/** Your role in the project. */
|
|
2173
|
+
role: "owner" | "manager" | "editor" | "commenter" | "viewer";
|
|
2174
|
+
recipesPaused?: boolean;
|
|
2175
|
+
created?: string | null;
|
|
2176
|
+
updated?: string | null;
|
|
2177
|
+
url?: string;
|
|
2178
|
+
mode?: string;
|
|
2179
|
+
[key: string]: unknown;
|
|
1488
2180
|
}) & { mode: "save" }>;
|
|
1489
2181
|
}
|
|
1490
2182
|
|
|
2183
|
+
declare namespace slatebox.security {
|
|
2184
|
+
/** Draw a security slate. Draw typed security notes and lines (real notes everyone edits). what: "threat-model" (a data-flow diagram with trust boundaries and a STRIDE sticky note for each part), "cra-annex-vii" (the EU Cyber Resilience Act's technical documentation: the system architecture for point 2(a) and a note for each point), "fda-views" (the FDA premarket security architecture views: global system, multi-patient harm, updateability/patchability and a security use case), "architecture" (the component view of a repository, from its architecture model or from its files: one boundary around what the code runs, a frame per tier, protocols from the code; data and encryption are left for people) or "stride" (STRIDE prompts as sticky notes beside a slate's typed parts; needs shareId). With shareId the drawing goes beside what that slate holds (edit access); without, it becomes a new private slate of yours named name. Each template cites the official text it follows. mode "preview" answers what would be drawn without saving. @scope slates:write @modes save|preview */
|
|
2185
|
+
function draw(input: {
|
|
2186
|
+
what: "threat-model" | "cra-annex-vii" | "fda-views" | "architecture" | "stride";
|
|
2187
|
+
/** A repository's architecture model, as the architecture extractors build it (paths and names only, never code). */
|
|
2188
|
+
architecture?: {
|
|
2189
|
+
/** owner/name, for the title and links. (at most 200 characters) */
|
|
2190
|
+
repo?: string;
|
|
2191
|
+
/** The commit it was read at. (at most 64 characters) */
|
|
2192
|
+
sha?: string;
|
|
2193
|
+
/** (at most 200 items) */
|
|
2194
|
+
services: Array<{
|
|
2195
|
+
/** (1–200 characters) */
|
|
2196
|
+
key: string;
|
|
2197
|
+
/** (at most 200 characters) */
|
|
2198
|
+
label?: string;
|
|
2199
|
+
kind?: "service" | "function" | "store" | "queue" | "ingress" | "external";
|
|
2200
|
+
/** (at most 200 characters) */
|
|
2201
|
+
image?: string | null;
|
|
2202
|
+
/** (at most 40 characters) */
|
|
2203
|
+
source?: string;
|
|
2204
|
+
/** (at most 400 characters) */
|
|
2205
|
+
file?: string | null;
|
|
2206
|
+
[key: string]: unknown;
|
|
2207
|
+
}>;
|
|
2208
|
+
/** (at most 600 items) */
|
|
2209
|
+
serviceEdges?: Array<{
|
|
2210
|
+
/** (at most 200 characters) */
|
|
2211
|
+
from: string;
|
|
2212
|
+
/** (at most 200 characters) */
|
|
2213
|
+
to: string;
|
|
2214
|
+
/** (at most 20 characters) */
|
|
2215
|
+
protocol?: string | null;
|
|
2216
|
+
[key: string]: unknown;
|
|
2217
|
+
}>;
|
|
2218
|
+
[key: string]: unknown;
|
|
2219
|
+
};
|
|
2220
|
+
/** Instead of architecture: the repository's files ({ path, text }), read by the architecture extractors (docker-compose, Kubernetes, Terraform, Helm, serverless). Only paths and names are kept, never the code. (at most 2000 items) */
|
|
2221
|
+
files?: Array<{
|
|
2222
|
+
/** (1–400 characters) */
|
|
2223
|
+
path: string;
|
|
2224
|
+
/** (at most 1048576 characters) */
|
|
2225
|
+
text: string;
|
|
2226
|
+
}>;
|
|
2227
|
+
/** With files: owner/name, for the title and links. (at most 200 characters) */
|
|
2228
|
+
repo?: string;
|
|
2229
|
+
/** With files: the commit they were read at. (at most 64 characters) */
|
|
2230
|
+
sha?: string;
|
|
2231
|
+
/** Draw on this slate. Leave out to make a new private slate. (1–80 characters) */
|
|
2232
|
+
shareId?: string;
|
|
2233
|
+
/** The new slate's name (without shareId). (1–200 characters) */
|
|
2234
|
+
name?: string;
|
|
2235
|
+
/** Make the new slate in this project or folder (without shareId). (1–64 characters) */
|
|
2236
|
+
projectId?: string;
|
|
2237
|
+
/** preview returns what would change and saves nothing. (default "save") */
|
|
2238
|
+
mode?: "save" | "preview";
|
|
2239
|
+
}): Promise<({
|
|
2240
|
+
ok: boolean;
|
|
2241
|
+
mode?: string;
|
|
2242
|
+
shareId: string | null;
|
|
2243
|
+
url?: string | null;
|
|
2244
|
+
/** (at least 0) */
|
|
2245
|
+
revision?: number;
|
|
2246
|
+
notes: number;
|
|
2247
|
+
lines?: number;
|
|
2248
|
+
typed?: number;
|
|
2249
|
+
findings?: Array<Record<string, unknown>>;
|
|
2250
|
+
message: string;
|
|
2251
|
+
[key: string]: unknown;
|
|
2252
|
+
}) & { mode: "save" | "preview" }>;
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
declare namespace slatebox.security {
|
|
2256
|
+
/** Read security properties. Read the security properties of a slate you can open: what each note is (person, service, data store, queue, way in, outside system, device or trust boundary) with its data, encryption at rest and sign-in, and what each line carries (protocol, ports, data, code or commands, encryption in transit, sign-in). Also answers each note's trust boundary zone, plain checks (lines that cross a boundary unencrypted, sensitive data stored unencrypted, missing protocols), STRIDE prompts for every part and flow, and Markdown tables of the parts and connections for technical documentation (CRA Annex VII 2(a), FDA architecture views). The checks are places to look, not audit results. @scope slates:read */
|
|
2257
|
+
function get(input: {
|
|
2258
|
+
/** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */
|
|
2259
|
+
shareId: string;
|
|
2260
|
+
}): Promise<{
|
|
2261
|
+
shareId: string;
|
|
2262
|
+
/** (at least 0) */
|
|
2263
|
+
revision: number;
|
|
2264
|
+
/** { v, notes: { id: properties }, lines: { id: properties } } */
|
|
2265
|
+
security: Record<string, unknown>;
|
|
2266
|
+
/** Each note in a trust boundary: note id → boundary note id. */
|
|
2267
|
+
zones?: Record<string, unknown>;
|
|
2268
|
+
/** Each trust boundary: note id → its text. */
|
|
2269
|
+
boundaries?: Record<string, unknown>;
|
|
2270
|
+
/** Plain checks: { key, severity (high, medium, low), target: { type, id }, text }. Places to look, not audit results. */
|
|
2271
|
+
findings: Array<Record<string, unknown>>;
|
|
2272
|
+
/** STRIDE prompts for each typed part and each flow between them: { target, name, element, prompts: [{ letter, category, question }] }. */
|
|
2273
|
+
stride: Array<Record<string, unknown>>;
|
|
2274
|
+
/** The parts and connections as Markdown tables, for technical documentation. */
|
|
2275
|
+
markdown: string;
|
|
2276
|
+
[key: string]: unknown;
|
|
2277
|
+
}>;
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
declare namespace slatebox.security {
|
|
2281
|
+
/** Change security properties. Set security properties on notes and lines of a slate you can edit. notes and lines map ids (slates.get lists them) to properties; given fields replace what is there, a field set to null is cleared, and null for an item removes its properties. Type a frame as element "boundary" to make it a trust boundary. labelLines also writes each changed line's properties as its label ("HTTPS · OAuth token · Personal data"); everyone on the slate sees it. Answers the slate's properties with their checks, as security.get does. mode "preview" checks without saving. @scope slates:write @modes save|preview */
|
|
2282
|
+
function set(input: {
|
|
2283
|
+
/** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */
|
|
2284
|
+
shareId: string;
|
|
2285
|
+
/** By note id (slates.get lists them). */
|
|
2286
|
+
notes?: Record<string, {
|
|
2287
|
+
/** What the note is. boundary makes it a trust boundary: the notes whose middle is inside it are in its zone. */
|
|
2288
|
+
element?: "actor" | "process" | "datastore" | "queue" | "gateway" | "external" | "device" | "boundary" | null;
|
|
2289
|
+
/** The kinds of data it holds or handles. (at most 7 items) */
|
|
2290
|
+
data?: Array<"public" | "internal" | "confidential" | "personal" | "health" | "payment" | "credentials"> | null;
|
|
2291
|
+
/** How what it stores is encrypted. */
|
|
2292
|
+
atRest?: "none" | "provider" | "customer" | "app" | null;
|
|
2293
|
+
/** How callers sign in to it. */
|
|
2294
|
+
auth?: "none" | "session" | "sso" | "oauth" | "token" | "apikey" | "mtls" | "iam" | "other" | null;
|
|
2295
|
+
/** Anything else a reviewer should know. (at most 500 characters) */
|
|
2296
|
+
notes?: string | null;
|
|
2297
|
+
} | null>;
|
|
2298
|
+
/** By line id (slates.get lists them). */
|
|
2299
|
+
lines?: Record<string, {
|
|
2300
|
+
/** The application protocol (HTTP with TLS is HTTPS: set inTransit). */
|
|
2301
|
+
protocol?: "http" | "grpc" | "ws" | "sql" | "mongo" | "redis" | "amqp" | "kafka" | "nats" | "mqtt" | "smtp" | "ssh" | "bluetooth" | "usb" | "serial" | "other" | null;
|
|
2302
|
+
/** Ports, channels or frequencies, as text ("443", "5432", "2.4 GHz"). (at most 60 characters) */
|
|
2303
|
+
ports?: string | null;
|
|
2304
|
+
/** The kinds of data it carries. (at most 7 items) */
|
|
2305
|
+
data?: Array<"public" | "internal" | "confidential" | "personal" | "health" | "payment" | "credentials"> | null;
|
|
2306
|
+
/** Whether it moves data, code (updates) or commands. (at most 3 items) */
|
|
2307
|
+
carries?: Array<"data" | "code" | "commands"> | null;
|
|
2308
|
+
/** How it is encrypted in transit. */
|
|
2309
|
+
inTransit?: "none" | "tls" | "mtls" | "vpn" | "app" | null;
|
|
2310
|
+
/** How the caller signs in. */
|
|
2311
|
+
auth?: "none" | "session" | "sso" | "oauth" | "token" | "apikey" | "mtls" | "iam" | "other" | null;
|
|
2312
|
+
/** Anything else a reviewer should know. (at most 500 characters) */
|
|
2313
|
+
notes?: string | null;
|
|
2314
|
+
} | null>;
|
|
2315
|
+
/** Also label each line changed here with its properties. */
|
|
2316
|
+
labelLines?: boolean;
|
|
2317
|
+
/** The revision you read (security.get answers it). The change is refused with 409 security_changed if the security properties changed after it; edits to notes alone never refuse it. (at least 0) */
|
|
2318
|
+
expectedRevision?: number;
|
|
2319
|
+
/** preview returns what would change and saves nothing. (default "save") */
|
|
2320
|
+
mode?: "save" | "preview";
|
|
2321
|
+
}): Promise<({
|
|
2322
|
+
ok: boolean;
|
|
2323
|
+
mode?: string;
|
|
2324
|
+
shareId: string;
|
|
2325
|
+
/** (at least 0) */
|
|
2326
|
+
revision: number;
|
|
2327
|
+
labeled?: number;
|
|
2328
|
+
/** { v, notes: { id: properties }, lines: { id: properties } } */
|
|
2329
|
+
security: Record<string, unknown>;
|
|
2330
|
+
/** Each note in a trust boundary: note id → boundary note id. */
|
|
2331
|
+
zones?: Record<string, unknown>;
|
|
2332
|
+
/** Each trust boundary: note id → its text. */
|
|
2333
|
+
boundaries?: Record<string, unknown>;
|
|
2334
|
+
/** Plain checks: { key, severity (high, medium, low), target: { type, id }, text }. Places to look, not audit results. */
|
|
2335
|
+
findings: Array<Record<string, unknown>>;
|
|
2336
|
+
/** STRIDE prompts for each typed part and each flow between them: { target, name, element, prompts: [{ letter, category, question }] }. */
|
|
2337
|
+
stride?: Array<Record<string, unknown>>;
|
|
2338
|
+
/** The parts and connections as Markdown tables, for technical documentation. */
|
|
2339
|
+
markdown?: string;
|
|
2340
|
+
[key: string]: unknown;
|
|
2341
|
+
}) & { mode: "save" | "preview" }>;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
1491
2344
|
declare namespace slatebox.shapes {
|
|
1492
2345
|
/** Shape notes. Give notes a shape: a built-in name (ellipse, star), "lib:<id>" or a name from shapes.list, or a candidateId from shapes.generate (saved to your library). Each note keeps its width and takes the shape's proportions. One save; mode "preview" saves nothing. @scope slates:write @modes save|preview */
|
|
1493
2346
|
function apply(input: {
|
|
@@ -1750,12 +2603,14 @@ declare namespace slatebox.slates {
|
|
|
1750
2603
|
}
|
|
1751
2604
|
|
|
1752
2605
|
declare namespace slatebox.slates {
|
|
1753
|
-
/** Copy slate. Make a private copy of a slate you may edit, a public slate, or a slate whose presentation is published publicly. Someone who may only view a private slate cannot copy it. The copy is an ordinary private slate. A published presentation of the slate is copied with it as a private presentation of the copy. To use something from the library, fork it (library.fork). @scope slates:write */
|
|
2606
|
+
/** Copy slate. Make a private copy of a slate you may edit, a public slate, or a slate whose presentation is published publicly. Someone who may only view a private slate cannot copy it. The copy is an ordinary private slate, in none of your projects unless projectId names one you can edit. A published presentation of the slate is copied with it as a private presentation of the copy. To use something from the library, fork it (library.fork). @scope slates:write */
|
|
1754
2607
|
function copy(input: {
|
|
1755
2608
|
/** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */
|
|
1756
2609
|
shareId: string;
|
|
1757
2610
|
/** (1–200 characters) */
|
|
1758
2611
|
name?: string;
|
|
2612
|
+
/** Put the copy in this project or folder (you need to be an editor of it). (1–64 characters) */
|
|
2613
|
+
projectId?: string;
|
|
1759
2614
|
}): Promise<({
|
|
1760
2615
|
shareId: string;
|
|
1761
2616
|
/** (at least 1) */
|
|
@@ -1765,16 +2620,20 @@ declare namespace slatebox.slates {
|
|
|
1765
2620
|
}
|
|
1766
2621
|
|
|
1767
2622
|
declare namespace slatebox.slates {
|
|
1768
|
-
/** Create a slate. Omitting kind creates a playable decision map from a brief of up to 160 characters. kind diagram makes editable notes and connections from your own steps (up to 1200 characters, connect two steps with → or ->) or from a named source. The token owner owns the new private slate. @scope slates:write */
|
|
2623
|
+
/** Create a slate. Omitting kind creates a playable decision map from a brief of up to 160 characters. kind diagram makes editable notes and connections from your own steps (up to 1200 characters, connect two steps with → or ->) or from a named source. The token owner owns the new private slate. With projectId it is made in that project or folder, where the project's people can open it. @scope slates:write */
|
|
1769
2624
|
function create(input: {
|
|
1770
2625
|
kind?: "map";
|
|
1771
2626
|
/** (1–160 characters) */
|
|
1772
2627
|
brief: string;
|
|
2628
|
+
/** Make the slate in this project or folder (you need to be an editor of it). (1–64 characters) */
|
|
2629
|
+
projectId?: string;
|
|
1773
2630
|
} | {
|
|
1774
2631
|
kind: "diagram";
|
|
1775
|
-
source?: "sign-in-outage" | "call-status" | "interview-notes"
|
|
2632
|
+
source?: "sign-in-outage" | "call-status" | "interview-notes";
|
|
1776
2633
|
/** Plain text, including multiple lines. Connect two named steps using → or ->. Use up to 24 distinct notes including source notes. (1–1200 characters) */
|
|
1777
2634
|
brief: string;
|
|
2635
|
+
/** Make the slate in this project or folder (you need to be an editor of it). (1–64 characters) */
|
|
2636
|
+
projectId?: string;
|
|
1778
2637
|
}): Promise<({
|
|
1779
2638
|
shareId: string;
|
|
1780
2639
|
url: string;
|
|
@@ -1789,7 +2648,7 @@ declare namespace slatebox.slates {
|
|
|
1789
2648
|
}
|
|
1790
2649
|
|
|
1791
2650
|
declare namespace slatebox.slates {
|
|
1792
|
-
/** Delete slate. Delete one of your own slates, with its sharing, comments and messages. Only the slate's owner can. This cannot be undone. @scope slates:delete @destructive */
|
|
2651
|
+
/** Delete slate. Delete one of your own slates, with its sharing, comments and messages. Only the slate's owner can, or the owner of the project it is in. This cannot be undone. @scope slates:delete @destructive */
|
|
1793
2652
|
function delete(input: {
|
|
1794
2653
|
/** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */
|
|
1795
2654
|
shareId: string;
|
|
@@ -1811,6 +2670,10 @@ declare namespace slatebox.slates {
|
|
|
1811
2670
|
styles?: boolean;
|
|
1812
2671
|
/** A Gantt chart's first day, YYYY-MM-DD (default today). */
|
|
1813
2672
|
start?: string;
|
|
2673
|
+
/** Write the canonical flowchart a repository keeps: notes, frames and lines sorted by id, note ids as names, a fixed direction, and a first-line header "%% slatebox:<shareId> rev:<n> hash:<h>" (the hash changes only when the diagram does, never when notes move). slates.importMermaid with sync reads it back. (default false) */
|
|
2674
|
+
canonical?: boolean;
|
|
2675
|
+
/** With canonical: the direction written. (default "LR") */
|
|
2676
|
+
direction?: "LR" | "TD" | "RL" | "BT";
|
|
1814
2677
|
}): Promise<{
|
|
1815
2678
|
shareId: string;
|
|
1816
2679
|
/** (at least 0) */
|
|
@@ -1826,6 +2689,11 @@ declare namespace slatebox.slates {
|
|
|
1826
2689
|
lines?: number;
|
|
1827
2690
|
subgraphs?: number;
|
|
1828
2691
|
warnings?: string[];
|
|
2692
|
+
canonical?: boolean;
|
|
2693
|
+
/** With canonical: the hash of the diagram (the header's). */
|
|
2694
|
+
hash?: string;
|
|
2695
|
+
/** With canonical: the text after the header. */
|
|
2696
|
+
body?: string;
|
|
1829
2697
|
/** The plain-text address of a public slate's Mermaid; null otherwise. */
|
|
1830
2698
|
publicUrl?: string | null;
|
|
1831
2699
|
[key: string]: unknown;
|
|
@@ -1858,14 +2726,22 @@ declare namespace slatebox.slates {
|
|
|
1858
2726
|
}
|
|
1859
2727
|
|
|
1860
2728
|
declare namespace slatebox.slates {
|
|
1861
|
-
/** Draw Mermaid. Draw a Mermaid flowchart, mind map or Gantt chart as real notes and lines, laid out in the diagram's direction (subgraphs and Gantt sections become frames). With shareId the diagram is added beside what that slate holds (it needs edit access; everyone on the slate sees it drawn); without, it becomes a new private slate of yours named name (or the diagram's title). Mermaid in a Markdown ```mermaid block is read too. Another kind of diagram is refused with 422 mermaid_unsupported; a mistake with 400 mermaid_invalid naming its line; a diagram past a slate's limits (1,000 notes counting frames, 5,000 lines, frames 50 deep, or a subgraph too big for one frame) with 422 mermaid_too_large. mode "preview" shows what would be drawn without saving. @scope slates:write @modes save|preview */
|
|
2729
|
+
/** Draw Mermaid. Draw a Mermaid flowchart, mind map or Gantt chart as real notes and lines, laid out in the diagram's direction (subgraphs and Gantt sections become frames). With shareId the diagram is added beside what that slate holds (it needs edit access; everyone on the slate sees it drawn); without, it becomes a new private slate of yours named name (or the diagram's title). Mermaid in a Markdown ```mermaid block is read too. Instead of mermaid, outline takes plain lines (one item per line, indented for children; bullets, numbers and # headings are read) and draws them as a mind map with each item's words exactly as written. Another kind of diagram is refused with 422 mermaid_unsupported; a mistake with 400 mermaid_invalid naming its line; a diagram past a slate's limits (1,000 notes counting frames, 5,000 lines, frames 50 deep, or a subgraph too big for one frame) with 422 mermaid_too_large. mode "preview" shows what would be drawn without saving. @scope slates:write @modes save|preview */
|
|
1862
2730
|
function importMermaid(input: {
|
|
1863
|
-
/** Mermaid source (flowchart/graph, mindmap or gantt), or Markdown holding a ```mermaid block. (1–100000 characters) */
|
|
1864
|
-
mermaid
|
|
2731
|
+
/** Mermaid source (flowchart/graph, mindmap or gantt), or Markdown holding a ```mermaid block. Give this or outline. (1–100000 characters) */
|
|
2732
|
+
mermaid?: string;
|
|
2733
|
+
/** Instead of mermaid: an outline, one item per line, indented (spaces or tabs) for children; leading bullets and numbers are dropped and # headings nest by level. Drawn as a mind map (up to 20,000 characters and 1,000 items), each item's words kept exactly as written. Several items at the top go around a central idea named by name (or "Outline"). (1–100000 characters) */
|
|
2734
|
+
outline?: string;
|
|
1865
2735
|
/** Add to this slate. Leave out to make a new private slate. (1–80 characters) */
|
|
1866
2736
|
shareId?: string;
|
|
1867
2737
|
/** The new slate's name (without shareId). (1–200 characters) */
|
|
1868
2738
|
name?: string;
|
|
2739
|
+
/** Make the new slate in this project or folder (without shareId; you need to be an editor of it). (1–64 characters) */
|
|
2740
|
+
projectId?: string;
|
|
2741
|
+
/** With shareId: read a flowchart back onto the slate it came from (canonical export, format names = note ids) instead of drawing it beside: new names are drawn, changed text and shapes updated, lines connected, disconnected or relabeled; nothing is moved. Notes and lines named in base that the diagram drops are deleted; notes added on the slate since are never touched. */
|
|
2742
|
+
sync?: boolean;
|
|
2743
|
+
/** With sync: the diagram as last synced (what the slate and the file last agreed on). Only what it names may be deleted. (1–100000 characters) */
|
|
2744
|
+
base?: string;
|
|
1869
2745
|
/** preview returns what would change and saves nothing. (default "save") */
|
|
1870
2746
|
mode?: "save" | "preview";
|
|
1871
2747
|
}): Promise<({
|
|
@@ -1881,6 +2757,14 @@ declare namespace slatebox.slates {
|
|
|
1881
2757
|
lines: number;
|
|
1882
2758
|
/** The ids of the notes drawn (frames first). */
|
|
1883
2759
|
created?: string[];
|
|
2760
|
+
/** With sync: the notes and lines changed. */
|
|
2761
|
+
updated?: string[];
|
|
2762
|
+
/** With sync: the notes removed. */
|
|
2763
|
+
deleted?: string[];
|
|
2764
|
+
/** With sync: the lines removed. */
|
|
2765
|
+
disconnected?: string[];
|
|
2766
|
+
/** With sync: notes a person changed that the diagram would have changed, left as they are. */
|
|
2767
|
+
kept?: string[];
|
|
1884
2768
|
warnings?: string[];
|
|
1885
2769
|
message: string;
|
|
1886
2770
|
[key: string]: unknown;
|
|
@@ -1897,21 +2781,29 @@ declare namespace slatebox.slates {
|
|
|
1897
2781
|
}
|
|
1898
2782
|
|
|
1899
2783
|
declare namespace slatebox.slates {
|
|
1900
|
-
/** List slates. List your slates, newest first, as your Slates page shows them: your own (scope "mine"),
|
|
2784
|
+
/** List slates. List your slates, the latest edited first (sort "updated"), or the newest made first (sort "created"), as your Slates page shows them: your own (scope "mine", wherever they are), your team's that you may open (scope "team": its public slates, and its private slates shared with you, or all of them for a team admin), or a project's (scope "project" with projectId: every slate in it and its folders, whoever owns it). Filter by name with q. @scope slates:read */
|
|
1901
2785
|
function list(input: {
|
|
1902
2786
|
/** (default "mine") */
|
|
1903
|
-
scope?: "mine" | "team";
|
|
2787
|
+
scope?: "mine" | "team" | "project";
|
|
2788
|
+
/** With scope "project": the project or folder. (1–64 characters) */
|
|
2789
|
+
projectId?: string;
|
|
1904
2790
|
/** Part of the slate name. (1–200 characters) */
|
|
1905
2791
|
q?: string;
|
|
1906
2792
|
/** (1 to 100, default 25) */
|
|
1907
2793
|
limit?: number;
|
|
2794
|
+
/** updated: the latest edited first; created: the newest slate first (slates whose creation time is not known come last). (default "updated") */
|
|
2795
|
+
sort?: "updated" | "created";
|
|
1908
2796
|
}): Promise<{
|
|
1909
2797
|
slates: Array<{
|
|
1910
2798
|
shareId: string;
|
|
1911
2799
|
name: string;
|
|
1912
2800
|
description?: string;
|
|
1913
2801
|
visibility: "private" | "unlisted" | "public";
|
|
1914
|
-
owner: "you" | "team";
|
|
2802
|
+
owner: "you" | "team" | "someone";
|
|
2803
|
+
/** The project or folder the slate is in. */
|
|
2804
|
+
projectId?: string;
|
|
2805
|
+
/** When the slate was made (null when Slatebox does not know). */
|
|
2806
|
+
created?: string | null;
|
|
1915
2807
|
updated?: string | null;
|
|
1916
2808
|
url: string;
|
|
1917
2809
|
[key: string]: unknown;
|
|
@@ -1920,6 +2812,25 @@ declare namespace slatebox.slates {
|
|
|
1920
2812
|
}>;
|
|
1921
2813
|
}
|
|
1922
2814
|
|
|
2815
|
+
declare namespace slatebox.slates {
|
|
2816
|
+
/** Watch a slate live. A read-only seat in a slate's live room: the relay address (wsUrl), the room and a room token that lasts 15 minutes (exp, unix seconds). Join the relay with them to see edits as people make them; ask again before exp for a fresh token. The role is always read. A public slate answers without a token. 503 unavailable when this server has no live relay. @scope slates:read */
|
|
2817
|
+
function live(input: {
|
|
2818
|
+
/** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */
|
|
2819
|
+
shareId: string;
|
|
2820
|
+
}): Promise<{
|
|
2821
|
+
/** The relay's WebSocket address. */
|
|
2822
|
+
wsUrl: string;
|
|
2823
|
+
/** The slate's room on the relay. */
|
|
2824
|
+
room: string;
|
|
2825
|
+
/** The room token: a credential, never log it. */
|
|
2826
|
+
token: string;
|
|
2827
|
+
/** When the token lapses, unix seconds. */
|
|
2828
|
+
exp: number;
|
|
2829
|
+
role: "read";
|
|
2830
|
+
[key: string]: unknown;
|
|
2831
|
+
}>;
|
|
2832
|
+
}
|
|
2833
|
+
|
|
1923
2834
|
declare namespace slatebox.slates {
|
|
1924
2835
|
/** Redo. Makes again the edit this caller last took back with slates.undo, if the caller has saved no edit on this slate since (a new edit clears what can be redone). Each part goes back to how the edit left it, unless someone else changed it since: that part stays as they left it and is listed in left[]. Saved as an edit, and refused for an agent, as slates.undo is. 409 nothing_to_redo when there is nothing of the caller's to redo. @scope slates:write @destructive */
|
|
1925
2836
|
function redo(input: {
|
|
@@ -1993,6 +2904,36 @@ declare namespace slatebox.slates {
|
|
|
1993
2904
|
}) & { mode: "save" }>;
|
|
1994
2905
|
}
|
|
1995
2906
|
|
|
2907
|
+
declare namespace slatebox.slates {
|
|
2908
|
+
/** Show. Show a slate you can open to the person: its name, address (url), revision, note count and whether you may edit it, the picture the view draws (picture: notes and lines), and a view token (view.token, read-only, this slate only, 15 minutes) that the view refreshes the picture with at view.url. On an MCP host that draws views, the slate appears in the conversation; the token and the picture go to the view only. Ask again for a fresh token. @scope slates:read */
|
|
2909
|
+
function view(input: {
|
|
2910
|
+
/** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */
|
|
2911
|
+
shareId: string;
|
|
2912
|
+
}): Promise<{
|
|
2913
|
+
shareId: string;
|
|
2914
|
+
name: string;
|
|
2915
|
+
/** The address you open the slate at. */
|
|
2916
|
+
url: string;
|
|
2917
|
+
/** (at least 0) */
|
|
2918
|
+
revision: number;
|
|
2919
|
+
/** (at least 0) */
|
|
2920
|
+
nodeCount: number;
|
|
2921
|
+
canEdit: boolean;
|
|
2922
|
+
view: {
|
|
2923
|
+
/** The view token: a credential, never log it or show it. */
|
|
2924
|
+
token: string;
|
|
2925
|
+
/** When the token lapses, ms since the epoch. */
|
|
2926
|
+
expiresAt: number;
|
|
2927
|
+
/** GET it with Authorization: Bearer <token> for the picture as it is now. */
|
|
2928
|
+
url: string;
|
|
2929
|
+
[key: string]: unknown;
|
|
2930
|
+
};
|
|
2931
|
+
/** What the view draws: name, background, nodes [{id, x, y, w, h, text, shape, fill, stroke, color, ...}], lines [{from, to, label, ...}], truncated. */
|
|
2932
|
+
picture: Record<string, unknown>;
|
|
2933
|
+
[key: string]: unknown;
|
|
2934
|
+
}>;
|
|
2935
|
+
}
|
|
2936
|
+
|
|
1996
2937
|
declare namespace slatebox.suggestions {
|
|
1997
2938
|
/** Keep/discard/undo. Decide what an agent's work on a slate becomes, as the canvas does. keep or discard: what it suggested, as Keep and Discard on each ghost: name the action (actionId, from your edit or slates.get include=suggestions), optionally some of its items (itemIds); Keep all on an agent's chip decides each of its actions. Keeping saves them as one change (a line brings the new notes at its ends); an item whose note is gone is refused and says why. Discarding saves nothing. undo: one action (actionId) that was kept or saved directly, as Undo in the agent's activity list: only that action, and only what nobody changed since (left[] says what stayed and why), so it never undoes another agent's work or a person's. Needs the edit right on the slate. Only people keep: an agent never keeps suggestions, and undoes only its own work. An invited agent's action card (a waiting note that stands for a change outside Slatebox, such as a new Linear issue) is approved by keeping that note on its own (itemIds) and declined by discarding it; Keep all never approves one, and held[] says why a card waits. @scope slates:write @destructive */
|
|
1998
2939
|
function decide(input: {
|
|
@@ -2214,7 +3155,7 @@ interface AddComponentPlan {
|
|
|
2214
3155
|
operations: Array<{
|
|
2215
3156
|
kind: "add_component";
|
|
2216
3157
|
/** The library entry to add (components.list ids). Or name a shared library item with library instead. */
|
|
2217
|
-
component?: "now-next-later" | "pros-cons" | "must-should-could" | "decision-path" | "retro" | "triage" | "team-board" | "launch-plan" | "customer-go-live" | "hiring-plan" | "sort-evidence" | "discovery-tree" | "break-down-problem" | "incident-review" | "impact-effort" | "reorg-sandbox" | "goals-owners" | "sales-pipeline" | "budget";
|
|
3158
|
+
component?: "now-next-later" | "pros-cons" | "must-should-could" | "decision-path" | "retro" | "triage" | "team-board" | "launch-plan" | "customer-go-live" | "hiring-plan" | "sort-evidence" | "discovery-tree" | "break-down-problem" | "incident-review" | "impact-effort" | "reorg-sandbox" | "goals-owners" | "printable-page" | "sales-pipeline" | "budget";
|
|
2218
3159
|
/** A smart component from the shared library (in place of component). */
|
|
2219
3160
|
library?: {
|
|
2220
3161
|
/** A smart component from library.list (kind component), or one of your own. (1–120 characters) */
|
|
@@ -2233,10 +3174,11 @@ interface AddComponentPlan {
|
|
|
2233
3174
|
interface CanvasPlan {
|
|
2234
3175
|
/** A concise, natural response describing exactly what will change. Do not claim an operation that is absent from operations. */
|
|
2235
3176
|
message: string;
|
|
2236
|
-
/** (1–50 items) */
|
|
3177
|
+
/** The operations, applied in order. Each operation's kind decides which fields it may carry; any other field is refused. Fields by kind: add_nodes: count, shape, preset, text, ids, x, y, width, height, placement, style, media, photo; update_nodes: target, changes; delete_nodes: target; duplicate_nodes: target, offset, ids; connect_nodes: from, to, ids, style; disconnect_nodes: from, to, connectionIds; update_connections: from, to, connectionIds, changes; arrange_nodes: target, layout, gap; update_slate: changes. add_nodes requires count (1 to 20): one add_nodes may add several notes (count 3, ids ["a","b","c"]) or one (count 1, ids ["a"]). connect_nodes names its new connectors with ids (one per pair); connectionIds is only for disconnect_nodes and update_connections. Examples: {"kind":"add_nodes","count":1,"ids":["title"],"shape":"rectangle","text":"Title","x":0,"y":0,"width":240,"height":80}; {"kind":"add_nodes","count":2,"ids":["a","b"],"shape":"rectangle","text":"Step","placement":{"relativeTo":"title","direction":"below","arrangement":"row"}}; {"kind":"connect_nodes","from":{"ids":["title"]},"to":{"ids":["a"]},"ids":["title-a"]}; {"kind":"update_nodes","target":{"ids":["a"]},"changes":{"text":"First step"}}. (1–50 items) */
|
|
2237
3178
|
operations: Array<{
|
|
3179
|
+
/** Which operation this is; it decides the fields the operation may carry. */
|
|
2238
3180
|
kind: "add_nodes" | "update_nodes" | "delete_nodes" | "duplicate_nodes" | "connect_nodes" | "disconnect_nodes" | "update_connections" | "arrange_nodes" | "update_slate";
|
|
2239
|
-
/** (1 to 20) */
|
|
3181
|
+
/** add_nodes only, and required there: how many notes it adds, 1 to 20. With ids, count is normally ids.length (never fewer). Other kinds take no count. (1 to 20) */
|
|
2240
3182
|
count?: number;
|
|
2241
3183
|
shape?: ("rectangle" | "roundedrectangle" | "ellipse" | "circle" | "star" | "triangle" | "pentagon" | "hexagon" | "octagon" | "trapezium" | "parallelogram" | "rarrow" | "larrow" | "diamond" | "stickynote") | {
|
|
2242
3184
|
/** (1–60 characters) */
|
|
@@ -2266,6 +3208,7 @@ interface CanvasPlan {
|
|
|
2266
3208
|
preset?: "text" | "sticky";
|
|
2267
3209
|
/** add_nodes and duplicate_nodes: new note ids (1 to 64 letters, digits, _ or -), which later operations in the plan may name. connect_nodes: ids for the new connectors, one per pair. An id already in use is refused. */
|
|
2268
3210
|
ids?: string[];
|
|
3211
|
+
/** disconnect_nodes and update_connections only: ids of connectors already on the slate. connect_nodes names its new connectors with ids, never connectionIds. */
|
|
2269
3212
|
connectionIds?: string[];
|
|
2270
3213
|
/** (0 to 2000) */
|
|
2271
3214
|
gap?: number;
|
|
@@ -2300,6 +3243,17 @@ interface CanvasPlan {
|
|
|
2300
3243
|
/** (1 to 10000) */
|
|
2301
3244
|
posterHeight?: number;
|
|
2302
3245
|
};
|
|
3246
|
+
/** add_nodes, count 1, no shape, preset, text or media: a photo note, a picture the host stored, drawn as the whole note at 320 on its longer side. Hosts add photos through their own add-photo action, which turns the picture upright, shrinks it and removes its location data. */
|
|
3247
|
+
photo?: {
|
|
3248
|
+
/** The stored picture: an https address, or a path in this app's file store (/files/... or /sbimages/...). (at most 2000 characters) */
|
|
3249
|
+
url: string;
|
|
3250
|
+
/** The picture's width in pixels. (1 to 10000) */
|
|
3251
|
+
width: number;
|
|
3252
|
+
/** The picture's height in pixels. (1 to 10000) */
|
|
3253
|
+
height: number;
|
|
3254
|
+
/** What the photo shows, for a screen reader. (at most 300 characters) */
|
|
3255
|
+
alt?: string;
|
|
3256
|
+
};
|
|
2303
3257
|
/** add_nodes: note keys for the new notes. connect_nodes: connector keys for the new connectors. */
|
|
2304
3258
|
style?: {
|
|
2305
3259
|
/** (-360 to 360) */
|
|
@@ -2317,7 +3271,7 @@ interface CanvasPlan {
|
|
|
2317
3271
|
borderStyle?: "solid" | "dashed" | "dotted" | "combo";
|
|
2318
3272
|
/** (0 to 1) */
|
|
2319
3273
|
opacity?: number;
|
|
2320
|
-
fontFamily?: "Manrope" | "Arial" | "Times New Roman" | "Georgia" | "Courier Prime" | "Indie Flower" | "Abril Fatface" | "Bangers" | "Caveat" | "EB Garamond" | "Fredoka One" | "Graduate" | "Gravitas One" | "IBM Plex Mono" | "IBM Plex Sans" | "IBM Plex Serif" | "Lemon" | "Lora" | "Nixie One" | "Noto Sans" | "Open Sans" | "Poppins" | "PT Sans" | "PT Sans Narrow" | "PT Serif" | "Permanent Marker" | "Rammetto One" | "Roboto" | "Roboto Condensed" | "Roboto Mono" | "Roboto Slab" | "Rubik" | "Titan One" | "Urbanist";
|
|
3274
|
+
fontFamily?: "Manrope" | "Arial" | "Times New Roman" | "Georgia" | "Courier Prime" | "Indie Flower" | "Abril Fatface" | "Bangers" | "Caveat" | "EB Garamond" | "Fredoka One" | "Graduate" | "Gravitas One" | "IBM Plex Mono" | "IBM Plex Sans" | "IBM Plex Serif" | "Lemon" | "Lora" | "Nixie One" | "Noto Sans" | "Open Sans" | "Poppins" | "PT Sans" | "PT Sans Narrow" | "PT Serif" | "Permanent Marker" | "Rammetto One" | "Roboto" | "Roboto Condensed" | "Roboto Mono" | "Roboto Slab" | "Rubik" | "Titan One" | "Urbanist" | "Anton" | "Space Grotesk" | "Fraunces" | "Inter";
|
|
2321
3275
|
/** (1 to 500) */
|
|
2322
3276
|
fontSize?: number;
|
|
2323
3277
|
textXAlign?: "left" | "middle" | "right";
|
|
@@ -2402,7 +3356,7 @@ interface CanvasPlan {
|
|
|
2402
3356
|
};
|
|
2403
3357
|
/** arrange_nodes: row, column, grid, circle; align-* and distribute-* as the canvas aligns by what you see; tidy moves notes apart until none overlaps; tree lays connected notes out in layers under their root. */
|
|
2404
3358
|
layout?: "row" | "column" | "grid" | "circle" | "align-left" | "align-center" | "align-right" | "align-top" | "align-middle" | "align-bottom" | "distribute-horizontal" | "distribute-vertical" | "tidy" | "tree";
|
|
2405
|
-
/** update_nodes: note keys (and order: front or back). update_connections: connector keys. update_slate: name, description, background, mindMapMode, autoResizeNodesBasedOnText, showGrid, snapToObjects, defaultLineColor. */
|
|
3359
|
+
/** update_nodes: note keys (and order: front or back). update_connections: connector keys. update_slate: name, description, background, style, mindMapMode, autoResizeNodesBasedOnText, showGrid, snapToObjects, defaultLineColor. */
|
|
2406
3360
|
changes?: {
|
|
2407
3361
|
/** The note's text. (at most 10000 characters) */
|
|
2408
3362
|
text?: string;
|
|
@@ -2446,7 +3400,7 @@ interface CanvasPlan {
|
|
|
2446
3400
|
/** Note opacity from 0 to 1. (0 to 1) */
|
|
2447
3401
|
opacity?: number;
|
|
2448
3402
|
/** A font this instance offers. */
|
|
2449
|
-
fontFamily?: "Manrope" | "Arial" | "Times New Roman" | "Georgia" | "Courier Prime" | "Indie Flower" | "Abril Fatface" | "Bangers" | "Caveat" | "EB Garamond" | "Fredoka One" | "Graduate" | "Gravitas One" | "IBM Plex Mono" | "IBM Plex Sans" | "IBM Plex Serif" | "Lemon" | "Lora" | "Nixie One" | "Noto Sans" | "Open Sans" | "Poppins" | "PT Sans" | "PT Sans Narrow" | "PT Serif" | "Permanent Marker" | "Rammetto One" | "Roboto" | "Roboto Condensed" | "Roboto Mono" | "Roboto Slab" | "Rubik" | "Titan One" | "Urbanist";
|
|
3403
|
+
fontFamily?: "Manrope" | "Arial" | "Times New Roman" | "Georgia" | "Courier Prime" | "Indie Flower" | "Abril Fatface" | "Bangers" | "Caveat" | "EB Garamond" | "Fredoka One" | "Graduate" | "Gravitas One" | "IBM Plex Mono" | "IBM Plex Sans" | "IBM Plex Serif" | "Lemon" | "Lora" | "Nixie One" | "Noto Sans" | "Open Sans" | "Poppins" | "PT Sans" | "PT Sans Narrow" | "PT Serif" | "Permanent Marker" | "Rammetto One" | "Roboto" | "Roboto Condensed" | "Roboto Mono" | "Roboto Slab" | "Rubik" | "Titan One" | "Urbanist" | "Anton" | "Space Grotesk" | "Fraunces" | "Inter";
|
|
2450
3404
|
/** Font size. (1 to 500) */
|
|
2451
3405
|
fontSize?: number;
|
|
2452
3406
|
/** Horizontal text alignment. */
|
|
@@ -2511,11 +3465,55 @@ interface CanvasPlan {
|
|
|
2511
3465
|
color: string;
|
|
2512
3466
|
gradient?: {
|
|
2513
3467
|
type: "linear" | "radial";
|
|
2514
|
-
/** (2–8 items) */
|
|
3468
|
+
/** Each item: A CSS colour, such as #336699. (2–8 items) */
|
|
2515
3469
|
colors: string[];
|
|
2516
3470
|
direction?: "horizontal" | "vertical" | "diagonal";
|
|
3471
|
+
/** Degrees, as CSS: 0 runs bottom to top, 90 left to right. Linear only. (0 to 359) */
|
|
3472
|
+
angle?: number;
|
|
3473
|
+
};
|
|
3474
|
+
picture?: {
|
|
3475
|
+
/** An https address, or a file this app stored (/files/...). (at most 2000 characters) */
|
|
3476
|
+
url: string;
|
|
3477
|
+
/** cover fills the canvas, contain shows the whole picture, repeat tiles it. */
|
|
3478
|
+
fit?: "cover" | "contain" | "repeat";
|
|
3479
|
+
/** How much of the color is laid over the picture, so notes stay readable. (0 to 0.8) */
|
|
3480
|
+
dim?: number;
|
|
2517
3481
|
};
|
|
2518
3482
|
};
|
|
3483
|
+
style?: {
|
|
3484
|
+
id: string;
|
|
3485
|
+
/** (1 to 1000) */
|
|
3486
|
+
v?: number;
|
|
3487
|
+
overrides?: {
|
|
3488
|
+
/** A CSS colour, such as #336699. (at most 64 characters) */
|
|
3489
|
+
bg?: string;
|
|
3490
|
+
/** (1–12 items) */
|
|
3491
|
+
palette?: string[];
|
|
3492
|
+
fonts?: {
|
|
3493
|
+
display?: string;
|
|
3494
|
+
body?: string;
|
|
3495
|
+
};
|
|
3496
|
+
/** The background beside bg: {gradient} or {picture}, as background takes them. */
|
|
3497
|
+
background?: {
|
|
3498
|
+
gradient?: {
|
|
3499
|
+
type: "linear" | "radial";
|
|
3500
|
+
/** Each item: A CSS colour, such as #336699. (2–8 items) */
|
|
3501
|
+
colors: string[];
|
|
3502
|
+
direction?: "horizontal" | "vertical" | "diagonal";
|
|
3503
|
+
/** Degrees, as CSS: 0 runs bottom to top, 90 left to right. Linear only. (0 to 359) */
|
|
3504
|
+
angle?: number;
|
|
3505
|
+
};
|
|
3506
|
+
picture?: {
|
|
3507
|
+
/** An https address, or a file this app stored (/files/...). (at most 2000 characters) */
|
|
3508
|
+
url: string;
|
|
3509
|
+
/** cover fills the canvas, contain shows the whole picture, repeat tiles it. */
|
|
3510
|
+
fit?: "cover" | "contain" | "repeat";
|
|
3511
|
+
/** How much of the color is laid over the picture, so notes stay readable. (0 to 0.8) */
|
|
3512
|
+
dim?: number;
|
|
3513
|
+
};
|
|
3514
|
+
};
|
|
3515
|
+
};
|
|
3516
|
+
} | null;
|
|
2519
3517
|
mindMapMode?: boolean;
|
|
2520
3518
|
autoResizeNodesBasedOnText?: boolean;
|
|
2521
3519
|
showGrid?: boolean;
|
|
@@ -2630,6 +3628,7 @@ interface SlateRead {
|
|
|
2630
3628
|
actions?: Array<Record<string, unknown>>;
|
|
2631
3629
|
[key: string]: unknown;
|
|
2632
3630
|
};
|
|
3631
|
+
/** Each item: Every key a write sets, read back as the engine loads it, unless fields chose some. */
|
|
2633
3632
|
nodes: Array<{
|
|
2634
3633
|
id: string;
|
|
2635
3634
|
/** The note's text. */
|
|
@@ -2764,7 +3763,7 @@ interface SlateRead {
|
|
|
2764
3763
|
|
|
2765
3764
|
interface Workshop {
|
|
2766
3765
|
title: string;
|
|
2767
|
-
kind: "lanes" | "release-plan" | "customer-interviews" | "experiment-budget" | "map" | "launch-plan" | "pipeline" | "budget" | "hiring-plan" | "nest";
|
|
3766
|
+
kind: "lanes" | "release-plan" | "customer-interviews" | "experiment-budget" | "map" | "launch-plan" | "pipeline" | "budget" | "hiring-plan" | "nest" | "grid";
|
|
2768
3767
|
/** Launch plans: launch day, and the day the last task ends (name: what the plan calls its line, such as go-live). */
|
|
2769
3768
|
launch?: {
|
|
2770
3769
|
day: number;
|
|
@@ -3033,6 +4032,21 @@ interface WorkshopEditsPlan {
|
|
|
3033
4032
|
role?: string;
|
|
3034
4033
|
/** Nest board: who said it. (1–60 characters) */
|
|
3035
4034
|
source?: string;
|
|
4035
|
+
/** The kind of tile: heading, text, image, question, answer-lines, word-bank, diagram, qr, panel, speech, term, sticker. */
|
|
4036
|
+
type?: "heading" | "text" | "image" | "question" | "answer-lines" | "word-bank" | "diagram" | "qr" | "panel" | "speech" | "term" | "sticker";
|
|
4037
|
+
/** Its words, which are all a page prints of it: a heading’s title, a text block’s text, a question’s question, a term and its meaning on two lines, how many answer lines. Line breaks are kept. (1–600 characters) */
|
|
4038
|
+
body?: string;
|
|
4039
|
+
/** Grid sheet: the picture a note brought. */
|
|
4040
|
+
image?: {
|
|
4041
|
+
/** (1–2048 characters) */
|
|
4042
|
+
src: string;
|
|
4043
|
+
/** (1–240 characters) */
|
|
4044
|
+
alt: string;
|
|
4045
|
+
} | null;
|
|
4046
|
+
/** Grid sheet: its row, from 1. (1 to 12) */
|
|
4047
|
+
row?: number;
|
|
4048
|
+
/** Grid sheet: its column, from 1. (1 to 8) */
|
|
4049
|
+
col?: number;
|
|
3036
4050
|
} | {
|
|
3037
4051
|
kind: "remove_card";
|
|
3038
4052
|
/** The card or token. */
|
|
@@ -3379,7 +4393,7 @@ interface WorkshopEditsPlan {
|
|
|
3379
4393
|
kind: "add_rule";
|
|
3380
4394
|
/** The rule, lanes by id or name. */
|
|
3381
4395
|
rule: {
|
|
3382
|
-
kind: "capacity" | "path" | "gate" | "bin" | "deadline" | "overlap" | "snap" | "workdays" | "blackout" | "cascade" | "locked" | "nests" | "children" | "depth" | "rank" | "emptyDrop" | "quadrant" | "parent" | "contains" | "sameOwnerAs";
|
|
4396
|
+
kind: "capacity" | "path" | "gate" | "bin" | "deadline" | "overlap" | "snap" | "workdays" | "blackout" | "cascade" | "locked" | "nests" | "children" | "depth" | "rank" | "emptyDrop" | "quadrant" | "parent" | "contains" | "sameOwnerAs" | "tileTypes" | "tileMax" | "tileNeeds" | "tileSpan";
|
|
3383
4397
|
severity?: "refuse" | "warn";
|
|
3384
4398
|
where?: string | {
|
|
3385
4399
|
/** (1–64 characters) */
|
|
@@ -3436,6 +4450,14 @@ interface WorkshopEditsPlan {
|
|
|
3436
4450
|
/** (1 to 12) */
|
|
3437
4451
|
atLeast?: number;
|
|
3438
4452
|
mode?: "warn" | "ask" | "carry";
|
|
4453
|
+
/** (1–12 items) */
|
|
4454
|
+
types?: Array<"heading" | "text" | "image" | "question" | "answer-lines" | "word-bank" | "diagram" | "qr" | "panel" | "speech" | "term" | "sticker">;
|
|
4455
|
+
type?: "heading" | "text" | "image" | "question" | "answer-lines" | "word-bank" | "diagram" | "qr" | "panel" | "speech" | "term" | "sticker";
|
|
4456
|
+
per?: "page" | "sheet";
|
|
4457
|
+
/** (1 to 12) */
|
|
4458
|
+
rows?: number;
|
|
4459
|
+
/** (1 to 8) */
|
|
4460
|
+
cols?: number;
|
|
3439
4461
|
};
|
|
3440
4462
|
} | {
|
|
3441
4463
|
kind: "set_rule";
|
|
@@ -3469,6 +4491,16 @@ interface WorkshopEditsPlan {
|
|
|
3469
4491
|
drop?: "new-pile" | "unsorted";
|
|
3470
4492
|
/** Goals & owners: what a change of team does to the cards under a card. */
|
|
3471
4493
|
mode?: "warn" | "ask" | "carry";
|
|
4494
|
+
/** Grid sheet: the kinds of tile the sheet uses. (1–12 items) */
|
|
4495
|
+
types?: string[];
|
|
4496
|
+
/** Grid sheet: a limit per page or for the whole sheet. */
|
|
4497
|
+
per?: "page" | "sheet";
|
|
4498
|
+
/** Grid sheet: how many of a kind every page needs. (1 to 12) */
|
|
4499
|
+
atLeast?: number;
|
|
4500
|
+
/** Grid sheet: rows a kind may span. (1 to 12) */
|
|
4501
|
+
rows?: number;
|
|
4502
|
+
/** Grid sheet: columns a kind may span. (1 to 8) */
|
|
4503
|
+
cols?: number;
|
|
3472
4504
|
} | {
|
|
3473
4505
|
kind: "remove_rule";
|
|
3474
4506
|
/** The rule id. (1–64 characters) */
|
|
@@ -3635,6 +4667,115 @@ interface WorkshopEditsPlan {
|
|
|
3635
4667
|
/** (1–64 characters) */
|
|
3636
4668
|
id: string;
|
|
3637
4669
|
}>;
|
|
4670
|
+
} | {
|
|
4671
|
+
kind: "set_page";
|
|
4672
|
+
/** letter or a4. */
|
|
4673
|
+
size?: "letter" | "a4";
|
|
4674
|
+
/** portrait or landscape. */
|
|
4675
|
+
orientation?: "portrait" | "landscape";
|
|
4676
|
+
/** Inches, in eighths: 0.25 to 1. (0.25 to 1) */
|
|
4677
|
+
margin?: number;
|
|
4678
|
+
} | {
|
|
4679
|
+
kind: "set_grid";
|
|
4680
|
+
/** Rows of cells. (1 to 12) */
|
|
4681
|
+
rows?: number;
|
|
4682
|
+
/** Columns of cells. (1 to 8) */
|
|
4683
|
+
cols?: number;
|
|
4684
|
+
/** The gap between cells, inches in sixteenths. (0 to 0.5) */
|
|
4685
|
+
gutter?: number;
|
|
4686
|
+
} | {
|
|
4687
|
+
kind: "add_tile";
|
|
4688
|
+
/** The kind of tile: heading, text, image, question, answer-lines, word-bank, diagram, qr, panel, speech, term, sticker. */
|
|
4689
|
+
type: "heading" | "text" | "image" | "question" | "answer-lines" | "word-bank" | "diagram" | "qr" | "panel" | "speech" | "term" | "sticker";
|
|
4690
|
+
/** What the tile is called in the tray and in chat (“Adding fractions”). It prints only on a tile with no words of its own. Left out, its kind: “Heading”. (1–80 characters) */
|
|
4691
|
+
label?: string;
|
|
4692
|
+
/** Its words, which are all a page prints of it: a heading’s title, a text block’s text, a question’s question, a term and its meaning on two lines, how many answer lines. Line breaks are kept. (1–600 characters) */
|
|
4693
|
+
body?: string;
|
|
4694
|
+
/** A word bank’s words, 3 to 24. (3–24 items) */
|
|
4695
|
+
words?: string[];
|
|
4696
|
+
/** A picture it shows (src and alt). Left out, an image tile is an empty frame that prints its words. */
|
|
4697
|
+
image?: {
|
|
4698
|
+
/** (1–2048 characters) */
|
|
4699
|
+
src: string;
|
|
4700
|
+
/** (1–240 characters) */
|
|
4701
|
+
alt: string;
|
|
4702
|
+
} | null;
|
|
4703
|
+
/** What the picture shows, for an empty frame. (1–120 characters) */
|
|
4704
|
+
alt?: string;
|
|
4705
|
+
/** A QR code’s web address (http or https). (1–2048 characters) */
|
|
4706
|
+
link?: string;
|
|
4707
|
+
/** True for a stamp that stays in the tray. */
|
|
4708
|
+
stamp?: boolean;
|
|
4709
|
+
/** The page it goes on. */
|
|
4710
|
+
page?: string | {
|
|
4711
|
+
/** (1–64 characters) */
|
|
4712
|
+
id: string;
|
|
4713
|
+
};
|
|
4714
|
+
/** Its row, from 1. (1 to 12) */
|
|
4715
|
+
row?: number;
|
|
4716
|
+
/** Its column, from 1. (1 to 8) */
|
|
4717
|
+
col?: number;
|
|
4718
|
+
/** Rows it spans. (1 to 12) */
|
|
4719
|
+
rows?: number;
|
|
4720
|
+
/** Columns it spans. (1 to 8) */
|
|
4721
|
+
cols?: number;
|
|
4722
|
+
} | {
|
|
4723
|
+
kind: "place_tile";
|
|
4724
|
+
/** The tile, or a stamp in the tray. */
|
|
4725
|
+
card: string | {
|
|
4726
|
+
/** (1–64 characters) */
|
|
4727
|
+
id: string;
|
|
4728
|
+
};
|
|
4729
|
+
/** The page, or the tray to take it off the page. */
|
|
4730
|
+
page: string | {
|
|
4731
|
+
/** (1–64 characters) */
|
|
4732
|
+
id: string;
|
|
4733
|
+
};
|
|
4734
|
+
/** Its row, from 1. (1 to 12) */
|
|
4735
|
+
row: number;
|
|
4736
|
+
/** Its column, from 1. (1 to 8) */
|
|
4737
|
+
col: number;
|
|
4738
|
+
/** Rows it spans. (1 to 12) */
|
|
4739
|
+
rows?: number;
|
|
4740
|
+
/** Columns it spans. (1 to 8) */
|
|
4741
|
+
cols?: number;
|
|
4742
|
+
/** True to place it anyway when a limit or the sheet’s tiles refuse it, once the person agreed. Never past a page’s edge or over another tile. */
|
|
4743
|
+
override?: boolean;
|
|
4744
|
+
} | {
|
|
4745
|
+
kind: "set_tile";
|
|
4746
|
+
/** The tile. */
|
|
4747
|
+
card: string | {
|
|
4748
|
+
/** (1–64 characters) */
|
|
4749
|
+
id: string;
|
|
4750
|
+
};
|
|
4751
|
+
/** Its words, which are all a page prints of it: a heading’s title, a text block’s text, a question’s question, a term and its meaning on two lines, how many answer lines. Line breaks are kept. (1–600 characters) */
|
|
4752
|
+
body?: string;
|
|
4753
|
+
/** A word bank’s words, 3 to 24. (3–24 items) */
|
|
4754
|
+
words?: string[];
|
|
4755
|
+
/** A picture (src and alt), or null to take it away. */
|
|
4756
|
+
image?: {
|
|
4757
|
+
/** (1–2048 characters) */
|
|
4758
|
+
src: string;
|
|
4759
|
+
/** (1–240 characters) */
|
|
4760
|
+
alt: string;
|
|
4761
|
+
} | null;
|
|
4762
|
+
/** What the picture shows, for an empty frame. (1–120 characters) */
|
|
4763
|
+
alt?: string;
|
|
4764
|
+
/** A QR code’s web address; empty takes it away. (0–2048 characters) */
|
|
4765
|
+
link?: string;
|
|
4766
|
+
/** The kind of tile: heading, text, image, question, answer-lines, word-bank, diagram, qr, panel, speech, term, sticker. */
|
|
4767
|
+
type?: "heading" | "text" | "image" | "question" | "answer-lines" | "word-bank" | "diagram" | "qr" | "panel" | "speech" | "term" | "sticker";
|
|
4768
|
+
} | {
|
|
4769
|
+
kind: "add_page";
|
|
4770
|
+
/** The page to copy. */
|
|
4771
|
+
copyOf?: string | {
|
|
4772
|
+
/** (1–64 characters) */
|
|
4773
|
+
id: string;
|
|
4774
|
+
};
|
|
4775
|
+
/** True to shuffle the copied terms among their cells. */
|
|
4776
|
+
shuffle?: boolean;
|
|
4777
|
+
/** Its name. Left out, “Page N”. (1–80 characters) */
|
|
4778
|
+
label?: string;
|
|
3638
4779
|
}>;
|
|
3639
4780
|
/** (at least 0) */
|
|
3640
4781
|
expectedRevision: number;
|
|
@@ -3647,7 +4788,7 @@ interface WorkshopEditsPlan {
|
|
|
3647
4788
|
interface WorkshopLinePlan {
|
|
3648
4789
|
/** (at least 1 characters) */
|
|
3649
4790
|
message: string;
|
|
3650
|
-
/** (1–1 items) */
|
|
4791
|
+
/** Each item: Lane workshops: draw a line from a card to another card or to a note (connect), or take away every line between them, or one of the card's lines by its id (disconnect). The lines stay with the card wherever it moves, on or off the lanes. (1–1 items) */
|
|
3651
4792
|
operations: Array<{
|
|
3652
4793
|
kind: "connect_workshop_card" | "disconnect_workshop_card";
|
|
3653
4794
|
cardId: string;
|