@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
|
@@ -49,15 +49,35 @@ function parseRealtimeFrame(value) {
|
|
|
49
49
|
const type = frame["type"];
|
|
50
50
|
if (type === "ready" && typeof frame["heartbeatIntervalMs"] === "number")
|
|
51
51
|
return parsed;
|
|
52
|
-
if ((type === "subscribed" || type === "inbox.
|
|
52
|
+
if ((type === "subscribed" || type === "inbox.resync_required" || type === "resync_required") && typeof frame["conversationId"] === "string") {
|
|
53
53
|
return parsed;
|
|
54
54
|
}
|
|
55
55
|
if (type === "conversation.event" && frame["event"] && typeof frame["event"] === "object") {
|
|
56
56
|
return parsed;
|
|
57
57
|
}
|
|
58
|
+
if (type === "inbox.snapshot" && Array.isArray(frame["conversations"])) {
|
|
59
|
+
return parsed;
|
|
60
|
+
}
|
|
61
|
+
if (type === "inbox.event" && frame["event"] && typeof frame["event"] === "object") {
|
|
62
|
+
return parsed;
|
|
63
|
+
}
|
|
58
64
|
if (type === "typing.updated" && typeof frame["conversationId"] === "string" && typeof frame["userId"] === "number" && typeof frame["active"] === "boolean" && typeof frame["expiresAt"] === "string") {
|
|
59
65
|
return parsed;
|
|
60
66
|
}
|
|
67
|
+
if (type === "playtrade.activity.updated" && frame["activity"] && typeof frame["activity"] === "object") {
|
|
68
|
+
return parsed;
|
|
69
|
+
}
|
|
70
|
+
if (type === "playtrade.activity.error" && typeof frame["sessionId"] === "string" && typeof frame["code"] === "string") {
|
|
71
|
+
return parsed;
|
|
72
|
+
}
|
|
73
|
+
if (type === "presence.snapshot" && Array.isArray(frame["entries"]))
|
|
74
|
+
return parsed;
|
|
75
|
+
if (type === "presence.updated" && frame["entry"] && typeof frame["entry"] === "object") {
|
|
76
|
+
return parsed;
|
|
77
|
+
}
|
|
78
|
+
if ((type === "platform.subscribed" || type === "platform.event" || type === "platform.resync_required") && typeof frame["topic"] === "string" && typeof frame["eventVersion"] === "string") {
|
|
79
|
+
return parsed;
|
|
80
|
+
}
|
|
61
81
|
if (type === "error" && typeof frame["code"] === "string")
|
|
62
82
|
return parsed;
|
|
63
83
|
throw new Error("chat_realtime_invalid_frame");
|
|
@@ -234,6 +254,12 @@ function buildChatApiClientMethods(input) {
|
|
|
234
254
|
handleApiError(response, "fetch_chat_friends");
|
|
235
255
|
return response.body;
|
|
236
256
|
},
|
|
257
|
+
async fetchChatContacts(options = {}) {
|
|
258
|
+
const response = await request({ method: "GET", path: `/me/chat-contacts${listQuery(options)}` });
|
|
259
|
+
if (response.status !== 200)
|
|
260
|
+
handleApiError(response, "fetch_chat_contacts");
|
|
261
|
+
return response.body;
|
|
262
|
+
},
|
|
237
263
|
async fetchChatNotificationPreferences() {
|
|
238
264
|
const response = await request({ method: "GET", path: "/me/chat-notification-preferences" });
|
|
239
265
|
if (response.status !== 200)
|
|
@@ -353,10 +379,15 @@ function buildChatApiClientMethods(input) {
|
|
|
353
379
|
let reconnectTimer = null;
|
|
354
380
|
let stopped = false;
|
|
355
381
|
let attempt = 0;
|
|
382
|
+
let presenceContext = "ONLINE";
|
|
356
383
|
const subscriptions = new Map((options.subscriptions ?? []).map((subscription) => [
|
|
357
384
|
subscription.conversationId,
|
|
358
385
|
subscription.lastEventVersion ?? null
|
|
359
386
|
]));
|
|
387
|
+
const platformSubscriptions = new Map((options.platformSubscriptions ?? []).map((subscription) => [
|
|
388
|
+
subscription.topic,
|
|
389
|
+
subscription.lastEventVersion ?? null
|
|
390
|
+
]));
|
|
360
391
|
const notifyState = (state) => options.onStateChange?.(state);
|
|
361
392
|
const factory = options.webSocketFactory ?? ((url) => {
|
|
362
393
|
if (typeof globalThis.WebSocket !== "function")
|
|
@@ -371,6 +402,9 @@ function buildChatApiClientMethods(input) {
|
|
|
371
402
|
for (const [conversationId, lastEventVersion] of subscriptions) {
|
|
372
403
|
send({ type: "subscribe", conversationId, lastEventVersion });
|
|
373
404
|
}
|
|
405
|
+
for (const [topic, lastEventVersion] of platformSubscriptions) {
|
|
406
|
+
send({ type: "platform.subscribe", topic, lastEventVersion });
|
|
407
|
+
}
|
|
374
408
|
};
|
|
375
409
|
const scheduleReconnect = () => {
|
|
376
410
|
if (stopped || reconnectTimer)
|
|
@@ -390,9 +424,9 @@ function buildChatApiClientMethods(input) {
|
|
|
390
424
|
notifyState(attempt === 0 ? "connecting" : "reconnecting");
|
|
391
425
|
let token;
|
|
392
426
|
try {
|
|
393
|
-
token = await resolveToken();
|
|
394
|
-
if (
|
|
395
|
-
|
|
427
|
+
token = await resolveToken() ?? "cookie";
|
|
428
|
+
if (stopped)
|
|
429
|
+
return;
|
|
396
430
|
socket = factory(chatWebSocketUrl(resolveBaseUrl()));
|
|
397
431
|
} catch (error) {
|
|
398
432
|
const code = error instanceof Error ? error.message : "chat_realtime_connection_failed";
|
|
@@ -418,6 +452,7 @@ function buildChatApiClientMethods(input) {
|
|
|
418
452
|
attempt = 0;
|
|
419
453
|
notifyState("ready");
|
|
420
454
|
sendSubscriptions();
|
|
455
|
+
send({ type: "presence.context", context: presenceContext });
|
|
421
456
|
} else if (frame.type === "subscribed") {
|
|
422
457
|
subscriptions.set(frame.conversationId, frame.eventVersion);
|
|
423
458
|
} else if (frame.type === "conversation.event") {
|
|
@@ -428,10 +463,34 @@ function buildChatApiClientMethods(input) {
|
|
|
428
463
|
options.onError?.("chat_realtime_event_handler_failed");
|
|
429
464
|
activeSocket.close(1011, "chat_realtime_event_handler_failed");
|
|
430
465
|
}
|
|
431
|
-
} else if (frame.type === "inbox.
|
|
432
|
-
options.
|
|
466
|
+
} else if (frame.type === "inbox.snapshot") {
|
|
467
|
+
options.onInboxSnapshot?.(frame.conversations);
|
|
468
|
+
} else if (frame.type === "inbox.event") {
|
|
469
|
+
options.onInboxEvent?.(frame.event);
|
|
470
|
+
} else if (frame.type === "inbox.resync_required") {
|
|
471
|
+
options.onInboxResyncRequired?.(frame.conversationId);
|
|
433
472
|
} else if (frame.type === "typing.updated") {
|
|
434
473
|
options.onTypingUpdated?.(frame);
|
|
474
|
+
} else if (frame.type === "presence.snapshot") {
|
|
475
|
+
options.onPresenceSnapshot?.(frame.entries);
|
|
476
|
+
} else if (frame.type === "presence.updated") {
|
|
477
|
+
options.onPresenceUpdated?.(frame.entry);
|
|
478
|
+
} else if (frame.type === "platform.subscribed") {
|
|
479
|
+
platformSubscriptions.set(frame.topic, frame.eventVersion);
|
|
480
|
+
} else if (frame.type === "platform.event") {
|
|
481
|
+
options.onPlatformEvent?.({ topic: frame.topic, eventVersion: frame.eventVersion, resync: false });
|
|
482
|
+
platformSubscriptions.set(frame.topic, frame.eventVersion);
|
|
483
|
+
} else if (frame.type === "platform.resync_required") {
|
|
484
|
+
options.onPlatformEvent?.({ topic: frame.topic, eventVersion: frame.eventVersion, resync: true });
|
|
485
|
+
platformSubscriptions.set(frame.topic, frame.eventVersion);
|
|
486
|
+
} else if (frame.type === "playtrade.activity.updated") {
|
|
487
|
+
options.onPlayTradeActivity?.({ type: "updated", activity: frame.activity });
|
|
488
|
+
} else if (frame.type === "playtrade.activity.error") {
|
|
489
|
+
options.onPlayTradeActivity?.({
|
|
490
|
+
type: "error",
|
|
491
|
+
sessionId: frame.sessionId,
|
|
492
|
+
code: frame.code
|
|
493
|
+
});
|
|
435
494
|
} else if (frame.type === "resync_required") {
|
|
436
495
|
subscriptions.set(frame.conversationId, null);
|
|
437
496
|
options.onResyncRequired?.(frame.conversationId);
|
|
@@ -455,7 +514,10 @@ function buildChatApiClientMethods(input) {
|
|
|
455
514
|
socket = null;
|
|
456
515
|
if (stopped)
|
|
457
516
|
notifyState("closed");
|
|
458
|
-
else if (event.code === 1008) {
|
|
517
|
+
else if (event.code === 1008 && event.reason === "chat_realtime_token_expired") {
|
|
518
|
+
attempt = Math.max(attempt, 1);
|
|
519
|
+
void connect();
|
|
520
|
+
} else if (event.code === 1008) {
|
|
459
521
|
stopped = true;
|
|
460
522
|
options.onError?.(event.reason || "chat_realtime_forbidden");
|
|
461
523
|
notifyState("closed");
|
|
@@ -489,8 +551,28 @@ function buildChatApiClientMethods(input) {
|
|
|
489
551
|
throw new Error("chat_realtime_not_subscribed");
|
|
490
552
|
send({ type: "typing", conversationId, active });
|
|
491
553
|
},
|
|
554
|
+
setPresenceContext(context) {
|
|
555
|
+
presenceContext = context;
|
|
556
|
+
send({ type: "presence.context", context });
|
|
557
|
+
},
|
|
492
558
|
getLastEventVersion(conversationId) {
|
|
493
559
|
return subscriptions.get(conversationId) ?? null;
|
|
560
|
+
},
|
|
561
|
+
subscribePlatform(topic, lastEventVersion = null) {
|
|
562
|
+
platformSubscriptions.set(topic, lastEventVersion);
|
|
563
|
+
send({ type: "platform.subscribe", topic, lastEventVersion });
|
|
564
|
+
},
|
|
565
|
+
unsubscribePlatform(topic) {
|
|
566
|
+
platformSubscriptions.delete(topic);
|
|
567
|
+
send({ type: "platform.unsubscribe", topic });
|
|
568
|
+
},
|
|
569
|
+
getPlatformEventVersion(topic) {
|
|
570
|
+
return platformSubscriptions.get(topic) ?? null;
|
|
571
|
+
},
|
|
572
|
+
sendPlayTradeActivity(frame) {
|
|
573
|
+
if (stopped || socket?.readyState !== 1)
|
|
574
|
+
throw new Error("chat_realtime_not_ready");
|
|
575
|
+
send({ type: "playtrade.activity", ...frame });
|
|
494
576
|
}
|
|
495
577
|
};
|
|
496
578
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GetAchievementResponse, GetLeaderboardResponse, ListAchievementsResponse, ListLeaderboardsResponse, MyAchievementsResponse, MyLeaderboardsResponse, SetAchievementProgressRequest, SetAchievementProgressResponse, SubmitLeaderboardScoreRequest, SubmitLeaderboardScoreResponse, UnlockAchievementResponse } from "@playdrop/types";
|
|
1
|
+
import type { GetAchievementResponse, GetLeaderboardResponse, ListAchievementsResponse, ListLeaderboardsResponse, LeaderboardEntry, MyAchievementsResponse, MyLeaderboardsResponse, SetAchievementProgressRequest, SetAchievementProgressResponse, SubmitLeaderboardScoreRequest, SubmitLeaderboardScoreResponse, UnlockAchievementResponse } from "@playdrop/types";
|
|
2
2
|
type ApiResponseLike<T> = {
|
|
3
3
|
status: number;
|
|
4
4
|
body: T;
|
|
@@ -34,6 +34,7 @@ export declare function buildPlayerMetaApiClientMethods(input: {
|
|
|
34
34
|
aroundMe?: number;
|
|
35
35
|
includeRetired?: boolean;
|
|
36
36
|
}): Promise<GetLeaderboardResponse>;
|
|
37
|
+
getFriendLeaderboardEntries(appId: number, key: string): Promise<LeaderboardEntry[]>;
|
|
37
38
|
submitLeaderboardScore(appId: number, key: string, payload: SubmitLeaderboardScoreRequest): Promise<SubmitLeaderboardScoreResponse>;
|
|
38
39
|
fetchMyAchievements(): Promise<MyAchievementsResponse>;
|
|
39
40
|
fetchMyLeaderboards(): Promise<MyLeaderboardsResponse>;
|
|
@@ -1 +1 @@
|
|
|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},
|
|
113
|
+
async getFriendLeaderboardEntries(appId, key) {
|
|
114
|
+
const response = await request({
|
|
115
|
+
method: "GET",
|
|
116
|
+
path: `/platform/apps/${encodeURIComponent(String(appId))}/leaderboards/${encodeURIComponent(key)}/friends`
|
|
117
|
+
});
|
|
118
|
+
if (response.status !== 200)
|
|
119
|
+
handleApiError(response, "get_friend_leaderboard_entries");
|
|
120
|
+
return response.body.entries;
|
|
121
|
+
},
|
|
113
122
|
async submitLeaderboardScore(appId, key, payload) {
|
|
114
123
|
const response = await request({
|
|
115
124
|
method: "POST",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AbandonPlayTradeSessionResponse, CompletePlayTradeSessionRequest, CompletePlayTradeSessionResponse, CreatePlayTradeSessionRequest, AppSurface,
|
|
1
|
+
import type { AbandonPlayTradeSessionResponse, CompletePlayTradeSessionRequest, CompletePlayTradeSessionResponse, CreatePlayTradeSessionRequest, AppSurface, PlayTradeSessionResponse } from "@playdrop/types";
|
|
2
2
|
type ApiResponseLike<T> = {
|
|
3
3
|
status: number;
|
|
4
4
|
body: T;
|
|
@@ -18,7 +18,6 @@ export declare function buildPlayTradeApiClientMethods(input: {
|
|
|
18
18
|
}): {
|
|
19
19
|
createPlayTradeSession(body: CreatePlayTradeSessionRequest): Promise<PlayTradeSessionResponse>;
|
|
20
20
|
getPlayTradeSession(sessionId: string, viewerSurface: AppSurface): Promise<PlayTradeSessionResponse>;
|
|
21
|
-
recordPlayTradeActivity(sessionId: string, body: PlayTradeActivityRequest): Promise<PlayTradeSessionResponse>;
|
|
22
21
|
completePlayTradeSession(sessionId: string, body: CompletePlayTradeSessionRequest): Promise<CompletePlayTradeSessionResponse>;
|
|
23
22
|
abandonPlayTradeSession(sessionId: string): Promise<AbandonPlayTradeSessionResponse>;
|
|
24
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playtrade.d.ts","sourceRoot":"","sources":["../../src/domains/playtrade.ts"],"names":[],"mappings":"AAA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+BAA+B,CAAC;EAW7F"}
|
|
@@ -51,17 +51,6 @@ function buildPlayTradeApiClientMethods(input) {
|
|
|
51
51
|
}
|
|
52
52
|
return response.body;
|
|
53
53
|
},
|
|
54
|
-
async recordPlayTradeActivity(sessionId, body) {
|
|
55
|
-
const response = await request({
|
|
56
|
-
method: "POST",
|
|
57
|
-
path: sessionPath(sessionId, "/activity"),
|
|
58
|
-
body
|
|
59
|
-
});
|
|
60
|
-
if (response.status !== 200) {
|
|
61
|
-
handleApiError(response, "record_playtrade_activity");
|
|
62
|
-
}
|
|
63
|
-
return response.body;
|
|
64
|
-
},
|
|
65
54
|
async completePlayTradeSession(sessionId, body) {
|
|
66
55
|
const response = await request({
|
|
67
56
|
method: "POST",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { SendSocialMessageInput, SendSocialMessageResponse, SocialFriend, SocialMessagePage } from "@playdrop/types";
|
|
2
|
+
type ApiResponseLike<T> = {
|
|
3
|
+
status: number;
|
|
4
|
+
body: T;
|
|
5
|
+
headers: Headers;
|
|
6
|
+
};
|
|
7
|
+
type RequestExecutor = <T>(input: {
|
|
8
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
9
|
+
path: string;
|
|
10
|
+
body?: unknown;
|
|
11
|
+
headers?: Record<string, string>;
|
|
12
|
+
signal?: AbortSignal;
|
|
13
|
+
}) => Promise<ApiResponseLike<T>>;
|
|
14
|
+
type ErrorHandler = (response: ApiResponseLike<unknown>, defaultMessage: string) => never;
|
|
15
|
+
export declare function buildSocialApiClientMethods(input: {
|
|
16
|
+
request: RequestExecutor;
|
|
17
|
+
handleApiError: ErrorHandler;
|
|
18
|
+
}): {
|
|
19
|
+
getPlatformGameFriends(appId: number): Promise<SocialFriend[]>;
|
|
20
|
+
listGameFriends(): Promise<SocialFriend[]>;
|
|
21
|
+
sendSocialMessage(message: SendSocialMessageInput): Promise<SendSocialMessageResponse>;
|
|
22
|
+
getSocialMessages(options?: {
|
|
23
|
+
cursor?: string;
|
|
24
|
+
limit?: number;
|
|
25
|
+
}): Promise<SocialMessagePage>;
|
|
26
|
+
consumeSocialMessage(messageId: string): Promise<void>;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=social.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"social.d.ts","sourceRoot":"","sources":["../../src/domains/social.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EACzB,YAAY,EACZ,iBAAiB,EAClB,MAAM,iBAAiB,CAAC;AAEzB,KAAK,eAAe,CAAC,CAAC,IAAI;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,CAAC,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AACxE,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,EAAE,MAAM,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAClC,KAAK,YAAY,GAAG,CAAC,QAAQ,EAAE,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc,EAAE,MAAM,KAAK,KAAK,CAAC;AAE1F,wBAAgB,2BAA2B,CAAC,KAAK,EAAE;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,cAAc,EAAE,YAAY,CAAA;CAAE;kCAGrE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;uBAQ3C,OAAO,CAAC,YAAY,EAAE,CAAC;+BAMf,sBAAsB,GAAG,OAAO,CAAC,yBAAyB,CAAC;gCAU3D;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAQ,OAAO,CAAC,iBAAiB,CAAC;oCAahE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;EAQ/D"}
|
|
@@ -0,0 +1,79 @@
|
|
|
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 social_exports = {};
|
|
19
|
+
__export(social_exports, {
|
|
20
|
+
buildSocialApiClientMethods: () => buildSocialApiClientMethods
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(social_exports);
|
|
23
|
+
function buildSocialApiClientMethods(input) {
|
|
24
|
+
const { request, handleApiError } = input;
|
|
25
|
+
return {
|
|
26
|
+
async getPlatformGameFriends(appId) {
|
|
27
|
+
const response = await request({
|
|
28
|
+
method: "GET",
|
|
29
|
+
path: `/platform/apps/${encodeURIComponent(String(appId))}/friends-playing`
|
|
30
|
+
});
|
|
31
|
+
if (response.status !== 200)
|
|
32
|
+
handleApiError(response, "get_platform_game_friends");
|
|
33
|
+
return response.body.friends;
|
|
34
|
+
},
|
|
35
|
+
async listGameFriends() {
|
|
36
|
+
const response = await request({ method: "GET", path: "/v1/social/friends" });
|
|
37
|
+
if (response.status !== 200)
|
|
38
|
+
handleApiError(response, "list_game_friends");
|
|
39
|
+
return response.body.friends;
|
|
40
|
+
},
|
|
41
|
+
async sendSocialMessage(message) {
|
|
42
|
+
const response = await request({
|
|
43
|
+
method: "POST",
|
|
44
|
+
path: "/v1/social/messages",
|
|
45
|
+
body: message
|
|
46
|
+
});
|
|
47
|
+
if (response.status !== 200 && response.status !== 201)
|
|
48
|
+
handleApiError(response, "send_social_message");
|
|
49
|
+
return response.body;
|
|
50
|
+
},
|
|
51
|
+
async getSocialMessages(options = {}) {
|
|
52
|
+
const params = new URLSearchParams();
|
|
53
|
+
if (options.cursor)
|
|
54
|
+
params.set("cursor", options.cursor);
|
|
55
|
+
if (options.limit !== void 0)
|
|
56
|
+
params.set("limit", String(options.limit));
|
|
57
|
+
const query = params.toString();
|
|
58
|
+
const response = await request({
|
|
59
|
+
method: "GET",
|
|
60
|
+
path: `/v1/social/messages${query ? `?${query}` : ""}`
|
|
61
|
+
});
|
|
62
|
+
if (response.status !== 200)
|
|
63
|
+
handleApiError(response, "get_social_messages");
|
|
64
|
+
return response.body;
|
|
65
|
+
},
|
|
66
|
+
async consumeSocialMessage(messageId) {
|
|
67
|
+
const response = await request({
|
|
68
|
+
method: "POST",
|
|
69
|
+
path: `/v1/social/messages/${encodeURIComponent(messageId)}/consume`
|
|
70
|
+
});
|
|
71
|
+
if (response.status !== 204)
|
|
72
|
+
handleApiError(response, "consume_social_message");
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
77
|
+
0 && (module.exports = {
|
|
78
|
+
buildSocialApiClientMethods
|
|
79
|
+
});
|
|
@@ -1,24 +1,18 @@
|
|
|
1
1
|
export { createApiClient } from "./client.js";
|
|
2
|
-
export
|
|
2
|
+
export { configureWebClientRuntime, getClientVersionLabel, getRuntimeState, } from "./runtime.js";
|
|
3
|
+
export type { ApiClient, ApiClientConfig, ApiRequest, ApiResponse, GameplaySessionRequestOptions, UploadAssetPackSessionAssetOptions, UploadAssetPackSessionMediaOptions, UploadAssetVersionOptions, } from "./client.js";
|
|
3
4
|
import type { FinalizeAppUploadRequest, InitializeAppUploadRequest, RecordAppUploadLaunchCheckRequest, TweakValues } from "@playdrop/types";
|
|
4
|
-
import type {
|
|
5
|
-
export type { AdminAgentTaskTranscriptOptions, CreationGamesFetchResult, GetCreationConversationOptions, ListAgentTasksOptions, ListCreatorGamesOptions, UploadWorkerAgentTaskMaterialOptions, } from "./domains/agent-tasks.js";
|
|
5
|
+
import type { ChatPageOptions, ChatRealtimeConnectionOptions, ChatWriteOptions } from "./domains/chat.js";
|
|
6
|
+
export type { AdminAgentTaskTranscriptOptions, CreationGamesFetchResult, GetCreationConversationOptions, ListAgentTasksOptions, ListAiGenerationTasksOptions, ListAiGenerationsOptions, ListCreatorGamesOptions, UploadWorkerAgentTaskMaterialOptions, } from "./domains/agent-tasks.js";
|
|
6
7
|
export type { ChatEditOptions, ChatFileInput, ChatPageOptions, ChatRealtimeConnection, ChatRealtimeConnectionOptions, ChatRealtimeConnectionState, ChatRealtimeSocket, ChatSystemWriteOptions, ChatWriteOptions, } from "./domains/chat.js";
|
|
7
|
-
|
|
8
|
+
export { buildSocialApiClientMethods } from "./domains/social.js";
|
|
9
|
+
export type { AiAssetGenerationConfirmResponse, AiAssetGenerationQuoteResponse, AiAssetGenerationRequest, } from "./domains/ai.js";
|
|
10
|
+
import type { AcquisitionAttributionRequest, AdminCreatorEngagementRulePreviewRequest, AdminGameCollectionCandidatesResponse, AdminGameCollectionResponse, AdminGameCollectionsResponse, AdminMutateAchievementStateRequest, AdminMutateLeaderboardScoreRequest, AgentTaskAttachmentUploadResponse, AgentTaskCreatorFeedbackStatus, AgentTaskKind, AgentTaskNewGameSuggestionsResponse, ApiKeyLoginRequest, AppBrowseRequest, AppListingDraftMediaSlot, AppAuthMode, AppDetailRequest, AppDetailResponse, AppEngagementResponse, AppGameRecommendationsResponse, ContentViewerStateResponse, AppleLinkRequest, AppleNativeChallengeResponse, AppleOAuthHandoffExchangeRequest, AppleOAuthLinkStartRequest, ApplePendingSignupResponse, ApplePushDeviceRequest, AppleSignInRequest, AppLogEntryRequest, AppResponse, AppSurface, AppType, AppVersionVisibility, ChatAttachmentUploadSession, AssetBrowseKind, AssetCategory, AssetListSort, AssetPackListSort, AssetPackResponse, AssetResponse, AssetSpecResponse, AssetSummaryResponse, BoostPurchaseRequest, BoostReportQuery, ClaimFreeCreditRewardResponse, ClearAgentTaskResponse, CliLoginApproveRequest, CliLoginPollRequest, CliWebLaunchStartRequest, CompleteAppleSignupRequest, CompleteGoogleSignupRequest, CompleteXSignupRequest, ContentLicense, CreateAdminGameCollectionRequest, CreateAppAgentTaskRequest, CreateCommentReportRequest, CreateCliApiTokenRequest, CreateContentCommentRequest, CompletePlayTradeSessionRequest, CreatePlayTradeSessionRequest, CreateContentReportRequest, CreateCreatorReportRequest, CreateNewGameAgentTaskRequest, CreateStaticGameAgentTaskRequest, CreateRemixGameAgentTaskRequest, CreditPackCheckoutSessionRequest, CreatorPlanSessionRequest, CreatorAppsBrowseRequest, CreatorBlockMutationResponse, CreatorEngagementRuleExecutionStatus, CreatorFollowMutationResponse, DeleteMyAccountRequest, DislikedItemMutationResponse, FeedbackCategory, FeedbackClient, FeedbackStatus, FetchHomeOptions, FirebasePushDeviceRequest, FollowingFeedSection, FollowingSort, FreeCreditsResponse, GoogleAppleLinkRequest, GoogleAppleSignInRequest, GoogleOneTapExchangeRequest, GameplaySessionStartRequest, GameplaySessionActivityRequest, IapPurchaseRequest, IapReceiptListParams, InvitePreviewResponse, LibraryCategory, LibrarySort, LikedItemMutationResponse, ModerationReportResponse, NativeOAuthHandoffExchangeRequest, NativeOAuthLinkStartRequest, MyInviteCodeResponse, NotificationStatus, PublicEmailPreferencesUpdateRequest, ResolveRuntimeAssetsRequest, RetryAgentTaskResponse, RegisterAgentBundleRequest, ReviewState, SavedItemKind, SearchRequest, SearchSuggestRequest, SupportedLocale, SubmitCreatorSurveyRequest, SubmitCreatorSurveyResponse, SubmitFeedbackRequest, TrackEngagementEventRequest, TrackEngagementEventResponse, UpdateAdminFeedbackRequest, UpdateAdminGameCollectionGamesRequest, UpdateAdminGameCollectionRequest, UpdateAssetPackRequest, UpdateAssetPackVersionRequest, UpdateAssetRequest, UpdateAssetVersionRequest, UpdateProfileRequest, UpdatePreferredLocaleRequest, UpdateUserCommunicationPreferencesRequest, UpsertWebPushSubscriptionRequest, WorkerAgentTaskAttemptUnavailableRequest, WorkerGetAgentTaskRequest, WorkerAcknowledgeAgentTaskClaimRequest, WorkerClaimAgentTaskRequest, WorkerClaimAgentTaskSlugRequest, WorkerCompleteAgentTaskRequest, WorkerCompleteReleaseSmokeRequest, WorkerCreateAgentTaskEventRequest, WorkerFailAgentTaskRequest, WorkerHeartbeatAgentTaskRequest, WorkerPrepareAgentTaskTranscriptRequest, WorkerPrepareGameSourceRequest, WorkerReadGameSourceFilesRequest, WorkerCompleteAgentTaskTranscriptRequest, WorkerPresenceRequest, WorkerRecordAgentTaskRunTelemetryRequest, WorkerSubmitAgentTaskReviewRequest, WorkerUpdateIntentRequest, WorkerRecordProviderRequestRequest, WorkerRecordProviderSubmissionRequest, WorkerGenerationTextResultRequest, WorkerPrepareGenerationUploadsRequest, WorkerCheckpointGenerationUploadsRequest, WorkerFinalizeGenerationRequest, WorkerFailGenerationRequest } from "@playdrop/types";
|
|
8
11
|
import type { ApiClient } from "./client.js";
|
|
9
12
|
import type { AdminAgentTaskTranscriptOptions, GetCreationConversationOptions, ListAgentTasksOptions, ListCreatorGamesOptions } from "./domains/agent-tasks.js";
|
|
10
|
-
type PlatformInfo = {
|
|
11
|
-
name: string;
|
|
12
|
-
version: string;
|
|
13
|
-
};
|
|
14
|
-
type ClientInfo = {
|
|
15
|
-
version: string;
|
|
16
|
-
build: string;
|
|
17
|
-
};
|
|
18
13
|
declare function getDefaultClient(): ApiClient;
|
|
19
14
|
export declare function createPlayTradeSession(request: CreatePlayTradeSessionRequest): Promise<import("@playdrop/types").PlayTradeSessionResponse>;
|
|
20
15
|
export declare function getPlayTradeSession(sessionId: string, viewerSurface: AppSurface): Promise<import("@playdrop/types").PlayTradeSessionResponse>;
|
|
21
|
-
export declare function recordPlayTradeActivity(sessionId: string, request: PlayTradeActivityRequest): Promise<import("@playdrop/types").PlayTradeSessionResponse>;
|
|
22
16
|
export declare function completePlayTradeSession(sessionId: string, request: CompletePlayTradeSessionRequest): Promise<import("@playdrop/types").CompletePlayTradeSessionResponse>;
|
|
23
17
|
export declare function abandonPlayTradeSession(sessionId: string): Promise<import("@playdrop/types").AbandonPlayTradeSessionResponse>;
|
|
24
18
|
export declare function apiFetch(path: string, init?: RequestInit): Promise<Response>;
|
|
@@ -66,13 +60,17 @@ export declare function createStaticGameAgentTask(body: CreateStaticGameAgentTas
|
|
|
66
60
|
export declare function createRemixGameAgentTask(body: CreateRemixGameAgentTaskRequest): Promise<import("@playdrop/types").CreateRemixGameAgentTaskResponse>;
|
|
67
61
|
export declare function createAppAgentTask(appName: string, body: CreateAppAgentTaskRequest): Promise<import("@playdrop/types").CreateAppAgentTaskResponse>;
|
|
68
62
|
export declare function getAppAgentTask(appName: string): Promise<import("@playdrop/types").AppAgentTaskResponse>;
|
|
69
|
-
export declare function getAppAgentTaskAvailability(appName: string
|
|
70
|
-
|
|
63
|
+
export declare function getAppAgentTaskAvailability(appName: string, options?: {
|
|
64
|
+
signal?: AbortSignal;
|
|
65
|
+
}): Promise<import("@playdrop/types").AgentTaskAvailabilityResponse>;
|
|
66
|
+
export declare function getAgentTaskAvailability(kind: AgentTaskKind, options?: {
|
|
67
|
+
signal?: AbortSignal;
|
|
68
|
+
}): Promise<import("@playdrop/types").AgentTaskAvailabilityResponse>;
|
|
71
69
|
export declare function listNewGameSuggestions(): Promise<AgentTaskNewGameSuggestionsResponse>;
|
|
72
70
|
export declare function listAgentTasks(options?: ListAgentTasksOptions): Promise<import("@playdrop/types").AgentTasksResponse>;
|
|
73
71
|
export declare function listCreatorGames(options?: ListCreatorGamesOptions): Promise<import("@playdrop/types").CreatorGamesListResponse>;
|
|
74
72
|
export declare function initializeAppUpload(creatorUsername: string, appName: string, request: InitializeAppUploadRequest): Promise<import("@playdrop/types").InitializeAppUploadResponse>;
|
|
75
|
-
export declare function
|
|
73
|
+
export declare function signAppUploadObjects(creatorUsername: string, appName: string, sessionId: string, request: import("@playdrop/types").SignAppUploadObjectsRequest): Promise<import("@playdrop/types").SignAppUploadObjectsResponse>;
|
|
76
74
|
export declare function fetchAppUploadLaunchCheckPreview(creatorUsername: string, appName: string, sessionId: string): Promise<import("@playdrop/types").AppUploadLaunchCheckPreviewResponse>;
|
|
77
75
|
export declare function recordAppUploadLaunchCheck(creatorUsername: string, appName: string, sessionId: string, request: RecordAppUploadLaunchCheckRequest): Promise<import("@playdrop/types").RecordAppUploadLaunchCheckResponse>;
|
|
78
76
|
export declare function finalizeAppUpload(creatorUsername: string, appName: string, sessionId: string, request?: FinalizeAppUploadRequest): Promise<import("@playdrop/types").FinalizeAppUploadResponse>;
|
|
@@ -91,15 +89,26 @@ export declare function retryAgentTask(taskId: number): Promise<RetryAgentTaskRe
|
|
|
91
89
|
export declare function listMyAgentWorkers(): Promise<import("@playdrop/types").MeAgentWorkersResponse>;
|
|
92
90
|
export declare function registerAgentBundle(body: RegisterAgentBundleRequest): Promise<import("@playdrop/types").RegisterAgentBundleResponse>;
|
|
93
91
|
export declare function workerPresence(body: WorkerPresenceRequest): Promise<import("@playdrop/types").WorkerPresenceResponse>;
|
|
94
|
-
export declare function workerClaimAgentTask(body: WorkerClaimAgentTaskRequest): Promise<import("@playdrop/types").
|
|
92
|
+
export declare function workerClaimAgentTask(body: WorkerClaimAgentTaskRequest): Promise<import("@playdrop/types").WorkerClaimTaskResponseV5>;
|
|
95
93
|
export declare function workerAcknowledgeAgentTaskClaim(taskId: number, body: WorkerAcknowledgeAgentTaskClaimRequest): Promise<import("@playdrop/types").WorkerAcknowledgeAgentTaskClaimResponse>;
|
|
94
|
+
export declare function workerRecordGenerationProviderRequest(taskId: number, body: WorkerRecordProviderRequestRequest): Promise<import("@playdrop/types").WorkerRecordProviderRequestResponse>;
|
|
95
|
+
export declare function workerRecordGenerationProviderSubmission(taskId: number, body: WorkerRecordProviderSubmissionRequest): Promise<import("@playdrop/types").WorkerRecordProviderSubmissionResponse>;
|
|
96
|
+
export declare function workerCompleteGenerationText(taskId: number, body: WorkerGenerationTextResultRequest): Promise<import("@playdrop/types").WorkerGenerationTextResultResponse>;
|
|
97
|
+
export declare function workerPrepareGenerationUploads(taskId: number, body: WorkerPrepareGenerationUploadsRequest): Promise<import("@playdrop/types").WorkerPrepareGenerationUploadsResponse>;
|
|
98
|
+
export declare function workerCheckpointGenerationUploads(taskId: number, body: WorkerCheckpointGenerationUploadsRequest): Promise<import("@playdrop/types").WorkerCheckpointGenerationUploadsResponse>;
|
|
99
|
+
export declare function workerFinalizeGeneration(taskId: number, body: WorkerFinalizeGenerationRequest): Promise<import("@playdrop/types").WorkerFinalizeGenerationResponse>;
|
|
100
|
+
export declare function workerFailGeneration(taskId: number, body: WorkerFailGenerationRequest): Promise<import("@playdrop/types").WorkerFailGenerationResponse>;
|
|
96
101
|
export declare function workerClaimAgentTaskSlug(taskId: number, body: WorkerClaimAgentTaskSlugRequest): Promise<import("@playdrop/types").WorkerClaimAgentTaskSlugResponse>;
|
|
97
102
|
export declare function workerCreateUpdateIntent(body: WorkerUpdateIntentRequest): Promise<import("@playdrop/types").WorkerUpdateIntentResponse>;
|
|
98
103
|
export declare function workerRecordAgentTaskAttemptUnavailable(taskId: number, body: WorkerAgentTaskAttemptUnavailableRequest): Promise<import("@playdrop/types").WorkerAgentTaskAttemptUnavailableResponse>;
|
|
104
|
+
export declare function workerGetAgentTask(taskId: number, body: WorkerGetAgentTaskRequest): Promise<import("@playdrop/types").AgentTaskDetailResponse>;
|
|
99
105
|
export declare function workerHeartbeatAgentTask(taskId: number, body: WorkerHeartbeatAgentTaskRequest): Promise<import("@playdrop/types").WorkerHeartbeatAgentTaskResponse>;
|
|
100
106
|
export declare function workerCreateAgentTaskEvent(taskId: number, body: WorkerCreateAgentTaskEventRequest): Promise<import("@playdrop/types").WorkerCreateAgentTaskEventResponse>;
|
|
101
|
-
export declare function workerAppendAgentTaskTranscriptChunks(taskId: number, body: WorkerCreateAgentTaskTranscriptChunkRequest): Promise<import("@playdrop/types").WorkerCreateAgentTaskTranscriptChunkResponse>;
|
|
102
107
|
export declare function workerRecordAgentTaskRunTelemetry(taskId: number, body: WorkerRecordAgentTaskRunTelemetryRequest): Promise<import("@playdrop/types").WorkerRecordAgentTaskRunTelemetryResponse>;
|
|
108
|
+
export declare function workerPrepareGameSource(taskId: number, body: WorkerPrepareGameSourceRequest): Promise<import("@playdrop/types").WorkerPrepareGameSourceResponse>;
|
|
109
|
+
export declare function workerReadGameSourceFiles(taskId: number, body: WorkerReadGameSourceFilesRequest): Promise<import("@playdrop/types").WorkerReadGameSourceFilesResponse>;
|
|
110
|
+
export declare function workerPrepareAgentTaskTranscript(taskId: number, body: WorkerPrepareAgentTaskTranscriptRequest): Promise<import("@playdrop/types").WorkerPrepareAgentTaskTranscriptResponse>;
|
|
111
|
+
export declare function workerCompleteAgentTaskTranscript(taskId: number, body: WorkerCompleteAgentTaskTranscriptRequest): Promise<import("@playdrop/types").WorkerCompleteAgentTaskTranscriptResponse>;
|
|
103
112
|
export declare function workerCompleteAgentTask(taskId: number, body: WorkerCompleteAgentTaskRequest): Promise<import("@playdrop/types").AgentTaskDetailResponse>;
|
|
104
113
|
export declare function workerCompleteReleaseSmoke(taskId: number, body: WorkerCompleteReleaseSmokeRequest): Promise<import("@playdrop/types").AgentTaskDetailResponse>;
|
|
105
114
|
export declare function workerSubmitAgentTaskReview(taskId: number, body: WorkerSubmitAgentTaskReviewRequest): Promise<import("@playdrop/types").WorkerSubmitAgentTaskReviewResponse>;
|
|
@@ -161,9 +170,10 @@ export declare function saveAcquisitionAttribution(request: AcquisitionAttributi
|
|
|
161
170
|
export declare function fetchUserById(userId: number): Promise<import("@playdrop/types").PublicUser>;
|
|
162
171
|
export declare function fetchUserByUsername(username: string): Promise<import("@playdrop/types").PublicUser>;
|
|
163
172
|
export declare function fetchAppBySlug(creatorUsername: string, appName: string, options?: AppDetailRequest): Promise<AppResponse>;
|
|
173
|
+
export declare function fetchAppEngagement(creatorUsername: string, appName: string): Promise<AppEngagementResponse>;
|
|
174
|
+
export declare function fetchAppViewerState(creatorUsername: string, appName: string): Promise<ContentViewerStateResponse>;
|
|
164
175
|
export declare function fetchAppRelated(creatorUsername: string, appName: string): Promise<import("@playdrop/types").ContentRemixRelationsResponse>;
|
|
165
|
-
export declare function
|
|
166
|
-
export declare function fetchAppMoreCollectionPage(creatorUsername: string, appName: string, collectionKey: AppMoreCollectionKey, options?: AppMoreCollectionRequest): Promise<AppMoreCollectionPage>;
|
|
176
|
+
export declare function fetchAppGameRecommendations(creatorUsername: string, appName: string): Promise<AppGameRecommendationsResponse>;
|
|
167
177
|
export declare function requestAppAccessToken(appId: number, options?: {
|
|
168
178
|
sessionId?: string;
|
|
169
179
|
version?: string;
|
|
@@ -172,6 +182,10 @@ export declare function requestDevAppAccessToken(appId: number, slot: number, op
|
|
|
172
182
|
version: string;
|
|
173
183
|
sessionId?: string;
|
|
174
184
|
}): Promise<import("@playdrop/types").DevAppAccessTokenResponse>;
|
|
185
|
+
export declare function requestDevGameServerCredential(appId: number, options: {
|
|
186
|
+
version: string;
|
|
187
|
+
}): Promise<import("@playdrop/types").DevGameServerCredentialResponse>;
|
|
188
|
+
export declare function listDevSocialFriends(appId: number, currentSlot: number): Promise<import("@playdrop/types").DevSocialFriendsResponse>;
|
|
175
189
|
export declare function resetDevPlayer(appId: number, slot: number): Promise<import("@playdrop/types").DevPlayerResetResponse>;
|
|
176
190
|
export declare function resetAllDevPlayers(appId: number): Promise<import("@playdrop/types").DevPlayerResetResponse>;
|
|
177
191
|
export declare function sendAppLog(appId: number, entry: AppLogEntryRequest): Promise<import("@playdrop/types").AppLogEntryResponse>;
|
|
@@ -201,6 +215,7 @@ export declare function getLeaderboard(appId: number, key: string, options?: {
|
|
|
201
215
|
aroundMe?: number;
|
|
202
216
|
includeRetired?: boolean;
|
|
203
217
|
}): Promise<import("@playdrop/types").GetLeaderboardResponse>;
|
|
218
|
+
export declare function getFriendLeaderboardEntries(appId: number, key: string): Promise<import("@playdrop/types").LeaderboardEntry[]>;
|
|
204
219
|
export declare function submitLeaderboardScore(appId: number, key: string, score: number): Promise<import("@playdrop/types").SubmitLeaderboardScoreResponse>;
|
|
205
220
|
export declare function fetchMyAchievements(): Promise<import("@playdrop/types").MyAchievementsResponse>;
|
|
206
221
|
export declare function fetchMyLeaderboards(): Promise<import("@playdrop/types").MyLeaderboardsResponse>;
|
|
@@ -237,8 +252,51 @@ export declare function fetchLibrary(options?: {
|
|
|
237
252
|
export declare function followCreator(creatorUsername: string): Promise<CreatorFollowMutationResponse>;
|
|
238
253
|
export declare function unfollowCreator(creatorUsername: string): Promise<CreatorFollowMutationResponse>;
|
|
239
254
|
export declare function reportCreator(creatorUsername: string, request: CreateCreatorReportRequest): Promise<ModerationReportResponse>;
|
|
255
|
+
export declare function reportUser(username: string, request: CreateCreatorReportRequest): Promise<ModerationReportResponse>;
|
|
240
256
|
export declare function blockCreator(creatorUsername: string): Promise<CreatorBlockMutationResponse>;
|
|
241
257
|
export declare function unblockCreator(creatorUsername: string): Promise<CreatorBlockMutationResponse>;
|
|
258
|
+
export declare function blockUser(username: string): Promise<CreatorBlockMutationResponse>;
|
|
259
|
+
export declare function unblockUser(username: string): Promise<CreatorBlockMutationResponse>;
|
|
260
|
+
export declare function fetchChatConversations(options?: {
|
|
261
|
+
type?: string;
|
|
262
|
+
cursor?: string;
|
|
263
|
+
limit?: number;
|
|
264
|
+
}): Promise<import("@playdrop/types").ChatConversationsResponse>;
|
|
265
|
+
export declare function fetchChatConversation(conversationId: string): Promise<import("@playdrop/types").ChatConversationResponse>;
|
|
266
|
+
export declare function fetchChatContacts(options?: {
|
|
267
|
+
cursor?: string;
|
|
268
|
+
limit?: number;
|
|
269
|
+
}): Promise<import("@playdrop/types").ChatContactsResponse>;
|
|
270
|
+
export declare function fetchChatFriends(options?: {
|
|
271
|
+
cursor?: string;
|
|
272
|
+
limit?: number;
|
|
273
|
+
}): Promise<{
|
|
274
|
+
friends: import("@playdrop/types").ChatContact[];
|
|
275
|
+
hasMore: boolean;
|
|
276
|
+
nextCursor: string | null;
|
|
277
|
+
}>;
|
|
278
|
+
export declare function getPlatformGameFriends(appId: number): Promise<import("@playdrop/types").SocialFriend[]>;
|
|
279
|
+
export declare function createDirectChatConversation(username: string): Promise<import("@playdrop/types").ChatConversationResponse>;
|
|
280
|
+
export declare function fetchConversationMessages(conversationId: string, options?: ChatPageOptions): Promise<import("@playdrop/types").ChatMessagesResponse>;
|
|
281
|
+
export declare function sendConversationMessage(conversationId: string, message: ChatWriteOptions): Promise<import("@playdrop/types").ChatMessageResponse>;
|
|
282
|
+
export declare function markChatConversationRead(conversationId: string, lastReadMessageId: string | null): Promise<import("@playdrop/types").ChatChannelReadResponse>;
|
|
283
|
+
export declare function reactChatMessage(messageId: string, emoji: string): Promise<import("@playdrop/types").ChatMessageResponse>;
|
|
284
|
+
export declare function unreactChatMessage(messageId: string, emoji: string): Promise<import("@playdrop/types").ChatMessageResponse>;
|
|
285
|
+
export declare function reportChatMessage(messageId: string, body: {
|
|
286
|
+
reasonCode: string;
|
|
287
|
+
message?: string;
|
|
288
|
+
}): Promise<{
|
|
289
|
+
id: string;
|
|
290
|
+
}>;
|
|
291
|
+
export declare function createChatAttachmentUploadSession(conversationId: string, file: {
|
|
292
|
+
fileName: string;
|
|
293
|
+
contentType: string;
|
|
294
|
+
sizeBytes: number;
|
|
295
|
+
}): Promise<ChatAttachmentUploadSession>;
|
|
296
|
+
export declare function uploadChatAttachment(session: ChatAttachmentUploadSession, file: Blob): Promise<void>;
|
|
297
|
+
export declare function completeChatAttachmentUploadSession(sessionId: string): Promise<void>;
|
|
298
|
+
export declare function abortChatAttachmentUploadSession(sessionId: string): Promise<void>;
|
|
299
|
+
export declare function connectChatRealtime(options: ChatRealtimeConnectionOptions): import("./index.js").ChatRealtimeConnection;
|
|
242
300
|
export declare function fetchFollowingCreators(options?: {
|
|
243
301
|
sort?: FollowingSort;
|
|
244
302
|
}): Promise<import("@playdrop/types").FollowingCreatorsResponse>;
|
|
@@ -347,6 +405,8 @@ export declare function showRewardedAd(reservationId: string, viewedMs: number):
|
|
|
347
405
|
export declare function loadDevRewardedAd(appId: number, slot: number, viewerSurface: AppSurface): Promise<import("@playdrop/types").AdLoadResponse>;
|
|
348
406
|
export declare function showDevRewardedAd(appId: number, slot: number, reservationId: string, viewedMs: number): Promise<import("@playdrop/types").AdRewardedShowResponse>;
|
|
349
407
|
export declare function fetchAiGeneration(id: string): Promise<import("@playdrop/types").AiGenerationDetailResponse>;
|
|
408
|
+
export declare function createAiAssetGenerationQuote(appId: number, requests: import("./domains/ai.js").AiAssetGenerationRequest[]): Promise<import("./index.js").AiAssetGenerationQuoteResponse>;
|
|
409
|
+
export declare function confirmAiAssetGenerationQuote(appId: number, quoteId: string, requests: import("./domains/ai.js").AiAssetGenerationRequest[]): Promise<import("./index.js").AiAssetGenerationConfirmResponse>;
|
|
350
410
|
export declare function fetchAdminAiGeneration(id: string): Promise<import("@playdrop/types").AiGenerationDetailResponse>;
|
|
351
411
|
export declare function fetchAdminCommunicationsRules(): Promise<import("@playdrop/types").AdminCreatorEngagementRulesResponse>;
|
|
352
412
|
export declare function fetchAdminCommunicationsExecutions(options?: {
|
|
@@ -518,15 +578,6 @@ export declare function downloadAppSource(creatorUsername: string, appName: stri
|
|
|
518
578
|
blob: Blob;
|
|
519
579
|
metadata: import("@playdrop/types").AppSourceBundleResponse;
|
|
520
580
|
}>;
|
|
521
|
-
export declare function configureWebClientRuntime(config: {
|
|
522
|
-
platform: PlatformInfo;
|
|
523
|
-
client: ClientInfo;
|
|
524
|
-
}): void;
|
|
525
|
-
export declare function getRuntimeState(): {
|
|
526
|
-
platform: PlatformInfo | null;
|
|
527
|
-
client: ClientInfo | null;
|
|
528
|
-
};
|
|
529
|
-
export declare function getClientVersionLabel(): string;
|
|
530
581
|
export { APP_SURFACE_VALUES, APP_TYPE_DEFAULT_DISPLAY, APP_TYPE_VALUES, DEFAULT_APP_SURFACE_TARGETS, DEFAULT_APP_TYPE, FEEDBACK_CATEGORY_VALUES, MANUAL_FEEDBACK_CATEGORY_VALUES, FEEDBACK_CLIENT_VALUES, FEEDBACK_STATUS_VALUES, normalizeAppType, } from "@playdrop/types";
|
|
531
582
|
export { ApiError, UnsupportedClientError } from "@playdrop/types";
|
|
532
583
|
export type * from "@playdrop/types";
|