@simai-studio/chat 0.0.0-stage → 1.0.0
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.md +182 -0
- package/README.md +65 -2
- package/dist/package-receipt.json +1551 -0
- package/dist/set.json +105 -0
- package/dist/smart/chat-composer/aliases.json +56 -0
- package/dist/smart/chat-composer/aliases.json.gz +0 -0
- package/dist/smart/chat-composer/component.json +658 -0
- package/dist/smart/chat-composer/component.json.gz +0 -0
- package/dist/smart/chat-composer/css/chat-composer.css +318 -0
- package/dist/smart/chat-composer/css/chat-composer.css.gz +0 -0
- package/dist/smart/chat-composer/css/chat-composer.min.css +2 -0
- package/dist/smart/chat-composer/css/chat-composer.min.css.gz +0 -0
- package/dist/smart/chat-composer/examples.json +531 -0
- package/dist/smart/chat-composer/examples.json.gz +0 -0
- package/dist/smart/chat-composer/js/chat-composer.js +1023 -0
- package/dist/smart/chat-composer/js/chat-composer.js.gz +0 -0
- package/dist/smart/chat-composer/js/chat-composer.min.js +75 -0
- package/dist/smart/chat-composer/js/chat-composer.min.js.gz +0 -0
- package/dist/smart/chat-composer/lang/en.json +31 -0
- package/dist/smart/chat-composer/lang/en.json.gz +0 -0
- package/dist/smart/chat-composer/lang/ru.json +31 -0
- package/dist/smart/chat-composer/lang/ru.json.gz +0 -0
- package/dist/smart/chat-composer/probe.json +400 -0
- package/dist/smart/chat-composer/probe.json.gz +0 -0
- package/dist/smart/chat-composer/smart.manifest.json +625 -0
- package/dist/smart/chat-composer/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-composer/static/default/busy.html +20 -0
- package/dist/smart/chat-composer/static/default/busy.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/disabled.html +20 -0
- package/dist/smart/chat-composer/static/default/disabled.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/files.html +44 -0
- package/dist/smart/chat-composer/static/default/files.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/near-limit.html +20 -0
- package/dist/smart/chat-composer/static/default/near-limit.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/reference.html +20 -0
- package/dist/smart/chat-composer/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-composer/static/sheets.json +88 -0
- package/dist/smart/chat-composer/static/sheets.json.gz +0 -0
- package/dist/smart/chat-composer/studio.fixture.json +18 -0
- package/dist/smart/chat-composer/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-composer/studio.scenario.json +37 -0
- package/dist/smart/chat-composer/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-composer/template/default.css +273 -0
- package/dist/smart/chat-composer/template/default.css.gz +0 -0
- package/dist/smart/chat-composer/template/default.js +109 -0
- package/dist/smart/chat-composer/template/default.js.gz +0 -0
- package/dist/smart/chat-composer/template/parts.js +82 -0
- package/dist/smart/chat-composer/template/parts.js.gz +0 -0
- package/dist/smart/chat-interlocutor/aliases.json +20 -0
- package/dist/smart/chat-interlocutor/aliases.json.gz +0 -0
- package/dist/smart/chat-interlocutor/component.json +435 -0
- package/dist/smart/chat-interlocutor/component.json.gz +0 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.css +107 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.css.gz +0 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css +2 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css.gz +0 -0
- package/dist/smart/chat-interlocutor/examples.json +379 -0
- package/dist/smart/chat-interlocutor/examples.json.gz +0 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.js +531 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.js.gz +0 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js +22 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js.gz +0 -0
- package/dist/smart/chat-interlocutor/lang/en.json +13 -0
- package/dist/smart/chat-interlocutor/lang/en.json.gz +0 -0
- package/dist/smart/chat-interlocutor/lang/ru.json +13 -0
- package/dist/smart/chat-interlocutor/lang/ru.json.gz +0 -0
- package/dist/smart/chat-interlocutor/probe.json +204 -0
- package/dist/smart/chat-interlocutor/probe.json.gz +0 -0
- package/dist/smart/chat-interlocutor/smart.manifest.json +406 -0
- package/dist/smart/chat-interlocutor/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/former.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/former.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/grouped.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/grouped.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/reference.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/single.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/single.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/sheets.json +105 -0
- package/dist/smart/chat-interlocutor/static/sheets.json.gz +0 -0
- package/dist/smart/chat-interlocutor/studio.fixture.json +25 -0
- package/dist/smart/chat-interlocutor/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-interlocutor/studio.scenario.json +41 -0
- package/dist/smart/chat-interlocutor/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-interlocutor/template/default.css +58 -0
- package/dist/smart/chat-interlocutor/template/default.css.gz +0 -0
- package/dist/smart/chat-interlocutor/template/default.js +43 -0
- package/dist/smart/chat-interlocutor/template/default.js.gz +0 -0
- package/dist/smart/chat-message/aliases.json +114 -0
- package/dist/smart/chat-message/aliases.json.gz +0 -0
- package/dist/smart/chat-message/component.json +822 -0
- package/dist/smart/chat-message/component.json.gz +0 -0
- package/dist/smart/chat-message/css/chat-message.css +3291 -0
- package/dist/smart/chat-message/css/chat-message.css.gz +0 -0
- package/dist/smart/chat-message/css/chat-message.min.css +2 -0
- package/dist/smart/chat-message/css/chat-message.min.css.gz +0 -0
- package/dist/smart/chat-message/examples.json +1604 -0
- package/dist/smart/chat-message/examples.json.gz +0 -0
- package/dist/smart/chat-message/js/chat-message.js +5498 -0
- package/dist/smart/chat-message/js/chat-message.js.gz +0 -0
- package/dist/smart/chat-message/js/chat-message.min.js +25 -0
- package/dist/smart/chat-message/js/chat-message.min.js.gz +0 -0
- package/dist/smart/chat-message/lang/en.json +181 -0
- package/dist/smart/chat-message/lang/en.json.gz +0 -0
- package/dist/smart/chat-message/lang/ru.json +185 -0
- package/dist/smart/chat-message/lang/ru.json.gz +0 -0
- package/dist/smart/chat-message/probe.json +1029 -0
- package/dist/smart/chat-message/probe.json.gz +0 -0
- package/dist/smart/chat-message/smart.manifest.json +814 -0
- package/dist/smart/chat-message/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-message/static/default/brief-card.html +2 -0
- package/dist/smart/chat-message/static/default/brief-card.html.gz +0 -0
- package/dist/smart/chat-message/static/default/brief-questions.html +2 -0
- package/dist/smart/chat-message/static/default/brief-questions.html.gz +0 -0
- package/dist/smart/chat-message/static/default/deliverables.html +2 -0
- package/dist/smart/chat-message/static/default/deliverables.html.gz +0 -0
- package/dist/smart/chat-message/static/default/document.html +13 -0
- package/dist/smart/chat-message/static/default/document.html.gz +0 -0
- package/dist/smart/chat-message/static/default/failed.html +2 -0
- package/dist/smart/chat-message/static/default/failed.html.gz +0 -0
- package/dist/smart/chat-message/static/default/feedback-reason.html +2 -0
- package/dist/smart/chat-message/static/default/feedback-reason.html.gz +0 -0
- package/dist/smart/chat-message/static/default/limit.html +2 -0
- package/dist/smart/chat-message/static/default/limit.html.gz +0 -0
- package/dist/smart/chat-message/static/default/proposal.html +42 -0
- package/dist/smart/chat-message/static/default/proposal.html.gz +0 -0
- package/dist/smart/chat-message/static/default/question.html +18 -0
- package/dist/smart/chat-message/static/default/question.html.gz +0 -0
- package/dist/smart/chat-message/static/default/reference.html +2 -0
- package/dist/smart/chat-message/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-message/static/default/steps.html +2 -0
- package/dist/smart/chat-message/static/default/steps.html.gz +0 -0
- package/dist/smart/chat-message/static/default/stopped.html +2 -0
- package/dist/smart/chat-message/static/default/stopped.html.gz +0 -0
- package/dist/smart/chat-message/static/default/waiting.html +2 -0
- package/dist/smart/chat-message/static/default/waiting.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person-own.html +2 -0
- package/dist/smart/chat-message/static/person/person-own.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person-reply.html +6 -0
- package/dist/smart/chat-message/static/person/person-reply.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person.html +14 -0
- package/dist/smart/chat-message/static/person/person.html.gz +0 -0
- package/dist/smart/chat-message/static/sheets.json +398 -0
- package/dist/smart/chat-message/static/sheets.json.gz +0 -0
- package/dist/smart/chat-message/studio.fixture.json +27 -0
- package/dist/smart/chat-message/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-message/studio.scenario.json +22 -0
- package/dist/smart/chat-message/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-message/template/default.css +1895 -0
- package/dist/smart/chat-message/template/default.css.gz +0 -0
- package/dist/smart/chat-message/template/default.js +27 -0
- package/dist/smart/chat-message/template/default.js.gz +0 -0
- package/dist/smart/chat-message/template/person.js +11 -0
- package/dist/smart/chat-message/template/person.js.gz +0 -0
- package/dist/smart/chat-threads/aliases.json +174 -0
- package/dist/smart/chat-threads/aliases.json.gz +0 -0
- package/dist/smart/chat-threads/component.json +1232 -0
- package/dist/smart/chat-threads/component.json.gz +0 -0
- package/dist/smart/chat-threads/css/chat-threads.css +150 -0
- package/dist/smart/chat-threads/css/chat-threads.css.gz +0 -0
- package/dist/smart/chat-threads/css/chat-threads.min.css +2 -0
- package/dist/smart/chat-threads/css/chat-threads.min.css.gz +0 -0
- package/dist/smart/chat-threads/examples.json +689 -0
- package/dist/smart/chat-threads/examples.json.gz +0 -0
- package/dist/smart/chat-threads/js/chat-threads.js +859 -0
- package/dist/smart/chat-threads/js/chat-threads.js.gz +0 -0
- package/dist/smart/chat-threads/js/chat-threads.min.js +39 -0
- package/dist/smart/chat-threads/js/chat-threads.min.js.gz +0 -0
- package/dist/smart/chat-threads/lang/en.json +18 -0
- package/dist/smart/chat-threads/lang/en.json.gz +0 -0
- package/dist/smart/chat-threads/lang/ru.json +18 -0
- package/dist/smart/chat-threads/lang/ru.json.gz +0 -0
- package/dist/smart/chat-threads/probe.json +406 -0
- package/dist/smart/chat-threads/probe.json.gz +0 -0
- package/dist/smart/chat-threads/smart.manifest.json +1152 -0
- package/dist/smart/chat-threads/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-threads/static/default/activity.html +139 -0
- package/dist/smart/chat-threads/static/default/activity.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/activity.skeleton.html +139 -0
- package/dist/smart/chat-threads/static/default/activity.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/archive.html +55 -0
- package/dist/smart/chat-threads/static/default/archive.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/archive.skeleton.html +55 -0
- package/dist/smart/chat-threads/static/default/archive.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/avatars.html +104 -0
- package/dist/smart/chat-threads/static/default/avatars.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/avatars.skeleton.html +104 -0
- package/dist/smart/chat-threads/static/default/avatars.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/empty.html +48 -0
- package/dist/smart/chat-threads/static/default/empty.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/loading.html +48 -0
- package/dist/smart/chat-threads/static/default/loading.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/people.html +95 -0
- package/dist/smart/chat-threads/static/default/people.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/people.skeleton.html +95 -0
- package/dist/smart/chat-threads/static/default/people.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/reference.html +114 -0
- package/dist/smart/chat-threads/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/reference.skeleton.html +114 -0
- package/dist/smart/chat-threads/static/default/reference.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/ungrouped.html +94 -0
- package/dist/smart/chat-threads/static/default/ungrouped.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html +94 -0
- package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/sheets.json +422 -0
- package/dist/smart/chat-threads/static/sheets.json.gz +0 -0
- package/dist/smart/chat-threads/studio.fixture.json +23 -0
- package/dist/smart/chat-threads/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-threads/template/default.css +113 -0
- package/dist/smart/chat-threads/template/default.css.gz +0 -0
- package/dist/smart/chat-threads/template/default.js +62 -0
- package/dist/smart/chat-threads/template/default.js.gz +0 -0
- package/dist/smart/chat-window/aliases.json +395 -0
- package/dist/smart/chat-window/aliases.json.gz +0 -0
- package/dist/smart/chat-window/component.json +2809 -0
- package/dist/smart/chat-window/component.json.gz +0 -0
- package/dist/smart/chat-window/css/chat-window.css +1717 -0
- package/dist/smart/chat-window/css/chat-window.css.gz +0 -0
- package/dist/smart/chat-window/css/chat-window.min.css +2 -0
- package/dist/smart/chat-window/css/chat-window.min.css.gz +0 -0
- package/dist/smart/chat-window/examples.json +2798 -0
- package/dist/smart/chat-window/examples.json.gz +0 -0
- package/dist/smart/chat-window/js/chat-window.js +12382 -0
- package/dist/smart/chat-window/js/chat-window.js.gz +0 -0
- package/dist/smart/chat-window/js/chat-window.min.js +1 -0
- package/dist/smart/chat-window/js/chat-window.min.js.gz +0 -0
- package/dist/smart/chat-window/lang/en.json +212 -0
- package/dist/smart/chat-window/lang/en.json.gz +0 -0
- package/dist/smart/chat-window/lang/ru.json +218 -0
- package/dist/smart/chat-window/lang/ru.json.gz +0 -0
- package/dist/smart/chat-window/probe.json +2023 -0
- package/dist/smart/chat-window/probe.json.gz +0 -0
- package/dist/smart/chat-window/smart.manifest.json +2835 -0
- package/dist/smart/chat-window/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-window/static/default/archived.html +97 -0
- package/dist/smart/chat-window/static/default/archived.html.gz +0 -0
- package/dist/smart/chat-window/static/default/embedded.html +119 -0
- package/dist/smart/chat-window/static/default/embedded.html.gz +0 -0
- package/dist/smart/chat-window/static/default/greeting.html +119 -0
- package/dist/smart/chat-window/static/default/greeting.html.gz +0 -0
- package/dist/smart/chat-window/static/default/people.html +110 -0
- package/dist/smart/chat-window/static/default/people.html.gz +0 -0
- package/dist/smart/chat-window/static/default/proposal.html +157 -0
- package/dist/smart/chat-window/static/default/proposal.html.gz +0 -0
- package/dist/smart/chat-window/static/default/reference.html +117 -0
- package/dist/smart/chat-window/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-window/static/default/waiting.html +117 -0
- package/dist/smart/chat-window/static/default/waiting.html.gz +0 -0
- package/dist/smart/chat-window/static/sheets.json +476 -0
- package/dist/smart/chat-window/static/sheets.json.gz +0 -0
- package/dist/smart/chat-window/studio.fixture.json +13 -0
- package/dist/smart/chat-window/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-window/studio.scenario.json +95 -0
- package/dist/smart/chat-window/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-window/template/default.css +1168 -0
- package/dist/smart/chat-window/template/default.css.gz +0 -0
- package/dist/smart/chat-window/template/default.js +12 -0
- package/dist/smart/chat-window/template/default.js.gz +0 -0
- package/dist/smart/rule.js +185 -0
- package/dist/smart/rule.js.gz +0 -0
- package/package.json +29 -4
|
@@ -0,0 +1,2809 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "The source of sf-chat-window's element plumbing (core/js/element-manifest.js); standard simai.smart-component 1.3.9, vocabulary 1.1.5. Moved from simai/ui-chat components/src/smart/chat-window (smart.manifest.json 0.3.1, ui-chat 07bc988) by the D31 move, step 6 (owner yes 2026-10-27), with files-view.js, port.js, chat-core's larena.js words and smart.css, and the staff page's layout of the window's nodes; written by hand on the shape of sf-chat-interlocutor, sf-chat-composer and sf-chat-message (steps 3-5), since migration/convert-1.3.8.mjs takes only the pinned 66. x-decisions says how each point was decided.",
|
|
3
|
+
"id": "smart.chat-window",
|
|
4
|
+
"tag": "sf-chat-window",
|
|
5
|
+
"version": "1.14.3",
|
|
6
|
+
"kind": "leaf",
|
|
7
|
+
"family": "chat",
|
|
8
|
+
"settings": {
|
|
9
|
+
"capabilities": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"default": "",
|
|
12
|
+
"x-markup": "the port's capabilities the host offers (assistant, people, files, edit, delete, feedback, proposals, conversation-create, conversation-manage, interlocutors, read) and the window's own (x-archive-view, x-conversations-paging, x-conversations-search, x-conversation-pin, x-early-upload, x-my-files, x-brief, x-conversation-start, x-members, x-members-manage, x-reactions, x-reply, x-threads, x-blocks), space-separated; a connected port's capabilities count as well. What is not offered is not shown. The property also takes a list (0.3).",
|
|
13
|
+
"summary": "The port capabilities the host offers, space-separated (assistant, people, files, edit, delete, feedback, proposals, conversation-create, conversation-manage, interlocutors, read), and the window extensions (x-archive-view, x-conversations-paging, x-conversations-search, x-conversation-pin, x-early-upload, x-my-files, x-brief, x-conversation-start, x-members, x-members-manage, x-reactions, x-reply, x-threads, x-blocks). What is not declared is not offered, and its intent is answered unavailable without an event. The property also takes an array."
|
|
14
|
+
},
|
|
15
|
+
"landmark": {
|
|
16
|
+
"type": "enum",
|
|
17
|
+
"values": [
|
|
18
|
+
"main",
|
|
19
|
+
"section"
|
|
20
|
+
],
|
|
21
|
+
"default": "main",
|
|
22
|
+
"x-markup": "section inside a page that has its own main",
|
|
23
|
+
"summary": "main when the window is the page; section inside a page that has its own main."
|
|
24
|
+
},
|
|
25
|
+
"heading-level": {
|
|
26
|
+
"type": "number",
|
|
27
|
+
"integer": true,
|
|
28
|
+
"min": 1,
|
|
29
|
+
"max": 2,
|
|
30
|
+
"default": 1,
|
|
31
|
+
"x-markup": "the window's headings; 2 inside a page with its own h1",
|
|
32
|
+
"summary": "The level of the window's own headings (the conversation, the greeting): 2 inside someone else's page."
|
|
33
|
+
},
|
|
34
|
+
"embedded": {
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"default": false,
|
|
37
|
+
"x-markup": "placed in a host page: the height comes from the container and the window draws its own frame",
|
|
38
|
+
"summary": "Embedded in a host page: the window takes the container's height and draws its own edge."
|
|
39
|
+
},
|
|
40
|
+
"no-queue": {
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"default": false,
|
|
43
|
+
"x-markup": "no queue: while an answer is awaited the field sends nothing, as before 1.1.0",
|
|
44
|
+
"summary": "Turns the queue off: while an answer is awaited the field sends nothing and says why, as before 1.1.0."
|
|
45
|
+
},
|
|
46
|
+
"me": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"optional": true,
|
|
49
|
+
"nullable": true,
|
|
50
|
+
"x-markup": "port data me {id, name}: who reads",
|
|
51
|
+
"summary": "port data me {id, name}: who reads"
|
|
52
|
+
},
|
|
53
|
+
"conversations": {
|
|
54
|
+
"type": "list",
|
|
55
|
+
"default": [],
|
|
56
|
+
"x-markup": "port data conversations [{id, title, type, interlocutor, unread_count, updated_at, archived, pinned}], newest first; pinned is x-conversation-pin's",
|
|
57
|
+
"summary": "port data conversations [{id, title, type, interlocutor, unread_count, updated_at, archived, pinned}], newest first; pinned is x-conversation-pin's"
|
|
58
|
+
},
|
|
59
|
+
"conversation": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"optional": true,
|
|
62
|
+
"nullable": true,
|
|
63
|
+
"x-markup": "port data conversation: the open one {id, title, interlocutor, can_send, archived, revoked}, null when none is open",
|
|
64
|
+
"summary": "port data conversation: the open one {id, title, interlocutor, can_send, archived, revoked}, null when none is open"
|
|
65
|
+
},
|
|
66
|
+
"messages": {
|
|
67
|
+
"type": "list",
|
|
68
|
+
"default": [],
|
|
69
|
+
"x-markup": "port data messages: the open conversation's, oldest first (kind person|assistant, body, html, files, status, stage, wait, sources, verification, notices, proposal, feedback, summary, limit_resets_at, brief, local)",
|
|
70
|
+
"summary": "port data messages: the open conversation's, oldest first (kind person|assistant, body, html, files, status, stage, wait, sources, verification, notices, proposal, feedback, summary, limit_resets_at, brief, local)"
|
|
71
|
+
},
|
|
72
|
+
"history": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"default": {
|
|
75
|
+
"has_older": false
|
|
76
|
+
},
|
|
77
|
+
"x-markup": "port data history {has_older}",
|
|
78
|
+
"summary": "port data history {has_older}"
|
|
79
|
+
},
|
|
80
|
+
"feed-state": {
|
|
81
|
+
"type": "enum",
|
|
82
|
+
"values": [
|
|
83
|
+
"ready",
|
|
84
|
+
"loading",
|
|
85
|
+
"revoked"
|
|
86
|
+
],
|
|
87
|
+
"default": "ready",
|
|
88
|
+
"x-markup": "port data feed_state: loading draws the column anew, revoked clears the feed, the draft and anything unsent; set as a property (feedState, or the port's feed_state)",
|
|
89
|
+
"summary": "port data feed_state: loading draws the column anew, revoked clears the feed, the draft and anything unsent; set as a property (feedState, or the port's feed_state)"
|
|
90
|
+
},
|
|
91
|
+
"limits": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"default": {},
|
|
94
|
+
"x-markup": "port data limits {body_chars, files_per_message, file_bytes, file_types}; with x-conversation-start the window's own group {title_chars, members_max, search_min, search_max, query_chars?}, by default 120, 49, 2, 20, 80 Between people (1.5.0) limits.message_chars, the module's name for it, is read before body_chars; both the field and the editor take the one limit, 4000 when neither is given.",
|
|
95
|
+
"summary": "port data limits {body_chars, files_per_message, file_bytes, file_types}; with x-conversation-start the window's own group {title_chars, members_max, search_min, search_max, query_chars?}, by default 120, 49, 2, 20, 80 Between people (1.5.0) limits.message_chars, the module's name for it, is read before body_chars; both the field and the editor take the one limit, 4000 when neither is given."
|
|
96
|
+
},
|
|
97
|
+
"interlocutors": {
|
|
98
|
+
"type": "list",
|
|
99
|
+
"default": [],
|
|
100
|
+
"x-markup": "port data interlocutors [{id, title, greeting, suggestions, capabilities {attachments, proposals, memory}}]: the first is the usual one",
|
|
101
|
+
"summary": "port data interlocutors [{id, title, greeting, suggestions, capabilities {attachments, proposals, memory}}]: the first is the usual one"
|
|
102
|
+
},
|
|
103
|
+
"notice": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"optional": true,
|
|
106
|
+
"nullable": true,
|
|
107
|
+
"x-markup": "port data notice {kind: info|error, text, retry}: a line above the field, an error with «Повторить» when retry is a function",
|
|
108
|
+
"summary": "port data notice {kind: info|error, text, retry}: a line above the field, an error with «Повторить» when retry is a function"
|
|
109
|
+
},
|
|
110
|
+
"conversation-list": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"default": {
|
|
113
|
+
"archived": false,
|
|
114
|
+
"has_more": false,
|
|
115
|
+
"loading": false
|
|
116
|
+
},
|
|
117
|
+
"x-markup": "the window's data (x-archive-view, x-conversations-paging, x-conversations-search) {archived, has_more, loading, query}: which list is shown, whether it has a next page, whether it loads, what it was searched for",
|
|
118
|
+
"summary": "the window's data (x-archive-view, x-conversations-paging, x-conversations-search) {archived, has_more, loading, query}: which list is shown, whether it has a next page, whether it loads, what it was searched for"
|
|
119
|
+
},
|
|
120
|
+
"composer-files": {
|
|
121
|
+
"type": "list",
|
|
122
|
+
"default": [],
|
|
123
|
+
"x-markup": "the window's data (x-early-upload): the field's chips in the port's file form {key, id, name, size, state: uploading|ready|failed, progress, reason}",
|
|
124
|
+
"summary": "the window's data (x-early-upload): the field's chips in the port's file form {key, id, name, size, state: uploading|ready|failed, progress, reason}"
|
|
125
|
+
},
|
|
126
|
+
"my-files": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"optional": true,
|
|
129
|
+
"nullable": true,
|
|
130
|
+
"x-markup": "the window's data (x-my-files) {files [{id, name, size, type, created_at, saved_to_base, download_url}], used_bytes, quota_bytes}; download_url is the host's, never built here",
|
|
131
|
+
"summary": "the window's data (x-my-files) {files [{id, name, size, type, created_at, saved_to_base, download_url}], used_bytes, quota_bytes}; download_url is the host's, never built here"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"values": {},
|
|
135
|
+
"events": {
|
|
136
|
+
"open": {
|
|
137
|
+
"carries": {
|
|
138
|
+
"request-id": "string",
|
|
139
|
+
"intent": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
142
|
+
},
|
|
143
|
+
"kind": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"optional": true,
|
|
146
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
147
|
+
},
|
|
148
|
+
"payload": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"cancelable": true,
|
|
154
|
+
"x-summary": "A conversation opened from the list (port conversation.open {conversation_id}, kind conversation), the archive or the current list shown (x-archive-view conversations.view {archived}, kind list), or «Мои файлы» asked for (x-my-files files.list, kind files), or a source's preview about to open beside the conversation (1.2.0: kind preview, intent preview.open, payload {source}; the window's own, nothing is raised to the host; cancel it to keep the preview closed, and the footnote then opens the sources list). Was chat-port:open, chat-window:view, chat-window:files. Or a group's members asked for (1.4.0, x-members members.list {conversation_id}, kind members; no former name). Or a message's discussion (1.10.0, x-threads thread.open {conversation_id, message_id}, kind thread): the host answers applied with data {conversation_id} and the window opens that conversation as any other; no former name. A document about to open in the same panel (1.12.0, x-blocks): kind document, intent document.open, payload {document}.",
|
|
155
|
+
"summary": "A conversation opened from the list (port conversation.open {conversation_id}, kind conversation), the archive or the current list shown (x-archive-view conversations.view {archived}, kind list), or «Мои файлы» asked for (x-my-files files.list, kind files), or a source's preview about to open beside the conversation (1.2.0: kind preview, intent preview.open, payload {source}; the window's own, nothing is raised to the host; cancel it to keep the preview closed, and the footnote then opens the sources list). Was chat-port:open, chat-window:view, chat-window:files. Or a group's members asked for (1.4.0, x-members members.list {conversation_id}, kind members; no former name). The 0.3 chat-port:open, chat-window:view, chat-window:files {request_id, ...payload} follow it until 2026-12-01. Or a message's discussion (x-threads thread.open, kind thread). A document about to open in the same panel (1.12.0, x-blocks): kind document, intent document.open, payload {document}."
|
|
156
|
+
},
|
|
157
|
+
"load-more": {
|
|
158
|
+
"carries": {
|
|
159
|
+
"request-id": "string",
|
|
160
|
+
"intent": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
163
|
+
},
|
|
164
|
+
"kind": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"optional": true,
|
|
167
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
168
|
+
},
|
|
169
|
+
"payload": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"cancelable": true,
|
|
175
|
+
"x-summary": "Earlier messages (port history.older {conversation_id, before_id}, kind history) or the list's next page (x-conversations-paging conversations.more {archived}, kind conversations). Was chat-port:older, chat-window:more.",
|
|
176
|
+
"summary": "Earlier messages (port history.older {conversation_id, before_id}, kind history) or the list's next page (x-conversations-paging conversations.more {archived}, kind conversations). Was chat-port:older, chat-window:more. The 0.3 chat-port:older, chat-window:more {request_id, ...payload} follow it until 2026-12-01."
|
|
177
|
+
},
|
|
178
|
+
"submit": {
|
|
179
|
+
"carries": {
|
|
180
|
+
"request-id": "string",
|
|
181
|
+
"intent": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
184
|
+
},
|
|
185
|
+
"kind": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"optional": true,
|
|
188
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
189
|
+
},
|
|
190
|
+
"payload": {
|
|
191
|
+
"type": "object",
|
|
192
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"cancelable": true,
|
|
196
|
+
"x-summary": "A message sent (port message.send {conversation_id, body, files, client_key, interlocutor}): the field's, a suggestion, a brief's answer or a question asked again. Was chat-port:send. A send that answers a message (1.6.0, x-reply) is message.reply, kind reply: the same payload plus reply_to_id (the port's message.send takes no extra field); no former name. A card's save or cancel (1.11.0, x-blocks) is block.submit, kind block {conversation_id, message_id, block_id, action, revision, values}; no former name.",
|
|
197
|
+
"summary": "A message sent (port message.send {conversation_id, body, files, client_key, interlocutor}): the field's, a suggestion, a brief's answer or a question asked again. Was chat-port:send. The 0.3 chat-port:send {request_id, ...payload} follows it until 2026-12-01. A send that answers a message (x-reply) is message.reply, kind reply, the same payload plus reply_to_id. A card's save or cancel (1.11.0, x-blocks) is block.submit, kind block {conversation_id, message_id, block_id, action, revision, values}; no former name."
|
|
198
|
+
},
|
|
199
|
+
"retry": {
|
|
200
|
+
"carries": {
|
|
201
|
+
"request-id": "string",
|
|
202
|
+
"intent": {
|
|
203
|
+
"type": "string",
|
|
204
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
205
|
+
},
|
|
206
|
+
"kind": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"optional": true,
|
|
209
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
210
|
+
},
|
|
211
|
+
"payload": {
|
|
212
|
+
"type": "object",
|
|
213
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"cancelable": true,
|
|
217
|
+
"x-summary": "The same message again under its client_key (port message.retry, kind message) or a message's failed file (port file.retry {conversation_id, message_id, file_key}, kind file). Was chat-port:retry, chat-port:file-retry.",
|
|
218
|
+
"summary": "The same message again under its client_key (port message.retry, kind message) or a message's failed file (port file.retry {conversation_id, message_id, file_key}, kind file). Was chat-port:retry, chat-port:file-retry. The 0.3 chat-port:retry, chat-port:file-retry {request_id, ...payload} follow it until 2026-12-01."
|
|
219
|
+
},
|
|
220
|
+
"save": {
|
|
221
|
+
"carries": {
|
|
222
|
+
"request-id": "string",
|
|
223
|
+
"intent": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
226
|
+
},
|
|
227
|
+
"kind": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"optional": true,
|
|
230
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
231
|
+
},
|
|
232
|
+
"payload": {
|
|
233
|
+
"type": "object",
|
|
234
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"cancelable": true,
|
|
238
|
+
"x-summary": "A message edited against its revision (port message.edit {conversation_id, message_id, revision, body, client_key}). 1.3.0, with people and edit: «Изменить» on a person's message whose can_edit is true opens an editor in its place; Enter saves (this event), Escape cancels. After a conflict «Заменить своим» raises it again against the current revision. Was chat-port:edit.",
|
|
239
|
+
"summary": "A message edited against its revision (port message.edit); 1.3.0: raised from the editor of a person's message, again against the current revision after a conflict («Заменить своим»). Was chat-port:edit. The 0.3 chat-port:edit {request_id, ...payload} follows it until 2026-12-01."
|
|
240
|
+
},
|
|
241
|
+
"delete": {
|
|
242
|
+
"carries": {
|
|
243
|
+
"request-id": "string",
|
|
244
|
+
"intent": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
247
|
+
},
|
|
248
|
+
"kind": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"optional": true,
|
|
251
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
252
|
+
},
|
|
253
|
+
"payload": {
|
|
254
|
+
"type": "object",
|
|
255
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"cancelable": true,
|
|
259
|
+
"x-summary": "A message deleted against its revision (port message.delete {conversation_id, message_id, revision, client_key}, kind message; 1.3.0, with people and delete: «Удалить» on a person's message whose can_delete is true asks in place, and its «Удалить» raises this) or a kept file deleted (x-my-files files.remove {file_id}, kind file). Was chat-port:delete, chat-window:file-remove.",
|
|
260
|
+
"summary": "A message deleted against its revision (port message.delete, kind message; 1.3.0: after the question in the message's place) or a kept file deleted (x-my-files files.remove {file_id}, kind file). Was chat-port:delete, chat-window:file-remove. The 0.3 chat-port:delete, chat-window:file-remove {request_id, ...payload} follow it until 2026-12-01."
|
|
261
|
+
},
|
|
262
|
+
"read": {
|
|
263
|
+
"carries": {
|
|
264
|
+
"request-id": "string",
|
|
265
|
+
"intent": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
268
|
+
},
|
|
269
|
+
"kind": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"optional": true,
|
|
272
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
273
|
+
},
|
|
274
|
+
"payload": {
|
|
275
|
+
"type": "object",
|
|
276
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"cancelable": true,
|
|
280
|
+
"x-summary": "The last message actually seen (port message.read {conversation_id, message_id}). 1.3.0, with read: raised when the last stored message has been in view at the bottom of a visible page, at most once in 2 s and only for a message later than the one reported. Was chat-port:read.",
|
|
281
|
+
"summary": "The last message actually seen (port message.read); 1.3.0: when the end of the conversation is in view, at most once in 2 s, only for a later message. Was chat-port:read. The 0.3 chat-port:read {request_id, ...payload} follows it until 2026-12-01."
|
|
282
|
+
},
|
|
283
|
+
"rate": {
|
|
284
|
+
"carries": {
|
|
285
|
+
"request-id": "string",
|
|
286
|
+
"intent": {
|
|
287
|
+
"type": "string",
|
|
288
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
289
|
+
},
|
|
290
|
+
"kind": {
|
|
291
|
+
"type": "string",
|
|
292
|
+
"optional": true,
|
|
293
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
294
|
+
},
|
|
295
|
+
"payload": {
|
|
296
|
+
"type": "object",
|
|
297
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"cancelable": true,
|
|
301
|
+
"x-summary": "An answer rated (port message.rate {message_id, value, reason, note}). Was chat-port:rate.",
|
|
302
|
+
"summary": "An answer rated (port message.rate {message_id, value, reason, note}). Was chat-port:rate. The 0.3 chat-port:rate {request_id, ...payload} follows it until 2026-12-01."
|
|
303
|
+
},
|
|
304
|
+
"answer": {
|
|
305
|
+
"carries": {
|
|
306
|
+
"request-id": "string",
|
|
307
|
+
"intent": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
310
|
+
},
|
|
311
|
+
"kind": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"optional": true,
|
|
314
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
315
|
+
},
|
|
316
|
+
"payload": {
|
|
317
|
+
"type": "object",
|
|
318
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"cancelable": true,
|
|
322
|
+
"x-summary": "A proposal answered: the host sends exactly its command (port proposal.decide {message_id, code, decision: confirm|cancel}). Was chat-port:decide.",
|
|
323
|
+
"summary": "A proposal answered: the host sends exactly its command (port proposal.decide {message_id, code, decision: confirm|cancel}). Was chat-port:decide. The 0.3 chat-port:decide {request_id, ...payload} follows it until 2026-12-01."
|
|
324
|
+
},
|
|
325
|
+
"check": {
|
|
326
|
+
"carries": {
|
|
327
|
+
"request-id": "string",
|
|
328
|
+
"intent": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
331
|
+
},
|
|
332
|
+
"kind": {
|
|
333
|
+
"type": "string",
|
|
334
|
+
"optional": true,
|
|
335
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
336
|
+
},
|
|
337
|
+
"payload": {
|
|
338
|
+
"type": "object",
|
|
339
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"cancelable": true,
|
|
343
|
+
"x-summary": "Whether a stopped or delayed answer came (port wait.check {message_id}). Was chat-port:check.",
|
|
344
|
+
"summary": "Whether a stopped or delayed answer came (port wait.check {message_id}). Was chat-port:check. The 0.3 chat-port:check {request_id, ...payload} follows it until 2026-12-01."
|
|
345
|
+
},
|
|
346
|
+
"stop": {
|
|
347
|
+
"carries": {
|
|
348
|
+
"request-id": "string",
|
|
349
|
+
"intent": {
|
|
350
|
+
"type": "string",
|
|
351
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
352
|
+
},
|
|
353
|
+
"kind": {
|
|
354
|
+
"type": "string",
|
|
355
|
+
"optional": true,
|
|
356
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
357
|
+
},
|
|
358
|
+
"payload": {
|
|
359
|
+
"type": "object",
|
|
360
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"cancelable": true,
|
|
364
|
+
"x-summary": "Stop waiting for the answer (port wait.stop {conversation_id}). Was chat-port:stop.",
|
|
365
|
+
"summary": "Stop waiting for the answer (port wait.stop {conversation_id}). Was chat-port:stop. The 0.3 chat-port:stop {request_id, ...payload} follows it until 2026-12-01."
|
|
366
|
+
},
|
|
367
|
+
"create": {
|
|
368
|
+
"carries": {
|
|
369
|
+
"request-id": "string",
|
|
370
|
+
"intent": {
|
|
371
|
+
"type": "string",
|
|
372
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
373
|
+
},
|
|
374
|
+
"kind": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"optional": true,
|
|
377
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
378
|
+
},
|
|
379
|
+
"payload": {
|
|
380
|
+
"type": "object",
|
|
381
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"cancelable": true,
|
|
385
|
+
"x-summary": "A new conversation (port conversation.create {interlocutor}; was chat-port:create), or a new one with a person or a group (1.4.0, x-conversation-start conversation.start, kind private {kind, user_id} or group {kind, title, member_ids, client_key}; no former name).",
|
|
386
|
+
"summary": "A new conversation (port conversation.create {interlocutor}; was chat-port:create), or a new one with a person or a group (1.4.0, x-conversation-start conversation.start, kind private {kind, user_id} or group {kind, title, member_ids, client_key}; no former name). The 0.3 chat-port:create {request_id, ...payload} follows conversation.create until 2026-12-01."
|
|
387
|
+
},
|
|
388
|
+
"rename": {
|
|
389
|
+
"carries": {
|
|
390
|
+
"request-id": "string",
|
|
391
|
+
"intent": {
|
|
392
|
+
"type": "string",
|
|
393
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
394
|
+
},
|
|
395
|
+
"kind": {
|
|
396
|
+
"type": "string",
|
|
397
|
+
"optional": true,
|
|
398
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
399
|
+
},
|
|
400
|
+
"payload": {
|
|
401
|
+
"type": "object",
|
|
402
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"cancelable": true,
|
|
406
|
+
"x-summary": "A conversation renamed (port conversation.rename {conversation_id, title}). Was chat-port:rename.",
|
|
407
|
+
"summary": "A conversation renamed (port conversation.rename {conversation_id, title}). Was chat-port:rename. The 0.3 chat-port:rename {request_id, ...payload} follows it until 2026-12-01."
|
|
408
|
+
},
|
|
409
|
+
"archive": {
|
|
410
|
+
"carries": {
|
|
411
|
+
"request-id": "string",
|
|
412
|
+
"intent": {
|
|
413
|
+
"type": "string",
|
|
414
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
415
|
+
},
|
|
416
|
+
"kind": {
|
|
417
|
+
"type": "string",
|
|
418
|
+
"optional": true,
|
|
419
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
420
|
+
},
|
|
421
|
+
"payload": {
|
|
422
|
+
"type": "object",
|
|
423
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"cancelable": true,
|
|
427
|
+
"x-summary": "A conversation put in the archive (port conversation.archive {conversation_id, archived: true}). Was chat-port:archive.",
|
|
428
|
+
"summary": "A conversation put in the archive (port conversation.archive {conversation_id, archived: true}). Was chat-port:archive. The 0.3 chat-port:archive {request_id, ...payload} follows it until 2026-12-01."
|
|
429
|
+
},
|
|
430
|
+
"restore": {
|
|
431
|
+
"carries": {
|
|
432
|
+
"request-id": "string",
|
|
433
|
+
"intent": {
|
|
434
|
+
"type": "string",
|
|
435
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
436
|
+
},
|
|
437
|
+
"kind": {
|
|
438
|
+
"type": "string",
|
|
439
|
+
"optional": true,
|
|
440
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
441
|
+
},
|
|
442
|
+
"payload": {
|
|
443
|
+
"type": "object",
|
|
444
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"cancelable": true,
|
|
448
|
+
"x-summary": "A conversation brought back from the archive (port conversation.archive {conversation_id, archived: false}). Was chat-port:archive.",
|
|
449
|
+
"summary": "A conversation brought back from the archive (port conversation.archive {conversation_id, archived: false}). Was chat-port:archive. The 0.3 chat-port:archive {request_id, ...payload} follows it until 2026-12-01."
|
|
450
|
+
},
|
|
451
|
+
"select": {
|
|
452
|
+
"carries": {
|
|
453
|
+
"request-id": "string",
|
|
454
|
+
"intent": {
|
|
455
|
+
"type": "string",
|
|
456
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
457
|
+
},
|
|
458
|
+
"kind": {
|
|
459
|
+
"type": "string",
|
|
460
|
+
"optional": true,
|
|
461
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
462
|
+
},
|
|
463
|
+
"payload": {
|
|
464
|
+
"type": "object",
|
|
465
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
"cancelable": true,
|
|
469
|
+
"x-summary": "Another interlocutor chosen; a choice starts a new conversation (port interlocutor.choose {interlocutor}). Was chat-port:interlocutor.",
|
|
470
|
+
"summary": "Another interlocutor chosen; a choice starts a new conversation (port interlocutor.choose {interlocutor}). Was chat-port:interlocutor. The 0.3 chat-port:interlocutor {request_id, ...payload} follows it until 2026-12-01."
|
|
471
|
+
},
|
|
472
|
+
"query": {
|
|
473
|
+
"carries": {
|
|
474
|
+
"request-id": "string",
|
|
475
|
+
"intent": {
|
|
476
|
+
"type": "string",
|
|
477
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
478
|
+
},
|
|
479
|
+
"kind": {
|
|
480
|
+
"type": "string",
|
|
481
|
+
"optional": true,
|
|
482
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
483
|
+
},
|
|
484
|
+
"payload": {
|
|
485
|
+
"type": "object",
|
|
486
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
"cancelable": true,
|
|
490
|
+
"x-summary": "The list searched by title (x-conversations-search conversations.search {query}), after a pause in typing, on Enter, or emptied by Escape; was chat-window:search. Or people found for a new conversation (1.4.0, x-conversation-start recipients.search {query}, kind recipients; no former name).",
|
|
491
|
+
"summary": "The list searched by title (x-conversations-search conversations.search {query}), after a pause in typing, on Enter, or emptied by Escape; was chat-window:search. Or people found for a new conversation (1.4.0, x-conversation-start recipients.search {query}, kind recipients; no former name). The 0.3 chat-window:search {request_id, ...payload} follows conversations.search until 2026-12-01."
|
|
492
|
+
},
|
|
493
|
+
"pin": {
|
|
494
|
+
"carries": {
|
|
495
|
+
"request-id": "string",
|
|
496
|
+
"intent": {
|
|
497
|
+
"type": "string",
|
|
498
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
499
|
+
},
|
|
500
|
+
"kind": {
|
|
501
|
+
"type": "string",
|
|
502
|
+
"optional": true,
|
|
503
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
504
|
+
},
|
|
505
|
+
"payload": {
|
|
506
|
+
"type": "object",
|
|
507
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
"cancelable": true,
|
|
511
|
+
"own-verb": true,
|
|
512
|
+
"x-summary": "A conversation pinned or unpinned from its row's actions (x-conversation-pin conversation.pin {conversation_id, pinned}); the chat's own verb (vocabulary §5.1), its word events.pin.label. Was chat-window:pin.",
|
|
513
|
+
"summary": "A conversation pinned or unpinned from its row's actions (x-conversation-pin conversation.pin {conversation_id, pinned}); the chat's own verb (vocabulary §5.1), its word events.pin.label. Was chat-window:pin. The 0.3 chat-window:pin {request_id, ...payload} follows it until 2026-12-01."
|
|
514
|
+
},
|
|
515
|
+
"attach": {
|
|
516
|
+
"carries": {
|
|
517
|
+
"request-id": "string",
|
|
518
|
+
"intent": {
|
|
519
|
+
"type": "string",
|
|
520
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
521
|
+
},
|
|
522
|
+
"kind": {
|
|
523
|
+
"type": "string",
|
|
524
|
+
"optional": true,
|
|
525
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
526
|
+
},
|
|
527
|
+
"payload": {
|
|
528
|
+
"type": "object",
|
|
529
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
"cancelable": true,
|
|
533
|
+
"x-summary": "Files picked, dropped or pasted, to upload at once (x-early-upload file.attach {files, conversation_id, interlocutor}). Was chat-window:attach.",
|
|
534
|
+
"summary": "Files picked, dropped or pasted, to upload at once (x-early-upload file.attach {files, conversation_id, interlocutor}). Was chat-window:attach. The 0.3 chat-window:attach {request_id, ...payload} follows it until 2026-12-01."
|
|
535
|
+
},
|
|
536
|
+
"detach": {
|
|
537
|
+
"carries": {
|
|
538
|
+
"request-id": "string",
|
|
539
|
+
"intent": {
|
|
540
|
+
"type": "string",
|
|
541
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
542
|
+
},
|
|
543
|
+
"kind": {
|
|
544
|
+
"type": "string",
|
|
545
|
+
"optional": true,
|
|
546
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
547
|
+
},
|
|
548
|
+
"payload": {
|
|
549
|
+
"type": "object",
|
|
550
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
"cancelable": true,
|
|
554
|
+
"x-summary": "A chip removed from the field (x-early-upload file.detach {key}). Was chat-window:detach.",
|
|
555
|
+
"summary": "A chip removed from the field (x-early-upload file.detach {key}). Was chat-window:detach. The 0.3 chat-window:detach {request_id, ...payload} follows it until 2026-12-01."
|
|
556
|
+
},
|
|
557
|
+
"settled": {
|
|
558
|
+
"carries": {
|
|
559
|
+
"request-id": "string",
|
|
560
|
+
"intent": "string",
|
|
561
|
+
"payload": "object",
|
|
562
|
+
"answer": {
|
|
563
|
+
"type": "enum",
|
|
564
|
+
"values": [
|
|
565
|
+
"applied",
|
|
566
|
+
"conflict",
|
|
567
|
+
"refused",
|
|
568
|
+
"unavailable"
|
|
569
|
+
]
|
|
570
|
+
},
|
|
571
|
+
"reason": {
|
|
572
|
+
"type": "string",
|
|
573
|
+
"nullable": true,
|
|
574
|
+
"optional": true
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"x-summary": "The fact of a host's answer, from the port or from settle: {request-id, intent, payload, answer, reason}, said after the answer's data is applied and before the window's own follow-up (the focus). Was sf-chat-window-answer.",
|
|
578
|
+
"summary": "The fact of a host's answer, from the port or from settle: {request-id, intent, payload, answer, reason}, said after the answer's data is applied and before the window's own follow-up (the focus). Was sf-chat-window-answer. The 0.3 sf-chat-window-answer {request_id, ...payload} follows it until 2026-12-01."
|
|
579
|
+
},
|
|
580
|
+
"toggle": {
|
|
581
|
+
"carries": {
|
|
582
|
+
"kind": {
|
|
583
|
+
"type": "enum",
|
|
584
|
+
"values": [
|
|
585
|
+
"find",
|
|
586
|
+
"preview",
|
|
587
|
+
"start",
|
|
588
|
+
"members"
|
|
589
|
+
]
|
|
590
|
+
},
|
|
591
|
+
"open": "boolean",
|
|
592
|
+
"form": {
|
|
593
|
+
"type": "enum",
|
|
594
|
+
"values": [
|
|
595
|
+
"private",
|
|
596
|
+
"group"
|
|
597
|
+
],
|
|
598
|
+
"optional": true,
|
|
599
|
+
"summary": "Which form, when kind start opens."
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
"x-summary": "The search in the open conversation was opened or closed (open-find, close-find, Ctrl/Cmd+F, Escape, its close button): kind find; the source preview beside the conversation (1.2.0: open-preview, close-preview, a footnote, «Назад», Escape): kind preview; open true or false. The form of a new conversation (1.4.0: open-start, close-start, a command of the list, «Назад», Escape): kind start, form private or group when it opens; a group's members (1.4.0: open-members, close-members, the header's «Участники», «Назад», Escape): kind members. A page that draws a button for either marks it pressed by this, or by the host states data-find-open, data-preview-open, data-start-open and data-members-open. Not cancelable: it says what happened.",
|
|
603
|
+
"summary": "The search in the conversation, the source preview, the form of a new conversation or a group's members opened or closed: {kind: find|preview|start|members, open, form?}. The host states data-find-open, data-preview-open, data-start-open and data-members-open say the same."
|
|
604
|
+
},
|
|
605
|
+
"react": {
|
|
606
|
+
"carries": {
|
|
607
|
+
"request-id": "string",
|
|
608
|
+
"intent": {
|
|
609
|
+
"type": "string",
|
|
610
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
611
|
+
},
|
|
612
|
+
"kind": {
|
|
613
|
+
"type": "string",
|
|
614
|
+
"optional": true,
|
|
615
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
616
|
+
},
|
|
617
|
+
"payload": {
|
|
618
|
+
"type": "object",
|
|
619
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
"cancelable": true,
|
|
623
|
+
"own-verb": true,
|
|
624
|
+
"x-summary": "A reaction (1.6.0, x-reactions): message.react {conversation_id, message_id, emoji, on}; applied: data {message}, merged by revision. No former name.",
|
|
625
|
+
"summary": "A reaction (x-reactions): message.react {conversation_id, message_id, emoji, on}. Answered applied with data {message}, merged by revision."
|
|
626
|
+
},
|
|
627
|
+
"apply": {
|
|
628
|
+
"carries": {
|
|
629
|
+
"request-id": "string",
|
|
630
|
+
"intent": {
|
|
631
|
+
"type": "string",
|
|
632
|
+
"summary": "The port's intent (or the window's own, x-…) this event raises."
|
|
633
|
+
},
|
|
634
|
+
"kind": {
|
|
635
|
+
"type": "string",
|
|
636
|
+
"optional": true,
|
|
637
|
+
"summary": "Which of the verb's intents, where a verb carries more than one."
|
|
638
|
+
},
|
|
639
|
+
"payload": {
|
|
640
|
+
"type": "object",
|
|
641
|
+
"summary": "The intent's payload, in the port's own field names; see the port contract."
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
"cancelable": true,
|
|
645
|
+
"own-verb": true,
|
|
646
|
+
"x-summary": "Managing a group's members (1.9.0, x-members-manage): member.add {conversation_id, user_id}, member.remove {conversation_id, user_id}, member.role {conversation_id, user_id, role}, member.transfer {conversation_id, user_id}, member.leave {conversation_id}; kind member. add, role and transfer are applied with data {participants}, the whole roster again; remove with data {removed_user_id}, the window drops that row; leave closes the view and opens the conversation again. No former name.",
|
|
647
|
+
"summary": "A group's members managed (x-members-manage): member.add, member.remove, member.role, member.transfer, member.leave, kind member; the buttons follow the host's flags (canRemove, canChangeRole, canTransfer; can_manage, can_leave)."
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
"actions": {
|
|
651
|
+
"set-data": {
|
|
652
|
+
"with": {
|
|
653
|
+
"data": "object"
|
|
654
|
+
},
|
|
655
|
+
"x-outcomes": [
|
|
656
|
+
"applied"
|
|
657
|
+
],
|
|
658
|
+
"x-summary": "several of the port's data at once, by the port's names or the settings'; unknown keys are ignored (the 0.3 applyData(partial), kept as the method)",
|
|
659
|
+
"summary": "several of the port's data at once, by the port's names or the settings'; unknown keys are ignored (the 0.3 applyData(partial), kept as the method) (action set-data; answers an outcome)"
|
|
660
|
+
},
|
|
661
|
+
"settle": {
|
|
662
|
+
"with": {
|
|
663
|
+
"request-id": "string",
|
|
664
|
+
"result": "object"
|
|
665
|
+
},
|
|
666
|
+
"x-outcomes": [
|
|
667
|
+
"applied",
|
|
668
|
+
"refused"
|
|
669
|
+
],
|
|
670
|
+
"x-summary": "a host without a port answers an intent: result {answer, reason, text, data, current}; refused unknown-request when nothing waits under that id (the 0.3 answer(request_id, result), kept as the method)",
|
|
671
|
+
"summary": "a host without a port answers an intent: result {answer, reason, text, data, current}; refused unknown-request when nothing waits under that id (the 0.3 answer(request_id, result), kept as the method) (action settle; answers an outcome)"
|
|
672
|
+
},
|
|
673
|
+
"start-conversation": {
|
|
674
|
+
"x-outcomes": [
|
|
675
|
+
"applied"
|
|
676
|
+
],
|
|
677
|
+
"x-summary": "«Новый разговор» from the page's own button (port conversation.create); answers once the host did",
|
|
678
|
+
"summary": "«Новый разговор» from the page's own button (port conversation.create); answers once the host did (action start-conversation; answers an outcome)"
|
|
679
|
+
},
|
|
680
|
+
"open-conversation": {
|
|
681
|
+
"with": {
|
|
682
|
+
"id": "id"
|
|
683
|
+
},
|
|
684
|
+
"x-outcomes": [
|
|
685
|
+
"applied"
|
|
686
|
+
],
|
|
687
|
+
"x-summary": "open a conversation (port conversation.open)",
|
|
688
|
+
"summary": "open a conversation (port conversation.open) (action open-conversation; answers an outcome)"
|
|
689
|
+
},
|
|
690
|
+
"focus-composer": {
|
|
691
|
+
"x-outcomes": [
|
|
692
|
+
"applied"
|
|
693
|
+
],
|
|
694
|
+
"x-summary": "the field (the page's skip link); from «Мои файлы» it is the way back",
|
|
695
|
+
"summary": "the field (the page's skip link); from «Мои файлы» it is the way back (action focus-composer; answers an outcome)"
|
|
696
|
+
},
|
|
697
|
+
"open-files": {
|
|
698
|
+
"x-outcomes": [
|
|
699
|
+
"applied",
|
|
700
|
+
"refused"
|
|
701
|
+
],
|
|
702
|
+
"x-summary": "«Мои файлы» in place of the conversation (x-my-files); refused capability-not-provided without it",
|
|
703
|
+
"summary": "«Мои файлы» in place of the conversation (x-my-files); refused capability-not-provided without it (action open-files; answers an outcome)"
|
|
704
|
+
},
|
|
705
|
+
"close-files": {
|
|
706
|
+
"with": {
|
|
707
|
+
"focus": {
|
|
708
|
+
"type": "boolean",
|
|
709
|
+
"optional": true
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
"x-outcomes": [
|
|
713
|
+
"applied"
|
|
714
|
+
],
|
|
715
|
+
"x-summary": "back to the conversation; focus false leaves the focus where it is",
|
|
716
|
+
"summary": "back to the conversation; focus false leaves the focus where it is (action close-files; answers an outcome)"
|
|
717
|
+
},
|
|
718
|
+
"set-list-footer": {
|
|
719
|
+
"with": {
|
|
720
|
+
"node": {
|
|
721
|
+
"type": "object",
|
|
722
|
+
"nullable": true
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
"x-outcomes": [
|
|
726
|
+
"applied"
|
|
727
|
+
],
|
|
728
|
+
"x-summary": "what the page shows under the list of conversations, after «Мои файлы» (Mirai24: the spending); null takes it away",
|
|
729
|
+
"summary": "what the page shows under the list of conversations, after «Мои файлы» (Mirai24: the spending); null takes it away (action set-list-footer; answers an outcome)"
|
|
730
|
+
},
|
|
731
|
+
"open-find": {
|
|
732
|
+
"with": {
|
|
733
|
+
"query": {
|
|
734
|
+
"type": "string",
|
|
735
|
+
"optional": true
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
"x-outcomes": [
|
|
739
|
+
"applied"
|
|
740
|
+
],
|
|
741
|
+
"x-summary": "opens the search in the open conversation above the log and puts the focus in it (a page's button in the header calls it; Ctrl/Cmd+F inside the window does the same); query searches at once. It searches only the loaded messages and asks the host nothing",
|
|
742
|
+
"summary": "Open the search in the conversation, focus in its field; query searches at once (action open-find; answers an outcome)."
|
|
743
|
+
},
|
|
744
|
+
"close-find": {
|
|
745
|
+
"with": {
|
|
746
|
+
"focus": {
|
|
747
|
+
"type": "boolean",
|
|
748
|
+
"optional": true
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
"x-outcomes": [
|
|
752
|
+
"applied"
|
|
753
|
+
],
|
|
754
|
+
"x-summary": "closes the search: the marks go and the focus returns to what opened it, else to the field; focus false leaves the focus where it is unless it was in the search",
|
|
755
|
+
"summary": "Close the search in the conversation; the focus returns to what opened it (action close-find; answers an outcome)."
|
|
756
|
+
},
|
|
757
|
+
"open-preview": {
|
|
758
|
+
"with": {
|
|
759
|
+
"source": {
|
|
760
|
+
"type": "object",
|
|
761
|
+
"summary": "{title, kind, preview_url, locator, mime, n?}: preview_url of the page's origin; locator {from, to} characters of the text, or {page} of a PDF."
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
"x-outcomes": [
|
|
765
|
+
"applied",
|
|
766
|
+
"refused"
|
|
767
|
+
],
|
|
768
|
+
"x-summary": "opens the source preview beside the conversation (a sheet over it when the conversation would keep less than 900px) and puts the focus on its title; refused not-shown for a source without a same-origin preview_url or when the page cancels the open event. The panel loads the preview_url itself (GET, the page's cookies), draws HTML sanitized, never run, and marks the {from, to} passage",
|
|
769
|
+
"summary": "Open the source preview beside the conversation (action open-preview; answers an outcome)."
|
|
770
|
+
},
|
|
771
|
+
"close-preview": {
|
|
772
|
+
"with": {
|
|
773
|
+
"focus": {
|
|
774
|
+
"type": "boolean",
|
|
775
|
+
"optional": true
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
"x-outcomes": [
|
|
779
|
+
"applied"
|
|
780
|
+
],
|
|
781
|
+
"x-summary": "closes the source preview; the focus returns to what opened it (the footnote, else the field); focus false leaves the focus where it is unless it was in the panel",
|
|
782
|
+
"summary": "Close the source preview; the focus returns to what opened it (action close-preview; answers an outcome)."
|
|
783
|
+
},
|
|
784
|
+
"open-start": {
|
|
785
|
+
"with": {
|
|
786
|
+
"kind": {
|
|
787
|
+
"type": "enum",
|
|
788
|
+
"values": [
|
|
789
|
+
"private",
|
|
790
|
+
"group"
|
|
791
|
+
],
|
|
792
|
+
"optional": true
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
"x-outcomes": [
|
|
796
|
+
"applied",
|
|
797
|
+
"refused"
|
|
798
|
+
],
|
|
799
|
+
"x-summary": "the form of a new conversation or group in place of the conversation (x-conversation-start); kind private, the default, or group; refused capability-not-provided without it",
|
|
800
|
+
"summary": "the form of a new conversation or group in place of the conversation (x-conversation-start); kind private, the default, or group; refused capability-not-provided without it (action open-start; answers an outcome)"
|
|
801
|
+
},
|
|
802
|
+
"close-start": {
|
|
803
|
+
"with": {
|
|
804
|
+
"focus": {
|
|
805
|
+
"type": "boolean",
|
|
806
|
+
"optional": true
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
"x-outcomes": [
|
|
810
|
+
"applied"
|
|
811
|
+
],
|
|
812
|
+
"x-summary": "closes the form; focus false leaves the focus where it is, else it returns to the command that opened it",
|
|
813
|
+
"summary": "closes the form; focus false leaves the focus where it is, else it returns to the command that opened it (action close-start; answers an outcome)"
|
|
814
|
+
},
|
|
815
|
+
"open-members": {
|
|
816
|
+
"x-outcomes": [
|
|
817
|
+
"applied",
|
|
818
|
+
"refused"
|
|
819
|
+
],
|
|
820
|
+
"x-summary": "a group's members in place of the conversation (x-members); refused capability-not-provided without it, no-members when the open conversation is no group",
|
|
821
|
+
"summary": "a group's members in place of the conversation (x-members); refused capability-not-provided without it, no-members when the open conversation is no group (action open-members; answers an outcome)"
|
|
822
|
+
},
|
|
823
|
+
"close-members": {
|
|
824
|
+
"with": {
|
|
825
|
+
"focus": {
|
|
826
|
+
"type": "boolean",
|
|
827
|
+
"optional": true
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
"x-outcomes": [
|
|
831
|
+
"applied"
|
|
832
|
+
],
|
|
833
|
+
"x-summary": "closes the members; focus false leaves the focus where it is, else it returns to the command that opened it",
|
|
834
|
+
"summary": "closes the members; focus false leaves the focus where it is, else it returns to the command that opened it (action close-members; answers an outcome)"
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
"slots": {},
|
|
838
|
+
"keyboard": {
|
|
839
|
+
"host": {
|
|
840
|
+
"Tab": "reach",
|
|
841
|
+
"Escape": "close",
|
|
842
|
+
"Mod+F": "open",
|
|
843
|
+
"ArrowUp": "edit"
|
|
844
|
+
}
|
|
845
|
+
},
|
|
846
|
+
"port": {
|
|
847
|
+
"id": "simai.chat-port",
|
|
848
|
+
"version": "1.0.0",
|
|
849
|
+
"contract": "src/core/contracts/ports/simai.chat-port/1.0.0/port.json"
|
|
850
|
+
},
|
|
851
|
+
"relations": [
|
|
852
|
+
{
|
|
853
|
+
"name": "buttons"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"name": "icon-buttons"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"name": "inputs"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"name": "cl-icon"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"name": "cl-chat-threads"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"name": "cl-list-feed"
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"name": "cl-chat-composer"
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"name": "cl-chat-interlocutor"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"name": "cl-chat-message"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"name": "cl-confirm-change",
|
|
881
|
+
"lazy": true
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"name": "cl-menu-context",
|
|
885
|
+
"lazy": true
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"name": "cl-progress-bar",
|
|
889
|
+
"lazy": true
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"name": "cl-empty-state",
|
|
893
|
+
"lazy": true
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"name": "avatars",
|
|
897
|
+
"lazy": true
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"name": "cl-avatar",
|
|
901
|
+
"lazy": true
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
"name": "cl-input-lookup",
|
|
905
|
+
"lazy": true
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"name": "cl-input",
|
|
909
|
+
"lazy": true
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"name": "cl-button",
|
|
913
|
+
"lazy": true
|
|
914
|
+
}
|
|
915
|
+
],
|
|
916
|
+
"templates": {
|
|
917
|
+
"default": {
|
|
918
|
+
"file": "js/templates/default.js",
|
|
919
|
+
"$comment": "The Lit template in JavaScript, the migration form of §5.2 (§16); it places the shell the element builds once as plain DOM."
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
"presentation": {
|
|
923
|
+
"skeleton": {
|
|
924
|
+
"$comment": "No late data: a server prints the window with the host's data as its JSON island (the conversations, the open conversation and its messages), and the static markup is the whole window as drawn -- the shell with the parts' own markup (the list, the log with its sf-chat-message nodes, the header, the field). The port, handed later, brings no first-paint data; what it answers is what a person asks for afterwards (§5.4).",
|
|
925
|
+
"late": []
|
|
926
|
+
}
|
|
927
|
+
},
|
|
928
|
+
"styles": "js/templates/default.css",
|
|
929
|
+
"examples": "examples.json",
|
|
930
|
+
"docs": "docs.md",
|
|
931
|
+
"lang": "lang/",
|
|
932
|
+
"accessibility": {
|
|
933
|
+
"role": "region",
|
|
934
|
+
"name": {
|
|
935
|
+
"from": [
|
|
936
|
+
"runtime.threads-label",
|
|
937
|
+
"runtime.list-region"
|
|
938
|
+
]
|
|
939
|
+
},
|
|
940
|
+
"keys": {
|
|
941
|
+
"Tab": "reach",
|
|
942
|
+
"Escape": "close",
|
|
943
|
+
"Mod+F": "open",
|
|
944
|
+
"ArrowUp": "edit"
|
|
945
|
+
},
|
|
946
|
+
"x-keys": "The window is the page's main landmark (landmark main) or a region (section) with an off-screen heading of the conversation's title (heading-level). The conversations are sf-thread-list (a navigation list), the conversation sf-list-feed (SIMAI Framework; a log that says each new answer once: the stage while it waits, «Ответ готов» before it, footnote marks not read), the field sf-chat-composer. The search above the list is a search landmark; Enter asks at once, Escape clears it first and then belongs to the page; what was found is said politely. A passing line above the field (role=status) says what was just done and offers its undo («Вернуть»); an error is role=alert with «Повторить». The focus never falls to the page: an archived row gives it to «Вернуть», a pinned or restored row keeps it, an answer that comes back gives it to the field, «Мои файлы» take it on their heading and give it back to the field; in «Мои файлы» Escape closes a delete question first, then the view, and a delete question takes the focus on «Отмена». The queue (1.1.0): a question asked while an answer is awaited waits over the field as a card in a list named «Отправлю после ответа», with «Изменить» and «Убрать» (and «Отправить» when held), each described by its question; that it was queued, and why a queue is held, is said politely. The search in the conversation (1.1.0) is a search landmark over the log, opened by open-find or Ctrl/Cmd+F with the focus inside the window: Enter goes to the earlier match, Shift+Enter to the later one, as up and down do; «N из M» and «Ничего не найдено» are said politely after a pause; Escape clears the query first, then closes the search and returns the focus to what opened it. Matches are painted with the CSS Custom Highlight API (Mark and Highlight in forced colours), the message's text is not touched. The source preview (1.2.0) is a complementary landmark named by its title, beside the log or, on a narrow window, a sheet over it (the conversation inert behind it) with «Назад»; it takes the focus on its title, its text is a scrollable region reachable by Tab, the passage the answer cites is a mark brought into view, «Открыт просмотр» and «Отрывок выделен» are said politely; Escape, «Назад» or the close button closes it and returns the focus to the footnote or title that opened it. Between people (1.3.0, capability people): each person's message is an article named by its author («Вы» for the reader's own); «Изменить» and «Удалить» are buttons named so, shown on hover or focus and always on touch. «Изменить» puts an editor (a textarea named «Текст сообщения») in the message's place with the focus at the end of its text: Enter saves, Shift+Enter is a new line, Escape cancels and returns the focus to «Изменить». A conflict draws the message as it is now above the kept text with «Сообщение уже изменили», said once through the log's polite announcer, and «Оставить их» / «Заменить своим»; the focus stays in the field. «Удалить» asks in place with the focus on «Отмена»; Escape or «Отмена» takes the question back to «Удалить»; a deleted message stays as «Сообщение удалено» and takes the focus. Another author's new message is said politely with the author's name. «Новые» before the first unread message is plain text in reading order. Between people with edit, ArrowUp in the empty field (no text, no files, no IME composition) opens the editor on the reader's newest own message the host lets them edit and brings it into view; Escape there, or a save, gives the focus back to the field. A day's divider and «Новые» are separators named by their words (role=separator), in reading order, with nothing to press."
|
|
947
|
+
},
|
|
948
|
+
"host-states": {
|
|
949
|
+
"data-find-open": "boolean",
|
|
950
|
+
"data-preview-open": "boolean",
|
|
951
|
+
"data-start-open": "boolean",
|
|
952
|
+
"data-members-open": "boolean"
|
|
953
|
+
},
|
|
954
|
+
"css-variables": {
|
|
955
|
+
"--sf-chat-window-side-width": {
|
|
956
|
+
"type": "length",
|
|
957
|
+
"state": "default"
|
|
958
|
+
},
|
|
959
|
+
"--sf-chat-window-side-color": {
|
|
960
|
+
"type": "color",
|
|
961
|
+
"state": "default"
|
|
962
|
+
},
|
|
963
|
+
"--sf-chat-window-width": {
|
|
964
|
+
"type": "length",
|
|
965
|
+
"state": "default"
|
|
966
|
+
},
|
|
967
|
+
"--sf-chat-window-text-color": {
|
|
968
|
+
"type": "color",
|
|
969
|
+
"state": "default"
|
|
970
|
+
},
|
|
971
|
+
"--sf-chat-window-muted-color": {
|
|
972
|
+
"type": "color",
|
|
973
|
+
"state": "default"
|
|
974
|
+
},
|
|
975
|
+
"--sf-chat-window-border-color": {
|
|
976
|
+
"type": "color",
|
|
977
|
+
"state": "default"
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
"aliases": {
|
|
981
|
+
"$comment": "Dated aliases of sf-chat-window for the shim (core/js/aliases.js, standard §16 item 20). The 0.3 window raised each port intent as chat-port:<name> and each window capability as chat-window:<name>, with {request_id, ...payload}; 1.0 raises one event per verb, sf-chat-window-<verb> {request-id, intent, kind, payload} (vocabulary 1.1.5 §5, §5.1), so every row is split, sent only when the detail's intent is the one the old name stood for (when, since a verb carries several old names), and the element adapter (sfAliasAdapters) makes its 0.3 detail. sf-chat-window-answer became the fact settled.",
|
|
982
|
+
"since": "2026-10-28",
|
|
983
|
+
"remove-after": "2026-12-01",
|
|
984
|
+
"rows": [
|
|
985
|
+
{
|
|
986
|
+
"from": "chat-port:open",
|
|
987
|
+
"to": "sf-chat-window-open",
|
|
988
|
+
"kind": "event",
|
|
989
|
+
"mode": "split",
|
|
990
|
+
"when": {
|
|
991
|
+
"intent": "conversation.open"
|
|
992
|
+
},
|
|
993
|
+
"cancelable": true,
|
|
994
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
995
|
+
"note": "the port intent conversation.open: open {kind: conversation} {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"from": "chat-port:older",
|
|
999
|
+
"to": "sf-chat-window-load-more",
|
|
1000
|
+
"kind": "event",
|
|
1001
|
+
"mode": "split",
|
|
1002
|
+
"when": {
|
|
1003
|
+
"intent": "history.older"
|
|
1004
|
+
},
|
|
1005
|
+
"cancelable": true,
|
|
1006
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1007
|
+
"note": "the port intent history.older: load-more {kind: history} {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
"from": "chat-port:send",
|
|
1011
|
+
"to": "sf-chat-window-submit",
|
|
1012
|
+
"kind": "event",
|
|
1013
|
+
"mode": "split",
|
|
1014
|
+
"when": {
|
|
1015
|
+
"intent": "message.send"
|
|
1016
|
+
},
|
|
1017
|
+
"cancelable": true,
|
|
1018
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1019
|
+
"note": "the port intent message.send: submit {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"from": "chat-port:retry",
|
|
1023
|
+
"to": "sf-chat-window-retry",
|
|
1024
|
+
"kind": "event",
|
|
1025
|
+
"mode": "split",
|
|
1026
|
+
"when": {
|
|
1027
|
+
"intent": "message.retry"
|
|
1028
|
+
},
|
|
1029
|
+
"cancelable": true,
|
|
1030
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1031
|
+
"note": "the port intent message.retry: retry {kind: message} {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"from": "chat-port:edit",
|
|
1035
|
+
"to": "sf-chat-window-save",
|
|
1036
|
+
"kind": "event",
|
|
1037
|
+
"mode": "split",
|
|
1038
|
+
"when": {
|
|
1039
|
+
"intent": "message.edit"
|
|
1040
|
+
},
|
|
1041
|
+
"cancelable": true,
|
|
1042
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1043
|
+
"note": "the port intent message.edit: save {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"from": "chat-port:delete",
|
|
1047
|
+
"to": "sf-chat-window-delete",
|
|
1048
|
+
"kind": "event",
|
|
1049
|
+
"mode": "split",
|
|
1050
|
+
"when": {
|
|
1051
|
+
"intent": "message.delete"
|
|
1052
|
+
},
|
|
1053
|
+
"cancelable": true,
|
|
1054
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1055
|
+
"note": "the port intent message.delete: delete {kind: message} {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"from": "chat-port:read",
|
|
1059
|
+
"to": "sf-chat-window-read",
|
|
1060
|
+
"kind": "event",
|
|
1061
|
+
"mode": "split",
|
|
1062
|
+
"when": {
|
|
1063
|
+
"intent": "message.read"
|
|
1064
|
+
},
|
|
1065
|
+
"cancelable": true,
|
|
1066
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1067
|
+
"note": "the port intent message.read: read {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"from": "chat-port:rate",
|
|
1071
|
+
"to": "sf-chat-window-rate",
|
|
1072
|
+
"kind": "event",
|
|
1073
|
+
"mode": "split",
|
|
1074
|
+
"when": {
|
|
1075
|
+
"intent": "message.rate"
|
|
1076
|
+
},
|
|
1077
|
+
"cancelable": true,
|
|
1078
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1079
|
+
"note": "the port intent message.rate: rate {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"from": "chat-port:file-retry",
|
|
1083
|
+
"to": "sf-chat-window-retry",
|
|
1084
|
+
"kind": "event",
|
|
1085
|
+
"mode": "split",
|
|
1086
|
+
"when": {
|
|
1087
|
+
"intent": "file.retry"
|
|
1088
|
+
},
|
|
1089
|
+
"cancelable": true,
|
|
1090
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1091
|
+
"note": "the port intent file.retry: retry {kind: file} {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"from": "chat-port:decide",
|
|
1095
|
+
"to": "sf-chat-window-answer",
|
|
1096
|
+
"kind": "event",
|
|
1097
|
+
"mode": "split",
|
|
1098
|
+
"when": {
|
|
1099
|
+
"intent": "proposal.decide"
|
|
1100
|
+
},
|
|
1101
|
+
"cancelable": true,
|
|
1102
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1103
|
+
"note": "the port intent proposal.decide: answer {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"from": "chat-port:check",
|
|
1107
|
+
"to": "sf-chat-window-check",
|
|
1108
|
+
"kind": "event",
|
|
1109
|
+
"mode": "split",
|
|
1110
|
+
"when": {
|
|
1111
|
+
"intent": "wait.check"
|
|
1112
|
+
},
|
|
1113
|
+
"cancelable": true,
|
|
1114
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1115
|
+
"note": "the port intent wait.check: check {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"from": "chat-port:stop",
|
|
1119
|
+
"to": "sf-chat-window-stop",
|
|
1120
|
+
"kind": "event",
|
|
1121
|
+
"mode": "split",
|
|
1122
|
+
"when": {
|
|
1123
|
+
"intent": "wait.stop"
|
|
1124
|
+
},
|
|
1125
|
+
"cancelable": true,
|
|
1126
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1127
|
+
"note": "the port intent wait.stop: stop {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
"from": "chat-port:create",
|
|
1131
|
+
"to": "sf-chat-window-create",
|
|
1132
|
+
"kind": "event",
|
|
1133
|
+
"mode": "split",
|
|
1134
|
+
"when": {
|
|
1135
|
+
"intent": "conversation.create"
|
|
1136
|
+
},
|
|
1137
|
+
"cancelable": true,
|
|
1138
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1139
|
+
"note": "the port intent conversation.create: create {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"from": "chat-port:rename",
|
|
1143
|
+
"to": "sf-chat-window-rename",
|
|
1144
|
+
"kind": "event",
|
|
1145
|
+
"mode": "split",
|
|
1146
|
+
"when": {
|
|
1147
|
+
"intent": "conversation.rename"
|
|
1148
|
+
},
|
|
1149
|
+
"cancelable": true,
|
|
1150
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1151
|
+
"note": "the port intent conversation.rename: rename {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
"from": "chat-port:archive",
|
|
1155
|
+
"to": "sf-chat-window-archive",
|
|
1156
|
+
"kind": "event",
|
|
1157
|
+
"mode": "split",
|
|
1158
|
+
"when": {
|
|
1159
|
+
"intent": "conversation.archive"
|
|
1160
|
+
},
|
|
1161
|
+
"cancelable": true,
|
|
1162
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1163
|
+
"note": "the port intent conversation.archive: archive {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"from": "chat-port:archive",
|
|
1167
|
+
"to": "sf-chat-window-restore",
|
|
1168
|
+
"kind": "event",
|
|
1169
|
+
"mode": "split",
|
|
1170
|
+
"when": {
|
|
1171
|
+
"intent": "conversation.archive"
|
|
1172
|
+
},
|
|
1173
|
+
"cancelable": true,
|
|
1174
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1175
|
+
"note": "the port intent conversation.archive with archived false: restore {request-id, intent, payload}; the 0.3 detail {request_id, conversation_id, archived: false} is made by the element adapter"
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
"from": "chat-port:interlocutor",
|
|
1179
|
+
"to": "sf-chat-window-select",
|
|
1180
|
+
"kind": "event",
|
|
1181
|
+
"mode": "split",
|
|
1182
|
+
"when": {
|
|
1183
|
+
"intent": "interlocutor.choose"
|
|
1184
|
+
},
|
|
1185
|
+
"cancelable": true,
|
|
1186
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1187
|
+
"note": "the port intent interlocutor.choose: select {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"from": "chat-window:view",
|
|
1191
|
+
"to": "sf-chat-window-open",
|
|
1192
|
+
"kind": "event",
|
|
1193
|
+
"mode": "split",
|
|
1194
|
+
"when": {
|
|
1195
|
+
"intent": "conversations.view"
|
|
1196
|
+
},
|
|
1197
|
+
"cancelable": true,
|
|
1198
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1199
|
+
"note": "the window capability x-archive-view, conversations.view: open {kind: list} {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
"from": "chat-window:more",
|
|
1203
|
+
"to": "sf-chat-window-load-more",
|
|
1204
|
+
"kind": "event",
|
|
1205
|
+
"mode": "split",
|
|
1206
|
+
"when": {
|
|
1207
|
+
"intent": "conversations.more"
|
|
1208
|
+
},
|
|
1209
|
+
"cancelable": true,
|
|
1210
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1211
|
+
"note": "the window capability x-conversations-paging, conversations.more: load-more {kind: conversations} {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
"from": "chat-window:search",
|
|
1215
|
+
"to": "sf-chat-window-query",
|
|
1216
|
+
"kind": "event",
|
|
1217
|
+
"mode": "split",
|
|
1218
|
+
"when": {
|
|
1219
|
+
"intent": "conversations.search"
|
|
1220
|
+
},
|
|
1221
|
+
"cancelable": true,
|
|
1222
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1223
|
+
"note": "the window capability x-conversations-search, conversations.search: query {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"from": "chat-window:pin",
|
|
1227
|
+
"to": "sf-chat-window-pin",
|
|
1228
|
+
"kind": "event",
|
|
1229
|
+
"mode": "split",
|
|
1230
|
+
"when": {
|
|
1231
|
+
"intent": "conversation.pin"
|
|
1232
|
+
},
|
|
1233
|
+
"cancelable": true,
|
|
1234
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1235
|
+
"note": "the window capability x-conversation-pin, conversation.pin: pin {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"from": "chat-window:attach",
|
|
1239
|
+
"to": "sf-chat-window-attach",
|
|
1240
|
+
"kind": "event",
|
|
1241
|
+
"mode": "split",
|
|
1242
|
+
"when": {
|
|
1243
|
+
"intent": "file.attach"
|
|
1244
|
+
},
|
|
1245
|
+
"cancelable": true,
|
|
1246
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1247
|
+
"note": "the window capability x-early-upload, file.attach: attach {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"from": "chat-window:detach",
|
|
1251
|
+
"to": "sf-chat-window-detach",
|
|
1252
|
+
"kind": "event",
|
|
1253
|
+
"mode": "split",
|
|
1254
|
+
"when": {
|
|
1255
|
+
"intent": "file.detach"
|
|
1256
|
+
},
|
|
1257
|
+
"cancelable": true,
|
|
1258
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1259
|
+
"note": "the window capability x-early-upload, file.detach: detach {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
"from": "chat-window:files",
|
|
1263
|
+
"to": "sf-chat-window-open",
|
|
1264
|
+
"kind": "event",
|
|
1265
|
+
"mode": "split",
|
|
1266
|
+
"when": {
|
|
1267
|
+
"intent": "files.list"
|
|
1268
|
+
},
|
|
1269
|
+
"cancelable": true,
|
|
1270
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1271
|
+
"note": "the window capability x-my-files, files.list: open {kind: files} {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
"from": "chat-window:file-remove",
|
|
1275
|
+
"to": "sf-chat-window-delete",
|
|
1276
|
+
"kind": "event",
|
|
1277
|
+
"mode": "split",
|
|
1278
|
+
"when": {
|
|
1279
|
+
"intent": "files.remove"
|
|
1280
|
+
},
|
|
1281
|
+
"cancelable": true,
|
|
1282
|
+
"section": "§8, §4.9, vocabulary 1.1.5 §5, §5.1, §9",
|
|
1283
|
+
"note": "the window capability x-my-files, files.remove: delete {kind: file} {request-id, intent, payload}; the 0.3 detail {request_id, ...payload} is made by the element adapter (sfAliasAdapters) for this intent only"
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
"from": "sf-chat-window-answer",
|
|
1287
|
+
"to": "sf-chat-window-settled",
|
|
1288
|
+
"kind": "event",
|
|
1289
|
+
"mode": "split",
|
|
1290
|
+
"cancelable": false,
|
|
1291
|
+
"section": "§8, vocabulary 1.1.5 §5 settle",
|
|
1292
|
+
"note": "the fact of a host answer: settled {request-id, intent, payload, answer, reason}; the 0.3 detail {request_id, intent, payload, answer, reason} is made by the element adapter",
|
|
1293
|
+
"summary": "A proposal answered: the host sends exactly its command (port proposal.decide {message_id, code, decision: confirm|cancel}). Was chat-port:decide. The 0.3 chat-port:decide {request_id, ...payload} follows it until 2026-12-01."
|
|
1294
|
+
}
|
|
1295
|
+
]
|
|
1296
|
+
},
|
|
1297
|
+
"x-summary": "A whole chat window on the host port simai.chat-port 1.0.0: the conversations (archive, paging, search, pinning), the open conversation with its messages, proposals, ratings and task briefs, the field with its files and the questions queued while an answer is awaited, the search within the conversation, whom one talks to, and «Мои файлы». It never talks to a server: the host gives the data and answers each intent, through the port or the settle action.",
|
|
1298
|
+
"x-source": {
|
|
1299
|
+
"package": "ui-pro",
|
|
1300
|
+
"folder": "chat-window",
|
|
1301
|
+
"manifest": "simai/ui-chat@07bc988 components/src/smart/chat-window/smart.manifest.json (0.3.1)",
|
|
1302
|
+
"converted": "by hand (D31 step 6): convert-1.3.8.mjs reads stand 17's output, which has no chat component"
|
|
1303
|
+
},
|
|
1304
|
+
"x-words": [],
|
|
1305
|
+
"x-port": {
|
|
1306
|
+
"sha256": "010590422d484a734e07155142c3e14e8a592d57310547e76209889e4feff09f",
|
|
1307
|
+
"supports": [
|
|
1308
|
+
"1.0.0"
|
|
1309
|
+
],
|
|
1310
|
+
"capabilities": [
|
|
1311
|
+
"assistant",
|
|
1312
|
+
"people",
|
|
1313
|
+
"files",
|
|
1314
|
+
"edit",
|
|
1315
|
+
"delete",
|
|
1316
|
+
"feedback",
|
|
1317
|
+
"proposals",
|
|
1318
|
+
"conversation-create",
|
|
1319
|
+
"conversation-manage",
|
|
1320
|
+
"interlocutors",
|
|
1321
|
+
"read"
|
|
1322
|
+
],
|
|
1323
|
+
"own-capabilities": [
|
|
1324
|
+
"x-archive-view",
|
|
1325
|
+
"x-conversations-paging",
|
|
1326
|
+
"x-conversations-search",
|
|
1327
|
+
"x-conversation-pin",
|
|
1328
|
+
"x-early-upload",
|
|
1329
|
+
"x-my-files",
|
|
1330
|
+
"x-brief",
|
|
1331
|
+
"x-conversation-start",
|
|
1332
|
+
"x-members",
|
|
1333
|
+
"x-members-manage",
|
|
1334
|
+
"x-reactions",
|
|
1335
|
+
"x-reply",
|
|
1336
|
+
"x-threads",
|
|
1337
|
+
"x-blocks"
|
|
1338
|
+
],
|
|
1339
|
+
"own-data": [
|
|
1340
|
+
"conversation_list",
|
|
1341
|
+
"composer_files",
|
|
1342
|
+
"my_files"
|
|
1343
|
+
]
|
|
1344
|
+
},
|
|
1345
|
+
"x-renamed": [
|
|
1346
|
+
"events.chat-port:<name> (16 port intents) and chat-window:<name> (8 window capabilities), {request_id, ...payload} → one event per verb (vocabulary 1.1.5 §5, §5.1), sf-chat-window-<verb> {request-id, intent, kind, payload}: open (chat-port:open, chat-window:view {kind: list}, chat-window:files {kind: files}), load-more (chat-port:older {kind: history}, chat-window:more {kind: conversations}), submit (chat-port:send), retry (chat-port:retry {kind: message}, chat-port:file-retry {kind: file}), save (chat-port:edit), delete (chat-port:delete {kind: message}, chat-window:file-remove {kind: file}), read, rate, answer (chat-port:decide), check, stop, create, rename, archive and restore (chat-port:archive with archived true or false), select (chat-port:interlocutor), query (chat-window:search), pin (chat-window:pin, own verb), attach, detach; every old name a dated split alias until 2026-12-01 whose adapter makes the 0.3 detail",
|
|
1347
|
+
"events.sf-chat-window-answer {request_id, intent, payload, answer, reason} → settled {request-id, intent, payload, answer, reason} (vocabulary §5 settle, its fact); a dated split alias until 2026-12-01",
|
|
1348
|
+
"properties feed_state, conversation_list, composer_files, my_files → the settings feed-state, conversation-list, composer-files, my-files (properties feedState, conversationList, composerFiles, myFiles); the 0.3 port-named properties stay as the element's own accessors (the port's data names), not aliases",
|
|
1349
|
+
"methods applyData(partial) and answer(request_id, result) → the actions set-data {data} and settle {request-id, result}; both 0.3 methods stay the element's own (a host adapter calls them); request(intent, payload), parts, has(capability) stay methods of the element, not of the interface",
|
|
1350
|
+
"the 0.3 methods startConversation, openConversation, focusComposer, openFiles, closeFiles, setListFooter → the actions start-conversation, open-conversation, focus-composer, open-files, close-files, set-list-footer (the generated methods carry the same camel names)",
|
|
1351
|
+
"listened names: sf-chat-send, sf-chat-stop, sf-chat-files, sf-chat-action (composer), sf-chat-interlocutor, sf-chat-action (message) → sf-chat-composer-submit, -stop, -attach, -detach; sf-chat-interlocutor-select; sf-chat-message-retry, -check, -rate, -cancel {kind: rate}, -toggle {kind: sources}, -submit (step 5's drafted and copied are heard by nobody: the message keeps its drafts in display and says a copy itself)",
|
|
1352
|
+
"words: the window's keys of ui-chat's strings.js → lang/<locale>.json runtime words, the dotted key in kebab-case (threads.searchEmpty → threads-search-empty); the code keeps calling words() with the 0.3 keys and the element maps them",
|
|
1353
|
+
"css: chat-core/css/smart.css (less the composer's and the interlocutor's rules) and the staff page's rules for the window's nodes → js/templates/default.css; the --sf-chat--* tokens → --sf-chat-window--* set on .chat-shell; --chat-shell--side → --sf-chat-window--side under the public --sf-chat-window-side-width"
|
|
1354
|
+
],
|
|
1355
|
+
"x-decisions": [
|
|
1356
|
+
"version: 0.3.1 in simai/ui-chat → 1.0.0 here: the first release in ui-pro, with the events renamed under dated aliases (simai.linkage 1.0.0: the files changed).",
|
|
1357
|
+
"shape: a leaf with a declared port (D31 inventory §3), as sf-data-view and sf-property-view are: it composes sf-thread-list, sf-message-log and sf-change-confirm (this package) with sf-chat-composer, sf-chat-interlocutor and sf-chat-message (steps 3-5) by tag, through their public hooks. A full assembly (roles, keys, rules) is later: the scroll, the focus, «Мои файлы» and the wait for an answer are not yet rules.",
|
|
1358
|
+
"port: \"port\" declares simai.chat-port 1.0 with its contract; connect-port {port} (the base action, core/js/host-port.js; setHostPort its alias) hands an adapter {port, version, capabilities, raise(intent, payload)} whose answer {answer, reason, text, data} is the intent's; onPortConnected checks raise and the version. The x- capabilities, their intents (events with kinds list, conversations, files, file; query, pin, attach, detach) and their data (conversation_list, composer_files, my_files) are the component's, never the port's: a host declares them in capabilities and answers them through the same raise or settle.",
|
|
1359
|
+
"port-contract: 1.0.1 points port.contract at ui-source's src/core/contracts/ports/simai.chat-port/1.0.0/port.json, as sf-data-view, sf-table and sf-property-view do: framework.lock.json pins ui-source 465fbee (pair ui-194f75ac620f), which has it since 4d711d2 (pair ui-89834691fb9d). The byte copy that 1.0.0 kept in contracts/ (port.json and the kit, 14 cases, the same bytes as the pinned ones) is removed.",
|
|
1360
|
+
"host-without-port: a 0.3 host (Mirai24's chat-core/ports/mirai24.js) listens to chat-port:<name> and chat-window:<name> and calls answer(request_id, result): both keep working until 2026-12-01 through the dated aliases and the kept method. A host answers through one way only; with a port the window keeps no request for settle.",
|
|
1361
|
+
"events: every intent is first the window's cancelable event; a page that cancels it refuses the intent (refused prevented, said nowhere) and the port is not asked. The payload keeps the port's own field names (conversation_id, client_key …), since it is the port's data; the event's own fields are kebab-case.",
|
|
1362
|
+
"listened-names: the window listens to the new names of steps 3-5 (sf-chat-composer-submit, -stop, -attach, -detach; sf-chat-interlocutor-select; sf-chat-message-retry, -check, -rate, -cancel, -toggle, -submit) and to this package's names of standard 1.3.9 (sf-thread-list-open, -apply, -restore, -toggle, -load-more, -create, -rename, -archive; sf-message-log-load-more; sf-change-confirm-answer), not to their dated aliases, so it keeps working after 2026-12-01 and takes each act once. Step 5's open choices are taken: cancel {kind: rate}, drafted, copied.",
|
|
1363
|
+
"messages: sf-message-log's renderMessage gives each message its sf-chat-message, one per message key, kept across redraws (a proposal's pressed card and an open «why» card stay what they are), with message (the port message as API.md's view), display (what the window knows: wait, retried, feedback, sources_open, brief, brief_draft, busy) and features. The element draws itself a frame later; the window marks the last answer and the waiting controls on its sf-updated.",
|
|
1364
|
+
"part-words: the chat's words for sf-message-log, sf-thread-list and sf-change-confirm («Новое название разговора», «Отменено», the expired sentence, «Вернуть из архива» …) are registered by the window once per page through SF.language.registerAll, both languages, from its own lang/ files (js/part-words.js; ui-chat chat-core/larena.js registerLarenaWords).",
|
|
1365
|
+
"classes: the window's nodes keep the 0.3 classes chat-shell__* and chat-files__* that ui-chat's pages style and test; the window toggles chat-shell--empty, chat-shell--files, chat-shell--start and chat-shell--members. 1.7.0 removed the four classes that placed the layout (chat-shell--side-hidden, chat-shell--side-open, chat-shell--preview, chat-shell--preview-sheet): the workspace layout's attributes say that state, and keeping them working would have meant keeping the grid they fed. A rename of the rest to sf-chat-window__* is a later major.",
|
|
1366
|
+
"layout: the window brings the layout of its own nodes (the search, the header, the field's column, the empty and «Мои файлы» states); since 1.7.0 the placement of the regions is the Framework's workspace layout, asked for by UI Chat for this window (core.css .sf-workspace, core/js/workspace.js, docs/developer/workspace-layout.md), so the window measures nothing and no page repeats a grid. The shell is the workspace at the wide step h8 (72rem): from there the preview stands beside the conversation, which is the room the conversation kept before (the window less its list, 900px). The page keeps its furniture (the skip link, its buttons, the spending, the expired-session dialog) and its rail, which it puts into parts.shell first with the class sf-workspace-rail. The shell carries sf-chat-surface, so the message's sheet sets its tokens there and the window's error notice reads as a message's.",
|
|
1367
|
+
"files-view: «Мои файлы» (x-my-files) is js/files-view.js, drawn with sf-chat-message's helpers (iconButton, iconNode, textButton, formatBytes) imported by relative path, sf-progress-bar for the space used, sf-empty-state for an empty or failed list, the delete asked in its row.",
|
|
1368
|
+
"words: lang/ru.json and lang/en.json, runtime only, ru the source language; the code asks for the 0.3 dotted keys and the element maps them to the kebab names. The window repeats the stage and status words sf-chat-message has: it announces them itself.",
|
|
1369
|
+
"network: deny. The window never requests: every write is an intent the host answers; download addresses are the host's. 1.2.0: one exception, the source preview: the window reads the preview_url the message names (a GET with the page's own cookies, of the page's own origin only, as the message's HEAD check of a download), since the passage has to be marked in its text; nothing is written.",
|
|
1370
|
+
"first paint (§5.4): no late data; the static markup is the whole window with the host data of its island, the parts' markup inside it (sf-thread-list, sf-message-log with sf-chat-message, sf-chat-interlocutor, sf-chat-composer). A window is larger than a closed control: each example declares first-paint max-bytes 20000 with its why. The element reads no clock (the list's day groups are the host's updated_at).",
|
|
1371
|
+
"css-variables: six public variables in the Framework's form (single dash, read with the token as fallback, never set): the side panel's width and surface, the reading column, the text, the muted text and the edges.",
|
|
1372
|
+
"standard 1.4 (2026-10-29): component.json and examples.json in the 1.4 form; rule.js, aliases.json, studio files, probe.json and smart.manifest.json generated by ui-source scripts/generate-component-files.mjs. The carried field is requestId (camelCase, as the registry says); the detail keeps \"request-id\" beside it and settle takes either, until 2026-12-01 with the dated event names.",
|
|
1373
|
+
"queue (1.1.0): the queue is the window's, not the composer's: what a conversation is, when an answer is over and how it ended are the window's data (messages, status, wait), and a queue belongs to its conversation. The composer only lets a message of text out while busy (its setting queue, 1.1.0), and the window keeps it per conversation key (as the drafts) and draws its cards above the field, where the passing line already is. When the field lets go of busy, the last turn decides: answered (completed, partial; without the assistant capability, a question taken) sends the first card, which waits for its own answer before the next; failed, limit, refused, withheld, a stopped or unfinished wait, a send not taken, or a conversation left before its answer hold the queue with a quiet line, and each card can be sent («Отправить», which lets the rest go on after its answer) or taken away. Stop stops the wait only. A queued question goes out as an ordinary message.send (no new intent, no new port word); one that did not go is tried again under its first client_key (message.retry). A message with files is not queued (its chips are the host's upload state). Off with no-queue. Nothing is stored.",
|
|
1374
|
+
"find (1.1.0): the search in the conversation reads only the drawn messages (the question's bubble, the answer's body, a person's message; not buttons, sources or off-screen words) and asks the host nothing; the port 1.0.0 has no search of a conversation and a server search would be the port's 1.1.0. The Framework offers no find helper (its highlight component colours code), so the marks are the CSS Custom Highlight API, which touches no node of a sanitized message; without it the message holding the current match is outlined. The current match starts at the last one, nearest where the reader is, and Enter goes up, as in a chat's history. open-find and close-find are the actions (as open-files and close-files), toggle {kind: find, open} the event and data-find-open the host state, so a page's header button can show itself pressed. Ctrl/Cmd+F is taken only while the focus is inside the window (as the inline editor's Mod+K), so the page's own find stays the browser's elsewhere.",
|
|
1375
|
+
"preview (1.2.0, API.md v1.3 proposed: sources[].preview_url, locator, mime; an answer's attachments[].preview_url): the panel is the window's, not the message's: only the window has room beside the conversation, and a message asks for it with sf-chat-message-open {kind: preview}, which the window cancels when it shows it (cancelling sf-chat-window-open {kind: preview} keeps it closed, and the footnote then opens the list). It is js/preview-view.js, the workspace layout's panel region since 1.7.0: a column beside the log from the wide step h8 (72rem, the room the conversation kept when the window measured it -- 900px beside the list), the Framework's drawer below it, over main at the inline end, with the drawer's scrim, the other regions inert, Escape on the top layer and the focus back on what opened it. The window only says data-sf-workspace-panel=\"open\" and listens for sf-workspace-panel, so a close by Escape or by the scrim clears the preview behind it; Escape while it is a column, where no layer is open, is still the panel's own. Content: Mirai24 gives text/html (the accepted revision, whole or a fragment), so the panel fetches it and draws it through SF.sanitizeHtml, never run and never in a frame of scripts; that is also the only way to mark the {from, to} passage, counted in characters of the text as drawn; plain text as text; a PDF in a same-origin frame at {page} (Mirai24 gives none yet); other types are offered in a new tab. sf-file-preview is the Framework's file row (icon, name, download, remove) and shows no content, so it is not used. Same origin only, through chat-message's proposed.js. open-preview and close-preview are the actions (as open-files and open-find), toggle {kind: preview, open} the event and data-preview-open the host state. Closed when the conversation changes and when «Мои файлы» open.",
|
|
1376
|
+
"steps (1.2.0): the window passes an assistant message's steps through toView as they come (PROPOSED_MESSAGE_FIELDS of chat-message's proposed.js), remembers the reader's toggle {kind: steps} as display.steps_open, and its announcer says the step at work (stepsSay) instead of the stage while there are steps; an answer's files keep mime and preview_url.",
|
|
1377
|
+
"people (1.3.0): the port 1.0 already has the words (capabilities people, edit, delete, read; message kind, author {id, name, avatar_url, own}, body, created_at, revision, can_edit, can_delete, is_edited, is_deleted, files, local; answers conflict with current; conversations[].unread_count), so nothing is added to it. With people a person's message is sf-chat-message's template person (sf-chat-message 1.2.0), mapped by js/people.js (toPersonView); without it every message draws as in 1.2.0, so Mirai24's window (its questions are kind person, own true, and it announces none of the four) is unchanged. Runs are the window's, not the log's: sf-message-log groups by author alone, the window also breaks a run on another day, a pause over 5 minutes or an assistant's message, and passes first, last and showName (others' names unless the conversation is private) as the message's display. Rights are the host's flags only (can_edit, can_delete), offered when the window also has edit or delete. author.kind is not in the port and is not read: an assistant's message in a people conversation keeps the assistant's look (kind assistant).",
|
|
1378
|
+
"edit and delete (1.3.0): the editor, the question and the conflict are the message's (template person), what they mean is the window's: the editor's text lives in the display object the window keeps (editing.body, quiet in the redraw key), so a redraw never loses it. A save raises message.edit against the revision the editor was opened on; applied, data.message is merged into messages by id (a newer revision wins; without it the typed text is drawn until the host's comes); conflict, answer.current is merged, the line «Сообщение уже изменили» stands over the message as it is now and the typed text stays, «Оставить их» closes, «Заменить своим» raises it again against the current revision under a new client_key; refused or unavailable, the editor stays with the text and the reason is shown, and saving the same text against the same revision again reuses its client_key. A delete raises message.delete against the revision the question was asked on; applied, the tombstone (data.message, is_deleted) keeps its place; conflict, the current message is shown and the question asks again against it. An edit or a delete on its way shows as the message's local state («Сохраняется…», «Удаляется…»). A host's own local failure («Повторить» on a person's message) is retried with message.retry under its client_key.",
|
|
1379
|
+
"read (1.3.0): the port names no last read message, only conversations[].unread_count, so «Новые» stands before the unread_count-th message from the end not written by the reader, decided once when a conversation's messages first come and kept until another opens (display.divider of sf-chat-message 1.2.0, drawn in both templates). When it is above what is in view the log is moved to it once the log rests at its end, and nothing is reported read until the end is reached. message.read {conversation_id, message_id} names the last stored message when it has been in view at the bottom of a visible page (not under «Мои файлы», a preview sheet or a hidden tab), at most once in 2 s (a later one waits for its turn) and only for a message later than the last reported; one not taken may be reported again.",
|
|
1380
|
+
"preview by fragment (1.3.0, Mirai24's form of API.md v1.3): preview_url carries a #fragment, the page wraps the passage in the element of that id (<mark id=\"cite\">) and the message's locator has only {line_from, line_to}. Without {from, to} the panel finds that element in the fetched page before cleaning (an inert DOMParser parse, nothing runs), puts two private-use characters at its edges as text, cleans the page with SF.sanitizeHtml as before, and takes their places after it as the {from, to} it marks; a page <mark> left around the passage is unwrapped, so it reads as the panel's one mark. {from, to}, when given, still decides. Response headers (X-Mirai-Locator) are product-specific and not read.",
|
|
1381
|
+
"x-conversation-start (1.4.0): the window's own, as x-my-files is; simai.chat-port 1.0 does not change (owner, q-0c04e83775). The form stands in the conversation's place like «Мои файлы» (chat-shell--start, toggle {kind: start}, open-start, close-start), one per opening: closing it forgets what was typed. The people are the Framework's sf-lookup (owner, q-efb6397065), its provider answered by recipients.search, its limits the host's limits.group. refused access-denied is one form line, «Создание недоступно», and closes the list (the module's disabled directory and missing rights are one answer); no results is sf-lookup's own «Ничего не найдено». A person chosen starts at once under a quiet «Открываю…». A group's client_key lives with its form (js/start-model.js GroupKey): the same title and members keep it, so a retry is one group; a change or a host's conflict takes a new one. Back and Escape do nothing while an answer is awaited; 30 s without one is no answer, with «Повторить», and a later answer still opens the conversation while the form stands idle.",
|
|
1382
|
+
"conversation.start's answer: the window applies its data when the form takes the answer, not when the answer comes (finish), since a form closed meanwhile must not move the person. With no messages among them and another conversation than the open one, it clears the log and raises the port's conversation.open: an existing private conversation comes with its history and no new word is asked of the port. The list stays the host's: selected is set whether or not the row is there yet.",
|
|
1383
|
+
"«Показаны первые 20. Уточните запрос.»: sf-lookup's hint, the one means it offers for a host's line. Its list is a popover over that line, so the line is read when the list closes and said at once by the window's status. sf-lookup 1.0.2 has no line of the host's in the list itself: a gap for the Framework, not worked around here.",
|
|
1384
|
+
"x-members (1.4.0), read only: a «Участники» command in the header for an open group or channel, never a private conversation; members.list when the view opens and again on «Повторить», the latest answer drawn. Up to 500 rows in one answer: plain markup with content-visibility, no element per row. refused is «Состав недоступен» and nothing else; an unknown role shows no label. Only id, name and role are read.",
|
|
1385
|
+
"in the conversation's place (1.4.0): for start and members the window hides the log, the field, the search in the conversation, the title and the interlocutor itself, display: none !important since a page's unlayered layout of these nodes outranks this layered sheet (ui-chat staff.css), and makes them inert, so nothing in them takes focus. The files view keeps its rule, which pages repeat: unchanged.",
|
|
1386
|
+
"arrow up (1.5.0, people and edit): editLast on the composer's keydown, so the field's own keys stay the field's. The candidate is lastOwnEditableKey of js/people.js: author.own, can_edit, not is_deleted, an id, no local pending; while an edit of that message is on its way the key stays the field's rather than reaching for an older message. entry.fromField sends the focus back to the field on leaving that editor, by Escape, a button or a save; an editor opened by its button still gives it back to «Изменить». The log follows its end after an upsert when the reader is there, two frames at most, so the reveal runs after it.",
|
|
1387
|
+
"the editor's limit (1.5.0): view.editLimit is what the field has (messageCharsOf: between people limits.message_chars, then the port's limits.body_chars, then 4000, sf-chat-composer's own default). message_chars is not added to the port schema, whose limits has no such field: it is read beside it as limits.group is, and only between people, so a window without people keeps the limit it had. The over-limit refusal is the message's (the form does not raise save); saveEdit refuses as well for a save raised some other way. Unchanged text over the limit closes the editor as any unchanged text does, so a message that is already too long can always be left.",
|
|
1388
|
+
"day dividers (1.5.0, people): dayDividersOf over the feed from each message's own created_at, in the reader's time zone (Date's local day, the same reading runsOf uses); a message without a time neither has one nor ends a day, so a feed without times (the module today) draws none. The words go in the view (display.day), so they are part of the view's key and a changed day redraws only what changed. They are said again at the local midnight and when the page comes back to a later day. A divider restarts a run (runsOf breaks), which matters only beside a message with no time: two dated messages on two days were never one run. «Новые» does not restart a run; that is as it was.",
|
|
1389
|
+
"holding the place under a moving divider (1.5.0): sf-message-log's prependMessages measures from the bottom at once, but sf-chat-message draws a frame later, and the former first message of a day loses its divider after the prepend. Only with dividers in the feed, holdReading measures one message in view before the prepend and puts it back for eight frames; a feed without dividers takes the path it took. The log is unchanged, and it has no virtual history: every message loaded is in the column.",
|
|
1390
|
+
"«Новые» as a separator (1.5.0): it was plain text with no role; it and a day's divider now share one markup, role=separator named by aria-label. revealUnread looks for sf-chat-divider--unread and moves to the top of the place, a day's divider included.",
|
|
1391
|
+
"one window, no modes (1.6.0, owner decision q-0c04e83775; ui-chat docs/design/UNIVERSAL-CHAT.md): rule 1, a message's look and actions follow its author; rule 2, the field follows participants and rights. simai.chat-port 1.0 does not change: reactions and reply are the window's own capabilities, message.reactions, reply_to, asked_by, can_stop and author.kind are fields beyond the port's schema as steps and brief are, read only between people or under their capability, so a window without people draws, sends and paints as it did.",
|
|
1392
|
+
"author.kind (1.6.0): the port's author has additionalProperties false, so the kind is the window's own reading (speakerOf, js/people.js), between people only: assistant, agent or bot wins over the port's kind, and a port message without it is what its kind says. A message of kind person from a bot has no status, so it counts as completed.",
|
|
1393
|
+
"message.send and a reply (1.6.0): the port's message.send payload has additionalProperties false, so reply_to_id may not be a field of it without breaking conformance. Smallest way: an own intent message.reply, the same verb submit (kind reply), the same payload plus reply_to_id, capability x-reply, raised only when the field answers something. A host adds one case; message.retry stays by client_key.",
|
|
1394
|
+
"the field stays free (1.6.0, people): an assistant's wait no longer counts towards composer.busy between people, so nothing blocks or queues on it and its end takes nobody's focus; a send out still holds the field, as a double press must not send twice. Stop leaves the field for the message (can_stop, capability assistant): wait.stop keeps the port's payload {conversation_id}, which has no word for one message. sf-chat-composer 1.2.0's no-stop hides the field's button.",
|
|
1395
|
+
"reactions and replies keep the page's state (1.6.0): the picker, a reaction on its way, an opened fold and what the field answers, by message key or draft key, as an editor or typed text; the strip over the field is made on first use, so a window without x-reply has no node more and its first paint is the same. An applied reaction merges data.message with same: a reaction need not make a new revision, an older one still loses.",
|
|
1396
|
+
"x-members-manage (1.9.0): the window's own, as x-members is; simai.chat-port 1.0 does not change (owner, q-0c04e83775). One strip under one row at a time (a «⋯» per row), so 500 rows carry one button each. Buttons only from the host's flags, never from a role table: the module decides who may remove, change a role or hand over. member.remove answers {removed_user_id} and the window drops the row without asking for the roster (the module's remove changes no other role); add, role and transfer answer the whole roster. access-denied means the flags were stale: one line «Недоступно», and the roster is asked for again. member.leave applied: the view closes and the conversation is opened again, so the host says it is no longer the reader's and the window clears it as for access-revoked. Adding reuses sf-lookup as the new group does, single choice, exclude those already in and the reader.",
|
|
1397
|
+
"x-threads (1.10.0): the window's own; simai.chat-port 1.0 does not change. A discussion is a conversation of its own (type thread, parent_id, root): the host answers thread.open with its conversation_id and the window opens it with conversation.open, so the feed, the field, the draft, edit and delete are the port's as for any conversation. How many answers a message has comes with it (message.thread.replies): no request per message. Inside a discussion there is no «Обсудить» (they do not nest), no members (the roster is the parent's) and the title is «Обсуждение»: the root's text is not a title, and the root may be deleted. The list keeps the parent selected; «В чат» opens the parent and brings the discussed message into view.",
|
|
1398
|
+
"version 1.10.1: days and initials are core's (core.runtime 1.20.0; reuse audit 2026-11-02, findings 7 and 10). The day dividers between people (js/people.js dayWord) are formatRelativeDay with weekday false, so they say today, yesterday or the date as before and the window's words people.today and people.yesterday still win; the midnight refresh waits msUntilNextDay; the file list's date is formatDate (the exact date, its year only when it is not this one). A found person's and a member's initials (js/start-model.js initialsOf) are getInitials of helpers/text.js; an empty name still gives '' and the avatar is left out. Visible: one hyphenated name reads as its parts («Жан-Поль» → ЖП, was Ж) and a preposition after the first word is skipped. Needs core.runtime >= 1.20.0.",
|
|
1399
|
+
"version 1.10.2: the Framework elements it draws, finds and listens to are named by their new tags (Smart component naming of 2026-11-02, sf-[set]-<block>): the people are found with sf-input-lookup. The rule relations and the registry ids follow (cl-<new>, smart.<new>; the package reference pro.package.json of the pair). The former tags stay dated aliases of the Framework until 2027-01-01; public CSS variables and classes keep their names. No visible change. Needs the SIMAI Framework pair with the tag renames (core.runtime 1.21.0).",
|
|
1400
|
+
"version 1.10.3: the conversation list and the proposal card are found, created and heard by their new tags, sf-chat-threads and sf-confirm-change (rename plan R2); lookups that must also find old markup ask tagSelector of the Smart base.",
|
|
1401
|
+
"x-blocks (1.11.0): the window's own; simai.chat-port 1.0 does not change. An answer's blocks (Mirai24 API v1.4 BLOCKS.md) come with the message; the message draws a card with sf-view-properties and is its record host, so no record port reaches the window's host. A save or cancel is the window's block.submit {conversation_id, message_id, block_id, action, revision, values}; the host answers applied with the block as it now is (the window puts it in the message's place), conflict, or refused with errors by field, reason closed (the card loses its buttons) or its own message. revision is the host's opaque mark, only passed back. A document (1.12.0, §3) opens in the source preview's panel: the engine's page from preview_url in a frame of the same origin that runs nothing (sandbox without scripts), its <mark data-field> a press that brings the form card's field (§4, the message's focusField); a form's save answers with the whole message, which replaces the drawn one, and the open document follows its new revision. The canvas (composition_url) comes later.",
|
|
1402
|
+
"version 1.13.0 (sets split plan 2026-11-05 §3 S2; duplication audit 2026-11-03 A-6): the conversation is SIMAI Framework's sf-list-feed, placed by its own tag, no longer the package's sf-message-log (now a dated alias of the feed until 2027-01-01). The window sets the feed's hooks renderItem and announceItem, fills it with setItems and prependItems, hears sf-list-feed-load-more, marks a written answer growing (the 1.0 pending is no longer sent), finds a message's item as .sf-list-feed__item and tunes the feed through its internal layer --sf-list-feed--column, --gap-run, --gap-turn; its words for the feed are registered under sf-list-feed. The rule relates cl-list-feed. No visible change: the column, gaps, words and behaviour are those of 1.12.0. A page that styled the conversation's .sf-message-log* inside the window moves to .sf-list-feed*. Needs a SIMAI Framework pair with sf-list-feed (ui-62b1d9b6dc8d or later).",
|
|
1403
|
+
"version 1.14.1 (2026-11-09): a patch (no visible change). SIMAI Framework ui-cb287da78ab1 (core.runtime 1.45.0, standard §4.4) writes an action's method in the reference as one args object whose schema is the action's `with` fields, not the fields one by one (ui-source 9d2eeb8e, generate-component-files.mjs argumentsOf); smart.manifest.json is regenerated and changes only in methods.*.arguments. openConversation, setListFooter and openPreview are the class's own methods with the fields in order; elementFromManifest's positional now gives them the object form too (openConversation({id}) is the same call). x-registry.action-calls records where the code also reads the value alone: the id for openConversation, the kind for openStart. Settings, values and events are unchanged. The same version first-paint snapshots are retaken over that pair (chat-window: the people example's budget is 23000 bytes, the pair's markup took it 142 bytes over 22000); static/sheets.json is unchanged. The rule relates cl-avatar (lazy): a conversation between people draws the head's mark as the Framework's sf-avatar (syncHeadMark), a tag it renders and so a tag it fetches; it had no relation, and the docs' build warned.",
|
|
1404
|
+
"version 1.14.2 (2026-11-09): a patch (no visible change), for SIMAI Framework ui-b4a77681f0a7. The rule relates cl-avatar (lazy): a conversation between people draws the head's mark as Smart sf-avatar (syncHeadMark), which the rule did not name, so the docs' build of the package warned (\"cl-chat-window draws sf-avatar without a relation\"); the pair's package reference (pro.package.json) records the relation. The first-paint snapshot of the people example is retaken over the pair: sf-avatar writes its colour as the hue class (sf-hue-<name>) for the former tone class. Settings, values and events are unchanged.",
|
|
1405
|
+
"version 1.14.3 (2026-11-10): a patch (first paint only). The first-paint snapshots are retaken over SIMAI Framework ui-2bd5a3ab478a: the pair's sf-menu-context prints its panel without the flex utility class (class=\"sf-context-menu\"); static/sheets.json is unchanged (no sheet drift). Code, settings, values and events are unchanged."
|
|
1406
|
+
],
|
|
1407
|
+
"x-rule": {
|
|
1408
|
+
"$comment": [
|
|
1409
|
+
"The window places this package's conversation parts and the chat's own by",
|
|
1410
|
+
"tag, and a tag it renders is a tag it fetches: the list and the",
|
|
1411
|
+
"conversation (sf-thread-list, sf-list-feed), the field, whom one talks",
|
|
1412
|
+
"to and the messages (sf-chat-composer, sf-chat-interlocutor,",
|
|
1413
|
+
"sf-chat-message, which brings sf-confirm-change for a proposal). The way",
|
|
1414
|
+
"back above the field and an error's «Повторить» are plain button markup,",
|
|
1415
|
+
"the search above the list the Framework's input markup; every glyph is a",
|
|
1416
|
+
"Smart sf-icon. «Мои файлы» (x-my-files) draw the space used and an empty",
|
|
1417
|
+
"or failed list only once the view is opened. The form of a new",
|
|
1418
|
+
"conversation (x-conversation-start) is sf-input-lookup, sf-input and sf-button,",
|
|
1419
|
+
"and a group's members (x-members) the avatars' class markup, each only",
|
|
1420
|
+
"once its view is opened. A conversation between",
|
|
1421
|
+
"people draws the head's mark as Smart sf-avatar (cl-avatar, lazy)."
|
|
1422
|
+
]
|
|
1423
|
+
},
|
|
1424
|
+
"x-registry": {
|
|
1425
|
+
"action-calls": {
|
|
1426
|
+
"open-conversation": "object|string",
|
|
1427
|
+
"open-start": "object|string"
|
|
1428
|
+
},
|
|
1429
|
+
"capabilities": [
|
|
1430
|
+
"conversation",
|
|
1431
|
+
"keyboard",
|
|
1432
|
+
"responsive",
|
|
1433
|
+
"host-port"
|
|
1434
|
+
],
|
|
1435
|
+
"persistence": {
|
|
1436
|
+
"mode": "none",
|
|
1437
|
+
"source_of_truth": "host",
|
|
1438
|
+
"network_owner": "host",
|
|
1439
|
+
"revision_field": null
|
|
1440
|
+
},
|
|
1441
|
+
"readiness": {
|
|
1442
|
+
"level": "host-required",
|
|
1443
|
+
"required_checks": [
|
|
1444
|
+
"manifest",
|
|
1445
|
+
"loader-rule",
|
|
1446
|
+
"chat-window-probe"
|
|
1447
|
+
]
|
|
1448
|
+
},
|
|
1449
|
+
"tags": [
|
|
1450
|
+
"chat",
|
|
1451
|
+
"messaging",
|
|
1452
|
+
"assistant",
|
|
1453
|
+
"composite"
|
|
1454
|
+
],
|
|
1455
|
+
"composition-declarative": {
|
|
1456
|
+
"standard": "simai.composition.document.v1",
|
|
1457
|
+
"type": "smart.chat-window",
|
|
1458
|
+
"mode": "leaf",
|
|
1459
|
+
"profiles": [
|
|
1460
|
+
"ui-layout"
|
|
1461
|
+
],
|
|
1462
|
+
"props": [
|
|
1463
|
+
"capabilities",
|
|
1464
|
+
"landmark",
|
|
1465
|
+
"heading-level",
|
|
1466
|
+
"embedded",
|
|
1467
|
+
"me",
|
|
1468
|
+
"conversations",
|
|
1469
|
+
"conversation",
|
|
1470
|
+
"messages",
|
|
1471
|
+
"history",
|
|
1472
|
+
"feed-state",
|
|
1473
|
+
"limits",
|
|
1474
|
+
"interlocutors",
|
|
1475
|
+
"notice",
|
|
1476
|
+
"conversation-list",
|
|
1477
|
+
"composer-files",
|
|
1478
|
+
"my-files"
|
|
1479
|
+
],
|
|
1480
|
+
"data": {},
|
|
1481
|
+
"events": [
|
|
1482
|
+
"sf-chat-window-open",
|
|
1483
|
+
"sf-chat-window-load-more",
|
|
1484
|
+
"sf-chat-window-submit",
|
|
1485
|
+
"sf-chat-window-retry",
|
|
1486
|
+
"sf-chat-window-save",
|
|
1487
|
+
"sf-chat-window-delete",
|
|
1488
|
+
"sf-chat-window-read",
|
|
1489
|
+
"sf-chat-window-rate",
|
|
1490
|
+
"sf-chat-window-answer",
|
|
1491
|
+
"sf-chat-window-check",
|
|
1492
|
+
"sf-chat-window-stop",
|
|
1493
|
+
"sf-chat-window-create",
|
|
1494
|
+
"sf-chat-window-rename",
|
|
1495
|
+
"sf-chat-window-archive",
|
|
1496
|
+
"sf-chat-window-restore",
|
|
1497
|
+
"sf-chat-window-select",
|
|
1498
|
+
"sf-chat-window-query",
|
|
1499
|
+
"sf-chat-window-pin",
|
|
1500
|
+
"sf-chat-window-attach",
|
|
1501
|
+
"sf-chat-window-detach",
|
|
1502
|
+
"sf-chat-window-settled"
|
|
1503
|
+
],
|
|
1504
|
+
"persistence": {
|
|
1505
|
+
"settings_key_prop": null,
|
|
1506
|
+
"revision_prop": null
|
|
1507
|
+
},
|
|
1508
|
+
"presentation": {
|
|
1509
|
+
"views": [
|
|
1510
|
+
"default"
|
|
1511
|
+
],
|
|
1512
|
+
"presets": [],
|
|
1513
|
+
"modifiers": []
|
|
1514
|
+
},
|
|
1515
|
+
"slots": {},
|
|
1516
|
+
"renderer": {
|
|
1517
|
+
"kind": "custom-element",
|
|
1518
|
+
"name": "sf-chat-window"
|
|
1519
|
+
},
|
|
1520
|
+
"assets": [
|
|
1521
|
+
"smart/chat-window"
|
|
1522
|
+
],
|
|
1523
|
+
"host_port": {
|
|
1524
|
+
"port": "simai.chat-port",
|
|
1525
|
+
"version": "1.0.0",
|
|
1526
|
+
"path": "src/core/contracts/ports/simai.chat-port/1.0.0/port.json",
|
|
1527
|
+
"sha256": "010590422d484a734e07155142c3e14e8a592d57310547e76209889e4feff09f",
|
|
1528
|
+
"supported_versions": [
|
|
1529
|
+
"1.0.0"
|
|
1530
|
+
]
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
"contracts": {
|
|
1534
|
+
"port": {
|
|
1535
|
+
"const": "simai.chat-port 1.0 (ui-source's src/core/contracts/ports/simai.chat-port/1.0.0/port.json); the window's own capabilities x-archive-view, x-conversations-paging, x-conversations-search, x-conversation-pin, x-early-upload, x-my-files, x-brief, x-reactions, x-reply and data conversation_list, composer_files, my_files beside it, not in it"
|
|
1536
|
+
}
|
|
1537
|
+
},
|
|
1538
|
+
"state": {
|
|
1539
|
+
"machines": {
|
|
1540
|
+
"feed": [
|
|
1541
|
+
"loading",
|
|
1542
|
+
"ready",
|
|
1543
|
+
"error",
|
|
1544
|
+
"revoked"
|
|
1545
|
+
],
|
|
1546
|
+
"composer": [
|
|
1547
|
+
"idle",
|
|
1548
|
+
"sending",
|
|
1549
|
+
"waiting"
|
|
1550
|
+
],
|
|
1551
|
+
"conversation": [
|
|
1552
|
+
"none",
|
|
1553
|
+
"open"
|
|
1554
|
+
],
|
|
1555
|
+
"queue": [
|
|
1556
|
+
"empty",
|
|
1557
|
+
"waiting",
|
|
1558
|
+
"held"
|
|
1559
|
+
],
|
|
1560
|
+
"find": [
|
|
1561
|
+
"closed",
|
|
1562
|
+
"open"
|
|
1563
|
+
],
|
|
1564
|
+
"preview": [
|
|
1565
|
+
"closed",
|
|
1566
|
+
"beside",
|
|
1567
|
+
"sheet"
|
|
1568
|
+
],
|
|
1569
|
+
"message": [
|
|
1570
|
+
"shown",
|
|
1571
|
+
"editing",
|
|
1572
|
+
"asking",
|
|
1573
|
+
"saving",
|
|
1574
|
+
"conflict",
|
|
1575
|
+
"deleted"
|
|
1576
|
+
],
|
|
1577
|
+
"unread": [
|
|
1578
|
+
"none",
|
|
1579
|
+
"divider"
|
|
1580
|
+
],
|
|
1581
|
+
"start": [
|
|
1582
|
+
"closed",
|
|
1583
|
+
"private",
|
|
1584
|
+
"group",
|
|
1585
|
+
"sending"
|
|
1586
|
+
],
|
|
1587
|
+
"members": [
|
|
1588
|
+
"closed",
|
|
1589
|
+
"loading",
|
|
1590
|
+
"ready",
|
|
1591
|
+
"denied",
|
|
1592
|
+
"error"
|
|
1593
|
+
]
|
|
1594
|
+
},
|
|
1595
|
+
"visual_states": [
|
|
1596
|
+
"default",
|
|
1597
|
+
"empty",
|
|
1598
|
+
"loading"
|
|
1599
|
+
]
|
|
1600
|
+
},
|
|
1601
|
+
"ownership": {
|
|
1602
|
+
"source": "simai/ui-pro",
|
|
1603
|
+
"data": "host",
|
|
1604
|
+
"effects": "host",
|
|
1605
|
+
"forbidden_client_responsibilities": [
|
|
1606
|
+
"fetching or polling the chat API",
|
|
1607
|
+
"uploading files",
|
|
1608
|
+
"storing drafts",
|
|
1609
|
+
"deciding rights from authorship",
|
|
1610
|
+
"sending a proposal's command other than the host's",
|
|
1611
|
+
"access decisions"
|
|
1612
|
+
]
|
|
1613
|
+
},
|
|
1614
|
+
"security": {
|
|
1615
|
+
"permissions_owner": "host",
|
|
1616
|
+
"untrusted_inputs": [
|
|
1617
|
+
"conversation titles and captions (drawn as text)",
|
|
1618
|
+
"message data (drawn by sf-chat-message: html sanitized, texts as text)",
|
|
1619
|
+
"interlocutor greetings and suggestions (drawn as text)",
|
|
1620
|
+
"file names (drawn as text)",
|
|
1621
|
+
"download addresses (the host's, used as given)",
|
|
1622
|
+
"the host's refusal words (drawn as text)",
|
|
1623
|
+
"a source's preview (fetched from a same-origin preview_url only, drawn sanitized: SF.sanitizeHtml)"
|
|
1624
|
+
],
|
|
1625
|
+
"network_policy": "host-only"
|
|
1626
|
+
},
|
|
1627
|
+
"presentation": {
|
|
1628
|
+
"themes": [
|
|
1629
|
+
"light",
|
|
1630
|
+
"dark"
|
|
1631
|
+
],
|
|
1632
|
+
"locales": [
|
|
1633
|
+
"en",
|
|
1634
|
+
"ru"
|
|
1635
|
+
],
|
|
1636
|
+
"responsive": [
|
|
1637
|
+
"desktop",
|
|
1638
|
+
"mobile"
|
|
1639
|
+
]
|
|
1640
|
+
},
|
|
1641
|
+
"ai_guidance": {
|
|
1642
|
+
"use_when": "Use sf-chat-window for a whole chat: conversations, the open conversation and the field, on a host that implements simai.chat-port 1.0.0 (Mirai24's assistant, simai.chat).",
|
|
1643
|
+
"do_not": [
|
|
1644
|
+
"Do not fetch from the element: hand it a port (connect-port) or answer its events with settle",
|
|
1645
|
+
"Do not answer an intent both through a port and through settle",
|
|
1646
|
+
"Do not decide what a person may do from who wrote a message; give can_edit and can_delete",
|
|
1647
|
+
"Do not build a second list of conversations beside it; the window's sf-thread-list is the one",
|
|
1648
|
+
"Do not keep a queue of your own for messages sent while an answer is awaited; the window queues and sends them after the answer (no-queue turns it off)"
|
|
1649
|
+
],
|
|
1650
|
+
"required_reads": [
|
|
1651
|
+
"settings",
|
|
1652
|
+
"events",
|
|
1653
|
+
"actions",
|
|
1654
|
+
"port",
|
|
1655
|
+
"accessibility"
|
|
1656
|
+
],
|
|
1657
|
+
"minimal_example": "<sf-chat-window capabilities=\"assistant feedback proposals conversation-create conversation-manage\"></sf-chat-window> with element.connectPort({port: 'simai.chat-port', version: '1.0.0', capabilities: [], raise: (intent, payload) => host.answer(intent, payload)}) and element.setData({me, conversations, conversation: null, messages: []})",
|
|
1658
|
+
"owner_commands": [
|
|
1659
|
+
"node scripts/test.mjs",
|
|
1660
|
+
"node scripts/run-manifest-probes.mjs <free output> <package output> chat-window",
|
|
1661
|
+
"node scripts/run-first-paint.mjs gate <free output> <package output> chat-window"
|
|
1662
|
+
]
|
|
1663
|
+
},
|
|
1664
|
+
"accessibility": {
|
|
1665
|
+
"accessible_name": "internal",
|
|
1666
|
+
"keyboard": [
|
|
1667
|
+
"Tab",
|
|
1668
|
+
"Enter",
|
|
1669
|
+
"Shift+Enter",
|
|
1670
|
+
"Escape",
|
|
1671
|
+
"ArrowUp",
|
|
1672
|
+
"ArrowDown",
|
|
1673
|
+
"Home",
|
|
1674
|
+
"End",
|
|
1675
|
+
"F2",
|
|
1676
|
+
"Shift+F10",
|
|
1677
|
+
"Mod+F"
|
|
1678
|
+
],
|
|
1679
|
+
"focus": "The parts keep their own keyboard (the list's roving focus, the field's Enter). After a new conversation or another interlocutor the focus goes to the field; when the last awaited answer of the conversation ends it returns there without scrolling. When what held the focus is gone (an archived row), the way back above the field takes it, never the page. A passing line leaves only when no pointer or focus is on it and hands the focus back to the field. The queue's «Изменить» puts the question back in the field and the focus there; «Убрать» moves the focus to the card in its place, else to the field. The search in the conversation takes the focus when opened and gives it back to what opened it when closed."
|
|
1680
|
+
},
|
|
1681
|
+
"compatibility": {
|
|
1682
|
+
"migrations": [
|
|
1683
|
+
{
|
|
1684
|
+
"from": "0.3.1",
|
|
1685
|
+
"to": "1.0.0",
|
|
1686
|
+
"changes": [
|
|
1687
|
+
"moved from simai/ui-chat to ui-pro (D31): standard simai.smart-component 1.3.9, the element is made from component.json; words in lang/; dated aliases in aliases.json; nothing imported from ui-chat; the parts are placed by tag",
|
|
1688
|
+
"chat-port:<name> and chat-window:<name> {request_id, ...payload} -> sf-chat-window-<verb> {request-id, intent, kind, payload} until 2026-12-01 (event, split aliases); sf-chat-window-answer -> sf-chat-window-settled",
|
|
1689
|
+
"the port is handed with connect-port {port} (raise(intent, payload)); a host without one answers with settle (answer(request_id, result) kept)",
|
|
1690
|
+
"the port's data are settings (feed-state, conversation-list, composer-files, my-files with their port-named properties kept); applyData kept, set-data its action",
|
|
1691
|
+
"a message is drawn by sf-chat-message (renderMessage), the window listens to the new names of sf-chat-composer, sf-chat-interlocutor and sf-chat-message"
|
|
1692
|
+
]
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
"from": "1.0.2",
|
|
1696
|
+
"to": "1.0.3",
|
|
1697
|
+
"changes": [
|
|
1698
|
+
"The first-paint snapshot's sheets.json lists the utility sheets its markup uses (retaken on ui-source 5ba9399); no behaviour changed. Nothing to change for a host."
|
|
1699
|
+
]
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
"from": "1.0.4",
|
|
1703
|
+
"to": "1.1.0",
|
|
1704
|
+
"changes": [
|
|
1705
|
+
"The queue: a question sent while an answer is awaited waits above the field as a card («Отправлю после ответа», «Изменить», «Убрать») and goes as an ordinary message.send after a successful answer, one at a time; an answer that ended otherwise holds the queue for «Отправить» by hand. Per conversation, on this page only. The setting no-queue turns it off. No new intent and no change for a host.",
|
|
1706
|
+
"The search in the open conversation: the actions open-find {query} and close-find {focus}, Ctrl/Cmd+F inside the window, the event toggle {kind: find, open} and the host state data-find-open. It searches the loaded messages only and asks the host nothing."
|
|
1707
|
+
]
|
|
1708
|
+
},
|
|
1709
|
+
{
|
|
1710
|
+
"from": "1.1.0",
|
|
1711
|
+
"to": "1.2.0",
|
|
1712
|
+
"changes": [
|
|
1713
|
+
"The source preview (API.md v1.3, proposed): a footnote or a source title with a same-origin preview_url opens the source beside the conversation (a sheet over it on a narrow window), with the passage {from, to} marked; the actions open-preview {source} and close-preview {focus}, the event toggle {kind: preview, open}, the cancelable open {kind: preview} and the host state data-preview-open. Without preview_url nothing changes.",
|
|
1714
|
+
"An assistant message's steps and an answer's files (mime, preview_url) are passed to sf-chat-message 1.1.0, and while there are steps the announcer says the step at work. No new intent: the host answers nothing new."
|
|
1715
|
+
]
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
"from": "1.2.0",
|
|
1719
|
+
"to": "1.3.0",
|
|
1720
|
+
"changes": [
|
|
1721
|
+
"Between people: with the capability people a person's message draws as sf-chat-message's template person (author, avatar, own on the end side, runs of one author within 5 minutes on one day, time, «изменено», files, tombstone). Without it nothing changes.",
|
|
1722
|
+
"edit and delete: «Изменить» and «Удалить» on a person's message the host allows (can_edit, can_delete) raise message.edit and message.delete with the revision and a client_key; a conflict shows the current message with «Сообщение уже изменили», «Оставить их» and «Заменить своим»; data.message of an applied answer is merged (a newer revision wins).",
|
|
1723
|
+
"read: «Новые» before the first unread message (from the conversation's unread_count) when a conversation opens, and message.read for the last message seen at the bottom, at most once in 2 s.",
|
|
1724
|
+
"Between people the field says «Напишите сообщение». No new intent and no new port field.",
|
|
1725
|
+
"The source preview marks the passage named by preview_url's #fragment (the element of that id, e.g. <mark id=\"cite\">) when the locator has no {from, to}."
|
|
1726
|
+
]
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
"from": "1.3.0",
|
|
1730
|
+
"to": "1.4.0",
|
|
1731
|
+
"changes": [
|
|
1732
|
+
"x-conversation-start: the list head offers «Новый диалог» and «Новая группа» (sf-thread-list 1.5.0 create-commands) and the form stands in the conversation's place; intents recipients.search (query, kind recipients) and conversation.start (create, kind private or group), limits.group from the host. After applied the host supplies conversations by set-data, before or after; the window opens data.conversation itself, raising conversation.open when no messages came.",
|
|
1733
|
+
"x-members: a read-only «Участники» view for an open group or channel; intent members.list (open, kind members), roles owner, manager, member, observer.",
|
|
1734
|
+
"Actions open-start, close-start, open-members, close-members; toggle kinds start and members; host states data-start-open and data-members-open. Without the capabilities nothing changes; simai.chat-port 1.0 is unchanged."
|
|
1735
|
+
]
|
|
1736
|
+
},
|
|
1737
|
+
{
|
|
1738
|
+
"from": "1.4.0",
|
|
1739
|
+
"to": "1.5.0",
|
|
1740
|
+
"changes": [
|
|
1741
|
+
"Between people with edit: ArrowUp in the empty field opens the editor on the newest own message the host allows; Escape or a save from there returns to the field.",
|
|
1742
|
+
"The editor takes the field's limit: past 80 % the count, past the limit saving is refused with a line and the typed text stays. Between people limits.message_chars is read before body_chars, for the field too.",
|
|
1743
|
+
"Between people: a day's divider before the first message of each calendar day with a created_at («Сегодня», «Вчера», a date in the page's language); no created_at, no divider. A divider restarts a run. «Новые» is now role=separator with the class sf-chat-divider--unread added. Needs sf-chat-message 1.3.0.",
|
|
1744
|
+
"Without people and edit nothing changes; simai.chat-port 1.0 is unchanged."
|
|
1745
|
+
]
|
|
1746
|
+
},
|
|
1747
|
+
{
|
|
1748
|
+
"from": "1.5.0",
|
|
1749
|
+
"to": "1.5.1",
|
|
1750
|
+
"changes": [
|
|
1751
|
+
"The source of the narrow-your-search probe says what the generated file says; no behaviour changed. Nothing to change for a host."
|
|
1752
|
+
]
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
"from": "1.5.1",
|
|
1756
|
+
"to": "1.6.0",
|
|
1757
|
+
"changes": [
|
|
1758
|
+
"Between people: a message by its author (author.kind or kind assistant): a person a bubble with sf-avatar, an assistant, agent or bot a document with its sign, name and word; one to one no sign or name in the feed.",
|
|
1759
|
+
"Between people an assistant's wait neither blocks nor queues the field; Stop is on the message where can_stop allows it.",
|
|
1760
|
+
"x-reactions: pills and the picker, message.react. x-reply: quotes, the strip over the field, message.reply {…message.send's payload, reply_to_id}.",
|
|
1761
|
+
"Needs sf-chat-message 1.4.0 and sf-chat-composer 1.2.0. Without people, x-reactions and x-reply nothing changes; simai.chat-port 1.0 is unchanged."
|
|
1762
|
+
]
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
"from": "1.6.0",
|
|
1766
|
+
"to": "1.6.1",
|
|
1767
|
+
"changes": [
|
|
1768
|
+
"Initials in a muted tone picked from the name (sf-avatar 1.2.0, tone auto). Additive."
|
|
1769
|
+
]
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
"from": "1.6.1",
|
|
1773
|
+
"to": "1.7.0",
|
|
1774
|
+
"changes": [
|
|
1775
|
+
"The layout is the Framework's workspace (core.css .sf-workspace, core/js/workspace.js, docs/developer/workspace-layout.md). The shell keeps the class chat-shell and gains sf-workspace with the wide step sf-workspace--wide-h8; the side is also .sf-workspace-list, the conversation .sf-workspace-main, the source preview .sf-workspace-panel. A page's rail must carry .sf-workspace-rail and be the first child of parts.shell.",
|
|
1776
|
+
"The window says the state in attributes and measures nothing: data-sf-workspace-panel=\"open\" while the preview is open, data-sf-workspace-view=\"main\" when a conversation or a view that takes its place opens and \"list\" when the conversations' own view changes. The reader's way back on a narrow container is .sf-workspace-back, in main, which the Framework shows, hides and answers.",
|
|
1777
|
+
"Removed, with the grid they placed: the classes chat-shell--preview, chat-shell--preview-sheet, chat-shell--side-hidden and chat-shell--side-open, the ResizeObserver behind the preview's placement (PREVIEW_DOCK_MIN) and the window's own inert, Escape, scrim and focus return for the panel as a drawer, which are the Framework's layer stack now. A page that toggled chat-shell--side-hidden sets data-sf-workspace-list=\"hidden\"; one that toggled chat-shell--side-open, or drew a scrim and juggled inert for the list, drops all of it. Escape still closes the panel standing as a column, where no layer is open. The nodes' own classes (chat-shell__*, chat-files__*) are unchanged.",
|
|
1778
|
+
"A page stops bringing the grid, the slide-over, the backdrop and the preview columns; it keeps its furniture. The region widths are the workspace's public variables, set here from the window's own: --sf-workspace-list from --sf-chat-window-side-width, --sf-workspace-panel from the preview's measure, --sf-workspace-divider-color from --sf-chat-window-border-color."
|
|
1779
|
+
]
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"from": "1.7.0",
|
|
1783
|
+
"to": "1.8.0",
|
|
1784
|
+
"changes": [
|
|
1785
|
+
"Nothing open (no conversation, no interlocutor to greet): the field steps aside and the place says «Выберите разговор слева или начните новый». Additive: a host with a greeting is unchanged."
|
|
1786
|
+
]
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
"from": "1.8.0",
|
|
1790
|
+
"to": "1.9.0",
|
|
1791
|
+
"changes": [
|
|
1792
|
+
"Managing a group's members (x-members-manage): «Добавить» and «Выйти» in the members view, and per row a «⋯» with role, remove and hand over, each only with the host's flag; remove, hand over and leave are asked in place first. Additive: without the capability the view stays read only."
|
|
1793
|
+
]
|
|
1794
|
+
},
|
|
1795
|
+
{
|
|
1796
|
+
"from": "1.9.1",
|
|
1797
|
+
"to": "1.10.0",
|
|
1798
|
+
"changes": [
|
|
1799
|
+
"A message's discussion (x-threads): «N ответов» under a message with answers and «Обсудить» in its «⋯» for one who may write; thread.open, then the discussion opens in place of the conversation with «В чат» and the message it discusses above the feed. Additive: without the capability nothing changes."
|
|
1800
|
+
]
|
|
1801
|
+
},
|
|
1802
|
+
{
|
|
1803
|
+
"from": "1.10.0",
|
|
1804
|
+
"to": "1.10.1",
|
|
1805
|
+
"changes": [
|
|
1806
|
+
"Day dividers, the midnight refresh and the file list's date through core's format helpers, initials through helpers/text getInitials; needs core.runtime >= 1.20.0. Visible: one hyphenated name gives the initials of its parts («Жан-Поль» → ЖП, was Ж). Nothing to change for a host on a pair from core.runtime 1.20.0 on."
|
|
1807
|
+
]
|
|
1808
|
+
},
|
|
1809
|
+
{
|
|
1810
|
+
"from": "1.10.1",
|
|
1811
|
+
"to": "1.10.2",
|
|
1812
|
+
"changes": [
|
|
1813
|
+
"Draws and finds the renamed Framework elements by their new tags (the people are found with sf-input-lookup); the rule relations name cl-<new>. Needs the SIMAI Framework pair with the tag renames (core.runtime 1.21.0). No visible change. Nothing to change for a host on that pair; a host that writes the former tags keeps working until 2027-01-01."
|
|
1814
|
+
]
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
"from": "1.10.2",
|
|
1818
|
+
"to": "1.10.3",
|
|
1819
|
+
"changes": [
|
|
1820
|
+
"Places and hears the renamed package parts by their new tags: the list is sf-chat-threads (its sf-chat-threads-* events), a proposal sf-confirm-change (sf-confirm-change-answer); the rule relations name cl-chat-threads and cl-confirm-change. Needs the SIMAI Framework pair with the R2 tag aliases (core.runtime 1.22.0). No visible change. Nothing to change for a host on that pair; a host that writes the former tags keeps working until 2027-01-01."
|
|
1821
|
+
]
|
|
1822
|
+
},
|
|
1823
|
+
{
|
|
1824
|
+
"from": "1.10.5",
|
|
1825
|
+
"to": "1.11.0",
|
|
1826
|
+
"changes": [
|
|
1827
|
+
"x-blocks: an answer's cards (message.blocks of kind card) are drawn and saved in place; the host answers block.submit. Additive: without the capability nothing changes."
|
|
1828
|
+
]
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
"from": "1.11.0",
|
|
1832
|
+
"to": "1.12.0",
|
|
1833
|
+
"changes": [
|
|
1834
|
+
"x-blocks: a document (message.blocks of kind document) opens in the preview panel from its preview_url, in a frame that runs nothing; a place still to fill in brings the form card's field (focusDocumentField); a new revision of the open document reloads it where it was read. block.submit's result may carry the whole message, which replaces the drawn one. Additive."
|
|
1835
|
+
]
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
"from": "1.12.0",
|
|
1839
|
+
"to": "1.13.0",
|
|
1840
|
+
"changes": [
|
|
1841
|
+
"The conversation is SIMAI Framework's sf-list-feed (sf-message-log is now its dated alias): the window places <sf-list-feed>, hears sf-list-feed-load-more and draws through renderItem and announceItem. No visible change. A page that styled .sf-message-log, .sf-message-log__item or set --sf-message-log--* inside the window moves to .sf-list-feed, .sf-list-feed__item and --sf-list-feed--*. Needs a SIMAI Framework pair with sf-list-feed (ui-62b1d9b6dc8d or later)."
|
|
1842
|
+
]
|
|
1843
|
+
},
|
|
1844
|
+
{
|
|
1845
|
+
"from": "1.13.0",
|
|
1846
|
+
"to": "1.14.0",
|
|
1847
|
+
"changes": [
|
|
1848
|
+
"sf-chat-threads 2.0.0: the list's rows are the Framework's sf-list. The window finds a row by .sf-list__row[data-id] and its «⋯» by .sf-list__actions (per-row Pin or Unpin, the focus after pinning, restoring and archiving); its words for a row's rename and menu (threads-rename, threads-rename-label, threads-actions), the day headings (threads-today, threads-yesterday, threads-earlier) and threads-loading are gone: the rows speak sf-list's. Nothing to change for a host."
|
|
1849
|
+
]
|
|
1850
|
+
}
|
|
1851
|
+
]
|
|
1852
|
+
},
|
|
1853
|
+
"methods": {
|
|
1854
|
+
"focus": {
|
|
1855
|
+
"summary": "The base's focus.",
|
|
1856
|
+
"arguments": [
|
|
1857
|
+
{
|
|
1858
|
+
"name": "options",
|
|
1859
|
+
"required": false,
|
|
1860
|
+
"schema": {
|
|
1861
|
+
"type": "object"
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
],
|
|
1865
|
+
"returns": {
|
|
1866
|
+
"type": "null"
|
|
1867
|
+
}
|
|
1868
|
+
},
|
|
1869
|
+
"applyData": {
|
|
1870
|
+
"summary": "Set several of the port's data at once (and the extension data); unknown keys are ignored. Each datum is also a property of its own name. Kept from 0.3; the action set-data is its manifest form.",
|
|
1871
|
+
"arguments": [
|
|
1872
|
+
{
|
|
1873
|
+
"name": "partial",
|
|
1874
|
+
"required": true,
|
|
1875
|
+
"schema": {
|
|
1876
|
+
"type": "object",
|
|
1877
|
+
"description": "Any of the port data (me, conversations, conversation, messages, history, feed_state, limits, interlocutors, notice) and the extension data (conversation_list, composer_files, my_files).",
|
|
1878
|
+
"properties": {
|
|
1879
|
+
"me": {
|
|
1880
|
+
"type": "object",
|
|
1881
|
+
"required": [
|
|
1882
|
+
"id"
|
|
1883
|
+
],
|
|
1884
|
+
"additionalProperties": false,
|
|
1885
|
+
"properties": {
|
|
1886
|
+
"id": {
|
|
1887
|
+
"type": [
|
|
1888
|
+
"integer",
|
|
1889
|
+
"string"
|
|
1890
|
+
]
|
|
1891
|
+
},
|
|
1892
|
+
"name": {
|
|
1893
|
+
"type": [
|
|
1894
|
+
"string",
|
|
1895
|
+
"null"
|
|
1896
|
+
]
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
},
|
|
1900
|
+
"conversations": {
|
|
1901
|
+
"type": "array",
|
|
1902
|
+
"items": {
|
|
1903
|
+
"type": "object",
|
|
1904
|
+
"additionalProperties": false,
|
|
1905
|
+
"required": [
|
|
1906
|
+
"id",
|
|
1907
|
+
"title"
|
|
1908
|
+
],
|
|
1909
|
+
"properties": {
|
|
1910
|
+
"id": {
|
|
1911
|
+
"type": [
|
|
1912
|
+
"integer",
|
|
1913
|
+
"string"
|
|
1914
|
+
]
|
|
1915
|
+
},
|
|
1916
|
+
"title": {
|
|
1917
|
+
"type": "string"
|
|
1918
|
+
},
|
|
1919
|
+
"type": {
|
|
1920
|
+
"enum": [
|
|
1921
|
+
"assistant",
|
|
1922
|
+
"private",
|
|
1923
|
+
"group"
|
|
1924
|
+
]
|
|
1925
|
+
},
|
|
1926
|
+
"interlocutor": {
|
|
1927
|
+
"type": [
|
|
1928
|
+
"string",
|
|
1929
|
+
"null"
|
|
1930
|
+
]
|
|
1931
|
+
},
|
|
1932
|
+
"unread_count": {
|
|
1933
|
+
"type": "integer",
|
|
1934
|
+
"minimum": 0
|
|
1935
|
+
},
|
|
1936
|
+
"updated_at": {
|
|
1937
|
+
"type": [
|
|
1938
|
+
"string",
|
|
1939
|
+
"null"
|
|
1940
|
+
]
|
|
1941
|
+
},
|
|
1942
|
+
"archived": {
|
|
1943
|
+
"type": "boolean"
|
|
1944
|
+
},
|
|
1945
|
+
"pinned": {
|
|
1946
|
+
"type": "boolean"
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
},
|
|
1951
|
+
"conversation": {
|
|
1952
|
+
"oneOf": [
|
|
1953
|
+
{
|
|
1954
|
+
"type": "null"
|
|
1955
|
+
},
|
|
1956
|
+
{
|
|
1957
|
+
"type": "object",
|
|
1958
|
+
"additionalProperties": false,
|
|
1959
|
+
"required": [
|
|
1960
|
+
"id",
|
|
1961
|
+
"can_send"
|
|
1962
|
+
],
|
|
1963
|
+
"properties": {
|
|
1964
|
+
"id": {
|
|
1965
|
+
"type": [
|
|
1966
|
+
"integer",
|
|
1967
|
+
"string"
|
|
1968
|
+
]
|
|
1969
|
+
},
|
|
1970
|
+
"title": {
|
|
1971
|
+
"type": "string"
|
|
1972
|
+
},
|
|
1973
|
+
"type": {
|
|
1974
|
+
"enum": [
|
|
1975
|
+
"assistant",
|
|
1976
|
+
"private",
|
|
1977
|
+
"group"
|
|
1978
|
+
]
|
|
1979
|
+
},
|
|
1980
|
+
"role": {
|
|
1981
|
+
"type": [
|
|
1982
|
+
"string",
|
|
1983
|
+
"null"
|
|
1984
|
+
]
|
|
1985
|
+
},
|
|
1986
|
+
"can_send": {
|
|
1987
|
+
"type": "boolean"
|
|
1988
|
+
},
|
|
1989
|
+
"can_manage": {
|
|
1990
|
+
"type": "boolean"
|
|
1991
|
+
},
|
|
1992
|
+
"can_leave": {
|
|
1993
|
+
"type": "boolean"
|
|
1994
|
+
},
|
|
1995
|
+
"revoked": {
|
|
1996
|
+
"type": "boolean",
|
|
1997
|
+
"description": "Access is gone: the component clears the feed, the draft and anything unsent."
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
]
|
|
2002
|
+
},
|
|
2003
|
+
"messages": {
|
|
2004
|
+
"type": "array",
|
|
2005
|
+
"items": {
|
|
2006
|
+
"type": "object",
|
|
2007
|
+
"additionalProperties": false,
|
|
2008
|
+
"required": [
|
|
2009
|
+
"id",
|
|
2010
|
+
"kind",
|
|
2011
|
+
"author"
|
|
2012
|
+
],
|
|
2013
|
+
"properties": {
|
|
2014
|
+
"id": {
|
|
2015
|
+
"type": [
|
|
2016
|
+
"integer",
|
|
2017
|
+
"string",
|
|
2018
|
+
"null"
|
|
2019
|
+
],
|
|
2020
|
+
"description": "null only for a send not yet stored (then local is required)."
|
|
2021
|
+
},
|
|
2022
|
+
"kind": {
|
|
2023
|
+
"enum": [
|
|
2024
|
+
"person",
|
|
2025
|
+
"assistant"
|
|
2026
|
+
],
|
|
2027
|
+
"description": "person: written by a person (the reader or another); assistant: an answer of an AI assistant."
|
|
2028
|
+
},
|
|
2029
|
+
"author": {
|
|
2030
|
+
"type": "object",
|
|
2031
|
+
"additionalProperties": false,
|
|
2032
|
+
"required": [
|
|
2033
|
+
"id"
|
|
2034
|
+
],
|
|
2035
|
+
"properties": {
|
|
2036
|
+
"id": {
|
|
2037
|
+
"type": [
|
|
2038
|
+
"integer",
|
|
2039
|
+
"string"
|
|
2040
|
+
]
|
|
2041
|
+
},
|
|
2042
|
+
"name": {
|
|
2043
|
+
"type": [
|
|
2044
|
+
"string",
|
|
2045
|
+
"null"
|
|
2046
|
+
]
|
|
2047
|
+
},
|
|
2048
|
+
"avatar_url": {
|
|
2049
|
+
"type": [
|
|
2050
|
+
"string",
|
|
2051
|
+
"null"
|
|
2052
|
+
]
|
|
2053
|
+
},
|
|
2054
|
+
"own": {
|
|
2055
|
+
"type": "boolean",
|
|
2056
|
+
"description": "The reader wrote it."
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
},
|
|
2060
|
+
"body": {
|
|
2061
|
+
"type": [
|
|
2062
|
+
"string",
|
|
2063
|
+
"null"
|
|
2064
|
+
],
|
|
2065
|
+
"description": "Plain text; shown as text, line breaks kept."
|
|
2066
|
+
},
|
|
2067
|
+
"html": {
|
|
2068
|
+
"type": [
|
|
2069
|
+
"string",
|
|
2070
|
+
"null"
|
|
2071
|
+
],
|
|
2072
|
+
"description": "assistant only: server HTML, sanitized again by the component."
|
|
2073
|
+
},
|
|
2074
|
+
"created_at": {
|
|
2075
|
+
"type": [
|
|
2076
|
+
"string",
|
|
2077
|
+
"null"
|
|
2078
|
+
],
|
|
2079
|
+
"format": "date-time",
|
|
2080
|
+
"description": "Omitted when the host does not know it; the component never invents a time."
|
|
2081
|
+
},
|
|
2082
|
+
"status": {
|
|
2083
|
+
"enum": [
|
|
2084
|
+
"queued",
|
|
2085
|
+
"running",
|
|
2086
|
+
"completed",
|
|
2087
|
+
"partial",
|
|
2088
|
+
"refused",
|
|
2089
|
+
"withheld",
|
|
2090
|
+
"failed",
|
|
2091
|
+
"limit"
|
|
2092
|
+
],
|
|
2093
|
+
"description": "assistant only."
|
|
2094
|
+
},
|
|
2095
|
+
"stage": {
|
|
2096
|
+
"type": [
|
|
2097
|
+
"string",
|
|
2098
|
+
"null"
|
|
2099
|
+
]
|
|
2100
|
+
},
|
|
2101
|
+
"sources": {
|
|
2102
|
+
"type": "array",
|
|
2103
|
+
"items": {
|
|
2104
|
+
"type": "object"
|
|
2105
|
+
}
|
|
2106
|
+
},
|
|
2107
|
+
"verification": {
|
|
2108
|
+
"type": [
|
|
2109
|
+
"object",
|
|
2110
|
+
"null"
|
|
2111
|
+
]
|
|
2112
|
+
},
|
|
2113
|
+
"notices": {
|
|
2114
|
+
"type": "array",
|
|
2115
|
+
"items": {
|
|
2116
|
+
"type": "object"
|
|
2117
|
+
}
|
|
2118
|
+
},
|
|
2119
|
+
"proposal": {
|
|
2120
|
+
"type": [
|
|
2121
|
+
"object",
|
|
2122
|
+
"null"
|
|
2123
|
+
],
|
|
2124
|
+
"description": "capability proposals: a change applied only on the confirmed command."
|
|
2125
|
+
},
|
|
2126
|
+
"files": {
|
|
2127
|
+
"type": "array",
|
|
2128
|
+
"items": {
|
|
2129
|
+
"type": "object",
|
|
2130
|
+
"additionalProperties": false,
|
|
2131
|
+
"required": [
|
|
2132
|
+
"name"
|
|
2133
|
+
],
|
|
2134
|
+
"properties": {
|
|
2135
|
+
"id": {
|
|
2136
|
+
"type": [
|
|
2137
|
+
"integer",
|
|
2138
|
+
"string"
|
|
2139
|
+
]
|
|
2140
|
+
},
|
|
2141
|
+
"key": {
|
|
2142
|
+
"type": "string",
|
|
2143
|
+
"description": "Local opaque key of a file not yet stored (a failed upload); never sent to download or delete."
|
|
2144
|
+
},
|
|
2145
|
+
"name": {
|
|
2146
|
+
"type": "string"
|
|
2147
|
+
},
|
|
2148
|
+
"size": {
|
|
2149
|
+
"type": [
|
|
2150
|
+
"integer",
|
|
2151
|
+
"null"
|
|
2152
|
+
]
|
|
2153
|
+
},
|
|
2154
|
+
"mime": {
|
|
2155
|
+
"type": [
|
|
2156
|
+
"string",
|
|
2157
|
+
"null"
|
|
2158
|
+
]
|
|
2159
|
+
},
|
|
2160
|
+
"download_url": {
|
|
2161
|
+
"type": [
|
|
2162
|
+
"string",
|
|
2163
|
+
"null"
|
|
2164
|
+
],
|
|
2165
|
+
"description": "The host's own protected link, as given; the component never builds one."
|
|
2166
|
+
},
|
|
2167
|
+
"state": {
|
|
2168
|
+
"enum": [
|
|
2169
|
+
"uploading",
|
|
2170
|
+
"failed",
|
|
2171
|
+
"ready"
|
|
2172
|
+
]
|
|
2173
|
+
},
|
|
2174
|
+
"progress": {
|
|
2175
|
+
"type": [
|
|
2176
|
+
"number",
|
|
2177
|
+
"null"
|
|
2178
|
+
],
|
|
2179
|
+
"minimum": 0,
|
|
2180
|
+
"maximum": 1
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
},
|
|
2185
|
+
"is_edited": {
|
|
2186
|
+
"type": "boolean"
|
|
2187
|
+
},
|
|
2188
|
+
"is_deleted": {
|
|
2189
|
+
"type": "boolean",
|
|
2190
|
+
"description": "A tombstone: no body, no files."
|
|
2191
|
+
},
|
|
2192
|
+
"revision": {
|
|
2193
|
+
"type": [
|
|
2194
|
+
"integer",
|
|
2195
|
+
"string"
|
|
2196
|
+
]
|
|
2197
|
+
},
|
|
2198
|
+
"can_edit": {
|
|
2199
|
+
"type": "boolean"
|
|
2200
|
+
},
|
|
2201
|
+
"can_delete": {
|
|
2202
|
+
"type": "boolean"
|
|
2203
|
+
},
|
|
2204
|
+
"command": {
|
|
2205
|
+
"type": [
|
|
2206
|
+
"object",
|
|
2207
|
+
"null"
|
|
2208
|
+
],
|
|
2209
|
+
"description": "A message sent for a button (a proposal's command): {kind: confirm|cancel, code}."
|
|
2210
|
+
},
|
|
2211
|
+
"local": {
|
|
2212
|
+
"type": "object",
|
|
2213
|
+
"additionalProperties": false,
|
|
2214
|
+
"required": [
|
|
2215
|
+
"client_key",
|
|
2216
|
+
"action",
|
|
2217
|
+
"state"
|
|
2218
|
+
],
|
|
2219
|
+
"properties": {
|
|
2220
|
+
"client_key": {
|
|
2221
|
+
"type": "string"
|
|
2222
|
+
},
|
|
2223
|
+
"action": {
|
|
2224
|
+
"enum": [
|
|
2225
|
+
"send",
|
|
2226
|
+
"edit",
|
|
2227
|
+
"delete"
|
|
2228
|
+
]
|
|
2229
|
+
},
|
|
2230
|
+
"state": {
|
|
2231
|
+
"enum": [
|
|
2232
|
+
"pending",
|
|
2233
|
+
"failed",
|
|
2234
|
+
"sent"
|
|
2235
|
+
]
|
|
2236
|
+
},
|
|
2237
|
+
"body": {
|
|
2238
|
+
"type": [
|
|
2239
|
+
"string",
|
|
2240
|
+
"null"
|
|
2241
|
+
],
|
|
2242
|
+
"description": "An edit's typed text; kept on failure and conflict."
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
},
|
|
2249
|
+
"history": {
|
|
2250
|
+
"type": "object",
|
|
2251
|
+
"required": [
|
|
2252
|
+
"has_older"
|
|
2253
|
+
],
|
|
2254
|
+
"additionalProperties": false,
|
|
2255
|
+
"properties": {
|
|
2256
|
+
"has_older": {
|
|
2257
|
+
"type": "boolean"
|
|
2258
|
+
},
|
|
2259
|
+
"loading": {
|
|
2260
|
+
"type": "boolean"
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
},
|
|
2264
|
+
"feed_state": {
|
|
2265
|
+
"enum": [
|
|
2266
|
+
"loading",
|
|
2267
|
+
"ready",
|
|
2268
|
+
"error",
|
|
2269
|
+
"revoked"
|
|
2270
|
+
]
|
|
2271
|
+
},
|
|
2272
|
+
"limits": {
|
|
2273
|
+
"type": "object",
|
|
2274
|
+
"additionalProperties": false,
|
|
2275
|
+
"properties": {
|
|
2276
|
+
"body_chars": {
|
|
2277
|
+
"type": "integer"
|
|
2278
|
+
},
|
|
2279
|
+
"files_per_message": {
|
|
2280
|
+
"type": "integer"
|
|
2281
|
+
},
|
|
2282
|
+
"file_bytes": {
|
|
2283
|
+
"type": "integer"
|
|
2284
|
+
},
|
|
2285
|
+
"file_types": {
|
|
2286
|
+
"type": "array",
|
|
2287
|
+
"items": {
|
|
2288
|
+
"type": "string"
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
},
|
|
2293
|
+
"interlocutors": {
|
|
2294
|
+
"type": "array",
|
|
2295
|
+
"items": {
|
|
2296
|
+
"type": "object",
|
|
2297
|
+
"required": [
|
|
2298
|
+
"id",
|
|
2299
|
+
"title"
|
|
2300
|
+
],
|
|
2301
|
+
"properties": {
|
|
2302
|
+
"id": {
|
|
2303
|
+
"type": "string"
|
|
2304
|
+
},
|
|
2305
|
+
"title": {
|
|
2306
|
+
"type": "string"
|
|
2307
|
+
},
|
|
2308
|
+
"kind": {
|
|
2309
|
+
"type": "string"
|
|
2310
|
+
},
|
|
2311
|
+
"greeting": {
|
|
2312
|
+
"type": "string"
|
|
2313
|
+
},
|
|
2314
|
+
"suggestions": {
|
|
2315
|
+
"type": "array",
|
|
2316
|
+
"items": {
|
|
2317
|
+
"type": "string"
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
},
|
|
2323
|
+
"notice": {
|
|
2324
|
+
"type": [
|
|
2325
|
+
"object",
|
|
2326
|
+
"null"
|
|
2327
|
+
],
|
|
2328
|
+
"properties": {
|
|
2329
|
+
"kind": {
|
|
2330
|
+
"enum": [
|
|
2331
|
+
"error",
|
|
2332
|
+
"info"
|
|
2333
|
+
]
|
|
2334
|
+
},
|
|
2335
|
+
"text": {
|
|
2336
|
+
"type": "string"
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
},
|
|
2340
|
+
"conversation_list": {
|
|
2341
|
+
"type": "object",
|
|
2342
|
+
"description": "Extension: which list the side shows, whether a next page exists, and the search it holds (x-conversations-search).",
|
|
2343
|
+
"properties": {
|
|
2344
|
+
"archived": {
|
|
2345
|
+
"type": "boolean"
|
|
2346
|
+
},
|
|
2347
|
+
"has_more": {
|
|
2348
|
+
"type": "boolean"
|
|
2349
|
+
},
|
|
2350
|
+
"loading": {
|
|
2351
|
+
"type": "boolean"
|
|
2352
|
+
},
|
|
2353
|
+
"query": {
|
|
2354
|
+
"type": "string",
|
|
2355
|
+
"description": "The title searched for; empty when the list is not searched."
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
},
|
|
2359
|
+
"composer_files": {
|
|
2360
|
+
"type": "array",
|
|
2361
|
+
"description": "Extension (x-early-upload): the composer's chips as port files, with `reason` for a refused one.",
|
|
2362
|
+
"items": {
|
|
2363
|
+
"type": "object",
|
|
2364
|
+
"required": [
|
|
2365
|
+
"key",
|
|
2366
|
+
"name"
|
|
2367
|
+
],
|
|
2368
|
+
"properties": {
|
|
2369
|
+
"key": {
|
|
2370
|
+
"type": "string"
|
|
2371
|
+
},
|
|
2372
|
+
"id": {
|
|
2373
|
+
"type": [
|
|
2374
|
+
"integer",
|
|
2375
|
+
"string"
|
|
2376
|
+
]
|
|
2377
|
+
},
|
|
2378
|
+
"name": {
|
|
2379
|
+
"type": "string"
|
|
2380
|
+
},
|
|
2381
|
+
"size": {
|
|
2382
|
+
"type": [
|
|
2383
|
+
"integer",
|
|
2384
|
+
"null"
|
|
2385
|
+
]
|
|
2386
|
+
},
|
|
2387
|
+
"state": {
|
|
2388
|
+
"enum": [
|
|
2389
|
+
"uploading",
|
|
2390
|
+
"failed",
|
|
2391
|
+
"ready"
|
|
2392
|
+
]
|
|
2393
|
+
},
|
|
2394
|
+
"progress": {
|
|
2395
|
+
"type": [
|
|
2396
|
+
"number",
|
|
2397
|
+
"null"
|
|
2398
|
+
]
|
|
2399
|
+
},
|
|
2400
|
+
"reason": {
|
|
2401
|
+
"type": "string"
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
},
|
|
2406
|
+
"my_files": {
|
|
2407
|
+
"type": [
|
|
2408
|
+
"object",
|
|
2409
|
+
"null"
|
|
2410
|
+
],
|
|
2411
|
+
"description": "Extension (x-my-files): the person's kept files, newest first, with the space used and allowed as the host counts them; each file's download_url is the host's own.",
|
|
2412
|
+
"properties": {
|
|
2413
|
+
"files": {
|
|
2414
|
+
"type": "array",
|
|
2415
|
+
"items": {
|
|
2416
|
+
"type": "object",
|
|
2417
|
+
"required": [
|
|
2418
|
+
"id",
|
|
2419
|
+
"name"
|
|
2420
|
+
],
|
|
2421
|
+
"properties": {
|
|
2422
|
+
"id": {
|
|
2423
|
+
"type": [
|
|
2424
|
+
"integer",
|
|
2425
|
+
"string"
|
|
2426
|
+
]
|
|
2427
|
+
},
|
|
2428
|
+
"name": {
|
|
2429
|
+
"type": "string"
|
|
2430
|
+
},
|
|
2431
|
+
"size": {
|
|
2432
|
+
"type": [
|
|
2433
|
+
"integer",
|
|
2434
|
+
"null"
|
|
2435
|
+
]
|
|
2436
|
+
},
|
|
2437
|
+
"type": {
|
|
2438
|
+
"type": [
|
|
2439
|
+
"string",
|
|
2440
|
+
"null"
|
|
2441
|
+
]
|
|
2442
|
+
},
|
|
2443
|
+
"created_at": {
|
|
2444
|
+
"type": [
|
|
2445
|
+
"string",
|
|
2446
|
+
"null"
|
|
2447
|
+
]
|
|
2448
|
+
},
|
|
2449
|
+
"saved_to_base": {
|
|
2450
|
+
"type": "boolean"
|
|
2451
|
+
},
|
|
2452
|
+
"download_url": {
|
|
2453
|
+
"type": [
|
|
2454
|
+
"string",
|
|
2455
|
+
"null"
|
|
2456
|
+
]
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
}
|
|
2460
|
+
},
|
|
2461
|
+
"used_bytes": {
|
|
2462
|
+
"type": [
|
|
2463
|
+
"integer",
|
|
2464
|
+
"null"
|
|
2465
|
+
]
|
|
2466
|
+
},
|
|
2467
|
+
"quota_bytes": {
|
|
2468
|
+
"type": [
|
|
2469
|
+
"integer",
|
|
2470
|
+
"null"
|
|
2471
|
+
]
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
],
|
|
2479
|
+
"returns": {
|
|
2480
|
+
"type": "object"
|
|
2481
|
+
}
|
|
2482
|
+
},
|
|
2483
|
+
"answer": {
|
|
2484
|
+
"summary": "The host's answer to an intent: {answer, reason, text, data, current}. An applied answer's data is applied as data. Returns false for an unknown request_id. Kept from 0.3 for a host without a port; the action settle is its manifest form.",
|
|
2485
|
+
"arguments": [
|
|
2486
|
+
{
|
|
2487
|
+
"name": "request_id",
|
|
2488
|
+
"required": true,
|
|
2489
|
+
"schema": {
|
|
2490
|
+
"type": "string"
|
|
2491
|
+
}
|
|
2492
|
+
},
|
|
2493
|
+
{
|
|
2494
|
+
"name": "result",
|
|
2495
|
+
"required": true,
|
|
2496
|
+
"schema": {
|
|
2497
|
+
"type": "object",
|
|
2498
|
+
"required": [
|
|
2499
|
+
"answer"
|
|
2500
|
+
],
|
|
2501
|
+
"properties": {
|
|
2502
|
+
"answer": {
|
|
2503
|
+
"enum": [
|
|
2504
|
+
"applied",
|
|
2505
|
+
"conflict",
|
|
2506
|
+
"refused",
|
|
2507
|
+
"unavailable"
|
|
2508
|
+
]
|
|
2509
|
+
},
|
|
2510
|
+
"reason": {
|
|
2511
|
+
"type": "string"
|
|
2512
|
+
},
|
|
2513
|
+
"text": {
|
|
2514
|
+
"type": "string"
|
|
2515
|
+
},
|
|
2516
|
+
"data": {
|
|
2517
|
+
"type": "object"
|
|
2518
|
+
},
|
|
2519
|
+
"current": {
|
|
2520
|
+
"type": "object",
|
|
2521
|
+
"additionalProperties": false,
|
|
2522
|
+
"required": [
|
|
2523
|
+
"id",
|
|
2524
|
+
"kind",
|
|
2525
|
+
"author"
|
|
2526
|
+
],
|
|
2527
|
+
"properties": {
|
|
2528
|
+
"id": {
|
|
2529
|
+
"type": [
|
|
2530
|
+
"integer",
|
|
2531
|
+
"string",
|
|
2532
|
+
"null"
|
|
2533
|
+
],
|
|
2534
|
+
"description": "null only for a send not yet stored (then local is required)."
|
|
2535
|
+
},
|
|
2536
|
+
"kind": {
|
|
2537
|
+
"enum": [
|
|
2538
|
+
"person",
|
|
2539
|
+
"assistant"
|
|
2540
|
+
],
|
|
2541
|
+
"description": "person: written by a person (the reader or another); assistant: an answer of an AI assistant."
|
|
2542
|
+
},
|
|
2543
|
+
"author": {
|
|
2544
|
+
"type": "object",
|
|
2545
|
+
"additionalProperties": false,
|
|
2546
|
+
"required": [
|
|
2547
|
+
"id"
|
|
2548
|
+
],
|
|
2549
|
+
"properties": {
|
|
2550
|
+
"id": {
|
|
2551
|
+
"type": [
|
|
2552
|
+
"integer",
|
|
2553
|
+
"string"
|
|
2554
|
+
]
|
|
2555
|
+
},
|
|
2556
|
+
"name": {
|
|
2557
|
+
"type": [
|
|
2558
|
+
"string",
|
|
2559
|
+
"null"
|
|
2560
|
+
]
|
|
2561
|
+
},
|
|
2562
|
+
"avatar_url": {
|
|
2563
|
+
"type": [
|
|
2564
|
+
"string",
|
|
2565
|
+
"null"
|
|
2566
|
+
]
|
|
2567
|
+
},
|
|
2568
|
+
"own": {
|
|
2569
|
+
"type": "boolean",
|
|
2570
|
+
"description": "The reader wrote it."
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
},
|
|
2574
|
+
"body": {
|
|
2575
|
+
"type": [
|
|
2576
|
+
"string",
|
|
2577
|
+
"null"
|
|
2578
|
+
],
|
|
2579
|
+
"description": "Plain text; shown as text, line breaks kept."
|
|
2580
|
+
},
|
|
2581
|
+
"html": {
|
|
2582
|
+
"type": [
|
|
2583
|
+
"string",
|
|
2584
|
+
"null"
|
|
2585
|
+
],
|
|
2586
|
+
"description": "assistant only: server HTML, sanitized again by the component."
|
|
2587
|
+
},
|
|
2588
|
+
"created_at": {
|
|
2589
|
+
"type": [
|
|
2590
|
+
"string",
|
|
2591
|
+
"null"
|
|
2592
|
+
],
|
|
2593
|
+
"format": "date-time",
|
|
2594
|
+
"description": "Omitted when the host does not know it; the component never invents a time."
|
|
2595
|
+
},
|
|
2596
|
+
"status": {
|
|
2597
|
+
"enum": [
|
|
2598
|
+
"queued",
|
|
2599
|
+
"running",
|
|
2600
|
+
"completed",
|
|
2601
|
+
"partial",
|
|
2602
|
+
"refused",
|
|
2603
|
+
"withheld",
|
|
2604
|
+
"failed",
|
|
2605
|
+
"limit"
|
|
2606
|
+
],
|
|
2607
|
+
"description": "assistant only."
|
|
2608
|
+
},
|
|
2609
|
+
"stage": {
|
|
2610
|
+
"type": [
|
|
2611
|
+
"string",
|
|
2612
|
+
"null"
|
|
2613
|
+
]
|
|
2614
|
+
},
|
|
2615
|
+
"sources": {
|
|
2616
|
+
"type": "array",
|
|
2617
|
+
"items": {
|
|
2618
|
+
"type": "object"
|
|
2619
|
+
}
|
|
2620
|
+
},
|
|
2621
|
+
"verification": {
|
|
2622
|
+
"type": [
|
|
2623
|
+
"object",
|
|
2624
|
+
"null"
|
|
2625
|
+
]
|
|
2626
|
+
},
|
|
2627
|
+
"notices": {
|
|
2628
|
+
"type": "array",
|
|
2629
|
+
"items": {
|
|
2630
|
+
"type": "object"
|
|
2631
|
+
}
|
|
2632
|
+
},
|
|
2633
|
+
"proposal": {
|
|
2634
|
+
"type": [
|
|
2635
|
+
"object",
|
|
2636
|
+
"null"
|
|
2637
|
+
],
|
|
2638
|
+
"description": "capability proposals: a change applied only on the confirmed command."
|
|
2639
|
+
},
|
|
2640
|
+
"files": {
|
|
2641
|
+
"type": "array",
|
|
2642
|
+
"items": {
|
|
2643
|
+
"type": "object",
|
|
2644
|
+
"additionalProperties": false,
|
|
2645
|
+
"required": [
|
|
2646
|
+
"name"
|
|
2647
|
+
],
|
|
2648
|
+
"properties": {
|
|
2649
|
+
"id": {
|
|
2650
|
+
"type": [
|
|
2651
|
+
"integer",
|
|
2652
|
+
"string"
|
|
2653
|
+
]
|
|
2654
|
+
},
|
|
2655
|
+
"key": {
|
|
2656
|
+
"type": "string",
|
|
2657
|
+
"description": "Local opaque key of a file not yet stored (a failed upload); never sent to download or delete."
|
|
2658
|
+
},
|
|
2659
|
+
"name": {
|
|
2660
|
+
"type": "string"
|
|
2661
|
+
},
|
|
2662
|
+
"size": {
|
|
2663
|
+
"type": [
|
|
2664
|
+
"integer",
|
|
2665
|
+
"null"
|
|
2666
|
+
]
|
|
2667
|
+
},
|
|
2668
|
+
"mime": {
|
|
2669
|
+
"type": [
|
|
2670
|
+
"string",
|
|
2671
|
+
"null"
|
|
2672
|
+
]
|
|
2673
|
+
},
|
|
2674
|
+
"download_url": {
|
|
2675
|
+
"type": [
|
|
2676
|
+
"string",
|
|
2677
|
+
"null"
|
|
2678
|
+
],
|
|
2679
|
+
"description": "The host's own protected link, as given; the component never builds one."
|
|
2680
|
+
},
|
|
2681
|
+
"state": {
|
|
2682
|
+
"enum": [
|
|
2683
|
+
"uploading",
|
|
2684
|
+
"failed",
|
|
2685
|
+
"ready"
|
|
2686
|
+
]
|
|
2687
|
+
},
|
|
2688
|
+
"progress": {
|
|
2689
|
+
"type": [
|
|
2690
|
+
"number",
|
|
2691
|
+
"null"
|
|
2692
|
+
],
|
|
2693
|
+
"minimum": 0,
|
|
2694
|
+
"maximum": 1
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
},
|
|
2699
|
+
"is_edited": {
|
|
2700
|
+
"type": "boolean"
|
|
2701
|
+
},
|
|
2702
|
+
"is_deleted": {
|
|
2703
|
+
"type": "boolean",
|
|
2704
|
+
"description": "A tombstone: no body, no files."
|
|
2705
|
+
},
|
|
2706
|
+
"revision": {
|
|
2707
|
+
"type": [
|
|
2708
|
+
"integer",
|
|
2709
|
+
"string"
|
|
2710
|
+
]
|
|
2711
|
+
},
|
|
2712
|
+
"can_edit": {
|
|
2713
|
+
"type": "boolean"
|
|
2714
|
+
},
|
|
2715
|
+
"can_delete": {
|
|
2716
|
+
"type": "boolean"
|
|
2717
|
+
},
|
|
2718
|
+
"command": {
|
|
2719
|
+
"type": [
|
|
2720
|
+
"object",
|
|
2721
|
+
"null"
|
|
2722
|
+
],
|
|
2723
|
+
"description": "A message sent for a button (a proposal's command): {kind: confirm|cancel, code}."
|
|
2724
|
+
},
|
|
2725
|
+
"local": {
|
|
2726
|
+
"type": "object",
|
|
2727
|
+
"additionalProperties": false,
|
|
2728
|
+
"required": [
|
|
2729
|
+
"client_key",
|
|
2730
|
+
"action",
|
|
2731
|
+
"state"
|
|
2732
|
+
],
|
|
2733
|
+
"properties": {
|
|
2734
|
+
"client_key": {
|
|
2735
|
+
"type": "string"
|
|
2736
|
+
},
|
|
2737
|
+
"action": {
|
|
2738
|
+
"enum": [
|
|
2739
|
+
"send",
|
|
2740
|
+
"edit",
|
|
2741
|
+
"delete"
|
|
2742
|
+
]
|
|
2743
|
+
},
|
|
2744
|
+
"state": {
|
|
2745
|
+
"enum": [
|
|
2746
|
+
"pending",
|
|
2747
|
+
"failed",
|
|
2748
|
+
"sent"
|
|
2749
|
+
]
|
|
2750
|
+
},
|
|
2751
|
+
"body": {
|
|
2752
|
+
"type": [
|
|
2753
|
+
"string",
|
|
2754
|
+
"null"
|
|
2755
|
+
],
|
|
2756
|
+
"description": "An edit's typed text; kept on failure and conflict."
|
|
2757
|
+
}
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
}
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
],
|
|
2766
|
+
"returns": {
|
|
2767
|
+
"type": "boolean"
|
|
2768
|
+
}
|
|
2769
|
+
},
|
|
2770
|
+
"request": {
|
|
2771
|
+
"summary": "Raise an intent by the port's name: the event sf-chat-window-<verb>, then the port's raise or the host's settle; resolves with the answer. An undeclared capability resolves unavailable without an event, a cancelled event refused (prevented).",
|
|
2772
|
+
"arguments": [
|
|
2773
|
+
{
|
|
2774
|
+
"name": "intent",
|
|
2775
|
+
"required": true,
|
|
2776
|
+
"schema": {
|
|
2777
|
+
"type": "string"
|
|
2778
|
+
}
|
|
2779
|
+
},
|
|
2780
|
+
{
|
|
2781
|
+
"name": "payload",
|
|
2782
|
+
"required": false,
|
|
2783
|
+
"schema": {
|
|
2784
|
+
"type": "object"
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
],
|
|
2788
|
+
"returns": {
|
|
2789
|
+
"type": "object"
|
|
2790
|
+
}
|
|
2791
|
+
},
|
|
2792
|
+
"connectPort": {
|
|
2793
|
+
"summary": "The base action connect-port {port} (§4.1, §4.9; setHostPort its alias): an adapter {port: 'simai.chat-port', version, capabilities, raise(intent, payload)} that answers each intent.",
|
|
2794
|
+
"arguments": [
|
|
2795
|
+
{
|
|
2796
|
+
"name": "port",
|
|
2797
|
+
"required": true,
|
|
2798
|
+
"schema": {
|
|
2799
|
+
"type": "object"
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2802
|
+
],
|
|
2803
|
+
"returns": {
|
|
2804
|
+
"type": "object"
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
}
|