human2ai 0.1.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 (326) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +120 -0
  3. package/assets/quaternius/License_Standard.txt +22 -0
  4. package/assets/quaternius/README.md +31 -0
  5. package/assets/quaternius/Superhero_Female_FullBody.bin +0 -0
  6. package/assets/quaternius/Superhero_Female_FullBody.gltf +2056 -0
  7. package/assets/quaternius/Superhero_Male_FullBody.bin +0 -0
  8. package/assets/quaternius/Superhero_Male_FullBody.gltf +2018 -0
  9. package/dist/cli/integration.d.ts +39 -0
  10. package/dist/cli/integration.js +466 -0
  11. package/dist/cli/integration.js.map +1 -0
  12. package/dist/cli/main.d.ts +17 -0
  13. package/dist/cli/main.js +1455 -0
  14. package/dist/cli/main.js.map +1 -0
  15. package/dist/database/composition-session-repository.d.ts +37 -0
  16. package/dist/database/composition-session-repository.js +147 -0
  17. package/dist/database/composition-session-repository.js.map +1 -0
  18. package/dist/database/draft-version-errors.d.ts +29 -0
  19. package/dist/database/draft-version-errors.js +47 -0
  20. package/dist/database/draft-version-errors.js.map +1 -0
  21. package/dist/database/draft-version-store.d.ts +30 -0
  22. package/dist/database/draft-version-store.js +168 -0
  23. package/dist/database/draft-version-store.js.map +1 -0
  24. package/dist/database/image-asset-repository.d.ts +37 -0
  25. package/dist/database/image-asset-repository.js +101 -0
  26. package/dist/database/image-asset-repository.js.map +1 -0
  27. package/dist/database/image-input.d.ts +15 -0
  28. package/dist/database/image-input.js +28 -0
  29. package/dist/database/image-input.js.map +1 -0
  30. package/dist/database/migrate.d.ts +4 -0
  31. package/dist/database/migrate.js +45 -0
  32. package/dist/database/migrate.js.map +1 -0
  33. package/dist/database/project-session-repository.d.ts +72 -0
  34. package/dist/database/project-session-repository.js +291 -0
  35. package/dist/database/project-session-repository.js.map +1 -0
  36. package/dist/database/spatial-session-repository.d.ts +26 -0
  37. package/dist/database/spatial-session-repository.js +44 -0
  38. package/dist/database/spatial-session-repository.js.map +1 -0
  39. package/dist/database/style-library-repository.d.ts +70 -0
  40. package/dist/database/style-library-repository.js +290 -0
  41. package/dist/database/style-library-repository.js.map +1 -0
  42. package/dist/database/svg-input.d.ts +1 -0
  43. package/dist/database/svg-input.js +77 -0
  44. package/dist/database/svg-input.js.map +1 -0
  45. package/dist/database/ui-sketch-session-repository.d.ts +19 -0
  46. package/dist/database/ui-sketch-session-repository.js +35 -0
  47. package/dist/database/ui-sketch-session-repository.js.map +1 -0
  48. package/dist/domain/canvas-layer-order.d.ts +6 -0
  49. package/dist/domain/canvas-layer-order.js +40 -0
  50. package/dist/domain/canvas-layer-order.js.map +1 -0
  51. package/dist/domain/canvas-node-metadata.d.ts +20 -0
  52. package/dist/domain/canvas-node-metadata.js +17 -0
  53. package/dist/domain/canvas-node-metadata.js.map +1 -0
  54. package/dist/domain/canvas-states.d.ts +8 -0
  55. package/dist/domain/canvas-states.js +23 -0
  56. package/dist/domain/canvas-states.js.map +1 -0
  57. package/dist/domain/composition/analysis.d.ts +104 -0
  58. package/dist/domain/composition/analysis.js +337 -0
  59. package/dist/domain/composition/analysis.js.map +1 -0
  60. package/dist/domain/composition/camera-reference.d.ts +24 -0
  61. package/dist/domain/composition/camera-reference.js +34 -0
  62. package/dist/domain/composition/camera-reference.js.map +1 -0
  63. package/dist/domain/composition/draft.d.ts +50 -0
  64. package/dist/domain/composition/draft.js +609 -0
  65. package/dist/domain/composition/draft.js.map +1 -0
  66. package/dist/domain/composition/frame.d.ts +23 -0
  67. package/dist/domain/composition/frame.js +154 -0
  68. package/dist/domain/composition/frame.js.map +1 -0
  69. package/dist/domain/composition/geometry.d.ts +15 -0
  70. package/dist/domain/composition/geometry.js +262 -0
  71. package/dist/domain/composition/geometry.js.map +1 -0
  72. package/dist/domain/composition/index.d.ts +13 -0
  73. package/dist/domain/composition/index.js +10 -0
  74. package/dist/domain/composition/index.js.map +1 -0
  75. package/dist/domain/composition/layers.d.ts +4 -0
  76. package/dist/domain/composition/layers.js +12 -0
  77. package/dist/domain/composition/layers.js.map +1 -0
  78. package/dist/domain/composition/records.d.ts +14 -0
  79. package/dist/domain/composition/records.js +2 -0
  80. package/dist/domain/composition/records.js.map +1 -0
  81. package/dist/domain/composition/refinement/engine.d.ts +12 -0
  82. package/dist/domain/composition/refinement/engine.js +521 -0
  83. package/dist/domain/composition/refinement/engine.js.map +1 -0
  84. package/dist/domain/composition/refinement/relations.d.ts +16 -0
  85. package/dist/domain/composition/refinement/relations.js +293 -0
  86. package/dist/domain/composition/refinement/relations.js.map +1 -0
  87. package/dist/domain/composition/refinement/types.d.ts +181 -0
  88. package/dist/domain/composition/refinement/types.js +2 -0
  89. package/dist/domain/composition/refinement/types.js.map +1 -0
  90. package/dist/domain/composition/render.d.ts +5 -0
  91. package/dist/domain/composition/render.js +169 -0
  92. package/dist/domain/composition/render.js.map +1 -0
  93. package/dist/domain/composition/states.d.ts +9 -0
  94. package/dist/domain/composition/states.js +104 -0
  95. package/dist/domain/composition/states.js.map +1 -0
  96. package/dist/domain/composition/types.d.ts +149 -0
  97. package/dist/domain/composition/types.js +2 -0
  98. package/dist/domain/composition/types.js.map +1 -0
  99. package/dist/domain/composition/workflow.d.ts +15 -0
  100. package/dist/domain/composition/workflow.js +77 -0
  101. package/dist/domain/composition/workflow.js.map +1 -0
  102. package/dist/domain/fingerprint.d.ts +2 -0
  103. package/dist/domain/fingerprint.js +25 -0
  104. package/dist/domain/fingerprint.js.map +1 -0
  105. package/dist/domain/session/canvas-edit-history.d.ts +17 -0
  106. package/dist/domain/session/canvas-edit-history.js +53 -0
  107. package/dist/domain/session/canvas-edit-history.js.map +1 -0
  108. package/dist/domain/session/capabilities.d.ts +16 -0
  109. package/dist/domain/session/capabilities.js +84 -0
  110. package/dist/domain/session/capabilities.js.map +1 -0
  111. package/dist/domain/session/draft-version.d.ts +41 -0
  112. package/dist/domain/session/draft-version.js +2 -0
  113. package/dist/domain/session/draft-version.js.map +1 -0
  114. package/dist/domain/session/index.d.ts +5 -0
  115. package/dist/domain/session/index.js +3 -0
  116. package/dist/domain/session/index.js.map +1 -0
  117. package/dist/domain/session/types.d.ts +23 -0
  118. package/dist/domain/session/types.js +2 -0
  119. package/dist/domain/session/types.js.map +1 -0
  120. package/dist/domain/spatial/assets/quaternius-female-rig.json +799 -0
  121. package/dist/domain/spatial/assets/quaternius-rig.json +799 -0
  122. package/dist/domain/spatial/assets/quaternius-superhero-female.json +1 -0
  123. package/dist/domain/spatial/assets/quaternius-superhero.json +1 -0
  124. package/dist/domain/spatial/camera-box.d.ts +13 -0
  125. package/dist/domain/spatial/camera-box.js +52 -0
  126. package/dist/domain/spatial/camera-box.js.map +1 -0
  127. package/dist/domain/spatial/geometric-model.d.ts +4 -0
  128. package/dist/domain/spatial/geometric-model.js +101 -0
  129. package/dist/domain/spatial/geometric-model.js.map +1 -0
  130. package/dist/domain/spatial/hands.d.ts +36 -0
  131. package/dist/domain/spatial/hands.js +128 -0
  132. package/dist/domain/spatial/hands.js.map +1 -0
  133. package/dist/domain/spatial/index.d.ts +30 -0
  134. package/dist/domain/spatial/index.js +381 -0
  135. package/dist/domain/spatial/index.js.map +1 -0
  136. package/dist/domain/spatial/kinematics.d.ts +27 -0
  137. package/dist/domain/spatial/kinematics.js +285 -0
  138. package/dist/domain/spatial/kinematics.js.map +1 -0
  139. package/dist/domain/spatial/lighting.d.ts +35 -0
  140. package/dist/domain/spatial/lighting.js +173 -0
  141. package/dist/domain/spatial/lighting.js.map +1 -0
  142. package/dist/domain/spatial/model.d.ts +5 -0
  143. package/dist/domain/spatial/model.js +193 -0
  144. package/dist/domain/spatial/model.js.map +1 -0
  145. package/dist/domain/spatial/morph.d.ts +3 -0
  146. package/dist/domain/spatial/morph.js +187 -0
  147. package/dist/domain/spatial/morph.js.map +1 -0
  148. package/dist/domain/spatial/proportions.d.ts +46 -0
  149. package/dist/domain/spatial/proportions.js +59 -0
  150. package/dist/domain/spatial/proportions.js.map +1 -0
  151. package/dist/domain/spatial/reference-lines.d.ts +6 -0
  152. package/dist/domain/spatial/reference-lines.js +58 -0
  153. package/dist/domain/spatial/reference-lines.js.map +1 -0
  154. package/dist/domain/spatial/scene-cache.d.ts +15 -0
  155. package/dist/domain/spatial/scene-cache.js +69 -0
  156. package/dist/domain/spatial/scene-cache.js.map +1 -0
  157. package/dist/domain/spatial/scene.d.ts +8 -0
  158. package/dist/domain/spatial/scene.js +69 -0
  159. package/dist/domain/spatial/scene.js.map +1 -0
  160. package/dist/domain/spatial/types.d.ts +187 -0
  161. package/dist/domain/spatial/types.js +5 -0
  162. package/dist/domain/spatial/types.js.map +1 -0
  163. package/dist/domain/style/index.d.ts +1 -0
  164. package/dist/domain/style/index.js +2 -0
  165. package/dist/domain/style/index.js.map +1 -0
  166. package/dist/domain/style/prompt-summary.d.ts +2 -0
  167. package/dist/domain/style/prompt-summary.js +11 -0
  168. package/dist/domain/style/prompt-summary.js.map +1 -0
  169. package/dist/domain/style/types.d.ts +32 -0
  170. package/dist/domain/style/types.js +3 -0
  171. package/dist/domain/style/types.js.map +1 -0
  172. package/dist/domain/ui-sketch/draft.d.ts +12 -0
  173. package/dist/domain/ui-sketch/draft.js +424 -0
  174. package/dist/domain/ui-sketch/draft.js.map +1 -0
  175. package/dist/domain/ui-sketch/geometry.d.ts +7 -0
  176. package/dist/domain/ui-sketch/geometry.js +11 -0
  177. package/dist/domain/ui-sketch/geometry.js.map +1 -0
  178. package/dist/domain/ui-sketch/groups.d.ts +5 -0
  179. package/dist/domain/ui-sketch/groups.js +40 -0
  180. package/dist/domain/ui-sketch/groups.js.map +1 -0
  181. package/dist/domain/ui-sketch/index.d.ts +8 -0
  182. package/dist/domain/ui-sketch/index.js +8 -0
  183. package/dist/domain/ui-sketch/index.js.map +1 -0
  184. package/dist/domain/ui-sketch/layers.d.ts +4 -0
  185. package/dist/domain/ui-sketch/layers.js +11 -0
  186. package/dist/domain/ui-sketch/layers.js.map +1 -0
  187. package/dist/domain/ui-sketch/render.d.ts +2 -0
  188. package/dist/domain/ui-sketch/render.js +58 -0
  189. package/dist/domain/ui-sketch/render.js.map +1 -0
  190. package/dist/domain/ui-sketch/standardize.d.ts +17 -0
  191. package/dist/domain/ui-sketch/standardize.js +139 -0
  192. package/dist/domain/ui-sketch/standardize.js.map +1 -0
  193. package/dist/domain/ui-sketch/states.d.ts +5 -0
  194. package/dist/domain/ui-sketch/states.js +21 -0
  195. package/dist/domain/ui-sketch/states.js.map +1 -0
  196. package/dist/domain/ui-sketch/types.d.ts +73 -0
  197. package/dist/domain/ui-sketch/types.js +2 -0
  198. package/dist/domain/ui-sketch/types.js.map +1 -0
  199. package/dist/server/app.d.ts +18 -0
  200. package/dist/server/app.js +108 -0
  201. package/dist/server/app.js.map +1 -0
  202. package/dist/server/image-content-type-parser.d.ts +2 -0
  203. package/dist/server/image-content-type-parser.js +5 -0
  204. package/dist/server/image-content-type-parser.js.map +1 -0
  205. package/dist/server/routes/composition-sessions.d.ts +3 -0
  206. package/dist/server/routes/composition-sessions.js +190 -0
  207. package/dist/server/routes/composition-sessions.js.map +1 -0
  208. package/dist/server/routes/draft-version-routes.d.ts +10 -0
  209. package/dist/server/routes/draft-version-routes.js +201 -0
  210. package/dist/server/routes/draft-version-routes.js.map +1 -0
  211. package/dist/server/routes/image-assets.d.ts +3 -0
  212. package/dist/server/routes/image-assets.js +114 -0
  213. package/dist/server/routes/image-assets.js.map +1 -0
  214. package/dist/server/routes/project-sessions.d.ts +48 -0
  215. package/dist/server/routes/project-sessions.js +305 -0
  216. package/dist/server/routes/project-sessions.js.map +1 -0
  217. package/dist/server/routes/spatial-sessions.d.ts +3 -0
  218. package/dist/server/routes/spatial-sessions.js +80 -0
  219. package/dist/server/routes/spatial-sessions.js.map +1 -0
  220. package/dist/server/routes/style-library.d.ts +3 -0
  221. package/dist/server/routes/style-library.js +308 -0
  222. package/dist/server/routes/style-library.js.map +1 -0
  223. package/dist/server/routes/ui-sketch-sessions.d.ts +3 -0
  224. package/dist/server/routes/ui-sketch-sessions.js +14 -0
  225. package/dist/server/routes/ui-sketch-sessions.js.map +1 -0
  226. package/dist/server/runtime.d.ts +30 -0
  227. package/dist/server/runtime.js +123 -0
  228. package/dist/server/runtime.js.map +1 -0
  229. package/dist/server/spatial-render.d.ts +5 -0
  230. package/dist/server/spatial-render.js +360 -0
  231. package/dist/server/spatial-render.js.map +1 -0
  232. package/dist/server/start.d.ts +1 -0
  233. package/dist/server/start.js +3 -0
  234. package/dist/server/start.js.map +1 -0
  235. package/licenses/THIRD-PARTY-NOTICES.txt +16664 -0
  236. package/licenses/YisiUI-LICENSE +21 -0
  237. package/locales/en/common.json +671 -0
  238. package/migrations/0001_projects_and_sessions.sql +45 -0
  239. package/migrations/0002_composition_versions_and_refinements.sql +26 -0
  240. package/migrations/0003_ui_sketch_draft_versions.sql +12 -0
  241. package/migrations/0004_image_assets.sql +16 -0
  242. package/migrations/0005_style_library.sql +31 -0
  243. package/migrations/0006_session_styles.sql +6 -0
  244. package/migrations/0007_svg_image_assets.sql +19 -0
  245. package/migrations/0008_spatial_spaces.sql +20 -0
  246. package/package.json +82 -0
  247. package/schemas/composition-draft.schema.json +234 -0
  248. package/schemas/composition-refinement-plan.schema.json +758 -0
  249. package/schemas/spatial-draft.schema.json +517 -0
  250. package/schemas/spatial-operations.schema.json +1082 -0
  251. package/schemas/ui-layout-standardization-plan.schema.json +29 -0
  252. package/schemas/ui-sketch-draft.schema.json +197 -0
  253. package/skills/human2ai/SKILL.md +149 -0
  254. package/skills/human2ai/agents/openai.yaml +3 -0
  255. package/skills/human2ai/references/composition-projection.md +170 -0
  256. package/skills/human2ai/references/composition.md +79 -0
  257. package/skills/human2ai/references/spatial.md +188 -0
  258. package/skills/human2ai/references/svg-images.md +27 -0
  259. package/skills/human2ai/references/ui-layout.md +100 -0
  260. package/web/out/404/index.html +1 -0
  261. package/web/out/404.html +1 -0
  262. package/web/out/__next.__PAGE__.txt +26 -0
  263. package/web/out/__next._full.txt +21 -0
  264. package/web/out/__next._tree.txt +4 -0
  265. package/web/out/_next/static/TV-jgcACg6HANZAMZTE2S/_buildManifest.js +1 -0
  266. package/web/out/_next/static/TV-jgcACg6HANZAMZTE2S/_ssgManifest.js +1 -0
  267. package/web/out/_next/static/chunks/130-9fadd0432daff55d.js +1 -0
  268. package/web/out/_next/static/chunks/158-eb00456e1bab68b3.js +52 -0
  269. package/web/out/_next/static/chunks/20-0801fc297cda2a7a.js +1 -0
  270. package/web/out/_next/static/chunks/248-d4a79649dae2a3f8.js +259 -0
  271. package/web/out/_next/static/chunks/678-1305cadf8254d814.js +1 -0
  272. package/web/out/_next/static/chunks/728-eb8b667f79229443.js +1 -0
  273. package/web/out/_next/static/chunks/83607670-bc1279370476e59f.js +1 -0
  274. package/web/out/_next/static/chunks/app/_global-error/page-5eece43b8152c414.js +1 -0
  275. package/web/out/_next/static/chunks/app/_not-found/page-c0cd75ac39fbf9cf.js +1 -0
  276. package/web/out/_next/static/chunks/app/composition/page-051ee2fabb12110a.js +1 -0
  277. package/web/out/_next/static/chunks/app/layout-745ca27ef8830f4f.js +1 -0
  278. package/web/out/_next/static/chunks/app/page-0027378a269a6168.js +1 -0
  279. package/web/out/_next/static/chunks/app/spatial/page-266dedc81784d4f6.js +1 -0
  280. package/web/out/_next/static/chunks/app/styles/page-d5cb83af828ea9ed.js +1 -0
  281. package/web/out/_next/static/chunks/app/ui-sketch/page-2a8436e05a05c618.js +1 -0
  282. package/web/out/_next/static/chunks/c3f2cda1-9e279dab137b7272.js +342 -0
  283. package/web/out/_next/static/chunks/c7879cf7-7873c8afd9c9c666.js +1 -0
  284. package/web/out/_next/static/chunks/framework-6eacf80ec1e4c887.js +1 -0
  285. package/web/out/_next/static/chunks/main-5ee8fd93319f955c.js +5 -0
  286. package/web/out/_next/static/chunks/main-app-0cf10803ab17c700.js +1 -0
  287. package/web/out/_next/static/chunks/next/dist/client/components/builtin/app-error-5eece43b8152c414.js +1 -0
  288. package/web/out/_next/static/chunks/next/dist/client/components/builtin/forbidden-5eece43b8152c414.js +1 -0
  289. package/web/out/_next/static/chunks/next/dist/client/components/builtin/global-error-728204b7cccc4ed2.js +1 -0
  290. package/web/out/_next/static/chunks/next/dist/client/components/builtin/not-found-5eece43b8152c414.js +1 -0
  291. package/web/out/_next/static/chunks/next/dist/client/components/builtin/unauthorized-5eece43b8152c414.js +1 -0
  292. package/web/out/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  293. package/web/out/_next/static/chunks/webpack-97ae63c0e0b2a512.js +1 -0
  294. package/web/out/_next/static/css/3b7982b41ed8eccd.css +4 -0
  295. package/web/out/_next/static/css/81ae71f1d3e9a866.css +1 -0
  296. package/web/out/_next/static/css/8c3843f4951fa9f6.css +5 -0
  297. package/web/out/_next/static/css/c739d0131cdcc891.css +1 -0
  298. package/web/out/_next/static/css/ce1b4bb3ad3c6073.css +1 -0
  299. package/web/out/_next/static/css/db96ae2e88545d96.css +1 -0
  300. package/web/out/_not-found/__next._full.txt +18 -0
  301. package/web/out/_not-found/__next._not-found.__PAGE__.txt +24 -0
  302. package/web/out/_not-found/__next._tree.txt +3 -0
  303. package/web/out/_not-found/index.html +1 -0
  304. package/web/out/_not-found/index.txt +18 -0
  305. package/web/out/composition/__next._full.txt +25 -0
  306. package/web/out/composition/__next._tree.txt +6 -0
  307. package/web/out/composition/__next.composition.__PAGE__.txt +31 -0
  308. package/web/out/composition/index.html +1 -0
  309. package/web/out/composition/index.txt +25 -0
  310. package/web/out/index.html +1 -0
  311. package/web/out/index.txt +21 -0
  312. package/web/out/spatial/__next._full.txt +23 -0
  313. package/web/out/spatial/__next._tree.txt +4 -0
  314. package/web/out/spatial/__next.spatial.__PAGE__.txt +29 -0
  315. package/web/out/spatial/index.html +1 -0
  316. package/web/out/spatial/index.txt +23 -0
  317. package/web/out/styles/__next._full.txt +23 -0
  318. package/web/out/styles/__next._tree.txt +4 -0
  319. package/web/out/styles/__next.styles.__PAGE__.txt +29 -0
  320. package/web/out/styles/index.html +1 -0
  321. package/web/out/styles/index.txt +23 -0
  322. package/web/out/ui-sketch/__next._full.txt +25 -0
  323. package/web/out/ui-sketch/__next._tree.txt +6 -0
  324. package/web/out/ui-sketch/__next.ui-sketch.__PAGE__.txt +31 -0
  325. package/web/out/ui-sketch/index.html +1 -0
  326. package/web/out/ui-sketch/index.txt +25 -0
@@ -0,0 +1,1082 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://yisi.local/schemas/spatial-operations.schema.json",
4
+ "type": "array",
5
+ "maxItems": 100,
6
+ "items": {
7
+ "oneOf": [
8
+ {
9
+ "type": "object",
10
+ "additionalProperties": false,
11
+ "required": [
12
+ "type",
13
+ "enabled"
14
+ ],
15
+ "properties": {
16
+ "type": {
17
+ "const": "set-lighting"
18
+ },
19
+ "enabled": {
20
+ "type": "boolean"
21
+ }
22
+ }
23
+ },
24
+ {
25
+ "type": "object",
26
+ "additionalProperties": false,
27
+ "required": [
28
+ "type",
29
+ "id",
30
+ "name"
31
+ ],
32
+ "properties": {
33
+ "type": {
34
+ "const": "add-character"
35
+ },
36
+ "id": {
37
+ "type": "string",
38
+ "minLength": 1,
39
+ "maxLength": 100
40
+ },
41
+ "name": {
42
+ "type": "string",
43
+ "minLength": 1,
44
+ "maxLength": 200
45
+ },
46
+ "height": {
47
+ "type": "number",
48
+ "minimum": 0.2,
49
+ "maximum": 20
50
+ },
51
+ "headRatio": {
52
+ "type": "number",
53
+ "minimum": 2,
54
+ "maximum": 12
55
+ },
56
+ "torsoRatio": {
57
+ "type": "number",
58
+ "minimum": 0.3,
59
+ "maximum": 0.7
60
+ },
61
+ "bodyType": {
62
+ "enum": [
63
+ "male",
64
+ "female"
65
+ ]
66
+ },
67
+ "neckLength": {
68
+ "type": "number",
69
+ "minimum": 0.6,
70
+ "maximum": 1.4
71
+ },
72
+ "palmSize": {
73
+ "type": "number",
74
+ "minimum": 0.7,
75
+ "maximum": 1.3
76
+ },
77
+ "fingerLength": {
78
+ "type": "number",
79
+ "minimum": 0.6,
80
+ "maximum": 1.4
81
+ },
82
+ "footSize": {
83
+ "type": "number",
84
+ "minimum": 0.7,
85
+ "maximum": 1.4
86
+ },
87
+ "appearance": {
88
+ "enum": [
89
+ "quaternius",
90
+ "geometric"
91
+ ]
92
+ }
93
+ }
94
+ },
95
+ {
96
+ "type": "object",
97
+ "additionalProperties": false,
98
+ "required": [
99
+ "type",
100
+ "character"
101
+ ],
102
+ "properties": {
103
+ "type": {
104
+ "const": "put-character"
105
+ },
106
+ "character": {
107
+ "type": "object",
108
+ "additionalProperties": false,
109
+ "required": [
110
+ "id",
111
+ "name",
112
+ "kind",
113
+ "position",
114
+ "rotation",
115
+ "height",
116
+ "headRatio",
117
+ "color",
118
+ "joints",
119
+ "bones",
120
+ "appearance"
121
+ ],
122
+ "properties": {
123
+ "id": {
124
+ "type": "string",
125
+ "minLength": 1,
126
+ "maxLength": 100
127
+ },
128
+ "name": {
129
+ "type": "string",
130
+ "minLength": 1,
131
+ "maxLength": 200
132
+ },
133
+ "kind": {
134
+ "enum": [
135
+ "humanoid",
136
+ "custom"
137
+ ]
138
+ },
139
+ "position": {
140
+ "type": "array",
141
+ "minItems": 3,
142
+ "maxItems": 3,
143
+ "items": {
144
+ "type": "number",
145
+ "minimum": -10000,
146
+ "maximum": 10000
147
+ }
148
+ },
149
+ "rotation": {
150
+ "type": "array",
151
+ "minItems": 3,
152
+ "maxItems": 3,
153
+ "items": {
154
+ "type": "number",
155
+ "minimum": -10000,
156
+ "maximum": 10000
157
+ }
158
+ },
159
+ "height": {
160
+ "type": "number",
161
+ "minimum": 0.2,
162
+ "maximum": 20
163
+ },
164
+ "headRatio": {
165
+ "type": "number",
166
+ "minimum": 2,
167
+ "maximum": 12
168
+ },
169
+ "thumbLimitsVersion": {
170
+ "const": 2
171
+ },
172
+ "color": {
173
+ "type": "string",
174
+ "pattern": "^#[0-9a-fA-F]{6}$"
175
+ },
176
+ "joints": {
177
+ "type": "array",
178
+ "minItems": 1,
179
+ "maxItems": 200,
180
+ "items": {
181
+ "type": "object",
182
+ "additionalProperties": false,
183
+ "required": [
184
+ "id",
185
+ "name",
186
+ "parentId",
187
+ "offset",
188
+ "lockPosition",
189
+ "radius",
190
+ "terminal"
191
+ ],
192
+ "properties": {
193
+ "id": {
194
+ "type": "string",
195
+ "minLength": 1,
196
+ "maxLength": 100
197
+ },
198
+ "name": {
199
+ "type": "string",
200
+ "minLength": 1,
201
+ "maxLength": 200
202
+ },
203
+ "parentId": {
204
+ "anyOf": [
205
+ {
206
+ "type": "string",
207
+ "minLength": 1,
208
+ "maxLength": 100
209
+ },
210
+ {
211
+ "type": "null"
212
+ }
213
+ ]
214
+ },
215
+ "offset": {
216
+ "type": "array",
217
+ "minItems": 3,
218
+ "maxItems": 3,
219
+ "items": {
220
+ "type": "number",
221
+ "minimum": -10000,
222
+ "maximum": 10000
223
+ }
224
+ },
225
+ "lockPosition": {
226
+ "type": "boolean"
227
+ },
228
+ "radius": {
229
+ "type": "number",
230
+ "exclusiveMinimum": 0,
231
+ "maximum": 10
232
+ },
233
+ "terminal": {
234
+ "type": "boolean"
235
+ }
236
+ }
237
+ }
238
+ },
239
+ "bones": {
240
+ "type": "array",
241
+ "maxItems": 199,
242
+ "items": {
243
+ "type": "object",
244
+ "additionalProperties": false,
245
+ "required": [
246
+ "id",
247
+ "name",
248
+ "startJointId",
249
+ "endJointId",
250
+ "rotation",
251
+ "restRotation",
252
+ "limits",
253
+ "lockRotation",
254
+ "modelPart"
255
+ ],
256
+ "properties": {
257
+ "id": {
258
+ "type": "string",
259
+ "minLength": 1,
260
+ "maxLength": 100
261
+ },
262
+ "name": {
263
+ "type": "string",
264
+ "minLength": 1,
265
+ "maxLength": 200
266
+ },
267
+ "startJointId": {
268
+ "type": "string",
269
+ "minLength": 1,
270
+ "maxLength": 100
271
+ },
272
+ "endJointId": {
273
+ "type": "string",
274
+ "minLength": 1,
275
+ "maxLength": 100
276
+ },
277
+ "rotation": {
278
+ "type": "array",
279
+ "minItems": 3,
280
+ "maxItems": 3,
281
+ "items": {
282
+ "type": "number",
283
+ "minimum": -10000,
284
+ "maximum": 10000
285
+ }
286
+ },
287
+ "restRotation": {
288
+ "type": "array",
289
+ "minItems": 3,
290
+ "maxItems": 3,
291
+ "items": {
292
+ "type": "number",
293
+ "minimum": -10000,
294
+ "maximum": 10000
295
+ }
296
+ },
297
+ "limits": {
298
+ "type": "object",
299
+ "additionalProperties": false,
300
+ "required": [
301
+ "min",
302
+ "max"
303
+ ],
304
+ "properties": {
305
+ "min": {
306
+ "type": "array",
307
+ "minItems": 3,
308
+ "maxItems": 3,
309
+ "items": {
310
+ "type": "number",
311
+ "minimum": -10000,
312
+ "maximum": 10000
313
+ }
314
+ },
315
+ "max": {
316
+ "type": "array",
317
+ "minItems": 3,
318
+ "maxItems": 3,
319
+ "items": {
320
+ "type": "number",
321
+ "minimum": -10000,
322
+ "maximum": 10000
323
+ }
324
+ }
325
+ }
326
+ },
327
+ "lockRotation": {
328
+ "type": "boolean"
329
+ },
330
+ "modelPart": {
331
+ "type": "string",
332
+ "minLength": 1,
333
+ "maxLength": 100
334
+ }
335
+ }
336
+ }
337
+ },
338
+ "appearance": {
339
+ "enum": [
340
+ "quaternius",
341
+ "geometric"
342
+ ]
343
+ },
344
+ "torsoRatio": {
345
+ "type": "number",
346
+ "minimum": 0.3,
347
+ "maximum": 0.7
348
+ },
349
+ "bodyType": {
350
+ "enum": [
351
+ "male",
352
+ "female"
353
+ ]
354
+ },
355
+ "neckLength": {
356
+ "type": "number",
357
+ "minimum": 0.6,
358
+ "maximum": 1.4
359
+ },
360
+ "palmSize": {
361
+ "type": "number",
362
+ "minimum": 0.7,
363
+ "maximum": 1.3
364
+ },
365
+ "fingerLength": {
366
+ "type": "number",
367
+ "minimum": 0.6,
368
+ "maximum": 1.4
369
+ },
370
+ "footSize": {
371
+ "type": "number",
372
+ "minimum": 0.7,
373
+ "maximum": 1.4
374
+ }
375
+ }
376
+ }
377
+ }
378
+ },
379
+ {
380
+ "type": "object",
381
+ "additionalProperties": false,
382
+ "required": [
383
+ "type",
384
+ "characterId",
385
+ "sourceJointId",
386
+ "parentId",
387
+ "idPrefix",
388
+ "offset"
389
+ ],
390
+ "properties": {
391
+ "type": {
392
+ "const": "add-limb"
393
+ },
394
+ "characterId": {
395
+ "type": "string",
396
+ "minLength": 1,
397
+ "maxLength": 100
398
+ },
399
+ "sourceJointId": {
400
+ "type": "string",
401
+ "minLength": 1,
402
+ "maxLength": 100
403
+ },
404
+ "parentId": {
405
+ "type": "string",
406
+ "minLength": 1,
407
+ "maxLength": 100
408
+ },
409
+ "idPrefix": {
410
+ "type": "string",
411
+ "minLength": 1,
412
+ "maxLength": 100
413
+ },
414
+ "offset": {
415
+ "type": "array",
416
+ "minItems": 3,
417
+ "maxItems": 3,
418
+ "items": {
419
+ "type": "number",
420
+ "minimum": -10000,
421
+ "maximum": 10000
422
+ }
423
+ }
424
+ }
425
+ },
426
+ {
427
+ "type": "object",
428
+ "additionalProperties": false,
429
+ "required": [
430
+ "type",
431
+ "characterId",
432
+ "height",
433
+ "headRatio"
434
+ ],
435
+ "properties": {
436
+ "type": {
437
+ "const": "set-proportions"
438
+ },
439
+ "characterId": {
440
+ "type": "string",
441
+ "minLength": 1,
442
+ "maxLength": 100
443
+ },
444
+ "height": {
445
+ "type": "number",
446
+ "minimum": 0.2,
447
+ "maximum": 20
448
+ },
449
+ "headRatio": {
450
+ "type": "number",
451
+ "minimum": 2,
452
+ "maximum": 12
453
+ },
454
+ "torsoRatio": {
455
+ "type": "number",
456
+ "minimum": 0.3,
457
+ "maximum": 0.7
458
+ },
459
+ "bodyType": {
460
+ "enum": [
461
+ "male",
462
+ "female"
463
+ ]
464
+ },
465
+ "neckLength": {
466
+ "type": "number",
467
+ "minimum": 0.6,
468
+ "maximum": 1.4
469
+ },
470
+ "palmSize": {
471
+ "type": "number",
472
+ "minimum": 0.7,
473
+ "maximum": 1.3
474
+ },
475
+ "fingerLength": {
476
+ "type": "number",
477
+ "minimum": 0.6,
478
+ "maximum": 1.4
479
+ },
480
+ "footSize": {
481
+ "type": "number",
482
+ "minimum": 0.7,
483
+ "maximum": 1.4
484
+ }
485
+ }
486
+ },
487
+ {
488
+ "type": "object",
489
+ "additionalProperties": false,
490
+ "required": [
491
+ "type",
492
+ "characterId",
493
+ "jointId",
494
+ "position"
495
+ ],
496
+ "properties": {
497
+ "type": {
498
+ "const": "move-joint"
499
+ },
500
+ "characterId": {
501
+ "type": "string",
502
+ "minLength": 1,
503
+ "maxLength": 100
504
+ },
505
+ "jointId": {
506
+ "type": "string",
507
+ "minLength": 1,
508
+ "maxLength": 100
509
+ },
510
+ "position": {
511
+ "type": "array",
512
+ "minItems": 3,
513
+ "maxItems": 3,
514
+ "items": {
515
+ "type": "number",
516
+ "minimum": -10000,
517
+ "maximum": 10000
518
+ }
519
+ }
520
+ }
521
+ },
522
+ {
523
+ "type": "object",
524
+ "additionalProperties": false,
525
+ "required": [
526
+ "type",
527
+ "characterId",
528
+ "jointId",
529
+ "position"
530
+ ],
531
+ "properties": {
532
+ "type": {
533
+ "const": "lock-joint"
534
+ },
535
+ "characterId": {
536
+ "type": "string",
537
+ "minLength": 1,
538
+ "maxLength": 100
539
+ },
540
+ "jointId": {
541
+ "type": "string",
542
+ "minLength": 1,
543
+ "maxLength": 100
544
+ },
545
+ "position": {
546
+ "type": "boolean"
547
+ }
548
+ }
549
+ },
550
+ {
551
+ "type": "object",
552
+ "additionalProperties": false,
553
+ "required": [
554
+ "type",
555
+ "object"
556
+ ],
557
+ "properties": {
558
+ "type": {
559
+ "const": "put-object"
560
+ },
561
+ "object": {
562
+ "type": "object",
563
+ "additionalProperties": false,
564
+ "required": [
565
+ "id",
566
+ "name",
567
+ "kind",
568
+ "position",
569
+ "rotation",
570
+ "size",
571
+ "color"
572
+ ],
573
+ "properties": {
574
+ "id": {
575
+ "type": "string",
576
+ "minLength": 1,
577
+ "maxLength": 100
578
+ },
579
+ "name": {
580
+ "type": "string",
581
+ "minLength": 1,
582
+ "maxLength": 200
583
+ },
584
+ "kind": {
585
+ "enum": [
586
+ "box",
587
+ "sphere",
588
+ "plane"
589
+ ]
590
+ },
591
+ "position": {
592
+ "type": "array",
593
+ "minItems": 3,
594
+ "maxItems": 3,
595
+ "items": {
596
+ "type": "number",
597
+ "minimum": -10000,
598
+ "maximum": 10000
599
+ }
600
+ },
601
+ "rotation": {
602
+ "type": "array",
603
+ "minItems": 3,
604
+ "maxItems": 3,
605
+ "items": {
606
+ "type": "number",
607
+ "minimum": -10000,
608
+ "maximum": 10000
609
+ }
610
+ },
611
+ "size": {
612
+ "type": "array",
613
+ "minItems": 3,
614
+ "maxItems": 3,
615
+ "items": {
616
+ "type": "number",
617
+ "minimum": -10000,
618
+ "maximum": 10000
619
+ }
620
+ },
621
+ "color": {
622
+ "type": "string",
623
+ "pattern": "^#[0-9a-fA-F]{6}$"
624
+ }
625
+ }
626
+ }
627
+ }
628
+ },
629
+ {
630
+ "type": "object",
631
+ "additionalProperties": false,
632
+ "required": [
633
+ "type",
634
+ "camera"
635
+ ],
636
+ "properties": {
637
+ "type": {
638
+ "const": "put-camera"
639
+ },
640
+ "camera": {
641
+ "type": "object",
642
+ "additionalProperties": false,
643
+ "required": [
644
+ "id",
645
+ "name",
646
+ "position",
647
+ "target",
648
+ "projection",
649
+ "fov",
650
+ "span",
651
+ "width",
652
+ "height",
653
+ "background"
654
+ ],
655
+ "properties": {
656
+ "id": {
657
+ "type": "string",
658
+ "minLength": 1,
659
+ "maxLength": 100
660
+ },
661
+ "name": {
662
+ "type": "string",
663
+ "minLength": 1,
664
+ "maxLength": 200
665
+ },
666
+ "position": {
667
+ "type": "array",
668
+ "minItems": 3,
669
+ "maxItems": 3,
670
+ "items": {
671
+ "type": "number",
672
+ "minimum": -10000,
673
+ "maximum": 10000
674
+ }
675
+ },
676
+ "target": {
677
+ "type": "array",
678
+ "minItems": 3,
679
+ "maxItems": 3,
680
+ "items": {
681
+ "type": "number",
682
+ "minimum": -10000,
683
+ "maximum": 10000
684
+ }
685
+ },
686
+ "projection": {
687
+ "enum": [
688
+ "perspective",
689
+ "orthographic"
690
+ ]
691
+ },
692
+ "fov": {
693
+ "type": "number",
694
+ "minimum": 10,
695
+ "maximum": 120
696
+ },
697
+ "span": {
698
+ "type": "number",
699
+ "minimum": 0.1,
700
+ "maximum": 1000
701
+ },
702
+ "width": {
703
+ "type": "integer",
704
+ "minimum": 128,
705
+ "maximum": 2048
706
+ },
707
+ "height": {
708
+ "type": "integer",
709
+ "minimum": 128,
710
+ "maximum": 2048
711
+ },
712
+ "background": {
713
+ "anyOf": [
714
+ {
715
+ "type": "string",
716
+ "pattern": "^#[0-9a-fA-F]{6}$"
717
+ },
718
+ {
719
+ "type": "null"
720
+ }
721
+ ]
722
+ }
723
+ }
724
+ }
725
+ }
726
+ },
727
+ {
728
+ "type": "object",
729
+ "additionalProperties": false,
730
+ "required": [
731
+ "type",
732
+ "id"
733
+ ],
734
+ "properties": {
735
+ "type": {
736
+ "const": "remove"
737
+ },
738
+ "id": {
739
+ "type": "string",
740
+ "minLength": 1,
741
+ "maxLength": 100
742
+ }
743
+ }
744
+ },
745
+ {
746
+ "type": "object",
747
+ "additionalProperties": false,
748
+ "required": [
749
+ "type",
750
+ "characterId",
751
+ "boneId",
752
+ "rotation"
753
+ ],
754
+ "properties": {
755
+ "type": {
756
+ "const": "rotate-bone"
757
+ },
758
+ "characterId": {
759
+ "type": "string",
760
+ "minLength": 1,
761
+ "maxLength": 100
762
+ },
763
+ "boneId": {
764
+ "type": "string",
765
+ "minLength": 1,
766
+ "maxLength": 100
767
+ },
768
+ "rotation": {
769
+ "type": "array",
770
+ "minItems": 3,
771
+ "maxItems": 3,
772
+ "items": {
773
+ "type": "number",
774
+ "minimum": -10000,
775
+ "maximum": 10000
776
+ }
777
+ }
778
+ }
779
+ },
780
+ {
781
+ "type": "object",
782
+ "additionalProperties": false,
783
+ "required": [
784
+ "type",
785
+ "characterId",
786
+ "boneId",
787
+ "rotation"
788
+ ],
789
+ "properties": {
790
+ "type": {
791
+ "const": "lock-bone"
792
+ },
793
+ "characterId": {
794
+ "type": "string",
795
+ "minLength": 1,
796
+ "maxLength": 100
797
+ },
798
+ "boneId": {
799
+ "type": "string",
800
+ "minLength": 1,
801
+ "maxLength": 100
802
+ },
803
+ "rotation": {
804
+ "type": "boolean"
805
+ }
806
+ }
807
+ },
808
+ {
809
+ "type": "object",
810
+ "additionalProperties": false,
811
+ "required": [
812
+ "type",
813
+ "characterId",
814
+ "boneId",
815
+ "limits"
816
+ ],
817
+ "properties": {
818
+ "type": {
819
+ "const": "set-bone-limits"
820
+ },
821
+ "characterId": {
822
+ "type": "string",
823
+ "minLength": 1,
824
+ "maxLength": 100
825
+ },
826
+ "boneId": {
827
+ "type": "string",
828
+ "minLength": 1,
829
+ "maxLength": 100
830
+ },
831
+ "limits": {
832
+ "type": "object",
833
+ "additionalProperties": false,
834
+ "required": [
835
+ "min",
836
+ "max"
837
+ ],
838
+ "properties": {
839
+ "min": {
840
+ "type": "array",
841
+ "minItems": 3,
842
+ "maxItems": 3,
843
+ "items": {
844
+ "type": "number",
845
+ "minimum": -10000,
846
+ "maximum": 10000
847
+ }
848
+ },
849
+ "max": {
850
+ "type": "array",
851
+ "minItems": 3,
852
+ "maxItems": 3,
853
+ "items": {
854
+ "type": "number",
855
+ "minimum": -10000,
856
+ "maximum": 10000
857
+ }
858
+ }
859
+ }
860
+ }
861
+ }
862
+ },
863
+ {
864
+ "type": "object",
865
+ "additionalProperties": false,
866
+ "required": [
867
+ "type",
868
+ "characterId"
869
+ ],
870
+ "properties": {
871
+ "type": {
872
+ "const": "reset-pose"
873
+ },
874
+ "characterId": {
875
+ "type": "string",
876
+ "minLength": 1,
877
+ "maxLength": 100
878
+ }
879
+ }
880
+ },
881
+ {
882
+ "type": "object",
883
+ "additionalProperties": false,
884
+ "required": [
885
+ "type",
886
+ "characterId",
887
+ "handBoneId"
888
+ ],
889
+ "properties": {
890
+ "type": {
891
+ "const": "pose-hand"
892
+ },
893
+ "characterId": {
894
+ "type": "string",
895
+ "minLength": 1,
896
+ "maxLength": 100
897
+ },
898
+ "handBoneId": {
899
+ "type": "string",
900
+ "minLength": 1,
901
+ "maxLength": 100
902
+ },
903
+ "curl": {
904
+ "type": "object",
905
+ "additionalProperties": false,
906
+ "minProperties": 1,
907
+ "properties": {
908
+ "thumb": {
909
+ "type": "number",
910
+ "minimum": 0,
911
+ "maximum": 1
912
+ },
913
+ "index": {
914
+ "type": "number",
915
+ "minimum": 0,
916
+ "maximum": 1
917
+ },
918
+ "middle": {
919
+ "type": "number",
920
+ "minimum": 0,
921
+ "maximum": 1
922
+ },
923
+ "ring": {
924
+ "type": "number",
925
+ "minimum": 0,
926
+ "maximum": 1
927
+ },
928
+ "little": {
929
+ "type": "number",
930
+ "minimum": 0,
931
+ "maximum": 1
932
+ }
933
+ }
934
+ },
935
+ "spread": {
936
+ "type": "number",
937
+ "minimum": 0,
938
+ "maximum": 1
939
+ },
940
+ "thumbOpposition": {
941
+ "type": "number",
942
+ "minimum": 0,
943
+ "maximum": 1
944
+ }
945
+ },
946
+ "anyOf": [
947
+ {
948
+ "required": [
949
+ "curl"
950
+ ]
951
+ },
952
+ {
953
+ "required": [
954
+ "spread"
955
+ ]
956
+ },
957
+ {
958
+ "required": [
959
+ "thumbOpposition"
960
+ ]
961
+ }
962
+ ]
963
+ },
964
+ {
965
+ "type": "object",
966
+ "additionalProperties": false,
967
+ "required": [
968
+ "type",
969
+ "characterId",
970
+ "handBoneId"
971
+ ],
972
+ "properties": {
973
+ "type": {
974
+ "const": "reset-hand"
975
+ },
976
+ "characterId": {
977
+ "type": "string",
978
+ "minLength": 1,
979
+ "maxLength": 100
980
+ },
981
+ "handBoneId": {
982
+ "type": "string",
983
+ "minLength": 1,
984
+ "maxLength": 100
985
+ }
986
+ }
987
+ },
988
+ {
989
+ "type": "object",
990
+ "additionalProperties": false,
991
+ "required": [
992
+ "type",
993
+ "box"
994
+ ],
995
+ "properties": {
996
+ "type": {
997
+ "const": "put-camera-box"
998
+ },
999
+ "box": {
1000
+ "type": "object",
1001
+ "additionalProperties": false,
1002
+ "required": [
1003
+ "id",
1004
+ "name",
1005
+ "position",
1006
+ "rotation",
1007
+ "size",
1008
+ "resolution"
1009
+ ],
1010
+ "properties": {
1011
+ "id": {
1012
+ "type": "string",
1013
+ "minLength": 1,
1014
+ "maxLength": 100
1015
+ },
1016
+ "name": {
1017
+ "type": "string",
1018
+ "minLength": 1,
1019
+ "maxLength": 200
1020
+ },
1021
+ "position": {
1022
+ "type": "array",
1023
+ "minItems": 3,
1024
+ "maxItems": 3,
1025
+ "items": {
1026
+ "type": "number",
1027
+ "minimum": -10000,
1028
+ "maximum": 10000
1029
+ }
1030
+ },
1031
+ "rotation": {
1032
+ "type": "array",
1033
+ "minItems": 3,
1034
+ "maxItems": 3,
1035
+ "items": {
1036
+ "type": "number",
1037
+ "minimum": -10000,
1038
+ "maximum": 10000
1039
+ }
1040
+ },
1041
+ "size": {
1042
+ "type": "number",
1043
+ "minimum": 0.05,
1044
+ "maximum": 1000
1045
+ },
1046
+ "resolution": {
1047
+ "type": "integer",
1048
+ "minimum": 128,
1049
+ "maximum": 1024
1050
+ }
1051
+ }
1052
+ }
1053
+ }
1054
+ },
1055
+ {
1056
+ "type": "object",
1057
+ "additionalProperties": false,
1058
+ "required": [
1059
+ "type",
1060
+ "id",
1061
+ "region"
1062
+ ],
1063
+ "properties": {
1064
+ "type": {
1065
+ "const": "fit-camera-box"
1066
+ },
1067
+ "id": {
1068
+ "type": "string",
1069
+ "minLength": 1,
1070
+ "maxLength": 100
1071
+ },
1072
+ "region": {
1073
+ "enum": [
1074
+ "scene",
1075
+ "hands"
1076
+ ]
1077
+ }
1078
+ }
1079
+ }
1080
+ ]
1081
+ }
1082
+ }