@playdrop/playdrop-cli 0.16.12 → 0.17.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.
- package/config/client-meta.json +4 -4
- package/dist/apiClient.d.ts +1 -2
- package/dist/apiClient.js +1 -16
- package/dist/appUrls.js +4 -0
- package/dist/apps/build.d.ts +12 -4
- package/dist/apps/build.js +55 -22
- package/dist/apps/index.d.ts +2 -1
- package/dist/apps/index.js +4 -1
- package/dist/apps/loadCheck.d.ts +5 -1
- package/dist/apps/loadCheck.js +52 -18
- package/dist/apps/serverBuild.d.ts +17 -0
- package/dist/apps/serverBuild.js +155 -0
- package/dist/apps/staticHtml.d.ts +1 -0
- package/dist/apps/staticHtml.js +19 -10
- package/dist/apps/upload.d.ts +12 -2
- package/dist/apps/upload.js +127 -46
- package/dist/catalogue.d.ts +23 -1
- package/dist/catalogue.js +126 -100
- package/dist/commandContext.d.ts +6 -3
- package/dist/commandContext.js +108 -18
- package/dist/commands/build.js +0 -7
- package/dist/commands/captureListing.d.ts +3 -0
- package/dist/commands/captureListing.js +48 -4
- package/dist/commands/chat.d.ts +4 -7
- package/dist/commands/chat.js +165 -77
- package/dist/commands/check.js +34 -1
- package/dist/commands/create.js +30 -263
- package/dist/commands/dev.js +37 -3
- package/dist/commands/devBrowser.js +2 -2
- package/dist/commands/devGameServer.d.ts +16 -0
- package/dist/commands/devGameServer.js +237 -0
- package/dist/commands/devRuntimeAssets.d.ts +1 -0
- package/dist/commands/devRuntimeAssets.js +2 -0
- package/dist/commands/devServer.d.ts +3 -0
- package/dist/commands/devServer.js +111 -5
- package/dist/commands/generation.d.ts +33 -4
- package/dist/commands/generation.js +304 -115
- package/dist/commands/login.js +23 -7
- package/dist/commands/review.d.ts +1 -1
- package/dist/commands/review.js +68 -95
- package/dist/commands/source.d.ts +19 -0
- package/dist/commands/source.js +142 -0
- package/dist/commands/tweaks.js +5 -11
- package/dist/commands/upload-content.d.ts +1 -1
- package/dist/commands/upload-content.js +16 -12
- package/dist/commands/upload.d.ts +17 -1
- package/dist/commands/upload.js +47 -10
- package/dist/commands/worker/archive-staging.d.ts +1 -0
- package/dist/commands/worker/archive-staging.js +13 -2
- package/dist/commands/worker/e2e-fixtures.d.ts +32 -0
- package/dist/commands/worker/e2e-fixtures.js +466 -0
- package/dist/commands/worker/game-server-infra.d.ts +80 -0
- package/dist/commands/worker/game-server-infra.js +595 -0
- package/dist/commands/worker/game-source-git.d.ts +126 -0
- package/dist/commands/worker/game-source-git.js +780 -0
- package/dist/commands/worker/generation.d.ts +94 -0
- package/dist/commands/worker/generation.js +1458 -0
- package/dist/commands/worker/provider-telemetry.js +1 -1
- package/dist/commands/worker/runtime.d.ts +8 -10
- package/dist/commands/worker/runtime.js +53 -48
- package/dist/commands/worker.d.ts +79 -19
- package/dist/commands/worker.js +1796 -419
- package/dist/config.d.ts +2 -0
- package/dist/config.js +16 -3
- package/dist/environment.d.ts +0 -1
- package/dist/environment.js +0 -8
- package/dist/index.js +92 -22
- package/dist/workerAppProject.d.ts +1 -1
- package/dist/workerAppProject.js +15 -2
- package/node_modules/@playdrop/api-client/dist/client.d.ts +143 -39
- package/node_modules/@playdrop/api-client/dist/client.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/client.js +33 -0
- package/node_modules/@playdrop/api-client/dist/core/request.d.ts +1 -0
- package/node_modules/@playdrop/api-client/dist/core/request.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/core/request.js +17 -11
- package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.d.ts +51 -6
- package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.js +338 -41
- package/node_modules/@playdrop/api-client/dist/domains/ai.d.ts +24 -1
- package/node_modules/@playdrop/api-client/dist/domains/ai.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/ai.js +20 -0
- package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts +13 -8
- package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/apps.js +158 -90
- package/node_modules/@playdrop/api-client/dist/domains/assets.d.ts +4 -0
- package/node_modules/@playdrop/api-client/dist/domains/assets.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/assets.js +27 -0
- package/node_modules/@playdrop/api-client/dist/domains/chat.d.ts +152 -21
- package/node_modules/@playdrop/api-client/dist/domains/chat.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/chat.js +477 -100
- package/node_modules/@playdrop/api-client/dist/domains/player-meta.d.ts +2 -1
- package/node_modules/@playdrop/api-client/dist/domains/player-meta.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/player-meta.js +9 -0
- package/node_modules/@playdrop/api-client/dist/domains/playtrade.d.ts +1 -2
- package/node_modules/@playdrop/api-client/dist/domains/playtrade.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/playtrade.js +0 -11
- package/node_modules/@playdrop/api-client/dist/domains/social.d.ts +29 -0
- package/node_modules/@playdrop/api-client/dist/domains/social.d.ts.map +1 -0
- package/node_modules/@playdrop/api-client/dist/domains/social.js +79 -0
- package/node_modules/@playdrop/api-client/dist/index.d.ts +81 -30
- package/node_modules/@playdrop/api-client/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/index.js +217 -56
- package/node_modules/@playdrop/api-client/dist/runtime.d.ts +18 -0
- package/node_modules/@playdrop/api-client/dist/runtime.d.ts.map +1 -0
- package/node_modules/@playdrop/api-client/dist/runtime.js +54 -0
- package/node_modules/@playdrop/api-client/package.json +7 -0
- package/node_modules/@playdrop/config/client-meta.json +4 -4
- package/node_modules/@playdrop/config/dist/src/creator-plans.d.ts +11 -0
- package/node_modules/@playdrop/config/dist/src/creator-plans.d.ts.map +1 -1
- package/node_modules/@playdrop/config/dist/src/creator-plans.js +13 -1
- package/node_modules/@playdrop/config/dist/src/deployment.d.ts +0 -1
- package/node_modules/@playdrop/config/dist/src/deployment.d.ts.map +1 -1
- package/node_modules/@playdrop/config/dist/src/deployment.js +0 -8
- package/node_modules/@playdrop/config/dist/src/public-deployment.d.ts +0 -1
- package/node_modules/@playdrop/config/dist/src/public-deployment.d.ts.map +1 -1
- package/node_modules/@playdrop/config/dist/src/public-deployment.js +0 -8
- package/node_modules/@playdrop/config/dist/src/runtime-service-origins.d.ts +1 -1
- package/node_modules/@playdrop/config/dist/src/runtime-service-origins.js +2 -2
- package/node_modules/@playdrop/config/dist/src/server/logging.d.ts.map +1 -1
- package/node_modules/@playdrop/config/dist/src/server/logging.js +31 -2
- package/node_modules/@playdrop/config/dist/test/creator-plans.test.js +10 -0
- package/node_modules/@playdrop/config/dist/test/deployment.test.js +0 -4
- package/node_modules/@playdrop/config/dist/test/runtime-service-origins.test.js +2 -0
- package/node_modules/@playdrop/config/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@playdrop/config/package.json +6 -0
- package/node_modules/@playdrop/game-source-git/dist/src/archive.d.ts +9 -0
- package/node_modules/@playdrop/game-source-git/dist/src/archive.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/archive.js +107 -0
- package/node_modules/@playdrop/game-source-git/dist/src/bundle-storage.d.ts +29 -0
- package/node_modules/@playdrop/game-source-git/dist/src/bundle-storage.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/bundle-storage.js +64 -0
- package/node_modules/@playdrop/game-source-git/dist/src/export.d.ts +8 -0
- package/node_modules/@playdrop/game-source-git/dist/src/export.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/export.js +25 -0
- package/node_modules/@playdrop/game-source-git/dist/src/git.d.ts +39 -0
- package/node_modules/@playdrop/game-source-git/dist/src/git.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/git.js +195 -0
- package/node_modules/@playdrop/game-source-git/dist/src/ignore.d.ts +6 -0
- package/node_modules/@playdrop/game-source-git/dist/src/ignore.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/ignore.js +51 -0
- package/node_modules/@playdrop/game-source-git/dist/src/index.d.ts +10 -0
- package/node_modules/@playdrop/game-source-git/dist/src/index.d.ts.map +1 -0
- package/node_modules/@playdrop/{boxel-core/dist/src/humanoid/r15 → game-source-git/dist/src}/index.js +9 -4
- package/node_modules/@playdrop/game-source-git/dist/src/lock.d.ts +17 -0
- package/node_modules/@playdrop/game-source-git/dist/src/lock.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/lock.js +72 -0
- package/node_modules/@playdrop/game-source-git/dist/src/materialize.d.ts +10 -0
- package/node_modules/@playdrop/game-source-git/dist/src/materialize.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/materialize.js +99 -0
- package/node_modules/@playdrop/game-source-git/dist/src/paths.d.ts +24 -0
- package/node_modules/@playdrop/game-source-git/dist/src/paths.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/paths.js +207 -0
- package/node_modules/@playdrop/game-source-git/dist/src/repository.d.ts +66 -0
- package/node_modules/@playdrop/game-source-git/dist/src/repository.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/repository.js +213 -0
- package/node_modules/@playdrop/game-source-git/dist/test/core.test.d.ts +2 -0
- package/node_modules/@playdrop/game-source-git/dist/test/core.test.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/test/core.test.js +441 -0
- package/node_modules/@playdrop/game-source-git/dist/tsconfig.tsbuildinfo +1 -0
- package/node_modules/@playdrop/game-source-git/package.json +28 -0
- package/node_modules/@playdrop/types/dist/agent-task-terminal.d.ts +2 -2
- package/node_modules/@playdrop/types/dist/agent-task-terminal.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/agent-task-terminal.js +15 -9
- package/node_modules/@playdrop/types/dist/api.d.ts +730 -166
- package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/api.js +65 -18
- package/node_modules/@playdrop/types/dist/asset-pack.d.ts +2 -0
- package/node_modules/@playdrop/types/dist/asset-pack.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/asset.d.ts +22 -8
- package/node_modules/@playdrop/types/dist/asset.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/asset.js +26 -26
- package/node_modules/@playdrop/types/dist/chat.d.ts +273 -31
- package/node_modules/@playdrop/types/dist/chat.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/chat.js +38 -4
- package/node_modules/@playdrop/types/dist/index.d.ts +3 -0
- package/node_modules/@playdrop/types/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/index.js +7 -1
- package/node_modules/@playdrop/types/dist/public-cache-tags.d.ts +11 -0
- package/node_modules/@playdrop/types/dist/public-cache-tags.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/public-cache-tags.js +78 -0
- package/node_modules/@playdrop/types/dist/realtime.d.ts +3 -15
- package/node_modules/@playdrop/types/dist/realtime.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/social.d.ts +64 -0
- package/node_modules/@playdrop/types/dist/social.d.ts.map +1 -0
- package/node_modules/@playdrop/{boxel-three/dist/src/types.js → types/dist/social.js} +14 -2
- package/node_modules/@playdrop/types/dist/spritesheet.d.ts +51 -0
- package/node_modules/@playdrop/types/dist/spritesheet.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/spritesheet.js +73 -0
- package/node_modules/@playdrop/types/dist/version.d.ts +86 -58
- package/node_modules/@playdrop/types/dist/version.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/version.js +111 -0
- package/node_modules/@playdrop/types/package.json +14 -0
- package/node_modules/@playdrop/vox-three/dist/src/index.d.ts +1 -1
- package/node_modules/@playdrop/vox-three/dist/src/index.js +1 -1
- package/node_modules/@playdrop/vox-three/dist/src/index.js.map +1 -1
- package/node_modules/@playdrop/vox-three/dist/src/vox.d.ts +0 -3
- package/node_modules/@playdrop/vox-three/dist/src/vox.js +0 -110
- package/node_modules/@playdrop/vox-three/dist/src/vox.js.map +1 -1
- package/node_modules/@playdrop/vox-three/dist/test/vox.test.js +0 -18
- package/node_modules/@playdrop/vox-three/dist/test/vox.test.js.map +1 -1
- package/node_modules/@playdrop/vox-three/package.json +8 -4
- package/package.json +9 -11
- package/dist/assets/model-artifacts.d.ts +0 -8
- package/dist/assets/model-artifacts.js +0 -382
- package/dist/assets/model-worker.d.ts +0 -22
- package/dist/assets/model-worker.js +0 -123
- package/node_modules/@playdrop/ai-client/dist/index.d.ts +0 -441
- package/node_modules/@playdrop/ai-client/dist/index.d.ts.map +0 -1
- package/node_modules/@playdrop/ai-client/dist/index.js +0 -499
- package/node_modules/@playdrop/ai-client/package.json +0 -22
- package/node_modules/@playdrop/boxel-core/dist/src/entity-cleaner.d.ts +0 -13
- package/node_modules/@playdrop/boxel-core/dist/src/entity-cleaner.js +0 -141
- package/node_modules/@playdrop/boxel-core/dist/src/entity-cleaner.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/entity-utils.d.ts +0 -47
- package/node_modules/@playdrop/boxel-core/dist/src/entity-utils.js +0 -313
- package/node_modules/@playdrop/boxel-core/dist/src/entity-utils.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/format-utils.d.ts +0 -3
- package/node_modules/@playdrop/boxel-core/dist/src/format-utils.js +0 -36
- package/node_modules/@playdrop/boxel-core/dist/src/format-utils.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/geometry.d.ts +0 -23
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/geometry.js +0 -11
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/geometry.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/index.d.ts +0 -4
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/index.js +0 -21
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/index.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/common.d.ts +0 -4
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/common.js +0 -24
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/common.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/index.d.ts +0 -3
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/index.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/textured-builder.d.ts +0 -3
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/textured-builder.js +0 -387
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/textured-builder.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/types.d.ts +0 -6
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/types.js +0 -3
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/types.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/voxel-builder.d.ts +0 -3
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/voxel-builder.js +0 -373
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/voxel-builder.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/builder.d.ts +0 -12
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/builder.js +0 -215
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/builder.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/index.d.ts +0 -4
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/index.js +0 -18
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/index.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/scanner.d.ts +0 -42
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/scanner.js +0 -145
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/scanner.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/artifacts.d.ts +0 -26
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/artifacts.js +0 -65
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/artifacts.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/face-map.d.ts +0 -33
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/face-map.js +0 -175
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/face-map.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/humanoid_r15.json +0 -1517
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/humanoid_r6.json +0 -61
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/index.d.ts +0 -10
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/index.js +0 -23
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/index.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/index.d.ts +0 -19
- package/node_modules/@playdrop/boxel-core/dist/src/index.js +0 -36
- package/node_modules/@playdrop/boxel-core/dist/src/index.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/materials.d.ts +0 -26
- package/node_modules/@playdrop/boxel-core/dist/src/materials.js +0 -184
- package/node_modules/@playdrop/boxel-core/dist/src/materials.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/palette_tools.d.ts +0 -68
- package/node_modules/@playdrop/boxel-core/dist/src/palette_tools.js +0 -488
- package/node_modules/@playdrop/boxel-core/dist/src/palette_tools.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/serialization.d.ts +0 -4
- package/node_modules/@playdrop/boxel-core/dist/src/serialization.js +0 -380
- package/node_modules/@playdrop/boxel-core/dist/src/serialization.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/textures.d.ts +0 -29
- package/node_modules/@playdrop/boxel-core/dist/src/textures.js +0 -208
- package/node_modules/@playdrop/boxel-core/dist/src/textures.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/infer-face.d.ts +0 -9
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/infer-face.js +0 -312
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/infer-face.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/layer-mode.d.ts +0 -9
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/layer-mode.js +0 -154
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/layer-mode.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/merge-overlay.d.ts +0 -2
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/merge-overlay.js +0 -121
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/merge-overlay.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/slice.d.ts +0 -20
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/slice.js +0 -389
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/slice.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/upscale.d.ts +0 -3
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/upscale.js +0 -206
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/upscale.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/slice.d.ts +0 -12
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/slice.js +0 -81
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/slice.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/textured-to-voxel.d.ts +0 -12
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/textured-to-voxel.js +0 -318
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/textured-to-voxel.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/types.d.ts +0 -168
- package/node_modules/@playdrop/boxel-core/dist/src/types.js +0 -3
- package/node_modules/@playdrop/boxel-core/dist/src/types.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/validation.d.ts +0 -24
- package/node_modules/@playdrop/boxel-core/dist/src/validation.js +0 -620
- package/node_modules/@playdrop/boxel-core/dist/src/validation.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/voxels/greedy-mesher.d.ts +0 -11
- package/node_modules/@playdrop/boxel-core/dist/src/voxels/greedy-mesher.js +0 -135
- package/node_modules/@playdrop/boxel-core/dist/src/voxels/greedy-mesher.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/voxels.d.ts +0 -23
- package/node_modules/@playdrop/boxel-core/dist/src/voxels.js +0 -52
- package/node_modules/@playdrop/boxel-core/dist/src/voxels.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/package.json +0 -19
- package/node_modules/@playdrop/boxel-three/dist/src/animations.d.ts +0 -4
- package/node_modules/@playdrop/boxel-three/dist/src/animations.js +0 -92
- package/node_modules/@playdrop/boxel-three/dist/src/builders.d.ts +0 -8
- package/node_modules/@playdrop/boxel-three/dist/src/builders.js +0 -363
- package/node_modules/@playdrop/boxel-three/dist/src/context.d.ts +0 -24
- package/node_modules/@playdrop/boxel-three/dist/src/context.js +0 -58
- package/node_modules/@playdrop/boxel-three/dist/src/exporters/glb.d.ts +0 -100
- package/node_modules/@playdrop/boxel-three/dist/src/exporters/glb.js +0 -927
- package/node_modules/@playdrop/boxel-three/dist/src/exporters/image.d.ts +0 -18
- package/node_modules/@playdrop/boxel-three/dist/src/exporters/image.js +0 -294
- package/node_modules/@playdrop/boxel-three/dist/src/index.d.ts +0 -17
- package/node_modules/@playdrop/boxel-three/dist/src/index.js +0 -64
- package/node_modules/@playdrop/boxel-three/dist/src/instantiate.d.ts +0 -40
- package/node_modules/@playdrop/boxel-three/dist/src/instantiate.js +0 -96
- package/node_modules/@playdrop/boxel-three/dist/src/nodes.d.ts +0 -8
- package/node_modules/@playdrop/boxel-three/dist/src/nodes.js +0 -88
- package/node_modules/@playdrop/boxel-three/dist/src/overlays.d.ts +0 -7
- package/node_modules/@playdrop/boxel-three/dist/src/overlays.js +0 -123
- package/node_modules/@playdrop/boxel-three/dist/src/primitives.d.ts +0 -4
- package/node_modules/@playdrop/boxel-three/dist/src/primitives.js +0 -48
- package/node_modules/@playdrop/boxel-three/dist/src/scene.d.ts +0 -3
- package/node_modules/@playdrop/boxel-three/dist/src/scene.js +0 -168
- package/node_modules/@playdrop/boxel-three/dist/src/skinned-mesh.d.ts +0 -29
- package/node_modules/@playdrop/boxel-three/dist/src/skinned-mesh.js +0 -623
- package/node_modules/@playdrop/boxel-three/dist/src/texture-atlas.d.ts +0 -13
- package/node_modules/@playdrop/boxel-three/dist/src/texture-atlas.js +0 -133
- package/node_modules/@playdrop/boxel-three/dist/src/textures.d.ts +0 -17
- package/node_modules/@playdrop/boxel-three/dist/src/textures.js +0 -216
- package/node_modules/@playdrop/boxel-three/dist/src/types.d.ts +0 -112
- package/node_modules/@playdrop/boxel-three/dist/src/voxels/faces.d.ts +0 -28
- package/node_modules/@playdrop/boxel-three/dist/src/voxels/faces.js +0 -344
- package/node_modules/@playdrop/boxel-three/dist/src/voxels/mesher.d.ts +0 -24
- package/node_modules/@playdrop/boxel-three/dist/src/voxels/mesher.js +0 -113
- package/node_modules/@playdrop/boxel-three/dist/test/export-image.playwright.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/export-image.playwright.test.js +0 -137
- package/node_modules/@playdrop/boxel-three/dist/test/fixtures/render-worker.d.ts +0 -20
- package/node_modules/@playdrop/boxel-three/dist/test/fixtures/render-worker.js +0 -85
- package/node_modules/@playdrop/boxel-three/dist/test/glb-skinned.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/glb-skinned.test.js +0 -104
- package/node_modules/@playdrop/boxel-three/dist/test/index.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/index.test.js +0 -30
- package/node_modules/@playdrop/boxel-three/dist/test/instantiate.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/instantiate.test.js +0 -88
- package/node_modules/@playdrop/boxel-three/dist/test/overlays.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/overlays.test.js +0 -42
- package/node_modules/@playdrop/boxel-three/dist/test/scene-filter.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/scene-filter.test.js +0 -73
- package/node_modules/@playdrop/boxel-three/dist/test/scene-smoke.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/scene-smoke.test.js +0 -85
- package/node_modules/@playdrop/boxel-three/dist/test/skinned-mesh.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/skinned-mesh.test.js +0 -73
- package/node_modules/@playdrop/boxel-three/dist/test/textured-overlay.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/textured-overlay.test.js +0 -136
- package/node_modules/@playdrop/boxel-three/dist/test/voxels.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/voxels.test.js +0 -42
- package/node_modules/@playdrop/boxel-three/package.json +0 -28
|
@@ -1,14 +1,38 @@
|
|
|
1
|
-
|
|
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];
|
|
5
|
+
export type ChatConversationType = "INTERNAL_CHANNEL" | "COMMUNITY_CHANNEL" | "DIRECT";
|
|
3
6
|
export type ChatChannelReadPolicy = "ADMIN_ONLY" | "PUBLIC";
|
|
4
|
-
export type
|
|
7
|
+
export type ChatChannelWritePolicy = "ADMIN_ONLY" | "REGISTERED_USERS";
|
|
8
|
+
export type ChatUserKind = "REAL" | "TEST" | "HUMAN" | "BOT" | "AGENT";
|
|
5
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;
|
|
6
29
|
export type ChatAuthor = {
|
|
7
30
|
id: number;
|
|
8
31
|
username: string;
|
|
9
32
|
displayName: string;
|
|
10
33
|
kind: ChatUserKind;
|
|
11
34
|
avatarUrl: string | null;
|
|
35
|
+
isChatAdmin: boolean;
|
|
12
36
|
};
|
|
13
37
|
export type ChatReaction = {
|
|
14
38
|
emoji: string;
|
|
@@ -16,7 +40,7 @@ export type ChatReaction = {
|
|
|
16
40
|
reactedByViewer: boolean;
|
|
17
41
|
};
|
|
18
42
|
export type ChatAttachment = {
|
|
19
|
-
id:
|
|
43
|
+
id: string;
|
|
20
44
|
kind: ChatAttachmentKind;
|
|
21
45
|
url: string;
|
|
22
46
|
fileName: string | null;
|
|
@@ -30,64 +54,134 @@ export type ChatAttachment = {
|
|
|
30
54
|
siteName: string | null;
|
|
31
55
|
} | null;
|
|
32
56
|
};
|
|
57
|
+
export type ChatMessageQuote = {
|
|
58
|
+
id: string;
|
|
59
|
+
sequence: string;
|
|
60
|
+
body: string;
|
|
61
|
+
deleted: boolean;
|
|
62
|
+
author: Pick<ChatAuthor, "id" | "username" | "displayName"> | null;
|
|
63
|
+
};
|
|
64
|
+
export type ChatGameSocialMessage = SocialMessage & {
|
|
65
|
+
development: boolean;
|
|
66
|
+
};
|
|
33
67
|
export type ChatMessage = {
|
|
34
|
-
id:
|
|
35
|
-
|
|
36
|
-
|
|
68
|
+
id: string;
|
|
69
|
+
conversationId: string;
|
|
70
|
+
sequence: string;
|
|
71
|
+
channelSlug: string | null;
|
|
72
|
+
parentMessageId: string | null;
|
|
73
|
+
replyToMessageId: string | null;
|
|
74
|
+
threadRootMessageId: string | null;
|
|
75
|
+
quote: ChatMessageQuote | null;
|
|
37
76
|
body: string;
|
|
77
|
+
deleted: boolean;
|
|
78
|
+
deletedAt: string | null;
|
|
38
79
|
eventType: string | null;
|
|
39
80
|
eventData: unknown | null;
|
|
81
|
+
gameSocial: ChatGameSocialMessage | null;
|
|
82
|
+
clientMessageId: string | null;
|
|
40
83
|
clientKey: string | null;
|
|
41
84
|
editedAt: string | null;
|
|
42
85
|
createdAt: string;
|
|
43
86
|
updatedAt: string;
|
|
44
|
-
author: ChatAuthor;
|
|
87
|
+
author: ChatAuthor | null;
|
|
45
88
|
attachments: ChatAttachment[];
|
|
89
|
+
mentions: Array<{
|
|
90
|
+
id: number;
|
|
91
|
+
username: string;
|
|
92
|
+
}>;
|
|
46
93
|
reactions: ChatReaction[];
|
|
47
94
|
replyCount: number;
|
|
48
95
|
};
|
|
96
|
+
export type ChatConversationCapabilities = {
|
|
97
|
+
canRead: boolean;
|
|
98
|
+
canWrite: boolean;
|
|
99
|
+
canReact: boolean;
|
|
100
|
+
canUpload: boolean;
|
|
101
|
+
canThread: boolean;
|
|
102
|
+
canModerate: boolean;
|
|
103
|
+
frozenReason: "archived" | "friendship_required" | "blocked" | "account_read_only" | null;
|
|
104
|
+
};
|
|
105
|
+
export type ChatConversation = {
|
|
106
|
+
id: string;
|
|
107
|
+
type: ChatConversationType;
|
|
108
|
+
channel: {
|
|
109
|
+
slug: string;
|
|
110
|
+
displayName: string;
|
|
111
|
+
symbol: string | null;
|
|
112
|
+
position: number;
|
|
113
|
+
archivedAt: string | null;
|
|
114
|
+
} | null;
|
|
115
|
+
peer: ChatAuthor | null;
|
|
116
|
+
participants?: ChatAuthor[];
|
|
117
|
+
capabilities: ChatConversationCapabilities;
|
|
118
|
+
latestMessage: ChatMessage | null;
|
|
119
|
+
eventVersion: string;
|
|
120
|
+
hasUnread: boolean;
|
|
121
|
+
unreadCount: number;
|
|
122
|
+
unreadCountCapped: boolean;
|
|
123
|
+
mutedUntil: string | null;
|
|
124
|
+
archivedAt: string | null;
|
|
125
|
+
lastMessageAt: string | null;
|
|
126
|
+
};
|
|
127
|
+
export type ChatConversationsResponse = {
|
|
128
|
+
conversations: ChatConversation[];
|
|
129
|
+
hasMore: boolean;
|
|
130
|
+
nextCursor: string | null;
|
|
131
|
+
};
|
|
132
|
+
export type ChatConversationResponse = {
|
|
133
|
+
conversation: ChatConversation;
|
|
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
|
+
};
|
|
49
144
|
export type ChatChannel = {
|
|
145
|
+
id: string;
|
|
50
146
|
slug: string;
|
|
51
147
|
displayName: string;
|
|
148
|
+
symbol: string | null;
|
|
52
149
|
position: number;
|
|
53
150
|
readPolicy: ChatChannelReadPolicy;
|
|
151
|
+
writePolicy: ChatChannelWritePolicy;
|
|
54
152
|
canWrite: boolean;
|
|
55
153
|
unreadCount: number;
|
|
154
|
+
unreadCountCapped: boolean;
|
|
155
|
+
hasUnread: boolean;
|
|
56
156
|
};
|
|
57
157
|
export type ChatChannelsResponse = {
|
|
58
158
|
channels: ChatChannel[];
|
|
59
159
|
};
|
|
60
160
|
export type ChatMessagesResponse = {
|
|
161
|
+
conversationId?: string;
|
|
162
|
+
threadingAvailable?: boolean;
|
|
61
163
|
messages: ChatMessage[];
|
|
62
164
|
hasMore: boolean;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
165
|
+
hasMoreBefore: boolean;
|
|
166
|
+
hasMoreAfter: boolean;
|
|
167
|
+
nextBefore: string | null;
|
|
168
|
+
nextAfter: string | null;
|
|
169
|
+
nextBeforeId: string | null;
|
|
170
|
+
readThroughMessageId: string | null;
|
|
171
|
+
firstUnreadRootMessageId: string | null;
|
|
66
172
|
};
|
|
67
173
|
export type MarkChatChannelReadRequest = {
|
|
68
|
-
lastReadMessageId:
|
|
69
|
-
};
|
|
70
|
-
export type ChatAttachmentInput = {
|
|
71
|
-
kind: ChatAttachmentKind;
|
|
72
|
-
url?: string;
|
|
73
|
-
fileName?: string;
|
|
74
|
-
contentType?: string;
|
|
75
|
-
sizeBytes?: number;
|
|
76
|
-
storageKey?: string;
|
|
174
|
+
lastReadMessageId: string | null;
|
|
77
175
|
};
|
|
78
176
|
export type CreateChatMessageRequest = {
|
|
177
|
+
clientMessageId: string;
|
|
79
178
|
body?: string;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
eventData?: unknown;
|
|
84
|
-
asSystem?: boolean;
|
|
179
|
+
attachmentUploadIds?: string[];
|
|
180
|
+
replyToMessageId?: string;
|
|
181
|
+
threadRootMessageId?: string;
|
|
85
182
|
};
|
|
86
183
|
export type EditChatMessageRequest = {
|
|
87
|
-
body
|
|
88
|
-
attachments?: ChatAttachmentInput[];
|
|
89
|
-
eventType?: string | null;
|
|
90
|
-
eventData?: unknown | null;
|
|
184
|
+
body: string;
|
|
91
185
|
};
|
|
92
186
|
export type ChatMessageResponse = {
|
|
93
187
|
message: ChatMessage;
|
|
@@ -98,8 +192,156 @@ export type ChatChannelAccessResponse = {
|
|
|
98
192
|
canWrite: boolean;
|
|
99
193
|
};
|
|
100
194
|
export type ChatChannelReadResponse = {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
195
|
+
conversationId: string;
|
|
196
|
+
channel: string | null;
|
|
197
|
+
lastReadMessageId: string | null;
|
|
198
|
+
unreadCount: number;
|
|
199
|
+
unreadCountCapped: boolean;
|
|
200
|
+
hasUnread: boolean;
|
|
201
|
+
};
|
|
202
|
+
export type ChatAttachmentUploadSession = {
|
|
203
|
+
id: string;
|
|
204
|
+
conversationId: string;
|
|
205
|
+
uploadUrl: string;
|
|
206
|
+
uploadMethod: "PUT";
|
|
207
|
+
uploadHeaders: Record<string, string>;
|
|
208
|
+
expiresAt: string;
|
|
209
|
+
};
|
|
210
|
+
export type ChatNotificationPreferences = {
|
|
211
|
+
directPushEnabled: boolean;
|
|
212
|
+
communityPushEnabled: boolean;
|
|
213
|
+
};
|
|
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];
|
|
217
|
+
export type ChatRealtimeAuthFrame = {
|
|
218
|
+
type: "auth";
|
|
219
|
+
token: string;
|
|
220
|
+
};
|
|
221
|
+
export type ChatRealtimeSubscribeFrame = {
|
|
222
|
+
type: "subscribe";
|
|
223
|
+
conversationId: string;
|
|
224
|
+
lastEventVersion: string | null;
|
|
225
|
+
};
|
|
226
|
+
export type ChatRealtimeUnsubscribeFrame = {
|
|
227
|
+
type: "unsubscribe";
|
|
228
|
+
conversationId: string;
|
|
229
|
+
};
|
|
230
|
+
export type ChatRealtimeTypingFrame = {
|
|
231
|
+
type: "typing";
|
|
232
|
+
conversationId: string;
|
|
233
|
+
active: boolean;
|
|
234
|
+
};
|
|
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;
|
|
258
|
+
export type ChatRealtimeMessageEvent = {
|
|
259
|
+
id: string;
|
|
260
|
+
version: string;
|
|
261
|
+
kind: "message.created" | "message.updated" | "message.deleted";
|
|
262
|
+
conversationId: string;
|
|
263
|
+
message: ChatMessage;
|
|
264
|
+
};
|
|
265
|
+
export type ChatRealtimeReadEvent = {
|
|
266
|
+
id: string;
|
|
267
|
+
version: string;
|
|
268
|
+
kind: "read.updated";
|
|
269
|
+
conversationId: string;
|
|
270
|
+
userId: number;
|
|
271
|
+
lastReadMessageId: string | null;
|
|
272
|
+
};
|
|
273
|
+
export type ChatRealtimeConversationEvent = {
|
|
274
|
+
id: string;
|
|
275
|
+
version: string;
|
|
276
|
+
kind: "conversation.updated";
|
|
277
|
+
conversationId: string;
|
|
278
|
+
};
|
|
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
|
+
};
|
|
288
|
+
export type ChatRealtimeErrorCode = "chat_realtime_invalid_frame" | "chat_realtime_unauthorized" | "chat_realtime_forbidden" | "chat_realtime_rate_limited" | "chat_realtime_backpressure" | "chat_realtime_unavailable";
|
|
289
|
+
export type ChatRealtimeServerFrame = {
|
|
290
|
+
type: "ready";
|
|
291
|
+
heartbeatIntervalMs: typeof CHAT_REALTIME_HEARTBEAT_INTERVAL_MS;
|
|
292
|
+
} | {
|
|
293
|
+
type: "subscribed";
|
|
294
|
+
conversationId: string;
|
|
295
|
+
eventVersion: string;
|
|
296
|
+
} | {
|
|
297
|
+
type: "conversation.event";
|
|
298
|
+
event: ChatRealtimeEvent;
|
|
299
|
+
} | {
|
|
300
|
+
type: "inbox.snapshot";
|
|
301
|
+
conversations: ChatConversation[];
|
|
302
|
+
} | {
|
|
303
|
+
type: "inbox.event";
|
|
304
|
+
event: ChatRealtimeEvent;
|
|
305
|
+
} | {
|
|
306
|
+
type: "inbox.resync_required";
|
|
307
|
+
conversationId: string;
|
|
308
|
+
} | {
|
|
309
|
+
type: "typing.updated";
|
|
310
|
+
conversationId: string;
|
|
311
|
+
userId: number;
|
|
312
|
+
active: boolean;
|
|
313
|
+
expiresAt: string;
|
|
314
|
+
} | {
|
|
315
|
+
type: "presence.snapshot";
|
|
316
|
+
entries: PlatformFriendPresenceEntry[];
|
|
317
|
+
} | {
|
|
318
|
+
type: "presence.updated";
|
|
319
|
+
entry: PlatformFriendPresenceEntry;
|
|
320
|
+
} | {
|
|
321
|
+
type: "resync_required";
|
|
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;
|
|
342
|
+
} | {
|
|
343
|
+
type: "error";
|
|
344
|
+
code: ChatRealtimeErrorCode;
|
|
345
|
+
conversationId?: string;
|
|
104
346
|
};
|
|
105
347
|
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../src/chat.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,+
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../src/chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAA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AAA;CAAE,GACzD;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,cAAc,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GACtG;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,OAAO,EAAE,2BAA2B,EAAE,CAAA;CAAE,GACrE;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,KAAK,EAAE,2BAA2B,CAAA;CAAE,GAChE;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,IAAI,EAAE,qBAAqB,CAAC;IAAC,KAAK,EAAE,qBAAqB,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GACnF;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,KAAK,EAAE,qBAAqB,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAC9E;IAAE,IAAI,EAAE,0BAA0B,CAAC;IAAC,KAAK,EAAE,qBAAqB,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,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,24 +17,58 @@ 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
|
-
|
|
20
|
+
CHAT_ADMIN_USERNAMES: () => CHAT_ADMIN_USERNAMES,
|
|
21
|
+
CHAT_CHANNEL_SLUGS: () => CHAT_CHANNEL_SLUGS,
|
|
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
|
|
21
27
|
});
|
|
22
28
|
module.exports = __toCommonJS(chat_exports);
|
|
23
29
|
const CHAT_CHANNEL_SLUGS = [
|
|
24
30
|
"new-content",
|
|
25
31
|
"published-content",
|
|
26
32
|
"new-user",
|
|
27
|
-
"
|
|
33
|
+
"agent-tasks",
|
|
28
34
|
"purchases",
|
|
29
35
|
"credit-transactions",
|
|
36
|
+
"subscription-transactions",
|
|
30
37
|
"prod-alert",
|
|
31
38
|
"content-report",
|
|
32
39
|
"user-report",
|
|
33
40
|
"comment-report",
|
|
41
|
+
"message-report",
|
|
34
42
|
"improvement-loop",
|
|
35
|
-
"bot-test"
|
|
43
|
+
"bot-test",
|
|
44
|
+
"cloud-workers"
|
|
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
|
+
}
|
|
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"
|
|
36
64
|
];
|
|
37
65
|
// Annotate the CommonJS export names for ESM import in node:
|
|
38
66
|
0 && (module.exports = {
|
|
39
|
-
|
|
67
|
+
CHAT_ADMIN_USERNAMES,
|
|
68
|
+
CHAT_CHANNEL_SLUGS,
|
|
69
|
+
CHAT_REALTIME_HEARTBEAT_INTERVAL_MS,
|
|
70
|
+
CHAT_USER_MESSAGE_MAX_LENGTH,
|
|
71
|
+
COMMUNITY_CHAT_CHANNELS,
|
|
72
|
+
PLATFORM_REALTIME_TOPIC_VALUES,
|
|
73
|
+
isChatAdminIdentity
|
|
40
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("./
|
|
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
|
+
});
|