@playdrop/playdrop-cli 0.16.16 → 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 -0
- package/dist/commands/chat.js +133 -8
- 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/runtime.d.ts +8 -10
- package/dist/commands/worker/runtime.js +51 -45
- 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 -13
- package/dist/workerAppProject.d.ts +1 -1
- package/dist/workerAppProject.js +15 -2
- package/node_modules/@playdrop/api-client/dist/client.d.ts +72 -25
- 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 +35 -3
- package/node_modules/@playdrop/api-client/dist/domains/chat.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/chat.js +89 -7
- 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 +80 -29
- 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 +728 -164
- package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/api.js +60 -11
- 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 +107 -3
- package/node_modules/@playdrop/types/dist/chat.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/chat.js +33 -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/domains/apps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,sBAAsB,EACtB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,EACxB,uBAAuB,EACvB,
|
|
1
|
+
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/domains/apps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,sBAAsB,EACtB,WAAW,EACX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A;KAAE,GAC3B,OAAO,CAAC,+BAA+B,CAAC;gCAaT,MAAM,eAAe,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;0BAWrE,MAAM,QAAQ,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;8BAWlD,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;qCAWjC,MAAM,WAAW,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC;mCAc5D,MAAM,WAAW,MAAM,WAAW,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;2CAgB9F,MAAM,WACd,MAAM,WACN,MAAM,GACd,OAAO,CAAC,wBAAwB,CAAC;uCAcjB,MAAM,WACd,MAAM,WACN,MAAM,GACd,OAAO,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,QAAQ,EAAE,uBAAuB,CAAA;KAAE,CAAC;sCA0C1C,MAAM,WACd,MAAM,WACN,MAAM,WACN;QACP,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,UAAU,CAAC,EAAE,oBAAoB,CAAC;QAClC,QAAQ,CAAC,EAAE,WAAW,CAAC;QACvB,OAAO,CAAC,EAAE,cAAc,CAAC;QACzB,YAAY,CAAC,EAAE,OAAO,CAAC;KACxB,GACA,OAAO,CAAC,qBAAqB,CAAC;sCAeO,MAAM,WAAW,MAAM,WAAW,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;+BAchF,MAAM,QAAQ,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;EAcrF"}
|
|
@@ -17,7 +17,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
var apps_exports = {};
|
|
19
19
|
__export(apps_exports, {
|
|
20
|
-
buildAppsApiClientMethods: () => buildAppsApiClientMethods
|
|
20
|
+
buildAppsApiClientMethods: () => buildAppsApiClientMethods,
|
|
21
|
+
hashVerifiedUploadBlob: () => hashVerifiedUploadBlob
|
|
21
22
|
});
|
|
22
23
|
module.exports = __toCommonJS(apps_exports);
|
|
23
24
|
var import_request = require("../core/request.js");
|
|
@@ -40,6 +41,70 @@ function appendNormalizedTagParams(params, tags) {
|
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
}
|
|
44
|
+
async function hashVerifiedUploadBlob(file) {
|
|
45
|
+
const input = new Uint8Array(await file.arrayBuffer());
|
|
46
|
+
const sha = await crypto.subtle.digest("SHA-256", input);
|
|
47
|
+
const sha256 = Array.from(new Uint8Array(sha), (value) => value.toString(16).padStart(2, "0")).join("");
|
|
48
|
+
const paddedLength = Math.ceil((input.length + 9) / 64) * 64;
|
|
49
|
+
const padded = new Uint8Array(paddedLength);
|
|
50
|
+
padded.set(input);
|
|
51
|
+
padded[input.length] = 128;
|
|
52
|
+
const bitLength = BigInt(input.length) * 8n;
|
|
53
|
+
for (let index = 0; index < 8; index += 1) {
|
|
54
|
+
padded[paddedLength - 8 + index] = Number(bitLength >> BigInt(index * 8) & 0xffn);
|
|
55
|
+
}
|
|
56
|
+
const shifts = [7, 12, 17, 22, 5, 9, 14, 20, 4, 11, 16, 23, 6, 10, 15, 21];
|
|
57
|
+
const constants = Array.from({ length: 64 }, (_, index) => Math.floor(Math.abs(Math.sin(index + 1)) * 2 ** 32));
|
|
58
|
+
const rotate = (value, bits) => value << bits | value >>> 32 - bits;
|
|
59
|
+
let a0 = 1732584193;
|
|
60
|
+
let b0 = 4023233417;
|
|
61
|
+
let c0 = 2562383102;
|
|
62
|
+
let d0 = 271733878;
|
|
63
|
+
for (let offset = 0; offset < padded.length; offset += 64) {
|
|
64
|
+
const words = Array.from({ length: 16 }, (_, index) => {
|
|
65
|
+
const base = offset + index * 4;
|
|
66
|
+
return padded[base] | padded[base + 1] << 8 | padded[base + 2] << 16 | padded[base + 3] << 24;
|
|
67
|
+
});
|
|
68
|
+
let a = a0;
|
|
69
|
+
let b = b0;
|
|
70
|
+
let c = c0;
|
|
71
|
+
let d = d0;
|
|
72
|
+
for (let index = 0; index < 64; index += 1) {
|
|
73
|
+
let f;
|
|
74
|
+
let wordIndex;
|
|
75
|
+
if (index < 16) {
|
|
76
|
+
f = b & c | ~b & d;
|
|
77
|
+
wordIndex = index;
|
|
78
|
+
} else if (index < 32) {
|
|
79
|
+
f = d & b | ~d & c;
|
|
80
|
+
wordIndex = (5 * index + 1) % 16;
|
|
81
|
+
} else if (index < 48) {
|
|
82
|
+
f = b ^ c ^ d;
|
|
83
|
+
wordIndex = (3 * index + 5) % 16;
|
|
84
|
+
} else {
|
|
85
|
+
f = c ^ (b | ~d);
|
|
86
|
+
wordIndex = 7 * index % 16;
|
|
87
|
+
}
|
|
88
|
+
const previousD = d;
|
|
89
|
+
d = c;
|
|
90
|
+
c = b;
|
|
91
|
+
const shift = shifts[Math.floor(index / 16) * 4 + index % 4];
|
|
92
|
+
b = b + rotate(a + f + constants[index] + words[wordIndex] | 0, shift) | 0;
|
|
93
|
+
a = previousD;
|
|
94
|
+
}
|
|
95
|
+
a0 = a0 + a | 0;
|
|
96
|
+
b0 = b0 + b | 0;
|
|
97
|
+
c0 = c0 + c | 0;
|
|
98
|
+
d0 = d0 + d | 0;
|
|
99
|
+
}
|
|
100
|
+
const md5 = new Uint8Array(16);
|
|
101
|
+
[a0, b0, c0, d0].forEach((value, wordIndex) => {
|
|
102
|
+
for (let byteIndex = 0; byteIndex < 4; byteIndex += 1) {
|
|
103
|
+
md5[wordIndex * 4 + byteIndex] = value >>> byteIndex * 8 & 255;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
return { sha256, md5Base64: btoa(String.fromCharCode(...md5)) };
|
|
107
|
+
}
|
|
43
108
|
function appendAppCapabilityFilterParams(params, filters) {
|
|
44
109
|
if (typeof filters.auth === "string" && filters.auth.trim().length > 0) {
|
|
45
110
|
params.set("auth", filters.auth.trim());
|
|
@@ -168,8 +233,14 @@ function buildAppsApiClientMethods(input) {
|
|
|
168
233
|
},
|
|
169
234
|
async fetchAppBySlug(creatorUsername, appName, options = {}) {
|
|
170
235
|
const params = new URLSearchParams();
|
|
171
|
-
if (options.includeDependencies ===
|
|
172
|
-
params.set("includeDependencies", "1");
|
|
236
|
+
if (typeof options.includeDependencies === "boolean") {
|
|
237
|
+
params.set("includeDependencies", options.includeDependencies ? "1" : "0");
|
|
238
|
+
}
|
|
239
|
+
if (typeof options.includeEngagement === "boolean") {
|
|
240
|
+
params.set("includeEngagement", options.includeEngagement ? "1" : "0");
|
|
241
|
+
}
|
|
242
|
+
if (typeof options.includeViewerState === "boolean") {
|
|
243
|
+
params.set("includeViewerState", options.includeViewerState ? "1" : "0");
|
|
173
244
|
}
|
|
174
245
|
const response = await request({
|
|
175
246
|
method: "GET",
|
|
@@ -180,28 +251,35 @@ function buildAppsApiClientMethods(input) {
|
|
|
180
251
|
}
|
|
181
252
|
return response.body;
|
|
182
253
|
},
|
|
183
|
-
async
|
|
184
|
-
const params = new URLSearchParams();
|
|
185
|
-
appendFinitePaginationParam(params, "limit", options.limit);
|
|
254
|
+
async fetchAppEngagement(creatorUsername, appName) {
|
|
186
255
|
const response = await request({
|
|
187
256
|
method: "GET",
|
|
188
|
-
path:
|
|
257
|
+
path: buildPublicAppPath(normalizeCreatorItemSlug, creatorUsername, appName, "/engagement")
|
|
189
258
|
});
|
|
190
259
|
if (response.status !== 200) {
|
|
191
|
-
handleApiError(response, "
|
|
260
|
+
handleApiError(response, "fetch_app_engagement");
|
|
192
261
|
}
|
|
193
262
|
return response.body;
|
|
194
263
|
},
|
|
195
|
-
async
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
appendFinitePaginationParam(params, "offset", options.offset);
|
|
264
|
+
async fetchAppViewerState(creatorUsername, appName) {
|
|
265
|
+
const creator = normalizeCreatorItemSlug(creatorUsername, "creator");
|
|
266
|
+
const name = normalizeCreatorItemSlug(appName, "name");
|
|
199
267
|
const response = await request({
|
|
200
268
|
method: "GET",
|
|
201
|
-
path:
|
|
269
|
+
path: `/me/content-state/APP/${encodeURIComponent(creator)}/${encodeURIComponent(name)}`
|
|
202
270
|
});
|
|
203
271
|
if (response.status !== 200) {
|
|
204
|
-
handleApiError(response, "
|
|
272
|
+
handleApiError(response, "fetch_app_viewer_state");
|
|
273
|
+
}
|
|
274
|
+
return response.body;
|
|
275
|
+
},
|
|
276
|
+
async fetchAppGameRecommendations(creatorUsername, appName) {
|
|
277
|
+
const response = await request({
|
|
278
|
+
method: "GET",
|
|
279
|
+
path: buildPublicAppPath(normalizeCreatorItemSlug, creatorUsername, appName, "/more")
|
|
280
|
+
});
|
|
281
|
+
if (response.status !== 200) {
|
|
282
|
+
handleApiError(response, "fetch_app_game_recommendations");
|
|
205
283
|
}
|
|
206
284
|
return response.body;
|
|
207
285
|
},
|
|
@@ -332,21 +410,44 @@ function buildAppsApiClientMethods(input) {
|
|
|
332
410
|
return response.body;
|
|
333
411
|
},
|
|
334
412
|
async uploadAppListingDraftMedia(creatorUsername, appName, slot, file, filename) {
|
|
335
|
-
const form = new FormData();
|
|
336
|
-
form.append("file", file, filename);
|
|
337
|
-
const headers = await buildAppUploadAuthorizedHeaders({ getClientHeaders, resolveToken });
|
|
338
413
|
const path = `${buildCreatorAppMutationPath(creatorUsername, appName)}/listing-draft/media/${encodeURIComponent(slot)}`;
|
|
339
|
-
const
|
|
414
|
+
const hashes = await hashVerifiedUploadBlob(file);
|
|
415
|
+
const descriptor = await request({
|
|
340
416
|
method: "POST",
|
|
341
|
-
|
|
342
|
-
body:
|
|
343
|
-
|
|
417
|
+
path,
|
|
418
|
+
body: {
|
|
419
|
+
action: "prepare",
|
|
420
|
+
filename,
|
|
421
|
+
contentType: file.type || "application/octet-stream",
|
|
422
|
+
sizeBytes: file.size,
|
|
423
|
+
...hashes
|
|
424
|
+
}
|
|
344
425
|
});
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
426
|
+
if (descriptor.status !== 200)
|
|
427
|
+
handleApiError(descriptor, "prepare_app_listing_draft_media");
|
|
428
|
+
const uploaded = await fetchImpl(descriptor.body.upload.url, {
|
|
429
|
+
method: "PUT",
|
|
430
|
+
headers: descriptor.body.upload.headers,
|
|
431
|
+
body: file
|
|
432
|
+
});
|
|
433
|
+
if (!uploaded.ok) {
|
|
434
|
+
handleApiError({ status: uploaded.status, body: await parseResponseBody(uploaded), headers: uploaded.headers }, "upload_app_listing_draft_media_object");
|
|
435
|
+
}
|
|
436
|
+
const completed = await request({
|
|
437
|
+
method: "POST",
|
|
438
|
+
path,
|
|
439
|
+
body: {
|
|
440
|
+
action: "complete",
|
|
441
|
+
storageKey: descriptor.body.storageKey,
|
|
442
|
+
filename,
|
|
443
|
+
contentType: file.type || "application/octet-stream",
|
|
444
|
+
sizeBytes: file.size,
|
|
445
|
+
...hashes
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
if (completed.status !== 200)
|
|
449
|
+
handleApiError(completed, "complete_app_listing_draft_media");
|
|
450
|
+
return completed.body;
|
|
350
451
|
},
|
|
351
452
|
async removeAppListingDraftMedia(creatorUsername, appName, slot) {
|
|
352
453
|
const response = await request({
|
|
@@ -386,48 +487,16 @@ function buildAppsApiClientMethods(input) {
|
|
|
386
487
|
}
|
|
387
488
|
return response.body;
|
|
388
489
|
},
|
|
389
|
-
async
|
|
390
|
-
const
|
|
391
|
-
const filename = typeof options.filename === "string" && options.filename.trim().length > 0 ? options.filename.trim() : "upload.bin";
|
|
392
|
-
form.append("file", options.file, filename);
|
|
393
|
-
const base = resolveBaseUrl();
|
|
394
|
-
const headers = await buildAppUploadAuthorizedHeaders({ getClientHeaders, resolveToken });
|
|
395
|
-
const path = `${buildCreatorAppMutationPath(creatorUsername, appName)}/upload-sessions/${encodeURIComponent(sessionId)}/files/${encodeURIComponent(fileKey)}`;
|
|
396
|
-
const response = await fetchImpl(resolveUrl(base, path), {
|
|
397
|
-
method: "POST",
|
|
398
|
-
headers,
|
|
399
|
-
body: form,
|
|
400
|
-
...(0, import_request.buildBrowserCredentialsInit)(includeBrowserCredentials)
|
|
401
|
-
});
|
|
402
|
-
const parsed = await parseResponseBody(response);
|
|
403
|
-
const apiResponse = { status: response.status, body: parsed, headers: response.headers };
|
|
404
|
-
if (response.status !== 200) {
|
|
405
|
-
handleApiError(apiResponse, "upload_app_session_file");
|
|
406
|
-
}
|
|
407
|
-
return parsed;
|
|
408
|
-
},
|
|
409
|
-
async uploadAppSessionOwnedAsset(creatorUsername, appName, sessionId, uploadKey, options) {
|
|
410
|
-
const form = new FormData();
|
|
411
|
-
for (const entry of options.files) {
|
|
412
|
-
const fieldName = typeof entry.fieldName === "string" && entry.fieldName.trim().length > 0 ? entry.fieldName.trim() : "file";
|
|
413
|
-
const filename = typeof entry.filename === "string" && entry.filename.trim().length > 0 ? entry.filename.trim() : "upload.bin";
|
|
414
|
-
form.append(fieldName, entry.file, filename);
|
|
415
|
-
}
|
|
416
|
-
const base = resolveBaseUrl();
|
|
417
|
-
const headers = await buildAppUploadAuthorizedHeaders({ getClientHeaders, resolveToken });
|
|
418
|
-
const path = `${buildCreatorAppMutationPath(creatorUsername, appName)}/upload-sessions/${encodeURIComponent(sessionId)}/owned-assets/${encodeURIComponent(uploadKey)}`;
|
|
419
|
-
const response = await fetchImpl(resolveUrl(base, path), {
|
|
490
|
+
async signAppUploadObjects(creatorUsername, appName, sessionId, requestBody) {
|
|
491
|
+
const response = await request({
|
|
420
492
|
method: "POST",
|
|
421
|
-
|
|
422
|
-
body:
|
|
423
|
-
...(0, import_request.buildBrowserCredentialsInit)(includeBrowserCredentials)
|
|
493
|
+
path: `${buildCreatorAppMutationPath(creatorUsername, appName)}/upload-sessions/${encodeURIComponent(sessionId)}/objects/sign`,
|
|
494
|
+
body: requestBody
|
|
424
495
|
});
|
|
425
|
-
const parsed = await parseResponseBody(response);
|
|
426
|
-
const apiResponse = { status: response.status, body: parsed, headers: response.headers };
|
|
427
496
|
if (response.status !== 200) {
|
|
428
|
-
handleApiError(
|
|
497
|
+
handleApiError(response, "sign_app_upload_objects");
|
|
429
498
|
}
|
|
430
|
-
return
|
|
499
|
+
return response.body;
|
|
431
500
|
},
|
|
432
501
|
async finalizeAppUpload(creatorUsername, appName, sessionId, requestBody) {
|
|
433
502
|
const response = await request({
|
|
@@ -472,17 +541,6 @@ function buildAppsApiClientMethods(input) {
|
|
|
472
541
|
}
|
|
473
542
|
return response.body;
|
|
474
543
|
},
|
|
475
|
-
async recordAppUploadMediaCapture(creatorUsername, appName, sessionId, requestBody) {
|
|
476
|
-
const response = await request({
|
|
477
|
-
method: "POST",
|
|
478
|
-
path: `${buildCreatorAppMutationPath(creatorUsername, appName)}/upload-sessions/${encodeURIComponent(sessionId)}/media-capture`,
|
|
479
|
-
body: requestBody
|
|
480
|
-
});
|
|
481
|
-
if (response.status !== 200) {
|
|
482
|
-
handleApiError(response, "record_app_upload_media_capture");
|
|
483
|
-
}
|
|
484
|
-
return response.body;
|
|
485
|
-
},
|
|
486
544
|
async abortAppUpload(creatorUsername, appName, sessionId) {
|
|
487
545
|
const response = await request({
|
|
488
546
|
method: "POST",
|
|
@@ -518,6 +576,29 @@ function buildAppsApiClientMethods(input) {
|
|
|
518
576
|
}
|
|
519
577
|
return response.body;
|
|
520
578
|
},
|
|
579
|
+
async requestDevGameServerCredential(appId, options) {
|
|
580
|
+
const version = options.version.trim();
|
|
581
|
+
if (!version)
|
|
582
|
+
throw new Error("invalid_app_version");
|
|
583
|
+
const response = await request({
|
|
584
|
+
method: "POST",
|
|
585
|
+
path: `/apps/${encodeURIComponent(String(appId))}/dev/server-credential?version=${encodeURIComponent(version)}`
|
|
586
|
+
});
|
|
587
|
+
if (response.status !== 200) {
|
|
588
|
+
handleApiError(response, "request_dev_game_server_credential");
|
|
589
|
+
}
|
|
590
|
+
return response.body;
|
|
591
|
+
},
|
|
592
|
+
async listDevSocialFriends(appId, currentSlot) {
|
|
593
|
+
const response = await request({
|
|
594
|
+
method: "GET",
|
|
595
|
+
path: `/apps/${encodeURIComponent(String(appId))}/dev/social-friends?slot=${encodeURIComponent(String(currentSlot))}`
|
|
596
|
+
});
|
|
597
|
+
if (response.status !== 200) {
|
|
598
|
+
handleApiError(response, "list_dev_social_friends");
|
|
599
|
+
}
|
|
600
|
+
return response.body;
|
|
601
|
+
},
|
|
521
602
|
async resetDevPlayer(appId, slot) {
|
|
522
603
|
const response = await request({
|
|
523
604
|
method: "POST",
|
|
@@ -642,24 +723,11 @@ function buildAppsApiClientMethods(input) {
|
|
|
642
723
|
handleApiError(response, "delete_app");
|
|
643
724
|
}
|
|
644
725
|
return response.body;
|
|
645
|
-
},
|
|
646
|
-
async fetchRemixScaffold(creatorUsername, appName, version) {
|
|
647
|
-
const params = new URLSearchParams();
|
|
648
|
-
if (typeof version === "string" && version.trim().length > 0) {
|
|
649
|
-
params.set("version", version.trim());
|
|
650
|
-
}
|
|
651
|
-
const response = await request({
|
|
652
|
-
method: "GET",
|
|
653
|
-
path: `${buildPublicAppPath(normalizeCreatorItemSlug, creatorUsername, appName)}/remix${params.size > 0 ? `?${params.toString()}` : ""}`
|
|
654
|
-
});
|
|
655
|
-
if (response.status !== 200) {
|
|
656
|
-
handleApiError(response, "fetch_remix_scaffold");
|
|
657
|
-
}
|
|
658
|
-
return response.body;
|
|
659
726
|
}
|
|
660
727
|
};
|
|
661
728
|
}
|
|
662
729
|
// Annotate the CommonJS export names for ESM import in node:
|
|
663
730
|
0 && (module.exports = {
|
|
664
|
-
buildAppsApiClientMethods
|
|
731
|
+
buildAppsApiClientMethods,
|
|
732
|
+
hashVerifiedUploadBlob
|
|
665
733
|
});
|
|
@@ -38,6 +38,10 @@ export declare function buildAssetsApiClientMethods(input: {
|
|
|
38
38
|
loadOwnedCustomAsset(appId: number, assetName: string, revision: string | number, options: {
|
|
39
39
|
assetSpecRef: string;
|
|
40
40
|
}): Promise<LoadOwnedCustomAssetResponse>;
|
|
41
|
+
downloadOwnedCustomAssetFile(appId: number, assetName: string, revision: string | number, options: {
|
|
42
|
+
assetSpecRef: string;
|
|
43
|
+
role?: string;
|
|
44
|
+
}): Promise<Blob>;
|
|
41
45
|
saveOwnedCustomAsset(appId: number, requestBody: MutateOwnedCustomAssetRequest): Promise<MutateOwnedCustomAssetResponse>;
|
|
42
46
|
deleteOwnedCustomAsset(appId: number, assetName: string, options: {
|
|
43
47
|
assetSpecRef: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/domains/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,uBAAuB,EACvB,qBAAqB,EACrB,gCAAgC,EAChC,6BAA6B,EAC7B,yBAAyB,EACzB,6BAA6B,EAC7B,8BAA8B,EAC9B,0BAA0B,EAC1B,mBAAmB,EACnB,uBAAuB,EACvB,8BAA8B,EAC9B,0BAA0B,EAC1B,8BAA8B,EAC9B,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,EAC7B,8BAA8B,EAC9B,kBAAkB,EAClB,mBAAmB,EACnB,8BAA8B,EAC9B,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,6BAA6B,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAG7F,KAAK,eAAe,CAAC,CAAC,IAAI;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,KAAK,eAAe,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE;IAChC,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,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C,EAAE,MAAM,CAAA;KAAE,GACzB,OAAO,CAAC,IAAI,CAAC;yCAmCG,MAAM,aACZ,MAAM,YACP,MAAM,GAAG,MAAM,GACxB,OAAO,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,QAAQ,EAAE,yBAAyB,CAAA;KAAE,CAAC;EA4ClE"}
|
|
@@ -302,6 +302,33 @@ function buildAssetsApiClientMethods(input) {
|
|
|
302
302
|
}
|
|
303
303
|
return response.body;
|
|
304
304
|
},
|
|
305
|
+
async downloadOwnedCustomAssetFile(appId, assetName, revision, options) {
|
|
306
|
+
const normalizedAssetName = typeof assetName === "string" ? assetName.trim() : "";
|
|
307
|
+
if (!normalizedAssetName)
|
|
308
|
+
throw new Error("invalid_asset_name");
|
|
309
|
+
const normalizedRevision = normalizeAssetRevisionInput(revision);
|
|
310
|
+
const params = new URLSearchParams({ assetSpecRef: options.assetSpecRef.trim() });
|
|
311
|
+
if (typeof options.role === "string" && options.role.trim())
|
|
312
|
+
params.set("role", options.role.trim());
|
|
313
|
+
const path = `/v1/apps/${encodeURIComponent(String(appId))}/custom-assets/${encodeURIComponent(normalizedAssetName)}/versions/${encodeURIComponent(normalizedRevision)}/file?${params.toString()}`;
|
|
314
|
+
const base = resolveBaseUrl();
|
|
315
|
+
const headers = new Headers();
|
|
316
|
+
for (const [key, value] of Object.entries(getClientHeaders()))
|
|
317
|
+
headers.set(key, value);
|
|
318
|
+
const token = await resolveToken();
|
|
319
|
+
if (token)
|
|
320
|
+
headers.set("authorization", `Bearer ${token}`);
|
|
321
|
+
const response = await fetchImpl(resolveUrl(base, path), {
|
|
322
|
+
method: "GET",
|
|
323
|
+
headers,
|
|
324
|
+
...(0, import_request.buildBrowserCredentialsInit)(includeBrowserCredentials)
|
|
325
|
+
});
|
|
326
|
+
if (!response.ok) {
|
|
327
|
+
const parsed = await parseResponseBody(response);
|
|
328
|
+
handleApiError({ status: response.status, body: parsed, headers: response.headers }, "download_owned_custom_asset_file");
|
|
329
|
+
}
|
|
330
|
+
return response.blob();
|
|
331
|
+
},
|
|
305
332
|
async saveOwnedCustomAsset(appId, requestBody) {
|
|
306
333
|
const response = await request({
|
|
307
334
|
method: "POST",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChatAttachmentUploadSession, ChatChannelReadResponse, ChatChannelsResponse, ChatConversationResponse, ChatConversationsResponse, ChatMessageResponse, ChatMessagesResponse, ChatNotificationPreferences, ChatRealtimeEvent, CreateChatMessageRequest, EditChatMessageRequest } from "@playdrop/types";
|
|
1
|
+
import type { ChatAttachmentUploadSession, ChatChannelReadResponse, ChatContact, ChatContactsResponse, ChatChannelsResponse, ChatConversation, ChatConversationResponse, ChatConversationsResponse, ChatMessageResponse, ChatMessagesResponse, ChatNotificationPreferences, ChatRealtimeEvent, PlayTradeRealtimeActivityFrame, PlayTradeRealtimeActivityUpdate, CreateChatMessageRequest, EditChatMessageRequest, PlatformFriendPresenceEntry, PlatformRealtimeTopic } from "@playdrop/types";
|
|
2
2
|
type ApiResponseLike<T> = {
|
|
3
3
|
status: number;
|
|
4
4
|
body: T;
|
|
@@ -51,16 +51,37 @@ export type ChatRealtimeConnectionOptions = {
|
|
|
51
51
|
conversationId: string;
|
|
52
52
|
lastEventVersion?: string | null;
|
|
53
53
|
}>;
|
|
54
|
+
platformSubscriptions?: Array<{
|
|
55
|
+
topic: PlatformRealtimeTopic;
|
|
56
|
+
lastEventVersion?: string | null;
|
|
57
|
+
}>;
|
|
54
58
|
onEvent: (event: ChatRealtimeEvent) => void;
|
|
55
|
-
|
|
59
|
+
onInboxSnapshot?: (conversations: ChatConversation[]) => void;
|
|
60
|
+
onInboxEvent?: (event: ChatRealtimeEvent) => void;
|
|
61
|
+
onInboxResyncRequired?: (conversationId: string) => void;
|
|
56
62
|
onTypingUpdated?: (event: {
|
|
57
63
|
conversationId: string;
|
|
58
64
|
userId: number;
|
|
59
65
|
active: boolean;
|
|
60
66
|
expiresAt: string;
|
|
61
67
|
}) => void;
|
|
68
|
+
onPresenceSnapshot?: (entries: PlatformFriendPresenceEntry[]) => void;
|
|
69
|
+
onPresenceUpdated?: (entry: PlatformFriendPresenceEntry) => void;
|
|
62
70
|
onStateChange?: (state: ChatRealtimeConnectionState) => void;
|
|
63
71
|
onResyncRequired?: (conversationId: string) => void;
|
|
72
|
+
onPlatformEvent?: (event: {
|
|
73
|
+
topic: PlatformRealtimeTopic;
|
|
74
|
+
eventVersion: string;
|
|
75
|
+
resync: boolean;
|
|
76
|
+
}) => void;
|
|
77
|
+
onPlayTradeActivity?: (event: {
|
|
78
|
+
type: "updated";
|
|
79
|
+
activity: PlayTradeRealtimeActivityUpdate;
|
|
80
|
+
} | {
|
|
81
|
+
type: "error";
|
|
82
|
+
sessionId: string;
|
|
83
|
+
code: string;
|
|
84
|
+
}) => void;
|
|
64
85
|
onError?: (code: string) => void;
|
|
65
86
|
webSocketFactory?: (url: string) => ChatRealtimeSocket;
|
|
66
87
|
};
|
|
@@ -69,7 +90,12 @@ export type ChatRealtimeConnection = {
|
|
|
69
90
|
subscribe(conversationId: string, lastEventVersion?: string | null): void;
|
|
70
91
|
unsubscribe(conversationId: string): void;
|
|
71
92
|
setTyping(conversationId: string, active: boolean): void;
|
|
93
|
+
setPresenceContext(context: "ONLINE" | "CREATING"): void;
|
|
72
94
|
getLastEventVersion(conversationId: string): string | null;
|
|
95
|
+
subscribePlatform(topic: PlatformRealtimeTopic, lastEventVersion?: string | null): void;
|
|
96
|
+
unsubscribePlatform(topic: PlatformRealtimeTopic): void;
|
|
97
|
+
getPlatformEventVersion(topic: PlatformRealtimeTopic): string | null;
|
|
98
|
+
sendPlayTradeActivity(frame: Omit<PlayTradeRealtimeActivityFrame, "type">): void;
|
|
73
99
|
};
|
|
74
100
|
export declare function buildChatApiClientMethods(input: {
|
|
75
101
|
request: RequestExecutor;
|
|
@@ -117,10 +143,14 @@ export declare function buildChatApiClientMethods(input: {
|
|
|
117
143
|
cursor?: string;
|
|
118
144
|
limit?: number;
|
|
119
145
|
}): Promise<{
|
|
120
|
-
friends:
|
|
146
|
+
friends: ChatContact[];
|
|
121
147
|
hasMore: boolean;
|
|
122
148
|
nextCursor: string | null;
|
|
123
149
|
}>;
|
|
150
|
+
fetchChatContacts(options?: {
|
|
151
|
+
cursor?: string;
|
|
152
|
+
limit?: number;
|
|
153
|
+
}): Promise<ChatContactsResponse>;
|
|
124
154
|
fetchChatNotificationPreferences(): Promise<ChatNotificationPreferences>;
|
|
125
155
|
updateChatNotificationPreferences(preferences: Partial<ChatNotificationPreferences>): Promise<ChatNotificationPreferences>;
|
|
126
156
|
createChatAttachmentUploadSession(conversationId: string, file: {
|
|
@@ -134,10 +164,12 @@ export declare function buildChatApiClientMethods(input: {
|
|
|
134
164
|
createCommunityChatChannel(input: {
|
|
135
165
|
slug: string;
|
|
136
166
|
displayName: string;
|
|
167
|
+
symbol?: string;
|
|
137
168
|
position: number;
|
|
138
169
|
}): Promise<unknown>;
|
|
139
170
|
updateCommunityChatChannel(conversationId: string, input: {
|
|
140
171
|
displayName?: string;
|
|
172
|
+
symbol?: string;
|
|
141
173
|
position?: number;
|
|
142
174
|
archived?: boolean;
|
|
143
175
|
}): Promise<unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/domains/chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,uBAAuB,EACvB,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC3B,iBAAiB,EAEjB,wBAAwB,EACxB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/domains/chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,uBAAuB,EACvB,WAAW,EACX,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,EACzB,mB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