@widgetic/api-contracts 1.11.131 → 1.11.135

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/metadata.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "package": "@widgetic/api-contracts",
3
- "version": "1.11.131",
3
+ "version": "1.11.135",
4
4
  "publishTag": "latest",
5
5
  "source": {
6
- "commit": "9e94404618a92b7b3100cd94111d94360487bf29",
6
+ "commit": "9b6c664a45d6c51a08412dabcd4917d34fc41bf5",
7
7
  "branch": null,
8
8
  "dirty": false,
9
9
  "atOriginMain": true
10
10
  },
11
11
  "openApi": {
12
12
  "file": "openapi-public.json",
13
- "sha256": "a9a488ffb40727a48e4fc7f43145fa804cf39f28e66d1c19127f7363996fb013",
13
+ "sha256": "1cdc03eeea38139717d9303a1cc8fc3dd424f9c13a98875da8d7582cc824e5fd",
14
14
  "paths": 124,
15
15
  "operations": 169,
16
16
  "servers": [
@@ -19,9 +19,9 @@
19
19
  },
20
20
  "mcp": {
21
21
  "file": "mcp-tools.json",
22
- "sha256": "8a41c548e6453e71d593eb6eadacd0a4265deb0be09ae85e984e43cbca2c5411",
23
- "contractVersion": "1.22.0",
22
+ "sha256": "bf343b62ce591b2979d7a37f654280b62748be1475c47bec28651681b8d6fd71",
23
+ "contractVersion": "1.24.0",
24
24
  "serverName": "widgetic",
25
- "tools": 48
25
+ "tools": 56
26
26
  }
27
27
  }
@@ -16452,7 +16452,7 @@
16452
16452
  "put": {
16453
16453
  "operationId": "putBrandKit",
16454
16454
  "summary": "Save Brand Kit tokens",
16455
- "description": "Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.",
16455
+ "description": "Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH.",
16456
16456
  "tags": [
16457
16457
  "Brand Kit"
16458
16458
  ],
@@ -16549,7 +16549,7 @@
16549
16549
  "patch": {
16550
16550
  "operationId": "patchBrandKit",
16551
16551
  "summary": "Change part of the Brand Kit",
16552
- "description": "Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic's default one. The response lists what is worth fixing in `warnings`.",
16552
+ "description": "Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic's default one. The response lists what is worth fixing in `warnings`.",
16553
16553
  "tags": [
16554
16554
  "Brand Kit"
16555
16555
  ],
@@ -25493,6 +25493,46 @@
25493
25493
  "sizeMax": 42
25494
25494
  }
25495
25495
  },
25496
+ "BrandTextStyle": {
25497
+ "type": "object",
25498
+ "required": [
25499
+ "family",
25500
+ "weight",
25501
+ "size"
25502
+ ],
25503
+ "description": "One text style of the kit: a font family, a weight and a size in pixels, for example Inter 400 at 12px or Inter 500 at 18px. A family with a font file in the kit is an uploaded font; any other family is loaded from Google Fonts. The size is the size of the widget at full size.",
25504
+ "properties": {
25505
+ "family": {
25506
+ "type": "string",
25507
+ "minLength": 1,
25508
+ "maxLength": 80
25509
+ },
25510
+ "weight": {
25511
+ "type": "integer",
25512
+ "enum": [
25513
+ 100,
25514
+ 200,
25515
+ 300,
25516
+ 400,
25517
+ 500,
25518
+ 600,
25519
+ 700,
25520
+ 800,
25521
+ 900
25522
+ ]
25523
+ },
25524
+ "size": {
25525
+ "type": "integer",
25526
+ "minimum": 8,
25527
+ "maximum": 200
25528
+ }
25529
+ },
25530
+ "example": {
25531
+ "family": "Example family",
25532
+ "weight": 42,
25533
+ "size": 42
25534
+ }
25535
+ },
25496
25536
  "BrandSpacing": {
25497
25537
  "type": "object",
25498
25538
  "required": [
@@ -25565,7 +25605,7 @@
25565
25605
  "fonts",
25566
25606
  "spacing"
25567
25607
  ],
25568
- "description": "Colors, fonts by role, spacing and corner radii of a Brand Kit.",
25608
+ "description": "Colors, fonts by role, text styles, spacing and corner radii of a Brand Kit.",
25569
25609
  "properties": {
25570
25610
  "colors": {
25571
25611
  "type": "array",
@@ -25591,6 +25631,14 @@
25591
25631
  }
25592
25632
  }
25593
25633
  },
25634
+ "textStyles": {
25635
+ "type": "array",
25636
+ "maxItems": 12,
25637
+ "description": "The owner's text styles (family, weight and size). When there are some, they are what every widget made with the kit is told about type and the fonts by role are not used; with none, the fonts by role apply. A font file that is deleted takes the text styles made from it with it. Left out when the kit has none.",
25638
+ "items": {
25639
+ "$ref": "#/components/schemas/BrandTextStyle"
25640
+ }
25641
+ },
25594
25642
  "spacing": {
25595
25643
  "$ref": "#/components/schemas/BrandSpacing"
25596
25644
  },
@@ -25605,6 +25653,9 @@
25605
25653
  "Example BrandColor"
25606
25654
  ],
25607
25655
  "fonts": {},
25656
+ "textStyles": [
25657
+ "Example BrandTextStyle"
25658
+ ],
25608
25659
  "spacing": null,
25609
25660
  "instructions": "Example instructions"
25610
25661
  }
@@ -25794,7 +25845,7 @@
25794
25845
  },
25795
25846
  "warnings": {
25796
25847
  "type": "array",
25797
- "description": "Things worth fixing in the saved colors, such as a text color that is hard to read on the background. The kit is saved either way.",
25848
+ "description": "Things worth fixing in the saved kit, such as a text color that is hard to read on the background, or fonts by role that are not used because the kit has text styles. The kit is saved either way.",
25798
25849
  "items": {
25799
25850
  "type": "string"
25800
25851
  }
@@ -25869,6 +25920,14 @@
25869
25920
  }
25870
25921
  }
25871
25922
  },
25923
+ "textStyles": {
25924
+ "type": "array",
25925
+ "maxItems": 12,
25926
+ "description": "The whole list of text styles (it replaces the saved list). An empty list removes them, and the fonts by role apply again. Left out, the saved text styles stay as they are.",
25927
+ "items": {
25928
+ "$ref": "#/components/schemas/BrandTextStyle"
25929
+ }
25930
+ },
25872
25931
  "spacing": {
25873
25932
  "type": "object",
25874
25933
  "description": "The spacing and radius steps to change; the steps that are left out keep their value.",
@@ -26079,7 +26138,8 @@
26079
26138
  "look",
26080
26139
  "motion",
26081
26140
  "improvements",
26082
- "notes"
26141
+ "notes",
26142
+ "elements"
26083
26143
  ],
26084
26144
  "description": "What the plan decided, for the client to show as it likes (chips, a list, a summary).",
26085
26145
  "properties": {
@@ -26174,6 +26234,13 @@
26174
26234
  "maxLength": 120
26175
26235
  }
26176
26236
  }
26237
+ },
26238
+ "elements": {
26239
+ "type": "array",
26240
+ "items": {
26241
+ "type": "string"
26242
+ },
26243
+ "description": "What a Convert-to-Widget sketch shows: one short phrase per drawn element, in layout order. Empty when the request has no sketch. At most 12."
26177
26244
  }
26178
26245
  }
26179
26246
  },
@@ -28049,7 +28116,7 @@
28049
28116
  "metadata": {
28050
28117
  "type": "object",
28051
28118
  "additionalProperties": true,
28052
- "description": "What the operation tells about its work. A finished composition duplication names the new composition in `newCompositionId`, and lists any problem with its database in `warnings` (absent when there is none). A code generation whose request declared `clientCapabilities` also tells what that client asked to show: `plan` while it builds, `outcome` `needs_answers` with the card in `clarification` when it asked before building, and `nextSteps` once it is done. A key whose part the client did not declare is never present.\n",
28119
+ "description": "What the operation tells about its work. A finished composition duplication names the new composition in `newCompositionId`, and lists any problem with its database in `warnings` (absent when there is none). A code generation whose request declared `clientCapabilities` also tells what that client asked to show: `plan` while it builds, `outcome` `needs_answers` with the card in `clarification` when it asked before building, and `nextSteps` once it is done. A key whose part the client did not declare is never present. During code generation, `stage` is a short status line. While the model streams code, `streamTail` holds the last portion of generated source (replaced periodically, cleared when streaming ends). While the model streams reasoning before code, `thinkingTail` holds the last portion of reasoning text (same cadence; cleared when code streaming starts or the run ends). Clients may read `thinkingTail` or `thinking_tail`.\n",
28053
28120
  "properties": {
28054
28121
  "plan": {
28055
28122
  "nullable": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widgetic/api-contracts",
3
- "version": "1.11.131",
3
+ "version": "1.11.135",
4
4
  "description": "What the Widgetic API and the Widgetic MCP server accept, as data: the public OpenAPI description and the MCP tool contract. Written by the Widgetic API gateway; the Widgetic CLI is generated from it.",
5
5
  "author": "Widgetic",
6
6
  "license": "SEE LICENSE IN LICENSE",