@cloudcrane/app-spec 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +22 -2
- package/dist/src/a2ui.d.ts +12 -0
- package/dist/src/a2ui.js +89 -0
- package/dist/src/blueprint.d.ts +27 -0
- package/dist/src/blueprint.js +62 -0
- package/dist/src/canonical.d.ts +2 -0
- package/dist/src/canonical.js +8 -0
- package/dist/src/catalog.d.ts +7 -0
- package/dist/src/catalog.js +83 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/index.js +11 -0
- package/dist/src/jsonschema.d.ts +2 -0
- package/dist/src/jsonschema.js +11 -0
- package/dist/src/leak.d.ts +3 -0
- package/dist/src/leak.js +141 -0
- package/dist/src/logic.d.ts +36 -0
- package/dist/src/logic.js +197 -0
- package/dist/src/schema.d.ts +418 -0
- package/dist/src/schema.js +137 -0
- package/dist/src/validate.d.ts +6 -0
- package/dist/src/validate.js +54 -0
- package/dist/vendor/a2ui/v0_9_1/catalogs/basic/catalog.json +1383 -0
- package/dist/vendor/a2ui/v0_9_1/common_types.json +305 -0
- package/dist/vendor/a2ui/v0_9_1/server_to_client.json +131 -0
- package/package.json +78 -3
- package/schema/app-spec.v1.json +460 -0
- package/vendor/a2ui/v0_9_1/LICENSE +227 -0
- package/vendor/a2ui/v0_9_1/VENDOR.json +6 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/catalog.json +1383 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/00_complex-layout.json +65 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/00_formatted-text.json +56 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/00_incremental.json +134 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/00_interactive-button.json +51 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/00_row-layout.json +40 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/00_simple-login-form.json +77 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/00_simple-text.json +27 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/01_flight-status.json +201 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/02_email-compose.json +185 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/03_calendar-day.json +166 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/04_weather-current.json +168 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/05_product-card.json +151 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/06_music-player.json +165 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/07_task-card.json +107 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/08_user-profile.json +190 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/09_login-form.json +214 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/10_notification-permission.json +105 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/11_purchase-complete.json +169 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/12_chat-message.json +144 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/13_coffee-order.json +253 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/14_sports-player.json +177 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/15_account-balance.json +126 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/16_workout-summary.json +160 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/17_event-detail.json +144 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/18_track-list.json +152 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/19_software-purchase.json +194 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/20_restaurant-card.json +140 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/21_shipping-status.json +137 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/22_credit-card.json +117 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/23_step-counter.json +149 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/24_recipe-card.json +204 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/25_contact-card.json +175 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/26_podcast-episode.json +123 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/27_stats-card.json +106 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/28_countdown-timer.json +135 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/29_movie-card.json +156 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/30_live-invitation-builder.json +205 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/31_incremental-dashboard.json +128 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/32_advanced-form-validator.json +166 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/33_financial-data-grid.json +171 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/34_child-list-template.json +80 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/35_markdown-text.json +44 -0
- package/vendor/a2ui/v0_9_1/catalogs/basic/examples/36_modal.json +65 -0
- package/vendor/a2ui/v0_9_1/client_capabilities.json +89 -0
- package/vendor/a2ui/v0_9_1/client_data_model.json +22 -0
- package/vendor/a2ui/v0_9_1/client_to_server.json +98 -0
- package/vendor/a2ui/v0_9_1/client_to_server_list.json +10 -0
- package/vendor/a2ui/v0_9_1/client_to_server_list_wrapper.json +14 -0
- package/vendor/a2ui/v0_9_1/common_types.json +305 -0
- package/vendor/a2ui/v0_9_1/sample.json +22 -0
- package/vendor/a2ui/v0_9_1/server_capabilities.json +26 -0
- package/vendor/a2ui/v0_9_1/server_to_client.json +132 -0
- package/vendor/a2ui/v0_9_1/server_to_client_list.json +10 -0
- package/vendor/a2ui/v0_9_1/server_to_client_list_wrapper.json +14 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ChildList Template Expansion",
|
|
3
|
+
"description": "Demonstrates dynamic list generation using ChildList object templates.",
|
|
4
|
+
"messages": [
|
|
5
|
+
{
|
|
6
|
+
"version": "v0.9",
|
|
7
|
+
"createSurface": {
|
|
8
|
+
"surfaceId": "gallery-child-list-template",
|
|
9
|
+
"catalogId": "https://a2ui.org/specification/v0_9/catalogs/basic/catalog.json",
|
|
10
|
+
"sendDataModel": true
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"version": "v0.9",
|
|
15
|
+
"updateComponents": {
|
|
16
|
+
"surfaceId": "gallery-child-list-template",
|
|
17
|
+
"components": [
|
|
18
|
+
{
|
|
19
|
+
"id": "root",
|
|
20
|
+
"component": "Card",
|
|
21
|
+
"child": "main-column"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "main-column",
|
|
25
|
+
"component": "Column",
|
|
26
|
+
"children": ["title-text", "item-list"],
|
|
27
|
+
"align": "stretch"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "title-text",
|
|
31
|
+
"component": "Text",
|
|
32
|
+
"text": "Dynamic Item List",
|
|
33
|
+
"variant": "h3"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "item-list",
|
|
37
|
+
"component": "List",
|
|
38
|
+
"children": {
|
|
39
|
+
"componentId": "item-row",
|
|
40
|
+
"path": "/items"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "item-row",
|
|
45
|
+
"component": "Row",
|
|
46
|
+
"children": ["item-name", "qty-label", "item-qty"]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "item-name",
|
|
50
|
+
"component": "Text",
|
|
51
|
+
"text": {"path": "name"}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "qty-label",
|
|
55
|
+
"component": "Text",
|
|
56
|
+
"text": " - Qty: "
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "item-qty",
|
|
60
|
+
"component": "Text",
|
|
61
|
+
"text": {"path": "quantity"}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"version": "v0.9",
|
|
68
|
+
"updateDataModel": {
|
|
69
|
+
"surfaceId": "gallery-child-list-template",
|
|
70
|
+
"value": {
|
|
71
|
+
"items": [
|
|
72
|
+
{"name": "Apple", "quantity": 10},
|
|
73
|
+
{"name": "Banana", "quantity": 5},
|
|
74
|
+
{"name": "Cherry", "quantity": 20}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Markdown Text Support",
|
|
3
|
+
"description": "Demonstrates Markdown rendering in Text component.",
|
|
4
|
+
"messages": [
|
|
5
|
+
{
|
|
6
|
+
"version": "v0.9",
|
|
7
|
+
"createSurface": {
|
|
8
|
+
"surfaceId": "gallery-markdown-text",
|
|
9
|
+
"catalogId": "https://a2ui.org/specification/v0_9/catalogs/basic/catalog.json",
|
|
10
|
+
"sendDataModel": true
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"version": "v0.9",
|
|
15
|
+
"updateComponents": {
|
|
16
|
+
"surfaceId": "gallery-markdown-text",
|
|
17
|
+
"components": [
|
|
18
|
+
{
|
|
19
|
+
"id": "root",
|
|
20
|
+
"component": "Card",
|
|
21
|
+
"child": "main-column"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "main-column",
|
|
25
|
+
"component": "Column",
|
|
26
|
+
"children": ["title-text", "markdown-content"],
|
|
27
|
+
"align": "stretch"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "title-text",
|
|
31
|
+
"component": "Text",
|
|
32
|
+
"text": "Markdown Rendering",
|
|
33
|
+
"variant": "h3"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "markdown-content",
|
|
37
|
+
"component": "Text",
|
|
38
|
+
"text": "# Heading 1\n\nThis is **bold** text and *italic* text.\n\n- List item 1\n- List item 2\n\n[Link to Google](https://google.com)"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Modal Sample",
|
|
3
|
+
"description": "Example of Modal component showing a trigger and content.",
|
|
4
|
+
"messages": [
|
|
5
|
+
{
|
|
6
|
+
"version": "v0.9",
|
|
7
|
+
"createSurface": {
|
|
8
|
+
"surfaceId": "modal-sample-surface",
|
|
9
|
+
"catalogId": "https://a2ui.org/specification/v0_9/catalogs/basic/catalog.json",
|
|
10
|
+
"sendDataModel": true
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"version": "v0.9",
|
|
15
|
+
"updateComponents": {
|
|
16
|
+
"surfaceId": "modal-sample-surface",
|
|
17
|
+
"components": [
|
|
18
|
+
{
|
|
19
|
+
"id": "root",
|
|
20
|
+
"component": "Column",
|
|
21
|
+
"children": ["title", "modal-comp"]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "title",
|
|
25
|
+
"component": "Text",
|
|
26
|
+
"text": "Modal Component Sample",
|
|
27
|
+
"variant": "h2"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "modal-comp",
|
|
31
|
+
"component": "Modal",
|
|
32
|
+
"trigger": "open-btn",
|
|
33
|
+
"content": "modal-content"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "open-btn-text",
|
|
37
|
+
"component": "Text",
|
|
38
|
+
"text": "Open Modal"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "open-btn",
|
|
42
|
+
"component": "Button",
|
|
43
|
+
"child": "open-btn-text",
|
|
44
|
+
"action": {
|
|
45
|
+
"event": {
|
|
46
|
+
"name": "openModalEvent",
|
|
47
|
+
"context": {}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "modal-content",
|
|
53
|
+
"component": "Column",
|
|
54
|
+
"children": ["modal-text"]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": "modal-text",
|
|
58
|
+
"component": "Text",
|
|
59
|
+
"text": "This is the content inside the modal."
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://a2ui.org/specification/v0_9/client_capabilities.json",
|
|
4
|
+
"title": "A2UI Client Capabilities Schema",
|
|
5
|
+
"description": "A schema for the a2uiClientCapabilities object, which is sent from the client to the server as part of the A2A metadata to describe the client's UI rendering capabilities.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"v0.9": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"description": "The capabilities structure for version 0.9 of the A2UI protocol.",
|
|
11
|
+
"properties": {
|
|
12
|
+
"supportedCatalogIds": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"description": "An array of string identifiers for each of the component and function catalogs supported by the client.",
|
|
15
|
+
"items": {"type": "string"}
|
|
16
|
+
},
|
|
17
|
+
"inlineCatalogs": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"description": "An array of inline catalog definitions, which can contain both components and functions. This should only be provided if the agent declares 'acceptsInlineCatalogs: true' in its capabilities.",
|
|
20
|
+
"items": {"$ref": "#/$defs/Catalog"}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": ["supportedCatalogIds"]
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": ["v0.9"],
|
|
27
|
+
"$defs": {
|
|
28
|
+
"FunctionDefinition": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"description": "Describes a function's interface.",
|
|
31
|
+
"properties": {
|
|
32
|
+
"name": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "The unique name of the function."
|
|
35
|
+
},
|
|
36
|
+
"description": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "A human-readable description of what the function does and how to use it."
|
|
39
|
+
},
|
|
40
|
+
"parameters": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"description": "A JSON Schema describing the expected arguments (args) for this function.",
|
|
43
|
+
"$ref": "https://json-schema.org/draft/2020-12/schema"
|
|
44
|
+
},
|
|
45
|
+
"returnType": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"enum": ["string", "number", "boolean", "array", "object", "any", "void"],
|
|
48
|
+
"description": "The type of value this function returns."
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": ["name", "parameters", "returnType"],
|
|
52
|
+
"additionalProperties": false
|
|
53
|
+
},
|
|
54
|
+
"Catalog": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"description": "A collection of component and function definitions.",
|
|
57
|
+
"properties": {
|
|
58
|
+
"catalogId": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "Unique identifier for this catalog."
|
|
61
|
+
},
|
|
62
|
+
"components": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"description": "Definitions for UI components supported by this catalog.",
|
|
65
|
+
"additionalProperties": {
|
|
66
|
+
"$ref": "https://json-schema.org/draft/2020-12/schema"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"functions": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"description": "Definitions for functions supported by this catalog.",
|
|
72
|
+
"items": {
|
|
73
|
+
"$ref": "#/$defs/FunctionDefinition"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"theme": {
|
|
77
|
+
"title": "A2UI Theme",
|
|
78
|
+
"description": "A schema that defines a catalog of A2UI theme properties. Each key is a theme property name (e.g. 'primaryColor'), and each value is the JSON schema for that property.",
|
|
79
|
+
"type": "object",
|
|
80
|
+
"additionalProperties": {
|
|
81
|
+
"$ref": "https://json-schema.org/draft/2020-12/schema"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"required": ["catalogId"],
|
|
86
|
+
"additionalProperties": false
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://a2ui.org/specification/v0_9/client_data_model.json",
|
|
4
|
+
"title": "A2UI Client Data Model Schema",
|
|
5
|
+
"description": "Schema for attaching the client data model to A2A message metadata. This object should be placed in the `a2uiClientDataModel` field of the metadata.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"version": {
|
|
9
|
+
"enum": ["v0.9", "v0.9.1"]
|
|
10
|
+
},
|
|
11
|
+
"surfaces": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"description": "A map of surface IDs to their current data models.",
|
|
14
|
+
"additionalProperties": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"description": "The current data model for the surface, as a standard JSON object."
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": ["version", "surfaces"],
|
|
21
|
+
"additionalProperties": false
|
|
22
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "A2UI (Agent to UI) Client-to-Server Event Schema",
|
|
3
|
+
"description": "Describes a JSON payload for a client-to-server event message.",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"minProperties": 2,
|
|
6
|
+
"maxProperties": 2,
|
|
7
|
+
"properties": {
|
|
8
|
+
"version": {
|
|
9
|
+
"enum": ["v0.9", "v0.9.1"]
|
|
10
|
+
},
|
|
11
|
+
"action": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"description": "Reports a user-initiated action from a component.",
|
|
14
|
+
"properties": {
|
|
15
|
+
"name": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The name of the action, taken from the component's action.event.name property."
|
|
18
|
+
},
|
|
19
|
+
"surfaceId": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The id of the surface where the event originated."
|
|
22
|
+
},
|
|
23
|
+
"sourceComponentId": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "The id of the component that triggered the event."
|
|
26
|
+
},
|
|
27
|
+
"timestamp": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"format": "date-time",
|
|
30
|
+
"description": "An ISO 8601 timestamp of when the event occurred."
|
|
31
|
+
},
|
|
32
|
+
"context": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"description": "A JSON object containing the key-value pairs from the component's action.event.context, after resolving all data bindings.",
|
|
35
|
+
"additionalProperties": true
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"required": ["name", "surfaceId", "sourceComponentId", "timestamp", "context"]
|
|
39
|
+
},
|
|
40
|
+
"error": {
|
|
41
|
+
"description": "Reports a client-side error.",
|
|
42
|
+
"oneOf": [
|
|
43
|
+
{
|
|
44
|
+
"type": "object",
|
|
45
|
+
"title": "Validation Failed Error",
|
|
46
|
+
"properties": {
|
|
47
|
+
"code": {
|
|
48
|
+
"const": "VALIDATION_FAILED"
|
|
49
|
+
},
|
|
50
|
+
"surfaceId": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "The id of the surface where the error occurred."
|
|
53
|
+
},
|
|
54
|
+
"path": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "The JSON pointer to the field that failed validation (e.g. '/components/0/text')."
|
|
57
|
+
},
|
|
58
|
+
"message": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "A short one or two sentence description of why validation failed."
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": ["code", "path", "message", "surfaceId"],
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "object",
|
|
68
|
+
"title": "Generic Error",
|
|
69
|
+
"properties": {
|
|
70
|
+
"code": {
|
|
71
|
+
"not": {
|
|
72
|
+
"const": "VALIDATION_FAILED"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"message": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"description": "A short one or two sentence description of why the error occurred."
|
|
78
|
+
},
|
|
79
|
+
"surfaceId": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "The id of the surface where the error occurred."
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"required": ["code", "surfaceId", "message"],
|
|
85
|
+
"additionalProperties": true
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"oneOf": [
|
|
91
|
+
{
|
|
92
|
+
"required": ["action", "version"]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"required": ["error", "version"]
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://a2ui.org/specification/v0_9/client_to_server_list.json",
|
|
4
|
+
"title": "A2UI Client-to-Server Message List",
|
|
5
|
+
"description": "A list of A2UI Client-to-Server messages.",
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"$ref": "client_to_server.json"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://a2ui.org/specification/v0_9/client_to_server_list_wrapper.json",
|
|
4
|
+
"title": "A2UI Client-to-Server Message List Wrapper",
|
|
5
|
+
"description": "An object wrapping a list of A2UI Client-to-Server messages. Intended for protocols that require a top-level JSON object instead of a raw array.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"messages": {
|
|
9
|
+
"$ref": "client_to_server_list.json"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"required": ["messages"]
|
|
14
|
+
}
|