@stablebaseline/sdk 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +560 -6
- package/dist/index.d.ts +560 -6
- package/openapi.json +598 -8
- package/package.json +1 -1
- package/src/types.generated.ts +560 -6
package/dist/index.d.cts
CHANGED
|
@@ -683,6 +683,106 @@ interface paths {
|
|
|
683
683
|
patch?: never;
|
|
684
684
|
trace?: never;
|
|
685
685
|
};
|
|
686
|
+
"/tools/exportDeck": {
|
|
687
|
+
parameters: {
|
|
688
|
+
query?: never;
|
|
689
|
+
header?: never;
|
|
690
|
+
path?: never;
|
|
691
|
+
cookie?: never;
|
|
692
|
+
};
|
|
693
|
+
get?: never;
|
|
694
|
+
put?: never;
|
|
695
|
+
/**
|
|
696
|
+
* exportDeck
|
|
697
|
+
* @description Export an already-generated slide DECK (from the branded HTML-deck pipeline) to an editable PowerPoint (PPTX), PDF, PNG images, or raw HTML. Give it the deckId of a deck whose status is 'ready'; it downloads the deck's stored HTML and renders it in a headless browser via the export worker. 'pptx' = native, fully-editable PowerPoint (real shapes and text, not screenshots); 'pdf' = vector, one page per slide; 'png' = one image per slide (returned as a base64 array); 'html' = the self-contained deck HTML. Returns the file as base64 in `data` (pptx/pdf/html) or per-slide base64 in `slides` (png). The deck must be finished; a deck that is still generating, failed, or archived returns a clear message.
|
|
698
|
+
*/
|
|
699
|
+
post: operations["exportDeck"];
|
|
700
|
+
delete?: never;
|
|
701
|
+
options?: never;
|
|
702
|
+
head?: never;
|
|
703
|
+
patch?: never;
|
|
704
|
+
trace?: never;
|
|
705
|
+
};
|
|
706
|
+
"/tools/generateIllustration": {
|
|
707
|
+
parameters: {
|
|
708
|
+
query?: never;
|
|
709
|
+
header?: never;
|
|
710
|
+
path?: never;
|
|
711
|
+
cookie?: never;
|
|
712
|
+
};
|
|
713
|
+
get?: never;
|
|
714
|
+
put?: never;
|
|
715
|
+
/**
|
|
716
|
+
* generateIllustration
|
|
717
|
+
* @description Generate a standalone, on-brand ILLUSTRATION (raw pixels) from a plain-language prompt, the one thing native shapes and diagrams cannot make. Returns a durable image URL you can insert into a whiteboard or document. Colour-conditioned to the organisation's brand (or a specific brandKitId) and rendered in a clean flat-vector editorial style with NO text, letters, or numbers baked in. Costs a small flat credit charge (refunded automatically if generation fails on our side); an identical prompt reuses a cached image at no charge.
|
|
718
|
+
*/
|
|
719
|
+
post: operations["generateIllustration"];
|
|
720
|
+
delete?: never;
|
|
721
|
+
options?: never;
|
|
722
|
+
head?: never;
|
|
723
|
+
patch?: never;
|
|
724
|
+
trace?: never;
|
|
725
|
+
};
|
|
726
|
+
"/tools/designDeck": {
|
|
727
|
+
parameters: {
|
|
728
|
+
query?: never;
|
|
729
|
+
header?: never;
|
|
730
|
+
path?: never;
|
|
731
|
+
cookie?: never;
|
|
732
|
+
};
|
|
733
|
+
get?: never;
|
|
734
|
+
put?: never;
|
|
735
|
+
/**
|
|
736
|
+
* designDeck
|
|
737
|
+
* @description Design a complete, branded HTML slide deck from a plain-language goal using the premium agentic deck builder. COST-GATED (50 credits): the first call (confirm unset) returns the cost quote plus the workspace balance so you can ask the user; only a call with confirm:true charges the flat fee and builds the deck. The deck is themed to the organisation's brand (or a brandKitId), composed slide by slide, rendered and self-corrected, then saved as a finished deck you can export with exportDeck (pptx/pdf/png/html). The fee is auto-refunded if the build fails or produces nothing. If the user would rather not spend the credits, build slides another way. Requires a projectId for a new deck, or a deckId to rebuild an existing one.
|
|
738
|
+
*/
|
|
739
|
+
post: operations["designDeck"];
|
|
740
|
+
delete?: never;
|
|
741
|
+
options?: never;
|
|
742
|
+
head?: never;
|
|
743
|
+
patch?: never;
|
|
744
|
+
trace?: never;
|
|
745
|
+
};
|
|
746
|
+
"/tools/editDeck": {
|
|
747
|
+
parameters: {
|
|
748
|
+
query?: never;
|
|
749
|
+
header?: never;
|
|
750
|
+
path?: never;
|
|
751
|
+
cookie?: never;
|
|
752
|
+
};
|
|
753
|
+
get?: never;
|
|
754
|
+
put?: never;
|
|
755
|
+
/**
|
|
756
|
+
* editDeck
|
|
757
|
+
* @description Make a targeted change to an existing, finished deck using the agentic deck builder. COST-GATED (10 credits): the first call (confirm unset) returns the cost quote plus balance; only confirm:true charges the fee and applies the edit. Loads the deck's current HTML, makes ONLY the requested change (leaving other slides intact), renders to verify it, and re-saves. The fee is auto-refunded if the edit makes no change or fails.
|
|
758
|
+
*/
|
|
759
|
+
post: operations["editDeck"];
|
|
760
|
+
delete?: never;
|
|
761
|
+
options?: never;
|
|
762
|
+
head?: never;
|
|
763
|
+
patch?: never;
|
|
764
|
+
trace?: never;
|
|
765
|
+
};
|
|
766
|
+
"/tools/insertDeckIntoWhiteboard": {
|
|
767
|
+
parameters: {
|
|
768
|
+
query?: never;
|
|
769
|
+
header?: never;
|
|
770
|
+
path?: never;
|
|
771
|
+
cookie?: never;
|
|
772
|
+
};
|
|
773
|
+
get?: never;
|
|
774
|
+
put?: never;
|
|
775
|
+
/**
|
|
776
|
+
* insertDeckIntoWhiteboard
|
|
777
|
+
* @description Render a FINISHED slide DECK's pages into framed images on a WHITEBOARD: one Excalidraw frame per slide, laid out as a horizontal row of pages so the whole deck appears on the board to pan across, annotate around, and edit beside. Give it the deckId of a deck whose status is 'ready'; it renders each slide to a PNG (via the export worker) and drops each image inside its own 1280x720 frame named 'Slide N'. Pass an existing whiteboard documentId to place the slides on it, or a projectId to create a new board (defaults to the deck's own project; the new board is named '<deck title> (deck)'). Returns the documentId, the number of slide frames placed, and the board title. The deck must be finished; a deck that is still generating, failed, or archived returns a clear message.
|
|
778
|
+
*/
|
|
779
|
+
post: operations["insertDeckIntoWhiteboard"];
|
|
780
|
+
delete?: never;
|
|
781
|
+
options?: never;
|
|
782
|
+
head?: never;
|
|
783
|
+
patch?: never;
|
|
784
|
+
trace?: never;
|
|
785
|
+
};
|
|
686
786
|
"/tools/createWhiteboard": {
|
|
687
787
|
parameters: {
|
|
688
788
|
query?: never;
|
|
@@ -994,7 +1094,7 @@ interface paths {
|
|
|
994
1094
|
put?: never;
|
|
995
1095
|
/**
|
|
996
1096
|
* rebuildPlatformCatalogEmbeddings
|
|
997
|
-
* @description Internal maintenance (requires write). Syncs gte-small (384-dim) vector embeddings for
|
|
1097
|
+
* @description Internal maintenance (requires write). Syncs gte-small (384-dim) vector embeddings for every platform catalog (MCP tools, whiteboard stencils, architecture icons, infographic templates, whiteboard design components, and open-design skills) into platform_catalog_embeddings, so the semantic search behind searchTools, listWhiteboardStencils, listArchitectureIcons, and the design-skill / component browsers stays current. Incremental: scans every catalog, diffs by content hash, and re-embeds ONLY changed rows (cheap no-op when nothing changed). This normally runs automatically every hour (the platform-catalog-sync cron), so manual calls are rarely needed; use it to force an immediate sync after changing any catalog. Embeds up to ~120 changed rows per call; if more changed, call again until allDone is true. Not part of normal authoring flows.
|
|
998
1098
|
*/
|
|
999
1099
|
post: operations["rebuildPlatformCatalogEmbeddings"];
|
|
1000
1100
|
delete?: never;
|
|
@@ -3677,7 +3777,7 @@ interface paths {
|
|
|
3677
3777
|
put?: never;
|
|
3678
3778
|
/**
|
|
3679
3779
|
* createBrandKit
|
|
3680
|
-
* @description Create a per-org BRAND KIT
|
|
3780
|
+
* @description Create a per-org BRAND KIT so Stable Baseline outputs come out fully on-brand. Upload your branding and it is auto-applied: pass a `logoUrl` (as little as your logo, and the vision model AUTO-EXTRACTS your palette and fonts), or an `officeUrl` (an existing .pptx/.docx, from which it extracts theme colours, fonts, logo, watermark and the embedded font files), or explicit `tokens`. The kit themes branded-executive slides AND document exports (PDF, Word, PowerPoint). Auth: can_admin_org. Tiered: free 0, pro 1, enterprise unlimited. Optionally set it as the default at a scope in one call.
|
|
3681
3781
|
*/
|
|
3682
3782
|
post: operations["createBrandKit"];
|
|
3683
3783
|
delete?: never;
|
|
@@ -6665,7 +6765,7 @@ interface operations {
|
|
|
6665
6765
|
* @enum {string}
|
|
6666
6766
|
*/
|
|
6667
6767
|
designProfile?: "standard" | "branded-executive" | "illustrated" | "image" | "agentic" | "agentic-deck";
|
|
6668
|
-
/** @description Optional brand kit id (from listBrandKits) to theme a branded-executive deck. If omitted, the org's built-in default is used. */
|
|
6768
|
+
/** @description Optional brand kit id (from listBrandKits) to theme a branded-executive deck. If omitted, the org's built-in default is used. Create one from just a logo (or a .pptx/.docx) via createBrandKit. */
|
|
6669
6769
|
brandKitId?: string;
|
|
6670
6770
|
};
|
|
6671
6771
|
};
|
|
@@ -6934,6 +7034,460 @@ interface operations {
|
|
|
6934
7034
|
};
|
|
6935
7035
|
};
|
|
6936
7036
|
};
|
|
7037
|
+
exportDeck: {
|
|
7038
|
+
parameters: {
|
|
7039
|
+
query?: never;
|
|
7040
|
+
header?: never;
|
|
7041
|
+
path?: never;
|
|
7042
|
+
cookie?: never;
|
|
7043
|
+
};
|
|
7044
|
+
requestBody?: {
|
|
7045
|
+
content: {
|
|
7046
|
+
"application/json": {
|
|
7047
|
+
/** @description The id of an existing, finished ('ready') deck to export. */
|
|
7048
|
+
deckId: string;
|
|
7049
|
+
/**
|
|
7050
|
+
* @description Output format. 'pptx' (default) = editable PowerPoint; 'pdf' = vector PDF; 'png' = one base64 image per slide; 'html' = the deck's self-contained HTML.
|
|
7051
|
+
* @enum {string}
|
|
7052
|
+
*/
|
|
7053
|
+
format?: "pptx" | "pdf" | "png" | "html";
|
|
7054
|
+
/** @description Optional brand kit id (reserved for future per-export theming; the deck is already branded, so this is usually unnecessary). */
|
|
7055
|
+
brandKitId?: string;
|
|
7056
|
+
};
|
|
7057
|
+
};
|
|
7058
|
+
};
|
|
7059
|
+
responses: {
|
|
7060
|
+
/** @description Tool result (shape varies per tool — refer to the tool's docs for the exact return value). */
|
|
7061
|
+
200: {
|
|
7062
|
+
headers: {
|
|
7063
|
+
[name: string]: unknown;
|
|
7064
|
+
};
|
|
7065
|
+
content: {
|
|
7066
|
+
"application/json": {
|
|
7067
|
+
[key: string]: unknown;
|
|
7068
|
+
};
|
|
7069
|
+
};
|
|
7070
|
+
};
|
|
7071
|
+
/** @description Validation error. */
|
|
7072
|
+
400: {
|
|
7073
|
+
headers: {
|
|
7074
|
+
[name: string]: unknown;
|
|
7075
|
+
};
|
|
7076
|
+
content: {
|
|
7077
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7078
|
+
};
|
|
7079
|
+
};
|
|
7080
|
+
/** @description Missing or invalid credentials. */
|
|
7081
|
+
401: {
|
|
7082
|
+
headers: {
|
|
7083
|
+
[name: string]: unknown;
|
|
7084
|
+
};
|
|
7085
|
+
content: {
|
|
7086
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7087
|
+
};
|
|
7088
|
+
};
|
|
7089
|
+
/** @description Authenticated but lacking the required permission or feature flag. */
|
|
7090
|
+
403: {
|
|
7091
|
+
headers: {
|
|
7092
|
+
[name: string]: unknown;
|
|
7093
|
+
};
|
|
7094
|
+
content: {
|
|
7095
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7096
|
+
};
|
|
7097
|
+
};
|
|
7098
|
+
/** @description Resource not found. */
|
|
7099
|
+
404: {
|
|
7100
|
+
headers: {
|
|
7101
|
+
[name: string]: unknown;
|
|
7102
|
+
};
|
|
7103
|
+
content: {
|
|
7104
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7105
|
+
};
|
|
7106
|
+
};
|
|
7107
|
+
/** @description Body did not match the tool's input schema. */
|
|
7108
|
+
422: {
|
|
7109
|
+
headers: {
|
|
7110
|
+
[name: string]: unknown;
|
|
7111
|
+
};
|
|
7112
|
+
content: {
|
|
7113
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7114
|
+
};
|
|
7115
|
+
};
|
|
7116
|
+
/** @description Server error. */
|
|
7117
|
+
500: {
|
|
7118
|
+
headers: {
|
|
7119
|
+
[name: string]: unknown;
|
|
7120
|
+
};
|
|
7121
|
+
content: {
|
|
7122
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7123
|
+
};
|
|
7124
|
+
};
|
|
7125
|
+
};
|
|
7126
|
+
};
|
|
7127
|
+
generateIllustration: {
|
|
7128
|
+
parameters: {
|
|
7129
|
+
query?: never;
|
|
7130
|
+
header?: never;
|
|
7131
|
+
path?: never;
|
|
7132
|
+
cookie?: never;
|
|
7133
|
+
};
|
|
7134
|
+
requestBody?: {
|
|
7135
|
+
content: {
|
|
7136
|
+
"application/json": {
|
|
7137
|
+
/** @description Plain-language description of the illustration to generate (e.g. 'a friendly robot assistant helping a small team'). */
|
|
7138
|
+
prompt: string;
|
|
7139
|
+
/** @description Optional output width in px (rounded to a multiple of 64, 512 to 2048). Default 1024. */
|
|
7140
|
+
width?: number;
|
|
7141
|
+
/** @description Optional output height in px (rounded to a multiple of 64, 512 to 2048). Default 1024. */
|
|
7142
|
+
height?: number;
|
|
7143
|
+
/** @description Optional extra style hint appended to the prompt (e.g. 'isometric', 'soft gradients, pastel'). */
|
|
7144
|
+
style?: string;
|
|
7145
|
+
/** @description Optional brand kit id to colour-condition the illustration. Defaults to the organisation's effective brand. */
|
|
7146
|
+
brandKitId?: string;
|
|
7147
|
+
/** @description Optional document this illustration is for (used only for usage logging and provenance). */
|
|
7148
|
+
documentId?: string;
|
|
7149
|
+
};
|
|
7150
|
+
};
|
|
7151
|
+
};
|
|
7152
|
+
responses: {
|
|
7153
|
+
/** @description Tool result (shape varies per tool — refer to the tool's docs for the exact return value). */
|
|
7154
|
+
200: {
|
|
7155
|
+
headers: {
|
|
7156
|
+
[name: string]: unknown;
|
|
7157
|
+
};
|
|
7158
|
+
content: {
|
|
7159
|
+
"application/json": {
|
|
7160
|
+
[key: string]: unknown;
|
|
7161
|
+
};
|
|
7162
|
+
};
|
|
7163
|
+
};
|
|
7164
|
+
/** @description Validation error. */
|
|
7165
|
+
400: {
|
|
7166
|
+
headers: {
|
|
7167
|
+
[name: string]: unknown;
|
|
7168
|
+
};
|
|
7169
|
+
content: {
|
|
7170
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7171
|
+
};
|
|
7172
|
+
};
|
|
7173
|
+
/** @description Missing or invalid credentials. */
|
|
7174
|
+
401: {
|
|
7175
|
+
headers: {
|
|
7176
|
+
[name: string]: unknown;
|
|
7177
|
+
};
|
|
7178
|
+
content: {
|
|
7179
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7180
|
+
};
|
|
7181
|
+
};
|
|
7182
|
+
/** @description Authenticated but lacking the required permission or feature flag. */
|
|
7183
|
+
403: {
|
|
7184
|
+
headers: {
|
|
7185
|
+
[name: string]: unknown;
|
|
7186
|
+
};
|
|
7187
|
+
content: {
|
|
7188
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7189
|
+
};
|
|
7190
|
+
};
|
|
7191
|
+
/** @description Resource not found. */
|
|
7192
|
+
404: {
|
|
7193
|
+
headers: {
|
|
7194
|
+
[name: string]: unknown;
|
|
7195
|
+
};
|
|
7196
|
+
content: {
|
|
7197
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7198
|
+
};
|
|
7199
|
+
};
|
|
7200
|
+
/** @description Body did not match the tool's input schema. */
|
|
7201
|
+
422: {
|
|
7202
|
+
headers: {
|
|
7203
|
+
[name: string]: unknown;
|
|
7204
|
+
};
|
|
7205
|
+
content: {
|
|
7206
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7207
|
+
};
|
|
7208
|
+
};
|
|
7209
|
+
/** @description Server error. */
|
|
7210
|
+
500: {
|
|
7211
|
+
headers: {
|
|
7212
|
+
[name: string]: unknown;
|
|
7213
|
+
};
|
|
7214
|
+
content: {
|
|
7215
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7216
|
+
};
|
|
7217
|
+
};
|
|
7218
|
+
};
|
|
7219
|
+
};
|
|
7220
|
+
designDeck: {
|
|
7221
|
+
parameters: {
|
|
7222
|
+
query?: never;
|
|
7223
|
+
header?: never;
|
|
7224
|
+
path?: never;
|
|
7225
|
+
cookie?: never;
|
|
7226
|
+
};
|
|
7227
|
+
requestBody?: {
|
|
7228
|
+
content: {
|
|
7229
|
+
"application/json": {
|
|
7230
|
+
/** @description The deck to build, in plain language (topic, audience, and what it should cover). */
|
|
7231
|
+
goal: string;
|
|
7232
|
+
/** @description The project to create the deck in. Required when no deckId is given (a deck must live in a project). */
|
|
7233
|
+
projectId: string;
|
|
7234
|
+
/** @description Optional deck title. If omitted, a clear title is derived from the goal. */
|
|
7235
|
+
title?: string;
|
|
7236
|
+
/** @description Optional. An existing deck to rebuild. If omitted, a new deck is created in projectId. */
|
|
7237
|
+
deckId?: string;
|
|
7238
|
+
/** @description Optional brand kit id (from listBrandKits) to theme the deck. If omitted, the organisation's effective brand is used. Create one from a logo or a .pptx/.docx via createBrandKit. */
|
|
7239
|
+
brandKitId?: string;
|
|
7240
|
+
/** @description Optional target number of slides (the composer adjusts to fit the story). Typical 6 to 12. */
|
|
7241
|
+
slideCount?: number;
|
|
7242
|
+
/** @description Set true ONLY after the user has approved the 50-credit cost. Leave unset/false on the first call to receive the cost quote plus balance. */
|
|
7243
|
+
confirm?: boolean;
|
|
7244
|
+
};
|
|
7245
|
+
};
|
|
7246
|
+
};
|
|
7247
|
+
responses: {
|
|
7248
|
+
/** @description Tool result (shape varies per tool — refer to the tool's docs for the exact return value). */
|
|
7249
|
+
200: {
|
|
7250
|
+
headers: {
|
|
7251
|
+
[name: string]: unknown;
|
|
7252
|
+
};
|
|
7253
|
+
content: {
|
|
7254
|
+
"application/json": {
|
|
7255
|
+
[key: string]: unknown;
|
|
7256
|
+
};
|
|
7257
|
+
};
|
|
7258
|
+
};
|
|
7259
|
+
/** @description Validation error. */
|
|
7260
|
+
400: {
|
|
7261
|
+
headers: {
|
|
7262
|
+
[name: string]: unknown;
|
|
7263
|
+
};
|
|
7264
|
+
content: {
|
|
7265
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7266
|
+
};
|
|
7267
|
+
};
|
|
7268
|
+
/** @description Missing or invalid credentials. */
|
|
7269
|
+
401: {
|
|
7270
|
+
headers: {
|
|
7271
|
+
[name: string]: unknown;
|
|
7272
|
+
};
|
|
7273
|
+
content: {
|
|
7274
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7275
|
+
};
|
|
7276
|
+
};
|
|
7277
|
+
/** @description Authenticated but lacking the required permission or feature flag. */
|
|
7278
|
+
403: {
|
|
7279
|
+
headers: {
|
|
7280
|
+
[name: string]: unknown;
|
|
7281
|
+
};
|
|
7282
|
+
content: {
|
|
7283
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7284
|
+
};
|
|
7285
|
+
};
|
|
7286
|
+
/** @description Resource not found. */
|
|
7287
|
+
404: {
|
|
7288
|
+
headers: {
|
|
7289
|
+
[name: string]: unknown;
|
|
7290
|
+
};
|
|
7291
|
+
content: {
|
|
7292
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7293
|
+
};
|
|
7294
|
+
};
|
|
7295
|
+
/** @description Body did not match the tool's input schema. */
|
|
7296
|
+
422: {
|
|
7297
|
+
headers: {
|
|
7298
|
+
[name: string]: unknown;
|
|
7299
|
+
};
|
|
7300
|
+
content: {
|
|
7301
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7302
|
+
};
|
|
7303
|
+
};
|
|
7304
|
+
/** @description Server error. */
|
|
7305
|
+
500: {
|
|
7306
|
+
headers: {
|
|
7307
|
+
[name: string]: unknown;
|
|
7308
|
+
};
|
|
7309
|
+
content: {
|
|
7310
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7311
|
+
};
|
|
7312
|
+
};
|
|
7313
|
+
};
|
|
7314
|
+
};
|
|
7315
|
+
editDeck: {
|
|
7316
|
+
parameters: {
|
|
7317
|
+
query?: never;
|
|
7318
|
+
header?: never;
|
|
7319
|
+
path?: never;
|
|
7320
|
+
cookie?: never;
|
|
7321
|
+
};
|
|
7322
|
+
requestBody?: {
|
|
7323
|
+
content: {
|
|
7324
|
+
"application/json": {
|
|
7325
|
+
/** @description The id of the finished deck to edit. */
|
|
7326
|
+
deckId: string;
|
|
7327
|
+
/** @description The change to make, in plain language (e.g. 'change the title slide subhead to ...', 'make slide 3 a bar chart of these numbers ...'). */
|
|
7328
|
+
instruction: string;
|
|
7329
|
+
/** @description Optional 1-based slide number to focus the edit on. Omit to let the builder find the right slide(s) from the instruction. */
|
|
7330
|
+
slideIndex?: number;
|
|
7331
|
+
/** @description Set true ONLY after the user has approved the 10-credit cost. Leave unset/false on the first call to receive the cost quote plus balance. */
|
|
7332
|
+
confirm?: boolean;
|
|
7333
|
+
};
|
|
7334
|
+
};
|
|
7335
|
+
};
|
|
7336
|
+
responses: {
|
|
7337
|
+
/** @description Tool result (shape varies per tool — refer to the tool's docs for the exact return value). */
|
|
7338
|
+
200: {
|
|
7339
|
+
headers: {
|
|
7340
|
+
[name: string]: unknown;
|
|
7341
|
+
};
|
|
7342
|
+
content: {
|
|
7343
|
+
"application/json": {
|
|
7344
|
+
[key: string]: unknown;
|
|
7345
|
+
};
|
|
7346
|
+
};
|
|
7347
|
+
};
|
|
7348
|
+
/** @description Validation error. */
|
|
7349
|
+
400: {
|
|
7350
|
+
headers: {
|
|
7351
|
+
[name: string]: unknown;
|
|
7352
|
+
};
|
|
7353
|
+
content: {
|
|
7354
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7355
|
+
};
|
|
7356
|
+
};
|
|
7357
|
+
/** @description Missing or invalid credentials. */
|
|
7358
|
+
401: {
|
|
7359
|
+
headers: {
|
|
7360
|
+
[name: string]: unknown;
|
|
7361
|
+
};
|
|
7362
|
+
content: {
|
|
7363
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7364
|
+
};
|
|
7365
|
+
};
|
|
7366
|
+
/** @description Authenticated but lacking the required permission or feature flag. */
|
|
7367
|
+
403: {
|
|
7368
|
+
headers: {
|
|
7369
|
+
[name: string]: unknown;
|
|
7370
|
+
};
|
|
7371
|
+
content: {
|
|
7372
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7373
|
+
};
|
|
7374
|
+
};
|
|
7375
|
+
/** @description Resource not found. */
|
|
7376
|
+
404: {
|
|
7377
|
+
headers: {
|
|
7378
|
+
[name: string]: unknown;
|
|
7379
|
+
};
|
|
7380
|
+
content: {
|
|
7381
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7382
|
+
};
|
|
7383
|
+
};
|
|
7384
|
+
/** @description Body did not match the tool's input schema. */
|
|
7385
|
+
422: {
|
|
7386
|
+
headers: {
|
|
7387
|
+
[name: string]: unknown;
|
|
7388
|
+
};
|
|
7389
|
+
content: {
|
|
7390
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7391
|
+
};
|
|
7392
|
+
};
|
|
7393
|
+
/** @description Server error. */
|
|
7394
|
+
500: {
|
|
7395
|
+
headers: {
|
|
7396
|
+
[name: string]: unknown;
|
|
7397
|
+
};
|
|
7398
|
+
content: {
|
|
7399
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7400
|
+
};
|
|
7401
|
+
};
|
|
7402
|
+
};
|
|
7403
|
+
};
|
|
7404
|
+
insertDeckIntoWhiteboard: {
|
|
7405
|
+
parameters: {
|
|
7406
|
+
query?: never;
|
|
7407
|
+
header?: never;
|
|
7408
|
+
path?: never;
|
|
7409
|
+
cookie?: never;
|
|
7410
|
+
};
|
|
7411
|
+
requestBody?: {
|
|
7412
|
+
content: {
|
|
7413
|
+
"application/json": {
|
|
7414
|
+
/** @description The id of an existing, finished ('ready') deck whose slides to place on a whiteboard. */
|
|
7415
|
+
deckId: string;
|
|
7416
|
+
/** @description Optional existing whiteboard to place the slides on. When omitted, a new whiteboard is created in projectId. */
|
|
7417
|
+
documentId?: string;
|
|
7418
|
+
/** @description Optional project to create the new whiteboard in when documentId is omitted. Defaults to the deck's own project. */
|
|
7419
|
+
projectId?: string;
|
|
7420
|
+
};
|
|
7421
|
+
};
|
|
7422
|
+
};
|
|
7423
|
+
responses: {
|
|
7424
|
+
/** @description Tool result (shape varies per tool — refer to the tool's docs for the exact return value). */
|
|
7425
|
+
200: {
|
|
7426
|
+
headers: {
|
|
7427
|
+
[name: string]: unknown;
|
|
7428
|
+
};
|
|
7429
|
+
content: {
|
|
7430
|
+
"application/json": {
|
|
7431
|
+
[key: string]: unknown;
|
|
7432
|
+
};
|
|
7433
|
+
};
|
|
7434
|
+
};
|
|
7435
|
+
/** @description Validation error. */
|
|
7436
|
+
400: {
|
|
7437
|
+
headers: {
|
|
7438
|
+
[name: string]: unknown;
|
|
7439
|
+
};
|
|
7440
|
+
content: {
|
|
7441
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7442
|
+
};
|
|
7443
|
+
};
|
|
7444
|
+
/** @description Missing or invalid credentials. */
|
|
7445
|
+
401: {
|
|
7446
|
+
headers: {
|
|
7447
|
+
[name: string]: unknown;
|
|
7448
|
+
};
|
|
7449
|
+
content: {
|
|
7450
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7451
|
+
};
|
|
7452
|
+
};
|
|
7453
|
+
/** @description Authenticated but lacking the required permission or feature flag. */
|
|
7454
|
+
403: {
|
|
7455
|
+
headers: {
|
|
7456
|
+
[name: string]: unknown;
|
|
7457
|
+
};
|
|
7458
|
+
content: {
|
|
7459
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7460
|
+
};
|
|
7461
|
+
};
|
|
7462
|
+
/** @description Resource not found. */
|
|
7463
|
+
404: {
|
|
7464
|
+
headers: {
|
|
7465
|
+
[name: string]: unknown;
|
|
7466
|
+
};
|
|
7467
|
+
content: {
|
|
7468
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7469
|
+
};
|
|
7470
|
+
};
|
|
7471
|
+
/** @description Body did not match the tool's input schema. */
|
|
7472
|
+
422: {
|
|
7473
|
+
headers: {
|
|
7474
|
+
[name: string]: unknown;
|
|
7475
|
+
};
|
|
7476
|
+
content: {
|
|
7477
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7478
|
+
};
|
|
7479
|
+
};
|
|
7480
|
+
/** @description Server error. */
|
|
7481
|
+
500: {
|
|
7482
|
+
headers: {
|
|
7483
|
+
[name: string]: unknown;
|
|
7484
|
+
};
|
|
7485
|
+
content: {
|
|
7486
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7487
|
+
};
|
|
7488
|
+
};
|
|
7489
|
+
};
|
|
7490
|
+
};
|
|
6937
7491
|
createWhiteboard: {
|
|
6938
7492
|
parameters: {
|
|
6939
7493
|
query?: never;
|
|
@@ -7302,7 +7856,7 @@ interface operations {
|
|
|
7302
7856
|
* @description Element kind. 'sticky' = a first-class sticky/post-it note (solid fill + auto-fitting bound label; set text + backgroundColor) — use this for sticky notes, NOT a stencil. 'stencil' = a hand-drawn library graphic from listWhiteboardStencils, of kind 'symbol' (one atomic labelled node — flowchart box, BPMN task, org node: set `id` + `text` + width/height, text auto-fits, connect arrows via start/end {id}) or 'template' (a multi-element layout — Alerts, Forms, Tables, Charts: place whole, then customise its returned children by id; do NOT set a single `text`). Set `stencil` (fuzzy name, one call) or `stencilKey` (exact). 'image' with `iconPath` = a software-architecture icon from listArchitectureIcons. 'chart' = a NATIVE, fully-editable data chart (column/bar/line/area/pie/donut/scatter/sparkline/combo/stackedColumn/groupedColumn/radar/gauge) built from real Excalidraw shapes — bars/lines/wedges plus axes, gridlines and a legend — for ANY data, metric, KPI, trend, comparison or breakdown: set chartType + series (+ categories + options). ALWAYS prefer a 'chart' over hand-drawing bars/lines or a wireframe 'chart' stencil. 'table' = a NATIVE, fully-editable GRID (real rectangles + bound, word-wrapped cells, auto-sized columns + rows, a header band, optional zebra striping / per-column colours) for ANY tabular data, list or matrix — set columns + rows (+ options). ALWAYS prefer a 'table' over hand-drawing a grid of boxes. Reserve rectangle/ellipse/diamond for when no standard form fits.
|
|
7303
7857
|
* @enum {string}
|
|
7304
7858
|
*/
|
|
7305
|
-
type
|
|
7859
|
+
type?: "rectangle" | "ellipse" | "diamond" | "sticky" | "text" | "arrow" | "line" | "freedraw" | "doodle" | "frame" | "image" | "stencil" | "chart" | "table";
|
|
7306
7860
|
/** @description For type:'stencil' — fuzzy-match a library stencil by name in ONE call, no prior listWhiteboardStencils needed (e.g. 'decision', 'actor', 'phone frame', 'kanban column'). NOTE: there is no sticky-note stencil — use type:'sticky' for sticky/post-it notes. */
|
|
7307
7861
|
stencil?: string;
|
|
7308
7862
|
/** @description For type:'stencil' — exact stencil key from listWhiteboardStencils (takes precedence over `stencil`). */
|
|
@@ -8435,8 +8989,8 @@ interface operations {
|
|
|
8435
8989
|
requestBody?: {
|
|
8436
8990
|
content: {
|
|
8437
8991
|
"application/json": {
|
|
8438
|
-
/** @description Which catalogs to sync. Defaults to all
|
|
8439
|
-
types?: ("tool" | "stencil" | "icon")[];
|
|
8992
|
+
/** @description Which catalogs to sync. Defaults to all six (tool, stencil, icon, infographic_template, whiteboard_component, skill). */
|
|
8993
|
+
types?: ("tool" | "stencil" | "icon" | "infographic_template" | "whiteboard_component" | "skill")[];
|
|
8440
8994
|
};
|
|
8441
8995
|
};
|
|
8442
8996
|
};
|