@playdrop/playdrop-cli 0.16.16 → 0.17.1

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 (369) hide show
  1. package/config/client-meta.json +4 -4
  2. package/dist/apiClient.d.ts +1 -2
  3. package/dist/apiClient.js +1 -16
  4. package/dist/appUrls.js +4 -0
  5. package/dist/apps/build.d.ts +12 -4
  6. package/dist/apps/build.js +55 -22
  7. package/dist/apps/index.d.ts +2 -1
  8. package/dist/apps/index.js +4 -1
  9. package/dist/apps/loadCheck.d.ts +5 -1
  10. package/dist/apps/loadCheck.js +52 -18
  11. package/dist/apps/serverBuild.d.ts +17 -0
  12. package/dist/apps/serverBuild.js +155 -0
  13. package/dist/apps/staticHtml.d.ts +1 -0
  14. package/dist/apps/staticHtml.js +19 -10
  15. package/dist/apps/upload.d.ts +12 -2
  16. package/dist/apps/upload.js +127 -46
  17. package/dist/catalogue.d.ts +23 -1
  18. package/dist/catalogue.js +126 -100
  19. package/dist/commandContext.d.ts +6 -3
  20. package/dist/commandContext.js +108 -18
  21. package/dist/commands/build.js +0 -7
  22. package/dist/commands/captureListing.d.ts +3 -0
  23. package/dist/commands/captureListing.js +48 -4
  24. package/dist/commands/chat.d.ts +4 -0
  25. package/dist/commands/chat.js +133 -8
  26. package/dist/commands/check.js +34 -1
  27. package/dist/commands/create.js +30 -263
  28. package/dist/commands/dev.js +37 -3
  29. package/dist/commands/devBrowser.js +2 -2
  30. package/dist/commands/devGameServer.d.ts +16 -0
  31. package/dist/commands/devGameServer.js +237 -0
  32. package/dist/commands/devRuntimeAssets.d.ts +1 -0
  33. package/dist/commands/devRuntimeAssets.js +2 -0
  34. package/dist/commands/devServer.d.ts +3 -0
  35. package/dist/commands/devServer.js +111 -5
  36. package/dist/commands/generation.d.ts +33 -4
  37. package/dist/commands/generation.js +304 -115
  38. package/dist/commands/login.js +23 -7
  39. package/dist/commands/review.d.ts +1 -1
  40. package/dist/commands/review.js +68 -95
  41. package/dist/commands/source.d.ts +19 -0
  42. package/dist/commands/source.js +142 -0
  43. package/dist/commands/tweaks.js +5 -11
  44. package/dist/commands/upload-content.d.ts +1 -1
  45. package/dist/commands/upload-content.js +16 -12
  46. package/dist/commands/upload.d.ts +17 -1
  47. package/dist/commands/upload.js +47 -10
  48. package/dist/commands/worker/archive-staging.d.ts +1 -0
  49. package/dist/commands/worker/archive-staging.js +13 -2
  50. package/dist/commands/worker/e2e-fixtures.d.ts +32 -0
  51. package/dist/commands/worker/e2e-fixtures.js +466 -0
  52. package/dist/commands/worker/game-server-infra.d.ts +80 -0
  53. package/dist/commands/worker/game-server-infra.js +595 -0
  54. package/dist/commands/worker/game-source-git.d.ts +126 -0
  55. package/dist/commands/worker/game-source-git.js +782 -0
  56. package/dist/commands/worker/generation.d.ts +94 -0
  57. package/dist/commands/worker/generation.js +1458 -0
  58. package/dist/commands/worker/runtime.d.ts +8 -10
  59. package/dist/commands/worker/runtime.js +51 -45
  60. package/dist/commands/worker.d.ts +79 -19
  61. package/dist/commands/worker.js +1796 -419
  62. package/dist/config.d.ts +2 -0
  63. package/dist/config.js +16 -3
  64. package/dist/environment.d.ts +0 -1
  65. package/dist/environment.js +0 -8
  66. package/dist/index.js +92 -13
  67. package/dist/workerAppProject.d.ts +1 -1
  68. package/dist/workerAppProject.js +15 -2
  69. package/node_modules/@playdrop/api-client/dist/client.d.ts +72 -25
  70. package/node_modules/@playdrop/api-client/dist/client.d.ts.map +1 -1
  71. package/node_modules/@playdrop/api-client/dist/client.js +33 -0
  72. package/node_modules/@playdrop/api-client/dist/core/request.d.ts +1 -0
  73. package/node_modules/@playdrop/api-client/dist/core/request.d.ts.map +1 -1
  74. package/node_modules/@playdrop/api-client/dist/core/request.js +17 -11
  75. package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.d.ts +51 -6
  76. package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.d.ts.map +1 -1
  77. package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.js +338 -41
  78. package/node_modules/@playdrop/api-client/dist/domains/ai.d.ts +24 -1
  79. package/node_modules/@playdrop/api-client/dist/domains/ai.d.ts.map +1 -1
  80. package/node_modules/@playdrop/api-client/dist/domains/ai.js +20 -0
  81. package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts +13 -8
  82. package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts.map +1 -1
  83. package/node_modules/@playdrop/api-client/dist/domains/apps.js +158 -90
  84. package/node_modules/@playdrop/api-client/dist/domains/assets.d.ts +4 -0
  85. package/node_modules/@playdrop/api-client/dist/domains/assets.d.ts.map +1 -1
  86. package/node_modules/@playdrop/api-client/dist/domains/assets.js +27 -0
  87. package/node_modules/@playdrop/api-client/dist/domains/chat.d.ts +35 -3
  88. package/node_modules/@playdrop/api-client/dist/domains/chat.d.ts.map +1 -1
  89. package/node_modules/@playdrop/api-client/dist/domains/chat.js +89 -7
  90. package/node_modules/@playdrop/api-client/dist/domains/player-meta.d.ts +2 -1
  91. package/node_modules/@playdrop/api-client/dist/domains/player-meta.d.ts.map +1 -1
  92. package/node_modules/@playdrop/api-client/dist/domains/player-meta.js +9 -0
  93. package/node_modules/@playdrop/api-client/dist/domains/playtrade.d.ts +1 -2
  94. package/node_modules/@playdrop/api-client/dist/domains/playtrade.d.ts.map +1 -1
  95. package/node_modules/@playdrop/api-client/dist/domains/playtrade.js +0 -11
  96. package/node_modules/@playdrop/api-client/dist/domains/social.d.ts +29 -0
  97. package/node_modules/@playdrop/api-client/dist/domains/social.d.ts.map +1 -0
  98. package/node_modules/@playdrop/api-client/dist/domains/social.js +79 -0
  99. package/node_modules/@playdrop/api-client/dist/index.d.ts +80 -29
  100. package/node_modules/@playdrop/api-client/dist/index.d.ts.map +1 -1
  101. package/node_modules/@playdrop/api-client/dist/index.js +217 -56
  102. package/node_modules/@playdrop/api-client/dist/runtime.d.ts +18 -0
  103. package/node_modules/@playdrop/api-client/dist/runtime.d.ts.map +1 -0
  104. package/node_modules/@playdrop/api-client/dist/runtime.js +54 -0
  105. package/node_modules/@playdrop/api-client/package.json +7 -0
  106. package/node_modules/@playdrop/config/client-meta.json +4 -4
  107. package/node_modules/@playdrop/config/dist/src/creator-plans.d.ts +11 -0
  108. package/node_modules/@playdrop/config/dist/src/creator-plans.d.ts.map +1 -1
  109. package/node_modules/@playdrop/config/dist/src/creator-plans.js +13 -1
  110. package/node_modules/@playdrop/config/dist/src/deployment.d.ts +0 -1
  111. package/node_modules/@playdrop/config/dist/src/deployment.d.ts.map +1 -1
  112. package/node_modules/@playdrop/config/dist/src/deployment.js +0 -8
  113. package/node_modules/@playdrop/config/dist/src/public-deployment.d.ts +0 -1
  114. package/node_modules/@playdrop/config/dist/src/public-deployment.d.ts.map +1 -1
  115. package/node_modules/@playdrop/config/dist/src/public-deployment.js +0 -8
  116. package/node_modules/@playdrop/config/dist/src/runtime-service-origins.d.ts +1 -1
  117. package/node_modules/@playdrop/config/dist/src/runtime-service-origins.js +2 -2
  118. package/node_modules/@playdrop/config/dist/src/server/logging.d.ts.map +1 -1
  119. package/node_modules/@playdrop/config/dist/src/server/logging.js +31 -2
  120. package/node_modules/@playdrop/config/dist/test/creator-plans.test.js +10 -0
  121. package/node_modules/@playdrop/config/dist/test/deployment.test.js +0 -4
  122. package/node_modules/@playdrop/config/dist/test/runtime-service-origins.test.js +2 -0
  123. package/node_modules/@playdrop/config/dist/tsconfig.tsbuildinfo +1 -1
  124. package/node_modules/@playdrop/config/package.json +6 -0
  125. package/node_modules/@playdrop/game-source-git/dist/src/archive.d.ts +9 -0
  126. package/node_modules/@playdrop/game-source-git/dist/src/archive.d.ts.map +1 -0
  127. package/node_modules/@playdrop/game-source-git/dist/src/archive.js +107 -0
  128. package/node_modules/@playdrop/game-source-git/dist/src/bundle-storage.d.ts +29 -0
  129. package/node_modules/@playdrop/game-source-git/dist/src/bundle-storage.d.ts.map +1 -0
  130. package/node_modules/@playdrop/game-source-git/dist/src/bundle-storage.js +64 -0
  131. package/node_modules/@playdrop/game-source-git/dist/src/export.d.ts +8 -0
  132. package/node_modules/@playdrop/game-source-git/dist/src/export.d.ts.map +1 -0
  133. package/node_modules/@playdrop/game-source-git/dist/src/export.js +25 -0
  134. package/node_modules/@playdrop/game-source-git/dist/src/git.d.ts +39 -0
  135. package/node_modules/@playdrop/game-source-git/dist/src/git.d.ts.map +1 -0
  136. package/node_modules/@playdrop/game-source-git/dist/src/git.js +195 -0
  137. package/node_modules/@playdrop/game-source-git/dist/src/ignore.d.ts +6 -0
  138. package/node_modules/@playdrop/game-source-git/dist/src/ignore.d.ts.map +1 -0
  139. package/node_modules/@playdrop/game-source-git/dist/src/ignore.js +51 -0
  140. package/node_modules/@playdrop/game-source-git/dist/src/index.d.ts +10 -0
  141. package/node_modules/@playdrop/game-source-git/dist/src/index.d.ts.map +1 -0
  142. package/node_modules/@playdrop/{boxel-core/dist/src/humanoid/r15 → game-source-git/dist/src}/index.js +9 -4
  143. package/node_modules/@playdrop/game-source-git/dist/src/lock.d.ts +17 -0
  144. package/node_modules/@playdrop/game-source-git/dist/src/lock.d.ts.map +1 -0
  145. package/node_modules/@playdrop/game-source-git/dist/src/lock.js +72 -0
  146. package/node_modules/@playdrop/game-source-git/dist/src/materialize.d.ts +10 -0
  147. package/node_modules/@playdrop/game-source-git/dist/src/materialize.d.ts.map +1 -0
  148. package/node_modules/@playdrop/game-source-git/dist/src/materialize.js +99 -0
  149. package/node_modules/@playdrop/game-source-git/dist/src/paths.d.ts +24 -0
  150. package/node_modules/@playdrop/game-source-git/dist/src/paths.d.ts.map +1 -0
  151. package/node_modules/@playdrop/game-source-git/dist/src/paths.js +207 -0
  152. package/node_modules/@playdrop/game-source-git/dist/src/repository.d.ts +66 -0
  153. package/node_modules/@playdrop/game-source-git/dist/src/repository.d.ts.map +1 -0
  154. package/node_modules/@playdrop/game-source-git/dist/src/repository.js +213 -0
  155. package/node_modules/@playdrop/game-source-git/dist/test/core.test.d.ts +2 -0
  156. package/node_modules/@playdrop/game-source-git/dist/test/core.test.d.ts.map +1 -0
  157. package/node_modules/@playdrop/game-source-git/dist/test/core.test.js +441 -0
  158. package/node_modules/@playdrop/game-source-git/dist/tsconfig.tsbuildinfo +1 -0
  159. package/node_modules/@playdrop/game-source-git/package.json +28 -0
  160. package/node_modules/@playdrop/types/dist/agent-task-terminal.d.ts +2 -2
  161. package/node_modules/@playdrop/types/dist/agent-task-terminal.d.ts.map +1 -1
  162. package/node_modules/@playdrop/types/dist/agent-task-terminal.js +15 -9
  163. package/node_modules/@playdrop/types/dist/api.d.ts +728 -164
  164. package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
  165. package/node_modules/@playdrop/types/dist/api.js +60 -11
  166. package/node_modules/@playdrop/types/dist/asset-pack.d.ts +2 -0
  167. package/node_modules/@playdrop/types/dist/asset-pack.d.ts.map +1 -1
  168. package/node_modules/@playdrop/types/dist/asset.d.ts +22 -8
  169. package/node_modules/@playdrop/types/dist/asset.d.ts.map +1 -1
  170. package/node_modules/@playdrop/types/dist/asset.js +26 -26
  171. package/node_modules/@playdrop/types/dist/chat.d.ts +107 -3
  172. package/node_modules/@playdrop/types/dist/chat.d.ts.map +1 -1
  173. package/node_modules/@playdrop/types/dist/chat.js +33 -4
  174. package/node_modules/@playdrop/types/dist/index.d.ts +3 -0
  175. package/node_modules/@playdrop/types/dist/index.d.ts.map +1 -1
  176. package/node_modules/@playdrop/types/dist/index.js +7 -1
  177. package/node_modules/@playdrop/types/dist/public-cache-tags.d.ts +11 -0
  178. package/node_modules/@playdrop/types/dist/public-cache-tags.d.ts.map +1 -0
  179. package/node_modules/@playdrop/types/dist/public-cache-tags.js +78 -0
  180. package/node_modules/@playdrop/types/dist/realtime.d.ts +3 -15
  181. package/node_modules/@playdrop/types/dist/realtime.d.ts.map +1 -1
  182. package/node_modules/@playdrop/types/dist/social.d.ts +64 -0
  183. package/node_modules/@playdrop/types/dist/social.d.ts.map +1 -0
  184. package/node_modules/@playdrop/{boxel-three/dist/src/types.js → types/dist/social.js} +14 -2
  185. package/node_modules/@playdrop/types/dist/spritesheet.d.ts +51 -0
  186. package/node_modules/@playdrop/types/dist/spritesheet.d.ts.map +1 -0
  187. package/node_modules/@playdrop/types/dist/spritesheet.js +73 -0
  188. package/node_modules/@playdrop/types/dist/version.d.ts +86 -58
  189. package/node_modules/@playdrop/types/dist/version.d.ts.map +1 -1
  190. package/node_modules/@playdrop/types/dist/version.js +111 -0
  191. package/node_modules/@playdrop/types/package.json +14 -0
  192. package/node_modules/@playdrop/vox-three/dist/src/index.d.ts +1 -1
  193. package/node_modules/@playdrop/vox-three/dist/src/index.js +1 -1
  194. package/node_modules/@playdrop/vox-three/dist/src/index.js.map +1 -1
  195. package/node_modules/@playdrop/vox-three/dist/src/vox.d.ts +0 -3
  196. package/node_modules/@playdrop/vox-three/dist/src/vox.js +0 -110
  197. package/node_modules/@playdrop/vox-three/dist/src/vox.js.map +1 -1
  198. package/node_modules/@playdrop/vox-three/dist/test/vox.test.js +0 -18
  199. package/node_modules/@playdrop/vox-three/dist/test/vox.test.js.map +1 -1
  200. package/node_modules/@playdrop/vox-three/package.json +8 -4
  201. package/node_modules/@playwright/mcp/node_modules/fsevents/LICENSE +22 -0
  202. package/node_modules/@playwright/mcp/node_modules/fsevents/README.md +83 -0
  203. package/node_modules/@playwright/mcp/node_modules/fsevents/fsevents.d.ts +46 -0
  204. package/node_modules/@playwright/mcp/node_modules/fsevents/fsevents.js +82 -0
  205. package/node_modules/@playwright/mcp/node_modules/fsevents/fsevents.node +0 -0
  206. package/node_modules/@playwright/mcp/node_modules/fsevents/package.json +62 -0
  207. package/package.json +9 -11
  208. package/dist/assets/model-artifacts.d.ts +0 -8
  209. package/dist/assets/model-artifacts.js +0 -382
  210. package/dist/assets/model-worker.d.ts +0 -22
  211. package/dist/assets/model-worker.js +0 -123
  212. package/node_modules/@playdrop/ai-client/dist/index.d.ts +0 -441
  213. package/node_modules/@playdrop/ai-client/dist/index.d.ts.map +0 -1
  214. package/node_modules/@playdrop/ai-client/dist/index.js +0 -499
  215. package/node_modules/@playdrop/ai-client/package.json +0 -22
  216. package/node_modules/@playdrop/boxel-core/dist/src/entity-cleaner.d.ts +0 -13
  217. package/node_modules/@playdrop/boxel-core/dist/src/entity-cleaner.js +0 -141
  218. package/node_modules/@playdrop/boxel-core/dist/src/entity-cleaner.js.map +0 -1
  219. package/node_modules/@playdrop/boxel-core/dist/src/entity-utils.d.ts +0 -47
  220. package/node_modules/@playdrop/boxel-core/dist/src/entity-utils.js +0 -313
  221. package/node_modules/@playdrop/boxel-core/dist/src/entity-utils.js.map +0 -1
  222. package/node_modules/@playdrop/boxel-core/dist/src/format-utils.d.ts +0 -3
  223. package/node_modules/@playdrop/boxel-core/dist/src/format-utils.js +0 -36
  224. package/node_modules/@playdrop/boxel-core/dist/src/format-utils.js.map +0 -1
  225. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/geometry.d.ts +0 -23
  226. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/geometry.js +0 -11
  227. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/geometry.js.map +0 -1
  228. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/index.d.ts +0 -4
  229. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/index.js +0 -21
  230. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/index.js.map +0 -1
  231. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/common.d.ts +0 -4
  232. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/common.js +0 -24
  233. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/common.js.map +0 -1
  234. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/index.d.ts +0 -3
  235. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/index.js.map +0 -1
  236. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/textured-builder.d.ts +0 -3
  237. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/textured-builder.js +0 -387
  238. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/textured-builder.js.map +0 -1
  239. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/types.d.ts +0 -6
  240. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/types.js +0 -3
  241. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/types.js.map +0 -1
  242. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/voxel-builder.d.ts +0 -3
  243. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/voxel-builder.js +0 -373
  244. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/voxel-builder.js.map +0 -1
  245. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/builder.d.ts +0 -12
  246. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/builder.js +0 -215
  247. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/builder.js.map +0 -1
  248. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/index.d.ts +0 -4
  249. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/index.js +0 -18
  250. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/index.js.map +0 -1
  251. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/scanner.d.ts +0 -42
  252. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/scanner.js +0 -145
  253. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/scanner.js.map +0 -1
  254. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/artifacts.d.ts +0 -26
  255. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/artifacts.js +0 -65
  256. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/artifacts.js.map +0 -1
  257. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/face-map.d.ts +0 -33
  258. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/face-map.js +0 -175
  259. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/face-map.js.map +0 -1
  260. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/humanoid_r15.json +0 -1517
  261. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/humanoid_r6.json +0 -61
  262. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/index.d.ts +0 -10
  263. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/index.js +0 -23
  264. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/index.js.map +0 -1
  265. package/node_modules/@playdrop/boxel-core/dist/src/index.d.ts +0 -19
  266. package/node_modules/@playdrop/boxel-core/dist/src/index.js +0 -36
  267. package/node_modules/@playdrop/boxel-core/dist/src/index.js.map +0 -1
  268. package/node_modules/@playdrop/boxel-core/dist/src/materials.d.ts +0 -26
  269. package/node_modules/@playdrop/boxel-core/dist/src/materials.js +0 -184
  270. package/node_modules/@playdrop/boxel-core/dist/src/materials.js.map +0 -1
  271. package/node_modules/@playdrop/boxel-core/dist/src/palette_tools.d.ts +0 -68
  272. package/node_modules/@playdrop/boxel-core/dist/src/palette_tools.js +0 -488
  273. package/node_modules/@playdrop/boxel-core/dist/src/palette_tools.js.map +0 -1
  274. package/node_modules/@playdrop/boxel-core/dist/src/serialization.d.ts +0 -4
  275. package/node_modules/@playdrop/boxel-core/dist/src/serialization.js +0 -380
  276. package/node_modules/@playdrop/boxel-core/dist/src/serialization.js.map +0 -1
  277. package/node_modules/@playdrop/boxel-core/dist/src/textures.d.ts +0 -29
  278. package/node_modules/@playdrop/boxel-core/dist/src/textures.js +0 -208
  279. package/node_modules/@playdrop/boxel-core/dist/src/textures.js.map +0 -1
  280. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/infer-face.d.ts +0 -9
  281. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/infer-face.js +0 -312
  282. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/infer-face.js.map +0 -1
  283. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/layer-mode.d.ts +0 -9
  284. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/layer-mode.js +0 -154
  285. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/layer-mode.js.map +0 -1
  286. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/merge-overlay.d.ts +0 -2
  287. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/merge-overlay.js +0 -121
  288. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/merge-overlay.js.map +0 -1
  289. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/slice.d.ts +0 -20
  290. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/slice.js +0 -389
  291. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/slice.js.map +0 -1
  292. package/node_modules/@playdrop/boxel-core/dist/src/transforms/upscale.d.ts +0 -3
  293. package/node_modules/@playdrop/boxel-core/dist/src/transforms/upscale.js +0 -206
  294. package/node_modules/@playdrop/boxel-core/dist/src/transforms/upscale.js.map +0 -1
  295. package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/slice.d.ts +0 -12
  296. package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/slice.js +0 -81
  297. package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/slice.js.map +0 -1
  298. package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/textured-to-voxel.d.ts +0 -12
  299. package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/textured-to-voxel.js +0 -318
  300. package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/textured-to-voxel.js.map +0 -1
  301. package/node_modules/@playdrop/boxel-core/dist/src/types.d.ts +0 -168
  302. package/node_modules/@playdrop/boxel-core/dist/src/types.js +0 -3
  303. package/node_modules/@playdrop/boxel-core/dist/src/types.js.map +0 -1
  304. package/node_modules/@playdrop/boxel-core/dist/src/validation.d.ts +0 -24
  305. package/node_modules/@playdrop/boxel-core/dist/src/validation.js +0 -620
  306. package/node_modules/@playdrop/boxel-core/dist/src/validation.js.map +0 -1
  307. package/node_modules/@playdrop/boxel-core/dist/src/voxels/greedy-mesher.d.ts +0 -11
  308. package/node_modules/@playdrop/boxel-core/dist/src/voxels/greedy-mesher.js +0 -135
  309. package/node_modules/@playdrop/boxel-core/dist/src/voxels/greedy-mesher.js.map +0 -1
  310. package/node_modules/@playdrop/boxel-core/dist/src/voxels.d.ts +0 -23
  311. package/node_modules/@playdrop/boxel-core/dist/src/voxels.js +0 -52
  312. package/node_modules/@playdrop/boxel-core/dist/src/voxels.js.map +0 -1
  313. package/node_modules/@playdrop/boxel-core/package.json +0 -19
  314. package/node_modules/@playdrop/boxel-three/dist/src/animations.d.ts +0 -4
  315. package/node_modules/@playdrop/boxel-three/dist/src/animations.js +0 -92
  316. package/node_modules/@playdrop/boxel-three/dist/src/builders.d.ts +0 -8
  317. package/node_modules/@playdrop/boxel-three/dist/src/builders.js +0 -363
  318. package/node_modules/@playdrop/boxel-three/dist/src/context.d.ts +0 -24
  319. package/node_modules/@playdrop/boxel-three/dist/src/context.js +0 -58
  320. package/node_modules/@playdrop/boxel-three/dist/src/exporters/glb.d.ts +0 -100
  321. package/node_modules/@playdrop/boxel-three/dist/src/exporters/glb.js +0 -927
  322. package/node_modules/@playdrop/boxel-three/dist/src/exporters/image.d.ts +0 -18
  323. package/node_modules/@playdrop/boxel-three/dist/src/exporters/image.js +0 -294
  324. package/node_modules/@playdrop/boxel-three/dist/src/index.d.ts +0 -17
  325. package/node_modules/@playdrop/boxel-three/dist/src/index.js +0 -64
  326. package/node_modules/@playdrop/boxel-three/dist/src/instantiate.d.ts +0 -40
  327. package/node_modules/@playdrop/boxel-three/dist/src/instantiate.js +0 -96
  328. package/node_modules/@playdrop/boxel-three/dist/src/nodes.d.ts +0 -8
  329. package/node_modules/@playdrop/boxel-three/dist/src/nodes.js +0 -88
  330. package/node_modules/@playdrop/boxel-three/dist/src/overlays.d.ts +0 -7
  331. package/node_modules/@playdrop/boxel-three/dist/src/overlays.js +0 -123
  332. package/node_modules/@playdrop/boxel-three/dist/src/primitives.d.ts +0 -4
  333. package/node_modules/@playdrop/boxel-three/dist/src/primitives.js +0 -48
  334. package/node_modules/@playdrop/boxel-three/dist/src/scene.d.ts +0 -3
  335. package/node_modules/@playdrop/boxel-three/dist/src/scene.js +0 -168
  336. package/node_modules/@playdrop/boxel-three/dist/src/skinned-mesh.d.ts +0 -29
  337. package/node_modules/@playdrop/boxel-three/dist/src/skinned-mesh.js +0 -623
  338. package/node_modules/@playdrop/boxel-three/dist/src/texture-atlas.d.ts +0 -13
  339. package/node_modules/@playdrop/boxel-three/dist/src/texture-atlas.js +0 -133
  340. package/node_modules/@playdrop/boxel-three/dist/src/textures.d.ts +0 -17
  341. package/node_modules/@playdrop/boxel-three/dist/src/textures.js +0 -216
  342. package/node_modules/@playdrop/boxel-three/dist/src/types.d.ts +0 -112
  343. package/node_modules/@playdrop/boxel-three/dist/src/voxels/faces.d.ts +0 -28
  344. package/node_modules/@playdrop/boxel-three/dist/src/voxels/faces.js +0 -344
  345. package/node_modules/@playdrop/boxel-three/dist/src/voxels/mesher.d.ts +0 -24
  346. package/node_modules/@playdrop/boxel-three/dist/src/voxels/mesher.js +0 -113
  347. package/node_modules/@playdrop/boxel-three/dist/test/export-image.playwright.test.d.ts +0 -1
  348. package/node_modules/@playdrop/boxel-three/dist/test/export-image.playwright.test.js +0 -137
  349. package/node_modules/@playdrop/boxel-three/dist/test/fixtures/render-worker.d.ts +0 -20
  350. package/node_modules/@playdrop/boxel-three/dist/test/fixtures/render-worker.js +0 -85
  351. package/node_modules/@playdrop/boxel-three/dist/test/glb-skinned.test.d.ts +0 -1
  352. package/node_modules/@playdrop/boxel-three/dist/test/glb-skinned.test.js +0 -104
  353. package/node_modules/@playdrop/boxel-three/dist/test/index.test.d.ts +0 -1
  354. package/node_modules/@playdrop/boxel-three/dist/test/index.test.js +0 -30
  355. package/node_modules/@playdrop/boxel-three/dist/test/instantiate.test.d.ts +0 -1
  356. package/node_modules/@playdrop/boxel-three/dist/test/instantiate.test.js +0 -88
  357. package/node_modules/@playdrop/boxel-three/dist/test/overlays.test.d.ts +0 -1
  358. package/node_modules/@playdrop/boxel-three/dist/test/overlays.test.js +0 -42
  359. package/node_modules/@playdrop/boxel-three/dist/test/scene-filter.test.d.ts +0 -1
  360. package/node_modules/@playdrop/boxel-three/dist/test/scene-filter.test.js +0 -73
  361. package/node_modules/@playdrop/boxel-three/dist/test/scene-smoke.test.d.ts +0 -1
  362. package/node_modules/@playdrop/boxel-three/dist/test/scene-smoke.test.js +0 -85
  363. package/node_modules/@playdrop/boxel-three/dist/test/skinned-mesh.test.d.ts +0 -1
  364. package/node_modules/@playdrop/boxel-three/dist/test/skinned-mesh.test.js +0 -73
  365. package/node_modules/@playdrop/boxel-three/dist/test/textured-overlay.test.d.ts +0 -1
  366. package/node_modules/@playdrop/boxel-three/dist/test/textured-overlay.test.js +0 -136
  367. package/node_modules/@playdrop/boxel-three/dist/test/voxels.test.d.ts +0 -1
  368. package/node_modules/@playdrop/boxel-three/dist/test/voxels.test.js +0 -42
  369. package/node_modules/@playdrop/boxel-three/package.json +0 -28
@@ -1,15 +1,38 @@
1
- export declare const CHAT_CHANNEL_SLUGS: readonly ["new-content", "published-content", "new-user", "game-review", "purchases", "credit-transactions", "subscription-transactions", "prod-alert", "content-report", "user-report", "comment-report", "message-report", "improvement-loop", "bot-test"];
1
+ import type { PlatformFriendPresenceEntry, SocialMessage } from "./social.js";
2
+ import type { PlayTradeInputKind } from "./playtrade.js";
3
+ export declare const CHAT_CHANNEL_SLUGS: readonly ["new-content", "published-content", "new-user", "agent-tasks", "purchases", "credit-transactions", "subscription-transactions", "prod-alert", "content-report", "user-report", "comment-report", "message-report", "improvement-loop", "bot-test", "cloud-workers"];
2
4
  export type ChatChannelSlug = (typeof CHAT_CHANNEL_SLUGS)[number];
3
5
  export type ChatConversationType = "INTERNAL_CHANNEL" | "COMMUNITY_CHANNEL" | "DIRECT";
4
6
  export type ChatChannelReadPolicy = "ADMIN_ONLY" | "PUBLIC";
7
+ export type ChatChannelWritePolicy = "ADMIN_ONLY" | "REGISTERED_USERS";
5
8
  export type ChatUserKind = "REAL" | "TEST" | "HUMAN" | "BOT" | "AGENT";
6
9
  export type ChatAttachmentKind = "LINK" | "IMAGE" | "VIDEO" | "JSON" | "MARKDOWN";
10
+ export declare const CHAT_USER_MESSAGE_MAX_LENGTH = 480;
11
+ export declare const CHAT_ADMIN_USERNAMES: readonly ["playdrop", "olivier"];
12
+ export declare const COMMUNITY_CHAT_CHANNELS: readonly [{
13
+ readonly slug: "announcements";
14
+ readonly displayName: "Announcements";
15
+ readonly symbol: "📢";
16
+ readonly position: 1;
17
+ readonly writePolicy: "ADMIN_ONLY";
18
+ }, {
19
+ readonly slug: "general";
20
+ readonly displayName: "General";
21
+ readonly symbol: "👋";
22
+ readonly position: 2;
23
+ readonly writePolicy: "REGISTERED_USERS";
24
+ }];
25
+ export declare function isChatAdminIdentity(identity: {
26
+ username?: string | null;
27
+ role?: string | null;
28
+ }): boolean;
7
29
  export type ChatAuthor = {
8
30
  id: number;
9
31
  username: string;
10
32
  displayName: string;
11
33
  kind: ChatUserKind;
12
34
  avatarUrl: string | null;
35
+ isChatAdmin: boolean;
13
36
  };
14
37
  export type ChatReaction = {
15
38
  emoji: string;
@@ -38,6 +61,9 @@ export type ChatMessageQuote = {
38
61
  deleted: boolean;
39
62
  author: Pick<ChatAuthor, "id" | "username" | "displayName"> | null;
40
63
  };
64
+ export type ChatGameSocialMessage = SocialMessage & {
65
+ development: boolean;
66
+ };
41
67
  export type ChatMessage = {
42
68
  id: string;
43
69
  conversationId: string;
@@ -52,6 +78,7 @@ export type ChatMessage = {
52
78
  deletedAt: string | null;
53
79
  eventType: string | null;
54
80
  eventData: unknown | null;
81
+ gameSocial: ChatGameSocialMessage | null;
55
82
  clientMessageId: string | null;
56
83
  clientKey: string | null;
57
84
  editedAt: string | null;
@@ -81,6 +108,7 @@ export type ChatConversation = {
81
108
  channel: {
82
109
  slug: string;
83
110
  displayName: string;
111
+ symbol: string | null;
84
112
  position: number;
85
113
  archivedAt: string | null;
86
114
  } | null;
@@ -104,12 +132,23 @@ export type ChatConversationsResponse = {
104
132
  export type ChatConversationResponse = {
105
133
  conversation: ChatConversation;
106
134
  };
135
+ export type ChatContact = ChatAuthor & {
136
+ relationshipReason: "CHAT_ADMIN" | "MUTUAL_FOLLOW";
137
+ };
138
+ export type ChatContactsResponse = {
139
+ admins: ChatContact[];
140
+ friends: ChatContact[];
141
+ hasMoreFriends: boolean;
142
+ nextFriendsCursor: string | null;
143
+ };
107
144
  export type ChatChannel = {
108
145
  id: string;
109
146
  slug: string;
110
147
  displayName: string;
148
+ symbol: string | null;
111
149
  position: number;
112
150
  readPolicy: ChatChannelReadPolicy;
151
+ writePolicy: ChatChannelWritePolicy;
113
152
  canWrite: boolean;
114
153
  unreadCount: number;
115
154
  unreadCountCapped: boolean;
@@ -119,6 +158,8 @@ export type ChatChannelsResponse = {
119
158
  channels: ChatChannel[];
120
159
  };
121
160
  export type ChatMessagesResponse = {
161
+ conversationId?: string;
162
+ threadingAvailable?: boolean;
122
163
  messages: ChatMessage[];
123
164
  hasMore: boolean;
124
165
  hasMoreBefore: boolean;
@@ -171,6 +212,8 @@ export type ChatNotificationPreferences = {
171
212
  communityPushEnabled: boolean;
172
213
  };
173
214
  export declare const CHAT_REALTIME_HEARTBEAT_INTERVAL_MS = 25000;
215
+ export declare const PLATFORM_REALTIME_TOPIC_VALUES: readonly ["arena", "creation", "generation", "playtrade", "rewards", "checkout"];
216
+ export type PlatformRealtimeTopic = (typeof PLATFORM_REALTIME_TOPIC_VALUES)[number];
174
217
  export type ChatRealtimeAuthFrame = {
175
218
  type: "auth";
176
219
  token: string;
@@ -189,7 +232,29 @@ export type ChatRealtimeTypingFrame = {
189
232
  conversationId: string;
190
233
  active: boolean;
191
234
  };
192
- export type ChatRealtimeClientFrame = ChatRealtimeAuthFrame | ChatRealtimeSubscribeFrame | ChatRealtimeUnsubscribeFrame | ChatRealtimeTypingFrame;
235
+ export type ChatRealtimePresenceContextFrame = {
236
+ type: "presence.context";
237
+ context: "ONLINE" | "CREATING";
238
+ };
239
+ export type PlatformRealtimeSubscribeFrame = {
240
+ type: "platform.subscribe";
241
+ topic: PlatformRealtimeTopic;
242
+ lastEventVersion: string | null;
243
+ };
244
+ export type PlatformRealtimeUnsubscribeFrame = {
245
+ type: "platform.unsubscribe";
246
+ topic: PlatformRealtimeTopic;
247
+ };
248
+ export type PlayTradeRealtimeActivityFrame = {
249
+ type: "playtrade.activity";
250
+ sessionId: string;
251
+ sequence: number;
252
+ foreground: boolean;
253
+ focused: boolean;
254
+ inputKind?: PlayTradeInputKind;
255
+ parallelDetected?: boolean;
256
+ };
257
+ export type ChatRealtimeClientFrame = ChatRealtimeAuthFrame | ChatRealtimeSubscribeFrame | ChatRealtimeUnsubscribeFrame | ChatRealtimeTypingFrame | ChatRealtimePresenceContextFrame | PlatformRealtimeSubscribeFrame | PlatformRealtimeUnsubscribeFrame | PlayTradeRealtimeActivityFrame;
193
258
  export type ChatRealtimeMessageEvent = {
194
259
  id: string;
195
260
  version: string;
@@ -212,6 +277,14 @@ export type ChatRealtimeConversationEvent = {
212
277
  conversationId: string;
213
278
  };
214
279
  export type ChatRealtimeEvent = ChatRealtimeMessageEvent | ChatRealtimeReadEvent | ChatRealtimeConversationEvent;
280
+ export type PlayTradeRealtimeActivityUpdate = {
281
+ sessionId: string;
282
+ sequence: number;
283
+ activeMs: number;
284
+ remainingMs: number;
285
+ reviewReady: boolean;
286
+ active: boolean;
287
+ };
215
288
  export type ChatRealtimeErrorCode = "chat_realtime_invalid_frame" | "chat_realtime_unauthorized" | "chat_realtime_forbidden" | "chat_realtime_rate_limited" | "chat_realtime_backpressure" | "chat_realtime_unavailable";
216
289
  export type ChatRealtimeServerFrame = {
217
290
  type: "ready";
@@ -224,7 +297,13 @@ export type ChatRealtimeServerFrame = {
224
297
  type: "conversation.event";
225
298
  event: ChatRealtimeEvent;
226
299
  } | {
227
- type: "inbox.updated";
300
+ type: "inbox.snapshot";
301
+ conversations: ChatConversation[];
302
+ } | {
303
+ type: "inbox.event";
304
+ event: ChatRealtimeEvent;
305
+ } | {
306
+ type: "inbox.resync_required";
228
307
  conversationId: string;
229
308
  } | {
230
309
  type: "typing.updated";
@@ -232,9 +311,34 @@ export type ChatRealtimeServerFrame = {
232
311
  userId: number;
233
312
  active: boolean;
234
313
  expiresAt: string;
314
+ } | {
315
+ type: "presence.snapshot";
316
+ entries: PlatformFriendPresenceEntry[];
317
+ } | {
318
+ type: "presence.updated";
319
+ entry: PlatformFriendPresenceEntry;
235
320
  } | {
236
321
  type: "resync_required";
237
322
  conversationId: string;
323
+ } | {
324
+ type: "platform.subscribed";
325
+ topic: PlatformRealtimeTopic;
326
+ eventVersion: string;
327
+ } | {
328
+ type: "platform.event";
329
+ topic: PlatformRealtimeTopic;
330
+ eventVersion: string;
331
+ } | {
332
+ type: "platform.resync_required";
333
+ topic: PlatformRealtimeTopic;
334
+ eventVersion: string;
335
+ } | {
336
+ type: "playtrade.activity.updated";
337
+ activity: PlayTradeRealtimeActivityUpdate;
338
+ } | {
339
+ type: "playtrade.activity.error";
340
+ sessionId: string;
341
+ code: string;
238
342
  } | {
239
343
  type: "error";
240
344
  code: ChatRealtimeErrorCode;
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../src/chat.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,8PAerB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAClE,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,QAAQ,CAAC;AACvF,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG,QAAQ,CAAC;AAC5D,MAAM,M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E,GACxF;IAAE,IAAI,EAAE,4BAA4B,CAAC;IAAC,QAAQ,EAAE,+BAA+B,CAAA;CAAE,GACjF;IAAE,IAAI,EAAE,0BAA0B,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACrE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,qBAAqB,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -17,15 +17,20 @@ var __copyProps = (to, from, except, desc) => {
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
  var chat_exports = {};
19
19
  __export(chat_exports, {
20
+ CHAT_ADMIN_USERNAMES: () => CHAT_ADMIN_USERNAMES,
20
21
  CHAT_CHANNEL_SLUGS: () => CHAT_CHANNEL_SLUGS,
21
- CHAT_REALTIME_HEARTBEAT_INTERVAL_MS: () => CHAT_REALTIME_HEARTBEAT_INTERVAL_MS
22
+ CHAT_REALTIME_HEARTBEAT_INTERVAL_MS: () => CHAT_REALTIME_HEARTBEAT_INTERVAL_MS,
23
+ CHAT_USER_MESSAGE_MAX_LENGTH: () => CHAT_USER_MESSAGE_MAX_LENGTH,
24
+ COMMUNITY_CHAT_CHANNELS: () => COMMUNITY_CHAT_CHANNELS,
25
+ PLATFORM_REALTIME_TOPIC_VALUES: () => PLATFORM_REALTIME_TOPIC_VALUES,
26
+ isChatAdminIdentity: () => isChatAdminIdentity
22
27
  });
23
28
  module.exports = __toCommonJS(chat_exports);
24
29
  const CHAT_CHANNEL_SLUGS = [
25
30
  "new-content",
26
31
  "published-content",
27
32
  "new-user",
28
- "game-review",
33
+ "agent-tasks",
29
34
  "purchases",
30
35
  "credit-transactions",
31
36
  "subscription-transactions",
@@ -35,11 +40,35 @@ const CHAT_CHANNEL_SLUGS = [
35
40
  "comment-report",
36
41
  "message-report",
37
42
  "improvement-loop",
38
- "bot-test"
43
+ "bot-test",
44
+ "cloud-workers"
39
45
  ];
46
+ const CHAT_USER_MESSAGE_MAX_LENGTH = 480;
47
+ const CHAT_ADMIN_USERNAMES = ["playdrop", "olivier"];
48
+ const COMMUNITY_CHAT_CHANNELS = [
49
+ { slug: "announcements", displayName: "Announcements", symbol: "\u{1F4E2}", position: 1, writePolicy: "ADMIN_ONLY" },
50
+ { slug: "general", displayName: "General", symbol: "\u{1F44B}", position: 2, writePolicy: "REGISTERED_USERS" }
51
+ ];
52
+ function isChatAdminIdentity(identity) {
53
+ const username = identity.username?.trim().toLowerCase();
54
+ return identity.role === "ADMIN" && CHAT_ADMIN_USERNAMES.some((candidate) => candidate === username);
55
+ }
40
56
  const CHAT_REALTIME_HEARTBEAT_INTERVAL_MS = 25e3;
57
+ const PLATFORM_REALTIME_TOPIC_VALUES = [
58
+ "arena",
59
+ "creation",
60
+ "generation",
61
+ "playtrade",
62
+ "rewards",
63
+ "checkout"
64
+ ];
41
65
  // Annotate the CommonJS export names for ESM import in node:
42
66
  0 && (module.exports = {
67
+ CHAT_ADMIN_USERNAMES,
43
68
  CHAT_CHANNEL_SLUGS,
44
- CHAT_REALTIME_HEARTBEAT_INTERVAL_MS
69
+ CHAT_REALTIME_HEARTBEAT_INTERVAL_MS,
70
+ CHAT_USER_MESSAGE_MAX_LENGTH,
71
+ COMMUNITY_CHAT_CHANNELS,
72
+ PLATFORM_REALTIME_TOPIC_VALUES,
73
+ isChatAdminIdentity
45
74
  });
@@ -12,6 +12,7 @@ export * from "./version.js";
12
12
  export * from "./asset.js";
13
13
  export * from "./asset-spec.js";
14
14
  export * from "./asset-pack.js";
15
+ export * from "./spritesheet.js";
15
16
  export * from "./owned-assets.js";
16
17
  export * from "./graph.js";
17
18
  export * from "./creator-public-image.js";
@@ -22,5 +23,7 @@ export * from "./agent-task-terminal.js";
22
23
  export * from "./release-smoke.js";
23
24
  export * from "./locale.js";
24
25
  export * from "./chat.js";
26
+ export * from "./social.js";
25
27
  export * from "./attachment-policy.js";
28
+ export * from "./public-cache-tags.js";
26
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AAGzB,mBAAmB,eAAe,CAAC;AAGnC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,cAAc,CAAC;AAG7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AAGzB,mBAAmB,eAAe,CAAC;AAGnC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,cAAc,CAAC;AAG7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
@@ -27,6 +27,7 @@ __reExport(dist_exports, require("./version.js"), module.exports);
27
27
  __reExport(dist_exports, require("./asset.js"), module.exports);
28
28
  __reExport(dist_exports, require("./asset-spec.js"), module.exports);
29
29
  __reExport(dist_exports, require("./asset-pack.js"), module.exports);
30
+ __reExport(dist_exports, require("./spritesheet.js"), module.exports);
30
31
  __reExport(dist_exports, require("./owned-assets.js"), module.exports);
31
32
  __reExport(dist_exports, require("./graph.js"), module.exports);
32
33
  __reExport(dist_exports, require("./creator-public-image.js"), module.exports);
@@ -37,7 +38,9 @@ __reExport(dist_exports, require("./agent-task-terminal.js"), module.exports);
37
38
  __reExport(dist_exports, require("./release-smoke.js"), module.exports);
38
39
  __reExport(dist_exports, require("./locale.js"), module.exports);
39
40
  __reExport(dist_exports, require("./chat.js"), module.exports);
41
+ __reExport(dist_exports, require("./social.js"), module.exports);
40
42
  __reExport(dist_exports, require("./attachment-policy.js"), module.exports);
43
+ __reExport(dist_exports, require("./public-cache-tags.js"), module.exports);
41
44
  // Annotate the CommonJS export names for ESM import in node:
42
45
  0 && (module.exports = {
43
46
  ...require("./api.js"),
@@ -53,6 +56,7 @@ __reExport(dist_exports, require("./attachment-policy.js"), module.exports);
53
56
  ...require("./asset.js"),
54
57
  ...require("./asset-spec.js"),
55
58
  ...require("./asset-pack.js"),
59
+ ...require("./spritesheet.js"),
56
60
  ...require("./owned-assets.js"),
57
61
  ...require("./graph.js"),
58
62
  ...require("./creator-public-image.js"),
@@ -63,5 +67,7 @@ __reExport(dist_exports, require("./attachment-policy.js"), module.exports);
63
67
  ...require("./release-smoke.js"),
64
68
  ...require("./locale.js"),
65
69
  ...require("./chat.js"),
66
- ...require("./attachment-policy.js")
70
+ ...require("./social.js"),
71
+ ...require("./attachment-policy.js"),
72
+ ...require("./public-cache-tags.js")
67
73
  });
@@ -0,0 +1,11 @@
1
+ export declare const PUBLIC_CATALOG_CACHE_TAG = "catalog:public";
2
+ export declare const PUBLIC_SHOP_CACHE_TAG = "shop:public";
3
+ export declare function publicAppCacheTag(creatorUsername: string, appName: string): string;
4
+ export declare function publicAppEngagementCacheTag(creatorUsername: string, appName: string): string;
5
+ export declare function publicAssetCacheTag(creatorUsername: string, assetName: string): string;
6
+ export declare function publicAssetPackCacheTag(creatorUsername: string, packName: string): string;
7
+ export declare function publicCreatorCacheTag(creatorUsername: string): string;
8
+ export declare function publicCommentsCacheTag(kind: string, creatorUsername: string, itemName: string): string;
9
+ export declare function publicCollectionCacheTag(collectionId: string): string;
10
+ export declare function publicTagCacheTag(groupSlug: string, tagSlug?: string | null): string;
11
+ //# sourceMappingURL=public-cache-tags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-cache-tags.d.ts","sourceRoot":"","sources":["../src/public-cache-tags.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,wBAAwB,mBAAmB,CAAC;AACzD,eAAO,MAAM,qBAAqB,gBAAgB,CAAC;AAEnD,wBAAgB,iBAAiB,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAElF;AAED,wBAAgB,2BAA2B,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAE5F;AAED,wBAAgB,mBAAmB,CAAC,eAAe,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAEtF;AAED,wBAAgB,uBAAuB,CAAC,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEzF;AAED,wBAAgB,qBAAqB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAErE;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEtG;AAED,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAErE;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAKpF"}
@@ -0,0 +1,78 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var public_cache_tags_exports = {};
19
+ __export(public_cache_tags_exports, {
20
+ PUBLIC_CATALOG_CACHE_TAG: () => PUBLIC_CATALOG_CACHE_TAG,
21
+ PUBLIC_SHOP_CACHE_TAG: () => PUBLIC_SHOP_CACHE_TAG,
22
+ publicAppCacheTag: () => publicAppCacheTag,
23
+ publicAppEngagementCacheTag: () => publicAppEngagementCacheTag,
24
+ publicAssetCacheTag: () => publicAssetCacheTag,
25
+ publicAssetPackCacheTag: () => publicAssetPackCacheTag,
26
+ publicCollectionCacheTag: () => publicCollectionCacheTag,
27
+ publicCommentsCacheTag: () => publicCommentsCacheTag,
28
+ publicCreatorCacheTag: () => publicCreatorCacheTag,
29
+ publicTagCacheTag: () => publicTagCacheTag
30
+ });
31
+ module.exports = __toCommonJS(public_cache_tags_exports);
32
+ function cacheIdentityPart(value, label) {
33
+ const normalized = value.trim().toLowerCase();
34
+ if (!normalized) {
35
+ throw new Error(`public_cache_tag_${label}_missing`);
36
+ }
37
+ return encodeURIComponent(normalized);
38
+ }
39
+ const PUBLIC_CATALOG_CACHE_TAG = "catalog:public";
40
+ const PUBLIC_SHOP_CACHE_TAG = "shop:public";
41
+ function publicAppCacheTag(creatorUsername, appName) {
42
+ return `app:${cacheIdentityPart(creatorUsername, "creator")}:${cacheIdentityPart(appName, "app")}`;
43
+ }
44
+ function publicAppEngagementCacheTag(creatorUsername, appName) {
45
+ return `engagement:${cacheIdentityPart(creatorUsername, "creator")}:${cacheIdentityPart(appName, "app")}`;
46
+ }
47
+ function publicAssetCacheTag(creatorUsername, assetName) {
48
+ return `asset:${cacheIdentityPart(creatorUsername, "creator")}:${cacheIdentityPart(assetName, "asset")}`;
49
+ }
50
+ function publicAssetPackCacheTag(creatorUsername, packName) {
51
+ return `asset-pack:${cacheIdentityPart(creatorUsername, "creator")}:${cacheIdentityPart(packName, "pack")}`;
52
+ }
53
+ function publicCreatorCacheTag(creatorUsername) {
54
+ return `creator:${cacheIdentityPart(creatorUsername, "creator")}`;
55
+ }
56
+ function publicCommentsCacheTag(kind, creatorUsername, itemName) {
57
+ return `comments:${cacheIdentityPart(kind, "kind")}:${cacheIdentityPart(creatorUsername, "creator")}:${cacheIdentityPart(itemName, "item")}`;
58
+ }
59
+ function publicCollectionCacheTag(collectionId) {
60
+ return `collection:${cacheIdentityPart(collectionId, "collection")}`;
61
+ }
62
+ function publicTagCacheTag(groupSlug, tagSlug) {
63
+ const group = cacheIdentityPart(groupSlug, "tag_group");
64
+ return tagSlug?.trim() ? `tag:${group}:${cacheIdentityPart(tagSlug, "tag")}` : `tag:${group}`;
65
+ }
66
+ // Annotate the CommonJS export names for ESM import in node:
67
+ 0 && (module.exports = {
68
+ PUBLIC_CATALOG_CACHE_TAG,
69
+ PUBLIC_SHOP_CACHE_TAG,
70
+ publicAppCacheTag,
71
+ publicAppEngagementCacheTag,
72
+ publicAssetCacheTag,
73
+ publicAssetPackCacheTag,
74
+ publicCollectionCacheTag,
75
+ publicCommentsCacheTag,
76
+ publicCreatorCacheTag,
77
+ publicTagCacheTag
78
+ });
@@ -17,7 +17,6 @@ export declare const enum ClientOpcode {
17
17
  Error = 0,
18
18
  Auth = 1,
19
19
  TimePing = 2,
20
- SetSelectedAvatar = 3,
21
20
  AppLogin = 4,
22
21
  UserAppDataOverride = 5,
23
22
  JoinRoom = 6,
@@ -34,7 +33,6 @@ export declare const enum ServerOpcode {
34
33
  Error = 0,
35
34
  AuthAck = 51,
36
35
  TimePong = 52,
37
- SetSelectedAvatarAck = 53,
38
36
  AppLoginAck = 54,
39
37
  UserAppDataOverrideAck = 55,
40
38
  JoinRoomAck = 56,
@@ -72,7 +70,7 @@ export interface AuthAck extends ServerResponse {
72
70
  opcode: ServerOpcode.AuthAck;
73
71
  userId: number;
74
72
  username: string;
75
- selectedAvatarId: number;
73
+ selectedProfileAssetRef: string;
76
74
  }
77
75
  export interface TimePingRequest extends ClientRequest {
78
76
  opcode: ClientOpcode.TimePing;
@@ -83,13 +81,6 @@ export interface TimePongResponse extends ServerResponse {
83
81
  t1ServerMs: number;
84
82
  t2ServerMs: number;
85
83
  }
86
- export interface SetSelectedAvatarRequest extends ClientRequest {
87
- opcode: ClientOpcode.SetSelectedAvatar;
88
- avatarId: number;
89
- }
90
- export interface SetSelectedAvatarAck extends ServerResponse {
91
- opcode: ServerOpcode.SetSelectedAvatarAck;
92
- }
93
84
  export interface AppLoginRequest extends ClientRequest {
94
85
  opcode: ClientOpcode.AppLogin;
95
86
  appId: number;
@@ -102,7 +93,6 @@ export interface AppLoginResponse extends ServerResponse {
102
93
  appData: Record<string, any>;
103
94
  ts_arrival: number;
104
95
  username?: string | null;
105
- selectedAvatarId?: number | null;
106
96
  selectedProfileAssetRef?: string | null;
107
97
  }
108
98
  export interface UserAppDataOverrideRequest extends ClientRequest {
@@ -180,7 +170,6 @@ export interface ServerRoomBroadcast {
180
170
  export interface RoomMemberSnapshot {
181
171
  userId: number;
182
172
  username: string;
183
- selectedAvatarId: number;
184
173
  selectedProfileAssetRef: string;
185
174
  appData: Record<string, any>;
186
175
  roomData: Record<string, any>;
@@ -240,12 +229,11 @@ export interface RoomEventBinaryBroadcast extends ServerRoomBroadcast {
240
229
  eventCode: number;
241
230
  payload: Float64Array;
242
231
  }
243
- export type ClientFrame = AuthRequest | TimePingRequest | SetSelectedAvatarRequest | AppLoginRequest | UserAppDataOverrideRequest | ListRoomsRequest | CreateRoomRequest | JoinRoomByIdRequest | JoinOrCreateRoomRequest | RoomDataOverrideRequest | JoinRoomRequest | RoomLeaveRequest | RoomEventJsonSendRequest | RoomEventBinarySendRequest;
244
- export type ServerFrame = AuthAck | TimePongResponse | SetSelectedAvatarAck | AppLoginResponse | UserAppDataOverrideAck | ListRoomsAck | RoomDataOverrideAck | JoinRoomAck | RoomLeaveAck | RoomEventJsonAck | RoomEventBinaryAck | ServerError;
232
+ export type ClientFrame = AuthRequest | TimePingRequest | AppLoginRequest | UserAppDataOverrideRequest | ListRoomsRequest | CreateRoomRequest | JoinRoomByIdRequest | JoinOrCreateRoomRequest | RoomDataOverrideRequest | JoinRoomRequest | RoomLeaveRequest | RoomEventJsonSendRequest | RoomEventBinarySendRequest;
233
+ export type ServerFrame = AuthAck | TimePongResponse | AppLoginResponse | UserAppDataOverrideAck | ListRoomsAck | RoomDataOverrideAck | JoinRoomAck | RoomLeaveAck | RoomEventJsonAck | RoomEventBinaryAck | ServerError;
245
234
  export interface ConnectionContext {
246
235
  userId: number;
247
236
  username: string;
248
- selectedAvatarId: number;
249
237
  selectedProfileAssetRef: string;
250
238
  authenticated: boolean;
251
239
  activeRoomId?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"realtime.d.ts","sourceRoot":"","sources":["../src/realtime.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,+BAA+B,EAAG,CAAU,CAAC;AAE1D,0BAAkB,SAAS;IACzB,OAAO,IAAI;IACX,SAAS,IAAI;IACb,cAAc,IAAI;IAClB,YAAY,IAAI;IAChB,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,WAAW,IAAI;IACf,eAAe,IAAI;IACnB,QAAQ,IAAI;CACb;AAED,0BAAkB,YAAY;IAC5B,KAAK,IAAI;IACT,IAAI,IAAI;IACR,QAAQ,IAAI;IACZ,iBAAiB,IAAI;IACrB,QAAQ,IAAI;IACZ,mBAAmB,IAAI;IACvB,QAAQ,IAAI;IACZ,gBAAgB,IAAI;IACpB,SAAS,IAAI;IACb,aAAa,IAAI;IACjB,eAAe,KAAK;IACpB,SAAS,KAAK;IACd,UAAU,KAAK;IACf,YAAY,KAAK;IACjB,gBAAgB,KAAK;CACtB;AAED,0BAAkB,YAAY;IAC5B,KAAK,IAAI;IACT,OAAO,KAAK;IACZ,QAAQ,KAAK;IACb,oBAAoB,KAAK;IACzB,WAAW,KAAK;IAChB,sBAAsB,KAAK;IAC3B,WAAW,KAAK;IAChB,YAAY,KAAK;IACjB,mBAAmB,KAAK;IACxB,cAAc,KAAK;IACnB,YAAY,KAAK;IACjB,kBAAkB,KAAK;IACvB,gBAAgB,KAAK;IACrB,sBAAsB,KAAK;IAC3B,kBAAkB,KAAK;IACvB,wBAAwB,KAAK;IAC7B,4BAA4B,KAAK;IACjC,YAAY,KAAK;CAClB;AAMD,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,CAAC,CAAC;IACV,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,YAAY,CAA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OAAO,EAAE,YAAY,CAAC;CACvB;AAMD,MAAM,MAAM,WAAW,GACnB,WAAW,GACX,eAAe,GACf,eAAe,GACf,0BAA0B,GAC1B,gBAAgB,GAChB,iBAAiB,GACjB,mBAAmB,GACnB,uBAAuB,GACvB,uBAAuB,GACvB,eAAe,GACf,gBAAgB,GAChB,wBAAwB,GACxB,0BAA0B,CAAC;AAE/B,MAAM,MAAM,WAAW,GACnB,OAAO,GACP,gBAAgB,GAChB,gBAAgB,GAChB,sBAAsB,GACtB,YAAY,GACZ,mBAAmB,GACnB,WAAW,GACX,YAAY,GACZ,gBAAgB,GAChB,kBAAkB,GAClB,WAAW,CAAC;AAMhB,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,uBAAuB,EAAE,MAAM,CAAC;IAChC,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,KAAK,GAAG,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACtB,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,64 @@
1
+ export declare const SOCIAL_MESSAGE_TYPES: readonly ["invite", "request", "gift", "challenge", "turn"];
2
+ export type SocialMessageType = (typeof SOCIAL_MESSAGE_TYPES)[number];
3
+ export type SocialFriend = {
4
+ id: number;
5
+ username: string;
6
+ displayName: string;
7
+ avatarUrl: string | null;
8
+ };
9
+ export type SendSocialMessageInput = {
10
+ recipientUserId: number;
11
+ type: SocialMessageType;
12
+ title: string;
13
+ subtitle?: string;
14
+ thumbnailAssetRef?: string;
15
+ payload?: string;
16
+ expiresInSeconds?: number;
17
+ clientMessageId?: string;
18
+ };
19
+ export type SocialMessageApp = {
20
+ id: number;
21
+ name: string;
22
+ displayName: string;
23
+ creatorUsername: string;
24
+ version: string;
25
+ iconUrl: string | null;
26
+ };
27
+ export type SocialMessage = {
28
+ id: string;
29
+ type: SocialMessageType;
30
+ from: SocialFriend;
31
+ title: string;
32
+ subtitle: string | null;
33
+ thumbnailAssetRef: string | null;
34
+ thumbnailUrl: string | null;
35
+ payload: string | null;
36
+ app: SocialMessageApp;
37
+ createdAt: string;
38
+ expiresAt: string;
39
+ consumedAt: string | null;
40
+ };
41
+ export type SocialMessagePage = {
42
+ messages: SocialMessage[];
43
+ nextCursor: string | null;
44
+ };
45
+ export type SendSocialMessageResponse = {
46
+ messageId: string;
47
+ createdAt: string;
48
+ expiresAt: string;
49
+ };
50
+ export type PlatformFriendPresence = {
51
+ state: "OFFLINE";
52
+ } | {
53
+ state: "ONLINE";
54
+ } | {
55
+ state: "CREATING";
56
+ } | {
57
+ state: "PLAYING";
58
+ app: Pick<SocialMessageApp, "id" | "name" | "displayName" | "creatorUsername" | "iconUrl">;
59
+ };
60
+ export type PlatformFriendPresenceEntry = {
61
+ userId: number;
62
+ presence: PlatformFriendPresence;
63
+ };
64
+ //# sourceMappingURL=social.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social.d.ts","sourceRoot":"","sources":["../src/social.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,6DAA8D,CAAC;AAEhG,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,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AM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAC9B;IAAE,KAAK,EAAE,SAAS,CAAA;CAAE,GACpB;IAAE,KAAK,EAAE,QAAQ,CAAA;CAAE,GACnB;IAAE,KAAK,EAAE,UAAU,CAAA;CAAE,GACrB;IACE,KAAK,EAAE,SAAS,CAAC;IACjB,GAAG,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,GAAG,MAAM,GAAG,aAAa,GAAG,iBAAiB,GAAG,SAAS,CAAC,CAAC;CAC5F,CAAC;AAEN,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,sBAAsB,CAAC;CAClC,CAAC"}
@@ -2,6 +2,10 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
5
9
  var __copyProps = (to, from, except, desc) => {
6
10
  if (from && typeof from === "object" || typeof from === "function") {
7
11
  for (let key of __getOwnPropNames(from))
@@ -11,5 +15,13 @@ var __copyProps = (to, from, except, desc) => {
11
15
  return to;
12
16
  };
13
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
- var types_exports = {};
15
- module.exports = __toCommonJS(types_exports);
18
+ var social_exports = {};
19
+ __export(social_exports, {
20
+ SOCIAL_MESSAGE_TYPES: () => SOCIAL_MESSAGE_TYPES
21
+ });
22
+ module.exports = __toCommonJS(social_exports);
23
+ const SOCIAL_MESSAGE_TYPES = ["invite", "request", "gift", "challenge", "turn"];
24
+ // Annotate the CommonJS export names for ESM import in node:
25
+ 0 && (module.exports = {
26
+ SOCIAL_MESSAGE_TYPES
27
+ });