@zhin.js/core 1.5.15 → 1.6.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/README.md +78 -195
  2. package/lib/ai-completion-contract.d.ts +135 -0
  3. package/lib/ai-completion-contract.js +69 -0
  4. package/lib/built/ai-access.d.ts +2 -21
  5. package/lib/built/ai-access.js +1 -46
  6. package/lib/built/ai-outbound/index.d.ts +0 -2
  7. package/lib/built/ai-outbound/index.js +0 -2
  8. package/lib/built/ai-outbound/prompt.d.ts +2 -0
  9. package/lib/built/ai-outbound/prompt.js +2 -0
  10. package/lib/built/ai-outbound/types.d.ts +1 -10
  11. package/lib/built/ai-trigger.d.ts +39 -78
  12. package/lib/built/ai-trigger.js +3 -254
  13. package/lib/built/common-adapter-tools.d.ts +21 -6
  14. package/lib/built/common-adapter-tools.js +28 -17
  15. package/lib/built/generic-segment-mapper.js +4 -1
  16. package/lib/built/html-segment-fallback.d.ts +6 -7
  17. package/lib/built/html-segment-fallback.js +1 -16
  18. package/lib/built/html-to-text.d.ts +0 -3
  19. package/lib/built/html-to-text.js +131 -40
  20. package/lib/built/interaction-messages.d.ts +1 -0
  21. package/lib/built/interaction-messages.js +30 -0
  22. package/lib/built/interactive-segments/action.d.ts +3 -4
  23. package/lib/built/interactive-segments/action.js +2 -5
  24. package/lib/built/interactive-segments/index.d.ts +0 -2
  25. package/lib/built/interactive-segments/index.js +0 -2
  26. package/lib/built/interactive-segments/keyboard-segment.d.ts +0 -1
  27. package/lib/built/interactive-segments/keyboard-segment.js +0 -1
  28. package/lib/built/interactive-segments/onebot-keyboard.d.ts +0 -1
  29. package/lib/built/interactive-segments/onebot-keyboard.js +0 -2
  30. package/lib/built/interactive-segments/resolve.d.ts +2 -3
  31. package/lib/built/interactive-segments/resolve.js +21 -14
  32. package/lib/built/interactive-segments/types.d.ts +2 -7
  33. package/lib/built/interactive-segments/types.js +22 -2
  34. package/lib/built/login-assist.d.ts +13 -11
  35. package/lib/built/login-assist.js +32 -26
  36. package/lib/built/message-enrich.d.ts +24 -27
  37. package/lib/built/message-enrich.js +53 -49
  38. package/lib/built/outbound-content-arrays.d.ts +4 -0
  39. package/lib/built/outbound-content-arrays.js +32 -0
  40. package/lib/built/outbound-media-trust.d.ts +46 -0
  41. package/lib/built/outbound-media-trust.js +245 -0
  42. package/lib/built/outbound-media-utils.d.ts +5 -3
  43. package/lib/built/outbound-media-utils.js +5 -3
  44. package/lib/built/readable-link.d.ts +4 -0
  45. package/lib/built/readable-link.js +32 -0
  46. package/lib/built/rich-segments/markdown-to-text.d.ts +1 -2
  47. package/lib/built/rich-segments/markdown-to-text.js +141 -17
  48. package/lib/built/roles.d.ts +141 -12
  49. package/lib/built/roles.js +253 -52
  50. package/lib/built/segment-contract/assert.js +8 -2
  51. package/lib/built/segment-contract/delivery.js +1 -0
  52. package/lib/built/segment-contract/index.d.ts +3 -3
  53. package/lib/built/segment-contract/index.js +2 -2
  54. package/lib/built/segment-contract/json-schema.d.ts +39 -5
  55. package/lib/built/segment-contract/json-schema.js +207 -24
  56. package/lib/built/segment-contract/preview.js +8 -1
  57. package/lib/built/segment-contract/text.js +1 -1
  58. package/lib/built/segment-contract/types.d.ts +2 -2
  59. package/lib/built/segment-contract/validate.d.ts +1553 -224
  60. package/lib/built/segment-contract/validate.js +39 -3
  61. package/lib/built/tool-access.d.ts +5 -0
  62. package/lib/built/tool-access.js +17 -0
  63. package/lib/built/user-interaction.d.ts +5 -4
  64. package/lib/built/user-interaction.js +64 -52
  65. package/lib/errors.d.ts +1 -18
  66. package/lib/errors.js +1 -26
  67. package/lib/feature/command-public-api.d.ts +5 -0
  68. package/lib/feature/command-public-api.js +5 -0
  69. package/lib/feature/command.d.ts +2 -0
  70. package/lib/feature/command.js +1 -0
  71. package/lib/feature/component.d.ts +1 -0
  72. package/lib/feature/component.js +1 -0
  73. package/lib/feature/handler.d.ts +13 -7
  74. package/lib/feature/handler.js +2 -1
  75. package/lib/feature/middleware-public-api.d.ts +6 -0
  76. package/lib/feature/middleware-public-api.js +6 -0
  77. package/lib/feature/middleware.d.ts +22 -2
  78. package/lib/feature/middleware.js +7 -2
  79. package/lib/im-scene.d.ts +4 -3
  80. package/lib/im-scene.js +9 -9
  81. package/lib/im-session-id.d.ts +20 -12
  82. package/lib/im-session-id.js +8 -8
  83. package/lib/index.d.ts +19 -48
  84. package/lib/index.js +14 -41
  85. package/lib/jsx/intrinsic-elements.d.ts +83 -0
  86. package/lib/jsx/message-renderer.d.ts +13 -0
  87. package/lib/jsx/message-renderer.js +128 -0
  88. package/lib/jsx/message-tags.d.ts +133 -0
  89. package/lib/jsx/message-tags.js +50 -0
  90. package/lib/jsx-dev-runtime.d.ts +2 -2
  91. package/lib/jsx-dev-runtime.js +1 -2
  92. package/lib/jsx-runtime.d.ts +2 -12
  93. package/lib/jsx-runtime.js +1 -10
  94. package/lib/jsx.d.ts +6 -30
  95. package/lib/jsx.js +3 -93
  96. package/lib/message.d.ts +0 -40
  97. package/lib/message.js +1 -27
  98. package/lib/models/system-log.d.ts +0 -2
  99. package/lib/models/system-log.js +1 -8
  100. package/lib/models/user.d.ts +0 -2
  101. package/lib/models/user.js +1 -7
  102. package/lib/notice.d.ts +38 -33
  103. package/lib/notice.js +23 -7
  104. package/lib/plugin-runtime/im/command-feedback.d.ts +59 -0
  105. package/lib/plugin-runtime/im/command-feedback.js +148 -0
  106. package/lib/plugin-runtime/im/contracts.d.ts +217 -32
  107. package/lib/plugin-runtime/im/contracts.js +141 -23
  108. package/lib/plugin-runtime/im/conversation-runtime.d.ts +42 -0
  109. package/lib/plugin-runtime/im/conversation-runtime.js +451 -0
  110. package/lib/plugin-runtime/im/endpoint-runtime.d.ts +89 -0
  111. package/lib/plugin-runtime/im/endpoint-runtime.js +381 -0
  112. package/lib/plugin-runtime/im/feature-gate.d.ts +21 -0
  113. package/lib/plugin-runtime/im/feature-gate.js +88 -0
  114. package/lib/plugin-runtime/im/host/component-host-installer.d.ts +2 -0
  115. package/lib/plugin-runtime/im/host/component-host-installer.js +14 -0
  116. package/lib/plugin-runtime/im/host/conversation-migration.d.ts +5 -0
  117. package/lib/plugin-runtime/im/host/conversation-migration.js +75 -0
  118. package/lib/plugin-runtime/im/host/database-config.d.ts +10 -0
  119. package/lib/plugin-runtime/im/host/database-config.js +114 -0
  120. package/lib/plugin-runtime/im/host/database-host-installer.d.ts +29 -0
  121. package/lib/plugin-runtime/im/host/database-host-installer.js +442 -0
  122. package/lib/plugin-runtime/im/host/database-state.d.ts +9 -0
  123. package/lib/plugin-runtime/im/host/database-state.js +91 -0
  124. package/lib/plugin-runtime/im/host/index.d.ts +8 -0
  125. package/lib/plugin-runtime/im/host/index.js +8 -0
  126. package/lib/plugin-runtime/im/host/locale-host-installer.d.ts +3 -0
  127. package/lib/plugin-runtime/im/host/locale-host-installer.js +60 -0
  128. package/lib/plugin-runtime/im/host/outbound-host-installer.d.ts +8 -0
  129. package/lib/plugin-runtime/im/host/outbound-host-installer.js +153 -0
  130. package/lib/plugin-runtime/im/host/sender-enrichment.d.ts +34 -0
  131. package/lib/plugin-runtime/im/host/sender-enrichment.js +82 -0
  132. package/lib/plugin-runtime/im/im-runtime.d.ts +40 -111
  133. package/lib/plugin-runtime/im/im-runtime.js +234 -1059
  134. package/lib/plugin-runtime/im/inbound-dedup.d.ts +84 -0
  135. package/lib/plugin-runtime/im/inbound-dedup.js +322 -0
  136. package/lib/plugin-runtime/im/inbound-origin.d.ts +150 -0
  137. package/lib/plugin-runtime/im/inbound-origin.js +183 -0
  138. package/lib/plugin-runtime/im/inbound-runtime.d.ts +59 -0
  139. package/lib/plugin-runtime/im/inbound-runtime.js +478 -0
  140. package/lib/plugin-runtime/im/inbound-spine.d.ts +196 -0
  141. package/lib/plugin-runtime/im/inbound-spine.js +335 -0
  142. package/lib/plugin-runtime/im/index.d.ts +15 -4
  143. package/lib/plugin-runtime/im/index.js +11 -4
  144. package/lib/plugin-runtime/im/interaction-runtime.d.ts +50 -0
  145. package/lib/plugin-runtime/im/interaction-runtime.js +390 -0
  146. package/lib/plugin-runtime/im/interactive-router.d.ts +81 -0
  147. package/lib/plugin-runtime/im/interactive-router.js +382 -0
  148. package/lib/plugin-runtime/im/message-diagnostics.d.ts +70 -0
  149. package/lib/plugin-runtime/im/message-diagnostics.js +182 -0
  150. package/lib/plugin-runtime/im/message-dispatcher.d.ts +18 -4
  151. package/lib/plugin-runtime/im/message-dispatcher.js +138 -20
  152. package/lib/plugin-runtime/im/message-events.d.ts +85 -0
  153. package/lib/plugin-runtime/im/message-events.js +113 -0
  154. package/lib/plugin-runtime/im/outbound-delivery-runtime.d.ts +39 -0
  155. package/lib/plugin-runtime/im/outbound-delivery-runtime.js +450 -0
  156. package/lib/plugin-runtime/im/outbound-renderer.d.ts +52 -3
  157. package/lib/plugin-runtime/im/outbound-renderer.js +188 -8
  158. package/lib/plugin-runtime/im/outbound-segments.d.ts +29 -5
  159. package/lib/plugin-runtime/im/outbound-segments.js +130 -36
  160. package/lib/plugin-runtime/im/progressive-reply.d.ts +58 -0
  161. package/lib/plugin-runtime/im/progressive-reply.js +501 -0
  162. package/lib/plugin-runtime/im/public-api.d.ts +1 -1
  163. package/lib/request.d.ts +27 -36
  164. package/lib/request.js +14 -6
  165. package/lib/side-event/base.d.ts +64 -44
  166. package/lib/side-event/base.js +72 -19
  167. package/lib/side-event/index.d.ts +1 -1
  168. package/lib/side-event/index.js +1 -1
  169. package/lib/side-event/normalize.d.ts +7 -38
  170. package/lib/side-event/normalize.js +4 -109
  171. package/lib/side-event/scene-events.d.ts +40 -0
  172. package/lib/side-event/scene-events.js +147 -0
  173. package/lib/side-event/types.d.ts +4 -13
  174. package/lib/side-event/types.js +1 -55
  175. package/lib/system-event.d.ts +17 -12
  176. package/lib/system-event.js +8 -6
  177. package/lib/types.d.ts +23 -167
  178. package/lib/utils.d.ts +50 -33
  179. package/lib/utils.js +12 -185
  180. package/lib/venue/contracts.d.ts +21 -0
  181. package/lib/venue/contracts.js +3 -0
  182. package/lib/venue/floor-controller.d.ts +11 -0
  183. package/lib/venue/floor-controller.js +63 -0
  184. package/lib/venue/index.d.ts +13 -0
  185. package/lib/venue/index.js +11 -0
  186. package/lib/venue/membership-port.d.ts +23 -0
  187. package/lib/venue/membership-port.js +141 -0
  188. package/lib/venue/projector.d.ts +38 -0
  189. package/lib/venue/projector.js +45 -0
  190. package/lib/venue/registry.d.ts +16 -0
  191. package/lib/venue/registry.js +63 -0
  192. package/lib/venue/router.d.ts +19 -0
  193. package/lib/venue/router.js +101 -0
  194. package/lib/venue/send-limiter.d.ts +17 -0
  195. package/lib/venue/send-limiter.js +73 -0
  196. package/lib/venue/validator.d.ts +6 -0
  197. package/lib/venue/validator.js +160 -0
  198. package/package.json +24 -50
  199. package/lib/adapter.d.ts +0 -145
  200. package/lib/adapter.js +0 -377
  201. package/lib/built/adapter-process.d.ts +0 -58
  202. package/lib/built/adapter-process.js +0 -128
  203. package/lib/built/agent-preset.d.ts +0 -64
  204. package/lib/built/agent-preset.js +0 -79
  205. package/lib/built/ai-outbound/adapter-access.d.ts +0 -3
  206. package/lib/built/ai-outbound/adapter-access.js +0 -9
  207. package/lib/built/ai-outbound/extensions/qq-message.d.ts +0 -3
  208. package/lib/built/ai-outbound/extensions/qq-message.js +0 -23
  209. package/lib/built/authorization.d.ts +0 -10
  210. package/lib/built/authorization.js +0 -76
  211. package/lib/built/command.d.ts +0 -72
  212. package/lib/built/command.js +0 -105
  213. package/lib/built/component.d.ts +0 -67
  214. package/lib/built/component.js +0 -97
  215. package/lib/built/config.d.ts +0 -98
  216. package/lib/built/config.js +0 -372
  217. package/lib/built/connect-endpoint-instance.d.ts +0 -17
  218. package/lib/built/connect-endpoint-instance.js +0 -42
  219. package/lib/built/database.d.ts +0 -68
  220. package/lib/built/database.js +0 -106
  221. package/lib/built/dispatcher.d.ts +0 -141
  222. package/lib/built/dispatcher.js +0 -383
  223. package/lib/built/endpoint-commands.d.ts +0 -3
  224. package/lib/built/endpoint-commands.js +0 -99
  225. package/lib/built/endpoint-lifecycle-service.d.ts +0 -28
  226. package/lib/built/endpoint-lifecycle-service.js +0 -242
  227. package/lib/built/endpoint-lifecycle.d.ts +0 -27
  228. package/lib/built/endpoint-lifecycle.js +0 -36
  229. package/lib/built/endpoint-manager.d.ts +0 -34
  230. package/lib/built/html-renderer-loader.d.ts +0 -13
  231. package/lib/built/html-renderer-loader.js +0 -33
  232. package/lib/built/inbound-pipeline.d.ts +0 -37
  233. package/lib/built/inbound-pipeline.js +0 -63
  234. package/lib/built/inbound-runner.d.ts +0 -22
  235. package/lib/built/inbound-runner.js +0 -34
  236. package/lib/built/interactive-segment-contract.d.ts +0 -6
  237. package/lib/built/interactive-segment-contract.js +0 -9
  238. package/lib/built/interactive-segments/fallback-store.d.ts +0 -29
  239. package/lib/built/interactive-segments/fallback-store.js +0 -63
  240. package/lib/built/interactive-segments/handlers.d.ts +0 -16
  241. package/lib/built/interactive-segments/handlers.js +0 -74
  242. package/lib/built/introspection-format.d.ts +0 -10
  243. package/lib/built/introspection-format.js +0 -28
  244. package/lib/built/management-command-guard.d.ts +0 -15
  245. package/lib/built/management-command-guard.js +0 -25
  246. package/lib/built/message-filter.d.ts +0 -176
  247. package/lib/built/message-filter.js +0 -239
  248. package/lib/built/optional-peer-import.d.ts +0 -3
  249. package/lib/built/optional-peer-import.js +0 -33
  250. package/lib/built/outbound-media-contract.d.ts +0 -22
  251. package/lib/built/outbound-media-contract.js +0 -10
  252. package/lib/built/permission.d.ts +0 -51
  253. package/lib/built/permission.js +0 -99
  254. package/lib/built/permit-check.d.ts +0 -7
  255. package/lib/built/permit-check.js +0 -35
  256. package/lib/built/permit-parse.d.ts +0 -16
  257. package/lib/built/permit-parse.js +0 -32
  258. package/lib/built/platform-permit.d.ts +0 -20
  259. package/lib/built/platform-permit.js +0 -91
  260. package/lib/built/queue-im-field-contract.d.ts +0 -32
  261. package/lib/built/queue-im-field-contract.js +0 -67
  262. package/lib/built/rich-segments/adapter-policies.d.ts +0 -9
  263. package/lib/built/rich-segments/adapter-policies.js +0 -27
  264. package/lib/built/rich-segments/base.d.ts +0 -11
  265. package/lib/built/rich-segments/base.js +0 -24
  266. package/lib/built/rich-segments/builtins.d.ts +0 -4
  267. package/lib/built/rich-segments/builtins.js +0 -40
  268. package/lib/built/rich-segments/capabilities.d.ts +0 -6
  269. package/lib/built/rich-segments/capabilities.js +0 -38
  270. package/lib/built/rich-segments/html-segment.d.ts +0 -15
  271. package/lib/built/rich-segments/html-segment.js +0 -62
  272. package/lib/built/rich-segments/index.d.ts +0 -13
  273. package/lib/built/rich-segments/index.js +0 -13
  274. package/lib/built/rich-segments/markdown-segment.d.ts +0 -14
  275. package/lib/built/rich-segments/markdown-segment.js +0 -58
  276. package/lib/built/rich-segments/qrcode-segment.d.ts +0 -18
  277. package/lib/built/rich-segments/qrcode-segment.js +0 -73
  278. package/lib/built/rich-segments/registry.d.ts +0 -16
  279. package/lib/built/rich-segments/registry.js +0 -52
  280. package/lib/built/rich-segments/resolve.d.ts +0 -5
  281. package/lib/built/rich-segments/resolve.js +0 -87
  282. package/lib/built/rich-segments/tts-segment.d.ts +0 -13
  283. package/lib/built/rich-segments/tts-segment.js +0 -51
  284. package/lib/built/rich-segments/types.d.ts +0 -79
  285. package/lib/built/rich-segments/types.js +0 -17
  286. package/lib/built/runtime-io.d.ts +0 -9
  287. package/lib/built/runtime-io.js +0 -67
  288. package/lib/built/schedule.d.ts +0 -54
  289. package/lib/built/schedule.js +0 -112
  290. package/lib/built/schema-endpoint-manager.d.ts +0 -17
  291. package/lib/built/schema-endpoint-manager.js +0 -73
  292. package/lib/built/schema-feature.d.ts +0 -77
  293. package/lib/built/schema-feature.js +0 -130
  294. package/lib/built/skill.d.ts +0 -120
  295. package/lib/built/skill.js +0 -151
  296. package/lib/built/speech-loader.d.ts +0 -14
  297. package/lib/built/speech-loader.js +0 -32
  298. package/lib/built/tool.d.ts +0 -151
  299. package/lib/built/tool.js +0 -388
  300. package/lib/command.d.ts +0 -50
  301. package/lib/command.js +0 -106
  302. package/lib/component.d.ts +0 -26
  303. package/lib/component.js +0 -583
  304. package/lib/endpoint-capabilities.d.ts +0 -46
  305. package/lib/endpoint-capabilities.js +0 -55
  306. package/lib/endpoint.d.ts +0 -19
  307. package/lib/endpoint.js +0 -3
  308. package/lib/host-plugin-registry.d.ts +0 -8
  309. package/lib/host-plugin-registry.js +0 -12
  310. package/lib/plugin-context.d.ts +0 -27
  311. package/lib/plugin-context.js +0 -64
  312. package/lib/plugin-runtime/im/interactive.d.ts +0 -26
  313. package/lib/plugin-runtime/im/interactive.js +0 -46
  314. package/lib/plugin-runtime/im/login-assist-host.d.ts +0 -6
  315. package/lib/plugin-runtime/im/login-assist-host.js +0 -6
  316. package/lib/plugin-runtime/im/message-bus.d.ts +0 -38
  317. package/lib/plugin-runtime/im/message-bus.js +0 -40
  318. package/lib/plugin-runtime/im/service-tokens.d.ts +0 -18
  319. package/lib/plugin-runtime/im/service-tokens.js +0 -13
  320. package/lib/plugin.d.ts +0 -268
  321. package/lib/plugin.js +0 -583
  322. package/lib/schema-interaction.d.ts +0 -117
  323. package/lib/schema-interaction.js +0 -247
  324. package/lib/side-event/dispatch.d.ts +0 -15
  325. package/lib/side-event/dispatch.js +0 -140
  326. package/lib/tool-zod.d.ts +0 -43
  327. package/lib/tool-zod.js +0 -184
  328. /package/lib/{built/endpoint-manager.js → jsx/intrinsic-elements.js} +0 -0
@@ -1,229 +1,1558 @@
1
1
  import { Schema } from '@zhin.js/schema';
2
- import type { MediaRef, Segment } from './types.js';
3
- export declare const mediaRefSchema: Schema<{
4
- kind?: any;
5
- value?: string | undefined;
6
- mime_type?: string | undefined;
7
- file_name?: string | undefined;
8
- size?: number | undefined;
9
- }, {
10
- kind?: any;
11
- value?: string | undefined;
12
- mime_type?: string | undefined;
13
- file_name?: string | undefined;
14
- size?: number | undefined;
15
- }>;
16
- export declare const textSegmentSchema: Schema<{
17
- type?: "text" | undefined;
18
- data?: {
19
- text?: string | undefined;
20
- } | undefined;
21
- platform?: Record<string, any> | undefined;
22
- }, {
23
- type?: "text" | undefined;
24
- data?: {
25
- text?: string | undefined;
26
- } | undefined;
27
- platform?: Record<string, any> | undefined;
28
- }>;
29
- export declare const mentionSegmentSchema: Schema<{
30
- type?: "mention" | undefined;
31
- data?: {
32
- target?: string | undefined;
33
- name?: string | undefined;
34
- } | undefined;
35
- platform?: Record<string, any> | undefined;
36
- }, {
37
- type?: "mention" | undefined;
38
- data?: {
39
- target?: string | undefined;
40
- name?: string | undefined;
41
- } | undefined;
42
- platform?: Record<string, any> | undefined;
43
- }>;
44
- export declare const imageSegmentSchema: Schema<{
45
- type?: "image" | undefined;
46
- data?: {
47
- media?: {
48
- kind?: any;
49
- value?: string | undefined;
50
- mime_type?: string | undefined;
51
- file_name?: string | undefined;
52
- size?: number | undefined;
53
- } | undefined;
54
- alt?: string | undefined;
55
- } | undefined;
56
- platform?: Record<string, any> | undefined;
57
- }, {
58
- type?: "image" | undefined;
59
- data?: {
60
- media?: {
61
- kind?: any;
62
- value?: string | undefined;
63
- mime_type?: string | undefined;
64
- file_name?: string | undefined;
65
- size?: number | undefined;
66
- } | undefined;
67
- alt?: string | undefined;
68
- } | undefined;
69
- platform?: Record<string, any> | undefined;
70
- }>;
71
- export declare const audioSegmentSchema: Schema<{
72
- type?: "audio" | undefined;
73
- data?: {
74
- media?: {
75
- kind?: any;
76
- value?: string | undefined;
77
- mime_type?: string | undefined;
78
- file_name?: string | undefined;
79
- size?: number | undefined;
80
- } | undefined;
81
- duration?: number | undefined;
82
- } | undefined;
83
- platform?: Record<string, any> | undefined;
84
- }, {
85
- type?: "audio" | undefined;
86
- data?: {
87
- media?: {
88
- kind?: any;
89
- value?: string | undefined;
90
- mime_type?: string | undefined;
91
- file_name?: string | undefined;
92
- size?: number | undefined;
93
- } | undefined;
94
- duration?: number | undefined;
95
- } | undefined;
96
- platform?: Record<string, any> | undefined;
97
- }>;
98
- export declare const videoSegmentSchema: Schema<{
99
- type?: "video" | undefined;
100
- data?: {
101
- media?: {
102
- kind?: any;
103
- value?: string | undefined;
104
- mime_type?: string | undefined;
105
- file_name?: string | undefined;
106
- size?: number | undefined;
107
- } | undefined;
108
- duration?: number | undefined;
109
- alt?: string | undefined;
110
- } | undefined;
111
- platform?: Record<string, any> | undefined;
112
- }, {
113
- type?: "video" | undefined;
114
- data?: {
115
- media?: {
116
- kind?: any;
117
- value?: string | undefined;
118
- mime_type?: string | undefined;
119
- file_name?: string | undefined;
120
- size?: number | undefined;
121
- } | undefined;
122
- duration?: number | undefined;
123
- alt?: string | undefined;
124
- } | undefined;
125
- platform?: Record<string, any> | undefined;
126
- }>;
127
- export declare const fileSegmentSchema: Schema<{
128
- type?: "file" | undefined;
129
- data?: {
130
- media?: {
131
- kind?: any;
132
- value?: string | undefined;
133
- mime_type?: string | undefined;
134
- file_name?: string | undefined;
135
- size?: number | undefined;
136
- } | undefined;
137
- name?: string | undefined;
138
- } | undefined;
139
- platform?: Record<string, any> | undefined;
140
- }, {
141
- type?: "file" | undefined;
142
- data?: {
143
- media?: {
144
- kind?: any;
145
- value?: string | undefined;
146
- mime_type?: string | undefined;
147
- file_name?: string | undefined;
148
- size?: number | undefined;
149
- } | undefined;
150
- name?: string | undefined;
151
- } | undefined;
152
- platform?: Record<string, any> | undefined;
153
- }>;
154
- export declare const replySegmentSchema: Schema<{
155
- type?: "reply" | undefined;
156
- data?: {
157
- message_id?: string | undefined;
158
- } | undefined;
159
- platform?: Record<string, any> | undefined;
160
- }, {
161
- type?: "reply" | undefined;
162
- data?: {
163
- message_id?: string | undefined;
164
- } | undefined;
165
- platform?: Record<string, any> | undefined;
166
- }>;
167
- export declare const forwardSegmentSchema: Schema<{
168
- type?: "forward" | undefined;
169
- data?: {
170
- forward_id?: string | undefined;
171
- title?: string | undefined;
172
- messages?: any[][] | undefined;
173
- } | undefined;
174
- platform?: Record<string, any> | undefined;
175
- }, {
176
- type?: "forward" | undefined;
177
- data?: {
178
- forward_id?: string | undefined;
179
- title?: string | undefined;
180
- messages?: any[][] | undefined;
181
- } | undefined;
182
- platform?: Record<string, any> | undefined;
183
- }>;
184
- export declare const faceSegmentSchema: Schema<{
185
- type?: "face" | undefined;
186
- data?: {
187
- id?: any;
188
- name?: string | undefined;
189
- } | undefined;
190
- platform?: Record<string, any> | undefined;
191
- }, {
192
- type?: "face" | undefined;
193
- data?: {
194
- id?: any;
195
- name?: string | undefined;
196
- } | undefined;
197
- platform?: Record<string, any> | undefined;
198
- }>;
199
- export declare const diceSegmentSchema: Schema<{
200
- type?: "dice" | undefined;
201
- data?: {
202
- result?: number | undefined;
203
- } | undefined;
204
- platform?: Record<string, any> | undefined;
205
- }, {
206
- type?: "dice" | undefined;
207
- data?: {
208
- result?: number | undefined;
209
- } | undefined;
210
- platform?: Record<string, any> | undefined;
211
- }>;
212
- export declare const rpsSegmentSchema: Schema<{
213
- type?: "rps" | undefined;
214
- data?: {
215
- result?: number | undefined;
216
- } | undefined;
217
- platform?: Record<string, any> | undefined;
218
- }, {
219
- type?: "rps" | undefined;
220
- data?: {
221
- result?: number | undefined;
222
- } | undefined;
223
- platform?: Record<string, any> | undefined;
224
- }>;
2
+ import type { Segment } from './types.js';
3
+ export { isMediaRef } from '@zhin.js/im-contract';
4
+ export declare const mediaRefSchema: Schema<Schema.InputRecord<{
5
+ kind: Schema;
6
+ value: Schema<string, string> & Schema.Present & Schema.Required;
7
+ mime_type: Schema<string, string>;
8
+ file_name: Schema<string, string>;
9
+ size: Schema<number, number>;
10
+ }>, Schema.RecordTypes<{
11
+ kind: Schema;
12
+ value: Schema<string, string> & Schema.Present & Schema.Required;
13
+ mime_type: Schema<string, string>;
14
+ file_name: Schema<string, string>;
15
+ size: Schema<number, number>;
16
+ }>> & {
17
+ readonly output?: Schema.RecordTypes<{
18
+ kind: Schema;
19
+ value: Schema<string, string> & Schema.Present & Schema.Required;
20
+ mime_type: Schema<string, string>;
21
+ file_name: Schema<string, string>;
22
+ size: Schema<number, number>;
23
+ }> | undefined;
24
+ };
25
+ export declare const textSegmentSchema: Schema<Schema.InputRecord<{
26
+ type: Schema<"text", "text"> & Schema.Present;
27
+ data: Schema<Schema.InputRecord<{
28
+ text: Schema<string, string> & Schema.Present & Schema.Required;
29
+ }>, Schema.RecordTypes<{
30
+ text: Schema<string, string> & Schema.Present & Schema.Required;
31
+ }>> & {
32
+ readonly output?: Schema.RecordTypes<{
33
+ text: Schema<string, string> & Schema.Present & Schema.Required;
34
+ }> | undefined;
35
+ } & Schema.Present & Schema.Required;
36
+ platform: Schema<Record<string, any>, Record<string, any>>;
37
+ }>, Schema.RecordTypes<{
38
+ type: Schema<"text", "text"> & Schema.Present;
39
+ data: Schema<Schema.InputRecord<{
40
+ text: Schema<string, string> & Schema.Present & Schema.Required;
41
+ }>, Schema.RecordTypes<{
42
+ text: Schema<string, string> & Schema.Present & Schema.Required;
43
+ }>> & {
44
+ readonly output?: Schema.RecordTypes<{
45
+ text: Schema<string, string> & Schema.Present & Schema.Required;
46
+ }> | undefined;
47
+ } & Schema.Present & Schema.Required;
48
+ platform: Schema<Record<string, any>, Record<string, any>>;
49
+ }>> & {
50
+ readonly output?: Schema.RecordTypes<{
51
+ type: Schema<"text", "text"> & Schema.Present;
52
+ data: Schema<Schema.InputRecord<{
53
+ text: Schema<string, string> & Schema.Present & Schema.Required;
54
+ }>, Schema.RecordTypes<{
55
+ text: Schema<string, string> & Schema.Present & Schema.Required;
56
+ }>> & {
57
+ readonly output?: Schema.RecordTypes<{
58
+ text: Schema<string, string> & Schema.Present & Schema.Required;
59
+ }> | undefined;
60
+ } & Schema.Present & Schema.Required;
61
+ platform: Schema<Record<string, any>, Record<string, any>>;
62
+ }> | undefined;
63
+ };
64
+ export declare const mentionSegmentSchema: Schema<Schema.InputRecord<{
65
+ type: Schema<"mention", "mention"> & Schema.Present;
66
+ data: Schema<Schema.InputRecord<{
67
+ target: Schema<string, string> & Schema.Present & Schema.Required;
68
+ name: Schema<string, string>;
69
+ }>, Schema.RecordTypes<{
70
+ target: Schema<string, string> & Schema.Present & Schema.Required;
71
+ name: Schema<string, string>;
72
+ }>> & {
73
+ readonly output?: Schema.RecordTypes<{
74
+ target: Schema<string, string> & Schema.Present & Schema.Required;
75
+ name: Schema<string, string>;
76
+ }> | undefined;
77
+ } & Schema.Present & Schema.Required;
78
+ platform: Schema<Record<string, any>, Record<string, any>>;
79
+ }>, Schema.RecordTypes<{
80
+ type: Schema<"mention", "mention"> & Schema.Present;
81
+ data: Schema<Schema.InputRecord<{
82
+ target: Schema<string, string> & Schema.Present & Schema.Required;
83
+ name: Schema<string, string>;
84
+ }>, Schema.RecordTypes<{
85
+ target: Schema<string, string> & Schema.Present & Schema.Required;
86
+ name: Schema<string, string>;
87
+ }>> & {
88
+ readonly output?: Schema.RecordTypes<{
89
+ target: Schema<string, string> & Schema.Present & Schema.Required;
90
+ name: Schema<string, string>;
91
+ }> | undefined;
92
+ } & Schema.Present & Schema.Required;
93
+ platform: Schema<Record<string, any>, Record<string, any>>;
94
+ }>> & {
95
+ readonly output?: Schema.RecordTypes<{
96
+ type: Schema<"mention", "mention"> & Schema.Present;
97
+ data: Schema<Schema.InputRecord<{
98
+ target: Schema<string, string> & Schema.Present & Schema.Required;
99
+ name: Schema<string, string>;
100
+ }>, Schema.RecordTypes<{
101
+ target: Schema<string, string> & Schema.Present & Schema.Required;
102
+ name: Schema<string, string>;
103
+ }>> & {
104
+ readonly output?: Schema.RecordTypes<{
105
+ target: Schema<string, string> & Schema.Present & Schema.Required;
106
+ name: Schema<string, string>;
107
+ }> | undefined;
108
+ } & Schema.Present & Schema.Required;
109
+ platform: Schema<Record<string, any>, Record<string, any>>;
110
+ }> | undefined;
111
+ };
112
+ export declare const imageSegmentSchema: Schema<Schema.InputRecord<{
113
+ type: Schema<"image", "image"> & Schema.Present;
114
+ data: Schema<Schema.InputRecord<{
115
+ media: Schema<Schema.InputRecord<{
116
+ kind: Schema;
117
+ value: Schema<string, string> & Schema.Present & Schema.Required;
118
+ mime_type: Schema<string, string>;
119
+ file_name: Schema<string, string>;
120
+ size: Schema<number, number>;
121
+ }>, Schema.RecordTypes<{
122
+ kind: Schema;
123
+ value: Schema<string, string> & Schema.Present & Schema.Required;
124
+ mime_type: Schema<string, string>;
125
+ file_name: Schema<string, string>;
126
+ size: Schema<number, number>;
127
+ }>> & {
128
+ readonly output?: Schema.RecordTypes<{
129
+ kind: Schema;
130
+ value: Schema<string, string> & Schema.Present & Schema.Required;
131
+ mime_type: Schema<string, string>;
132
+ file_name: Schema<string, string>;
133
+ size: Schema<number, number>;
134
+ }> | undefined;
135
+ } & Schema.Present & Schema.Required;
136
+ alt: Schema<string, string>;
137
+ }>, Schema.RecordTypes<{
138
+ media: Schema<Schema.InputRecord<{
139
+ kind: Schema;
140
+ value: Schema<string, string> & Schema.Present & Schema.Required;
141
+ mime_type: Schema<string, string>;
142
+ file_name: Schema<string, string>;
143
+ size: Schema<number, number>;
144
+ }>, Schema.RecordTypes<{
145
+ kind: Schema;
146
+ value: Schema<string, string> & Schema.Present & Schema.Required;
147
+ mime_type: Schema<string, string>;
148
+ file_name: Schema<string, string>;
149
+ size: Schema<number, number>;
150
+ }>> & {
151
+ readonly output?: Schema.RecordTypes<{
152
+ kind: Schema;
153
+ value: Schema<string, string> & Schema.Present & Schema.Required;
154
+ mime_type: Schema<string, string>;
155
+ file_name: Schema<string, string>;
156
+ size: Schema<number, number>;
157
+ }> | undefined;
158
+ } & Schema.Present & Schema.Required;
159
+ alt: Schema<string, string>;
160
+ }>> & {
161
+ readonly output?: Schema.RecordTypes<{
162
+ media: Schema<Schema.InputRecord<{
163
+ kind: Schema;
164
+ value: Schema<string, string> & Schema.Present & Schema.Required;
165
+ mime_type: Schema<string, string>;
166
+ file_name: Schema<string, string>;
167
+ size: Schema<number, number>;
168
+ }>, Schema.RecordTypes<{
169
+ kind: Schema;
170
+ value: Schema<string, string> & Schema.Present & Schema.Required;
171
+ mime_type: Schema<string, string>;
172
+ file_name: Schema<string, string>;
173
+ size: Schema<number, number>;
174
+ }>> & {
175
+ readonly output?: Schema.RecordTypes<{
176
+ kind: Schema;
177
+ value: Schema<string, string> & Schema.Present & Schema.Required;
178
+ mime_type: Schema<string, string>;
179
+ file_name: Schema<string, string>;
180
+ size: Schema<number, number>;
181
+ }> | undefined;
182
+ } & Schema.Present & Schema.Required;
183
+ alt: Schema<string, string>;
184
+ }> | undefined;
185
+ } & Schema.Present & Schema.Required;
186
+ platform: Schema<Record<string, any>, Record<string, any>>;
187
+ }>, Schema.RecordTypes<{
188
+ type: Schema<"image", "image"> & Schema.Present;
189
+ data: Schema<Schema.InputRecord<{
190
+ media: Schema<Schema.InputRecord<{
191
+ kind: Schema;
192
+ value: Schema<string, string> & Schema.Present & Schema.Required;
193
+ mime_type: Schema<string, string>;
194
+ file_name: Schema<string, string>;
195
+ size: Schema<number, number>;
196
+ }>, Schema.RecordTypes<{
197
+ kind: Schema;
198
+ value: Schema<string, string> & Schema.Present & Schema.Required;
199
+ mime_type: Schema<string, string>;
200
+ file_name: Schema<string, string>;
201
+ size: Schema<number, number>;
202
+ }>> & {
203
+ readonly output?: Schema.RecordTypes<{
204
+ kind: Schema;
205
+ value: Schema<string, string> & Schema.Present & Schema.Required;
206
+ mime_type: Schema<string, string>;
207
+ file_name: Schema<string, string>;
208
+ size: Schema<number, number>;
209
+ }> | undefined;
210
+ } & Schema.Present & Schema.Required;
211
+ alt: Schema<string, string>;
212
+ }>, Schema.RecordTypes<{
213
+ media: Schema<Schema.InputRecord<{
214
+ kind: Schema;
215
+ value: Schema<string, string> & Schema.Present & Schema.Required;
216
+ mime_type: Schema<string, string>;
217
+ file_name: Schema<string, string>;
218
+ size: Schema<number, number>;
219
+ }>, Schema.RecordTypes<{
220
+ kind: Schema;
221
+ value: Schema<string, string> & Schema.Present & Schema.Required;
222
+ mime_type: Schema<string, string>;
223
+ file_name: Schema<string, string>;
224
+ size: Schema<number, number>;
225
+ }>> & {
226
+ readonly output?: Schema.RecordTypes<{
227
+ kind: Schema;
228
+ value: Schema<string, string> & Schema.Present & Schema.Required;
229
+ mime_type: Schema<string, string>;
230
+ file_name: Schema<string, string>;
231
+ size: Schema<number, number>;
232
+ }> | undefined;
233
+ } & Schema.Present & Schema.Required;
234
+ alt: Schema<string, string>;
235
+ }>> & {
236
+ readonly output?: Schema.RecordTypes<{
237
+ media: Schema<Schema.InputRecord<{
238
+ kind: Schema;
239
+ value: Schema<string, string> & Schema.Present & Schema.Required;
240
+ mime_type: Schema<string, string>;
241
+ file_name: Schema<string, string>;
242
+ size: Schema<number, number>;
243
+ }>, Schema.RecordTypes<{
244
+ kind: Schema;
245
+ value: Schema<string, string> & Schema.Present & Schema.Required;
246
+ mime_type: Schema<string, string>;
247
+ file_name: Schema<string, string>;
248
+ size: Schema<number, number>;
249
+ }>> & {
250
+ readonly output?: Schema.RecordTypes<{
251
+ kind: Schema;
252
+ value: Schema<string, string> & Schema.Present & Schema.Required;
253
+ mime_type: Schema<string, string>;
254
+ file_name: Schema<string, string>;
255
+ size: Schema<number, number>;
256
+ }> | undefined;
257
+ } & Schema.Present & Schema.Required;
258
+ alt: Schema<string, string>;
259
+ }> | undefined;
260
+ } & Schema.Present & Schema.Required;
261
+ platform: Schema<Record<string, any>, Record<string, any>>;
262
+ }>> & {
263
+ readonly output?: Schema.RecordTypes<{
264
+ type: Schema<"image", "image"> & Schema.Present;
265
+ data: Schema<Schema.InputRecord<{
266
+ media: Schema<Schema.InputRecord<{
267
+ kind: Schema;
268
+ value: Schema<string, string> & Schema.Present & Schema.Required;
269
+ mime_type: Schema<string, string>;
270
+ file_name: Schema<string, string>;
271
+ size: Schema<number, number>;
272
+ }>, Schema.RecordTypes<{
273
+ kind: Schema;
274
+ value: Schema<string, string> & Schema.Present & Schema.Required;
275
+ mime_type: Schema<string, string>;
276
+ file_name: Schema<string, string>;
277
+ size: Schema<number, number>;
278
+ }>> & {
279
+ readonly output?: Schema.RecordTypes<{
280
+ kind: Schema;
281
+ value: Schema<string, string> & Schema.Present & Schema.Required;
282
+ mime_type: Schema<string, string>;
283
+ file_name: Schema<string, string>;
284
+ size: Schema<number, number>;
285
+ }> | undefined;
286
+ } & Schema.Present & Schema.Required;
287
+ alt: Schema<string, string>;
288
+ }>, Schema.RecordTypes<{
289
+ media: Schema<Schema.InputRecord<{
290
+ kind: Schema;
291
+ value: Schema<string, string> & Schema.Present & Schema.Required;
292
+ mime_type: Schema<string, string>;
293
+ file_name: Schema<string, string>;
294
+ size: Schema<number, number>;
295
+ }>, Schema.RecordTypes<{
296
+ kind: Schema;
297
+ value: Schema<string, string> & Schema.Present & Schema.Required;
298
+ mime_type: Schema<string, string>;
299
+ file_name: Schema<string, string>;
300
+ size: Schema<number, number>;
301
+ }>> & {
302
+ readonly output?: Schema.RecordTypes<{
303
+ kind: Schema;
304
+ value: Schema<string, string> & Schema.Present & Schema.Required;
305
+ mime_type: Schema<string, string>;
306
+ file_name: Schema<string, string>;
307
+ size: Schema<number, number>;
308
+ }> | undefined;
309
+ } & Schema.Present & Schema.Required;
310
+ alt: Schema<string, string>;
311
+ }>> & {
312
+ readonly output?: Schema.RecordTypes<{
313
+ media: Schema<Schema.InputRecord<{
314
+ kind: Schema;
315
+ value: Schema<string, string> & Schema.Present & Schema.Required;
316
+ mime_type: Schema<string, string>;
317
+ file_name: Schema<string, string>;
318
+ size: Schema<number, number>;
319
+ }>, Schema.RecordTypes<{
320
+ kind: Schema;
321
+ value: Schema<string, string> & Schema.Present & Schema.Required;
322
+ mime_type: Schema<string, string>;
323
+ file_name: Schema<string, string>;
324
+ size: Schema<number, number>;
325
+ }>> & {
326
+ readonly output?: Schema.RecordTypes<{
327
+ kind: Schema;
328
+ value: Schema<string, string> & Schema.Present & Schema.Required;
329
+ mime_type: Schema<string, string>;
330
+ file_name: Schema<string, string>;
331
+ size: Schema<number, number>;
332
+ }> | undefined;
333
+ } & Schema.Present & Schema.Required;
334
+ alt: Schema<string, string>;
335
+ }> | undefined;
336
+ } & Schema.Present & Schema.Required;
337
+ platform: Schema<Record<string, any>, Record<string, any>>;
338
+ }> | undefined;
339
+ };
340
+ export declare const audioSegmentSchema: Schema<Schema.InputRecord<{
341
+ type: Schema<"audio", "audio"> & Schema.Present;
342
+ data: Schema<Schema.InputRecord<{
343
+ media: Schema<Schema.InputRecord<{
344
+ kind: Schema;
345
+ value: Schema<string, string> & Schema.Present & Schema.Required;
346
+ mime_type: Schema<string, string>;
347
+ file_name: Schema<string, string>;
348
+ size: Schema<number, number>;
349
+ }>, Schema.RecordTypes<{
350
+ kind: Schema;
351
+ value: Schema<string, string> & Schema.Present & Schema.Required;
352
+ mime_type: Schema<string, string>;
353
+ file_name: Schema<string, string>;
354
+ size: Schema<number, number>;
355
+ }>> & {
356
+ readonly output?: Schema.RecordTypes<{
357
+ kind: Schema;
358
+ value: Schema<string, string> & Schema.Present & Schema.Required;
359
+ mime_type: Schema<string, string>;
360
+ file_name: Schema<string, string>;
361
+ size: Schema<number, number>;
362
+ }> | undefined;
363
+ } & Schema.Present & Schema.Required;
364
+ duration: Schema<number, number>;
365
+ }>, Schema.RecordTypes<{
366
+ media: Schema<Schema.InputRecord<{
367
+ kind: Schema;
368
+ value: Schema<string, string> & Schema.Present & Schema.Required;
369
+ mime_type: Schema<string, string>;
370
+ file_name: Schema<string, string>;
371
+ size: Schema<number, number>;
372
+ }>, Schema.RecordTypes<{
373
+ kind: Schema;
374
+ value: Schema<string, string> & Schema.Present & Schema.Required;
375
+ mime_type: Schema<string, string>;
376
+ file_name: Schema<string, string>;
377
+ size: Schema<number, number>;
378
+ }>> & {
379
+ readonly output?: Schema.RecordTypes<{
380
+ kind: Schema;
381
+ value: Schema<string, string> & Schema.Present & Schema.Required;
382
+ mime_type: Schema<string, string>;
383
+ file_name: Schema<string, string>;
384
+ size: Schema<number, number>;
385
+ }> | undefined;
386
+ } & Schema.Present & Schema.Required;
387
+ duration: Schema<number, number>;
388
+ }>> & {
389
+ readonly output?: Schema.RecordTypes<{
390
+ media: Schema<Schema.InputRecord<{
391
+ kind: Schema;
392
+ value: Schema<string, string> & Schema.Present & Schema.Required;
393
+ mime_type: Schema<string, string>;
394
+ file_name: Schema<string, string>;
395
+ size: Schema<number, number>;
396
+ }>, Schema.RecordTypes<{
397
+ kind: Schema;
398
+ value: Schema<string, string> & Schema.Present & Schema.Required;
399
+ mime_type: Schema<string, string>;
400
+ file_name: Schema<string, string>;
401
+ size: Schema<number, number>;
402
+ }>> & {
403
+ readonly output?: Schema.RecordTypes<{
404
+ kind: Schema;
405
+ value: Schema<string, string> & Schema.Present & Schema.Required;
406
+ mime_type: Schema<string, string>;
407
+ file_name: Schema<string, string>;
408
+ size: Schema<number, number>;
409
+ }> | undefined;
410
+ } & Schema.Present & Schema.Required;
411
+ duration: Schema<number, number>;
412
+ }> | undefined;
413
+ } & Schema.Present & Schema.Required;
414
+ platform: Schema<Record<string, any>, Record<string, any>>;
415
+ }>, Schema.RecordTypes<{
416
+ type: Schema<"audio", "audio"> & Schema.Present;
417
+ data: Schema<Schema.InputRecord<{
418
+ media: Schema<Schema.InputRecord<{
419
+ kind: Schema;
420
+ value: Schema<string, string> & Schema.Present & Schema.Required;
421
+ mime_type: Schema<string, string>;
422
+ file_name: Schema<string, string>;
423
+ size: Schema<number, number>;
424
+ }>, Schema.RecordTypes<{
425
+ kind: Schema;
426
+ value: Schema<string, string> & Schema.Present & Schema.Required;
427
+ mime_type: Schema<string, string>;
428
+ file_name: Schema<string, string>;
429
+ size: Schema<number, number>;
430
+ }>> & {
431
+ readonly output?: Schema.RecordTypes<{
432
+ kind: Schema;
433
+ value: Schema<string, string> & Schema.Present & Schema.Required;
434
+ mime_type: Schema<string, string>;
435
+ file_name: Schema<string, string>;
436
+ size: Schema<number, number>;
437
+ }> | undefined;
438
+ } & Schema.Present & Schema.Required;
439
+ duration: Schema<number, number>;
440
+ }>, Schema.RecordTypes<{
441
+ media: Schema<Schema.InputRecord<{
442
+ kind: Schema;
443
+ value: Schema<string, string> & Schema.Present & Schema.Required;
444
+ mime_type: Schema<string, string>;
445
+ file_name: Schema<string, string>;
446
+ size: Schema<number, number>;
447
+ }>, Schema.RecordTypes<{
448
+ kind: Schema;
449
+ value: Schema<string, string> & Schema.Present & Schema.Required;
450
+ mime_type: Schema<string, string>;
451
+ file_name: Schema<string, string>;
452
+ size: Schema<number, number>;
453
+ }>> & {
454
+ readonly output?: Schema.RecordTypes<{
455
+ kind: Schema;
456
+ value: Schema<string, string> & Schema.Present & Schema.Required;
457
+ mime_type: Schema<string, string>;
458
+ file_name: Schema<string, string>;
459
+ size: Schema<number, number>;
460
+ }> | undefined;
461
+ } & Schema.Present & Schema.Required;
462
+ duration: Schema<number, number>;
463
+ }>> & {
464
+ readonly output?: Schema.RecordTypes<{
465
+ media: Schema<Schema.InputRecord<{
466
+ kind: Schema;
467
+ value: Schema<string, string> & Schema.Present & Schema.Required;
468
+ mime_type: Schema<string, string>;
469
+ file_name: Schema<string, string>;
470
+ size: Schema<number, number>;
471
+ }>, Schema.RecordTypes<{
472
+ kind: Schema;
473
+ value: Schema<string, string> & Schema.Present & Schema.Required;
474
+ mime_type: Schema<string, string>;
475
+ file_name: Schema<string, string>;
476
+ size: Schema<number, number>;
477
+ }>> & {
478
+ readonly output?: Schema.RecordTypes<{
479
+ kind: Schema;
480
+ value: Schema<string, string> & Schema.Present & Schema.Required;
481
+ mime_type: Schema<string, string>;
482
+ file_name: Schema<string, string>;
483
+ size: Schema<number, number>;
484
+ }> | undefined;
485
+ } & Schema.Present & Schema.Required;
486
+ duration: Schema<number, number>;
487
+ }> | undefined;
488
+ } & Schema.Present & Schema.Required;
489
+ platform: Schema<Record<string, any>, Record<string, any>>;
490
+ }>> & {
491
+ readonly output?: Schema.RecordTypes<{
492
+ type: Schema<"audio", "audio"> & Schema.Present;
493
+ data: Schema<Schema.InputRecord<{
494
+ media: Schema<Schema.InputRecord<{
495
+ kind: Schema;
496
+ value: Schema<string, string> & Schema.Present & Schema.Required;
497
+ mime_type: Schema<string, string>;
498
+ file_name: Schema<string, string>;
499
+ size: Schema<number, number>;
500
+ }>, Schema.RecordTypes<{
501
+ kind: Schema;
502
+ value: Schema<string, string> & Schema.Present & Schema.Required;
503
+ mime_type: Schema<string, string>;
504
+ file_name: Schema<string, string>;
505
+ size: Schema<number, number>;
506
+ }>> & {
507
+ readonly output?: Schema.RecordTypes<{
508
+ kind: Schema;
509
+ value: Schema<string, string> & Schema.Present & Schema.Required;
510
+ mime_type: Schema<string, string>;
511
+ file_name: Schema<string, string>;
512
+ size: Schema<number, number>;
513
+ }> | undefined;
514
+ } & Schema.Present & Schema.Required;
515
+ duration: Schema<number, number>;
516
+ }>, Schema.RecordTypes<{
517
+ media: Schema<Schema.InputRecord<{
518
+ kind: Schema;
519
+ value: Schema<string, string> & Schema.Present & Schema.Required;
520
+ mime_type: Schema<string, string>;
521
+ file_name: Schema<string, string>;
522
+ size: Schema<number, number>;
523
+ }>, Schema.RecordTypes<{
524
+ kind: Schema;
525
+ value: Schema<string, string> & Schema.Present & Schema.Required;
526
+ mime_type: Schema<string, string>;
527
+ file_name: Schema<string, string>;
528
+ size: Schema<number, number>;
529
+ }>> & {
530
+ readonly output?: Schema.RecordTypes<{
531
+ kind: Schema;
532
+ value: Schema<string, string> & Schema.Present & Schema.Required;
533
+ mime_type: Schema<string, string>;
534
+ file_name: Schema<string, string>;
535
+ size: Schema<number, number>;
536
+ }> | undefined;
537
+ } & Schema.Present & Schema.Required;
538
+ duration: Schema<number, number>;
539
+ }>> & {
540
+ readonly output?: Schema.RecordTypes<{
541
+ media: Schema<Schema.InputRecord<{
542
+ kind: Schema;
543
+ value: Schema<string, string> & Schema.Present & Schema.Required;
544
+ mime_type: Schema<string, string>;
545
+ file_name: Schema<string, string>;
546
+ size: Schema<number, number>;
547
+ }>, Schema.RecordTypes<{
548
+ kind: Schema;
549
+ value: Schema<string, string> & Schema.Present & Schema.Required;
550
+ mime_type: Schema<string, string>;
551
+ file_name: Schema<string, string>;
552
+ size: Schema<number, number>;
553
+ }>> & {
554
+ readonly output?: Schema.RecordTypes<{
555
+ kind: Schema;
556
+ value: Schema<string, string> & Schema.Present & Schema.Required;
557
+ mime_type: Schema<string, string>;
558
+ file_name: Schema<string, string>;
559
+ size: Schema<number, number>;
560
+ }> | undefined;
561
+ } & Schema.Present & Schema.Required;
562
+ duration: Schema<number, number>;
563
+ }> | undefined;
564
+ } & Schema.Present & Schema.Required;
565
+ platform: Schema<Record<string, any>, Record<string, any>>;
566
+ }> | undefined;
567
+ };
568
+ export declare const videoSegmentSchema: Schema<Schema.InputRecord<{
569
+ type: Schema<"video", "video"> & Schema.Present;
570
+ data: Schema<Schema.InputRecord<{
571
+ media: Schema<Schema.InputRecord<{
572
+ kind: Schema;
573
+ value: Schema<string, string> & Schema.Present & Schema.Required;
574
+ mime_type: Schema<string, string>;
575
+ file_name: Schema<string, string>;
576
+ size: Schema<number, number>;
577
+ }>, Schema.RecordTypes<{
578
+ kind: Schema;
579
+ value: Schema<string, string> & Schema.Present & Schema.Required;
580
+ mime_type: Schema<string, string>;
581
+ file_name: Schema<string, string>;
582
+ size: Schema<number, number>;
583
+ }>> & {
584
+ readonly output?: Schema.RecordTypes<{
585
+ kind: Schema;
586
+ value: Schema<string, string> & Schema.Present & Schema.Required;
587
+ mime_type: Schema<string, string>;
588
+ file_name: Schema<string, string>;
589
+ size: Schema<number, number>;
590
+ }> | undefined;
591
+ } & Schema.Present & Schema.Required;
592
+ duration: Schema<number, number>;
593
+ alt: Schema<string, string>;
594
+ }>, Schema.RecordTypes<{
595
+ media: Schema<Schema.InputRecord<{
596
+ kind: Schema;
597
+ value: Schema<string, string> & Schema.Present & Schema.Required;
598
+ mime_type: Schema<string, string>;
599
+ file_name: Schema<string, string>;
600
+ size: Schema<number, number>;
601
+ }>, Schema.RecordTypes<{
602
+ kind: Schema;
603
+ value: Schema<string, string> & Schema.Present & Schema.Required;
604
+ mime_type: Schema<string, string>;
605
+ file_name: Schema<string, string>;
606
+ size: Schema<number, number>;
607
+ }>> & {
608
+ readonly output?: Schema.RecordTypes<{
609
+ kind: Schema;
610
+ value: Schema<string, string> & Schema.Present & Schema.Required;
611
+ mime_type: Schema<string, string>;
612
+ file_name: Schema<string, string>;
613
+ size: Schema<number, number>;
614
+ }> | undefined;
615
+ } & Schema.Present & Schema.Required;
616
+ duration: Schema<number, number>;
617
+ alt: Schema<string, string>;
618
+ }>> & {
619
+ readonly output?: Schema.RecordTypes<{
620
+ media: Schema<Schema.InputRecord<{
621
+ kind: Schema;
622
+ value: Schema<string, string> & Schema.Present & Schema.Required;
623
+ mime_type: Schema<string, string>;
624
+ file_name: Schema<string, string>;
625
+ size: Schema<number, number>;
626
+ }>, Schema.RecordTypes<{
627
+ kind: Schema;
628
+ value: Schema<string, string> & Schema.Present & Schema.Required;
629
+ mime_type: Schema<string, string>;
630
+ file_name: Schema<string, string>;
631
+ size: Schema<number, number>;
632
+ }>> & {
633
+ readonly output?: Schema.RecordTypes<{
634
+ kind: Schema;
635
+ value: Schema<string, string> & Schema.Present & Schema.Required;
636
+ mime_type: Schema<string, string>;
637
+ file_name: Schema<string, string>;
638
+ size: Schema<number, number>;
639
+ }> | undefined;
640
+ } & Schema.Present & Schema.Required;
641
+ duration: Schema<number, number>;
642
+ alt: Schema<string, string>;
643
+ }> | undefined;
644
+ } & Schema.Present & Schema.Required;
645
+ platform: Schema<Record<string, any>, Record<string, any>>;
646
+ }>, Schema.RecordTypes<{
647
+ type: Schema<"video", "video"> & Schema.Present;
648
+ data: Schema<Schema.InputRecord<{
649
+ media: Schema<Schema.InputRecord<{
650
+ kind: Schema;
651
+ value: Schema<string, string> & Schema.Present & Schema.Required;
652
+ mime_type: Schema<string, string>;
653
+ file_name: Schema<string, string>;
654
+ size: Schema<number, number>;
655
+ }>, Schema.RecordTypes<{
656
+ kind: Schema;
657
+ value: Schema<string, string> & Schema.Present & Schema.Required;
658
+ mime_type: Schema<string, string>;
659
+ file_name: Schema<string, string>;
660
+ size: Schema<number, number>;
661
+ }>> & {
662
+ readonly output?: Schema.RecordTypes<{
663
+ kind: Schema;
664
+ value: Schema<string, string> & Schema.Present & Schema.Required;
665
+ mime_type: Schema<string, string>;
666
+ file_name: Schema<string, string>;
667
+ size: Schema<number, number>;
668
+ }> | undefined;
669
+ } & Schema.Present & Schema.Required;
670
+ duration: Schema<number, number>;
671
+ alt: Schema<string, string>;
672
+ }>, Schema.RecordTypes<{
673
+ media: Schema<Schema.InputRecord<{
674
+ kind: Schema;
675
+ value: Schema<string, string> & Schema.Present & Schema.Required;
676
+ mime_type: Schema<string, string>;
677
+ file_name: Schema<string, string>;
678
+ size: Schema<number, number>;
679
+ }>, Schema.RecordTypes<{
680
+ kind: Schema;
681
+ value: Schema<string, string> & Schema.Present & Schema.Required;
682
+ mime_type: Schema<string, string>;
683
+ file_name: Schema<string, string>;
684
+ size: Schema<number, number>;
685
+ }>> & {
686
+ readonly output?: Schema.RecordTypes<{
687
+ kind: Schema;
688
+ value: Schema<string, string> & Schema.Present & Schema.Required;
689
+ mime_type: Schema<string, string>;
690
+ file_name: Schema<string, string>;
691
+ size: Schema<number, number>;
692
+ }> | undefined;
693
+ } & Schema.Present & Schema.Required;
694
+ duration: Schema<number, number>;
695
+ alt: Schema<string, string>;
696
+ }>> & {
697
+ readonly output?: Schema.RecordTypes<{
698
+ media: Schema<Schema.InputRecord<{
699
+ kind: Schema;
700
+ value: Schema<string, string> & Schema.Present & Schema.Required;
701
+ mime_type: Schema<string, string>;
702
+ file_name: Schema<string, string>;
703
+ size: Schema<number, number>;
704
+ }>, Schema.RecordTypes<{
705
+ kind: Schema;
706
+ value: Schema<string, string> & Schema.Present & Schema.Required;
707
+ mime_type: Schema<string, string>;
708
+ file_name: Schema<string, string>;
709
+ size: Schema<number, number>;
710
+ }>> & {
711
+ readonly output?: Schema.RecordTypes<{
712
+ kind: Schema;
713
+ value: Schema<string, string> & Schema.Present & Schema.Required;
714
+ mime_type: Schema<string, string>;
715
+ file_name: Schema<string, string>;
716
+ size: Schema<number, number>;
717
+ }> | undefined;
718
+ } & Schema.Present & Schema.Required;
719
+ duration: Schema<number, number>;
720
+ alt: Schema<string, string>;
721
+ }> | undefined;
722
+ } & Schema.Present & Schema.Required;
723
+ platform: Schema<Record<string, any>, Record<string, any>>;
724
+ }>> & {
725
+ readonly output?: Schema.RecordTypes<{
726
+ type: Schema<"video", "video"> & Schema.Present;
727
+ data: Schema<Schema.InputRecord<{
728
+ media: Schema<Schema.InputRecord<{
729
+ kind: Schema;
730
+ value: Schema<string, string> & Schema.Present & Schema.Required;
731
+ mime_type: Schema<string, string>;
732
+ file_name: Schema<string, string>;
733
+ size: Schema<number, number>;
734
+ }>, Schema.RecordTypes<{
735
+ kind: Schema;
736
+ value: Schema<string, string> & Schema.Present & Schema.Required;
737
+ mime_type: Schema<string, string>;
738
+ file_name: Schema<string, string>;
739
+ size: Schema<number, number>;
740
+ }>> & {
741
+ readonly output?: Schema.RecordTypes<{
742
+ kind: Schema;
743
+ value: Schema<string, string> & Schema.Present & Schema.Required;
744
+ mime_type: Schema<string, string>;
745
+ file_name: Schema<string, string>;
746
+ size: Schema<number, number>;
747
+ }> | undefined;
748
+ } & Schema.Present & Schema.Required;
749
+ duration: Schema<number, number>;
750
+ alt: Schema<string, string>;
751
+ }>, Schema.RecordTypes<{
752
+ media: Schema<Schema.InputRecord<{
753
+ kind: Schema;
754
+ value: Schema<string, string> & Schema.Present & Schema.Required;
755
+ mime_type: Schema<string, string>;
756
+ file_name: Schema<string, string>;
757
+ size: Schema<number, number>;
758
+ }>, Schema.RecordTypes<{
759
+ kind: Schema;
760
+ value: Schema<string, string> & Schema.Present & Schema.Required;
761
+ mime_type: Schema<string, string>;
762
+ file_name: Schema<string, string>;
763
+ size: Schema<number, number>;
764
+ }>> & {
765
+ readonly output?: Schema.RecordTypes<{
766
+ kind: Schema;
767
+ value: Schema<string, string> & Schema.Present & Schema.Required;
768
+ mime_type: Schema<string, string>;
769
+ file_name: Schema<string, string>;
770
+ size: Schema<number, number>;
771
+ }> | undefined;
772
+ } & Schema.Present & Schema.Required;
773
+ duration: Schema<number, number>;
774
+ alt: Schema<string, string>;
775
+ }>> & {
776
+ readonly output?: Schema.RecordTypes<{
777
+ media: Schema<Schema.InputRecord<{
778
+ kind: Schema;
779
+ value: Schema<string, string> & Schema.Present & Schema.Required;
780
+ mime_type: Schema<string, string>;
781
+ file_name: Schema<string, string>;
782
+ size: Schema<number, number>;
783
+ }>, Schema.RecordTypes<{
784
+ kind: Schema;
785
+ value: Schema<string, string> & Schema.Present & Schema.Required;
786
+ mime_type: Schema<string, string>;
787
+ file_name: Schema<string, string>;
788
+ size: Schema<number, number>;
789
+ }>> & {
790
+ readonly output?: Schema.RecordTypes<{
791
+ kind: Schema;
792
+ value: Schema<string, string> & Schema.Present & Schema.Required;
793
+ mime_type: Schema<string, string>;
794
+ file_name: Schema<string, string>;
795
+ size: Schema<number, number>;
796
+ }> | undefined;
797
+ } & Schema.Present & Schema.Required;
798
+ duration: Schema<number, number>;
799
+ alt: Schema<string, string>;
800
+ }> | undefined;
801
+ } & Schema.Present & Schema.Required;
802
+ platform: Schema<Record<string, any>, Record<string, any>>;
803
+ }> | undefined;
804
+ };
805
+ export declare const fileSegmentSchema: Schema<Schema.InputRecord<{
806
+ type: Schema<"file", "file"> & Schema.Present;
807
+ data: Schema<Schema.InputRecord<{
808
+ media: Schema<Schema.InputRecord<{
809
+ kind: Schema;
810
+ value: Schema<string, string> & Schema.Present & Schema.Required;
811
+ mime_type: Schema<string, string>;
812
+ file_name: Schema<string, string>;
813
+ size: Schema<number, number>;
814
+ }>, Schema.RecordTypes<{
815
+ kind: Schema;
816
+ value: Schema<string, string> & Schema.Present & Schema.Required;
817
+ mime_type: Schema<string, string>;
818
+ file_name: Schema<string, string>;
819
+ size: Schema<number, number>;
820
+ }>> & {
821
+ readonly output?: Schema.RecordTypes<{
822
+ kind: Schema;
823
+ value: Schema<string, string> & Schema.Present & Schema.Required;
824
+ mime_type: Schema<string, string>;
825
+ file_name: Schema<string, string>;
826
+ size: Schema<number, number>;
827
+ }> | undefined;
828
+ } & Schema.Present & Schema.Required;
829
+ name: Schema<string, string>;
830
+ }>, Schema.RecordTypes<{
831
+ media: Schema<Schema.InputRecord<{
832
+ kind: Schema;
833
+ value: Schema<string, string> & Schema.Present & Schema.Required;
834
+ mime_type: Schema<string, string>;
835
+ file_name: Schema<string, string>;
836
+ size: Schema<number, number>;
837
+ }>, Schema.RecordTypes<{
838
+ kind: Schema;
839
+ value: Schema<string, string> & Schema.Present & Schema.Required;
840
+ mime_type: Schema<string, string>;
841
+ file_name: Schema<string, string>;
842
+ size: Schema<number, number>;
843
+ }>> & {
844
+ readonly output?: Schema.RecordTypes<{
845
+ kind: Schema;
846
+ value: Schema<string, string> & Schema.Present & Schema.Required;
847
+ mime_type: Schema<string, string>;
848
+ file_name: Schema<string, string>;
849
+ size: Schema<number, number>;
850
+ }> | undefined;
851
+ } & Schema.Present & Schema.Required;
852
+ name: Schema<string, string>;
853
+ }>> & {
854
+ readonly output?: Schema.RecordTypes<{
855
+ media: Schema<Schema.InputRecord<{
856
+ kind: Schema;
857
+ value: Schema<string, string> & Schema.Present & Schema.Required;
858
+ mime_type: Schema<string, string>;
859
+ file_name: Schema<string, string>;
860
+ size: Schema<number, number>;
861
+ }>, Schema.RecordTypes<{
862
+ kind: Schema;
863
+ value: Schema<string, string> & Schema.Present & Schema.Required;
864
+ mime_type: Schema<string, string>;
865
+ file_name: Schema<string, string>;
866
+ size: Schema<number, number>;
867
+ }>> & {
868
+ readonly output?: Schema.RecordTypes<{
869
+ kind: Schema;
870
+ value: Schema<string, string> & Schema.Present & Schema.Required;
871
+ mime_type: Schema<string, string>;
872
+ file_name: Schema<string, string>;
873
+ size: Schema<number, number>;
874
+ }> | undefined;
875
+ } & Schema.Present & Schema.Required;
876
+ name: Schema<string, string>;
877
+ }> | undefined;
878
+ } & Schema.Present & Schema.Required;
879
+ platform: Schema<Record<string, any>, Record<string, any>>;
880
+ }>, Schema.RecordTypes<{
881
+ type: Schema<"file", "file"> & Schema.Present;
882
+ data: Schema<Schema.InputRecord<{
883
+ media: Schema<Schema.InputRecord<{
884
+ kind: Schema;
885
+ value: Schema<string, string> & Schema.Present & Schema.Required;
886
+ mime_type: Schema<string, string>;
887
+ file_name: Schema<string, string>;
888
+ size: Schema<number, number>;
889
+ }>, Schema.RecordTypes<{
890
+ kind: Schema;
891
+ value: Schema<string, string> & Schema.Present & Schema.Required;
892
+ mime_type: Schema<string, string>;
893
+ file_name: Schema<string, string>;
894
+ size: Schema<number, number>;
895
+ }>> & {
896
+ readonly output?: Schema.RecordTypes<{
897
+ kind: Schema;
898
+ value: Schema<string, string> & Schema.Present & Schema.Required;
899
+ mime_type: Schema<string, string>;
900
+ file_name: Schema<string, string>;
901
+ size: Schema<number, number>;
902
+ }> | undefined;
903
+ } & Schema.Present & Schema.Required;
904
+ name: Schema<string, string>;
905
+ }>, Schema.RecordTypes<{
906
+ media: Schema<Schema.InputRecord<{
907
+ kind: Schema;
908
+ value: Schema<string, string> & Schema.Present & Schema.Required;
909
+ mime_type: Schema<string, string>;
910
+ file_name: Schema<string, string>;
911
+ size: Schema<number, number>;
912
+ }>, Schema.RecordTypes<{
913
+ kind: Schema;
914
+ value: Schema<string, string> & Schema.Present & Schema.Required;
915
+ mime_type: Schema<string, string>;
916
+ file_name: Schema<string, string>;
917
+ size: Schema<number, number>;
918
+ }>> & {
919
+ readonly output?: Schema.RecordTypes<{
920
+ kind: Schema;
921
+ value: Schema<string, string> & Schema.Present & Schema.Required;
922
+ mime_type: Schema<string, string>;
923
+ file_name: Schema<string, string>;
924
+ size: Schema<number, number>;
925
+ }> | undefined;
926
+ } & Schema.Present & Schema.Required;
927
+ name: Schema<string, string>;
928
+ }>> & {
929
+ readonly output?: Schema.RecordTypes<{
930
+ media: Schema<Schema.InputRecord<{
931
+ kind: Schema;
932
+ value: Schema<string, string> & Schema.Present & Schema.Required;
933
+ mime_type: Schema<string, string>;
934
+ file_name: Schema<string, string>;
935
+ size: Schema<number, number>;
936
+ }>, Schema.RecordTypes<{
937
+ kind: Schema;
938
+ value: Schema<string, string> & Schema.Present & Schema.Required;
939
+ mime_type: Schema<string, string>;
940
+ file_name: Schema<string, string>;
941
+ size: Schema<number, number>;
942
+ }>> & {
943
+ readonly output?: Schema.RecordTypes<{
944
+ kind: Schema;
945
+ value: Schema<string, string> & Schema.Present & Schema.Required;
946
+ mime_type: Schema<string, string>;
947
+ file_name: Schema<string, string>;
948
+ size: Schema<number, number>;
949
+ }> | undefined;
950
+ } & Schema.Present & Schema.Required;
951
+ name: Schema<string, string>;
952
+ }> | undefined;
953
+ } & Schema.Present & Schema.Required;
954
+ platform: Schema<Record<string, any>, Record<string, any>>;
955
+ }>> & {
956
+ readonly output?: Schema.RecordTypes<{
957
+ type: Schema<"file", "file"> & Schema.Present;
958
+ data: Schema<Schema.InputRecord<{
959
+ media: Schema<Schema.InputRecord<{
960
+ kind: Schema;
961
+ value: Schema<string, string> & Schema.Present & Schema.Required;
962
+ mime_type: Schema<string, string>;
963
+ file_name: Schema<string, string>;
964
+ size: Schema<number, number>;
965
+ }>, Schema.RecordTypes<{
966
+ kind: Schema;
967
+ value: Schema<string, string> & Schema.Present & Schema.Required;
968
+ mime_type: Schema<string, string>;
969
+ file_name: Schema<string, string>;
970
+ size: Schema<number, number>;
971
+ }>> & {
972
+ readonly output?: Schema.RecordTypes<{
973
+ kind: Schema;
974
+ value: Schema<string, string> & Schema.Present & Schema.Required;
975
+ mime_type: Schema<string, string>;
976
+ file_name: Schema<string, string>;
977
+ size: Schema<number, number>;
978
+ }> | undefined;
979
+ } & Schema.Present & Schema.Required;
980
+ name: Schema<string, string>;
981
+ }>, Schema.RecordTypes<{
982
+ media: Schema<Schema.InputRecord<{
983
+ kind: Schema;
984
+ value: Schema<string, string> & Schema.Present & Schema.Required;
985
+ mime_type: Schema<string, string>;
986
+ file_name: Schema<string, string>;
987
+ size: Schema<number, number>;
988
+ }>, Schema.RecordTypes<{
989
+ kind: Schema;
990
+ value: Schema<string, string> & Schema.Present & Schema.Required;
991
+ mime_type: Schema<string, string>;
992
+ file_name: Schema<string, string>;
993
+ size: Schema<number, number>;
994
+ }>> & {
995
+ readonly output?: Schema.RecordTypes<{
996
+ kind: Schema;
997
+ value: Schema<string, string> & Schema.Present & Schema.Required;
998
+ mime_type: Schema<string, string>;
999
+ file_name: Schema<string, string>;
1000
+ size: Schema<number, number>;
1001
+ }> | undefined;
1002
+ } & Schema.Present & Schema.Required;
1003
+ name: Schema<string, string>;
1004
+ }>> & {
1005
+ readonly output?: Schema.RecordTypes<{
1006
+ media: Schema<Schema.InputRecord<{
1007
+ kind: Schema;
1008
+ value: Schema<string, string> & Schema.Present & Schema.Required;
1009
+ mime_type: Schema<string, string>;
1010
+ file_name: Schema<string, string>;
1011
+ size: Schema<number, number>;
1012
+ }>, Schema.RecordTypes<{
1013
+ kind: Schema;
1014
+ value: Schema<string, string> & Schema.Present & Schema.Required;
1015
+ mime_type: Schema<string, string>;
1016
+ file_name: Schema<string, string>;
1017
+ size: Schema<number, number>;
1018
+ }>> & {
1019
+ readonly output?: Schema.RecordTypes<{
1020
+ kind: Schema;
1021
+ value: Schema<string, string> & Schema.Present & Schema.Required;
1022
+ mime_type: Schema<string, string>;
1023
+ file_name: Schema<string, string>;
1024
+ size: Schema<number, number>;
1025
+ }> | undefined;
1026
+ } & Schema.Present & Schema.Required;
1027
+ name: Schema<string, string>;
1028
+ }> | undefined;
1029
+ } & Schema.Present & Schema.Required;
1030
+ platform: Schema<Record<string, any>, Record<string, any>>;
1031
+ }> | undefined;
1032
+ };
1033
+ export declare const replySegmentSchema: Schema<Schema.InputRecord<{
1034
+ type: Schema<"reply", "reply"> & Schema.Present;
1035
+ data: Schema<Schema.InputRecord<{
1036
+ message_id: Schema<string, string> & Schema.Present & Schema.Required;
1037
+ }>, Schema.RecordTypes<{
1038
+ message_id: Schema<string, string> & Schema.Present & Schema.Required;
1039
+ }>> & {
1040
+ readonly output?: Schema.RecordTypes<{
1041
+ message_id: Schema<string, string> & Schema.Present & Schema.Required;
1042
+ }> | undefined;
1043
+ } & Schema.Present & Schema.Required;
1044
+ platform: Schema<Record<string, any>, Record<string, any>>;
1045
+ }>, Schema.RecordTypes<{
1046
+ type: Schema<"reply", "reply"> & Schema.Present;
1047
+ data: Schema<Schema.InputRecord<{
1048
+ message_id: Schema<string, string> & Schema.Present & Schema.Required;
1049
+ }>, Schema.RecordTypes<{
1050
+ message_id: Schema<string, string> & Schema.Present & Schema.Required;
1051
+ }>> & {
1052
+ readonly output?: Schema.RecordTypes<{
1053
+ message_id: Schema<string, string> & Schema.Present & Schema.Required;
1054
+ }> | undefined;
1055
+ } & Schema.Present & Schema.Required;
1056
+ platform: Schema<Record<string, any>, Record<string, any>>;
1057
+ }>> & {
1058
+ readonly output?: Schema.RecordTypes<{
1059
+ type: Schema<"reply", "reply"> & Schema.Present;
1060
+ data: Schema<Schema.InputRecord<{
1061
+ message_id: Schema<string, string> & Schema.Present & Schema.Required;
1062
+ }>, Schema.RecordTypes<{
1063
+ message_id: Schema<string, string> & Schema.Present & Schema.Required;
1064
+ }>> & {
1065
+ readonly output?: Schema.RecordTypes<{
1066
+ message_id: Schema<string, string> & Schema.Present & Schema.Required;
1067
+ }> | undefined;
1068
+ } & Schema.Present & Schema.Required;
1069
+ platform: Schema<Record<string, any>, Record<string, any>>;
1070
+ }> | undefined;
1071
+ };
1072
+ export declare const forwardSegmentSchema: Schema<Schema.InputRecord<{
1073
+ type: Schema<"forward", "forward"> & Schema.Present;
1074
+ data: Schema<Schema.InputRecord<{
1075
+ forward_id: Schema<string, string> & Schema.Present & Schema.Required;
1076
+ title: Schema<string, string>;
1077
+ messages: Schema<any[][], any[][]>;
1078
+ }>, Schema.RecordTypes<{
1079
+ forward_id: Schema<string, string> & Schema.Present & Schema.Required;
1080
+ title: Schema<string, string>;
1081
+ messages: Schema<any[][], any[][]>;
1082
+ }>> & {
1083
+ readonly output?: Schema.RecordTypes<{
1084
+ forward_id: Schema<string, string> & Schema.Present & Schema.Required;
1085
+ title: Schema<string, string>;
1086
+ messages: Schema<any[][], any[][]>;
1087
+ }> | undefined;
1088
+ } & Schema.Present & Schema.Required;
1089
+ platform: Schema<Record<string, any>, Record<string, any>>;
1090
+ }>, Schema.RecordTypes<{
1091
+ type: Schema<"forward", "forward"> & Schema.Present;
1092
+ data: Schema<Schema.InputRecord<{
1093
+ forward_id: Schema<string, string> & Schema.Present & Schema.Required;
1094
+ title: Schema<string, string>;
1095
+ messages: Schema<any[][], any[][]>;
1096
+ }>, Schema.RecordTypes<{
1097
+ forward_id: Schema<string, string> & Schema.Present & Schema.Required;
1098
+ title: Schema<string, string>;
1099
+ messages: Schema<any[][], any[][]>;
1100
+ }>> & {
1101
+ readonly output?: Schema.RecordTypes<{
1102
+ forward_id: Schema<string, string> & Schema.Present & Schema.Required;
1103
+ title: Schema<string, string>;
1104
+ messages: Schema<any[][], any[][]>;
1105
+ }> | undefined;
1106
+ } & Schema.Present & Schema.Required;
1107
+ platform: Schema<Record<string, any>, Record<string, any>>;
1108
+ }>> & {
1109
+ readonly output?: Schema.RecordTypes<{
1110
+ type: Schema<"forward", "forward"> & Schema.Present;
1111
+ data: Schema<Schema.InputRecord<{
1112
+ forward_id: Schema<string, string> & Schema.Present & Schema.Required;
1113
+ title: Schema<string, string>;
1114
+ messages: Schema<any[][], any[][]>;
1115
+ }>, Schema.RecordTypes<{
1116
+ forward_id: Schema<string, string> & Schema.Present & Schema.Required;
1117
+ title: Schema<string, string>;
1118
+ messages: Schema<any[][], any[][]>;
1119
+ }>> & {
1120
+ readonly output?: Schema.RecordTypes<{
1121
+ forward_id: Schema<string, string> & Schema.Present & Schema.Required;
1122
+ title: Schema<string, string>;
1123
+ messages: Schema<any[][], any[][]>;
1124
+ }> | undefined;
1125
+ } & Schema.Present & Schema.Required;
1126
+ platform: Schema<Record<string, any>, Record<string, any>>;
1127
+ }> | undefined;
1128
+ };
1129
+ export declare const faceSegmentSchema: Schema<Schema.InputRecord<{
1130
+ type: Schema<"face", "face"> & Schema.Present;
1131
+ data: Schema<Schema.InputRecord<{
1132
+ id: Schema;
1133
+ name: Schema<string, string>;
1134
+ }>, Schema.RecordTypes<{
1135
+ id: Schema;
1136
+ name: Schema<string, string>;
1137
+ }>> & {
1138
+ readonly output?: Schema.RecordTypes<{
1139
+ id: Schema;
1140
+ name: Schema<string, string>;
1141
+ }> | undefined;
1142
+ } & Schema.Present & Schema.Required;
1143
+ platform: Schema<Record<string, any>, Record<string, any>>;
1144
+ }>, Schema.RecordTypes<{
1145
+ type: Schema<"face", "face"> & Schema.Present;
1146
+ data: Schema<Schema.InputRecord<{
1147
+ id: Schema;
1148
+ name: Schema<string, string>;
1149
+ }>, Schema.RecordTypes<{
1150
+ id: Schema;
1151
+ name: Schema<string, string>;
1152
+ }>> & {
1153
+ readonly output?: Schema.RecordTypes<{
1154
+ id: Schema;
1155
+ name: Schema<string, string>;
1156
+ }> | undefined;
1157
+ } & Schema.Present & Schema.Required;
1158
+ platform: Schema<Record<string, any>, Record<string, any>>;
1159
+ }>> & {
1160
+ readonly output?: Schema.RecordTypes<{
1161
+ type: Schema<"face", "face"> & Schema.Present;
1162
+ data: Schema<Schema.InputRecord<{
1163
+ id: Schema;
1164
+ name: Schema<string, string>;
1165
+ }>, Schema.RecordTypes<{
1166
+ id: Schema;
1167
+ name: Schema<string, string>;
1168
+ }>> & {
1169
+ readonly output?: Schema.RecordTypes<{
1170
+ id: Schema;
1171
+ name: Schema<string, string>;
1172
+ }> | undefined;
1173
+ } & Schema.Present & Schema.Required;
1174
+ platform: Schema<Record<string, any>, Record<string, any>>;
1175
+ }> | undefined;
1176
+ };
1177
+ export declare const diceSegmentSchema: Schema<Schema.InputRecord<{
1178
+ type: Schema<"dice", "dice"> & Schema.Present;
1179
+ data: Schema<Schema.InputRecord<{
1180
+ result: Schema<number, number>;
1181
+ }>, Schema.RecordTypes<{
1182
+ result: Schema<number, number>;
1183
+ }>> & {
1184
+ readonly output?: Schema.RecordTypes<{
1185
+ result: Schema<number, number>;
1186
+ }> | undefined;
1187
+ } & Schema.Present & Schema.Required;
1188
+ platform: Schema<Record<string, any>, Record<string, any>>;
1189
+ }>, Schema.RecordTypes<{
1190
+ type: Schema<"dice", "dice"> & Schema.Present;
1191
+ data: Schema<Schema.InputRecord<{
1192
+ result: Schema<number, number>;
1193
+ }>, Schema.RecordTypes<{
1194
+ result: Schema<number, number>;
1195
+ }>> & {
1196
+ readonly output?: Schema.RecordTypes<{
1197
+ result: Schema<number, number>;
1198
+ }> | undefined;
1199
+ } & Schema.Present & Schema.Required;
1200
+ platform: Schema<Record<string, any>, Record<string, any>>;
1201
+ }>> & {
1202
+ readonly output?: Schema.RecordTypes<{
1203
+ type: Schema<"dice", "dice"> & Schema.Present;
1204
+ data: Schema<Schema.InputRecord<{
1205
+ result: Schema<number, number>;
1206
+ }>, Schema.RecordTypes<{
1207
+ result: Schema<number, number>;
1208
+ }>> & {
1209
+ readonly output?: Schema.RecordTypes<{
1210
+ result: Schema<number, number>;
1211
+ }> | undefined;
1212
+ } & Schema.Present & Schema.Required;
1213
+ platform: Schema<Record<string, any>, Record<string, any>>;
1214
+ }> | undefined;
1215
+ };
1216
+ export declare const rpsSegmentSchema: Schema<Schema.InputRecord<{
1217
+ type: Schema<"rps", "rps"> & Schema.Present;
1218
+ data: Schema<Schema.InputRecord<{
1219
+ result: Schema<number, number>;
1220
+ }>, Schema.RecordTypes<{
1221
+ result: Schema<number, number>;
1222
+ }>> & {
1223
+ readonly output?: Schema.RecordTypes<{
1224
+ result: Schema<number, number>;
1225
+ }> | undefined;
1226
+ } & Schema.Present & Schema.Required;
1227
+ platform: Schema<Record<string, any>, Record<string, any>>;
1228
+ }>, Schema.RecordTypes<{
1229
+ type: Schema<"rps", "rps"> & Schema.Present;
1230
+ data: Schema<Schema.InputRecord<{
1231
+ result: Schema<number, number>;
1232
+ }>, Schema.RecordTypes<{
1233
+ result: Schema<number, number>;
1234
+ }>> & {
1235
+ readonly output?: Schema.RecordTypes<{
1236
+ result: Schema<number, number>;
1237
+ }> | undefined;
1238
+ } & Schema.Present & Schema.Required;
1239
+ platform: Schema<Record<string, any>, Record<string, any>>;
1240
+ }>> & {
1241
+ readonly output?: Schema.RecordTypes<{
1242
+ type: Schema<"rps", "rps"> & Schema.Present;
1243
+ data: Schema<Schema.InputRecord<{
1244
+ result: Schema<number, number>;
1245
+ }>, Schema.RecordTypes<{
1246
+ result: Schema<number, number>;
1247
+ }>> & {
1248
+ readonly output?: Schema.RecordTypes<{
1249
+ result: Schema<number, number>;
1250
+ }> | undefined;
1251
+ } & Schema.Present & Schema.Required;
1252
+ platform: Schema<Record<string, any>, Record<string, any>>;
1253
+ }> | undefined;
1254
+ };
1255
+ export declare const shareSegmentSchema: Schema<Schema.InputRecord<{
1256
+ type: Schema<"share", "share"> & Schema.Present;
1257
+ data: Schema<Schema.InputRecord<{
1258
+ url: Schema<string, string> & Schema.Present & Schema.Required;
1259
+ title: Schema<string, string> & Schema.Present & Schema.Required;
1260
+ description: Schema<string, string>;
1261
+ image: Schema<string, string>;
1262
+ audio: Schema<string, string>;
1263
+ content: Schema<string, string>;
1264
+ artist: Schema<string, string>;
1265
+ duration: Schema<number, number>;
1266
+ platform: Schema<string, string>;
1267
+ config: Schema<Schema.InputRecord<{
1268
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1269
+ package: Schema<string, string>;
1270
+ sign: Schema<string, string>;
1271
+ icon: Schema<string, string>;
1272
+ version: Schema<string, string>;
1273
+ }>, Schema.RecordTypes<{
1274
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1275
+ package: Schema<string, string>;
1276
+ sign: Schema<string, string>;
1277
+ icon: Schema<string, string>;
1278
+ version: Schema<string, string>;
1279
+ }>> & {
1280
+ readonly output?: Schema.RecordTypes<{
1281
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1282
+ package: Schema<string, string>;
1283
+ sign: Schema<string, string>;
1284
+ icon: Schema<string, string>;
1285
+ version: Schema<string, string>;
1286
+ }> | undefined;
1287
+ };
1288
+ }>, Schema.RecordTypes<{
1289
+ url: Schema<string, string> & Schema.Present & Schema.Required;
1290
+ title: Schema<string, string> & Schema.Present & Schema.Required;
1291
+ description: Schema<string, string>;
1292
+ image: Schema<string, string>;
1293
+ audio: Schema<string, string>;
1294
+ content: Schema<string, string>;
1295
+ artist: Schema<string, string>;
1296
+ duration: Schema<number, number>;
1297
+ platform: Schema<string, string>;
1298
+ config: Schema<Schema.InputRecord<{
1299
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1300
+ package: Schema<string, string>;
1301
+ sign: Schema<string, string>;
1302
+ icon: Schema<string, string>;
1303
+ version: Schema<string, string>;
1304
+ }>, Schema.RecordTypes<{
1305
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1306
+ package: Schema<string, string>;
1307
+ sign: Schema<string, string>;
1308
+ icon: Schema<string, string>;
1309
+ version: Schema<string, string>;
1310
+ }>> & {
1311
+ readonly output?: Schema.RecordTypes<{
1312
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1313
+ package: Schema<string, string>;
1314
+ sign: Schema<string, string>;
1315
+ icon: Schema<string, string>;
1316
+ version: Schema<string, string>;
1317
+ }> | undefined;
1318
+ };
1319
+ }>> & {
1320
+ readonly output?: Schema.RecordTypes<{
1321
+ url: Schema<string, string> & Schema.Present & Schema.Required;
1322
+ title: Schema<string, string> & Schema.Present & Schema.Required;
1323
+ description: Schema<string, string>;
1324
+ image: Schema<string, string>;
1325
+ audio: Schema<string, string>;
1326
+ content: Schema<string, string>;
1327
+ artist: Schema<string, string>;
1328
+ duration: Schema<number, number>;
1329
+ platform: Schema<string, string>;
1330
+ config: Schema<Schema.InputRecord<{
1331
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1332
+ package: Schema<string, string>;
1333
+ sign: Schema<string, string>;
1334
+ icon: Schema<string, string>;
1335
+ version: Schema<string, string>;
1336
+ }>, Schema.RecordTypes<{
1337
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1338
+ package: Schema<string, string>;
1339
+ sign: Schema<string, string>;
1340
+ icon: Schema<string, string>;
1341
+ version: Schema<string, string>;
1342
+ }>> & {
1343
+ readonly output?: Schema.RecordTypes<{
1344
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1345
+ package: Schema<string, string>;
1346
+ sign: Schema<string, string>;
1347
+ icon: Schema<string, string>;
1348
+ version: Schema<string, string>;
1349
+ }> | undefined;
1350
+ };
1351
+ }> | undefined;
1352
+ } & Schema.Present & Schema.Required;
1353
+ platform: Schema<Record<string, any>, Record<string, any>>;
1354
+ }>, Schema.RecordTypes<{
1355
+ type: Schema<"share", "share"> & Schema.Present;
1356
+ data: Schema<Schema.InputRecord<{
1357
+ url: Schema<string, string> & Schema.Present & Schema.Required;
1358
+ title: Schema<string, string> & Schema.Present & Schema.Required;
1359
+ description: Schema<string, string>;
1360
+ image: Schema<string, string>;
1361
+ audio: Schema<string, string>;
1362
+ content: Schema<string, string>;
1363
+ artist: Schema<string, string>;
1364
+ duration: Schema<number, number>;
1365
+ platform: Schema<string, string>;
1366
+ config: Schema<Schema.InputRecord<{
1367
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1368
+ package: Schema<string, string>;
1369
+ sign: Schema<string, string>;
1370
+ icon: Schema<string, string>;
1371
+ version: Schema<string, string>;
1372
+ }>, Schema.RecordTypes<{
1373
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1374
+ package: Schema<string, string>;
1375
+ sign: Schema<string, string>;
1376
+ icon: Schema<string, string>;
1377
+ version: Schema<string, string>;
1378
+ }>> & {
1379
+ readonly output?: Schema.RecordTypes<{
1380
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1381
+ package: Schema<string, string>;
1382
+ sign: Schema<string, string>;
1383
+ icon: Schema<string, string>;
1384
+ version: Schema<string, string>;
1385
+ }> | undefined;
1386
+ };
1387
+ }>, Schema.RecordTypes<{
1388
+ url: Schema<string, string> & Schema.Present & Schema.Required;
1389
+ title: Schema<string, string> & Schema.Present & Schema.Required;
1390
+ description: Schema<string, string>;
1391
+ image: Schema<string, string>;
1392
+ audio: Schema<string, string>;
1393
+ content: Schema<string, string>;
1394
+ artist: Schema<string, string>;
1395
+ duration: Schema<number, number>;
1396
+ platform: Schema<string, string>;
1397
+ config: Schema<Schema.InputRecord<{
1398
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1399
+ package: Schema<string, string>;
1400
+ sign: Schema<string, string>;
1401
+ icon: Schema<string, string>;
1402
+ version: Schema<string, string>;
1403
+ }>, Schema.RecordTypes<{
1404
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1405
+ package: Schema<string, string>;
1406
+ sign: Schema<string, string>;
1407
+ icon: Schema<string, string>;
1408
+ version: Schema<string, string>;
1409
+ }>> & {
1410
+ readonly output?: Schema.RecordTypes<{
1411
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1412
+ package: Schema<string, string>;
1413
+ sign: Schema<string, string>;
1414
+ icon: Schema<string, string>;
1415
+ version: Schema<string, string>;
1416
+ }> | undefined;
1417
+ };
1418
+ }>> & {
1419
+ readonly output?: Schema.RecordTypes<{
1420
+ url: Schema<string, string> & Schema.Present & Schema.Required;
1421
+ title: Schema<string, string> & Schema.Present & Schema.Required;
1422
+ description: Schema<string, string>;
1423
+ image: Schema<string, string>;
1424
+ audio: Schema<string, string>;
1425
+ content: Schema<string, string>;
1426
+ artist: Schema<string, string>;
1427
+ duration: Schema<number, number>;
1428
+ platform: Schema<string, string>;
1429
+ config: Schema<Schema.InputRecord<{
1430
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1431
+ package: Schema<string, string>;
1432
+ sign: Schema<string, string>;
1433
+ icon: Schema<string, string>;
1434
+ version: Schema<string, string>;
1435
+ }>, Schema.RecordTypes<{
1436
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1437
+ package: Schema<string, string>;
1438
+ sign: Schema<string, string>;
1439
+ icon: Schema<string, string>;
1440
+ version: Schema<string, string>;
1441
+ }>> & {
1442
+ readonly output?: Schema.RecordTypes<{
1443
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1444
+ package: Schema<string, string>;
1445
+ sign: Schema<string, string>;
1446
+ icon: Schema<string, string>;
1447
+ version: Schema<string, string>;
1448
+ }> | undefined;
1449
+ };
1450
+ }> | undefined;
1451
+ } & Schema.Present & Schema.Required;
1452
+ platform: Schema<Record<string, any>, Record<string, any>>;
1453
+ }>> & {
1454
+ readonly output?: Schema.RecordTypes<{
1455
+ type: Schema<"share", "share"> & Schema.Present;
1456
+ data: Schema<Schema.InputRecord<{
1457
+ url: Schema<string, string> & Schema.Present & Schema.Required;
1458
+ title: Schema<string, string> & Schema.Present & Schema.Required;
1459
+ description: Schema<string, string>;
1460
+ image: Schema<string, string>;
1461
+ audio: Schema<string, string>;
1462
+ content: Schema<string, string>;
1463
+ artist: Schema<string, string>;
1464
+ duration: Schema<number, number>;
1465
+ platform: Schema<string, string>;
1466
+ config: Schema<Schema.InputRecord<{
1467
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1468
+ package: Schema<string, string>;
1469
+ sign: Schema<string, string>;
1470
+ icon: Schema<string, string>;
1471
+ version: Schema<string, string>;
1472
+ }>, Schema.RecordTypes<{
1473
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1474
+ package: Schema<string, string>;
1475
+ sign: Schema<string, string>;
1476
+ icon: Schema<string, string>;
1477
+ version: Schema<string, string>;
1478
+ }>> & {
1479
+ readonly output?: Schema.RecordTypes<{
1480
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1481
+ package: Schema<string, string>;
1482
+ sign: Schema<string, string>;
1483
+ icon: Schema<string, string>;
1484
+ version: Schema<string, string>;
1485
+ }> | undefined;
1486
+ };
1487
+ }>, Schema.RecordTypes<{
1488
+ url: Schema<string, string> & Schema.Present & Schema.Required;
1489
+ title: Schema<string, string> & Schema.Present & Schema.Required;
1490
+ description: Schema<string, string>;
1491
+ image: Schema<string, string>;
1492
+ audio: Schema<string, string>;
1493
+ content: Schema<string, string>;
1494
+ artist: Schema<string, string>;
1495
+ duration: Schema<number, number>;
1496
+ platform: Schema<string, string>;
1497
+ config: Schema<Schema.InputRecord<{
1498
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1499
+ package: Schema<string, string>;
1500
+ sign: Schema<string, string>;
1501
+ icon: Schema<string, string>;
1502
+ version: Schema<string, string>;
1503
+ }>, Schema.RecordTypes<{
1504
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1505
+ package: Schema<string, string>;
1506
+ sign: Schema<string, string>;
1507
+ icon: Schema<string, string>;
1508
+ version: Schema<string, string>;
1509
+ }>> & {
1510
+ readonly output?: Schema.RecordTypes<{
1511
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1512
+ package: Schema<string, string>;
1513
+ sign: Schema<string, string>;
1514
+ icon: Schema<string, string>;
1515
+ version: Schema<string, string>;
1516
+ }> | undefined;
1517
+ };
1518
+ }>> & {
1519
+ readonly output?: Schema.RecordTypes<{
1520
+ url: Schema<string, string> & Schema.Present & Schema.Required;
1521
+ title: Schema<string, string> & Schema.Present & Schema.Required;
1522
+ description: Schema<string, string>;
1523
+ image: Schema<string, string>;
1524
+ audio: Schema<string, string>;
1525
+ content: Schema<string, string>;
1526
+ artist: Schema<string, string>;
1527
+ duration: Schema<number, number>;
1528
+ platform: Schema<string, string>;
1529
+ config: Schema<Schema.InputRecord<{
1530
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1531
+ package: Schema<string, string>;
1532
+ sign: Schema<string, string>;
1533
+ icon: Schema<string, string>;
1534
+ version: Schema<string, string>;
1535
+ }>, Schema.RecordTypes<{
1536
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1537
+ package: Schema<string, string>;
1538
+ sign: Schema<string, string>;
1539
+ icon: Schema<string, string>;
1540
+ version: Schema<string, string>;
1541
+ }>> & {
1542
+ readonly output?: Schema.RecordTypes<{
1543
+ appid: Schema<number, number> & Schema.Present & Schema.Required;
1544
+ package: Schema<string, string>;
1545
+ sign: Schema<string, string>;
1546
+ icon: Schema<string, string>;
1547
+ version: Schema<string, string>;
1548
+ }> | undefined;
1549
+ };
1550
+ }> | undefined;
1551
+ } & Schema.Present & Schema.Required;
1552
+ platform: Schema<Record<string, any>, Record<string, any>>;
1553
+ }> | undefined;
1554
+ };
225
1555
  export declare const canonicalSegmentSchema: Schema<any, any>;
226
1556
  export declare const segmentArraySchema: Schema<any[], any[]>;
227
- export declare function isMediaRef(value: unknown): value is MediaRef;
228
1557
  /** 严格 canonical 段校验(@zhin.js/schema validate-only) */
229
1558
  export declare function isStrictCanonicalSegment(value: unknown): value is Segment;