@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.
Files changed (261) hide show
  1. package/LICENSE.md +182 -0
  2. package/README.md +65 -2
  3. package/dist/package-receipt.json +1551 -0
  4. package/dist/set.json +105 -0
  5. package/dist/smart/chat-composer/aliases.json +56 -0
  6. package/dist/smart/chat-composer/aliases.json.gz +0 -0
  7. package/dist/smart/chat-composer/component.json +658 -0
  8. package/dist/smart/chat-composer/component.json.gz +0 -0
  9. package/dist/smart/chat-composer/css/chat-composer.css +318 -0
  10. package/dist/smart/chat-composer/css/chat-composer.css.gz +0 -0
  11. package/dist/smart/chat-composer/css/chat-composer.min.css +2 -0
  12. package/dist/smart/chat-composer/css/chat-composer.min.css.gz +0 -0
  13. package/dist/smart/chat-composer/examples.json +531 -0
  14. package/dist/smart/chat-composer/examples.json.gz +0 -0
  15. package/dist/smart/chat-composer/js/chat-composer.js +1023 -0
  16. package/dist/smart/chat-composer/js/chat-composer.js.gz +0 -0
  17. package/dist/smart/chat-composer/js/chat-composer.min.js +75 -0
  18. package/dist/smart/chat-composer/js/chat-composer.min.js.gz +0 -0
  19. package/dist/smart/chat-composer/lang/en.json +31 -0
  20. package/dist/smart/chat-composer/lang/en.json.gz +0 -0
  21. package/dist/smart/chat-composer/lang/ru.json +31 -0
  22. package/dist/smart/chat-composer/lang/ru.json.gz +0 -0
  23. package/dist/smart/chat-composer/probe.json +400 -0
  24. package/dist/smart/chat-composer/probe.json.gz +0 -0
  25. package/dist/smart/chat-composer/smart.manifest.json +625 -0
  26. package/dist/smart/chat-composer/smart.manifest.json.gz +0 -0
  27. package/dist/smart/chat-composer/static/default/busy.html +20 -0
  28. package/dist/smart/chat-composer/static/default/busy.html.gz +0 -0
  29. package/dist/smart/chat-composer/static/default/disabled.html +20 -0
  30. package/dist/smart/chat-composer/static/default/disabled.html.gz +0 -0
  31. package/dist/smart/chat-composer/static/default/files.html +44 -0
  32. package/dist/smart/chat-composer/static/default/files.html.gz +0 -0
  33. package/dist/smart/chat-composer/static/default/near-limit.html +20 -0
  34. package/dist/smart/chat-composer/static/default/near-limit.html.gz +0 -0
  35. package/dist/smart/chat-composer/static/default/reference.html +20 -0
  36. package/dist/smart/chat-composer/static/default/reference.html.gz +0 -0
  37. package/dist/smart/chat-composer/static/sheets.json +88 -0
  38. package/dist/smart/chat-composer/static/sheets.json.gz +0 -0
  39. package/dist/smart/chat-composer/studio.fixture.json +18 -0
  40. package/dist/smart/chat-composer/studio.fixture.json.gz +0 -0
  41. package/dist/smart/chat-composer/studio.scenario.json +37 -0
  42. package/dist/smart/chat-composer/studio.scenario.json.gz +0 -0
  43. package/dist/smart/chat-composer/template/default.css +273 -0
  44. package/dist/smart/chat-composer/template/default.css.gz +0 -0
  45. package/dist/smart/chat-composer/template/default.js +109 -0
  46. package/dist/smart/chat-composer/template/default.js.gz +0 -0
  47. package/dist/smart/chat-composer/template/parts.js +82 -0
  48. package/dist/smart/chat-composer/template/parts.js.gz +0 -0
  49. package/dist/smart/chat-interlocutor/aliases.json +20 -0
  50. package/dist/smart/chat-interlocutor/aliases.json.gz +0 -0
  51. package/dist/smart/chat-interlocutor/component.json +435 -0
  52. package/dist/smart/chat-interlocutor/component.json.gz +0 -0
  53. package/dist/smart/chat-interlocutor/css/chat-interlocutor.css +107 -0
  54. package/dist/smart/chat-interlocutor/css/chat-interlocutor.css.gz +0 -0
  55. package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css +2 -0
  56. package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css.gz +0 -0
  57. package/dist/smart/chat-interlocutor/examples.json +379 -0
  58. package/dist/smart/chat-interlocutor/examples.json.gz +0 -0
  59. package/dist/smart/chat-interlocutor/js/chat-interlocutor.js +531 -0
  60. package/dist/smart/chat-interlocutor/js/chat-interlocutor.js.gz +0 -0
  61. package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js +22 -0
  62. package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js.gz +0 -0
  63. package/dist/smart/chat-interlocutor/lang/en.json +13 -0
  64. package/dist/smart/chat-interlocutor/lang/en.json.gz +0 -0
  65. package/dist/smart/chat-interlocutor/lang/ru.json +13 -0
  66. package/dist/smart/chat-interlocutor/lang/ru.json.gz +0 -0
  67. package/dist/smart/chat-interlocutor/probe.json +204 -0
  68. package/dist/smart/chat-interlocutor/probe.json.gz +0 -0
  69. package/dist/smart/chat-interlocutor/smart.manifest.json +406 -0
  70. package/dist/smart/chat-interlocutor/smart.manifest.json.gz +0 -0
  71. package/dist/smart/chat-interlocutor/static/default/former.html +10 -0
  72. package/dist/smart/chat-interlocutor/static/default/former.html.gz +0 -0
  73. package/dist/smart/chat-interlocutor/static/default/grouped.html +10 -0
  74. package/dist/smart/chat-interlocutor/static/default/grouped.html.gz +0 -0
  75. package/dist/smart/chat-interlocutor/static/default/reference.html +10 -0
  76. package/dist/smart/chat-interlocutor/static/default/reference.html.gz +0 -0
  77. package/dist/smart/chat-interlocutor/static/default/single.html +10 -0
  78. package/dist/smart/chat-interlocutor/static/default/single.html.gz +0 -0
  79. package/dist/smart/chat-interlocutor/static/sheets.json +105 -0
  80. package/dist/smart/chat-interlocutor/static/sheets.json.gz +0 -0
  81. package/dist/smart/chat-interlocutor/studio.fixture.json +25 -0
  82. package/dist/smart/chat-interlocutor/studio.fixture.json.gz +0 -0
  83. package/dist/smart/chat-interlocutor/studio.scenario.json +41 -0
  84. package/dist/smart/chat-interlocutor/studio.scenario.json.gz +0 -0
  85. package/dist/smart/chat-interlocutor/template/default.css +58 -0
  86. package/dist/smart/chat-interlocutor/template/default.css.gz +0 -0
  87. package/dist/smart/chat-interlocutor/template/default.js +43 -0
  88. package/dist/smart/chat-interlocutor/template/default.js.gz +0 -0
  89. package/dist/smart/chat-message/aliases.json +114 -0
  90. package/dist/smart/chat-message/aliases.json.gz +0 -0
  91. package/dist/smart/chat-message/component.json +822 -0
  92. package/dist/smart/chat-message/component.json.gz +0 -0
  93. package/dist/smart/chat-message/css/chat-message.css +3291 -0
  94. package/dist/smart/chat-message/css/chat-message.css.gz +0 -0
  95. package/dist/smart/chat-message/css/chat-message.min.css +2 -0
  96. package/dist/smart/chat-message/css/chat-message.min.css.gz +0 -0
  97. package/dist/smart/chat-message/examples.json +1604 -0
  98. package/dist/smart/chat-message/examples.json.gz +0 -0
  99. package/dist/smart/chat-message/js/chat-message.js +5498 -0
  100. package/dist/smart/chat-message/js/chat-message.js.gz +0 -0
  101. package/dist/smart/chat-message/js/chat-message.min.js +25 -0
  102. package/dist/smart/chat-message/js/chat-message.min.js.gz +0 -0
  103. package/dist/smart/chat-message/lang/en.json +181 -0
  104. package/dist/smart/chat-message/lang/en.json.gz +0 -0
  105. package/dist/smart/chat-message/lang/ru.json +185 -0
  106. package/dist/smart/chat-message/lang/ru.json.gz +0 -0
  107. package/dist/smart/chat-message/probe.json +1029 -0
  108. package/dist/smart/chat-message/probe.json.gz +0 -0
  109. package/dist/smart/chat-message/smart.manifest.json +814 -0
  110. package/dist/smart/chat-message/smart.manifest.json.gz +0 -0
  111. package/dist/smart/chat-message/static/default/brief-card.html +2 -0
  112. package/dist/smart/chat-message/static/default/brief-card.html.gz +0 -0
  113. package/dist/smart/chat-message/static/default/brief-questions.html +2 -0
  114. package/dist/smart/chat-message/static/default/brief-questions.html.gz +0 -0
  115. package/dist/smart/chat-message/static/default/deliverables.html +2 -0
  116. package/dist/smart/chat-message/static/default/deliverables.html.gz +0 -0
  117. package/dist/smart/chat-message/static/default/document.html +13 -0
  118. package/dist/smart/chat-message/static/default/document.html.gz +0 -0
  119. package/dist/smart/chat-message/static/default/failed.html +2 -0
  120. package/dist/smart/chat-message/static/default/failed.html.gz +0 -0
  121. package/dist/smart/chat-message/static/default/feedback-reason.html +2 -0
  122. package/dist/smart/chat-message/static/default/feedback-reason.html.gz +0 -0
  123. package/dist/smart/chat-message/static/default/limit.html +2 -0
  124. package/dist/smart/chat-message/static/default/limit.html.gz +0 -0
  125. package/dist/smart/chat-message/static/default/proposal.html +42 -0
  126. package/dist/smart/chat-message/static/default/proposal.html.gz +0 -0
  127. package/dist/smart/chat-message/static/default/question.html +18 -0
  128. package/dist/smart/chat-message/static/default/question.html.gz +0 -0
  129. package/dist/smart/chat-message/static/default/reference.html +2 -0
  130. package/dist/smart/chat-message/static/default/reference.html.gz +0 -0
  131. package/dist/smart/chat-message/static/default/steps.html +2 -0
  132. package/dist/smart/chat-message/static/default/steps.html.gz +0 -0
  133. package/dist/smart/chat-message/static/default/stopped.html +2 -0
  134. package/dist/smart/chat-message/static/default/stopped.html.gz +0 -0
  135. package/dist/smart/chat-message/static/default/waiting.html +2 -0
  136. package/dist/smart/chat-message/static/default/waiting.html.gz +0 -0
  137. package/dist/smart/chat-message/static/person/person-own.html +2 -0
  138. package/dist/smart/chat-message/static/person/person-own.html.gz +0 -0
  139. package/dist/smart/chat-message/static/person/person-reply.html +6 -0
  140. package/dist/smart/chat-message/static/person/person-reply.html.gz +0 -0
  141. package/dist/smart/chat-message/static/person/person.html +14 -0
  142. package/dist/smart/chat-message/static/person/person.html.gz +0 -0
  143. package/dist/smart/chat-message/static/sheets.json +398 -0
  144. package/dist/smart/chat-message/static/sheets.json.gz +0 -0
  145. package/dist/smart/chat-message/studio.fixture.json +27 -0
  146. package/dist/smart/chat-message/studio.fixture.json.gz +0 -0
  147. package/dist/smart/chat-message/studio.scenario.json +22 -0
  148. package/dist/smart/chat-message/studio.scenario.json.gz +0 -0
  149. package/dist/smart/chat-message/template/default.css +1895 -0
  150. package/dist/smart/chat-message/template/default.css.gz +0 -0
  151. package/dist/smart/chat-message/template/default.js +27 -0
  152. package/dist/smart/chat-message/template/default.js.gz +0 -0
  153. package/dist/smart/chat-message/template/person.js +11 -0
  154. package/dist/smart/chat-message/template/person.js.gz +0 -0
  155. package/dist/smart/chat-threads/aliases.json +174 -0
  156. package/dist/smart/chat-threads/aliases.json.gz +0 -0
  157. package/dist/smart/chat-threads/component.json +1232 -0
  158. package/dist/smart/chat-threads/component.json.gz +0 -0
  159. package/dist/smart/chat-threads/css/chat-threads.css +150 -0
  160. package/dist/smart/chat-threads/css/chat-threads.css.gz +0 -0
  161. package/dist/smart/chat-threads/css/chat-threads.min.css +2 -0
  162. package/dist/smart/chat-threads/css/chat-threads.min.css.gz +0 -0
  163. package/dist/smart/chat-threads/examples.json +689 -0
  164. package/dist/smart/chat-threads/examples.json.gz +0 -0
  165. package/dist/smart/chat-threads/js/chat-threads.js +859 -0
  166. package/dist/smart/chat-threads/js/chat-threads.js.gz +0 -0
  167. package/dist/smart/chat-threads/js/chat-threads.min.js +39 -0
  168. package/dist/smart/chat-threads/js/chat-threads.min.js.gz +0 -0
  169. package/dist/smart/chat-threads/lang/en.json +18 -0
  170. package/dist/smart/chat-threads/lang/en.json.gz +0 -0
  171. package/dist/smart/chat-threads/lang/ru.json +18 -0
  172. package/dist/smart/chat-threads/lang/ru.json.gz +0 -0
  173. package/dist/smart/chat-threads/probe.json +406 -0
  174. package/dist/smart/chat-threads/probe.json.gz +0 -0
  175. package/dist/smart/chat-threads/smart.manifest.json +1152 -0
  176. package/dist/smart/chat-threads/smart.manifest.json.gz +0 -0
  177. package/dist/smart/chat-threads/static/default/activity.html +139 -0
  178. package/dist/smart/chat-threads/static/default/activity.html.gz +0 -0
  179. package/dist/smart/chat-threads/static/default/activity.skeleton.html +139 -0
  180. package/dist/smart/chat-threads/static/default/activity.skeleton.html.gz +0 -0
  181. package/dist/smart/chat-threads/static/default/archive.html +55 -0
  182. package/dist/smart/chat-threads/static/default/archive.html.gz +0 -0
  183. package/dist/smart/chat-threads/static/default/archive.skeleton.html +55 -0
  184. package/dist/smart/chat-threads/static/default/archive.skeleton.html.gz +0 -0
  185. package/dist/smart/chat-threads/static/default/avatars.html +104 -0
  186. package/dist/smart/chat-threads/static/default/avatars.html.gz +0 -0
  187. package/dist/smart/chat-threads/static/default/avatars.skeleton.html +104 -0
  188. package/dist/smart/chat-threads/static/default/avatars.skeleton.html.gz +0 -0
  189. package/dist/smart/chat-threads/static/default/empty.html +48 -0
  190. package/dist/smart/chat-threads/static/default/empty.html.gz +0 -0
  191. package/dist/smart/chat-threads/static/default/loading.html +48 -0
  192. package/dist/smart/chat-threads/static/default/loading.html.gz +0 -0
  193. package/dist/smart/chat-threads/static/default/people.html +95 -0
  194. package/dist/smart/chat-threads/static/default/people.html.gz +0 -0
  195. package/dist/smart/chat-threads/static/default/people.skeleton.html +95 -0
  196. package/dist/smart/chat-threads/static/default/people.skeleton.html.gz +0 -0
  197. package/dist/smart/chat-threads/static/default/reference.html +114 -0
  198. package/dist/smart/chat-threads/static/default/reference.html.gz +0 -0
  199. package/dist/smart/chat-threads/static/default/reference.skeleton.html +114 -0
  200. package/dist/smart/chat-threads/static/default/reference.skeleton.html.gz +0 -0
  201. package/dist/smart/chat-threads/static/default/ungrouped.html +94 -0
  202. package/dist/smart/chat-threads/static/default/ungrouped.html.gz +0 -0
  203. package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html +94 -0
  204. package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html.gz +0 -0
  205. package/dist/smart/chat-threads/static/sheets.json +422 -0
  206. package/dist/smart/chat-threads/static/sheets.json.gz +0 -0
  207. package/dist/smart/chat-threads/studio.fixture.json +23 -0
  208. package/dist/smart/chat-threads/studio.fixture.json.gz +0 -0
  209. package/dist/smart/chat-threads/template/default.css +113 -0
  210. package/dist/smart/chat-threads/template/default.css.gz +0 -0
  211. package/dist/smart/chat-threads/template/default.js +62 -0
  212. package/dist/smart/chat-threads/template/default.js.gz +0 -0
  213. package/dist/smart/chat-window/aliases.json +395 -0
  214. package/dist/smart/chat-window/aliases.json.gz +0 -0
  215. package/dist/smart/chat-window/component.json +2809 -0
  216. package/dist/smart/chat-window/component.json.gz +0 -0
  217. package/dist/smart/chat-window/css/chat-window.css +1717 -0
  218. package/dist/smart/chat-window/css/chat-window.css.gz +0 -0
  219. package/dist/smart/chat-window/css/chat-window.min.css +2 -0
  220. package/dist/smart/chat-window/css/chat-window.min.css.gz +0 -0
  221. package/dist/smart/chat-window/examples.json +2798 -0
  222. package/dist/smart/chat-window/examples.json.gz +0 -0
  223. package/dist/smart/chat-window/js/chat-window.js +12382 -0
  224. package/dist/smart/chat-window/js/chat-window.js.gz +0 -0
  225. package/dist/smart/chat-window/js/chat-window.min.js +1 -0
  226. package/dist/smart/chat-window/js/chat-window.min.js.gz +0 -0
  227. package/dist/smart/chat-window/lang/en.json +212 -0
  228. package/dist/smart/chat-window/lang/en.json.gz +0 -0
  229. package/dist/smart/chat-window/lang/ru.json +218 -0
  230. package/dist/smart/chat-window/lang/ru.json.gz +0 -0
  231. package/dist/smart/chat-window/probe.json +2023 -0
  232. package/dist/smart/chat-window/probe.json.gz +0 -0
  233. package/dist/smart/chat-window/smart.manifest.json +2835 -0
  234. package/dist/smart/chat-window/smart.manifest.json.gz +0 -0
  235. package/dist/smart/chat-window/static/default/archived.html +97 -0
  236. package/dist/smart/chat-window/static/default/archived.html.gz +0 -0
  237. package/dist/smart/chat-window/static/default/embedded.html +119 -0
  238. package/dist/smart/chat-window/static/default/embedded.html.gz +0 -0
  239. package/dist/smart/chat-window/static/default/greeting.html +119 -0
  240. package/dist/smart/chat-window/static/default/greeting.html.gz +0 -0
  241. package/dist/smart/chat-window/static/default/people.html +110 -0
  242. package/dist/smart/chat-window/static/default/people.html.gz +0 -0
  243. package/dist/smart/chat-window/static/default/proposal.html +157 -0
  244. package/dist/smart/chat-window/static/default/proposal.html.gz +0 -0
  245. package/dist/smart/chat-window/static/default/reference.html +117 -0
  246. package/dist/smart/chat-window/static/default/reference.html.gz +0 -0
  247. package/dist/smart/chat-window/static/default/waiting.html +117 -0
  248. package/dist/smart/chat-window/static/default/waiting.html.gz +0 -0
  249. package/dist/smart/chat-window/static/sheets.json +476 -0
  250. package/dist/smart/chat-window/static/sheets.json.gz +0 -0
  251. package/dist/smart/chat-window/studio.fixture.json +13 -0
  252. package/dist/smart/chat-window/studio.fixture.json.gz +0 -0
  253. package/dist/smart/chat-window/studio.scenario.json +95 -0
  254. package/dist/smart/chat-window/studio.scenario.json.gz +0 -0
  255. package/dist/smart/chat-window/template/default.css +1168 -0
  256. package/dist/smart/chat-window/template/default.css.gz +0 -0
  257. package/dist/smart/chat-window/template/default.js +12 -0
  258. package/dist/smart/chat-window/template/default.js.gz +0 -0
  259. package/dist/smart/rule.js +185 -0
  260. package/dist/smart/rule.js.gz +0 -0
  261. package/package.json +29 -4
@@ -0,0 +1,658 @@
1
+ {
2
+ "$comment": "The source of sf-chat-composer'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-composer (smart.manifest.json 0.3.1, ui-chat 10d376b) by the D31 move, step 4 (owner yes 2026-10-27), with the pieces of chat-core and component/chat it drew on; written by hand on the shape of sf-chat-interlocutor (step 3), since migration/convert-1.3.8.mjs takes only the pinned 66 and needs stand 17's output. x-decisions says how each point was decided.",
3
+ "id": "smart.chat-composer",
4
+ "tag": "sf-chat-composer",
5
+ "version": "1.2.3",
6
+ "kind": "leaf",
7
+ "family": "chat",
8
+ "settings": {
9
+ "placeholder": {
10
+ "type": "string",
11
+ "default-from": "runtime.placeholder-text",
12
+ "summary": "Empty uses the composer's own word «Спросите что-нибудь»."
13
+ },
14
+ "maxlength": {
15
+ "type": "number",
16
+ "default": 4000,
17
+ "x-markup": "the most characters a message may have (Mirai24 bootstrap.limits.message_chars); past 80 % the count shows, past the limit sending is off",
18
+ "summary": "bootstrap.limits.message_chars.",
19
+ "integer": true,
20
+ "min": 1
21
+ },
22
+ "max-files": {
23
+ "type": "number",
24
+ "default": 5,
25
+ "integer": true,
26
+ "min": 1
27
+ },
28
+ "max-bytes": {
29
+ "type": "number",
30
+ "default": 0,
31
+ "x-markup": "the largest file in bytes; 0 checks no size",
32
+ "summary": "0 checks no size.",
33
+ "integer": true,
34
+ "min": 0
35
+ },
36
+ "accept": {
37
+ "type": "string",
38
+ "default": "",
39
+ "x-markup": "extensions, comma-separated (.pdf,.docx); empty takes any",
40
+ "summary": "Comma-separated extensions, e.g. .pdf,.docx."
41
+ },
42
+ "attachments": {
43
+ "type": "boolean",
44
+ "default": false,
45
+ "summary": "Files may be added."
46
+ },
47
+ "busy": {
48
+ "type": "boolean",
49
+ "default": false,
50
+ "x-markup": "an answer is awaited: send becomes «stop waiting», Enter sends nothing and says why (with queue, a message of text still goes out)",
51
+ "summary": "An answer is awaited: send becomes stop."
52
+ },
53
+ "queue": {
54
+ "type": "boolean",
55
+ "default": false,
56
+ "x-markup": "the host queues what is sent while busy: Enter and send still submit a message of text, the hint says it goes after the answer; a message with files is not queued",
57
+ "summary": "While busy, a message of text is still submitted: the host keeps it until the answer is over. A message with files waits as before."
58
+ },
59
+ "disabled": {
60
+ "type": "boolean",
61
+ "default": false,
62
+ "summary": "Writing is off, e.g. no consent."
63
+ },
64
+ "files": {
65
+ "type": "list",
66
+ "default": [],
67
+ "of": {
68
+ "id": "id",
69
+ "localId": {
70
+ "type": "id",
71
+ "optional": true
72
+ },
73
+ "name": "string",
74
+ "bytes": "number",
75
+ "progress": {
76
+ "type": "number",
77
+ "nullable": true,
78
+ "optional": true
79
+ },
80
+ "error": {
81
+ "type": "string",
82
+ "nullable": true,
83
+ "optional": true
84
+ }
85
+ },
86
+ "entries": {
87
+ "key": "id",
88
+ "changes": "content"
89
+ },
90
+ "x-markup": "the chips as the host knows them: progress 0..1 while uploading, error the server's refusal; a property, the action set-files (0.3 setFiles(files)) or the JSON island; names are text, never markup",
91
+ "summary": "The chips as the host knows them, a property, the action set-files or the JSON island."
92
+ },
93
+ "no-stop": {
94
+ "type": "boolean",
95
+ "default": false,
96
+ "x-markup": "busy without the stop button: a host whose stop belongs elsewhere (sf-chat-window between people: to the message, where can_stop allows it)",
97
+ "summary": "While busy, no stop button: a host whose stop belongs elsewhere."
98
+ }
99
+ },
100
+ "values": {
101
+ "value": {
102
+ "type": "string",
103
+ "default": "",
104
+ "summary": "the text in the field (the draft); setting it is as if typed: the field grows to it. The attribute gives the first text; the property reads the field."
105
+ }
106
+ },
107
+ "events": {
108
+ "submit": {
109
+ "carries": {
110
+ "text": "string",
111
+ "attachment-ids": "list"
112
+ },
113
+ "cancelable": true,
114
+ "x-summary": "Send (vocabulary §5 submit, chat 1.1.3: the composer's send): the trimmed text and the ids of the ready files (attachment-ids). Enter or the send button; never while busy (with queue: a message of text is, for the host to queue), disabled, uploading, over the limit or with nothing to send. Cancelled, the notice stays.",
115
+ "summary": "Send: the trimmed text and the ids of the ready files. While busy only with queue, and only a message of text. Cancelling it keeps the notice. The 0.3 name sf-chat-send {text, attachmentIds} follows it until 2026-12-01."
116
+ },
117
+ "stop": {
118
+ "carries": {},
119
+ "cancelable": true,
120
+ "x-summary": "«Остановить ожидание» was pressed (the chat's own stop, vocabulary 1.1.3 §5.1: stop waiting); focus goes back to the field.",
121
+ "summary": "«Остановить ожидание» was pressed. The 0.3 name sf-chat-stop follows it until 2026-12-01."
122
+ },
123
+ "attach": {
124
+ "carries": {
125
+ "files": "list",
126
+ "rejected": {
127
+ "type": "list",
128
+ "schema": {
129
+ "items": {
130
+ "type": "object",
131
+ "required": [
132
+ "file",
133
+ "reason"
134
+ ],
135
+ "properties": {
136
+ "file": {
137
+ "type": "object"
138
+ },
139
+ "reason": {
140
+ "type": "string"
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+ },
147
+ "cancelable": true,
148
+ "x-summary": "Files were offered by the button, a drop or a paste (vocabulary §5 attach). files are the File objects to upload; rejected [{file, reason}] by type, size or count, also said in the notice. The host uploads and hands the chips back as files.",
149
+ "summary": "Files were offered by the button, a drop or a paste; rejected by type, size or count, each with a reason. The 0.3 name sf-chat-files follows it until 2026-12-01."
150
+ },
151
+ "detach": {
152
+ "carries": {
153
+ "id": "id",
154
+ "name": {
155
+ "type": "string",
156
+ "optional": true
157
+ }
158
+ },
159
+ "cancelable": true,
160
+ "x-summary": "A chip's remove was pressed (vocabulary §5 detach); the host removes it and hands the chips back.",
161
+ "summary": "A chip's remove was pressed. The 0.3 sf-chat-action {action: remove-attachment, id, name} follows it until 2026-12-01."
162
+ }
163
+ },
164
+ "actions": {
165
+ "set-files": {
166
+ "with": {
167
+ "files": {
168
+ "type": "list",
169
+ "schema": {
170
+ "items": {
171
+ "type": "object",
172
+ "required": [
173
+ "name"
174
+ ],
175
+ "properties": {
176
+ "id": {
177
+ "type": "string",
178
+ "description": "The stored file's id; a chip with an id and no error is sent with the message."
179
+ },
180
+ "localId": {
181
+ "type": "string",
182
+ "description": "The host's key while it uploads."
183
+ },
184
+ "name": {
185
+ "type": "string",
186
+ "description": "The file's name, drawn as text."
187
+ },
188
+ "bytes": {
189
+ "type": "number"
190
+ },
191
+ "progress": {
192
+ "type": [
193
+ "number",
194
+ "null"
195
+ ],
196
+ "description": "0..1 while uploading; null or 1 when done."
197
+ },
198
+ "error": {
199
+ "type": [
200
+ "string",
201
+ "null"
202
+ ],
203
+ "description": "The server's refusal, the chip's second line."
204
+ }
205
+ }
206
+ }
207
+ }
208
+ }
209
+ },
210
+ "x-outcomes": [
211
+ "applied"
212
+ ],
213
+ "x-summary": "the chips, as the setting files; the 0.3 setFiles(files)",
214
+ "summary": "The chips, as the files property (the action set-files).",
215
+ "x-returns": {
216
+ "type": "object",
217
+ "description": "{outcome: applied}"
218
+ }
219
+ },
220
+ "clear": {
221
+ "x-outcomes": [
222
+ "applied"
223
+ ],
224
+ "x-summary": "empties the field and the notice (after a message the host took)",
225
+ "summary": "Empty the field and the notice (the action clear).",
226
+ "x-returns": {
227
+ "type": "object",
228
+ "description": "{outcome: applied}"
229
+ }
230
+ }
231
+ },
232
+ "slots": {},
233
+ "keyboard": {
234
+ "host": {
235
+ "Tab": "reach",
236
+ "Enter": "commit"
237
+ }
238
+ },
239
+ "relations": [
240
+ {
241
+ "name": "textarea"
242
+ },
243
+ {
244
+ "name": "icon-buttons"
245
+ },
246
+ {
247
+ "name": "cl-icon"
248
+ },
249
+ {
250
+ "name": "sr-only/default"
251
+ }
252
+ ],
253
+ "templates": {
254
+ "default": {
255
+ "file": "js/templates/default.js",
256
+ "$comment": "The Lit template in JavaScript, the migration form of §5.2 (§16)."
257
+ }
258
+ },
259
+ "styles": "js/templates/default.css",
260
+ "examples": "examples.json",
261
+ "docs": "docs.md",
262
+ "lang": "lang/",
263
+ "accessibility": {
264
+ "role": "form",
265
+ "name": {
266
+ "from": [
267
+ "runtime.field-label"
268
+ ]
269
+ },
270
+ "keys": {
271
+ "Tab": "reach",
272
+ "Enter": "commit"
273
+ },
274
+ "x-keys": "Enter sends, Shift+Enter breaks the line, an Enter inside an IME composition does not send; while busy Enter sends nothing and the hint under the field says why; with queue it sends a message of text, and the hint says it goes after the answer. The field is a native textarea named field-label and described by the count, which shows past 80 % of maxlength; a polite line speaks only when a threshold is crossed. A refused file is a role=alert notice. «Остановить ожидание» returns focus to the field."
275
+ },
276
+ "host-states": {},
277
+ "css-variables": {
278
+ "--sf-chat-composer-background-color": {
279
+ "type": "color",
280
+ "state": "default"
281
+ },
282
+ "--sf-chat-composer-border-color": {
283
+ "type": "color",
284
+ "state": "default"
285
+ },
286
+ "--sf-chat-composer-hint-color": {
287
+ "type": "color",
288
+ "state": "default"
289
+ },
290
+ "--sf-chat-composer-height": {
291
+ "type": "length",
292
+ "state": "default"
293
+ }
294
+ },
295
+ "aliases": {
296
+ "$comment": "Dated aliases of sf-chat-composer for the shim (core/js/aliases.js, standard §16 item 20). The 0.3 events of simai/ui-chat follow the vocabulary's names; two need the element's detail adapters (sfAliasAdapters).",
297
+ "since": "2026-10-28",
298
+ "remove-after": "2026-12-01",
299
+ "rows": [
300
+ {
301
+ "from": "sf-chat-send",
302
+ "to": "sf-chat-composer-submit",
303
+ "kind": "event",
304
+ "mode": "split",
305
+ "cancelable": true,
306
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
307
+ "note": "the 0.3 detail {text, attachmentIds}: the element's adapter (sfAliasAdapters) makes it from {text, attachmentIds}"
308
+ },
309
+ {
310
+ "from": "sf-chat-stop",
311
+ "to": "sf-chat-composer-stop",
312
+ "kind": "event",
313
+ "mode": "same-detail",
314
+ "cancelable": true,
315
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
316
+ "note": "an event takes its tag and a verb; the chat's own stop (vocabulary 1.1.3 §5.1); {} is unchanged"
317
+ },
318
+ {
319
+ "from": "sf-chat-files",
320
+ "to": "sf-chat-composer-attach",
321
+ "kind": "event",
322
+ "mode": "same-detail",
323
+ "cancelable": true,
324
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
325
+ "note": "vocabulary §5 attach; {files, rejected} is unchanged"
326
+ },
327
+ {
328
+ "from": "sf-chat-action",
329
+ "to": "sf-chat-composer-detach",
330
+ "kind": "event",
331
+ "mode": "split",
332
+ "cancelable": true,
333
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
334
+ "note": "the 0.3 general action event {action: remove-attachment, id, name}: the element's adapter puts action back on {id, name}"
335
+ }
336
+ ]
337
+ },
338
+ "x-summary": "Where a question is written and files are added: Enter sends, Shift+Enter breaks the line, an IME composition is never cut short, the send button becomes «stop waiting» while an answer is awaited, and files are only reported for the host to upload; their chips come back as files.",
339
+ "x-source": {
340
+ "package": "ui-pro",
341
+ "folder": "chat-composer",
342
+ "manifest": "simai/ui-chat@10d376b components/src/smart/chat-composer/smart.manifest.json (0.3.1)",
343
+ "converted": "by hand (D31 step 4): convert-1.3.8.mjs reads stand 17's output, which has no chat component"
344
+ },
345
+ "x-words": [],
346
+ "x-renamed": [
347
+ "events.sf-chat-send {text, attachmentIds} → submit {text, attachment-ids} (vocabulary §5 submit, 1.1.3 §5.1; a carried field is kebab-case, §3.2); the old name a dated split alias until 2026-12-01 whose adapter gives the old detail",
348
+ "events.sf-chat-stop → stop {} (the chat's own stop, 1.1.3 §5.1); the old name a dated same-detail alias until 2026-12-01",
349
+ "events.sf-chat-files → attach {files, rejected} (vocabulary §5 attach); the old name a dated same-detail alias until 2026-12-01",
350
+ "events.sf-chat-action {action: remove-attachment, id, name} → detach {id, name} (vocabulary §5 detach, §5.1 one name per verb); the old name a dated split alias until 2026-12-01, its detail made by the element's adapter",
351
+ "methods.setFiles(files) → the setting files and the action set-files {files} (§4.4); the same call",
352
+ "methods.clear() → the action clear; the same call. focus(options) stays the base's, delegated to the field (focusDelegate)",
353
+ "words: composer.*, attachment.* and size.* of ui-chat's strings.js → lang/<locale>.json runtime words (§11)",
354
+ "css: chat-core/css/smart.css (composer) and component/chat/css/chat.css (attachment) → js/templates/default.css; the --sf-chat--* tokens they read → the Framework tokens they were, under four public variables --sf-chat-composer-<name>; .sf-chat-offscreen → the Framework's sr-only"
355
+ ],
356
+ "x-decisions": [
357
+ "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).",
358
+ "shape: a leaf. The field is the Framework's flush sf-textarea markup with its auto-grow (data-auto-grow, eight rows); attach, send, stop and a chip's remove are icon-button markup with Smart sf-icon glyphs. No part is in a role a rule could bind.",
359
+ "chat-core: nothing is imported from simai/ui-chat. Of chat-core the composer drew on the base element (ChatElement: build once, emit), the context (words, icons) and its part of smart.css; of component/chat on iconButton, renderAttachment, formatBytes and the attachment and offscreen rules of chat.css. Here the base is the Framework's Smart base through elementFromManifest, the words are lang/<locale>.json, the icon button and the chip are Lit templates of the composer (js/templates/parts.js), and the sheet is js/templates/default.css. ui-pro has no folder of shared modules besides components (D31 inventory §3: no class-component folder), so the chat family shares by relative import from a component's js/, as sf-data-view imports ../table/js/manifest-actions.js; sf-chat-message (step 5) may take the chip from here.",
360
+ "lit: the DOM is a Lit template; the textarea's value is never bound, so a redraw keeps the text, the caret and the IME composition; the field grows by the Framework's auto-grow, as in 0.3.",
361
+ "events: send is the vocabulary's submit and carries {text, attachment-ids} (0.3's attachmentIds in the kebab-case of §3.2), not {values, client-key}: the client key is the host's (the window makes one per send, port 1.0.0), and the chat port takes the text and the files. stop is the chat's own stop (vocabulary 1.1.3 §5.1). files is attach {files, rejected}. A chip's remove, the 0.3 sf-chat-action {action: remove-attachment}, is detach {id, name}. All four are cancelable as they were. The old names follow until 2026-12-01: sf-chat-stop and sf-chat-files same-detail; sf-chat-send and sf-chat-action split rows whose adapters make the 0.3 detail ({text, attachmentIds}; {action: remove-attachment, id, name}).",
362
+ "value: the text, a value with a default (so the attribute gives a first draft); the property reads and writes the field itself and a write is as if typed (the Framework's auto-grow measures it). It is not reported back (§8: a value set from outside is not an event); the host reads it when it needs it (drafts per conversation).",
363
+ "files and set-files: the chips as the host knows them, [{id, localId, name, bytes, progress, error}]; the 0.3 method setFiles(files) is the action set-files {files}, the same call. A chip uploading (progress < 1, no error) keeps send off; a ready chip with an id can be sent without text.",
364
+ "checks: type by extension against accept, size against max-bytes, count against max-files less the chips there; a refusal names the file and its reason in the notice (role=alert), and the accepted ones go in attach. The server's word is final: a chip it refuses comes back with error.",
365
+ "ids: the field's description and the hint take their ids from the element's path (§7.1.1), no longer a module counter.",
366
+ "first paint (§5.4): no late data. The chips, the draft and busy come with the host's state; the printed markup is the box with its field and buttons. The element reads no clock.",
367
+ "words: lang/ru.json and lang/en.json, runtime only; ru is the source language (the 0.3 words were written in Russian first). The too-many reason has plural forms (one, other) as 0.3 had composer.tooMany.one.",
368
+ "css-variables: four public variables in the Framework's form (single dash, read with the token as fallback, never set): the box's ground and edge, the hint and count, and the control height (a finger's on a coarse pointer). Their fallbacks are the tokens ui-chat's sheets gave the same places, so the look in ui-chat does not change.",
369
+ "page attribute: [data-chat-input=pointer] (the chat page marks a pointer's input) still takes the keyboard ring off the box after a click, as in 0.3; without it the ring shows.",
370
+ "standard 1.4 (2026-10-29): component.json and examples.json in the 1.4 form, the other files generated. submit carries attachmentIds (camelCase, as the registry says); \"attachment-ids\" stays beside it until 2026-12-01 with the dated event names.",
371
+ "queue (1.1.0): the composer only lets a message of text out while busy and says so; the queue itself is the host's (sf-chat-window keeps it per conversation, draws its cards above the field and sends them after the answer), since what an answer's end means and what a conversation is are the host's. A message with files is not queued: its chips are the host's upload state, which a queued message would have to hold apart from the field; while busy it waits as before, and the hint says so. Without queue nothing changes.",
372
+ "no-stop 1.2.0: a minor (§4.10). Between people sf-chat-window keeps the field busy only while a send is out, and Stop is a message's own; without this the stop button would flash for each send. Default false: nothing changes for a host that does not set it.",
373
+ "version 1.2.2 (2026-11-09): a patch, for the SIMAI Framework pair with the shadow places (C20, owner 2026-11-08; core.runtime >= 1.43.0). The box's ground falls back to --sf-surface-card and its shadow is --sf-shadow-raised, instead of elevation step 1, whose names resolve to these on that pair; --sf-chat-composer-background-color still comes first. No visible change against that pair; settings, values and events are unchanged.",
374
+ "version 1.2.3 (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. setFiles is the runtime's generated method and takes both forms. Settings, values and events are unchanged. The same version first-paint snapshots are retaken over that pair; static/sheets.json is unchanged."
375
+ ],
376
+ "x-rule": {
377
+ "$comment": [
378
+ "The field is the Framework's flush textarea markup with its auto-grow; attach,",
379
+ "send, stop and a chip's remove are plain icon-button markup; every glyph is a",
380
+ "Smart sf-icon, and a tag it renders is a tag it fetches. The line that speaks",
381
+ "a threshold of the count is visually hidden with the sr-only utility, which a",
382
+ "class scan can miss on a node drawn later, so it comes with the component."
383
+ ]
384
+ },
385
+ "x-registry": {
386
+ "capabilities": [
387
+ "input",
388
+ "keyboard",
389
+ "attachments",
390
+ "drag-and-drop",
391
+ "responsive"
392
+ ],
393
+ "persistence": {
394
+ "mode": "none",
395
+ "source_of_truth": "host",
396
+ "network_owner": "host",
397
+ "revision_field": null
398
+ },
399
+ "readiness": {
400
+ "level": "host-required",
401
+ "required_checks": [
402
+ "manifest",
403
+ "loader-rule",
404
+ "chat-composer-probe"
405
+ ]
406
+ },
407
+ "tags": [
408
+ "chat",
409
+ "composer",
410
+ "input",
411
+ "attachments"
412
+ ],
413
+ "contracts": {
414
+ "file": {
415
+ "type": "object",
416
+ "required": [
417
+ "name"
418
+ ],
419
+ "properties": {
420
+ "id": {
421
+ "type": "string",
422
+ "description": "The stored file's id; a chip with an id and no error is sent with the message."
423
+ },
424
+ "localId": {
425
+ "type": "string",
426
+ "description": "The host's key while it uploads."
427
+ },
428
+ "name": {
429
+ "type": "string",
430
+ "description": "The file's name, drawn as text."
431
+ },
432
+ "bytes": {
433
+ "type": "number"
434
+ },
435
+ "progress": {
436
+ "type": [
437
+ "number",
438
+ "null"
439
+ ],
440
+ "description": "0..1 while uploading; null or 1 when done."
441
+ },
442
+ "error": {
443
+ "type": [
444
+ "string",
445
+ "null"
446
+ ],
447
+ "description": "The server's refusal, the chip's second line."
448
+ }
449
+ }
450
+ },
451
+ "send": {
452
+ "const": "Enter or the send button dispatches sf-chat-composer-submit {text, attachment-ids} (cancelable) when there is text or a ready chip, nothing uploading, not busy (or busy with queue and no chips), not disabled and within maxlength. The host sends and calls clear() once it took the message."
453
+ },
454
+ "files": {
455
+ "const": "Files offered by the button, a drop or a paste are checked by accept, max-bytes and max-files; sf-chat-composer-attach {files, rejected} reports them and the notice names each refusal. The host uploads and sets files; a chip's remove dispatches sf-chat-composer-detach {id, name}."
456
+ },
457
+ "css_variables": {
458
+ "type": "object",
459
+ "properties": {
460
+ "--sf-chat-composer-background-color": {
461
+ "type": "string"
462
+ },
463
+ "--sf-chat-composer-border-color": {
464
+ "type": "string"
465
+ },
466
+ "--sf-chat-composer-hint-color": {
467
+ "type": "string"
468
+ },
469
+ "--sf-chat-composer-height": {
470
+ "type": "string"
471
+ }
472
+ }
473
+ }
474
+ },
475
+ "state": {
476
+ "machines": {
477
+ "send": [
478
+ "idle",
479
+ "busy"
480
+ ],
481
+ "length": [
482
+ "under",
483
+ "near",
484
+ "over"
485
+ ],
486
+ "drop": [
487
+ "idle",
488
+ "dragging"
489
+ ]
490
+ },
491
+ "visual_states": [
492
+ "default",
493
+ "disabled",
494
+ "error",
495
+ "active"
496
+ ]
497
+ },
498
+ "ownership": {
499
+ "source": "simai/ui-pro",
500
+ "data": "host",
501
+ "effects": "host",
502
+ "forbidden_client_responsibilities": [
503
+ "fetching or polling the chat API",
504
+ "access decisions",
505
+ "deciding whether a file is accepted by the server",
506
+ "uploading files"
507
+ ]
508
+ },
509
+ "security": {
510
+ "permissions_owner": "host",
511
+ "untrusted_inputs": [
512
+ "file names (drawn as text)",
513
+ "pasted and dropped files"
514
+ ],
515
+ "network_policy": "deny"
516
+ },
517
+ "presentation": {
518
+ "themes": [
519
+ "light",
520
+ "dark"
521
+ ],
522
+ "locales": [
523
+ "en",
524
+ "ru"
525
+ ],
526
+ "responsive": [
527
+ "desktop",
528
+ "mobile"
529
+ ]
530
+ },
531
+ "ai_guidance": {
532
+ "use_when": "Use sf-chat-composer for the question field of a chat window: it reports a send, a stop and the files a person offers; the host sends, uploads, and hands the chips back as files.",
533
+ "do_not": [
534
+ "Do not upload from the element; listen to attach and set files",
535
+ "Do not take the element's type and size check for the server's acceptance",
536
+ "Do not clear it from the submit event; clear it once the host took the message"
537
+ ],
538
+ "required_reads": [
539
+ "inputs",
540
+ "contracts",
541
+ "events",
542
+ "accessibility"
543
+ ],
544
+ "minimal_example": "<sf-chat-composer maxlength=\"4000\" attachments accept=\".pdf,.docx\" max-files=\"5\"></sf-chat-composer>",
545
+ "owner_commands": [
546
+ "node scripts/test.mjs",
547
+ "node scripts/run-manifest-probes.mjs <free output> <package output> chat-composer"
548
+ ]
549
+ },
550
+ "accessibility": {
551
+ "accessible_name": "internal",
552
+ "keyboard": [
553
+ "Enter",
554
+ "Shift+Enter",
555
+ "Tab"
556
+ ],
557
+ "focus": "The field is named and described by the character count shown past 80 % of the limit; a polite line speaks only when a threshold is crossed. A rejected file is a role=alert notice. Enter while an answer is awaited says why nothing was sent, or, with queue, that the message goes after the answer. «Stop waiting» returns focus to the field."
558
+ },
559
+ "compatibility": {
560
+ "migrations": [
561
+ {
562
+ "from": "0.3.1",
563
+ "to": "1.0.0",
564
+ "changes": [
565
+ "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 chat-core or component/chat",
566
+ "sf-chat-send {text, attachmentIds} -> sf-chat-composer-submit {text, attachment-ids} until 2026-12-01 (event, split alias)",
567
+ "sf-chat-stop -> sf-chat-composer-stop until 2026-12-01 (event)",
568
+ "sf-chat-files -> sf-chat-composer-attach until 2026-12-01 (event)",
569
+ "sf-chat-action {action: remove-attachment, id, name} -> sf-chat-composer-detach {id, name} until 2026-12-01 (event, split alias)",
570
+ "setFiles(files) is the action set-files and the setting files; clear() is the action clear"
571
+ ]
572
+ },
573
+ {
574
+ "from": "1.0.0",
575
+ "to": "1.0.1",
576
+ "changes": [
577
+ "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."
578
+ ]
579
+ },
580
+ {
581
+ "from": "1.0.2",
582
+ "to": "1.1.0",
583
+ "changes": [
584
+ "The setting queue (default off): while busy, Enter and send still submit a message of text, beside «Остановить ожидание», for the host to queue; the hint under the field says so. A message with files waits as before. Without queue nothing changes for a host."
585
+ ]
586
+ },
587
+ {
588
+ "from": "1.1.0",
589
+ "to": "1.2.0",
590
+ "changes": [
591
+ "The setting no-stop: while busy, no stop button. Without it nothing changes."
592
+ ]
593
+ }
594
+ ]
595
+ },
596
+ "methods": {
597
+ "focus": {
598
+ "summary": "Focus the field (the base's focus, delegated).",
599
+ "arguments": [
600
+ {
601
+ "name": "options",
602
+ "required": false,
603
+ "schema": {
604
+ "type": "object"
605
+ }
606
+ }
607
+ ],
608
+ "returns": {
609
+ "type": "null"
610
+ }
611
+ }
612
+ },
613
+ "inputs": {
614
+ "template": {
615
+ "const": "default"
616
+ },
617
+ "files": {
618
+ "items": {
619
+ "type": "object",
620
+ "required": [
621
+ "name"
622
+ ],
623
+ "properties": {
624
+ "id": {
625
+ "type": "string",
626
+ "description": "The stored file's id; a chip with an id and no error is sent with the message."
627
+ },
628
+ "localId": {
629
+ "type": "string",
630
+ "description": "The host's key while it uploads."
631
+ },
632
+ "name": {
633
+ "type": "string",
634
+ "description": "The file's name, drawn as text."
635
+ },
636
+ "bytes": {
637
+ "type": "number"
638
+ },
639
+ "progress": {
640
+ "type": [
641
+ "number",
642
+ "null"
643
+ ],
644
+ "description": "0..1 while uploading; null or 1 when done."
645
+ },
646
+ "error": {
647
+ "type": [
648
+ "string",
649
+ "null"
650
+ ],
651
+ "description": "The server's refusal, the chip's second line."
652
+ }
653
+ }
654
+ }
655
+ }
656
+ }
657
+ }
658
+ }