@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/openapi.json
CHANGED
|
@@ -3925,7 +3925,7 @@
|
|
|
3925
3925
|
},
|
|
3926
3926
|
"brandKitId": {
|
|
3927
3927
|
"type": "string",
|
|
3928
|
-
"description": "Optional brand kit id (from listBrandKits) to theme a branded-executive deck. If omitted, the org's built-in default is used."
|
|
3928
|
+
"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."
|
|
3929
3929
|
}
|
|
3930
3930
|
},
|
|
3931
3931
|
"required": [
|
|
@@ -4281,6 +4281,596 @@
|
|
|
4281
4281
|
}
|
|
4282
4282
|
}
|
|
4283
4283
|
},
|
|
4284
|
+
"/tools/exportDeck": {
|
|
4285
|
+
"post": {
|
|
4286
|
+
"summary": "exportDeck",
|
|
4287
|
+
"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.",
|
|
4288
|
+
"operationId": "exportDeck",
|
|
4289
|
+
"tags": [
|
|
4290
|
+
"uncategorized"
|
|
4291
|
+
],
|
|
4292
|
+
"requestBody": {
|
|
4293
|
+
"required": false,
|
|
4294
|
+
"content": {
|
|
4295
|
+
"application/json": {
|
|
4296
|
+
"schema": {
|
|
4297
|
+
"type": "object",
|
|
4298
|
+
"properties": {
|
|
4299
|
+
"deckId": {
|
|
4300
|
+
"type": "string",
|
|
4301
|
+
"description": "The id of an existing, finished ('ready') deck to export."
|
|
4302
|
+
},
|
|
4303
|
+
"format": {
|
|
4304
|
+
"type": "string",
|
|
4305
|
+
"enum": [
|
|
4306
|
+
"pptx",
|
|
4307
|
+
"pdf",
|
|
4308
|
+
"png",
|
|
4309
|
+
"html"
|
|
4310
|
+
],
|
|
4311
|
+
"description": "Output format. 'pptx' (default) = editable PowerPoint; 'pdf' = vector PDF; 'png' = one base64 image per slide; 'html' = the deck's self-contained HTML."
|
|
4312
|
+
},
|
|
4313
|
+
"brandKitId": {
|
|
4314
|
+
"type": "string",
|
|
4315
|
+
"description": "Optional brand kit id (reserved for future per-export theming; the deck is already branded, so this is usually unnecessary)."
|
|
4316
|
+
}
|
|
4317
|
+
},
|
|
4318
|
+
"required": [
|
|
4319
|
+
"deckId"
|
|
4320
|
+
]
|
|
4321
|
+
}
|
|
4322
|
+
}
|
|
4323
|
+
}
|
|
4324
|
+
},
|
|
4325
|
+
"responses": {
|
|
4326
|
+
"200": {
|
|
4327
|
+
"description": "Tool result (shape varies per tool — refer to the tool's docs for the exact return value).",
|
|
4328
|
+
"content": {
|
|
4329
|
+
"application/json": {
|
|
4330
|
+
"schema": {
|
|
4331
|
+
"type": "object",
|
|
4332
|
+
"additionalProperties": true
|
|
4333
|
+
}
|
|
4334
|
+
}
|
|
4335
|
+
}
|
|
4336
|
+
},
|
|
4337
|
+
"400": {
|
|
4338
|
+
"description": "Validation error.",
|
|
4339
|
+
"content": {
|
|
4340
|
+
"application/json": {
|
|
4341
|
+
"schema": {
|
|
4342
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4343
|
+
}
|
|
4344
|
+
}
|
|
4345
|
+
}
|
|
4346
|
+
},
|
|
4347
|
+
"401": {
|
|
4348
|
+
"description": "Missing or invalid credentials.",
|
|
4349
|
+
"content": {
|
|
4350
|
+
"application/json": {
|
|
4351
|
+
"schema": {
|
|
4352
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4353
|
+
}
|
|
4354
|
+
}
|
|
4355
|
+
}
|
|
4356
|
+
},
|
|
4357
|
+
"403": {
|
|
4358
|
+
"description": "Authenticated but lacking the required permission or feature flag.",
|
|
4359
|
+
"content": {
|
|
4360
|
+
"application/json": {
|
|
4361
|
+
"schema": {
|
|
4362
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4363
|
+
}
|
|
4364
|
+
}
|
|
4365
|
+
}
|
|
4366
|
+
},
|
|
4367
|
+
"404": {
|
|
4368
|
+
"description": "Resource not found.",
|
|
4369
|
+
"content": {
|
|
4370
|
+
"application/json": {
|
|
4371
|
+
"schema": {
|
|
4372
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4373
|
+
}
|
|
4374
|
+
}
|
|
4375
|
+
}
|
|
4376
|
+
},
|
|
4377
|
+
"422": {
|
|
4378
|
+
"description": "Body did not match the tool's input schema.",
|
|
4379
|
+
"content": {
|
|
4380
|
+
"application/json": {
|
|
4381
|
+
"schema": {
|
|
4382
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4383
|
+
}
|
|
4384
|
+
}
|
|
4385
|
+
}
|
|
4386
|
+
},
|
|
4387
|
+
"500": {
|
|
4388
|
+
"description": "Server error.",
|
|
4389
|
+
"content": {
|
|
4390
|
+
"application/json": {
|
|
4391
|
+
"schema": {
|
|
4392
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4393
|
+
}
|
|
4394
|
+
}
|
|
4395
|
+
}
|
|
4396
|
+
}
|
|
4397
|
+
}
|
|
4398
|
+
}
|
|
4399
|
+
},
|
|
4400
|
+
"/tools/generateIllustration": {
|
|
4401
|
+
"post": {
|
|
4402
|
+
"summary": "generateIllustration",
|
|
4403
|
+
"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.",
|
|
4404
|
+
"operationId": "generateIllustration",
|
|
4405
|
+
"tags": [
|
|
4406
|
+
"uncategorized"
|
|
4407
|
+
],
|
|
4408
|
+
"requestBody": {
|
|
4409
|
+
"required": false,
|
|
4410
|
+
"content": {
|
|
4411
|
+
"application/json": {
|
|
4412
|
+
"schema": {
|
|
4413
|
+
"type": "object",
|
|
4414
|
+
"properties": {
|
|
4415
|
+
"prompt": {
|
|
4416
|
+
"type": "string",
|
|
4417
|
+
"description": "Plain-language description of the illustration to generate (e.g. 'a friendly robot assistant helping a small team')."
|
|
4418
|
+
},
|
|
4419
|
+
"width": {
|
|
4420
|
+
"type": "number",
|
|
4421
|
+
"description": "Optional output width in px (rounded to a multiple of 64, 512 to 2048). Default 1024."
|
|
4422
|
+
},
|
|
4423
|
+
"height": {
|
|
4424
|
+
"type": "number",
|
|
4425
|
+
"description": "Optional output height in px (rounded to a multiple of 64, 512 to 2048). Default 1024."
|
|
4426
|
+
},
|
|
4427
|
+
"style": {
|
|
4428
|
+
"type": "string",
|
|
4429
|
+
"description": "Optional extra style hint appended to the prompt (e.g. 'isometric', 'soft gradients, pastel')."
|
|
4430
|
+
},
|
|
4431
|
+
"brandKitId": {
|
|
4432
|
+
"type": "string",
|
|
4433
|
+
"description": "Optional brand kit id to colour-condition the illustration. Defaults to the organisation's effective brand."
|
|
4434
|
+
},
|
|
4435
|
+
"documentId": {
|
|
4436
|
+
"type": "string",
|
|
4437
|
+
"description": "Optional document this illustration is for (used only for usage logging and provenance)."
|
|
4438
|
+
}
|
|
4439
|
+
},
|
|
4440
|
+
"required": [
|
|
4441
|
+
"prompt"
|
|
4442
|
+
]
|
|
4443
|
+
}
|
|
4444
|
+
}
|
|
4445
|
+
}
|
|
4446
|
+
},
|
|
4447
|
+
"responses": {
|
|
4448
|
+
"200": {
|
|
4449
|
+
"description": "Tool result (shape varies per tool — refer to the tool's docs for the exact return value).",
|
|
4450
|
+
"content": {
|
|
4451
|
+
"application/json": {
|
|
4452
|
+
"schema": {
|
|
4453
|
+
"type": "object",
|
|
4454
|
+
"additionalProperties": true
|
|
4455
|
+
}
|
|
4456
|
+
}
|
|
4457
|
+
}
|
|
4458
|
+
},
|
|
4459
|
+
"400": {
|
|
4460
|
+
"description": "Validation error.",
|
|
4461
|
+
"content": {
|
|
4462
|
+
"application/json": {
|
|
4463
|
+
"schema": {
|
|
4464
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4465
|
+
}
|
|
4466
|
+
}
|
|
4467
|
+
}
|
|
4468
|
+
},
|
|
4469
|
+
"401": {
|
|
4470
|
+
"description": "Missing or invalid credentials.",
|
|
4471
|
+
"content": {
|
|
4472
|
+
"application/json": {
|
|
4473
|
+
"schema": {
|
|
4474
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4475
|
+
}
|
|
4476
|
+
}
|
|
4477
|
+
}
|
|
4478
|
+
},
|
|
4479
|
+
"403": {
|
|
4480
|
+
"description": "Authenticated but lacking the required permission or feature flag.",
|
|
4481
|
+
"content": {
|
|
4482
|
+
"application/json": {
|
|
4483
|
+
"schema": {
|
|
4484
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4485
|
+
}
|
|
4486
|
+
}
|
|
4487
|
+
}
|
|
4488
|
+
},
|
|
4489
|
+
"404": {
|
|
4490
|
+
"description": "Resource not found.",
|
|
4491
|
+
"content": {
|
|
4492
|
+
"application/json": {
|
|
4493
|
+
"schema": {
|
|
4494
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4495
|
+
}
|
|
4496
|
+
}
|
|
4497
|
+
}
|
|
4498
|
+
},
|
|
4499
|
+
"422": {
|
|
4500
|
+
"description": "Body did not match the tool's input schema.",
|
|
4501
|
+
"content": {
|
|
4502
|
+
"application/json": {
|
|
4503
|
+
"schema": {
|
|
4504
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4505
|
+
}
|
|
4506
|
+
}
|
|
4507
|
+
}
|
|
4508
|
+
},
|
|
4509
|
+
"500": {
|
|
4510
|
+
"description": "Server error.",
|
|
4511
|
+
"content": {
|
|
4512
|
+
"application/json": {
|
|
4513
|
+
"schema": {
|
|
4514
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4515
|
+
}
|
|
4516
|
+
}
|
|
4517
|
+
}
|
|
4518
|
+
}
|
|
4519
|
+
}
|
|
4520
|
+
}
|
|
4521
|
+
},
|
|
4522
|
+
"/tools/designDeck": {
|
|
4523
|
+
"post": {
|
|
4524
|
+
"summary": "designDeck",
|
|
4525
|
+
"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.",
|
|
4526
|
+
"operationId": "designDeck",
|
|
4527
|
+
"tags": [
|
|
4528
|
+
"uncategorized"
|
|
4529
|
+
],
|
|
4530
|
+
"requestBody": {
|
|
4531
|
+
"required": false,
|
|
4532
|
+
"content": {
|
|
4533
|
+
"application/json": {
|
|
4534
|
+
"schema": {
|
|
4535
|
+
"type": "object",
|
|
4536
|
+
"properties": {
|
|
4537
|
+
"goal": {
|
|
4538
|
+
"type": "string",
|
|
4539
|
+
"description": "The deck to build, in plain language (topic, audience, and what it should cover)."
|
|
4540
|
+
},
|
|
4541
|
+
"projectId": {
|
|
4542
|
+
"type": "string",
|
|
4543
|
+
"description": "The project to create the deck in. Required when no deckId is given (a deck must live in a project)."
|
|
4544
|
+
},
|
|
4545
|
+
"title": {
|
|
4546
|
+
"type": "string",
|
|
4547
|
+
"description": "Optional deck title. If omitted, a clear title is derived from the goal."
|
|
4548
|
+
},
|
|
4549
|
+
"deckId": {
|
|
4550
|
+
"type": "string",
|
|
4551
|
+
"description": "Optional. An existing deck to rebuild. If omitted, a new deck is created in projectId."
|
|
4552
|
+
},
|
|
4553
|
+
"brandKitId": {
|
|
4554
|
+
"type": "string",
|
|
4555
|
+
"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."
|
|
4556
|
+
},
|
|
4557
|
+
"slideCount": {
|
|
4558
|
+
"type": "number",
|
|
4559
|
+
"description": "Optional target number of slides (the composer adjusts to fit the story). Typical 6 to 12."
|
|
4560
|
+
},
|
|
4561
|
+
"confirm": {
|
|
4562
|
+
"type": "boolean",
|
|
4563
|
+
"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."
|
|
4564
|
+
}
|
|
4565
|
+
},
|
|
4566
|
+
"required": [
|
|
4567
|
+
"goal",
|
|
4568
|
+
"projectId"
|
|
4569
|
+
]
|
|
4570
|
+
}
|
|
4571
|
+
}
|
|
4572
|
+
}
|
|
4573
|
+
},
|
|
4574
|
+
"responses": {
|
|
4575
|
+
"200": {
|
|
4576
|
+
"description": "Tool result (shape varies per tool — refer to the tool's docs for the exact return value).",
|
|
4577
|
+
"content": {
|
|
4578
|
+
"application/json": {
|
|
4579
|
+
"schema": {
|
|
4580
|
+
"type": "object",
|
|
4581
|
+
"additionalProperties": true
|
|
4582
|
+
}
|
|
4583
|
+
}
|
|
4584
|
+
}
|
|
4585
|
+
},
|
|
4586
|
+
"400": {
|
|
4587
|
+
"description": "Validation error.",
|
|
4588
|
+
"content": {
|
|
4589
|
+
"application/json": {
|
|
4590
|
+
"schema": {
|
|
4591
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4592
|
+
}
|
|
4593
|
+
}
|
|
4594
|
+
}
|
|
4595
|
+
},
|
|
4596
|
+
"401": {
|
|
4597
|
+
"description": "Missing or invalid credentials.",
|
|
4598
|
+
"content": {
|
|
4599
|
+
"application/json": {
|
|
4600
|
+
"schema": {
|
|
4601
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4602
|
+
}
|
|
4603
|
+
}
|
|
4604
|
+
}
|
|
4605
|
+
},
|
|
4606
|
+
"403": {
|
|
4607
|
+
"description": "Authenticated but lacking the required permission or feature flag.",
|
|
4608
|
+
"content": {
|
|
4609
|
+
"application/json": {
|
|
4610
|
+
"schema": {
|
|
4611
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4612
|
+
}
|
|
4613
|
+
}
|
|
4614
|
+
}
|
|
4615
|
+
},
|
|
4616
|
+
"404": {
|
|
4617
|
+
"description": "Resource not found.",
|
|
4618
|
+
"content": {
|
|
4619
|
+
"application/json": {
|
|
4620
|
+
"schema": {
|
|
4621
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4622
|
+
}
|
|
4623
|
+
}
|
|
4624
|
+
}
|
|
4625
|
+
},
|
|
4626
|
+
"422": {
|
|
4627
|
+
"description": "Body did not match the tool's input schema.",
|
|
4628
|
+
"content": {
|
|
4629
|
+
"application/json": {
|
|
4630
|
+
"schema": {
|
|
4631
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4632
|
+
}
|
|
4633
|
+
}
|
|
4634
|
+
}
|
|
4635
|
+
},
|
|
4636
|
+
"500": {
|
|
4637
|
+
"description": "Server error.",
|
|
4638
|
+
"content": {
|
|
4639
|
+
"application/json": {
|
|
4640
|
+
"schema": {
|
|
4641
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4642
|
+
}
|
|
4643
|
+
}
|
|
4644
|
+
}
|
|
4645
|
+
}
|
|
4646
|
+
}
|
|
4647
|
+
}
|
|
4648
|
+
},
|
|
4649
|
+
"/tools/editDeck": {
|
|
4650
|
+
"post": {
|
|
4651
|
+
"summary": "editDeck",
|
|
4652
|
+
"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.",
|
|
4653
|
+
"operationId": "editDeck",
|
|
4654
|
+
"tags": [
|
|
4655
|
+
"uncategorized"
|
|
4656
|
+
],
|
|
4657
|
+
"requestBody": {
|
|
4658
|
+
"required": false,
|
|
4659
|
+
"content": {
|
|
4660
|
+
"application/json": {
|
|
4661
|
+
"schema": {
|
|
4662
|
+
"type": "object",
|
|
4663
|
+
"properties": {
|
|
4664
|
+
"deckId": {
|
|
4665
|
+
"type": "string",
|
|
4666
|
+
"description": "The id of the finished deck to edit."
|
|
4667
|
+
},
|
|
4668
|
+
"instruction": {
|
|
4669
|
+
"type": "string",
|
|
4670
|
+
"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 ...')."
|
|
4671
|
+
},
|
|
4672
|
+
"slideIndex": {
|
|
4673
|
+
"type": "number",
|
|
4674
|
+
"description": "Optional 1-based slide number to focus the edit on. Omit to let the builder find the right slide(s) from the instruction."
|
|
4675
|
+
},
|
|
4676
|
+
"confirm": {
|
|
4677
|
+
"type": "boolean",
|
|
4678
|
+
"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."
|
|
4679
|
+
}
|
|
4680
|
+
},
|
|
4681
|
+
"required": [
|
|
4682
|
+
"deckId",
|
|
4683
|
+
"instruction"
|
|
4684
|
+
]
|
|
4685
|
+
}
|
|
4686
|
+
}
|
|
4687
|
+
}
|
|
4688
|
+
},
|
|
4689
|
+
"responses": {
|
|
4690
|
+
"200": {
|
|
4691
|
+
"description": "Tool result (shape varies per tool — refer to the tool's docs for the exact return value).",
|
|
4692
|
+
"content": {
|
|
4693
|
+
"application/json": {
|
|
4694
|
+
"schema": {
|
|
4695
|
+
"type": "object",
|
|
4696
|
+
"additionalProperties": true
|
|
4697
|
+
}
|
|
4698
|
+
}
|
|
4699
|
+
}
|
|
4700
|
+
},
|
|
4701
|
+
"400": {
|
|
4702
|
+
"description": "Validation error.",
|
|
4703
|
+
"content": {
|
|
4704
|
+
"application/json": {
|
|
4705
|
+
"schema": {
|
|
4706
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4707
|
+
}
|
|
4708
|
+
}
|
|
4709
|
+
}
|
|
4710
|
+
},
|
|
4711
|
+
"401": {
|
|
4712
|
+
"description": "Missing or invalid credentials.",
|
|
4713
|
+
"content": {
|
|
4714
|
+
"application/json": {
|
|
4715
|
+
"schema": {
|
|
4716
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4717
|
+
}
|
|
4718
|
+
}
|
|
4719
|
+
}
|
|
4720
|
+
},
|
|
4721
|
+
"403": {
|
|
4722
|
+
"description": "Authenticated but lacking the required permission or feature flag.",
|
|
4723
|
+
"content": {
|
|
4724
|
+
"application/json": {
|
|
4725
|
+
"schema": {
|
|
4726
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4727
|
+
}
|
|
4728
|
+
}
|
|
4729
|
+
}
|
|
4730
|
+
},
|
|
4731
|
+
"404": {
|
|
4732
|
+
"description": "Resource not found.",
|
|
4733
|
+
"content": {
|
|
4734
|
+
"application/json": {
|
|
4735
|
+
"schema": {
|
|
4736
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4737
|
+
}
|
|
4738
|
+
}
|
|
4739
|
+
}
|
|
4740
|
+
},
|
|
4741
|
+
"422": {
|
|
4742
|
+
"description": "Body did not match the tool's input schema.",
|
|
4743
|
+
"content": {
|
|
4744
|
+
"application/json": {
|
|
4745
|
+
"schema": {
|
|
4746
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4747
|
+
}
|
|
4748
|
+
}
|
|
4749
|
+
}
|
|
4750
|
+
},
|
|
4751
|
+
"500": {
|
|
4752
|
+
"description": "Server error.",
|
|
4753
|
+
"content": {
|
|
4754
|
+
"application/json": {
|
|
4755
|
+
"schema": {
|
|
4756
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4757
|
+
}
|
|
4758
|
+
}
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
}
|
|
4762
|
+
}
|
|
4763
|
+
},
|
|
4764
|
+
"/tools/insertDeckIntoWhiteboard": {
|
|
4765
|
+
"post": {
|
|
4766
|
+
"summary": "insertDeckIntoWhiteboard",
|
|
4767
|
+
"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.",
|
|
4768
|
+
"operationId": "insertDeckIntoWhiteboard",
|
|
4769
|
+
"tags": [
|
|
4770
|
+
"whiteboards"
|
|
4771
|
+
],
|
|
4772
|
+
"requestBody": {
|
|
4773
|
+
"required": false,
|
|
4774
|
+
"content": {
|
|
4775
|
+
"application/json": {
|
|
4776
|
+
"schema": {
|
|
4777
|
+
"type": "object",
|
|
4778
|
+
"properties": {
|
|
4779
|
+
"deckId": {
|
|
4780
|
+
"type": "string",
|
|
4781
|
+
"description": "The id of an existing, finished ('ready') deck whose slides to place on a whiteboard."
|
|
4782
|
+
},
|
|
4783
|
+
"documentId": {
|
|
4784
|
+
"type": "string",
|
|
4785
|
+
"description": "Optional existing whiteboard to place the slides on. When omitted, a new whiteboard is created in projectId."
|
|
4786
|
+
},
|
|
4787
|
+
"projectId": {
|
|
4788
|
+
"type": "string",
|
|
4789
|
+
"description": "Optional project to create the new whiteboard in when documentId is omitted. Defaults to the deck's own project."
|
|
4790
|
+
}
|
|
4791
|
+
},
|
|
4792
|
+
"required": [
|
|
4793
|
+
"deckId"
|
|
4794
|
+
]
|
|
4795
|
+
}
|
|
4796
|
+
}
|
|
4797
|
+
}
|
|
4798
|
+
},
|
|
4799
|
+
"responses": {
|
|
4800
|
+
"200": {
|
|
4801
|
+
"description": "Tool result (shape varies per tool — refer to the tool's docs for the exact return value).",
|
|
4802
|
+
"content": {
|
|
4803
|
+
"application/json": {
|
|
4804
|
+
"schema": {
|
|
4805
|
+
"type": "object",
|
|
4806
|
+
"additionalProperties": true
|
|
4807
|
+
}
|
|
4808
|
+
}
|
|
4809
|
+
}
|
|
4810
|
+
},
|
|
4811
|
+
"400": {
|
|
4812
|
+
"description": "Validation error.",
|
|
4813
|
+
"content": {
|
|
4814
|
+
"application/json": {
|
|
4815
|
+
"schema": {
|
|
4816
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4817
|
+
}
|
|
4818
|
+
}
|
|
4819
|
+
}
|
|
4820
|
+
},
|
|
4821
|
+
"401": {
|
|
4822
|
+
"description": "Missing or invalid credentials.",
|
|
4823
|
+
"content": {
|
|
4824
|
+
"application/json": {
|
|
4825
|
+
"schema": {
|
|
4826
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4827
|
+
}
|
|
4828
|
+
}
|
|
4829
|
+
}
|
|
4830
|
+
},
|
|
4831
|
+
"403": {
|
|
4832
|
+
"description": "Authenticated but lacking the required permission or feature flag.",
|
|
4833
|
+
"content": {
|
|
4834
|
+
"application/json": {
|
|
4835
|
+
"schema": {
|
|
4836
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4837
|
+
}
|
|
4838
|
+
}
|
|
4839
|
+
}
|
|
4840
|
+
},
|
|
4841
|
+
"404": {
|
|
4842
|
+
"description": "Resource not found.",
|
|
4843
|
+
"content": {
|
|
4844
|
+
"application/json": {
|
|
4845
|
+
"schema": {
|
|
4846
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4847
|
+
}
|
|
4848
|
+
}
|
|
4849
|
+
}
|
|
4850
|
+
},
|
|
4851
|
+
"422": {
|
|
4852
|
+
"description": "Body did not match the tool's input schema.",
|
|
4853
|
+
"content": {
|
|
4854
|
+
"application/json": {
|
|
4855
|
+
"schema": {
|
|
4856
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4857
|
+
}
|
|
4858
|
+
}
|
|
4859
|
+
}
|
|
4860
|
+
},
|
|
4861
|
+
"500": {
|
|
4862
|
+
"description": "Server error.",
|
|
4863
|
+
"content": {
|
|
4864
|
+
"application/json": {
|
|
4865
|
+
"schema": {
|
|
4866
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4867
|
+
}
|
|
4868
|
+
}
|
|
4869
|
+
}
|
|
4870
|
+
}
|
|
4871
|
+
}
|
|
4872
|
+
}
|
|
4873
|
+
},
|
|
4284
4874
|
"/tools/createWhiteboard": {
|
|
4285
4875
|
"post": {
|
|
4286
4876
|
"summary": "createWhiteboard",
|
|
@@ -4958,9 +5548,6 @@
|
|
|
4958
5548
|
}
|
|
4959
5549
|
}
|
|
4960
5550
|
},
|
|
4961
|
-
"required": [
|
|
4962
|
-
"type"
|
|
4963
|
-
],
|
|
4964
5551
|
"additionalProperties": true
|
|
4965
5552
|
},
|
|
4966
5553
|
"minItems": 1
|
|
@@ -6380,7 +6967,7 @@
|
|
|
6380
6967
|
"/tools/rebuildPlatformCatalogEmbeddings": {
|
|
6381
6968
|
"post": {
|
|
6382
6969
|
"summary": "rebuildPlatformCatalogEmbeddings",
|
|
6383
|
-
"description": "Internal maintenance (requires write). Syncs gte-small (384-dim) vector embeddings for
|
|
6970
|
+
"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.",
|
|
6384
6971
|
"operationId": "rebuildPlatformCatalogEmbeddings",
|
|
6385
6972
|
"tags": [
|
|
6386
6973
|
"settings"
|
|
@@ -6399,10 +6986,13 @@
|
|
|
6399
6986
|
"enum": [
|
|
6400
6987
|
"tool",
|
|
6401
6988
|
"stencil",
|
|
6402
|
-
"icon"
|
|
6989
|
+
"icon",
|
|
6990
|
+
"infographic_template",
|
|
6991
|
+
"whiteboard_component",
|
|
6992
|
+
"skill"
|
|
6403
6993
|
]
|
|
6404
6994
|
},
|
|
6405
|
-
"description": "Which catalogs to sync. Defaults to all
|
|
6995
|
+
"description": "Which catalogs to sync. Defaults to all six (tool, stencil, icon, infographic_template, whiteboard_component, skill)."
|
|
6406
6996
|
}
|
|
6407
6997
|
}
|
|
6408
6998
|
}
|
|
@@ -22041,7 +22631,7 @@
|
|
|
22041
22631
|
"/tools/createBrandKit": {
|
|
22042
22632
|
"post": {
|
|
22043
22633
|
"summary": "createBrandKit",
|
|
22044
|
-
"description": "Create a per-org BRAND KIT
|
|
22634
|
+
"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.",
|
|
22045
22635
|
"operationId": "createBrandKit",
|
|
22046
22636
|
"tags": [
|
|
22047
22637
|
"uncategorized"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stablebaseline/sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "TypeScript SDK for the Stable Baseline REST API. End-to-end agent-managed company brain — docs, diagrams, plans, and a self-learning Knowledge Graph. 184 tools across 19 categories.",
|
|
5
5
|
"homepage": "https://stablebaseline.io",
|
|
6
6
|
"repository": {
|