@veruna/api-contracts 20.6.0-vd205.0 → 21.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 (328) hide show
  1. package/build/locales/validation.d.ts +0 -26
  2. package/build/locales/validation.js +0 -22
  3. package/build/locales/validation.js.map +1 -1
  4. package/build/rest-api.d.ts +5 -17
  5. package/build/rest-api.js +5 -17
  6. package/build/rest-api.js.map +1 -1
  7. package/build/routes/s2s.routes.d.ts +5 -17
  8. package/build/routes/s2s.routes.js +6 -18
  9. package/build/routes/s2s.routes.js.map +1 -1
  10. package/build/tsconfig.tsbuildinfo +1 -1
  11. package/build/v1/ai/tool-id.enum.d.ts +0 -1
  12. package/build/v1/ai/tool-id.enum.js +0 -1
  13. package/build/v1/ai/tool-id.enum.js.map +1 -1
  14. package/build/v1/ai-call/ai-accounting-provider.enum.d.ts +11 -0
  15. package/build/v1/ai-call/ai-accounting-provider.enum.js +16 -0
  16. package/build/v1/ai-call/ai-accounting-provider.enum.js.map +1 -0
  17. package/build/v1/ai-call/ai-cost-source.enum.d.ts +18 -24
  18. package/build/v1/ai-call/ai-cost-source.enum.js +20 -15
  19. package/build/v1/ai-call/ai-cost-source.enum.js.map +1 -1
  20. package/build/v1/ai-call/index.d.ts +1 -1
  21. package/build/v1/ai-call/index.js +1 -1
  22. package/build/v1/ai-call/index.js.map +1 -1
  23. package/build/v1/chat/commands/create-reg-chat.command.d.ts +4 -23
  24. package/build/v1/chat/commands/create-unreg-chat.command.d.ts +4 -23
  25. package/build/v1/chat/commands/update-chat-title.command.d.ts +4 -23
  26. package/build/v1/chat/commands/update-chat.command.d.ts +4 -23
  27. package/build/v1/chat/queries/get-last-active-chat.query.d.ts +4 -23
  28. package/build/v1/chat/queries/get-reg-chat.query.d.ts +4 -23
  29. package/build/v1/chat/queries/get-unreg-chat.query.d.ts +4 -23
  30. package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +4 -23
  31. package/build/v1/client-file/client-document.constants.d.ts +10 -0
  32. package/build/v1/client-file/client-document.constants.js +14 -0
  33. package/build/v1/client-file/client-document.constants.js.map +1 -0
  34. package/build/v1/client-file/client-file-content-kind.d.ts +2 -2
  35. package/build/v1/client-file/client-file-content-kind.js +10 -10
  36. package/build/v1/client-file/client-file-content-kind.js.map +1 -1
  37. package/build/v1/client-file/commands/client-document.s2s.d.ts +42 -0
  38. package/build/v1/client-file/commands/client-document.s2s.js +26 -0
  39. package/build/v1/client-file/commands/client-document.s2s.js.map +1 -0
  40. package/build/v1/client-file/commands/client-file-attach.command.d.ts +2 -7
  41. package/build/v1/client-file/commands/client-file-upload.command.d.ts +3 -14
  42. package/build/v1/client-file/commands/index.d.ts +1 -4
  43. package/build/v1/client-file/commands/index.js +1 -4
  44. package/build/v1/client-file/commands/index.js.map +1 -1
  45. package/build/v1/client-file/index.d.ts +1 -2
  46. package/build/v1/client-file/index.js +1 -2
  47. package/build/v1/client-file/index.js.map +1 -1
  48. package/build/v1/client-file/queries/client-document.s2s.d.ts +71 -0
  49. package/build/v1/client-file/queries/client-document.s2s.js +35 -0
  50. package/build/v1/client-file/queries/client-document.s2s.js.map +1 -0
  51. package/build/v1/client-file/queries/client-file-list.query.d.ts +3 -14
  52. package/build/v1/client-file/queries/client-file-reading.s2s.d.ts +0 -260
  53. package/build/v1/client-file/queries/client-file-reading.s2s.js +1 -73
  54. package/build/v1/client-file/queries/client-file-reading.s2s.js.map +1 -1
  55. package/build/v1/client-file/queries/index.d.ts +1 -3
  56. package/build/v1/client-file/queries/index.js +1 -3
  57. package/build/v1/client-file/queries/index.js.map +1 -1
  58. package/build/v1/client-file/queries/user-files-list.query.d.ts +6 -31
  59. package/build/v1/client-file/schemas/client-document-page-unavailable.enum.d.ts +5 -0
  60. package/build/v1/client-file/schemas/client-document-page-unavailable.enum.js +10 -0
  61. package/build/v1/client-file/schemas/client-document-page-unavailable.enum.js.map +1 -0
  62. package/build/v1/client-file/schemas/client-document.schema.d.ts +60 -0
  63. package/build/v1/client-file/schemas/client-document.schema.js +77 -0
  64. package/build/v1/client-file/schemas/client-document.schema.js.map +1 -0
  65. package/build/v1/client-file/schemas/client-file-attach-response.schema.d.ts +6 -14
  66. package/build/v1/client-file/schemas/client-file-attach-response.schema.js +5 -1
  67. package/build/v1/client-file/schemas/client-file-attach-response.schema.js.map +1 -1
  68. package/build/v1/client-file/schemas/client-file-content-kind.enum.d.ts +9 -0
  69. package/build/v1/client-file/schemas/client-file-content-kind.enum.js +14 -0
  70. package/build/v1/client-file/schemas/client-file-content-kind.enum.js.map +1 -0
  71. package/build/v1/client-file/schemas/client-file-internal-import.schema.d.ts +15 -0
  72. package/build/v1/client-file/schemas/client-file-internal-import.schema.js +34 -0
  73. package/build/v1/client-file/schemas/client-file-internal-import.schema.js.map +1 -0
  74. package/build/v1/client-file/schemas/client-file-item-response.schema.d.ts +6 -14
  75. package/build/v1/client-file/schemas/client-file-item-response.schema.js +5 -1
  76. package/build/v1/client-file/schemas/client-file-item-response.schema.js.map +1 -1
  77. package/build/v1/client-file/schemas/client-file-list-response.schema.d.ts +3 -14
  78. package/build/v1/client-file/schemas/client-file-mark.enum.d.ts +7 -1
  79. package/build/v1/client-file/schemas/client-file-mark.enum.js +9 -4
  80. package/build/v1/client-file/schemas/client-file-mark.enum.js.map +1 -1
  81. package/build/v1/client-file/schemas/client-file-reading.schema.d.ts +10 -0
  82. package/build/v1/client-file/schemas/client-file-reading.schema.js +11 -0
  83. package/build/v1/client-file/schemas/client-file-reading.schema.js.map +1 -0
  84. package/build/v1/client-file/schemas/client-file-status.enum.d.ts +20 -1
  85. package/build/v1/client-file/schemas/client-file-status.enum.js +22 -4
  86. package/build/v1/client-file/schemas/client-file-status.enum.js.map +1 -1
  87. package/build/v1/client-file/schemas/client-file-type.enum.d.ts +4 -1
  88. package/build/v1/client-file/schemas/client-file-type.enum.js +6 -4
  89. package/build/v1/client-file/schemas/client-file-type.enum.js.map +1 -1
  90. package/build/v1/client-file/schemas/client-file-upload-query.schema.d.ts +2 -5
  91. package/build/v1/client-file/schemas/client-file-upload-response.schema.d.ts +3 -14
  92. package/build/v1/client-file/schemas/index.d.ts +5 -6
  93. package/build/v1/client-file/schemas/index.js +5 -6
  94. package/build/v1/client-file/schemas/index.js.map +1 -1
  95. package/build/v1/client-file/schemas/magic-verdict.enum.d.ts +8 -0
  96. package/build/v1/client-file/schemas/magic-verdict.enum.js +13 -0
  97. package/build/v1/client-file/schemas/magic-verdict.enum.js.map +1 -0
  98. package/build/v1/client-file/schemas/processing-category.enum.d.ts +10 -1
  99. package/build/v1/client-file/schemas/processing-category.enum.js +12 -4
  100. package/build/v1/client-file/schemas/processing-category.enum.js.map +1 -1
  101. package/build/v1/client-file/schemas/upload-magic-type.enum.d.ts +16 -0
  102. package/build/v1/client-file/schemas/upload-magic-type.enum.js +21 -0
  103. package/build/v1/client-file/schemas/upload-magic-type.enum.js.map +1 -0
  104. package/build/v1/client-file/schemas/user-file-item-response.schema.d.ts +8 -20
  105. package/build/v1/client-file/schemas/user-files-list-request.schema.d.ts +4 -11
  106. package/build/v1/client-file/schemas/user-files-list-response.schema.d.ts +4 -20
  107. package/build/v1/client-file/upload-magic-bytes.d.ts +4 -4
  108. package/build/v1/client-file/upload-magic-bytes.js +47 -49
  109. package/build/v1/client-file/upload-magic-bytes.js.map +1 -1
  110. package/build/v1/message/commands/create-message.command.d.ts +2 -12
  111. package/build/v1/message/queries/get-message-stream-reg.query.d.ts +2 -12
  112. package/build/v1/message/queries/get-message-stream-unreg.query.d.ts +2 -12
  113. package/build/v1/message/schemas/index.d.ts +1 -0
  114. package/build/v1/message/schemas/index.js +5 -3
  115. package/build/v1/message/schemas/index.js.map +1 -1
  116. package/build/v1/message/schemas/message-attachment-response.schema.d.ts +3 -6
  117. package/build/v1/message/schemas/message-response.schema.d.ts +4 -23
  118. package/build/v1/message/schemas/message-step-response.schema.d.ts +9 -60
  119. package/build/v1/message/schemas/message-stream-frame.schema.d.ts +1 -6
  120. package/build/v1/message/schemas/preparation-phase.enum.d.ts +4 -0
  121. package/build/v1/message/schemas/preparation-phase.enum.js +9 -0
  122. package/build/v1/message/schemas/preparation-phase.enum.js.map +1 -0
  123. package/build/v1/message/schemas/send-file-step-content.schema.js +4 -1
  124. package/build/v1/message/schemas/send-file-step-content.schema.js.map +1 -1
  125. package/build/v1/message/schemas/stream-events.schema.d.ts +4 -13
  126. package/build/v1/message/schemas/stream-events.schema.js +3 -4
  127. package/build/v1/message/schemas/stream-events.schema.js.map +1 -1
  128. package/build/v1/message/schemas/view-file-delivery.enum.d.ts +6 -0
  129. package/build/v1/message/schemas/view-file-delivery.enum.js +11 -0
  130. package/build/v1/message/schemas/view-file-delivery.enum.js.map +1 -0
  131. package/build/v1/message/schemas/view-file-mode.enum.d.ts +7 -0
  132. package/build/v1/message/schemas/view-file-mode.enum.js +12 -0
  133. package/build/v1/message/schemas/view-file-mode.enum.js.map +1 -0
  134. package/build/v1/message/schemas/view-file-read-state.enum.d.ts +7 -0
  135. package/build/v1/message/schemas/view-file-read-state.enum.js +12 -0
  136. package/build/v1/message/schemas/view-file-read-state.enum.js.map +1 -0
  137. package/build/v1/message/schemas/view-file-step-content.schema.d.ts +11 -48
  138. package/build/v1/message/schemas/view-file-step-content.schema.js +13 -6
  139. package/build/v1/message/schemas/view-file-step-content.schema.js.map +1 -1
  140. package/build/v1/s2s/queries/list-client-files.query.d.ts +3 -14
  141. package/build-esm/.tsbuildinfo +1 -1
  142. package/build-esm/locales/validation.js +0 -22
  143. package/build-esm/locales/validation.js.map +1 -1
  144. package/build-esm/rest-api.js +5 -17
  145. package/build-esm/rest-api.js.map +1 -1
  146. package/build-esm/routes/s2s.routes.js +6 -18
  147. package/build-esm/routes/s2s.routes.js.map +1 -1
  148. package/build-esm/v1/ai/tool-id.enum.js +0 -1
  149. package/build-esm/v1/ai/tool-id.enum.js.map +1 -1
  150. package/build-esm/v1/ai-call/ai-accounting-provider.enum.js +13 -0
  151. package/build-esm/v1/ai-call/ai-accounting-provider.enum.js.map +1 -0
  152. package/build-esm/v1/ai-call/ai-cost-source.enum.js +19 -14
  153. package/build-esm/v1/ai-call/ai-cost-source.enum.js.map +1 -1
  154. package/build-esm/v1/ai-call/index.js +1 -1
  155. package/build-esm/v1/ai-call/index.js.map +1 -1
  156. package/build-esm/v1/client-file/client-document.constants.js +11 -0
  157. package/build-esm/v1/client-file/client-document.constants.js.map +1 -0
  158. package/build-esm/v1/client-file/client-file-content-kind.js +2 -2
  159. package/build-esm/v1/client-file/client-file-content-kind.js.map +1 -1
  160. package/build-esm/v1/client-file/commands/client-document.s2s.js +23 -0
  161. package/build-esm/v1/client-file/commands/client-document.s2s.js.map +1 -0
  162. package/build-esm/v1/client-file/commands/index.js +1 -4
  163. package/build-esm/v1/client-file/commands/index.js.map +1 -1
  164. package/build-esm/v1/client-file/index.js +1 -2
  165. package/build-esm/v1/client-file/index.js.map +1 -1
  166. package/build-esm/v1/client-file/queries/client-document.s2s.js +32 -0
  167. package/build-esm/v1/client-file/queries/client-document.s2s.js.map +1 -0
  168. package/build-esm/v1/client-file/queries/client-file-reading.s2s.js +0 -72
  169. package/build-esm/v1/client-file/queries/client-file-reading.s2s.js.map +1 -1
  170. package/build-esm/v1/client-file/queries/index.js +1 -3
  171. package/build-esm/v1/client-file/queries/index.js.map +1 -1
  172. package/build-esm/v1/client-file/schemas/client-document-page-unavailable.enum.js +7 -0
  173. package/build-esm/v1/client-file/schemas/client-document-page-unavailable.enum.js.map +1 -0
  174. package/build-esm/v1/client-file/schemas/client-document.schema.js +74 -0
  175. package/build-esm/v1/client-file/schemas/client-document.schema.js.map +1 -0
  176. package/build-esm/v1/client-file/schemas/client-file-attach-response.schema.js +5 -1
  177. package/build-esm/v1/client-file/schemas/client-file-attach-response.schema.js.map +1 -1
  178. package/build-esm/v1/client-file/schemas/client-file-content-kind.enum.js +11 -0
  179. package/build-esm/v1/client-file/schemas/client-file-content-kind.enum.js.map +1 -0
  180. package/build-esm/v1/client-file/schemas/client-file-internal-import.schema.js +31 -0
  181. package/build-esm/v1/client-file/schemas/client-file-internal-import.schema.js.map +1 -0
  182. package/build-esm/v1/client-file/schemas/client-file-item-response.schema.js +5 -1
  183. package/build-esm/v1/client-file/schemas/client-file-item-response.schema.js.map +1 -1
  184. package/build-esm/v1/client-file/schemas/client-file-mark.enum.js +8 -1
  185. package/build-esm/v1/client-file/schemas/client-file-mark.enum.js.map +1 -1
  186. package/build-esm/v1/client-file/schemas/client-file-reading.schema.js +8 -0
  187. package/build-esm/v1/client-file/schemas/client-file-reading.schema.js.map +1 -0
  188. package/build-esm/v1/client-file/schemas/client-file-status.enum.js +21 -1
  189. package/build-esm/v1/client-file/schemas/client-file-status.enum.js.map +1 -1
  190. package/build-esm/v1/client-file/schemas/client-file-type.enum.js +5 -1
  191. package/build-esm/v1/client-file/schemas/client-file-type.enum.js.map +1 -1
  192. package/build-esm/v1/client-file/schemas/index.js +5 -6
  193. package/build-esm/v1/client-file/schemas/index.js.map +1 -1
  194. package/build-esm/v1/client-file/schemas/magic-verdict.enum.js +10 -0
  195. package/build-esm/v1/client-file/schemas/magic-verdict.enum.js.map +1 -0
  196. package/build-esm/v1/client-file/schemas/processing-category.enum.js +11 -1
  197. package/build-esm/v1/client-file/schemas/processing-category.enum.js.map +1 -1
  198. package/build-esm/v1/client-file/schemas/upload-magic-type.enum.js +18 -0
  199. package/build-esm/v1/client-file/schemas/upload-magic-type.enum.js.map +1 -0
  200. package/build-esm/v1/client-file/upload-magic-bytes.js +4 -4
  201. package/build-esm/v1/client-file/upload-magic-bytes.js.map +1 -1
  202. package/build-esm/v1/message/schemas/index.js +1 -0
  203. package/build-esm/v1/message/schemas/index.js.map +1 -1
  204. package/build-esm/v1/message/schemas/preparation-phase.enum.js +6 -0
  205. package/build-esm/v1/message/schemas/preparation-phase.enum.js.map +1 -0
  206. package/build-esm/v1/message/schemas/send-file-step-content.schema.js +4 -1
  207. package/build-esm/v1/message/schemas/send-file-step-content.schema.js.map +1 -1
  208. package/build-esm/v1/message/schemas/stream-events.schema.js +3 -4
  209. package/build-esm/v1/message/schemas/stream-events.schema.js.map +1 -1
  210. package/build-esm/v1/message/schemas/view-file-delivery.enum.js +8 -0
  211. package/build-esm/v1/message/schemas/view-file-delivery.enum.js.map +1 -0
  212. package/build-esm/v1/message/schemas/view-file-mode.enum.js +9 -0
  213. package/build-esm/v1/message/schemas/view-file-mode.enum.js.map +1 -0
  214. package/build-esm/v1/message/schemas/view-file-read-state.enum.js +9 -0
  215. package/build-esm/v1/message/schemas/view-file-read-state.enum.js.map +1 -0
  216. package/build-esm/v1/message/schemas/view-file-step-content.schema.js +9 -5
  217. package/build-esm/v1/message/schemas/view-file-step-content.schema.js.map +1 -1
  218. package/package.json +15 -15
  219. package/build/v1/ai-call/ai-native-usage.schema.d.ts +0 -43
  220. package/build/v1/ai-call/ai-native-usage.schema.js +0 -27
  221. package/build/v1/ai-call/ai-native-usage.schema.js.map +0 -1
  222. package/build/v1/client-file/commands/client-file-ocr-artifact.s2s.d.ts +0 -68
  223. package/build/v1/client-file/commands/client-file-ocr-artifact.s2s.js +0 -25
  224. package/build/v1/client-file/commands/client-file-ocr-artifact.s2s.js.map +0 -1
  225. package/build/v1/client-file/commands/client-file-preparation.s2s.d.ts +0 -93
  226. package/build/v1/client-file/commands/client-file-preparation.s2s.js +0 -29
  227. package/build/v1/client-file/commands/client-file-preparation.s2s.js.map +0 -1
  228. package/build/v1/client-file/commands/document-page-read.s2s.d.ts +0 -258
  229. package/build/v1/client-file/commands/document-page-read.s2s.js +0 -29
  230. package/build/v1/client-file/commands/document-page-read.s2s.js.map +0 -1
  231. package/build/v1/client-file/commands/document-snapshot-pages.s2s.d.ts +0 -56
  232. package/build/v1/client-file/commands/document-snapshot-pages.s2s.js +0 -15
  233. package/build/v1/client-file/commands/document-snapshot-pages.s2s.js.map +0 -1
  234. package/build/v1/client-file/document-page-read.constants.d.ts +0 -9
  235. package/build/v1/client-file/document-page-read.constants.js +0 -13
  236. package/build/v1/client-file/document-page-read.constants.js.map +0 -1
  237. package/build/v1/client-file/file-preparation.constants.d.ts +0 -1
  238. package/build/v1/client-file/file-preparation.constants.js +0 -5
  239. package/build/v1/client-file/file-preparation.constants.js.map +0 -1
  240. package/build/v1/client-file/queries/client-file-ocr-artifact.s2s.d.ts +0 -33
  241. package/build/v1/client-file/queries/client-file-ocr-artifact.s2s.js +0 -17
  242. package/build/v1/client-file/queries/client-file-ocr-artifact.s2s.js.map +0 -1
  243. package/build/v1/client-file/queries/client-file-preparation.s2s.d.ts +0 -72
  244. package/build/v1/client-file/queries/client-file-preparation.s2s.js +0 -17
  245. package/build/v1/client-file/queries/client-file-preparation.s2s.js.map +0 -1
  246. package/build/v1/client-file/queries/document-page-read.s2s.d.ts +0 -74
  247. package/build/v1/client-file/queries/document-page-read.s2s.js +0 -15
  248. package/build/v1/client-file/queries/document-page-read.s2s.js.map +0 -1
  249. package/build/v1/client-file/schemas/client-file-mark.schema.d.ts +0 -9
  250. package/build/v1/client-file/schemas/client-file-mark.schema.js +0 -10
  251. package/build/v1/client-file/schemas/client-file-mark.schema.js.map +0 -1
  252. package/build/v1/client-file/schemas/client-file-ocr-artifact.schema.d.ts +0 -61
  253. package/build/v1/client-file/schemas/client-file-ocr-artifact.schema.js +0 -30
  254. package/build/v1/client-file/schemas/client-file-ocr-artifact.schema.js.map +0 -1
  255. package/build/v1/client-file/schemas/client-file-pages.schema.d.ts +0 -283
  256. package/build/v1/client-file/schemas/client-file-pages.schema.js +0 -183
  257. package/build/v1/client-file/schemas/client-file-pages.schema.js.map +0 -1
  258. package/build/v1/client-file/schemas/client-file-preparation.schema.d.ts +0 -165
  259. package/build/v1/client-file/schemas/client-file-preparation.schema.js +0 -72
  260. package/build/v1/client-file/schemas/client-file-preparation.schema.js.map +0 -1
  261. package/build/v1/client-file/schemas/client-file-search.schema.d.ts +0 -75
  262. package/build/v1/client-file/schemas/client-file-search.schema.js +0 -74
  263. package/build/v1/client-file/schemas/client-file-search.schema.js.map +0 -1
  264. package/build/v1/client-file/schemas/client-file-status.schema.d.ts +0 -17
  265. package/build/v1/client-file/schemas/client-file-status.schema.js +0 -14
  266. package/build/v1/client-file/schemas/client-file-status.schema.js.map +0 -1
  267. package/build/v1/client-file/schemas/client-file-type.schema.d.ts +0 -11
  268. package/build/v1/client-file/schemas/client-file-type.schema.js +0 -11
  269. package/build/v1/client-file/schemas/client-file-type.schema.js.map +0 -1
  270. package/build/v1/client-file/schemas/document-page-read.schema.d.ts +0 -210
  271. package/build/v1/client-file/schemas/document-page-read.schema.js +0 -76
  272. package/build/v1/client-file/schemas/document-page-read.schema.js.map +0 -1
  273. package/build/v1/client-file/schemas/document-snapshot-pages.schema.d.ts +0 -48
  274. package/build/v1/client-file/schemas/document-snapshot-pages.schema.js +0 -38
  275. package/build/v1/client-file/schemas/document-snapshot-pages.schema.js.map +0 -1
  276. package/build/v1/client-file/schemas/magic-verdict.schema.d.ts +0 -13
  277. package/build/v1/client-file/schemas/magic-verdict.schema.js +0 -12
  278. package/build/v1/client-file/schemas/magic-verdict.schema.js.map +0 -1
  279. package/build/v1/client-file/schemas/processing-category.schema.d.ts +0 -15
  280. package/build/v1/client-file/schemas/processing-category.schema.js +0 -13
  281. package/build/v1/client-file/schemas/processing-category.schema.js.map +0 -1
  282. package/build/v1/client-file/schemas/upload-magic-type.schema.d.ts +0 -27
  283. package/build/v1/client-file/schemas/upload-magic-type.schema.js +0 -19
  284. package/build/v1/client-file/schemas/upload-magic-type.schema.js.map +0 -1
  285. package/build-esm/v1/ai-call/ai-native-usage.schema.js +0 -24
  286. package/build-esm/v1/ai-call/ai-native-usage.schema.js.map +0 -1
  287. package/build-esm/v1/client-file/commands/client-file-ocr-artifact.s2s.js +0 -22
  288. package/build-esm/v1/client-file/commands/client-file-ocr-artifact.s2s.js.map +0 -1
  289. package/build-esm/v1/client-file/commands/client-file-preparation.s2s.js +0 -26
  290. package/build-esm/v1/client-file/commands/client-file-preparation.s2s.js.map +0 -1
  291. package/build-esm/v1/client-file/commands/document-page-read.s2s.js +0 -26
  292. package/build-esm/v1/client-file/commands/document-page-read.s2s.js.map +0 -1
  293. package/build-esm/v1/client-file/commands/document-snapshot-pages.s2s.js +0 -12
  294. package/build-esm/v1/client-file/commands/document-snapshot-pages.s2s.js.map +0 -1
  295. package/build-esm/v1/client-file/document-page-read.constants.js +0 -10
  296. package/build-esm/v1/client-file/document-page-read.constants.js.map +0 -1
  297. package/build-esm/v1/client-file/file-preparation.constants.js +0 -2
  298. package/build-esm/v1/client-file/file-preparation.constants.js.map +0 -1
  299. package/build-esm/v1/client-file/queries/client-file-ocr-artifact.s2s.js +0 -14
  300. package/build-esm/v1/client-file/queries/client-file-ocr-artifact.s2s.js.map +0 -1
  301. package/build-esm/v1/client-file/queries/client-file-preparation.s2s.js +0 -14
  302. package/build-esm/v1/client-file/queries/client-file-preparation.s2s.js.map +0 -1
  303. package/build-esm/v1/client-file/queries/document-page-read.s2s.js +0 -12
  304. package/build-esm/v1/client-file/queries/document-page-read.s2s.js.map +0 -1
  305. package/build-esm/v1/client-file/schemas/client-file-mark.schema.js +0 -7
  306. package/build-esm/v1/client-file/schemas/client-file-mark.schema.js.map +0 -1
  307. package/build-esm/v1/client-file/schemas/client-file-ocr-artifact.schema.js +0 -27
  308. package/build-esm/v1/client-file/schemas/client-file-ocr-artifact.schema.js.map +0 -1
  309. package/build-esm/v1/client-file/schemas/client-file-pages.schema.js +0 -180
  310. package/build-esm/v1/client-file/schemas/client-file-pages.schema.js.map +0 -1
  311. package/build-esm/v1/client-file/schemas/client-file-preparation.schema.js +0 -69
  312. package/build-esm/v1/client-file/schemas/client-file-preparation.schema.js.map +0 -1
  313. package/build-esm/v1/client-file/schemas/client-file-search.schema.js +0 -71
  314. package/build-esm/v1/client-file/schemas/client-file-search.schema.js.map +0 -1
  315. package/build-esm/v1/client-file/schemas/client-file-status.schema.js +0 -11
  316. package/build-esm/v1/client-file/schemas/client-file-status.schema.js.map +0 -1
  317. package/build-esm/v1/client-file/schemas/client-file-type.schema.js +0 -8
  318. package/build-esm/v1/client-file/schemas/client-file-type.schema.js.map +0 -1
  319. package/build-esm/v1/client-file/schemas/document-page-read.schema.js +0 -73
  320. package/build-esm/v1/client-file/schemas/document-page-read.schema.js.map +0 -1
  321. package/build-esm/v1/client-file/schemas/document-snapshot-pages.schema.js +0 -35
  322. package/build-esm/v1/client-file/schemas/document-snapshot-pages.schema.js.map +0 -1
  323. package/build-esm/v1/client-file/schemas/magic-verdict.schema.js +0 -9
  324. package/build-esm/v1/client-file/schemas/magic-verdict.schema.js.map +0 -1
  325. package/build-esm/v1/client-file/schemas/processing-category.schema.js +0 -10
  326. package/build-esm/v1/client-file/schemas/processing-category.schema.js.map +0 -1
  327. package/build-esm/v1/client-file/schemas/upload-magic-type.schema.js +0 -16
  328. package/build-esm/v1/client-file/schemas/upload-magic-type.schema.js.map +0 -1
@@ -18,7 +18,6 @@ export declare enum ToolId {
18
18
  IMAGE_REMOVE_BG = "IMAGE_REMOVE_BG",
19
19
  FIND_IN_CHAT = "FIND_IN_CHAT",
20
20
  VIEW_FILE = "VIEW_FILE",
21
- SEARCH_FILE = "SEARCH_FILE",
22
21
  SEND_FILE = "SEND_FILE",
23
22
  BASH = "BASH",
24
23
  CREATE_FILE = "CREATE_FILE",
@@ -24,7 +24,6 @@ var ToolId;
24
24
  ToolId["IMAGE_REMOVE_BG"] = "IMAGE_REMOVE_BG";
25
25
  ToolId["FIND_IN_CHAT"] = "FIND_IN_CHAT";
26
26
  ToolId["VIEW_FILE"] = "VIEW_FILE";
27
- ToolId["SEARCH_FILE"] = "SEARCH_FILE";
28
27
  ToolId["SEND_FILE"] = "SEND_FILE";
29
28
  // Sandbox primitive tools
30
29
  ToolId["BASH"] = "BASH";
@@ -1 +1 @@
1
- {"version":3,"file":"tool-id.enum.js","sourceRoot":"","sources":["../../../v1/ai/tool-id.enum.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;GASG;AACH,IAAY,MAwBX;AAxBD,WAAY,MAAM;IACd,uDAAuD;IACvD,iCAAuB,CAAA;IACvB,mCAAyB,CAAA;IACzB,mCAAyB,CAAA;IACzB,2DAAiD,CAAA;IACjD,mDAAyC,CAAA;IACzC,iEAAiE;IACjE,yCAA+B,CAAA;IAC/B,6CAAmC,CAAA;IACnC,uCAA6B,CAAA;IAC7B,iCAAuB,CAAA;IACvB,qCAA2B,CAAA;IAC3B,iCAAuB,CAAA;IACvB,0BAA0B;IAC1B,uBAAa,CAAA;IACb,qCAA2B,CAAA;IAC3B,qCAA2B,CAAA;IAC3B,uCAA6B,CAAA;IAC7B,oBAAoB;IACpB,2BAAiB,CAAA;IACjB,0BAA0B;IAC1B,qDAA2C,CAAA;IAC3C,uCAA6B,CAAA;AACjC,CAAC,EAxBW,MAAM,sBAAN,MAAM,QAwBjB"}
1
+ {"version":3,"file":"tool-id.enum.js","sourceRoot":"","sources":["../../../v1/ai/tool-id.enum.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;GASG;AACH,IAAY,MAuBX;AAvBD,WAAY,MAAM;IACd,uDAAuD;IACvD,iCAAuB,CAAA;IACvB,mCAAyB,CAAA;IACzB,mCAAyB,CAAA;IACzB,2DAAiD,CAAA;IACjD,mDAAyC,CAAA;IACzC,iEAAiE;IACjE,yCAA+B,CAAA;IAC/B,6CAAmC,CAAA;IACnC,uCAA6B,CAAA;IAC7B,iCAAuB,CAAA;IACvB,iCAAuB,CAAA;IACvB,0BAA0B;IAC1B,uBAAa,CAAA;IACb,qCAA2B,CAAA;IAC3B,qCAA2B,CAAA;IAC3B,uCAA6B,CAAA;IAC7B,oBAAoB;IACpB,2BAAiB,CAAA;IACjB,0BAA0B;IAC1B,qDAA2C,CAAA;IAC3C,uCAA6B,CAAA;AACjC,CAAC,EAvBW,MAAM,sBAAN,MAAM,QAuBjB"}
@@ -0,0 +1,11 @@
1
+ /** Accounting identity, deliberately separate from the routable MAIN-provider catalog. */
2
+ export declare enum AiAccountingProvider {
3
+ OPENROUTER = "OPENROUTER",
4
+ PERPLEXITY = "PERPLEXITY",
5
+ YANDEX = "YANDEX",
6
+ KIE = "KIE",
7
+ WELLFLOW = "WELLFLOW",
8
+ DEROUTER = "DEROUTER",
9
+ APIROUTE = "APIROUTE",
10
+ MISTRAL = "MISTRAL"
11
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AiAccountingProvider = void 0;
4
+ /** Accounting identity, deliberately separate from the routable MAIN-provider catalog. */
5
+ var AiAccountingProvider;
6
+ (function (AiAccountingProvider) {
7
+ AiAccountingProvider["OPENROUTER"] = "OPENROUTER";
8
+ AiAccountingProvider["PERPLEXITY"] = "PERPLEXITY";
9
+ AiAccountingProvider["YANDEX"] = "YANDEX";
10
+ AiAccountingProvider["KIE"] = "KIE";
11
+ AiAccountingProvider["WELLFLOW"] = "WELLFLOW";
12
+ AiAccountingProvider["DEROUTER"] = "DEROUTER";
13
+ AiAccountingProvider["APIROUTE"] = "APIROUTE";
14
+ AiAccountingProvider["MISTRAL"] = "MISTRAL";
15
+ })(AiAccountingProvider || (exports.AiAccountingProvider = AiAccountingProvider = {}));
16
+ //# sourceMappingURL=ai-accounting-provider.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-accounting-provider.enum.js","sourceRoot":"","sources":["../../../v1/ai-call/ai-accounting-provider.enum.ts"],"names":[],"mappings":";;;AAAA,0FAA0F;AAC1F,IAAY,oBASX;AATD,WAAY,oBAAoB;IAC5B,iDAAyB,CAAA;IACzB,iDAAyB,CAAA;IACzB,yCAAiB,CAAA;IACjB,mCAAW,CAAA;IACX,6CAAqB,CAAA;IACrB,6CAAqB,CAAA;IACrB,6CAAqB,CAAA;IACrB,2CAAmB,CAAA;AACvB,CAAC,EATW,oBAAoB,oCAApB,oBAAoB,QAS/B"}
@@ -1,28 +1,22 @@
1
- import { z } from 'zod';
2
1
  /**
3
2
  * Where the USD cost of one upstream attempt came from. Fixed by code per provider
4
3
  * (`provider-cost.policy.ts`), never chosen by route data. Stored as `ai_calls.cost_source`.
5
4
  */
6
- export declare const AiCostSourceSchema: z.ZodEnum<{
7
- NONE: "NONE";
8
- PROVIDER_REPORTED: "PROVIDER_REPORTED";
9
- PROVIDER_REPORTED_BYOK: "PROVIDER_REPORTED_BYOK";
10
- PROVIDER_CREDITS: "PROVIDER_CREDITS";
11
- PRICE_TABLE: "PRICE_TABLE";
12
- VENDOR_REPORTED_FALLBACK: "VENDOR_REPORTED_FALLBACK";
13
- PRICE_LIST: "PRICE_LIST";
14
- ESTIMATE: "ESTIMATE";
15
- CONFIGURED_PAGE_TARIFF: "CONFIGURED_PAGE_TARIFF";
16
- }>;
17
- export declare const AiCostSource: {
18
- NONE: "NONE";
19
- PROVIDER_REPORTED: "PROVIDER_REPORTED";
20
- PROVIDER_REPORTED_BYOK: "PROVIDER_REPORTED_BYOK";
21
- PROVIDER_CREDITS: "PROVIDER_CREDITS";
22
- PRICE_TABLE: "PRICE_TABLE";
23
- VENDOR_REPORTED_FALLBACK: "VENDOR_REPORTED_FALLBACK";
24
- PRICE_LIST: "PRICE_LIST";
25
- ESTIMATE: "ESTIMATE";
26
- CONFIGURED_PAGE_TARIFF: "CONFIGURED_PAGE_TARIFF";
27
- };
28
- export type AiCostSource = z.infer<typeof AiCostSourceSchema>;
5
+ export declare enum AiCostSource {
6
+ /** The provider reported USD in the response (OpenRouter `usage.cost`). */
7
+ PROVIDER_REPORTED = "PROVIDER_REPORTED",
8
+ /** OpenRouter BYOK: `usage.cost` is the OpenRouter fee, the model vendor's charge is added on top. */
9
+ PROVIDER_REPORTED_BYOK = "PROVIDER_REPORTED_BYOK",
10
+ /** The provider reported credits that we convert at the package rate (KIE chat). */
11
+ PROVIDER_CREDITS = "PROVIDER_CREDITS",
12
+ /** Tokens multiplied by the route `tokenPricing` table. */
13
+ PRICE_TABLE = "PRICE_TABLE",
14
+ /** No price table on the route: the figure the vendor streamed with the response. */
15
+ VENDOR_REPORTED_FALLBACK = "VENDOR_REPORTED_FALLBACK",
16
+ /** A fixed per-request vendor price list kept in code (web search: Perplexity, Yandex). */
17
+ PRICE_LIST = "PRICE_LIST",
18
+ /** Our own estimate made before the call finished (KIE image jobs at submit). */
19
+ ESTIMATE = "ESTIMATE",
20
+ /** No cost basis at all: aborted socket, failed handshake, missing table and vendor figure. */
21
+ NONE = "NONE"
22
+ }
@@ -1,22 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AiCostSource = exports.AiCostSourceSchema = void 0;
4
- const zod_1 = require("zod");
3
+ exports.AiCostSource = void 0;
5
4
  /**
6
5
  * Where the USD cost of one upstream attempt came from. Fixed by code per provider
7
6
  * (`provider-cost.policy.ts`), never chosen by route data. Stored as `ai_calls.cost_source`.
8
7
  */
9
- exports.AiCostSourceSchema = zod_1.z.enum([
10
- 'PROVIDER_REPORTED',
11
- 'PROVIDER_REPORTED_BYOK',
12
- 'PROVIDER_CREDITS',
13
- 'PRICE_TABLE',
14
- 'VENDOR_REPORTED_FALLBACK',
15
- 'PRICE_LIST',
16
- 'ESTIMATE',
17
- 'NONE',
18
- /** Verified native pages multiplied by an explicitly configured/versioned tariff; not vendor money. */
19
- 'CONFIGURED_PAGE_TARIFF',
20
- ]);
21
- exports.AiCostSource = exports.AiCostSourceSchema.enum;
8
+ var AiCostSource;
9
+ (function (AiCostSource) {
10
+ /** The provider reported USD in the response (OpenRouter `usage.cost`). */
11
+ AiCostSource["PROVIDER_REPORTED"] = "PROVIDER_REPORTED";
12
+ /** OpenRouter BYOK: `usage.cost` is the OpenRouter fee, the model vendor's charge is added on top. */
13
+ AiCostSource["PROVIDER_REPORTED_BYOK"] = "PROVIDER_REPORTED_BYOK";
14
+ /** The provider reported credits that we convert at the package rate (KIE chat). */
15
+ AiCostSource["PROVIDER_CREDITS"] = "PROVIDER_CREDITS";
16
+ /** Tokens multiplied by the route `tokenPricing` table. */
17
+ AiCostSource["PRICE_TABLE"] = "PRICE_TABLE";
18
+ /** No price table on the route: the figure the vendor streamed with the response. */
19
+ AiCostSource["VENDOR_REPORTED_FALLBACK"] = "VENDOR_REPORTED_FALLBACK";
20
+ /** A fixed per-request vendor price list kept in code (web search: Perplexity, Yandex). */
21
+ AiCostSource["PRICE_LIST"] = "PRICE_LIST";
22
+ /** Our own estimate made before the call finished (KIE image jobs at submit). */
23
+ AiCostSource["ESTIMATE"] = "ESTIMATE";
24
+ /** No cost basis at all: aborted socket, failed handshake, missing table and vendor figure. */
25
+ AiCostSource["NONE"] = "NONE";
26
+ })(AiCostSource || (exports.AiCostSource = AiCostSource = {}));
22
27
  //# sourceMappingURL=ai-cost-source.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-cost-source.enum.js","sourceRoot":"","sources":["../../../v1/ai-call/ai-cost-source.enum.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;;GAGG;AACU,QAAA,kBAAkB,GAAG,OAAC,CAAC,IAAI,CAAC;IACrC,mBAAmB;IACnB,wBAAwB;IACxB,kBAAkB;IAClB,aAAa;IACb,0BAA0B;IAC1B,YAAY;IACZ,UAAU;IACV,MAAM;IACN,uGAAuG;IACvG,wBAAwB;CAC3B,CAAC,CAAC;AACU,QAAA,YAAY,GAAG,0BAAkB,CAAC,IAAI,CAAC"}
1
+ {"version":3,"file":"ai-cost-source.enum.js","sourceRoot":"","sources":["../../../v1/ai-call/ai-cost-source.enum.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,YAiBX;AAjBD,WAAY,YAAY;IACpB,2EAA2E;IAC3E,uDAAuC,CAAA;IACvC,sGAAsG;IACtG,iEAAiD,CAAA;IACjD,oFAAoF;IACpF,qDAAqC,CAAA;IACrC,2DAA2D;IAC3D,2CAA2B,CAAA;IAC3B,qFAAqF;IACrF,qEAAqD,CAAA;IACrD,2FAA2F;IAC3F,yCAAyB,CAAA;IACzB,iFAAiF;IACjF,qCAAqB,CAAA;IACrB,+FAA+F;IAC/F,6BAAa,CAAA;AACjB,CAAC,EAjBW,YAAY,4BAAZ,YAAY,QAiBvB"}
@@ -4,4 +4,4 @@ export * from './ai-attempt-end-code.enum';
4
4
  export * from './ai-call.errors';
5
5
  export * from './ai-image-operation.enum';
6
6
  export * from './ai-call-request-params.schema';
7
- export * from './ai-native-usage.schema';
7
+ export * from './ai-accounting-provider.enum';
@@ -20,5 +20,5 @@ __exportStar(require("./ai-attempt-end-code.enum"), exports);
20
20
  __exportStar(require("./ai-call.errors"), exports);
21
21
  __exportStar(require("./ai-image-operation.enum"), exports);
22
22
  __exportStar(require("./ai-call-request-params.schema"), exports);
23
- __exportStar(require("./ai-native-usage.schema"), exports);
23
+ __exportStar(require("./ai-accounting-provider.enum"), exports);
24
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/ai-call/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,wDAAsC;AACtC,6DAA2C;AAC3C,mDAAiC;AACjC,4DAA0C;AAC1C,kEAAgD;AAChD,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/ai-call/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,wDAAsC;AACtC,6DAA2C;AAC3C,mDAAiC;AACjC,4DAA0C;AAC1C,kEAAgD;AAChD,gEAA8C"}
@@ -37,12 +37,7 @@ export declare namespace CreateRegChatCommand {
37
37
  sourceSha256: z.ZodOptional<z.ZodString>;
38
38
  filename: z.ZodString;
39
39
  mimeType: z.ZodNullable<z.ZodString>;
40
- delivery: z.ZodEnum<{
41
- TEXT: "TEXT";
42
- IMAGE: "IMAGE";
43
- PDF: "PDF";
44
- BINARY: "BINARY";
45
- }>;
40
+ delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
46
41
  pages: z.ZodOptional<z.ZodObject<{
47
42
  from: z.ZodNumber;
48
43
  to: z.ZodNumber;
@@ -56,22 +51,10 @@ export declare namespace CreateRegChatCommand {
56
51
  from: z.ZodNumber;
57
52
  to: z.ZodNumber;
58
53
  }, z.core.$strip>>;
59
- mode: z.ZodOptional<z.ZodEnum<{
60
- text: "text";
61
- image: "image";
62
- both: "both";
63
- info: "info";
64
- ocr: "ocr";
65
- }>>;
54
+ mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
66
55
  coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
67
56
  page: z.ZodNumber;
68
- state: z.ZodEnum<{
69
- UNREAD: "UNREAD";
70
- READ: "READ";
71
- UNKNOWN: "UNKNOWN";
72
- HIT: "HIT";
73
- BUSY: "BUSY";
74
- }>;
57
+ state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
75
58
  }, z.core.$strip>>>;
76
59
  truncated: z.ZodOptional<z.ZodBoolean>;
77
60
  nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -268,9 +251,7 @@ export declare namespace CreateRegChatCommand {
268
251
  width: z.ZodOptional<z.ZodNumber>;
269
252
  height: z.ZodOptional<z.ZodNumber>;
270
253
  }, z.core.$strip>>;
271
- marks: z.ZodArray<z.ZodEnum<{
272
- PASTED: "PASTED";
273
- }>>;
254
+ marks: z.ZodArray<z.ZodEnum<typeof import("../..").ClientFileMark>>;
274
255
  }, z.core.$strip>>;
275
256
  citations: z.ZodArray<z.ZodObject<{
276
257
  uuid: z.ZodString;
@@ -37,12 +37,7 @@ export declare namespace CreateUnregChatCommand {
37
37
  sourceSha256: z.ZodOptional<z.ZodString>;
38
38
  filename: z.ZodString;
39
39
  mimeType: z.ZodNullable<z.ZodString>;
40
- delivery: z.ZodEnum<{
41
- TEXT: "TEXT";
42
- IMAGE: "IMAGE";
43
- PDF: "PDF";
44
- BINARY: "BINARY";
45
- }>;
40
+ delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
46
41
  pages: z.ZodOptional<z.ZodObject<{
47
42
  from: z.ZodNumber;
48
43
  to: z.ZodNumber;
@@ -56,22 +51,10 @@ export declare namespace CreateUnregChatCommand {
56
51
  from: z.ZodNumber;
57
52
  to: z.ZodNumber;
58
53
  }, z.core.$strip>>;
59
- mode: z.ZodOptional<z.ZodEnum<{
60
- text: "text";
61
- image: "image";
62
- both: "both";
63
- info: "info";
64
- ocr: "ocr";
65
- }>>;
54
+ mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
66
55
  coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
67
56
  page: z.ZodNumber;
68
- state: z.ZodEnum<{
69
- UNREAD: "UNREAD";
70
- READ: "READ";
71
- UNKNOWN: "UNKNOWN";
72
- HIT: "HIT";
73
- BUSY: "BUSY";
74
- }>;
57
+ state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
75
58
  }, z.core.$strip>>>;
76
59
  truncated: z.ZodOptional<z.ZodBoolean>;
77
60
  nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -268,9 +251,7 @@ export declare namespace CreateUnregChatCommand {
268
251
  width: z.ZodOptional<z.ZodNumber>;
269
252
  height: z.ZodOptional<z.ZodNumber>;
270
253
  }, z.core.$strip>>;
271
- marks: z.ZodArray<z.ZodEnum<{
272
- PASTED: "PASTED";
273
- }>>;
254
+ marks: z.ZodArray<z.ZodEnum<typeof import("../..").ClientFileMark>>;
274
255
  }, z.core.$strip>>;
275
256
  citations: z.ZodArray<z.ZodObject<{
276
257
  uuid: z.ZodString;
@@ -36,12 +36,7 @@ export declare namespace UpdateChatTitleCommand {
36
36
  sourceSha256: z.ZodOptional<z.ZodString>;
37
37
  filename: z.ZodString;
38
38
  mimeType: z.ZodNullable<z.ZodString>;
39
- delivery: z.ZodEnum<{
40
- TEXT: "TEXT";
41
- IMAGE: "IMAGE";
42
- PDF: "PDF";
43
- BINARY: "BINARY";
44
- }>;
39
+ delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
45
40
  pages: z.ZodOptional<z.ZodObject<{
46
41
  from: z.ZodNumber;
47
42
  to: z.ZodNumber;
@@ -55,22 +50,10 @@ export declare namespace UpdateChatTitleCommand {
55
50
  from: z.ZodNumber;
56
51
  to: z.ZodNumber;
57
52
  }, z.core.$strip>>;
58
- mode: z.ZodOptional<z.ZodEnum<{
59
- text: "text";
60
- image: "image";
61
- both: "both";
62
- info: "info";
63
- ocr: "ocr";
64
- }>>;
53
+ mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
65
54
  coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
66
55
  page: z.ZodNumber;
67
- state: z.ZodEnum<{
68
- UNREAD: "UNREAD";
69
- READ: "READ";
70
- UNKNOWN: "UNKNOWN";
71
- HIT: "HIT";
72
- BUSY: "BUSY";
73
- }>;
56
+ state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
74
57
  }, z.core.$strip>>>;
75
58
  truncated: z.ZodOptional<z.ZodBoolean>;
76
59
  nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -267,9 +250,7 @@ export declare namespace UpdateChatTitleCommand {
267
250
  width: z.ZodOptional<z.ZodNumber>;
268
251
  height: z.ZodOptional<z.ZodNumber>;
269
252
  }, z.core.$strip>>;
270
- marks: z.ZodArray<z.ZodEnum<{
271
- PASTED: "PASTED";
272
- }>>;
253
+ marks: z.ZodArray<z.ZodEnum<typeof import("../..").ClientFileMark>>;
273
254
  }, z.core.$strip>>;
274
255
  citations: z.ZodArray<z.ZodObject<{
275
256
  uuid: z.ZodString;
@@ -38,12 +38,7 @@ export declare namespace UpdateChatCommand {
38
38
  sourceSha256: z.ZodOptional<z.ZodString>;
39
39
  filename: z.ZodString;
40
40
  mimeType: z.ZodNullable<z.ZodString>;
41
- delivery: z.ZodEnum<{
42
- TEXT: "TEXT";
43
- IMAGE: "IMAGE";
44
- PDF: "PDF";
45
- BINARY: "BINARY";
46
- }>;
41
+ delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
47
42
  pages: z.ZodOptional<z.ZodObject<{
48
43
  from: z.ZodNumber;
49
44
  to: z.ZodNumber;
@@ -57,22 +52,10 @@ export declare namespace UpdateChatCommand {
57
52
  from: z.ZodNumber;
58
53
  to: z.ZodNumber;
59
54
  }, z.core.$strip>>;
60
- mode: z.ZodOptional<z.ZodEnum<{
61
- text: "text";
62
- image: "image";
63
- both: "both";
64
- info: "info";
65
- ocr: "ocr";
66
- }>>;
55
+ mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
67
56
  coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
68
57
  page: z.ZodNumber;
69
- state: z.ZodEnum<{
70
- UNREAD: "UNREAD";
71
- READ: "READ";
72
- UNKNOWN: "UNKNOWN";
73
- HIT: "HIT";
74
- BUSY: "BUSY";
75
- }>;
58
+ state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
76
59
  }, z.core.$strip>>>;
77
60
  truncated: z.ZodOptional<z.ZodBoolean>;
78
61
  nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -269,9 +252,7 @@ export declare namespace UpdateChatCommand {
269
252
  width: z.ZodOptional<z.ZodNumber>;
270
253
  height: z.ZodOptional<z.ZodNumber>;
271
254
  }, z.core.$strip>>;
272
- marks: z.ZodArray<z.ZodEnum<{
273
- PASTED: "PASTED";
274
- }>>;
255
+ marks: z.ZodArray<z.ZodEnum<typeof import("../..").ClientFileMark>>;
275
256
  }, z.core.$strip>>;
276
257
  citations: z.ZodArray<z.ZodObject<{
277
258
  uuid: z.ZodString;
@@ -34,12 +34,7 @@ export declare namespace GetLastActiveChatQuery {
34
34
  sourceSha256: z.ZodOptional<z.ZodString>;
35
35
  filename: z.ZodString;
36
36
  mimeType: z.ZodNullable<z.ZodString>;
37
- delivery: z.ZodEnum<{
38
- TEXT: "TEXT";
39
- IMAGE: "IMAGE";
40
- PDF: "PDF";
41
- BINARY: "BINARY";
42
- }>;
37
+ delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
43
38
  pages: z.ZodOptional<z.ZodObject<{
44
39
  from: z.ZodNumber;
45
40
  to: z.ZodNumber;
@@ -53,22 +48,10 @@ export declare namespace GetLastActiveChatQuery {
53
48
  from: z.ZodNumber;
54
49
  to: z.ZodNumber;
55
50
  }, z.core.$strip>>;
56
- mode: z.ZodOptional<z.ZodEnum<{
57
- text: "text";
58
- image: "image";
59
- both: "both";
60
- info: "info";
61
- ocr: "ocr";
62
- }>>;
51
+ mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
63
52
  coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
64
53
  page: z.ZodNumber;
65
- state: z.ZodEnum<{
66
- UNREAD: "UNREAD";
67
- READ: "READ";
68
- UNKNOWN: "UNKNOWN";
69
- HIT: "HIT";
70
- BUSY: "BUSY";
71
- }>;
54
+ state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
72
55
  }, z.core.$strip>>>;
73
56
  truncated: z.ZodOptional<z.ZodBoolean>;
74
57
  nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -265,9 +248,7 @@ export declare namespace GetLastActiveChatQuery {
265
248
  width: z.ZodOptional<z.ZodNumber>;
266
249
  height: z.ZodOptional<z.ZodNumber>;
267
250
  }, z.core.$strip>>;
268
- marks: z.ZodArray<z.ZodEnum<{
269
- PASTED: "PASTED";
270
- }>>;
251
+ marks: z.ZodArray<z.ZodEnum<typeof import("../..").ClientFileMark>>;
271
252
  }, z.core.$strip>>;
272
253
  citations: z.ZodArray<z.ZodObject<{
273
254
  uuid: z.ZodString;
@@ -34,12 +34,7 @@ export declare namespace GetRegChatQuery {
34
34
  sourceSha256: z.ZodOptional<z.ZodString>;
35
35
  filename: z.ZodString;
36
36
  mimeType: z.ZodNullable<z.ZodString>;
37
- delivery: z.ZodEnum<{
38
- TEXT: "TEXT";
39
- IMAGE: "IMAGE";
40
- PDF: "PDF";
41
- BINARY: "BINARY";
42
- }>;
37
+ delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
43
38
  pages: z.ZodOptional<z.ZodObject<{
44
39
  from: z.ZodNumber;
45
40
  to: z.ZodNumber;
@@ -53,22 +48,10 @@ export declare namespace GetRegChatQuery {
53
48
  from: z.ZodNumber;
54
49
  to: z.ZodNumber;
55
50
  }, z.core.$strip>>;
56
- mode: z.ZodOptional<z.ZodEnum<{
57
- text: "text";
58
- image: "image";
59
- both: "both";
60
- info: "info";
61
- ocr: "ocr";
62
- }>>;
51
+ mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
63
52
  coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
64
53
  page: z.ZodNumber;
65
- state: z.ZodEnum<{
66
- UNREAD: "UNREAD";
67
- READ: "READ";
68
- UNKNOWN: "UNKNOWN";
69
- HIT: "HIT";
70
- BUSY: "BUSY";
71
- }>;
54
+ state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
72
55
  }, z.core.$strip>>>;
73
56
  truncated: z.ZodOptional<z.ZodBoolean>;
74
57
  nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -265,9 +248,7 @@ export declare namespace GetRegChatQuery {
265
248
  width: z.ZodOptional<z.ZodNumber>;
266
249
  height: z.ZodOptional<z.ZodNumber>;
267
250
  }, z.core.$strip>>;
268
- marks: z.ZodArray<z.ZodEnum<{
269
- PASTED: "PASTED";
270
- }>>;
251
+ marks: z.ZodArray<z.ZodEnum<typeof import("../..").ClientFileMark>>;
271
252
  }, z.core.$strip>>;
272
253
  citations: z.ZodArray<z.ZodObject<{
273
254
  uuid: z.ZodString;
@@ -34,12 +34,7 @@ export declare namespace GetUnregChatQuery {
34
34
  sourceSha256: z.ZodOptional<z.ZodString>;
35
35
  filename: z.ZodString;
36
36
  mimeType: z.ZodNullable<z.ZodString>;
37
- delivery: z.ZodEnum<{
38
- TEXT: "TEXT";
39
- IMAGE: "IMAGE";
40
- PDF: "PDF";
41
- BINARY: "BINARY";
42
- }>;
37
+ delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
43
38
  pages: z.ZodOptional<z.ZodObject<{
44
39
  from: z.ZodNumber;
45
40
  to: z.ZodNumber;
@@ -53,22 +48,10 @@ export declare namespace GetUnregChatQuery {
53
48
  from: z.ZodNumber;
54
49
  to: z.ZodNumber;
55
50
  }, z.core.$strip>>;
56
- mode: z.ZodOptional<z.ZodEnum<{
57
- text: "text";
58
- image: "image";
59
- both: "both";
60
- info: "info";
61
- ocr: "ocr";
62
- }>>;
51
+ mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
63
52
  coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
64
53
  page: z.ZodNumber;
65
- state: z.ZodEnum<{
66
- UNREAD: "UNREAD";
67
- READ: "READ";
68
- UNKNOWN: "UNKNOWN";
69
- HIT: "HIT";
70
- BUSY: "BUSY";
71
- }>;
54
+ state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
72
55
  }, z.core.$strip>>>;
73
56
  truncated: z.ZodOptional<z.ZodBoolean>;
74
57
  nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -265,9 +248,7 @@ export declare namespace GetUnregChatQuery {
265
248
  width: z.ZodOptional<z.ZodNumber>;
266
249
  height: z.ZodOptional<z.ZodNumber>;
267
250
  }, z.core.$strip>>;
268
- marks: z.ZodArray<z.ZodEnum<{
269
- PASTED: "PASTED";
270
- }>>;
251
+ marks: z.ZodArray<z.ZodEnum<typeof import("../..").ClientFileMark>>;
271
252
  }, z.core.$strip>>;
272
253
  citations: z.ZodArray<z.ZodObject<{
273
254
  uuid: z.ZodString;
@@ -28,12 +28,7 @@ export declare const ChatWithMessagesResponseSchema: z.ZodObject<{
28
28
  sourceSha256: z.ZodOptional<z.ZodString>;
29
29
  filename: z.ZodString;
30
30
  mimeType: z.ZodNullable<z.ZodString>;
31
- delivery: z.ZodEnum<{
32
- TEXT: "TEXT";
33
- IMAGE: "IMAGE";
34
- PDF: "PDF";
35
- BINARY: "BINARY";
36
- }>;
31
+ delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
37
32
  pages: z.ZodOptional<z.ZodObject<{
38
33
  from: z.ZodNumber;
39
34
  to: z.ZodNumber;
@@ -47,22 +42,10 @@ export declare const ChatWithMessagesResponseSchema: z.ZodObject<{
47
42
  from: z.ZodNumber;
48
43
  to: z.ZodNumber;
49
44
  }, z.core.$strip>>;
50
- mode: z.ZodOptional<z.ZodEnum<{
51
- text: "text";
52
- image: "image";
53
- both: "both";
54
- info: "info";
55
- ocr: "ocr";
56
- }>>;
45
+ mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
57
46
  coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
58
47
  page: z.ZodNumber;
59
- state: z.ZodEnum<{
60
- UNREAD: "UNREAD";
61
- READ: "READ";
62
- UNKNOWN: "UNKNOWN";
63
- HIT: "HIT";
64
- BUSY: "BUSY";
65
- }>;
48
+ state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
66
49
  }, z.core.$strip>>>;
67
50
  truncated: z.ZodOptional<z.ZodBoolean>;
68
51
  nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -259,9 +242,7 @@ export declare const ChatWithMessagesResponseSchema: z.ZodObject<{
259
242
  width: z.ZodOptional<z.ZodNumber>;
260
243
  height: z.ZodOptional<z.ZodNumber>;
261
244
  }, z.core.$strip>>;
262
- marks: z.ZodArray<z.ZodEnum<{
263
- PASTED: "PASTED";
264
- }>>;
245
+ marks: z.ZodArray<z.ZodEnum<typeof import("../..").ClientFileMark>>;
265
246
  }, z.core.$strip>>;
266
247
  citations: z.ZodArray<z.ZodObject<{
267
248
  uuid: z.ZodString;
@@ -0,0 +1,10 @@
1
+ /** The OCR profile is opaque to file-api; its cache column holds at most this many characters. */
2
+ export declare const CLIENT_DOCUMENT_PROFILE_MAX_CHARS = 128;
3
+ /** Largest single-page PDF handed back for OCR: the OCR adapter accepts nothing bigger. */
4
+ export declare const CLIENT_DOCUMENT_PAGE_PDF_MAX_BYTES: number;
5
+ export declare const CLIENT_DOCUMENT_PAGE_PDF_MAX_BASE64_CHARS: number;
6
+ /** Ceiling for one `document/pages` response body, base64 included. Both sides enforce it. */
7
+ export declare const CLIENT_DOCUMENT_PAGES_RESPONSE_MAX_BYTES: number;
8
+ /** Largest sandbox file accepted by the internal import. */
9
+ export declare const CLIENT_FILE_INTERNAL_IMPORT_MAX_BYTES: number;
10
+ export declare const CLIENT_FILE_INTERNAL_IMPORT_MAX_BASE64_CHARS: number;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CLIENT_FILE_INTERNAL_IMPORT_MAX_BASE64_CHARS = exports.CLIENT_FILE_INTERNAL_IMPORT_MAX_BYTES = exports.CLIENT_DOCUMENT_PAGES_RESPONSE_MAX_BYTES = exports.CLIENT_DOCUMENT_PAGE_PDF_MAX_BASE64_CHARS = exports.CLIENT_DOCUMENT_PAGE_PDF_MAX_BYTES = exports.CLIENT_DOCUMENT_PROFILE_MAX_CHARS = void 0;
4
+ /** The OCR profile is opaque to file-api; its cache column holds at most this many characters. */
5
+ exports.CLIENT_DOCUMENT_PROFILE_MAX_CHARS = 128;
6
+ /** Largest single-page PDF handed back for OCR: the OCR adapter accepts nothing bigger. */
7
+ exports.CLIENT_DOCUMENT_PAGE_PDF_MAX_BYTES = 16 * 1024 * 1024;
8
+ exports.CLIENT_DOCUMENT_PAGE_PDF_MAX_BASE64_CHARS = Math.ceil(exports.CLIENT_DOCUMENT_PAGE_PDF_MAX_BYTES / 3) * 4;
9
+ /** Ceiling for one `document/pages` response body, base64 included. Both sides enforce it. */
10
+ exports.CLIENT_DOCUMENT_PAGES_RESPONSE_MAX_BYTES = 32 * 1024 * 1024;
11
+ /** Largest sandbox file accepted by the internal import. */
12
+ exports.CLIENT_FILE_INTERNAL_IMPORT_MAX_BYTES = 16 * 1024 * 1024;
13
+ exports.CLIENT_FILE_INTERNAL_IMPORT_MAX_BASE64_CHARS = Math.ceil(exports.CLIENT_FILE_INTERNAL_IMPORT_MAX_BYTES / 3) * 4;
14
+ //# sourceMappingURL=client-document.constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-document.constants.js","sourceRoot":"","sources":["../../../v1/client-file/client-document.constants.ts"],"names":[],"mappings":";;;AAAA,kGAAkG;AACrF,QAAA,iCAAiC,GAAG,GAAG,CAAC;AAErD,2FAA2F;AAC9E,QAAA,kCAAkC,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AACtD,QAAA,yCAAyC,GAClD,IAAI,CAAC,IAAI,CAAC,0CAAkC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAE1D,8FAA8F;AACjF,QAAA,wCAAwC,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAEzE,4DAA4D;AAC/C,QAAA,qCAAqC,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AACzD,QAAA,4CAA4C,GACrD,IAAI,CAAC,IAAI,CAAC,6CAAqC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
- import { ClientFileContentKind } from './schemas/client-file-pages.schema';
1
+ import { ClientFileContentKind } from './schemas/client-file-content-kind.enum';
2
2
  /** Spreadsheets read as sheets and rows (no PDF, no OCR). */
3
3
  export declare const CLIENT_FILE_SHEET_MIME_TYPES: ReadonlySet<string>;
4
- /** Legacy .xls / .ods: no safe maintained parser; read as document pages of the converted PDF. */
4
+ /** Legacy .xls / .ods: no safe maintained parser; page reads refuse these formats. */
5
5
  export declare const CLIENT_FILE_LEGACY_SHEET_MIME_TYPES: ReadonlySet<string>;
6
6
  export declare const CLIENT_FILE_PRESENTATION_MIME_TYPES: ReadonlySet<string>;
7
7
  /**